diff --git a/firmware/build/firmware.bin b/firmware/build/firmware.bin deleted file mode 100755 index 3564816..0000000 Binary files a/firmware/build/firmware.bin and /dev/null differ diff --git a/firmware/build/firmware.elf b/firmware/build/firmware.elf deleted file mode 100755 index 6539daa..0000000 Binary files a/firmware/build/firmware.elf and /dev/null differ diff --git a/firmware/build/firmware.hex b/firmware/build/firmware.hex deleted file mode 100644 index 04f4578..0000000 --- a/firmware/build/firmware.hex +++ /dev/null @@ -1,1598 +0,0 @@ -:020000040800F2 -:100000000040002069550008512F0008532F0008B8 -:1000100000000000000000000000000000000000E0 -:10002000000000000000000000000000552F000844 -:100030000000000000000000572F0008592F0008A2 -:10004000B9550008B9550008B9550008B955000858 -:10005000B9550008B9550008B9550008B955000848 -:10006000B9550008712F0008B9550008B9550008A6 -:10007000612F0008852F0008952F0008B95500084A -:10008000B9550008B9550008B9550008B955000818 -:10009000B9550008B9550008B9550008B955000808 -:1000A000B9550008B9550008B9550008B9550008F8 -:1000B000B9550008B9550008B9550008B9550008E8 -:1000C00010B5064C2378002B07D1054B002B02D02E -:1000D000044800E000BF0123237010BDD8000020B9 -:1000E00000000000405E0008044B10B5002B03D058 -:1000F0000349044800E000BF10BDC04600000000F6 -:10010000DC000020405E0008002243088B4274D3CC -:1001100003098B425FD3030A8B4244D3030B8B4208 -:1001200028D3030C8B420DD3FF22090212BA030C11 -:100130008B4202D31212090265D0030B8B4219D3F2 -:1001400000E0090AC30B8B4201D3CB03C01A524112 -:10015000830B8B4201D38B03C01A5241430B8B425A -:1001600001D34B03C01A5241030B8B4201D30B0343 -:10017000C01A5241C30A8B4201D3CB02C01A52416A -:10018000830A8B4201D38B02C01A5241430A8B422D -:1001900001D34B02C01A5241030A8B4201D30B0216 -:1001A000C01A5241CDD2C3098B4201D3CB01C01A30 -:1001B000524183098B4201D38B01C01A524143093A -:1001C0008B4201D34B01C01A524103098B4201D328 -:1001D0000B01C01A5241C3088B4201D3CB00C01A95 -:1001E000524183088B4201D38B00C01A524143080D -:1001F0008B4201D34B00C01A5241411A00D2014632 -:10020000524110467047FFE701B5002000F006F8A4 -:1002100002BDC0460029F7D076E770477047C04658 -:100220008446081C6146FFE71FB500F06DFB0028FF -:1002300001D40021C8421FBD10B500F0EFFA4042C2 -:10024000013010BD10B500F05FFB002801DB00207D -:1002500010BD012010BDC04610B500F055FB0028B0 -:1002600001DD002010BD012010BDC04610B500F01A -:10027000FDFA002801DC002010BD012010BDC046A1 -:1002800010B500F0F3FA002801DA002010BD0120BB -:1002900010BDC0469E2110B5C905041CFFF7F0FF34 -:1002A000002803D1201C00F075FE10BD9E21201CEB -:1002B000C90500F0ABFC00F06DFE80231B069C46D8 -:1002C0006044F2E7F8B54746CE4643025B0A440075 -:1002D000C20F9C464800DD004B02240E5B0A000E54 -:1002E00080B5984626009146C90FDB00271A8A423E -:1002F00029D0002F15DD00284AD1002B00D095E031 -:10030000ED08FF2C00D188E06B025B0AE6B25B02CD -:10031000F605580A3043D20710430CBC9046994664 -:10032000F8BD002F00D087E0601CC0B2012800DCBF -:10033000B6E0EE1A720100D5C5E0002E3DD10022D4 -:1003400000260023E3E7002F00DC96E000285DD0C4 -:10035000FF2C60D08022D20413431B2F00DDECE081 -:100360002022D21B18009340F8405A1E93410343A9 -:10037000ED186B017BD50134FF2C00D1B7E00122D1 -:1003800007262A406B089A4D1D4015432E4029E050 -:10039000FF2CB5D08022D20413431B2F00DDB2E026 -:1003A0002022D21B19009340F9405A1E93410B435F -:1003B000ED1A6B015BD5AD01AE09300002F060F8BB -:1003C00005388640844265DC041B3300202001345C -:1003D000E340041BA640751EAE41334307261D00B3 -:1003E00000241E4001224B461A40002E04D00F2349 -:1003F0002B40042B00D004356B0100D480E701347E -:10040000E6B2FF2C2FD1FF26002380E7002B52D12C -:10041000FF2C00D074E70A00ED08002DF3D08023F4 -:10042000DB032B435B025B0AFF2670E7013F002FD3 -:10043000BED0FF2CB1D163E7002C47D0FF2869D094 -:100440008024E4047A4225431B2A00DDC5E02C0009 -:100450002026D440B21A95406A1E954125435D1B63 -:1004600004008946A5E7AB015B0A50E7002401229E -:100470004B461A406B07BAD142E7002F3BD10134FB -:10048000E0B201284ADDFF2CBDD00726ED186D082B -:100490002E40A7E70723574D241A35401E40A1E7F9 -:1004A000002C1BD1002D6ED1002B00D19AE00A0048 -:1004B0001D003C0024E7013F002F00D158E7FF2C2E -:1004C00000D04AE7A7E75E1B894676E7002D1CD1DE -:1004D0000A00FF281FD004001D0011E7002D5DD188 -:1004E000002B17D180230022DB03FF260FE70A0031 -:1004F000FF2600230BE7002C21D1002D66D1FF2819 -:10050000E9D11D0087E7012352E77A1CA7D0FA43FF -:10051000FF2899D10A001D00FF24F1E6002E21D109 -:10052000002D4FD0002B4CD0ED186B019ED5314BD8 -:1005300007362E4001241D4054E7012318E7FF2809 -:10054000DFD08024E4047F4225431B2F4DDC20268E -:10055000F61B2C00B540FC406A1E95412543ED1862 -:10056000040006E7002DCCD0002B00D153E78021FA -:100570006046C903084203D04046084200D11D002E -:100580000121114047E7002B00D1B9E6EA1A5001DA -:1005900025D507265D1B2E40894623E7FF24002B27 -:1005A00000D1ADE680226046D203104204D040461E -:1005B000104201D11D00894601224B46FF241A40FA -:1005C0009EE62B00DD080A0000249DE67A1CC6D0BA -:1005D000FF43FF28B9D11D001DE701253FE7151E88 -:1005E00000D044E70022002391E60125B7E7C0468A -:1005F000FFFFFF7DFFFFFFFBF8B557464E46454620 -:10060000DE464402E0B546008846640A360EC70F4F -:10061000002E63D0FF2E24D08023E400DB041C4393 -:10062000002399469B467F3E434642465D02D20FD9 -:100630005B006D0A1B0E9046924665D0FF2B55D08D -:1006400080220021ED00D2047F3B1543F61A434679 -:100650004A467B400F2A00D98DE06D4892008258AF -:100660009746002C54D108239946063BFF269B460B -:10067000DAE70025534602291BD0032900D1BFE049 -:10068000012928D030007F30002820DD6A0704D0FF -:100690000F222A40042A00D004352A0103D5300055 -:1006A0005C4A80301540FE2803DCAC01640AC2B20B -:1006B00001E0FF2200246402D205600ADB07104338 -:1006C00018433CBC90469946A246AB46F8BD012271 -:1006D000101A1B287CDD00220024ECE7002C1DD121 -:1006E00004239946033B00269B469DE7FF3E002DD1 -:1006F00020D1022143464A467B400A430F2AD8D8DC -:100700004548920082589746002D19D10121F1E702 -:100710000C239946093BFF269B4685E7200001F004 -:10072000AFFE7626431F9C4000237642361A994638 -:100730009B4679E74A4603231A439146032186E7FD -:10074000280001F09DFE431F36189D40763600219B -:100750007DE780240023E403FF22ACE7002580230B -:10076000DB031C4228D01D4226D12B435C02640AC5 -:100770004346FF229FE762016C01A24224D21B2163 -:100780000025013E012710006D005200002801DB0A -:10079000944201D8121B3D4301390029F3D11400C2 -:1007A000621E944125436DE7BA46594625005346DB -:1007B000022900D061E77CE78023DB031C4364024D -:1007C000640A3B00FF2276E7121B1A210125D9E7B4 -:1007D0009E362A00B5402C00C240651EAC41144331 -:1007E000620704D00F222240042A00D004346201A0 -:1007F00003D4A401640A00225DE7012200245AE721 -:100800008024E4032C436402640AFF2253E7C046B9 -:10081000845E0008FFFFFFF7C45E000870B5420069 -:100820004E024C0045026D0A120EC30F760A240ECA -:10083000C90FFF2A0FD0FF2C11D00120A24200D0F7 -:1008400070BDB542FCD18B420DD0002AF8D12800F2 -:10085000451EA841F4E70120002DF1D1EBE701206E -:10086000002EEDD1E9E70020EAE7C04670B54A0066 -:100870004E02450244006D0A240EC30F760A120E82 -:10088000C90FFF2C15D0FF2A0ED0002C15D1002A3D -:1008900001D1002E1CD0002D14D08B4227D0022075 -:1008A000013B1840013870BD002EEED002204042BE -:1008B000F9E7002DFAD1FF2A0ED0002A0ED1002E22 -:1008C000EDD00BE001230139994308000130EAE73C -:1008D0000020002DE7D0E2E7002EE7D18B42DED1E9 -:1008E000944205DD0221581E08400138DBE7002450 -:1008F000A24204DCB542D2D80020B542D3D2581E61 -:10090000012398430130CEE730B5420044024D0246 -:10091000C30F4800640A120E6D0A000EC90FFF2AA9 -:1009200012D0FF280CD0002A12D1002819D1002D96 -:1009300017D1002C2BD00220013B1840013826E0B3 -:10094000002DF0D0022022E0002CFBD1FF281FD088 -:1009500000281FD1002D1DD10220013B1840013875 -:1009600015E0002C0ED08B42E5D10022904204DC31 -:10097000AC42E0D80020AC4209D2581E0123984373 -:10098000013004E00123013999430800013030BDF2 -:10099000002DD7D18B42CED18242E7DD0221581EF5 -:1009A00008400138F3E7C046F0B54E465746454685 -:1009B000DE46E0B543025B0A450083B00F1C994652 -:1009C0002D0EC60F002D57D0FF2D24D08020DB0028 -:1009D000C0041843002381469A469B467F3D7C0213 -:1009E0007A00FB0F640A120E984623D0FF2A4BD0E0 -:1009F000E30080240020E4047F3A1C43AD186B1C04 -:100A000047460193534677403A000F2B48D87D491B -:100A10009B00CB589F46002B00D085E008339A46B8 -:100A2000063B9B467C027A00FB0FFF25640A120EF0 -:100A30009846DBD1002C00D090E0524601231A43A7 -:100A400092460120DBE74C4658461700022824D086 -:100A5000032800D1CFE00022002301284DD1580205 -:100A6000D205400AFF071043384303B03CBC904610 -:100A70009946A246AB46F0BD002B5BD104239A46B3 -:100A8000033B00259B46AAE7FF35002C60D1524668 -:100A900002231A4392460220B1E7FF220023DEE739 -:100AA0004B461B0C9C464B462604360C18046146EC -:100AB0003300220C6446000C43434E4350435443DE -:100AC00080191A0C1218964203D9802149028C46CB -:100AD00064441B041B0C1004C01883015E1EB34148 -:100AE000800E1843130C1B199B0103431C002301A8 -:100AF00079D5012362081C401443019A7F32002AF1 -:100B00004DDD630704D00F232340042B00D00434B1 -:100B1000230103D53C4B019A1C408032FE2ABCDCE9 -:100B2000A3015B0AD2B29AE70C239A46093BFF2540 -:100B30009B4654E7180001F0A3FC4A46431F762564 -:100B40009A4000236D4291462D1A9A469B4646E7ED -:100B5000524603231A439246032050E7200001F037 -:100B60008FFC431F2D1A9C40763D002047E78023D1 -:100B70000027DB03FF2272E7424666E74C4632005D -:100B8000584662E780234A46DB031A4222D01C42C1 -:100B900020D123435B025B0A4746FF225FE7012324 -:100BA0009A1A1B2A21DC23000199D3409E318C40E4 -:100BB0001A0023005C1EA34113435A0704D00F22DE -:100BC0001A40042A00D004335A0111D49B015B0A55 -:100BD000002244E780234A46DB0313435B025B0A9F -:100BE0003700FF223BE7019587E70022002336E725 -:100BF0000122002333E78023DB0323435B025B0AEC -:100C0000FF222CE7045F0008FFFFFFF7F8B5474617 -:100C1000CE464400C20F80B547024802400A8446CF -:100C2000664648007F0A240EF60025009046FB0029 -:100C3000000EC90FB146FF2800D185E001267140A2 -:100C4000261A914257D0002E43DD002800D07FE0C5 -:100C50004946002900D1AAE0013E002E00D0F7E06D -:100C60005B1A5A0100D48BE09B019C09200001F023 -:100C700007FC05388440854200DDD3E0451B230096 -:100C800020200135EB40451BAC40621E94412343BC -:100C9000072400251C40012241460A40002C04D0B4 -:100CA0000F211940042900D00433590100D480E0F9 -:100CB0000135ECB2FF2D00D0A3E0FF2400235B023E -:100CC000E405580AD207204310430CBC90469946CD -:100CD000F8BD002E74D1601CC0B2012800DCA7E072 -:100CE0004A469C1A620100D5B6E0002CBED1002213 -:100CF00000240023E3E7002E00DC85E0002846D036 -:100D0000FF2C49D080224846D2041043814601225C -:100D10001B2E09DC20204C46801B84404A462000C4 -:100D2000F240441EA04102439B185A0128D50135C8 -:100D3000FF2D00D1A8E00122072494491A405B0846 -:100D40000B4013431C40A6E7002E00D078E775E760 -:100D5000FF2C54D080224946D204114389460122F7 -:100D60001B2E09DC20214846891B88404A46010089 -:100D7000F240481E81410A439B1A5A0100D573E78D -:100D8000012241460A40590700D089E711E0484650 -:100D9000002858D1FF2C0CD1DB08002B00D18CE7A8 -:100DA0008020C00303435B025B0AFF2487E7FF2C1C -:100DB00025D0DB08FF2DF0D05B025B0AECB27EE7AA -:100DC000002C4DD0FF2818D08024E4047242234325 -:100DD0001B2A00DDC4E01C002025D440AA1A934041 -:100DE0005A1E934123434A460500D31A884638E7E2 -:100DF000721CF8D0F243FF28EAD10A004B46FF25C7 -:100E0000D7E79B015B0A5AE7002E41D1651CE9B286 -:100E1000012945DDFF2D00D14FE707244B445B0836 -:100E20001C4038E707225A4B2D1A2340144032E762 -:100E3000002C1DD1002B7AD14B46002B00D191E024 -:100E40000A000025B5E7013E002E19D14B446CE79E -:100E5000FF2C84D1FF25ACE74A468846D41A05E723 -:100E6000002BC5D10A00FF28C8D005004B46A0E7DB -:100E7000002B49D14B46002B77D00A00FF2598E77D -:100E8000FF2C00D043E787E70A00FF24002316E782 -:100E9000002C15D1002B57D1FF28E6D14B467BE71C -:100EA000002C20D1002B57D04946002953D04B4469 -:100EB0005A0168D50724364A1C4001251340EAE64A -:100EC000FF28EBD08022D204764213431B2E53DC42 -:100ED0002025AD1B1A00AB40F2405C1EA34113431A -:100EE0004B44050021E7002BD8D04946002900D10A -:100EF00052E78021C9030F4200D14DE76046084206 -:100F000000D049E74B4647E74846FF25002800D177 -:100F10004FE78022D203174204D06046104201D12D -:100F20004B46884601224146FF250A4041E7484694 -:100F300000281FD01A1A500120D54A460724D31A78 -:100F40001C4088460025A6E6741CC9D0F643FF283D -:100F5000BCD14B4620E799464B460025DB082BE7E2 -:100F6000012340E700220023A9E680230022DB03BF -:100F7000FF24A4E600251CE70123B1E7002AF1D0F5 -:100F800013000025FCE60025FAE6C046FFFFFF7DC2 -:100F9000FFFFFFFB41024200C30F490A120E00206F -:100FA0007E2A0DD99D2A0CD8802000040143952A61 -:100FB0000ADC9620821AD1404842002B00D108005A -:100FC0007047034A9818FBE7963A9140F4E7C04609 -:100FD000FFFFFF7F70B500283DD0C317C5185D40E7 -:100FE000C40F280001F04CFA9E22121A962A07DC40 -:100FF000D2B2082833DD083885406802400A23E071 -:10100000992A0BDD052329001B1AD94003001B3345 -:101010009D402B005D1EAB4119430D00052801DDED -:10102000431F9D402B000F490B406E0709D00F2630 -:101030003540042D05D004335D0102D59F220B40BD -:10104000121A9B01580AD2B24002D205400AE407A4 -:101050001043204370BD002400220020F4E7680202 -:10106000400AF1E7FFFFFFFB70B5041E34D001F02A -:1010700007FA9E22121A962A07DCD2B208282EDD21 -:10108000083884406002400A21E0992A09DD030003 -:1010900021001B3399404B1E994105231B1ADC404C -:1010A0000C43052801DD431F9C4023000D490B40E4 -:1010B000650709D00F252C40042C05D004335C01B2 -:1010C00002D59F220B40121A9B01580AD2B240024D -:1010D000D205400A104370BD00220020F7E76002ED -:1010E000400AF4E7FFFFFFFBF0B55746DE464E46E9 -:1010F0004546E0B5834607000E03480085B092469A -:101100001C00360B400DCD0F002800D19DE0954B03 -:10111000984239D08023F6001B041E43924A7B0F6D -:10112000334399469446030063440093002300260A -:10113000FF00029323031B0B98466300E40F524603 -:101140005B0D019400D1B3E086498B4200D19EE053 -:101150004246D100802212040A435146490F1143EE -:101160008B46814952468C4600996344CB1A002134 -:10117000D20000932B0063409A460F2E00D905E160 -:101180007A4BB6009B599F465B463343994600D045 -:10119000B8E002230826002700900293CAE7CB4656 -:1011A0003A0002990195019B9A46022927D003290A -:1011B00000D180E2012944D06D49009B8C466344F4 -:1011C0001C00002C38DD530700D013E2D2085B4628 -:1011D000DB0109D55946674B19408B468021C90070 -:1011E0008C46009B63441C00634B9C4207DC5B46BF -:1011F00064055F075B0217431B0B620D02E00023CF -:101200000027584A00211B031C0B0B0D1B05234311 -:1012100014055A4A380013401C4353466400DB0748 -:1012200064081C43210005B03CBC90469946A24688 -:10123000AB46F0BD0122524201231B1B382B00DCC0 -:10124000ADE1002200230027DCE75B4633439946EB -:101250005ED0002E00D18AE1300001F011F90300C8 -:101260000B3B1C2B00DD7BE11D22D31A5A460100EB -:10127000DA4008398E4013005F46334399468F4069 -:101280003F4B00261B1A00930023029352E741466E -:1012900053460B433B499B468C46009B634400935B -:1012A0005B46002B3BD1022300221E43022161E753 -:1012B000434613439B4637D04346002B00D162E19F -:1012C000404601F0DDF803000B3B1C2B00DD53E131 -:1012D00002004146083A914088461D21CB1A5146EA -:1012E000D9400B0041460B439B46534693401A009E -:1012F000009B25499C46604403008C466344009350 -:10130000002137E70323B14600900C26029311E732 -:101310000023009301330426002702930AE70323E6 -:10132000C3461E43032125E701331E43002201214A -:1013300020E700239A46802300271B03094A61E720 -:10134000802349461B03194200D1E2E05946194265 -:1013500000D0DEE00B431B0317001B0BA246014A23 -:1013600050E7C046FF07000001FCFFFF445F000894 -:10137000FF030000FFFFFFFEFE070000FFFF0F80DE -:101380000DFCFFFF01F8FFFFF3030000D94500D972 -:10139000CBE000D1C6E03C0048460027009B013B63 -:1013A00000935B46160E1B021E431302984633043D -:1013B0001B0C9946310C0191FEF72CFF4A46424323 -:1013C0000B04210C050019438A4207D98919013DF4 -:1013D0008E4203D88A4201D9851E8919881A01993B -:1013E000FEF718FF09048C464A462104644642432E -:1013F000090C030021438A4204D98919013B8E421A -:1014000000D8F1E02D041D43AB464346891A4246FD -:10141000280C12041D0C5B46140C22001B041B0C30 -:101420005A4303946B434443029568431B19150CBC -:10143000EB189C4203D980246402A44660441C0C2F -:1014400015041B042D0C20185D19814277D373D02D -:101450000C1AA24A7D1BAF42BF419446009B7F42BB -:101460006344E01B1C00864200D1DBE00199FEF7DB -:10147000D1FE4A4642430B04290C070019438A4215 -:1014800007D98919013F8E4203D88A4201D9871EA4 -:101490008919881A0199FEF7BDFE09044A46894652 -:1014A00029044D464243090C030029438A4207D9C7 -:1014B0008919013B8E4203D88A4201D9831E8919BA -:1014C0003F04891A3A00039F1A43380013041B0C87 -:1014D000584381460298150C6F43434345434846A1 -:1014E000000C8446DB1963449F4203D980204002EC -:1014F0008446654448461F0C00041B04000C7D19FB -:101500001818A94200D284E000D17FE001231A43D9 -:1015100057E680234A461B0313431B031B0BAA46B3 -:101520006F4A6FE6BA4200D935E74B46DC075808E8 -:101530007B081C43FF0734E70024AF4289D24744AD -:101540004745A4415B466442A4196418013BA64286 -:101550001ED2A0426DD800D1B6E0241A9B4678E78F -:1015600003005A46283B9A400027914688E6584691 -:1015700000F086FF203072E603005246283B9A4076 -:1015800093460022B4E6504600F07AFF20309AE6F7 -:10159000A642E2D1B845DCD9341A9B4659E71F2B45 -:1015A00065DC504C0099A4465C46614408008C40C0 -:1015B00011008240D940501E82410C4314435A46C8 -:1015C000DA401300620709D00F222240042A05D016 -:1015D0002200141D9442894149425B181A0262D5C7 -:1015E0000122002300270DE68A4200D80AE7831E65 -:1015F000891907E70F231340042B00D1E6E5171DD7 -:101600009742924153429B44FA08E0E5002800D1FA -:10161000D7E57118531EB14227D3A94215D358D02C -:101620001A0073E7002B00DC04E6012300229B4430 -:10163000CDE502234744474589415B429C464942E8 -:1016400089190C19E344241A03E743465F00474510 -:101650009B41B8465B429E19023A8919A94200D0C3 -:1016600054E7404500D051E7ABE51A00F6E71F21EB -:101670005F4649420C1BE740202B07D01A49009BCC -:101680008C46634418005B4683401A43501E8241D7 -:101690003A4307270023174009D00F2100231140A8 -:1016A0001400042995D122005F075B021B0BD208AE -:1016B00017430022A6E5802359461B030B431B0357 -:1016C00017001B0B064A9DE5BD42B2D89B4600247D -:1016D000BFE68045B9D31A00C3E7C046FF03000048 -:1016E000FF0700001E0400003E040000F0B557464E -:1016F000DE464E464546E0B5834606000F034800E9 -:1017000087B092461D003F0B400DCC0F002800D142 -:101710006FE0DE4B984238D08023FF001B041F434C -:10172000730F3B430193DA4B0027994600239B46F6 -:10173000F60081442B0369001B0B52469846490D65 -:10174000ED0F002900D185E0D04B994200D173E024 -:101750004346DA0080231B0413435246CC48520F01 -:1017600084461343524600206144D200894421003C -:10177000694000918C46012149448A460F2F00D9C7 -:1017800090E0C449BF00CF59BF465B463B4301933D -:1017900000D06AE102230827002681469B46C9E75C -:1017A00032005846019B61460091022800D175E045 -:1017B000032800D1FEE1012800D02CE100230027FE -:1017C000002600253F032A0D3F0BB34812053A437C -:1017D00002401B051343009A5B00D1075B080B43D3 -:1017E0003000190007B03CBC90469946A246AB4673 -:1017F000F0BD5B463B43019300D12FE1002F00D1A8 -:10180000A5E1380000F03CFE03000B3B1C2B00DD83 -:1018100096E11D22D31A5A460100DA405E46083985 -:101820008F4013008E403B4301939C4B00271B1AB3 -:10183000994600239B467DE7414653460B43934917 -:101840008C46E144002B00D01AE10222022017430B -:1018500000228CE7134300D10DE14346002B00D159 -:1018600081E1404600F00CFE02000B3A1C2A00DD2C -:1018700072E10100434608398B4098461D239A1AAD -:101880005346D3401A004346134352468A404946C2 -:10189000081A824989468144002068E77B4B00276B -:1018A00000268EE7140C1204120C1100370C3604BB -:1018B000350C794328008C462E00604360448346F3 -:1018C00056432100300C80465846794340440291EB -:1018D000844506D98846802149028C46E044414629 -:1018E00002913604010C360C00048B4681191E0C43 -:1018F0001B041B0C0391190079438C462800754387 -:101900006544A8465843050C45447743A94203D98A -:10191000802149028C466744290C8C46390000041A -:10192000000C2D042D186144AB44059159460491D7 -:1019300001990F043F0C080C390051434243904673 -:1019400002008C46090C8B4662437C4344445C4451 -:10195000A04503D98021490288464244210C88468B -:1019600061460904090C8C463900594343437043CE -:101970007E430F0CF6182404BE19644442448C467E -:10198000B34203D980235B0298464044029B6146E0 -:101990009846049B370443449B46AB45AD416B429C -:1019A0000D0405992D0C8C467F196744FD18A84637 -:1019B0005D462D19A542A44193466442A446C34402 -:1019C000DC448F42BF4198459B4193459241A445D9 -:1019D000A4415B427F421F43360C52426442BF190E -:1019E0002243BF18624638184302D20D03991343AD -:1019F0006A020A43501E82416146ED0D2A434E029F -:101A00003243D90100D4B3E00126500832400243EA -:101A1000DE0732435B08224C5444002C62DD510740 -:101A200009D00F201040042805D0101D904292418B -:101A300052429B180200D90104D580241948E400C1 -:101A4000034054441848844200DD27E75E075B02E8 -:101A5000D2081F0B630516435B0DB2E600239946BF -:101A60000133042700269B4664E603230197814641 -:101A70000C279B465EE6012201201743002276E6F2 -:101A8000032303201F43434671E6C046FF070000BF -:101A900001FCFFFF845F0008FFFF0F800DFCFFFFCC -:101AA000FF030000FFFFFFFEFE070000002380276A -:101AB00000933F030026434B83E6019B3200A4467C -:101AC000584670E6AC466EE6802701993F033942DE -:101AD0002DD03B422BD11F433F033F0B00951600F7 -:101AE000384B6EE601252D1B382D00DD66E61F2DD7 -:101AF00040DC35481C005044160082408440EE40D3 -:101B0000501E824134431443EB40620709D00F2238 -:101B10002240042A05D02200141D944280414042F4 -:101B20001B181A023ED501230027002649E680270C -:101B3000019B3F031F433F033F0B0094214B40E6B3 -:101B400003005A46283B9A40002601926DE658460B -:101B500000F096FC203057E603005246283B9A409E -:101B60001300002293E6504600F08AFC20307BE60A -:101B7000CA4650E71F201E004042041BE640202DAD -:101B800003D0124C5444A3401A43501E82413243A6 -:101B900007260027164009D00F200023104014000C -:101BA0000428B9D122005E075B021F0BD20816433E -:101BB000002306E680273F031F433F033F0B160029 -:101BC000004BFEE5FF0700001E0400003E0400007D -:101BD000F8B557464E464546DE460C000903E0B5CB -:101BE000490A460F5F0031431E03DB0F760A9B460E -:101BF000530F3343C84E6500C000E40FD2006D0D93 -:101C0000A24681467F0D9C469046B74200D1B9E07E -:101C10005B46012673409B46EE1BA34500D183E043 -:101C2000002E63DD002F00D0B1E06346134300D1E6 -:101C300023E1731E002B00D0BAE1861A6346B0423E -:101C400080410125C91A4042091A0B0200D447E11C -:101C500049024B0A98464346002B00D189E1404691 -:101C600000F00EFC0300083B1F2B00DD7CE120226E -:101C70003000D21A4146D040994002009E400A43AB -:101C80009D4200DD6AE15D1B6B1C1F2B00DD94E1B2 -:101C9000202110003500C91A8E40DA408840DD400E -:101CA000711E8E4111000722284300250643324051 -:101CB000002A09D00F233340042B05D0331DB34233 -:101CC000B641764289191E000B0200D43DE26A1C1F -:101CD000914B55056D0D9A4200D119E18F4AF608D6 -:101CE0000A40570752023743120B9BE0002E00D0E8 -:101CF000C5E06E1C7605760D012E00DC48E16746D6 -:101D0000861ACB1BB042BF417F42B8461F004346F4 -:101D1000FF1A3B00B8461B0200D55FE137439AD15A -:101D200000220024002579E0002E00DCFAE0002FDC -:101D300000D18DE0784B9D4267D0802367461B041D -:101D40001F43BC46382E00DC52E1634613435A1E43 -:101D500093411E1886428041404209180B0200D46C -:101D6000BEE06D4B01359D4200D1D2E06B4A730855 -:101D70000A4001210E401E435108D30707221E438B -:101D8000324095E71E00164300D045E740E7624B1E -:101D90009D423AD0802367461B041F43BC46382E21 -:101DA00000DDEBE01F2E00DC3AE133006746203B0C -:101DB000DF403B00202E05D04027BF1B6646BE40BB -:101DC000324390464646721E96413343DAE0002B7A -:101DD00000D114E26346134300D168E180234E072B -:101DE000C008C9081B030643194208D06046C00852 -:101DF000184204D163460100D2085E071643F3007F -:101E00009946C900720F444D11434B46DE08424BC0 -:101E10004F073743CA089D4200D16EE012036D059B -:101E2000120B6D0D00211203130B0A0D12051A433C -:101E30003B4B2D0513402B435B00E4075B0823431A -:101E4000380019003CBC90469946A246AB46F8BD06 -:101E50006346134311D0731E002B00D007E1861890 -:101E60008642804161444042091801250B0237D562 -:101E700002257BE73E00614691463500C5E75C469A -:101E8000002D00D0E1E00B000343F3D0731C00D120 -:101E9000ACE1214B9F4200D13AE1F343382B00DD06 -:101EA0006FE11F2B00DD8CE120250E00ED1AAE4006 -:101EB000B0460600AA46DE40454635432E0055464C -:101EC000D940A8406346451EA8415B1A9C46304352 -:101ED000161AB242924163465242991A3D00B4E644 -:101EE00007223240002A00D0E4E60B4BF6084F07E9 -:101EF0003743CA089D4200D090E73B00134300D10E -:101F0000A6E180231B031A431203120B024D89E73B -:101F100015000022002785E7FF070000FFFF7FFF75 -:101F2000FFFF0F80002E00D0C7E06B1C5E05760D12 -:101F3000012E00DCF0E0C84DAB4200D1B9E08518BD -:101F40000A00854289416244494251180722CE075E -:101F50006D082E43490832401D00A9E6BF49ED1A1D -:101F6000114007223240A3E6320028388240002682 -:101F700086E6300000F084FA203073E663461343AF -:101F80005A1E9341C61AB04280414042091A5CE68B -:101F90000E00674606431743002D5ED1002E00D089 -:101FA000F3E0002F00D11EE15C46614691462CE72C -:101FB000A94FBE427BD01E00F1E610001F3DE84055 -:101FC000202B03D04021CB1A9A401643731E9E410A -:101FD0000722064332400021002583E7161A634694 -:101FE000B2428041591A40420B1A98465C4632E68A -:101FF0001F2E00DDABE02027BB1B9A4663465746E9 -:10200000BB40994613004F46F3401F433B005746E1 -:10201000BA40571EBA4113436246F240891898E607 -:102020002027BB1B9A4663465746BB409946130080 -:102030004F46F3401F433B005746BA40571EBA4134 -:1020400013436246F240891A9CE7834B9F425FD05C -:1020500080252D047342294320E7002E0CD1002F48 -:1020600000D1D0E05C46614691467B4DCDE67A4F8B -:10207000BE421CD01E0065E6002F18D0C0084E07D7 -:1020800006438020C9080003014208D06346DC08EB -:10209000044204D12100DA46D2085E071643F30059 -:1020A000994601245346C900720F11431C406A4DE2 -:1020B000ABE61D0000220027B4E6002D59D10B002D -:1020C000034300D1D6E6731C00D1B2E0624B9F42BD -:1020D0001ED0F343382B6FDC1F2B00DD97E020254B -:1020E0000E00ED1AAE40B0460600AA46DE40454658 -:1020F00035432E005546A840D940451EA8418C4482 -:102100000643B61896429241514261443D0025E68D -:102110003D006146914678E60B000343002D00D058 -:1021200055E6002BF5D06346134300D16DE68618C3 -:102130008642804161444042091800220B0200D4CB -:10214000D0E6464B01351940B2E5B1465DE63300B5 -:102150006746203BDF403B00202E05D04027BF1BB9 -:102160006646BE40324390464646721E9641334311 -:10217000EFE5394B9F42CBD080252D047342294394 -:10218000A8E70843411E8841A2E6002F00D13CE6A3 -:102190006346861ACF1AB0429B415B42FB1A9846AF -:1021A0001B024ED5161A6346B2429241591A524248 -:1021B000891A5C4600227BE501430E00711E8E41A8 -:1021C0009FE71D000E00203DEE40B046202B04D0BE -:1021D0004025EB1A99400843814648464346411E34 -:1021E0008841184374E60022002417E6161A634655 -:1021F000B2429241591A5242891A3D0025E5614680 -:102200009146154D01E680220024120379E61D0057 -:102210000E00203DEE40B046202B04D04025EB1AA6 -:102220009940084381464E464346711E8E411E43E7 -:1022300067E7861896429B4161445B42C9183D009E -:102240008CE547463743CED007224146324049E627 -:1022500000273A00E6E5C046FF070000FFFF7FFFCA -:1022600070B500282DD0C317C5185D40C40F2800D5 -:1022700000F006F9154B1B1A5B055B0D0A2815DDEE -:102280000B38854000222D032D0B002110002D035B -:102290000A0D2D0B12052A430D4D1B052A40134331 -:1022A0005B00E4075B082343190070BD02002900AE -:1022B000153291400A000B21081AC5402D032D0B41 -:1022C000E3E70024002300250022DEE71E040000CF -:1022D000FFFF0F804100090E4B1C70B5DBB24602B8 -:1022E000750AC40F012B14DDE0239B006D07360B2C -:1022F000CB1800210A0D280012051C4D32435B0546 -:102300002A405B0813435B00E4075B082343190082 -:1023100070BD002914D1002D1ED0280000F0B0F8A7 -:102320000A281CDC0B232A001B1ADA400300153391 -:102330009D400F4B12031B1A5B05160B5B0DD8E774 -:10234000002D06D0320B802636036D071643094B4D -:10235000CFE7084B0026CCE700230026C9E703009F -:102360002A000B3B9A400025E3E7C046FFFF0F80A1 -:1023700089030000FF070000F0B54C00640D0B035B -:10238000621C5B0A460F5205C90F1E43C500520D61 -:10239000012A29DD374BE718FE2F1CDC002F3BDD1F -:1023A0008001431E98410722F3006D0F03432B4326 -:1023B0001A40002A04D00F221A40042A00D0043305 -:1023C0008022D2041A4024D00137FAB2FF2F02D063 -:1023D0009B01580A01E0FF2200204002D205400A7A -:1023E000C90710430843F0BD3543002C04D1002D2C -:1023F0000AD100220020F0E7002DECD08020C0039D -:102400003043FF22E9E7002400235B02580AE2B2CE -:10241000E3E7DB083C00F8E73B001733F3DB8023FE -:102420001B0433431E26F61B1F2E14DD02225242CC -:10243000D71B1A00FA401700202E04D00E4A9446EB -:102440006444A3401D432B005D1EAB4107223B4368 -:102450001A400027ADE7094A2800A218954093408A -:102460006C1EA541F04007222B4303431A4000276E -:102470009FE7C04680FCFFFFA2FCFFFF82FCFFFF3E -:102480001C2101231B04984201D3000C10391B0AA4 -:10249000984201D3000A08391B09984201D3000968 -:1024A000043902A2105C40187047C04604030202BF -:1024B00001010101000000000000000000B589B02A -:1024C0001022002104A803F0A6F8144B59698020BB -:1024D0008002014359615A6902400192019A5A6986 -:1024E0008021C9020A435A615B690B400293029B37 -:1024F00018230393163B0593902003A9C00502F00F -:1025000007FD80235B01039300230493059303A934 -:10251000034802F0FDFC09B000BDC04600100240B7 -:102520000004004800B583B0094A516901231943EA -:102530005161526913400193019B0022002109203F -:1025400002F09EFE092002F0CBFE03B000BDC046A3 -:102550000010024070B586B0264B5A6901263243FE -:102560005A615A6932400192019A9A698021890020 -:102570000A439A619B690B400293029B0C22002143 -:1025800003A803F048F81C4C1C4B23600025656031 -:10259000A560E560266108236361A561E5612562A8 -:1025A00065623833A3628023DB00E36226636663DF -:1025B000200000F07BFE039580235B01049302352D -:1025C000059503A9200001F041F8039603A9200016 -:1025D00001F03CF8039503A9200001F037F805232A -:1025E000039303A9200001F031F8200000F0F2FC71 -:1025F00006B070BD001002403805002000240140E4 -:1026000010B50D4C0D4B23600D4B63600023A36090 -:102610000122E26023616361A361E3612362200020 -:1026200001F08EF90021200001F0B4FA0021200011 -:1026300001F0DCFA10BDC046FC010020005400404F -:102640000E09002010B50D4C0D4B23600D4B63603F -:102650000023A3600122E26023616361A361E3615F -:102660002362200001F06CF90021200001F092FAB1 -:102670000021200001F0BAFA10BDC0464802002037 -:10268000005800405D3E302070B596B0354B9A69D9 -:1026900080252D012A439A619B692B400193019B60 -:1026A0001022002112A802F0B6FF0822002110A873 -:1026B00002F0B1FF1C22002109A802F0ACFF1C228D -:1026C000002102A802F0A7FF274C284B2360656079 -:1026D0000025A56080267601E66080239B002361AB -:1026E0006561813BFF3BA361200001F0A3FC1296D2 -:1026F00012A9200001F0E0FD200001F0CFFC200035 -:1027000001F0B2FC1095119510A9200001F0BCFE5B -:10271000602309932E3B0A930B950C950D950E950E -:102720000F95002209A9200001F044FD70230993B0 -:102730000F4B0A930C2209A9200001F00DFD029510 -:10274000039504950595069580239B0107930895AD -:1027500002A9200001F0BEFE200000F00BFD16B023 -:1027600070BDC0460010024094020020002C0140C1 -:10277000FA0F000010B50748074B036008234360B9 -:10278000063B8360036100238361C361036201F040 -:10279000E1FE10BD18030020005C0040F0B5C64605 -:1027A00000B582B0734DE888FEF75EFCFFF792FD3E -:1027B0000022714BFEF798FC704A714BFEF796FFB2 -:1027C0000022704BFFF704FA6F4A704BFEF78CFC47 -:1027D000FFF7D2FD061C6E4C206168886D4F3B6888 -:1027E0009846FEF7F7FB4146FEF710FA7968FEF7C8 -:1027F000DBF86949FDF700FF011C301CFDF762FDA5 -:10280000061C2060A888FFF72BFD00225A4BFEF71C -:102810006BFC5A4A5A4BFEF769FF584A5F4BFEF76A -:1028200065FFFFF7A9FDA0602888FFF719FD0022CA -:10283000514BFEF759FC514A514BFEF757FFFFF73A -:102840009BFDE06056496068FEF7AEF8051C5549EF -:10285000301CFEF7A9F8011C281CFDF733FD051CF0 -:102860006060514B1C68DE6A311C201CFEF7CEF9FB -:10287000011C281CFDF704FD002853D0311C201C2E -:10288000FDF720FD011C281CFDF7E6FC002849D0BF -:10289000291C201CFEF7BAF9051C434F7860FC6820 -:1028A000FE69311CFEF780F8011C201CFDF70AFDB3 -:1028B000041C3F69391CFDF7D9FC002809D180238D -:1028C0001B06F9180F1C201CFDF7BCFC002800D1CA -:1028D000271C354CE760A168281CFEF797F9311CCE -:1028E000FDF78AFE061C6061216A281CFEF75CF871 -:1028F0000190391C606AFEF757F8011C0198FDF73A -:10290000E1FC071CA16A301CFEF74EF8011C381CC4 -:10291000FDF7D8FC2549FEF747F8FEF73BFB20837F -:10292000A5600BE0211C281CFDF796FC002818D0A0 -:102930001D4B1F4A1A831C4B1E4A5A601A4B182201 -:102940009A5E1B4B9A4212DC131C002A0DDB1BB251 -:10295000154A1383184A1268536302B004BC9046A8 -:10296000F0BD114B00221A83E5E70023EFE7104B7F -:10297000EEE7C046F400002000FEAF4066666666E3 -:1029800066660A400000E03F7B14AE47E17A843F70 -:10299000FC0000206400002000007A4466661A40B3 -:1029A0006666663FD0CCCC3D3400002000207D45DB -:1029B000D20F0000000040419402002010B582B008 -:1029C00011220E490E4802F01DFE00240D4801F0B0 -:1029D000DDF8202806D0631C9BB20B4A944201D834 -:1029E0001C00F3E7FA239B0000933223074A782167 -:1029F000044801F00BF802B010BDC046C45F0008E7 -:102A000020010020FC010020102700000000002011 -:102A100010B582B000240B4801F0B8F8202806D089 -:102A2000631C9BB2084A944201D81C00F3E7FA23C6 -:102A30009B000093D123054A7821024800F0E6FF6D -:102A400002B010BDFC010020102700002001002072 -:102A500010B5C0220021024802F0DDFD10BDC046C5 -:102A60003101002030B55F281BDC0F2919DC012A59 -:102A700018D0002A15D1CC1707231A00224052186B -:102A8000D2105500AA18550128181130640F0919E1 -:102A90001940091B09B201228A400E490B5C93437D -:102AA0000B5430BDCC1707231A0022405218D21005 -:102AB0005500AA18550128181130640F09190B4048 -:102AC0001B1B1BB201229A4002490B5C13430B549F -:102AD000E7E7C04620010020F0B583B006000D00F6 -:102AE00017000193002406E0611909B2019A300031 -:102AF000FFF7B8FF0134A742F6DA03B0F0BD0000DB -:102B0000F0B5C64600B50F0090467F2303401F2B4B -:102B100008D9203BDBB25A00D3185E00114BF618DF -:102B2000002518E00023F6E743461919781900221A -:102B3000FFF798FF0134E4B2072C0AD8735D2341F4 -:102B4000DB07F1D54346191978190122FFF78AFFEF -:102B5000F0E70135EDB2052D01D80024ECE704BC07 -:102B60009046F0BDD85F0008F8B507000C001600CD -:102B70001D0007E001372B0032002100FFF7C0FFE6 -:102B80000634E4B238780028F4D1F8BD10B598B016 -:102B90002C2200210CA802F03EFD1024102200215E -:102BA00007A802F038FD1C220021684602F033FD20 -:102BB00032230B93313B0E93139310930F94119484 -:102BC0000E3C1494C0225202159217930BA801F0E8 -:102BD00021FD072307930894002409940A940121F6 -:102BE00007A801F0DFFF044B0093049406946846A5 -:102BF00002F0A0F818B010BD20000200F0B58DB0B2 -:102C000002F056F9FFF7C2FFFFF758FCFFF78AFC06 -:102C1000FFF7A0FCFFF7F4FCFFF714FDFFF734FD0E -:102C2000FFF7A8FDB24C0021200001F005FC0C21AB -:102C3000200001F0D9FB0422AE49AF4800F0F4FBBC -:102C4000142002F053F9FFF7B9FE3C2002F04EF9D0 -:102C5000FFF7FEFE90200821C00502F025FA0028AB -:102C600024D090201021C00502F01EFA00281DD0AB -:102C7000A24C0123012201212000FFF775FF01234F -:102C8000082201212000FFF76FFFFFF7C1FE282077 -:102C900002F02CF99A4B9B4A1A60BFF34F8F9A4B64 -:102CA0009A4ADA60BFF34F8FC046FDE70123012245 -:102CB0000F219748FFF758FF012309220A21954861 -:102CC000FFF752FFFFF7A4FEFA20800002F00EF992 -:102CD000914B1888FEF7C8F9904B1860DDE08F4CD7 -:102CE0008F492068FDF792FF20608E4B01221A75F4 -:102CF000322002F0FBF8E4E0884C89492068FDF7B7 -:102D0000E1FA2060874B01221A75322002F0EEF8BA -:102D1000DCE0854C814B1C60824B01221A7502F06D -:102D200033FB824B1A6902210A431A617A4A5A61BB -:102D30001A693E310A431A617C4BDB68DB07FBD41E -:102D40007A4BDB689B0665D403AE794B31001A00E1 -:102D500011CA11C11088088006AD2900180090C85A -:102D600090C11088088009AC210081CB81C11388F3 -:102D70000B806A4B1868FDF78DFA82B26D493000FE -:102D800002F052FC674F7B680093181CFDF782FA33 -:102D900082B201921000FEF71DF9011C0098FDF7A8 -:102DA00035FF6549FDF700FEFDF774FA83B2019A1D -:102DB0006249280002F038FCBF68381CFDF76AFA47 -:102DC00083B200931800FEF705F9011C381CFDF7CB -:102DD0001DFF5949FDF7E8FDFDF75CFA83B2009A43 -:102DE0005749200002F020FCFFF732FE01230122A8 -:102DF0000A213000FFF7B8FE012309220A2128002A -:102E0000FFF7B2FE012301223C212000FFF7ACFEB8 -:102E1000002429E0454BDA6820210A43DA601A6968 -:102E20001E398A431A613D4B1868FDF733FA82B2A6 -:102E300000233949012002F0F7FA02F0BDFA00221E -:102E4000384B1A7580E73F4D291C301CFDF704FAFA -:102E5000002820D020003C3000B2012308220821A5 -:102E6000FFF73AFE0134A4B22000FEF7B3F8061CC7 -:102E70002A4B58683449FDF797FD051C3149FDF789 -:102E8000F5F90028DFD10021281CFDF7DBF9002827 -:102E9000DAD00025D8E7FFF7BBFD322002F026F894 -:102EA0009025ED050821280002F0FEF81D4C607504 -:102EB0001021280002F0F8F8A075637D012B00D1E5 -:102EC0000DE7184B9B7D012B00D115E7134B1C68B8 -:102ED0001549201CFDF7CAF9002800D019E71B4945 -:102EE000201CFDF7AFF9002800D113E7174C11E7BC -:102EF00094020020F4000020380500201862000829 -:102F0000F03F0020EFBEADDE00ED00E00400FA056A -:102F1000286200083462000800E400083400002041 -:102F20000000A040FC0000200000C8430020024038 -:102F3000585E000844620008000020414C6200080E -:102F4000546200080000F041000040400000A04131 -:102F50007047FEE77047704710B501F0B9FF10BD2C -:102F600010B5024800F004FB10BDC0463805002033 -:102F700010B5034802F02FF9FFF710FC10BDC04652 -:102F8000D402002010B5024800F055FF10BDC04625 -:102F90009402002010B5024800F04DFF10BDC0465D -:102FA0009402002082B00A4B996901221143996171 -:102FB00099690A400092009ADA69802149050A431A -:102FC000DA61DB690B400193019B02B07047C04698 -:102FD0000010024030B589B004001422002103A87B -:102FE00002F019FB1D4B22689A4201D009B030BD96 -:102FF0001B4B996980208000014399619A690240C6 -:103000000192019A5A69802189020A435A615B69D7 -:103010000B400293029B27230393243B04937138B4 -:10302000FF3803A9C00501F073FF0E4D0E4B2B6056 -:1030300000236B60AB608033EB6080332B618023B7 -:10304000DB006B612023AB6180239B01EB612800D7 -:1030500002F05AF8E5636C62C8E7C04600240140FC -:1030600000100240D40200200800024010B58AB0CF -:1030700004001422002105A802F0CDFA2368254A95 -:10308000934204D0244A934222D00AB010BD234C6C -:1030900062698021C9020A43626163690B4001933E -:1030A000019BC0230593AE3B0693113B079303227C -:1030B0000892099305A91A4801F02AFFE2698021C4 -:1030C00089030A43E261E3690B400293029BDCE758 -:1030D000124C62698021C9020A43626163690B4034 -:1030E0000393039BC0231B01059312230693113BFB -:1030F000079303220892099305A9094801F008FFE4 -:10310000E2698021C9030A43E261E3690B40049349 -:10311000049BBAE7005400400058004000100240F1 -:103120000004004800B583B00268104B9A4201D0F9 -:1031300003B000BD0E4A91698020000101439161F6 -:10314000936903400193019B002200210D2002F0AE -:1031500097F80D2002F0C4F8002200210E2002F0A2 -:103160008FF80E2002F0BCF8E2E7C046002C0140C8 -:103170000010024010B588B004001422002103A8FA -:1031800002F049FA2268124B9A4201D008B010BDF1 -:10319000104B996980200001014399619A690240AE -:1031A0000192019A5A69802189020A435A615B6936 -:1031B0000B400293029B80235B000393FE3B04932E -:1031C0000793902003A9C00501F0A2FEDEE7C046E8 -:1031D000002C01400010024082B00268074B9A4266 -:1031E00001D002B07047064AD16980200004014333 -:1031F000D161D36903400193019BF2E7005C004079 -:103200000010024030B583B004000023019303682E -:10321000996803220A40012A0ED09968204A114277 -:1032200012D19A6801210A439A601E4B18681E4900 -:10323000FCF76AFF019015E01A68D2072DD4DA680E -:103240001204EAD5002008E0636C10221343636483 -:10325000A36C0F3A1343A364012003B030BD019B5C -:10326000013B0193019B002BF9D101F039FE0500D0 -:1032700023681B68DB070ED401F032FE401B0228D6 -:10328000F6D9636C102213436364A36C0F3A1343A3 -:10329000A3640120E1E70020DFE70020DDE7C0466E -:1032A000170000806C00002040420F0070B5041E23 -:1032B00000D1B0E0436C002B7DD0636CDB0600D501 -:1032C000A3E021688B6804221A4000D09DE0636C63 -:1032D000524803400630FF30034363648868032389 -:1032E0000340012B6DD0CB6818208343A0680343B3 -:1032F000CB6021680B699B009B08606803430B61EE -:103300002168CB6846480340CB60A3699B03E16911 -:10331000C9030B43216A48030343606B012857D05C -:10332000802040010343E06803432069022851D014 -:103330001343226B52001343626A012A4CD0A26AE3 -:10334000C221FF318A4202D0E16A0A431343216855 -:10335000CA681A43CA60A26B802149058A420DD00F -:10336000012A0BD0022A09D0032A07D0042A05D04B -:10337000052A03D0062A01D0072A0AD1206841690C -:1033800007229143416120684169A56B2A400A43A5 -:1033900042612268D26823490A409A422BD0636C6A -:1033A00012229343023A13436364A36C0F3A13430C -:1033B000A36401202EE0836440228354FFF70AFEB9 -:1033C0007BE70B68DB079BD4CB681B0498D48AE7A8 -:1033D0001000A7E70422ABE7002903D180225202A4 -:1033E0001343ACE7626C20210A436264A26C1F396C -:1033F0000A43A264A3E70023A364636C03229343FC -:10340000023A13436364002004E0636C1022134308 -:103410006364012070BD0120FCE7C046FDFEFFFF94 -:103420001902FEFFE7FF3F83F8B504000E00170006 -:1034300003689B685B073ED44023C35C012B3CD0F0 -:1034400040230122C254C369012B32D0FFF7DAFEB8 -:10345000051E2CD1636C1A4A1A4080235B0013436B -:1034600063640023A3644022A354E36B154A9A6269 -:10347000E36B154ADA62E36B144A1A6323681C2271 -:103480001A602268536810210B4353602268D36886 -:103490000F390B43D360216840313B003200E06BB1 -:1034A00001F05EFE2268936804210B4393602800BC -:1034B000F8BD0025CEE70225F9E70225F7E7C0466B -:1034C000FEF0FFFFD53400084735000855350008E9 -:1034D0007047000010B5436A5A6C5021114203D066 -:1034E000DB6B1B6B984710BD596C802292000A431E -:1034F0005A641A68D068C0210901084213D1196AB8 -:10350000002910D1116809070DD5916849070ED41B -:1035100051680C20814351605A6C09490A400431BA -:10352000FF310A435A641800FFF7D2FFDBE75A6CF9 -:1035300020210A435A649A6C1F390A439A64F2E7BD -:10354000FEFEFFFF704710B5406AFFF7FBFF10BD9E -:103550007047704710B5406A436C40221343436480 -:10356000836C3C3A13438364FFF7F3FF10BD000004 -:1035700010B5040003681A68520702D55A6852074A -:1035800005D41A68120729D55A68120726D5626C25 -:10359000D20604D4616C802292000A436264D96826 -:1035A000C0221201114213D1226A002A10D11A68D6 -:1035B00012070DD59A68520731D45A680C218A43F4 -:1035C0005A60636C204A13400432FF321343636431 -:1035D0002000FFF77DFF23680C221A6023681A6819 -:1035E000120602D55B681B0622D423681A68D2062D -:1035F00014D55A68D20611D5626B012A02D0DA6856 -:10360000D20708D5A26C02210A43A26410221A60D4 -:103610002000FFF79EFF236810221A6010BD636C24 -:10362000202213436364A36C1F3A1343A364CFE7C0 -:10363000626C80235B02134363642000FFF788FF02 -:10364000236880221A60D0E7FEFEFFFF30B583B00A -:103650000400002301934033C35C012B00D18AE0B6 -:1036600040230122C25403689A68520775D4434A22 -:103670004868904256D09A6A01200D68A8400243DB -:103680009A62A36B8022520593421ED0012B1CD05C -:10369000022B1AD0032B18D0042B16D0052B14D0D4 -:1036A000062B12D0072B10D0226850690723034045 -:1036B0008868984209D05069072398435061206870 -:1036C00042698D682B40134343610B681A00103A1E -:1036D000022A4CD82A4A1268102B0ED0112B09D07E -:1036E00080235B041343264A13600B68102B07D01A -:1036F000002037E08023DB03F4E780231B04F1E79D -:10370000204B18682049FCF7FFFC83001818430081 -:10371000019302E0019B013B0193019B002BF9D136 -:1037200000201FE09A6A01200D68A84082439A6237 -:103730000B681A00103A022A1BD8114A1268102B83 -:1037400009D0112B05D0114B13400D4A13600020F6 -:1037500008E00F4BF8E70F4BF6E7436C20221343CA -:103760004364012040230022E25403B030BD002016 -:10377000F8E70020F6E70220F7E7C0460110000056 -:10378000082701406C00002040420F00FFFFFFFEB1 -:10379000FFFFBFFFFFFF7FFF03689A69920701D514 -:1037A00000229A6203689A69D20703D49A690121B8 -:1037B0000A439A617047000030B51D0004686068D4 -:1037C000064B18408905890D12040B0013432B4347 -:1037D000039A13430343636030BDC046009800FC66 -:1037E00070B504000E00150003689B69DB0616D552 -:1037F00023689A69920614D4731CF9D0002E04D061 -:1038000001F06EFB401BB042F2D941232022E2546A -:1038100000232232A354023AA354032018E00020CC -:1038200016E01022DA6123682025DD612000FFF711 -:10383000B3FF2268536807490B4053600423636455 -:103840003D33E55400234222A354023AA3540120FD -:1038500070BDC04600E800FE70B504000D00160003 -:1038600023689B699B071CD4320029002000FFF7C6 -:10387000B7FF002817D16B1CF2D0002D04D001F047 -:103880002FFB801BA842EBD9636C20221343636497 -:103890004123E25400232232A354023AA3540320CA -:1038A00000E0002070BD0120FCE7F8B506000C0028 -:1038B00017001D0033689B6923401B1B5A4253416C -:1038C000BB4213D16B1CF5D0002D05D001F008FBD5 -:1038D000069BC01AA842EDD941232022F2540023AE -:1038E0002232B354023AB354032000E00020F8BD62 -:1038F00070B505000C0016002B689B699B061AD456 -:10390000320021002800FFF76BFF002815D1002CA2 -:1039100004D001F0E5FA801BA042EDD96B6C2022A7 -:1039200013436B644123EA5400232232AB54023A1E -:10393000AB54032070BD0020FCE70120FAE7000033 -:1039400010B5041E59D04123C35C002B43D0412342 -:103950002422E2542268136801218B4313602268F9 -:10396000274B61680B4013612268936825490B401F -:103970009360E368012B34D0226884231B02A16882 -:103980000B439360E368022B32D0226851681E4BD0 -:103990000B4353602268D3681A490B40D3602369F4 -:1039A00062691343A269120221681343CB60226843 -:1039B000E369216A0B4313602268136801210B43FA -:1039C00013600023636441221F31A1542363013239 -:1039D000A354002010BD40330022C254FFF746FB21 -:1039E000B5E7226880231B02A1680B439360C9E7F7 -:1039F0002368802212015A60C7E70120EAE7C04627 -:103A0000FFFFFFF0FF7FFFFF00800002F0B585B0F1 -:103A10000500039117001E004123C35C202B00D03A -:103A2000A5E02033C35C012B00D1A3E04023012299 -:103A3000C25401F055FA040080210090192301229C -:103A400009022800FFF731FF002800D094E041234D -:103A50002122EA540133113AEA5400236B646F6265 -:103A60006E856B636B8D9BB2FF2B0CD9FF232B856F -:103A70007F3B8022920100925B04FF220399280081 -:103A8000FFF79AFE1FE06A8D92B22A858023D2B298 -:103A90008021890100919B0403992800FFF78CFE87 -:103AA00011E06B6C042B00D068E0012060E06A8DAF -:103AB00092B22A858023D2B2002100919B040399FF -:103AC0002800FFF779FE6B8D9BB2002B33D02200CC -:103AD0000A992800FFF7C0FE0028E2D16B6A5A1C41 -:103AE0006A622A681B7893626B8D013B9BB26B857F -:103AF0002B8D013B9BB22B85002BE4D16B8D9BB2B0 -:103B0000002BE0D000940A9B002280212800FFF7C0 -:103B1000CCFE002834D16B8D9BB2FF2BC7D9FF237D -:103B20002B857F3B002200925B04FF320399280023 -:103B3000FFF742FEC7E722000A992800FFF7D8FEE8 -:103B4000002804D06B6C042B1CD1012010E02B68E2 -:103B50002022DA6129684B680B4C23404B604123DB -:103B6000EA5400232232AB54023AAB5400E0022064 -:103B700005B0F0BD0220FBE70320F9E70320F7E7DB -:103B80000320F5E70320F3E700E800FE4123C05CD3 -:103B9000C0B27047F0B54123C35C202B20D1203345 -:103BA000C35C012B1ED04024012202554125242351 -:103BB00043550668336893433360066833680A4F99 -:103BC0003B403360066833681943316001680B6815 -:103BD00013430B602023435500230355002000E0CE -:103BE0000220F0BD0220FCE7FFEFFFFFF0B541230C -:103BF000C35C202B1ED12033C35C012B1CD040247E -:103C00000122025541252423435506683368934316 -:103C1000336006683368094F3B400902194331603D -:103C200001680B6813430B602023435500230355A1 -:103C3000002000E00220F0BD0220FCE7FFF0FFFFC3 -:103C400030B5036A012293430362036A42688469C0 -:103C50007325AC430D682C430225AB438D682B4381 -:103C6000144DA84208D0144DA84205D0134DA842C7 -:103C700002D0134DA84205D10825AB43CD682B4394 -:103C80000425AB430B4DA84208D00B4DA84205D0EC -:103C90000A4DA84202D00A4DA84205D1094D2A403A -:103CA0004D692A438D692A43426084614A684263B0 -:103CB000036230BD002C014000400140004401403F -:103CC00000480140FFFCFFFF70B5036A194A13402A -:103CD0000362036A4268C4697325AC430E682643D5 -:103CE000154C23408C6824022343144CA04219D065 -:103CF000124CA04208D0124CA04205D0114CA04258 -:103D000002D0114CA04207D1104C14404A69120154 -:103D100022438C6925012A434260C6614A68C26316 -:103D2000036270BD0A4C1C40CB681B022343094C44 -:103D30002340DDE7FFFEFFFFFFFDFFFF002C0140FA -:103D4000004001400044014000480140FFCFFFFF18 -:103D5000FFF7FFFFFFFBFFFF30B5036A134A134075 -:103D60000362026A4368C469114D2C400D682D023C -:103D70002C43104D15408A6812032A430E4DA84269 -:103D800008D00E4DA84205D00D4DA84202D00D4DD1 -:103D9000A84204D10C4D2B404D69AD012B4343602B -:103DA000C4614B680364026230BDC046FFEFFFFF91 -:103DB000FF8CFFFFFFDFFFFF002C014000400140B0 -:103DC0000044014000480140FFBFFFFF30B5036AD7 -:103DD000046A0125AC4304628469EF35AC431201E7 -:103DE00022430A24A34319438261016230BD0000CB -:103DF00030B5036A1024A34303628469036A054D46 -:103E00002C4012032243A024A343090119438261D9 -:103E1000016230BDFF0FFFFF8368702293430722CA -:103E2000114319438160704770477047704770476E -:103E300070477047704710B5040003681A6992070D -:103E40000FD5DA6892070CD5032252421A6101237A -:103E5000037703689B699B0763D0FFF7E9FF0023A3 -:103E6000237723681A69520712D5DA6852070FD5EB -:103E7000052252421A610223237723689A69C023DC -:103E80009B001A4253D02000FFF7D2FF0023237774 -:103E900023681A69120710D5DA6812070DD50922AE -:103EA00052421A61042323772368DB699B0745D0BC -:103EB0002000FFF7BDFF0023237723681A69D2068D -:103EC00012D5DA68D2060FD5112252421A610823A0 -:103ED00023772368DA69C0239B001A4235D020007B -:103EE000FFF7A6FF0023237723681A69D20702D5BC -:103EF000DA68D20730D423681A69120602D5DA6864 -:103F0000120630D423681A69520602D5DA685206BE -:103F100030D423681A69920602D5DA68920630D442 -:103F200010BDFFF784FF2000FFF783FF97E7200015 -:103F3000FFF77DFF2000FFF77CFFA7E72000FFF7DA -:103F400076FF2000FFF775FFB5E72000FFF76FFF52 -:103F50002000FFF76EFFC5E7022252421A612000DF -:103F6000FFF764FFC7E7812252421A61200000F088 -:103F7000F0FAC7E7412252421A612000FFF75AFFC8 -:103F8000C7E7212252421A61200000F0E1FAC7E798 -:103F90000368214A904206D08022D205904202D086 -:103FA0001E4A904203D1702293434A6813431A4A2F -:103FB000904212D08022D20590420ED0174A9042F1 -:103FC0000BD0174A904208D0164A904205D0164AA4 -:103FD000904202D0154A904203D1154A1340CA6854 -:103FE0001343802293434A69134303608B68C3627F -:103FF0000B688362084B984208D00A4B984205D060 -:10400000094B984202D0094B984201D10B690363D6 -:10401000012343617047C046002C0140000400406A -:1040200000200040004001400044014000480140A1 -:10403000FFFCFFFF70B5041E14D03D23C35C002BB2 -:104040000AD03D2502236355211D2068FFF7A0FFFC -:1040500001236355002070BD3C330022C254FFF79A -:10406000E3FEEEE70120F6E770B5041E14D03D2311 -:10407000C35C002B0AD03D2502236355211D206817 -:10408000FFF786FF01236355002070BD3C330022FB -:10409000C254FFF7CAFEEEE70120F6E770B5041E32 -:1040A00014D03D23C35C002B0AD03D250223635569 -:1040B000211D2068FFF76CFF01236355002070BDB0 -:1040C0003C330022C254FFF72DF8EEE70120F6E75B -:1040D00070B5036A102293430362036A42688469DD -:1040E000174D2C400D682D0225432024A3438C68D6 -:1040F00024012343134CA04219D0124CA04208D0F3 -:10410000114CA04205D0114CA04202D0104CA0424C -:1041100007D1104C14404A69920022438C69A600D2 -:104120003243426085614A688263036270BD8024C5 -:10413000A3431C00CB681B0123434024A343DCE7BB -:10414000FF8CFFFF002C0140004001400044014073 -:1041500000480140FFF3FFFF10B504003C23C35C9F -:10416000012B25D03C230120E05401330130E054E1 -:10417000042A15D007D9082A16D00C2A08D120689D -:10418000FFF7EAFD04E0002A02D12068FFF758FD9E -:104190003D230122E254013B0022E254002010BDE5 -:1041A0002068FFF795FFF3E72068FFF78DFDEFE745 -:1041B0000220F4E770B504000D003C23C35C012B22 -:1041C00069D03C230121C15401330131C154042A77 -:1041D00037D019D9082A4AD00C2A2AD129000068D8 -:1041E000FFF7BAFD2268D16980231B010B43D3611D -:1041F0002268D36929490B40D3612168CB692A69B8 -:1042000012021343CB6114E0002A12D12900006886 -:10421000FFF716FD2268936908210B43936122681A -:10422000936904398B4393612268936929690B432D -:1042300093613D230122E254013B0022E25400201D -:1042400070BD29000068FFF743FF22689169802351 -:104250001B010B4393612268936910490B409361E2 -:1042600021688B692A69120213438B61E1E72900F7 -:104270000068FFF729FD2268D36908210B43D36149 -:104280002268D36904398B43D3612268D3692969D1 -:104290000B43D361CDE70220D2E7C046FFFBFFFF0F -:1042A00030B58468034D2C401B021A43114321434F -:1042B000816030BDFF00FFFF10B504003C23C35CEC -:1042C000012B00D17FE03C230122C2540133013293 -:1042D000C254026893683D48034093600B68402BCA -:1042E0005DD010D9702B43D020D8502B4DD0602BEF -:1042F00036D1CA6849682068FFF77AFD60212068D6 -:10430000FFF78AFD2CE0102B53D008D9202B55D075 -:10431000302B25D130212068FFF77EFD20E0002BD7 -:104320001ED100212068FFF777FD19E0802252019D -:10433000934210D080229201934211D1CB684A68F7 -:1043400089682068FFF7ACFF226891688023DB0151 -:104350000B43936004E02268936807218B439360CA -:104360003D230122E254013B0022E254002010BD13 -:10437000CB684A6889682068FFF792FF22689368D3 -:1043800077218B430B439360EAE7CA68496820684A -:10439000FFF71CFD50212068FFF73EFDE0E7CA68EB -:1043A00049682068FFF712FD40212068FFF734FDBF -:1043B000D6E710212068FFF72FFDD1E720212068E4 -:1043C000FFF72AFDCCE70220D1E7C0468800FFFFB7 -:1043D00010B501248C40036AA3430362036A8A4038 -:1043E0001A43026210BD000010B5040001220068EB -:1043F000FFF7EEFF23680C4A934208D00B4A934222 -:1044000005D00B4A934202D00A4A934204D1596C18 -:10441000802212020A435A642268136801210B4366 -:104420001360002010BDC046002C01400040014038 -:10443000004401400048014010B50400012200681A -:10444000FFF7C6FF23680C4A934208D00B4A9342F9 -:1044500005D00B4A934202D00A4A934204D1596CC8 -:10446000802212020A435A642268136801210B4316 -:104470001360002010BDC046002C014000400140E8 -:104480000044014000480140F0B53C23C35C012BCF -:104490001ED03C22012585543D2402230355066885 -:1044A00073687027BB437360066873680F683B438B -:1044B00073600668B3688027BB43B3600668B3685F -:1044C00049680B43B3600555002383540020F0BDB9 -:1044D0000220FCE770B53C23C35C012B28D03C22B2 -:1044E000012585543D2402230355124BCE683340E9 -:1044F0008E683343104E33404E6833430F4E334083 -:104500000E6833430E4E33400E6933430D4E334035 -:104510004E6933430C4E334089690B430B4E334095 -:104520000B4301684B64055500238354002070BD84 -:104530000220FCE7FFFCFFFFFFFBFFFFFFF7FFFF91 -:10454000FFEFFFFFFFDFFFFFFFBFFFFFFF7FFFFF6B -:104550007047704770B5041E58D0EA23FF33C35C20 -:10456000002B05D0EA23FF330322E254002218E097 -:10457000E933FF330022C254FEF72EFEF2E7D100EA -:10458000891A8B00E31819002931012008700139BC -:104590000A7018002B300021017059639963D963A8 -:1045A000013260689042EAD8002214E0D100891AF2 -:1045B0008B00E3181D000A35FF3500212970013DED -:1045C0002A700335297009352960043529601D33A7 -:1045D000FF33196001329042E8D84023012221685C -:1045E000CA5200222168CA524421206842520C312A -:1045F00020684252064A2168CA5200221C3BE254FB -:104600000122EA23FF33E254002070BD0120FCE7C1 -:1046100000BFFFFF70B582B004000368DB072BD535 -:10462000B34B5A680C231340042B1DD0B04B5A686F -:104630000C231340082B0ED06368012B41D0002BB4 -:1046400056D1AB4B1A68AB490A401A601A68AA499E -:104650000A401A603BE0A64B5B68C022520213403E -:10466000802252029342E7D1A14B1B689B0303D5E2 -:104670006368002B00D139E223689B0778D59C4BF7 -:104680005B680C221A4262D0994B5A680C23134083 -:10469000082B53D0E368002B00D18BE0944A1368B9 -:1046A00001210B43136000F01BFC0500904B1B68BD -:1046B0009B0776D400F014FC401B0228F6D9032097 -:1046C00017E28B4A116880235B020B431360636817 -:1046D000002B25D000F004FC0500854B1B689B03D4 -:1046E000CAD400F0FDFB401B6428F6D9032000E289 -:1046F000052B09D07E4B1A687E490A401A601A6859 -:104700007D490A401A60E2E7794B19688022D2029B -:104710000A431A601968802252020A431A60D6E7D7 -:1047200000F0DEFB0500724B1B689B03A4D500F074 -:10473000D7FB401B6428F6D90320DAE16C4B5B6899 -:10474000C02252021340802212029342A2D1684B2F -:104750001B689B0704D5E368012B01D00120C8E149 -:1047600063490B68F82293432269D20013430B601C -:1047700023681B0744D5E369002B2ED05C4A536A9B -:1047800001210B43536200F0ABFB0500584B5B6A01 -:104790009B0735D400F0A4FB401B0228F6D9032068 -:1047A000A7E153490B68F82293432269D2001343CF -:1047B0000B60DDE74E4A136801218B43136000F064 -:1047C0008FFB05004A4B1B689B07D1D500F088FB87 -:1047D000401B0228F6D903208BE1454A536A012188 -:1047E0008B43536200F07CFB0500414B5B6A9B07E7 -:1047F00006D500F075FB401B0228F6D9032078E1AE -:1048000023685B0700D47FE0394BDB69DB001DD4F4 -:10481000374AD169802040050143D161D369034003 -:104820000193019B0125354B1B68DB0510D5A3685F -:10483000012B21D0002B36D12D4B1A6A01218A433E -:104840001A621A6A03318A431A621AE00025EAE7FB -:104850002A4A116880235B000B43136000F040FB81 -:104860000600264B1B68DB05E1D400F039FB801BFA -:104870006428F6D903203CE11D4A136A01210B4349 -:104880001362A368002B24D000F02AFB0600184B0B -:104890001B6A9B0736D400F023FB801B184B984201 -:1048A000F5D9032025E1052B09D0114B1A6A012106 -:1048B0008A431A621A6A03318A431A62E1E70C4B8F -:1048C0001A6A04210A431A621A6A03390A431A62ED -:1048D000D7E700F005FB0600054B1B6A9B0711D5C7 -:1048E00000F0FEFA801B064B9842F5D9032000E148 -:1048F00000100240FFFFFEFFFFFFFBFF00700040C3 -:1049000088130000012D3AD02368DB0610D56369B7 -:10491000012B3AD0053358D1784A536B04218B438D -:104920005363536BF4318B43A169C9000B43536349 -:1049300023689B0600D482E0704B5A680C23134016 -:104940000C2B60D06D4B5A680C231340082B53D0AE -:10495000236A002B60D0694A516B80235B020B43B2 -:10496000536300F0BDFA0500644B5B6BDB0366D458 -:1049700000F0B6FA401B0228F6D90320B9E05F4ADE -:10498000D3695F490B40D361BEE75C4B5A6B04218E -:104990000A435A635A6B03390A435A6300F0A0FA78 -:1049A0000500564B5B6B9B0706D400F099FA401B41 -:1049B0000228F6D903209CE050494B6BF822934320 -:1049C000A269D20013434B63B2E74C4B5A6B0421EC -:1049D0000A435A635A6B03398A435A6300F080FAD8 -:1049E0000500464B5B6B9B07A2D500F079FA401B94 -:1049F0000228F6D903207CE0404B5B68C0225202BB -:104A000013409342A4D13D4B5B6BDB0317D5236A64 -:104A1000012B14D001206CE0384A536B39490B400C -:104A2000536300F05DFA0500344B5B6BDB0306D586 -:104A300000F056FA401B0228F6D9032059E0636AB9 -:104A4000002B55D02D4A51680C220A40082A52D01A -:104A5000022B12D0294A13682B490B40136000F037 -:104A60003FFA0400254B1B689B013DD500F038FA46 -:104A7000001B0228F6D903203BE0204A1368224994 -:104A80000B40136000F02CFA05001C4B1B689B01C7 -:104A900006D500F025FA401B0228F6D9032028E0AD -:104AA000164BDA6A0F218A43216B0A43DA625A688D -:104AB00016490A40E16AA06A01430A435A6019682C -:104AC000802252040A431A6000F00AFA04000B4BD9 -:104AD0001B689B0106D400F003FA001B0228F6D9DC -:104AE000032006E0002004E0002002E0012000E0B6 -:104AF000002002B070BD0120FBE7C046001002405C -:104B0000FFFFFFEFFFFFFEFFFFFFFFFEFF7FC2FF84 -:104B100030B589B004AA1F4B180032C832C2110048 -:104B200002680A606A46103313CB13C21B68136015 -:104B3000194B5A680C231340082B04D00C2B26D099 -:104B4000164809B030BD910C0F23194004A8445CED -:104B50001149C96A0B406946C95CC0235B021A400F -:104B600080235B029A4208D0C0235B029A4209D09C -:104B70000A48FBF7C9FA6043E3E70848FBF7C4FAC1 -:104B80006043DEE70648FBF7BFFA6043D9E7044815 -:104B9000D7E7C046645E00080010024000127A00A9 -:104BA000006CDC0270B505000C00594B1A6801233B -:104BB00013408B420BD256490B6801229343234387 -:104BC0000B600B681A40A24201D0012070BD2B6817 -:104BD0009B0706D54F4A5368F0218B43A9680B43C6 -:104BE00053602B68DB0763D56B68012B09D0022B60 -:104BF00028D0032B2CD0474A1268920705D40120F5 -:104C0000E4E7444A126892037FD542494A68032088 -:104C1000824313434B6000F063F906006B68012B7D -:104C20001CD0022B28D0032B34D03A4B5B680C22CB -:104C30001A423DD000F054F9801B374B9842F4D90A -:104C40000320C3E7334A12689201DED40120BDE796 -:104C5000304A526BD203D8D40120B7E72D4B5A68A3 -:104C60000C231340042B23D000F03AF9801B2A4B6D -:104C70009842F3D90320A9E7264B5A680C23134026 -:104C8000082B15D000F02CF9801B234B9842F3D948 -:104C900003209BE71F4B5A680C2313400C2B07D0B3 -:104CA00000F01EF9801B1C4B9842F3D903208DE7BE -:104CB000174B1A6801231340A3420BD914490B6800 -:104CC0000122934323430B600B681A40A24201D098 -:104CD00001207BE72B685B0706D50E4A53680F4916 -:104CE0000B40E9680B435360FFF712FF094B5A680A -:104CF00012090F2313400A4AD35CD840094B1860AD -:104D0000002000F0C3F8002060E701205EE7C04605 -:104D1000002002400010024088130000FFF8FFFF4F -:104D20005C6200086C000020014B18687047C046A8 -:104D30006C00002070B582B004000368DB0335D539 -:104D40004B4BDB69DB0066D4494AD16980204005C2 -:104D50000143D161D36903400193019B0125454B78 -:104D60001B68DB0559D5424B1B6AC02292001340D9 -:104D700013D061680A409A420FD03D4B186A3E4AF0 -:104D800002401E6A8021490231431962196A3B4E72 -:104D9000314019621A62C30753D4354A136A36493F -:104DA0000B4061680B431362012D59D02368DB0768 -:104DB00006D52F4A136B03218B43A1680B43136362 -:104DC00023689B0706D52A4A136B2D490B40E168DF -:104DD0000B43136323689B0606D5254A136B1021EA -:104DE0008B4321690B43136323689B0306D5204A39 -:104DF000136B80218B43A1690B43136323685B050D -:104E000033D51B4A136B40218B4361690B431363FA -:104E1000002002B070BD0025A1E7164A116880236A -:104E20005B000B43136000F05BF80600114B1B683E -:104E3000DB0598D400F054F8801B6428F6D90320D1 -:104E4000E7E700F04DF80600094B1B6A9B07A4D466 -:104E500000F046F8801B0B4B9842F5D90320D8E7A9 -:104E6000D36909490B40D361A0E70020D1E7C046D0 -:104E70000010024000700040FFFCFFFFFFFFFEFF3C -:104E8000FFFFFCFF88130000FFFFFFEF10B50400D9 -:104E9000FFF74AFFFA218900FBF736F900F02AFAFA -:104EA000012000222100404200F0EAF9002010BD5C -:104EB00010B5064A136810210B4313600020FFF75A -:104EC000E5FFFEF76FF8002010BDC046002002404D -:104ED000024A1368013313607047C04684050020FE -:104EE000014B18687047C0468405002030B583B078 -:104EF0000190FFF7F5FF0500019C631C00D0013411 -:104F0000FFF7EEFF401BA042FAD303B030BD000014 -:104F1000F0B5C64600B582B0002338E0042600E0B4 -:104F20000026AE4035003D430234A400574EA55143 -:104F3000574C25684246D4432E0026404A68D20387 -:104F400002D5424615432E00514D2E606D682E004D -:104F500026404A68920302D5424615432E004C4D26 -:104F60006E60AD682E0026404A68D20202D54246E5 -:104F700015432E00464DAE60ED682C404A68920203 -:104F800002D542462A431400414AD46001330A68DC -:104F90001400DC4076D001259D402A409046F5D093 -:104FA0004C68022C01D0122C0ED1DC080834A4006D -:104FB000275807261E40B6000F22B24097430A69C1 -:104FC000B24016003E43265002685F0003242600CC -:104FD000BE40F643324094464A681440BC406246A4 -:104FE000144304604C68621E012A03D9112C01D0BD -:104FF000122C10D184683440A446CC68BC40624670 -:10500000144384604468AC434A6812090125154082 -:105010009D4025434560C46826408C68BC403443AD -:10502000C4604A68D200B1D51A4DAE690124264346 -:10503000AE61AD692C400194019C9C08A51CAD009B -:10504000124EAF5903261E40B5000F26AE40B7439F -:105050009026F605B04200D162E70F4EB0420BD069 -:105060000E4EB0420AD00E4EB04209D00D4EB042A4 -:1050700000D153E7052654E7012652E7022650E700 -:1050800003264EE702B004BC9046F0BD000001408C -:1050900000040140001002400004004800080048DD -:1050A000000C00480010004803690B4201D10020A9 -:1050B00070470120FCE770B5C56B0124066CB44055 -:1050C0006C60046863604368102B04D003689960C7 -:1050D0000368DA6070BD03689A600368D960F9E715 -:1050E00010B504000368064A94466344180014216E -:1050F000FBF70AF880002064024BE36310BDC04652 -:10510000F8FFFDBF0000024070B5041E24D0212529 -:105110000223435501680B68104A1A4043688068AF -:105120000343E06803432069034360690343A069C4 -:105130000343E069034313430B602000FFF7D0FFF4 -:105140000023A362E36223636363A36301226255C6 -:105150001F32A354002070BD0120FCE70FC0FFFFE9 -:1051600070B504002020205C012832D020200125C9 -:1051700025540130205C012804D020230022E25471 -:10518000022070BD2030013525540020A063256821 -:1051900028680126B04328602000FFF78CFFE36AEF -:1051A000002B0BD0226813680E210B43136022687A -:1051B000136801210B4313600020E2E722681368A3 -:1051C0000A210B4313602268136806398B4313606E -:1051D000EDE70220D5E770B5C36B1A68046825684F -:1051E000016C04238B401A4212D06B0710D5236840 -:1051F0009B0603D42368042293432360C26B0423D9 -:10520000016C8B405360C36A002B00D0984770BD7F -:1052100002238B401A4218D0AB0716D523689B0691 -:1052200006D423680A22934323602123093AC254F7 -:10523000C26B0223016C8B40536020230022C254B6 -:10524000836A002BE3D09847E1E708238B401A429A -:10525000DDD02B07DBD523680E2293432360C26B7E -:1052600001231900046CA1405160836321228354FF -:105270001F330022C254036B002BC8D09847C6E7E7 -:1052800070B5002811DB8408134DC034A4006259A6 -:1052900003231840C000FC331E008640B24389013E -:1052A0000B4083401343635170BDC0B20F220240D4 -:1052B000083A920806329200084BD3185D6803241E -:1052C0002040C000FF2214008440A54389010A4009 -:1052D00082402A435A60E7E700E100E000ED00E089 -:1052E0001F2318401E3B8340014A13607047C0468D -:1052F00000E100E001380A4B98420FD8094A50609B -:105300000948036A1B021B0AC02109060B430362FA -:105310000023936007331360002070470120FCE7EF -:10532000FFFFFF0010E000E000ED00E010B5054BCE -:105330000022DA61044A13690124234313610180C6 -:1053400010BDC04688050020002002400C4BDB68E1 -:10535000DB0613D50B4AD36902210B43D36110231B -:10536000074AD268520706D50649CA690120024396 -:10537000CA6104221343024AD36070470023EFE757 -:105380000020024088050020084B1B691B060BD536 -:10539000064B074A5A60074A5A601B691B0601D52B -:1053A000012002E0002000E00020704700200240C1 -:1053B00023016745AB89EFCD034A136980210B4375 -:1053C000136100207047C0460020024070B5040001 -:1053D000FFF786FD0500134BDB68DB070AD5631C6E -:1053E000F9D0002C19D0FFF77BFD401BA042F2D969 -:1053F000032011E00B4BDB689B0602D5094B2022F2 -:10540000DA60084BDB68DB0603D4064BDB685B071E -:1054100005D5FFF79BFF012070BD0320FCE70020AE -:10542000FAE7C04600200240F0B5C64600B50400C9 -:105430000D0090461E00214B1B7E012B3BD01F4BC5 -:1054400001221A761E48FFF7C1FF00282DD1012C3A -:1054500006D0022C02D0042700241BE00227FBE721 -:105460000127F9E72022D21A310091400A00414673 -:10547000D940114389B24019FFF758FF1048FFF790 -:10548000A5FF104A136901218B43136100280CD139 -:105490000134E4B2BC4208D260002301202252420F -:1054A0009A18DFD43100D140E4E7044B00221A7689 -:1054B00004BC9046F0BD0220FAE7C04688050020F3 -:1054C00050C300000020024080B500AF1A4B1A689C -:1054D0001A4B9A420BD1184B194A1A60194B83F395 -:1054E0000888194B1B68194A13609847FEE7184B48 -:1054F0001A6801210A431A605A68164802405A6025 -:105500001A68154802401A601A68144802401A6066 -:105510005A68134802405A60DA6A0F208243DA62FE -:105520001A6B104802401A635A6B8A435A6300226E -:105530009A60BD4680BDC046F03F0020EFBEADDEA4 -:10554000EDFEFECA5022002004C8FF1FA80500205F -:10555000001002400CB8FF08FFFFF6FEFFFFFBFF44 -:10556000FFFFC0FF2CFEFCFF0D4885460D480E498D -:105570000E4A002302E0D458C4500433C4188C42AD -:10558000F9D30B4A0B4C002301E013600432A24212 -:10559000FBD3FFF799FF00F011F8FDF72FFBFEE7B3 -:1055A0000040002000000020D4000020A862000875 -:1055B000D8000020B0050020FEE7000070B50026EE -:1055C0000C4D0D4C641BA410A64209D1002600F01E -:1055D00037FC0A4D0A4C641BA410A64205D170BDCD -:1055E000B300EB5898470136EEE7B300EB58984705 -:1055F0000136F2E7A0620008A0620008A06200087D -:10560000A4620008002310B59A4200D110BDCC5C02 -:10561000C4540133F8E703001218934200D17047D5 -:1056200019700133F9E700000EB400B50B499CB0C6 -:105630001DAB02900690079104910948094904CBDB -:105640000591006802A9019300F070F80023029A06 -:1056500013701CB008BC03B01847C046FFFFFF7FA3 -:10566000700000200802FFFFF0B58E6885B00700CB -:105670000C00039201939E423CD890238A89DB0060 -:105680001A4234D00325096923685B1A02936369BF -:1056900002985D43EB0F5D19019B6D1001331B18E0 -:1056A000AB4200D91D00530532D52900380000F067 -:1056B00019FB061E09D10C233B6040230120A2895F -:1056C00040421343A38105B0F0BD029A2169FFF760 -:1056D00099FFA389144A1A4080231343A381029B94 -:1056E0002661F61826606561019EED1AA560019B92 -:1056F0009E4200D9019E32000399206800F095FA7D -:10570000A36800209B1BA36023689E192660DAE72C -:105710002A00380000F044FB061EE0D12169380061 -:1057200000F096FAC7E7C0467FFBFFFFF0B5A1B0D7 -:1057300003901D008B890F0016001B0611D50B6905 -:10574000002B0ED1402100F0CDFA386038610028DE -:1057500005D10C23039A0138136021B0F0BD40231A -:105760007B61002308AC6361203363761033A3763A -:10577000079535002B78002B01D0252B46D1AB1B8C -:1057800005930CD0320039000398FFF76DFF431CDE -:1057900000D1AEE06269059B9446634463612B7857 -:1057A000002B00D1A5E0012200235242626004A92F -:1057B000543252186E1C2360E360A3601370A3651B -:1057C00031780522534800F025FA751C00281FD1B6 -:1057D0002268D30604D5532304A95B18202119702D -:1057E000130704D5532304A95B182B2119703378B0 -:1057F0002A2B16D0350000210A20E3682A786E1C77 -:10580000303A092A4ED9002918D010E00135B1E705 -:10581000404B2268C01A01238340134323602E00AB -:10582000CEE7079B191D1B680791002B01DB0B932B -:1058300004E05B42E3600223134323602B782E2BAA -:105840000AD16B782A2B35D1079B02351A1D1B68AC -:105850000792002B2BDB09932F4E2978032230006F -:1058600000F0D8F9002806D04023801B834022682E -:105870000135134323602978062228486E1C2176BF -:1058800000F0C8F900283CD0254B002B25D1072279 -:10589000079B07339343083307936369049A9B1864 -:1058A000636166E7434301219B183500A6E70123A6 -:1058B0005B42D0E700230A201A0001356360297893 -:1058C0006E1C3039092903D9002BC5D00992C3E7D2 -:1058D0004243012352183500F1E707AB00933A0029 -:1058E000104B2100039800E000BF0490049B01339B -:1058F000D3D1BB890D985B0600D42EE7012040422E -:105900002BE707AB00933A00064B2100039800F009 -:1059100079F8EAE76C6200087262000876620008B3 -:105920000000000069560008F7B5150001938A6869 -:105930000B6900900C00934200DA130022002B60E8 -:1059400043321278002A01D001332B6023689B0672 -:1059500002D52B6802332B60062723681F4027D00F -:10596000230043331B785A1E93412268920630D499 -:105970002200019943320098089EB047431C25D06D -:10598000062320682A68E16803400025042B03D120 -:105990008D1AEB43DB171D40A3682269934201DD9A -:1059A0009B1AED180027BD4220D1002010E00137DE -:1059B000E3682A689B1ABB42D2DD22000123193218 -:1059C00001990098089EB047431CF0D10120404245 -:1059D000FEBD3020E1184331087021005A1C4531CA -:1059E0000978A218433202331170C1E72200012363 -:1059F0001A3201990098089EB047431CE6D001373F -:105A0000D1E70000F0B589B004920A004332059353 -:105A1000039002920A7E0C000E9B6E2A00D186E053 -:105A20001FD8632A33D008D8002A00D18CE0582A26 -:105A30004DD0250042352A7030E0642A01D0692A11 -:105A4000F7D1196825680A1D280629D508681A6043 -:105A5000002803DA2D23029A404213706B4E0A2766 -:105A60004FE0732A74D008D86F2A1FD0702AE0D173 -:105A7000202209680A43226003E0752A16D0782A9A -:105A8000D7D12200782145321170614E22E02500E5 -:105A90001A684235111D196013682B70012365E0E7 -:105AA00008681A606906D3D500B2D1E7196825687D -:105AB000081D186008682E0605D5544E08276F2A61 -:105AC0001BD00A2719E06D06F7D580B2F5E74531FE -:105AD0004E4E0A7018682268011D0068196015068C -:105AE00021D5D30702D520231A432260102700288E -:105AF00003D1202322689A432260230000224333EB -:105B00001A706368A360002B58DB0422216891435C -:105B10002160002854D1029D002B5AD025003378F3 -:105B200042352B7055E05506DBD580B2D9E71A68AF -:105B30000D68101D4969186013682E0601D519609B -:105B400002E06D06FBD519800023029D23614FE022 -:105B50001A68111D1960156800216268280000F09C -:105B600059F8002801D0401B60606368236100235E -:105B7000029A13703CE023692A0004990398059D5A -:105B8000A847431C3ED023689B0715D4079BE068B9 -:105B9000984239DA180037E02200012319320499BB -:105BA0000398059EB047431C2CD00135E368079A43 -:105BB0009B1AAB42F0DCE9E70025F7E70028ADD0FF -:105BC000029D3900FAF726FB735C013D2B7000281B -:105BD000F7D1082F09D12368DB0706D5636822694E -:105BE000934202DC3023013D2B70029B5B1B23613F -:105BF000059B07AA00932100049B0398FFF794FEDE -:105C0000431CB8D10120404209B0F0BD7D620008BC -:105C10008E620008C9B28218904201D100207047FC -:105C200003788B42FBD00130F6E710B5884202D9E9 -:105C30008B18984203D3002307E08B5C8354013A0E -:105C4000FBD210BDCC5CC45401339A42FAD1F8E7C0 -:105C500070B50500002910D00C1F2368002B00DA56 -:105C6000E418280000F0D4F81D4A1368002B05D171 -:105C700063601460280000F0CCF870BDA34209D91D -:105C8000216860188342F3D118685B68411821606D -:105C9000EEE713005A68002A01D0A242F9D9196828 -:105CA0005818A0420BD12068091858181960824270 -:105CB000E0D110685268411819605A60DAE7A042D2 -:105CC00002D90C232B60D5E721686018824203D1EA -:105CD000106852684118216062605C60CAE7C04683 -:105CE00014010020032370B5CD1C9D430835060028 -:105CF0000C2D1ED20C25A9421DD8300000F088F8CA -:105D0000254A14682100002919D1244C2368002B4E -:105D100003D1300000F06AF820602900300000F064 -:105D200065F8431C2BD10C233000336000F071F870 -:105D300003E0002DDFDA0C233360002070BD0B6818 -:105D40005B1B19D40B2B03D90B60CC18256003E027 -:105D50004B688C420DD11360300000F05AF82000DF -:105D600007220B30231D9043C31AE7D05A42E2505A -:105D7000E4E763600C00EFE70C004968C3E7032326 -:105D8000C41C9C43A042E1D0211A300000F02EF840 -:105D9000431CDBD1C7E7C0461401002018010020D6 -:105DA000F8B507000D001600002905D11100FFF716 -:105DB00099FF04002000F8BD002A03D1FFF748FF37 -:105DC0003400F7E700F026F82C00B042F2D23100A0 -:105DD0003800FFF787FF041EECD029003200FFF7E0 -:105DE00011FC29003800FFF733FFE3E7002370B50B -:105DF000064C05000800236000F014F8431C03D192 -:105E00002368002B00D02B6070BDC046AC0500207D -:105E1000704770470B1F1B68181F002B01DA0B58C7 -:105E2000C0187047044A1368002B00D1034B1818A0 -:105E3000106018007047C0461C010020B00500200B -:105E4000F8B5C046F8BC08BC9E467047F8B5C046D9 -:085E5000F8BC08BC9E46704737 -:105E580020202020202020202020000002030405EC -:105E6800060708090A0B0C0D0E0F10100102030497 -:105E780005060708090A0B0C0D0E0F107607000817 -:105E8800B2060008D606000874060008D606000800 -:105E980052070008D606000874060008B206000873 -:105EA800B20600085207000874060008A807000890 -:105EB800A8070008A80700085E070008B20600083F -:105EC800B2060008D606000872060008D6060008C2 -:105ED80052070008D606000872060008B206000835 -:105EE800B20600085207000872060008A807000852 -:105EF800A8070008A80700085C070008A00A00080F -:105F08004A0A00084A0A0008780B0008460A0008EE -:105F1800460A00086E0B0008780B0008460A0008BD -:105F28006E0B0008460A0008780B00087C0B000876 -:105F38007C0B00087C0B0008840B00088C130008FD -:105F4800FE11000842120008A611000842120008BB -:105F58003213000842120008A6110008FE110008BA -:105F6800FE11000832130008A61100089E1100084F -:105F78009E1100089E11000840130008A41800088C -:105F8800A6170008A6170008C41A0008A0170008DA -:105F9800A0170008AC1A0008C41A0008A0170008C7 -:105FA800AC1A0008A0170008C41A0008BA1A00089A -:105FB800BA1A0008BA1A0008C81A000880AF802167 -:105FC8008020807F80C08022800080014000000007 -:105FD8000000000000002F00000000000300030084 -:105FE8000000123F12123F122E2A7F2A3A00231372 -:105FF80008043231102A252A10200201000000006E -:106008001E2100000000211E00000000082A1C2A92 -:10601800080808083E080808806000000000080812 -:1060280008080800303000000000201008040200B2 -:106038001E312925231E22213F20202032292929EB -:10604800292612212125251A1814123F1010172568 -:10605800252525191E2525252518010131090503A2 -:106068001A252525251A06292929291E2400000074 -:1060780000008064000000000814220000001414CE -:10608800141414002214080000000201012905025A -:106098001E212D2B2D0E3E090909093E3F252525D8 -:1060A800251A1E21212121123F212121120C3F25D1 -:1060B800252525213F05050505011E212121291A30 -:1060C8003F040404043F21213F21212110202020E6 -:1060D800201F3F040C0A11203F20202020203F02CF -:1060E8000404023F3F020408103F1E212121211E03 -:1060F8003F09090909061E212931211E3F090909FD -:1061080019261225252525180101013F01011F2007 -:106118002020201F0F102020100F1F201010201FDC -:1061280021120C0C122101020C38040221312925FC -:1061380023213F2100000000020408102000213F15 -:106148000000000004023F0204004040404040407C -:1061580001020000000010302A2A3C003F242424B9 -:1061680018000C1422220000182424243F001C2CA0 -:106178002A2A24003E05010000001828A4A47C0057 -:106188003F04040C3000243D200000002040403D26 -:1061980000003F0C122000001F20200000003E02DB -:1061A8003C023C003E0202023C000C1422320C006D -:1061B800FC242424180018242424FC803C04020213 -:1061C8000000242C2A2A1000021F222000001E2072 -:1061D80020201E000618201806001E301C300E0055 -:1061E8002214081422000C10A0A07C0022322A26B7 -:1061F80022220C3F210000003F0000000000213F48 -:106208000C00000002010201000000000000000074 -:10621800646675646675646675646675646675003B -:106228004F747465722D49726F6E00006279204A4E -:10623800616E2048656E72696B000000256420431A -:106248000000000025642E256420430025642E25C7 -:106258006420560000000000000000000102030452 -:1062680006070809232D302B2000686C4C00656652 -:10627800674546470030313233343536373839418F -:1062880042434445460030313233343536373839A5 -:086298006162636465660000A9 -:0462A000E900000809 -:0462A400C10000082D -:1062A80080AE80D5805280A8800F80C080D38000C7 -:1062B800804080A0808D801480DA800280818033C5 -:1062C80080D980F180DB803080A480A68020800087 -:1062D80080AF000000005C430000000000000000E8 -:1062E800000000000000484300000000000000001B -:1062F800CDCCCC3DCDCCCC3ECDCC4C3DCDCC4C3E0C -:10630800000040410000F0420000B84200127A004C -:1063180074000020000000000000000000000000E1 -:106328000000000000000000000000000000000065 -:106338000000000000000000000000000000000055 -:106348000000000000000000000000000000000045 -:106358000000000000000000000000000000000035 -:106368000000000000000000000000000000000025 -:046378000000000021 -:040000050800556931 -:00000001FF diff --git a/firmware/build/firmware.map b/firmware/build/firmware.map deleted file mode 100644 index e923f0d..0000000 --- a/firmware/build/firmware.map +++ /dev/null @@ -1,2829 +0,0 @@ -Archive member included to satisfy reference by file (symbol) - -/home/janhenrik/programme/gcc-arm-none-eabi-7-2018-q2-update/bin/../lib/gcc/arm-none-eabi/7.3.1/../../../../arm-none-eabi/lib/thumb/v6-m/libc_nano.a(lib_a-exit.o) - /home/janhenrik/programme/gcc-arm-none-eabi-7-2018-q2-update/bin/../lib/gcc/arm-none-eabi/7.3.1/../../../../arm-none-eabi/lib/thumb/v6-m/crt0.o (exit) -/home/janhenrik/programme/gcc-arm-none-eabi-7-2018-q2-update/bin/../lib/gcc/arm-none-eabi/7.3.1/../../../../arm-none-eabi/lib/thumb/v6-m/libc_nano.a(lib_a-impure.o) - /home/janhenrik/programme/gcc-arm-none-eabi-7-2018-q2-update/bin/../lib/gcc/arm-none-eabi/7.3.1/../../../../arm-none-eabi/lib/thumb/v6-m/libc_nano.a(lib_a-exit.o) (_global_impure_ptr) -/home/janhenrik/programme/gcc-arm-none-eabi-7-2018-q2-update/bin/../lib/gcc/arm-none-eabi/7.3.1/../../../../arm-none-eabi/lib/thumb/v6-m/libc_nano.a(lib_a-init.o) - /home/janhenrik/programme/gcc-arm-none-eabi-7-2018-q2-update/bin/../lib/gcc/arm-none-eabi/7.3.1/../../../../arm-none-eabi/lib/thumb/v6-m/crt0.o (__libc_init_array) -/home/janhenrik/programme/gcc-arm-none-eabi-7-2018-q2-update/bin/../lib/gcc/arm-none-eabi/7.3.1/../../../../arm-none-eabi/lib/thumb/v6-m/libc_nano.a(lib_a-memcpy-stub.o) - build/main.o (memcpy) -/home/janhenrik/programme/gcc-arm-none-eabi-7-2018-q2-update/bin/../lib/gcc/arm-none-eabi/7.3.1/../../../../arm-none-eabi/lib/thumb/v6-m/libc_nano.a(lib_a-memset.o) - /home/janhenrik/programme/gcc-arm-none-eabi-7-2018-q2-update/bin/../lib/gcc/arm-none-eabi/7.3.1/../../../../arm-none-eabi/lib/thumb/v6-m/crt0.o (memset) -/home/janhenrik/programme/gcc-arm-none-eabi-7-2018-q2-update/bin/../lib/gcc/arm-none-eabi/7.3.1/../../../../arm-none-eabi/lib/thumb/v6-m/libc_nano.a(lib_a-sprintf.o) - build/main.o (sprintf) -/home/janhenrik/programme/gcc-arm-none-eabi-7-2018-q2-update/bin/../lib/gcc/arm-none-eabi/7.3.1/../../../../arm-none-eabi/lib/thumb/v6-m/libc_nano.a(lib_a-nano-svfprintf.o) - /home/janhenrik/programme/gcc-arm-none-eabi-7-2018-q2-update/bin/../lib/gcc/arm-none-eabi/7.3.1/../../../../arm-none-eabi/lib/thumb/v6-m/libc_nano.a(lib_a-sprintf.o) (_svfprintf_r) -/home/janhenrik/programme/gcc-arm-none-eabi-7-2018-q2-update/bin/../lib/gcc/arm-none-eabi/7.3.1/../../../../arm-none-eabi/lib/thumb/v6-m/libc_nano.a(lib_a-nano-vfprintf_i.o) - /home/janhenrik/programme/gcc-arm-none-eabi-7-2018-q2-update/bin/../lib/gcc/arm-none-eabi/7.3.1/../../../../arm-none-eabi/lib/thumb/v6-m/libc_nano.a(lib_a-nano-svfprintf.o) (_printf_i) -/home/janhenrik/programme/gcc-arm-none-eabi-7-2018-q2-update/bin/../lib/gcc/arm-none-eabi/7.3.1/../../../../arm-none-eabi/lib/thumb/v6-m/libc_nano.a(lib_a-memchr-stub.o) - /home/janhenrik/programme/gcc-arm-none-eabi-7-2018-q2-update/bin/../lib/gcc/arm-none-eabi/7.3.1/../../../../arm-none-eabi/lib/thumb/v6-m/libc_nano.a(lib_a-nano-svfprintf.o) (memchr) -/home/janhenrik/programme/gcc-arm-none-eabi-7-2018-q2-update/bin/../lib/gcc/arm-none-eabi/7.3.1/../../../../arm-none-eabi/lib/thumb/v6-m/libc_nano.a(lib_a-memmove.o) - /home/janhenrik/programme/gcc-arm-none-eabi-7-2018-q2-update/bin/../lib/gcc/arm-none-eabi/7.3.1/../../../../arm-none-eabi/lib/thumb/v6-m/libc_nano.a(lib_a-nano-svfprintf.o) (memmove) -/home/janhenrik/programme/gcc-arm-none-eabi-7-2018-q2-update/bin/../lib/gcc/arm-none-eabi/7.3.1/../../../../arm-none-eabi/lib/thumb/v6-m/libc_nano.a(lib_a-nano-freer.o) - /home/janhenrik/programme/gcc-arm-none-eabi-7-2018-q2-update/bin/../lib/gcc/arm-none-eabi/7.3.1/../../../../arm-none-eabi/lib/thumb/v6-m/libc_nano.a(lib_a-nano-svfprintf.o) (_free_r) -/home/janhenrik/programme/gcc-arm-none-eabi-7-2018-q2-update/bin/../lib/gcc/arm-none-eabi/7.3.1/../../../../arm-none-eabi/lib/thumb/v6-m/libc_nano.a(lib_a-nano-mallocr.o) - /home/janhenrik/programme/gcc-arm-none-eabi-7-2018-q2-update/bin/../lib/gcc/arm-none-eabi/7.3.1/../../../../arm-none-eabi/lib/thumb/v6-m/libc_nano.a(lib_a-nano-svfprintf.o) (_malloc_r) -/home/janhenrik/programme/gcc-arm-none-eabi-7-2018-q2-update/bin/../lib/gcc/arm-none-eabi/7.3.1/../../../../arm-none-eabi/lib/thumb/v6-m/libc_nano.a(lib_a-nano-reallocr.o) - /home/janhenrik/programme/gcc-arm-none-eabi-7-2018-q2-update/bin/../lib/gcc/arm-none-eabi/7.3.1/../../../../arm-none-eabi/lib/thumb/v6-m/libc_nano.a(lib_a-nano-svfprintf.o) (_realloc_r) -/home/janhenrik/programme/gcc-arm-none-eabi-7-2018-q2-update/bin/../lib/gcc/arm-none-eabi/7.3.1/../../../../arm-none-eabi/lib/thumb/v6-m/libc_nano.a(lib_a-sbrkr.o) - /home/janhenrik/programme/gcc-arm-none-eabi-7-2018-q2-update/bin/../lib/gcc/arm-none-eabi/7.3.1/../../../../arm-none-eabi/lib/thumb/v6-m/libc_nano.a(lib_a-nano-mallocr.o) (_sbrk_r) -/home/janhenrik/programme/gcc-arm-none-eabi-7-2018-q2-update/bin/../lib/gcc/arm-none-eabi/7.3.1/../../../../arm-none-eabi/lib/thumb/v6-m/libc_nano.a(lib_a-mlock.o) - /home/janhenrik/programme/gcc-arm-none-eabi-7-2018-q2-update/bin/../lib/gcc/arm-none-eabi/7.3.1/../../../../arm-none-eabi/lib/thumb/v6-m/libc_nano.a(lib_a-nano-freer.o) (__malloc_lock) -/home/janhenrik/programme/gcc-arm-none-eabi-7-2018-q2-update/bin/../lib/gcc/arm-none-eabi/7.3.1/../../../../arm-none-eabi/lib/thumb/v6-m/libc_nano.a(lib_a-nano-msizer.o) - /home/janhenrik/programme/gcc-arm-none-eabi-7-2018-q2-update/bin/../lib/gcc/arm-none-eabi/7.3.1/../../../../arm-none-eabi/lib/thumb/v6-m/libc_nano.a(lib_a-nano-reallocr.o) (_malloc_usable_size_r) -/home/janhenrik/programme/gcc-arm-none-eabi-7-2018-q2-update/bin/../lib/gcc/arm-none-eabi/7.3.1/../../../../arm-none-eabi/lib/thumb/v6-m/libc_nano.a(lib_a-reent.o) - /home/janhenrik/programme/gcc-arm-none-eabi-7-2018-q2-update/bin/../lib/gcc/arm-none-eabi/7.3.1/../../../../arm-none-eabi/lib/thumb/v6-m/libc_nano.a(lib_a-sbrkr.o) (errno) -/home/janhenrik/programme/gcc-arm-none-eabi-7-2018-q2-update/bin/../lib/gcc/arm-none-eabi/7.3.1/../../../../arm-none-eabi/lib/thumb/v6-m/libnosys.a(sbrk.o) - /home/janhenrik/programme/gcc-arm-none-eabi-7-2018-q2-update/bin/../lib/gcc/arm-none-eabi/7.3.1/../../../../arm-none-eabi/lib/thumb/v6-m/libc_nano.a(lib_a-sbrkr.o) (_sbrk) -/home/janhenrik/programme/gcc-arm-none-eabi-7-2018-q2-update/bin/../lib/gcc/arm-none-eabi/7.3.1/../../../../arm-none-eabi/lib/thumb/v6-m/libnosys.a(_exit.o) - /home/janhenrik/programme/gcc-arm-none-eabi-7-2018-q2-update/bin/../lib/gcc/arm-none-eabi/7.3.1/../../../../arm-none-eabi/lib/thumb/v6-m/libc_nano.a(lib_a-exit.o) (_exit) -/home/janhenrik/programme/gcc-arm-none-eabi-7-2018-q2-update/bin/../lib/gcc/arm-none-eabi/7.3.1/thumb/v6-m/libgcc.a(_udivsi3.o) - build/stm32f0xx_hal_adc.o (__aeabi_uidiv) -/home/janhenrik/programme/gcc-arm-none-eabi-7-2018-q2-update/bin/../lib/gcc/arm-none-eabi/7.3.1/thumb/v6-m/libgcc.a(_dvmd_tls.o) - /home/janhenrik/programme/gcc-arm-none-eabi-7-2018-q2-update/bin/../lib/gcc/arm-none-eabi/7.3.1/thumb/v6-m/libgcc.a(_udivsi3.o) (__aeabi_idiv0) -/home/janhenrik/programme/gcc-arm-none-eabi-7-2018-q2-update/bin/../lib/gcc/arm-none-eabi/7.3.1/thumb/v6-m/libgcc.a(_arm_cmpsf2.o) - build/main.o (__aeabi_fcmplt) -/home/janhenrik/programme/gcc-arm-none-eabi-7-2018-q2-update/bin/../lib/gcc/arm-none-eabi/7.3.1/thumb/v6-m/libgcc.a(_fixunssfsi.o) - build/main.o (__aeabi_f2uiz) -/home/janhenrik/programme/gcc-arm-none-eabi-7-2018-q2-update/bin/../lib/gcc/arm-none-eabi/7.3.1/thumb/v6-m/libgcc.a(addsf3.o) - build/main.o (__aeabi_fadd) -/home/janhenrik/programme/gcc-arm-none-eabi-7-2018-q2-update/bin/../lib/gcc/arm-none-eabi/7.3.1/thumb/v6-m/libgcc.a(divsf3.o) - build/main.o (__aeabi_fdiv) -/home/janhenrik/programme/gcc-arm-none-eabi-7-2018-q2-update/bin/../lib/gcc/arm-none-eabi/7.3.1/thumb/v6-m/libgcc.a(eqsf2.o) - /home/janhenrik/programme/gcc-arm-none-eabi-7-2018-q2-update/bin/../lib/gcc/arm-none-eabi/7.3.1/thumb/v6-m/libgcc.a(_arm_cmpsf2.o) (__eqsf2) -/home/janhenrik/programme/gcc-arm-none-eabi-7-2018-q2-update/bin/../lib/gcc/arm-none-eabi/7.3.1/thumb/v6-m/libgcc.a(gesf2.o) - /home/janhenrik/programme/gcc-arm-none-eabi-7-2018-q2-update/bin/../lib/gcc/arm-none-eabi/7.3.1/thumb/v6-m/libgcc.a(_arm_cmpsf2.o) (__gesf2) -/home/janhenrik/programme/gcc-arm-none-eabi-7-2018-q2-update/bin/../lib/gcc/arm-none-eabi/7.3.1/thumb/v6-m/libgcc.a(lesf2.o) - /home/janhenrik/programme/gcc-arm-none-eabi-7-2018-q2-update/bin/../lib/gcc/arm-none-eabi/7.3.1/thumb/v6-m/libgcc.a(_arm_cmpsf2.o) (__lesf2) -/home/janhenrik/programme/gcc-arm-none-eabi-7-2018-q2-update/bin/../lib/gcc/arm-none-eabi/7.3.1/thumb/v6-m/libgcc.a(mulsf3.o) - build/main.o (__aeabi_fmul) -/home/janhenrik/programme/gcc-arm-none-eabi-7-2018-q2-update/bin/../lib/gcc/arm-none-eabi/7.3.1/thumb/v6-m/libgcc.a(subsf3.o) - build/main.o (__aeabi_fsub) -/home/janhenrik/programme/gcc-arm-none-eabi-7-2018-q2-update/bin/../lib/gcc/arm-none-eabi/7.3.1/thumb/v6-m/libgcc.a(fixsfsi.o) - build/main.o (__aeabi_f2iz) -/home/janhenrik/programme/gcc-arm-none-eabi-7-2018-q2-update/bin/../lib/gcc/arm-none-eabi/7.3.1/thumb/v6-m/libgcc.a(floatsisf.o) - build/main.o (__aeabi_i2f) -/home/janhenrik/programme/gcc-arm-none-eabi-7-2018-q2-update/bin/../lib/gcc/arm-none-eabi/7.3.1/thumb/v6-m/libgcc.a(floatunsisf.o) - build/main.o (__aeabi_ui2f) -/home/janhenrik/programme/gcc-arm-none-eabi-7-2018-q2-update/bin/../lib/gcc/arm-none-eabi/7.3.1/thumb/v6-m/libgcc.a(divdf3.o) - build/main.o (__aeabi_ddiv) -/home/janhenrik/programme/gcc-arm-none-eabi-7-2018-q2-update/bin/../lib/gcc/arm-none-eabi/7.3.1/thumb/v6-m/libgcc.a(muldf3.o) - build/main.o (__aeabi_dmul) -/home/janhenrik/programme/gcc-arm-none-eabi-7-2018-q2-update/bin/../lib/gcc/arm-none-eabi/7.3.1/thumb/v6-m/libgcc.a(subdf3.o) - build/main.o (__aeabi_dsub) -/home/janhenrik/programme/gcc-arm-none-eabi-7-2018-q2-update/bin/../lib/gcc/arm-none-eabi/7.3.1/thumb/v6-m/libgcc.a(floatsidf.o) - build/main.o (__aeabi_i2d) -/home/janhenrik/programme/gcc-arm-none-eabi-7-2018-q2-update/bin/../lib/gcc/arm-none-eabi/7.3.1/thumb/v6-m/libgcc.a(extendsfdf2.o) - build/main.o (__aeabi_f2d) -/home/janhenrik/programme/gcc-arm-none-eabi-7-2018-q2-update/bin/../lib/gcc/arm-none-eabi/7.3.1/thumb/v6-m/libgcc.a(truncdfsf2.o) - build/main.o (__aeabi_d2f) -/home/janhenrik/programme/gcc-arm-none-eabi-7-2018-q2-update/bin/../lib/gcc/arm-none-eabi/7.3.1/thumb/v6-m/libgcc.a(_clzsi2.o) - /home/janhenrik/programme/gcc-arm-none-eabi-7-2018-q2-update/bin/../lib/gcc/arm-none-eabi/7.3.1/thumb/v6-m/libgcc.a(addsf3.o) (__clzsi2) - -Allocating common symbols -Common symbol size file - -screenBuffer 0xda build/main.o -errno 0x4 /home/janhenrik/programme/gcc-arm-none-eabi-7-2018-q2-update/bin/../lib/gcc/arm-none-eabi/7.3.1/../../../../arm-none-eabi/lib/thumb/v6-m/libc_nano.a(lib_a-reent.o) -hi2c1 0x4c build/main.o -hi2c2 0x4c build/main.o -uwTick 0x4 build/stm32f0xx_hal.o -pFlash 0x20 build/stm32f0xx_hal_flash.o -htim1 0x40 build/main.o -hdma_adc 0x44 build/main.o -hpcd_USB_FS 0x220 build/main.o -SysMemBootJump 0x4 build/system_stm32f0xx.o -hadc 0x4c build/main.o - -Discarded input sections - - .text 0x0000000000000000 0x0 /home/janhenrik/programme/gcc-arm-none-eabi-7-2018-q2-update/bin/../lib/gcc/arm-none-eabi/7.3.1/thumb/v6-m/crti.o - .data 0x0000000000000000 0x0 /home/janhenrik/programme/gcc-arm-none-eabi-7-2018-q2-update/bin/../lib/gcc/arm-none-eabi/7.3.1/thumb/v6-m/crti.o - .bss 0x0000000000000000 0x0 /home/janhenrik/programme/gcc-arm-none-eabi-7-2018-q2-update/bin/../lib/gcc/arm-none-eabi/7.3.1/thumb/v6-m/crti.o - .data 0x0000000000000000 0x4 /home/janhenrik/programme/gcc-arm-none-eabi-7-2018-q2-update/bin/../lib/gcc/arm-none-eabi/7.3.1/thumb/v6-m/crtbegin.o - .text 0x0000000000000000 0x78 /home/janhenrik/programme/gcc-arm-none-eabi-7-2018-q2-update/bin/../lib/gcc/arm-none-eabi/7.3.1/../../../../arm-none-eabi/lib/thumb/v6-m/crt0.o - .data 0x0000000000000000 0x0 /home/janhenrik/programme/gcc-arm-none-eabi-7-2018-q2-update/bin/../lib/gcc/arm-none-eabi/7.3.1/../../../../arm-none-eabi/lib/thumb/v6-m/crt0.o - .bss 0x0000000000000000 0x0 /home/janhenrik/programme/gcc-arm-none-eabi-7-2018-q2-update/bin/../lib/gcc/arm-none-eabi/7.3.1/../../../../arm-none-eabi/lib/thumb/v6-m/crt0.o - .ARM.extab 0x0000000000000000 0x0 /home/janhenrik/programme/gcc-arm-none-eabi-7-2018-q2-update/bin/../lib/gcc/arm-none-eabi/7.3.1/../../../../arm-none-eabi/lib/thumb/v6-m/crt0.o - .ARM.exidx 0x0000000000000000 0x8 /home/janhenrik/programme/gcc-arm-none-eabi-7-2018-q2-update/bin/../lib/gcc/arm-none-eabi/7.3.1/../../../../arm-none-eabi/lib/thumb/v6-m/crt0.o - .ARM.attributes - 0x0000000000000000 0x1b /home/janhenrik/programme/gcc-arm-none-eabi-7-2018-q2-update/bin/../lib/gcc/arm-none-eabi/7.3.1/../../../../arm-none-eabi/lib/thumb/v6-m/crt0.o - .text 0x0000000000000000 0x0 build/main.o - .data 0x0000000000000000 0x0 build/main.o - .bss 0x0000000000000000 0x0 build/main.o - .text.set_screen - 0x0000000000000000 0x14 build/main.o - .text.Error_Handler - 0x0000000000000000 0x2 build/main.o - .text 0x0000000000000000 0x0 build/stm32f0xx_it.o - .data 0x0000000000000000 0x0 build/stm32f0xx_it.o - .bss 0x0000000000000000 0x0 build/stm32f0xx_it.o - .text 0x0000000000000000 0x0 build/stm32f0xx_hal_msp.o - .data 0x0000000000000000 0x0 build/stm32f0xx_hal_msp.o - .bss 0x0000000000000000 0x0 build/stm32f0xx_hal_msp.o - .text.HAL_ADC_MspDeInit - 0x0000000000000000 0x38 build/stm32f0xx_hal_msp.o - .text.HAL_I2C_MspDeInit - 0x0000000000000000 0x54 build/stm32f0xx_hal_msp.o - .text.HAL_TIM_PWM_MspDeInit - 0x0000000000000000 0x30 build/stm32f0xx_hal_msp.o - .text.HAL_PCD_MspDeInit - 0x0000000000000000 0x24 build/stm32f0xx_hal_msp.o - .text 0x0000000000000000 0x0 build/stm32f0xx_hal_adc.o - .data 0x0000000000000000 0x0 build/stm32f0xx_hal_adc.o - .bss 0x0000000000000000 0x0 build/stm32f0xx_hal_adc.o - .text.ADC_ConversionStop - 0x0000000000000000 0x54 build/stm32f0xx_hal_adc.o - .text.ADC_Disable - 0x0000000000000000 0x80 build/stm32f0xx_hal_adc.o - .text.HAL_ADC_MspInit - 0x0000000000000000 0x2 build/stm32f0xx_hal_adc.o - .text.HAL_ADC_MspDeInit - 0x0000000000000000 0x2 build/stm32f0xx_hal_adc.o - .text.HAL_ADC_DeInit - 0x0000000000000000 0xa4 build/stm32f0xx_hal_adc.o - .text.HAL_ADC_Start - 0x0000000000000000 0x60 build/stm32f0xx_hal_adc.o - .text.HAL_ADC_Stop - 0x0000000000000000 0x44 build/stm32f0xx_hal_adc.o - .text.HAL_ADC_PollForConversion - 0x0000000000000000 0xc0 build/stm32f0xx_hal_adc.o - .text.HAL_ADC_PollForEvent - 0x0000000000000000 0x74 build/stm32f0xx_hal_adc.o - .text.HAL_ADC_Start_IT - 0x0000000000000000 0x88 build/stm32f0xx_hal_adc.o - .text.HAL_ADC_Stop_IT - 0x0000000000000000 0x50 build/stm32f0xx_hal_adc.o - .text.HAL_ADC_Stop_DMA - 0x0000000000000000 0x7c build/stm32f0xx_hal_adc.o - .text.HAL_ADC_GetValue - 0x0000000000000000 0x6 build/stm32f0xx_hal_adc.o - .text.HAL_ADC_AnalogWDGConfig - 0x0000000000000000 0xac build/stm32f0xx_hal_adc.o - .text.HAL_ADC_GetState - 0x0000000000000000 0x4 build/stm32f0xx_hal_adc.o - .text.HAL_ADC_GetError - 0x0000000000000000 0x4 build/stm32f0xx_hal_adc.o - .text 0x0000000000000000 0x0 build/stm32f0xx_hal_adc_ex.o - .data 0x0000000000000000 0x0 build/stm32f0xx_hal_adc_ex.o - .bss 0x0000000000000000 0x0 build/stm32f0xx_hal_adc_ex.o - .text.HAL_ADCEx_Calibration_Start - 0x0000000000000000 0xb0 build/stm32f0xx_hal_adc_ex.o - .debug_info 0x0000000000000000 0xf2a build/stm32f0xx_hal_adc_ex.o - .debug_abbrev 0x0000000000000000 0x203 build/stm32f0xx_hal_adc_ex.o - .debug_loc 0x0000000000000000 0x11d build/stm32f0xx_hal_adc_ex.o - .debug_aranges - 0x0000000000000000 0x20 build/stm32f0xx_hal_adc_ex.o - .debug_ranges 0x0000000000000000 0x10 build/stm32f0xx_hal_adc_ex.o - .debug_line 0x0000000000000000 0x2d7 build/stm32f0xx_hal_adc_ex.o - .debug_str 0x0000000000000000 0x993 build/stm32f0xx_hal_adc_ex.o - .comment 0x0000000000000000 0x80 build/stm32f0xx_hal_adc_ex.o - .debug_frame 0x0000000000000000 0x30 build/stm32f0xx_hal_adc_ex.o - .ARM.attributes - 0x0000000000000000 0x31 build/stm32f0xx_hal_adc_ex.o - .text 0x0000000000000000 0x0 build/stm32f0xx_hal_i2c.o - .data 0x0000000000000000 0x0 build/stm32f0xx_hal_i2c.o - .bss 0x0000000000000000 0x0 build/stm32f0xx_hal_i2c.o - .text.I2C_DMASlaveTransmitCplt - 0x0000000000000000 0x2 build/stm32f0xx_hal_i2c.o - .text.I2C_DMASlaveReceiveCplt - 0x0000000000000000 0x2 build/stm32f0xx_hal_i2c.o - .text.I2C_Enable_IRQ - 0x0000000000000000 0x7c build/stm32f0xx_hal_i2c.o - .text.I2C_Disable_IRQ - 0x0000000000000000 0x72 build/stm32f0xx_hal_i2c.o - .text.I2C_RequestMemoryWrite - 0x0000000000000000 0x86 build/stm32f0xx_hal_i2c.o - .text.I2C_RequestMemoryRead - 0x0000000000000000 0x82 build/stm32f0xx_hal_i2c.o - .text.I2C_WaitOnRXNEFlagUntilTimeout - 0x0000000000000000 0x78 build/stm32f0xx_hal_i2c.o - .text.I2C_DMAMasterTransmitCplt - 0x0000000000000000 0x58 build/stm32f0xx_hal_i2c.o - .text.I2C_DMAMasterReceiveCplt - 0x0000000000000000 0x58 build/stm32f0xx_hal_i2c.o - .text.HAL_I2C_MspInit - 0x0000000000000000 0x2 build/stm32f0xx_hal_i2c.o - .text.HAL_I2C_MspDeInit - 0x0000000000000000 0x2 build/stm32f0xx_hal_i2c.o - .text.HAL_I2C_DeInit - 0x0000000000000000 0x32 build/stm32f0xx_hal_i2c.o - .text.HAL_I2C_Master_Receive - 0x0000000000000000 0x180 build/stm32f0xx_hal_i2c.o - .text.HAL_I2C_Slave_Transmit - 0x0000000000000000 0x1a0 build/stm32f0xx_hal_i2c.o - .text.HAL_I2C_Slave_Receive - 0x0000000000000000 0x18c build/stm32f0xx_hal_i2c.o - .text.HAL_I2C_Master_Transmit_IT - 0x0000000000000000 0x94 build/stm32f0xx_hal_i2c.o - .text.HAL_I2C_Master_Receive_IT - 0x0000000000000000 0x94 build/stm32f0xx_hal_i2c.o - .text.HAL_I2C_Slave_Transmit_IT - 0x0000000000000000 0x64 build/stm32f0xx_hal_i2c.o - .text.HAL_I2C_Slave_Receive_IT - 0x0000000000000000 0x64 build/stm32f0xx_hal_i2c.o - .text.HAL_I2C_Master_Transmit_DMA - 0x0000000000000000 0x110 build/stm32f0xx_hal_i2c.o - .text.HAL_I2C_Master_Receive_DMA - 0x0000000000000000 0x110 build/stm32f0xx_hal_i2c.o - .text.HAL_I2C_Slave_Transmit_DMA - 0x0000000000000000 0xac build/stm32f0xx_hal_i2c.o - .text.HAL_I2C_Slave_Receive_DMA - 0x0000000000000000 0xb0 build/stm32f0xx_hal_i2c.o - .text.HAL_I2C_Mem_Write - 0x0000000000000000 0x1c8 build/stm32f0xx_hal_i2c.o - .text.HAL_I2C_Mem_Read - 0x0000000000000000 0x1c4 build/stm32f0xx_hal_i2c.o - .text.HAL_I2C_Mem_Write_IT - 0x0000000000000000 0xec build/stm32f0xx_hal_i2c.o - .text.HAL_I2C_Mem_Read_IT - 0x0000000000000000 0xf0 build/stm32f0xx_hal_i2c.o - .text.HAL_I2C_Mem_Write_DMA - 0x0000000000000000 0x134 build/stm32f0xx_hal_i2c.o - .text.HAL_I2C_Mem_Read_DMA - 0x0000000000000000 0x138 build/stm32f0xx_hal_i2c.o - .text.HAL_I2C_IsDeviceReady - 0x0000000000000000 0x158 build/stm32f0xx_hal_i2c.o - .text.HAL_I2C_Master_Sequential_Transmit_IT - 0x0000000000000000 0x8c build/stm32f0xx_hal_i2c.o - .text.HAL_I2C_Master_Sequential_Receive_IT - 0x0000000000000000 0x8c build/stm32f0xx_hal_i2c.o - .text.HAL_I2C_Slave_Sequential_Transmit_IT - 0x0000000000000000 0xa4 build/stm32f0xx_hal_i2c.o - .text.HAL_I2C_Slave_Sequential_Receive_IT - 0x0000000000000000 0xa4 build/stm32f0xx_hal_i2c.o - .text.HAL_I2C_EnableListen_IT - 0x0000000000000000 0x28 build/stm32f0xx_hal_i2c.o - .text.HAL_I2C_DisableListen_IT - 0x0000000000000000 0x32 build/stm32f0xx_hal_i2c.o - .text.HAL_I2C_Master_Abort_IT - 0x0000000000000000 0x60 build/stm32f0xx_hal_i2c.o - .text.HAL_I2C_EV_IRQHandler - 0x0000000000000000 0x12 build/stm32f0xx_hal_i2c.o - .text.HAL_I2C_MasterTxCpltCallback - 0x0000000000000000 0x2 build/stm32f0xx_hal_i2c.o - .text.HAL_I2C_MasterRxCpltCallback - 0x0000000000000000 0x2 build/stm32f0xx_hal_i2c.o - .text.I2C_ITMasterSequentialCplt - 0x0000000000000000 0x52 build/stm32f0xx_hal_i2c.o - .text.HAL_I2C_SlaveTxCpltCallback - 0x0000000000000000 0x2 build/stm32f0xx_hal_i2c.o - .text.HAL_I2C_SlaveRxCpltCallback - 0x0000000000000000 0x2 build/stm32f0xx_hal_i2c.o - .text.I2C_ITSlaveSequentialCplt - 0x0000000000000000 0x58 build/stm32f0xx_hal_i2c.o - .text.HAL_I2C_AddrCallback - 0x0000000000000000 0x2 build/stm32f0xx_hal_i2c.o - .text.I2C_ITAddrCplt - 0x0000000000000000 0xa2 build/stm32f0xx_hal_i2c.o - .text.HAL_I2C_ListenCpltCallback - 0x0000000000000000 0x2 build/stm32f0xx_hal_i2c.o - .text.I2C_ITListenCplt - 0x0000000000000000 0x64 build/stm32f0xx_hal_i2c.o - .text.HAL_I2C_MemTxCpltCallback - 0x0000000000000000 0x2 build/stm32f0xx_hal_i2c.o - .text.HAL_I2C_MemRxCpltCallback - 0x0000000000000000 0x2 build/stm32f0xx_hal_i2c.o - .text.HAL_I2C_ErrorCallback - 0x0000000000000000 0x2 build/stm32f0xx_hal_i2c.o - .text.HAL_I2C_AbortCpltCallback - 0x0000000000000000 0x2 build/stm32f0xx_hal_i2c.o - .text.I2C_ITError - 0x0000000000000000 0xf8 build/stm32f0xx_hal_i2c.o - .text.I2C_ITSlaveCplt - 0x0000000000000000 0x118 build/stm32f0xx_hal_i2c.o - .text.I2C_Slave_ISR_IT - 0x0000000000000000 0x140 build/stm32f0xx_hal_i2c.o - .text.I2C_Slave_ISR_DMA - 0x0000000000000000 0x86 build/stm32f0xx_hal_i2c.o - .text.I2C_ITMasterCplt - 0x0000000000000000 0xd4 build/stm32f0xx_hal_i2c.o - .text.I2C_Master_ISR_IT - 0x0000000000000000 0x170 build/stm32f0xx_hal_i2c.o - .text.I2C_Master_ISR_DMA - 0x0000000000000000 0xdc build/stm32f0xx_hal_i2c.o - .text.I2C_DMAError - 0x0000000000000000 0x18 build/stm32f0xx_hal_i2c.o - .text.HAL_I2C_ER_IRQHandler - 0x0000000000000000 0x60 build/stm32f0xx_hal_i2c.o - .text.I2C_DMAAbort - 0x0000000000000000 0x34 build/stm32f0xx_hal_i2c.o - .text.HAL_I2C_GetMode - 0x0000000000000000 0x8 build/stm32f0xx_hal_i2c.o - .text.HAL_I2C_GetError - 0x0000000000000000 0x4 build/stm32f0xx_hal_i2c.o - .text 0x0000000000000000 0x0 build/stm32f0xx_hal_i2c_ex.o - .data 0x0000000000000000 0x0 build/stm32f0xx_hal_i2c_ex.o - .bss 0x0000000000000000 0x0 build/stm32f0xx_hal_i2c_ex.o - .text.HAL_I2CEx_EnableWakeUp - 0x0000000000000000 0x4e build/stm32f0xx_hal_i2c_ex.o - .text.HAL_I2CEx_DisableWakeUp - 0x0000000000000000 0x50 build/stm32f0xx_hal_i2c_ex.o - .text.HAL_I2CEx_EnableFastModePlus - 0x0000000000000000 0x28 build/stm32f0xx_hal_i2c_ex.o - .text.HAL_I2CEx_DisableFastModePlus - 0x0000000000000000 0x28 build/stm32f0xx_hal_i2c_ex.o - .text 0x0000000000000000 0x0 build/stm32f0xx_hal_tim.o - .data 0x0000000000000000 0x0 build/stm32f0xx_hal_tim.o - .bss 0x0000000000000000 0x0 build/stm32f0xx_hal_tim.o - .text.TIM_TI2_SetConfig - 0x0000000000000000 0x38 build/stm32f0xx_hal_tim.o - .text.TIM_TI3_SetConfig - 0x0000000000000000 0x3c build/stm32f0xx_hal_tim.o - .text.TIM_TI4_SetConfig - 0x0000000000000000 0x44 build/stm32f0xx_hal_tim.o - .text.HAL_TIM_Base_MspDeInit - 0x0000000000000000 0x2 build/stm32f0xx_hal_tim.o - .text.HAL_TIM_Base_DeInit - 0x0000000000000000 0x40 build/stm32f0xx_hal_tim.o - .text.HAL_TIM_Base_Start - 0x0000000000000000 0x18 build/stm32f0xx_hal_tim.o - .text.HAL_TIM_Base_Stop - 0x0000000000000000 0x34 build/stm32f0xx_hal_tim.o - .text.HAL_TIM_Base_Start_IT - 0x0000000000000000 0x16 build/stm32f0xx_hal_tim.o - .text.HAL_TIM_Base_Stop_IT - 0x0000000000000000 0x30 build/stm32f0xx_hal_tim.o - .text.HAL_TIM_Base_Start_DMA - 0x0000000000000000 0x64 build/stm32f0xx_hal_tim.o - .text.HAL_TIM_Base_Stop_DMA - 0x0000000000000000 0x3c build/stm32f0xx_hal_tim.o - .text.HAL_TIM_OC_MspDeInit - 0x0000000000000000 0x2 build/stm32f0xx_hal_tim.o - .text.HAL_TIM_OC_DeInit - 0x0000000000000000 0x40 build/stm32f0xx_hal_tim.o - .text.HAL_TIM_PWM_MspInit - 0x0000000000000000 0x2 build/stm32f0xx_hal_tim.o - .text.HAL_TIM_PWM_MspDeInit - 0x0000000000000000 0x2 build/stm32f0xx_hal_tim.o - .text.HAL_TIM_PWM_DeInit - 0x0000000000000000 0x40 build/stm32f0xx_hal_tim.o - .text.HAL_TIM_IC_MspInit - 0x0000000000000000 0x2 build/stm32f0xx_hal_tim.o - .text.HAL_TIM_IC_MspDeInit - 0x0000000000000000 0x2 build/stm32f0xx_hal_tim.o - .text.HAL_TIM_IC_DeInit - 0x0000000000000000 0x40 build/stm32f0xx_hal_tim.o - .text.HAL_TIM_OnePulse_MspInit - 0x0000000000000000 0x2 build/stm32f0xx_hal_tim.o - .text.HAL_TIM_OnePulse_MspDeInit - 0x0000000000000000 0x2 build/stm32f0xx_hal_tim.o - .text.HAL_TIM_OnePulse_DeInit - 0x0000000000000000 0x40 build/stm32f0xx_hal_tim.o - .text.HAL_TIM_Encoder_MspInit - 0x0000000000000000 0x2 build/stm32f0xx_hal_tim.o - .text.HAL_TIM_Encoder_MspDeInit - 0x0000000000000000 0x2 build/stm32f0xx_hal_tim.o - .text.HAL_TIM_Encoder_DeInit - 0x0000000000000000 0x40 build/stm32f0xx_hal_tim.o - .text.HAL_TIM_DMABurst_MultiWriteStart - 0x0000000000000000 0x154 build/stm32f0xx_hal_tim.o - .text.HAL_TIM_DMABurst_WriteStart - 0x0000000000000000 0x16 build/stm32f0xx_hal_tim.o - .text.HAL_TIM_DMABurst_WriteStop - 0x0000000000000000 0x82 build/stm32f0xx_hal_tim.o - .text.HAL_TIM_DMABurst_MultiReadStart - 0x0000000000000000 0x154 build/stm32f0xx_hal_tim.o - .text.HAL_TIM_DMABurst_ReadStart - 0x0000000000000000 0x16 build/stm32f0xx_hal_tim.o - .text.HAL_TIM_DMABurst_ReadStop - 0x0000000000000000 0x82 build/stm32f0xx_hal_tim.o - .text.HAL_TIM_GenerateEvent - 0x0000000000000000 0x24 build/stm32f0xx_hal_tim.o - .text.HAL_TIM_ConfigTI1Input - 0x0000000000000000 0x10 build/stm32f0xx_hal_tim.o - .text.HAL_TIM_ReadCapturedValue - 0x0000000000000000 0x48 build/stm32f0xx_hal_tim.o - .text.TIM_DMAPeriodElapsedCplt - 0x0000000000000000 0x10 build/stm32f0xx_hal_tim.o - .text.TIM_DMACaptureCplt - 0x0000000000000000 0x44 build/stm32f0xx_hal_tim.o - .text.TIM_DMADelayPulseCplt - 0x0000000000000000 0x44 build/stm32f0xx_hal_tim.o - .text.TIM_DMATriggerCplt - 0x0000000000000000 0x10 build/stm32f0xx_hal_tim.o - .text.HAL_TIM_ErrorCallback - 0x0000000000000000 0x2 build/stm32f0xx_hal_tim.o - .text.TIM_DMAError - 0x0000000000000000 0x10 build/stm32f0xx_hal_tim.o - .text.HAL_TIM_Base_GetState - 0x0000000000000000 0x8 build/stm32f0xx_hal_tim.o - .text.HAL_TIM_OC_GetState - 0x0000000000000000 0x8 build/stm32f0xx_hal_tim.o - .text.HAL_TIM_PWM_GetState - 0x0000000000000000 0x8 build/stm32f0xx_hal_tim.o - .text.HAL_TIM_IC_GetState - 0x0000000000000000 0x8 build/stm32f0xx_hal_tim.o - .text.HAL_TIM_OnePulse_GetState - 0x0000000000000000 0x8 build/stm32f0xx_hal_tim.o - .text.HAL_TIM_Encoder_GetState - 0x0000000000000000 0x8 build/stm32f0xx_hal_tim.o - .text.HAL_TIM_IC_Init - 0x0000000000000000 0x34 build/stm32f0xx_hal_tim.o - .text.HAL_TIM_OnePulse_Init - 0x0000000000000000 0x4a build/stm32f0xx_hal_tim.o - .text.HAL_TIM_Encoder_Init - 0x0000000000000000 0xa4 build/stm32f0xx_hal_tim.o - .text.TIM_TI1_SetConfig - 0x0000000000000000 0x60 build/stm32f0xx_hal_tim.o - .text.HAL_TIM_IC_ConfigChannel - 0x0000000000000000 0xc8 build/stm32f0xx_hal_tim.o - .text.HAL_TIM_OnePulse_ConfigChannel - 0x0000000000000000 0x100 build/stm32f0xx_hal_tim.o - .text.HAL_TIM_ConfigOCrefClear - 0x0000000000000000 0xf4 build/stm32f0xx_hal_tim.o - .text.TIM_SlaveTimer_SetConfig - 0x0000000000000000 0x76 build/stm32f0xx_hal_tim.o - .text.HAL_TIM_SlaveConfigSynchronization - 0x0000000000000000 0x44 build/stm32f0xx_hal_tim.o - .text.HAL_TIM_SlaveConfigSynchronization_IT - 0x0000000000000000 0x44 build/stm32f0xx_hal_tim.o - .text.HAL_TIM_OC_Stop - 0x0000000000000000 0x7c build/stm32f0xx_hal_tim.o - .text.HAL_TIM_OC_Start_IT - 0x0000000000000000 0x90 build/stm32f0xx_hal_tim.o - .text.HAL_TIM_OC_Stop_IT - 0x0000000000000000 0xbc build/stm32f0xx_hal_tim.o - .text.HAL_TIM_OC_Start_DMA - 0x0000000000000000 0x128 build/stm32f0xx_hal_tim.o - .text.HAL_TIM_OC_Stop_DMA - 0x0000000000000000 0xd0 build/stm32f0xx_hal_tim.o - .text.HAL_TIM_PWM_Stop - 0x0000000000000000 0x80 build/stm32f0xx_hal_tim.o - .text.HAL_TIM_PWM_Start_IT - 0x0000000000000000 0x90 build/stm32f0xx_hal_tim.o - .text.HAL_TIM_PWM_Stop_IT - 0x0000000000000000 0xbc build/stm32f0xx_hal_tim.o - .text.HAL_TIM_PWM_Start_DMA - 0x0000000000000000 0x128 build/stm32f0xx_hal_tim.o - .text.HAL_TIM_PWM_Stop_DMA - 0x0000000000000000 0xd0 build/stm32f0xx_hal_tim.o - .text.HAL_TIM_IC_Start - 0x0000000000000000 0x1a build/stm32f0xx_hal_tim.o - .text.HAL_TIM_IC_Stop - 0x0000000000000000 0x34 build/stm32f0xx_hal_tim.o - .text.HAL_TIM_IC_Start_IT - 0x0000000000000000 0x5a build/stm32f0xx_hal_tim.o - .text.HAL_TIM_IC_Stop_IT - 0x0000000000000000 0x74 build/stm32f0xx_hal_tim.o - .text.HAL_TIM_IC_Start_DMA - 0x0000000000000000 0xf0 build/stm32f0xx_hal_tim.o - .text.HAL_TIM_IC_Stop_DMA - 0x0000000000000000 0x88 build/stm32f0xx_hal_tim.o - .text.HAL_TIM_OnePulse_Start - 0x0000000000000000 0x50 build/stm32f0xx_hal_tim.o - .text.HAL_TIM_OnePulse_Stop - 0x0000000000000000 0x88 build/stm32f0xx_hal_tim.o - .text.HAL_TIM_OnePulse_Start_IT - 0x0000000000000000 0x64 build/stm32f0xx_hal_tim.o - .text.HAL_TIM_OnePulse_Stop_IT - 0x0000000000000000 0x9c build/stm32f0xx_hal_tim.o - .text.HAL_TIM_Encoder_Start - 0x0000000000000000 0x46 build/stm32f0xx_hal_tim.o - .text.HAL_TIM_Encoder_Stop - 0x0000000000000000 0x60 build/stm32f0xx_hal_tim.o - .text.HAL_TIM_Encoder_Start_IT - 0x0000000000000000 0x6e build/stm32f0xx_hal_tim.o - .text.HAL_TIM_Encoder_Stop_IT - 0x0000000000000000 0x88 build/stm32f0xx_hal_tim.o - .text.HAL_TIM_Encoder_Start_DMA - 0x0000000000000000 0x140 build/stm32f0xx_hal_tim.o - .text.HAL_TIM_Encoder_Stop_DMA - 0x0000000000000000 0x90 build/stm32f0xx_hal_tim.o - .text 0x0000000000000000 0x0 build/stm32f0xx_hal_tim_ex.o - .data 0x0000000000000000 0x0 build/stm32f0xx_hal_tim_ex.o - .bss 0x0000000000000000 0x0 build/stm32f0xx_hal_tim_ex.o - .text.TIM_CCxNChannelCmd - 0x0000000000000000 0x16 build/stm32f0xx_hal_tim_ex.o - .text.HAL_TIMEx_HallSensor_MspInit - 0x0000000000000000 0x2 build/stm32f0xx_hal_tim_ex.o - .text.HAL_TIMEx_HallSensor_Init - 0x0000000000000000 0xbc build/stm32f0xx_hal_tim_ex.o - .text.HAL_TIMEx_HallSensor_MspDeInit - 0x0000000000000000 0x2 build/stm32f0xx_hal_tim_ex.o - .text.HAL_TIMEx_HallSensor_DeInit - 0x0000000000000000 0x40 build/stm32f0xx_hal_tim_ex.o - .text.HAL_TIMEx_HallSensor_Start - 0x0000000000000000 0x1c build/stm32f0xx_hal_tim_ex.o - .text.HAL_TIMEx_HallSensor_Stop - 0x0000000000000000 0x34 build/stm32f0xx_hal_tim_ex.o - .text.HAL_TIMEx_HallSensor_Start_IT - 0x0000000000000000 0x26 build/stm32f0xx_hal_tim_ex.o - .text.HAL_TIMEx_HallSensor_Stop_IT - 0x0000000000000000 0x40 build/stm32f0xx_hal_tim_ex.o - .text.HAL_TIMEx_HallSensor_Start_DMA - 0x0000000000000000 0x74 build/stm32f0xx_hal_tim_ex.o - .text.HAL_TIMEx_HallSensor_Stop_DMA - 0x0000000000000000 0x44 build/stm32f0xx_hal_tim_ex.o - .text.HAL_TIMEx_OCN_Start - 0x0000000000000000 0x26 build/stm32f0xx_hal_tim_ex.o - .text.HAL_TIMEx_OCN_Stop - 0x0000000000000000 0x50 build/stm32f0xx_hal_tim_ex.o - .text.HAL_TIMEx_OCN_Start_IT - 0x0000000000000000 0x70 build/stm32f0xx_hal_tim_ex.o - .text.HAL_TIMEx_OCN_Stop_IT - 0x0000000000000000 0xa4 build/stm32f0xx_hal_tim_ex.o - .text.HAL_TIMEx_OCN_Start_DMA - 0x0000000000000000 0x100 build/stm32f0xx_hal_tim_ex.o - .text.HAL_TIMEx_OCN_Stop_DMA - 0x0000000000000000 0xa8 build/stm32f0xx_hal_tim_ex.o - .text.HAL_TIMEx_PWMN_Start - 0x0000000000000000 0x26 build/stm32f0xx_hal_tim_ex.o - .text.HAL_TIMEx_PWMN_Stop - 0x0000000000000000 0x50 build/stm32f0xx_hal_tim_ex.o - .text.HAL_TIMEx_PWMN_Start_IT - 0x0000000000000000 0x70 build/stm32f0xx_hal_tim_ex.o - .text.HAL_TIMEx_PWMN_Stop_IT - 0x0000000000000000 0xa4 build/stm32f0xx_hal_tim_ex.o - .text.HAL_TIMEx_PWMN_Start_DMA - 0x0000000000000000 0x100 build/stm32f0xx_hal_tim_ex.o - .text.HAL_TIMEx_PWMN_Stop_DMA - 0x0000000000000000 0xa8 build/stm32f0xx_hal_tim_ex.o - .text.HAL_TIMEx_OnePulseN_Start - 0x0000000000000000 0x1c build/stm32f0xx_hal_tim_ex.o - .text.HAL_TIMEx_OnePulseN_Stop - 0x0000000000000000 0x50 build/stm32f0xx_hal_tim_ex.o - .text.HAL_TIMEx_OnePulseN_Start_IT - 0x0000000000000000 0x30 build/stm32f0xx_hal_tim_ex.o - .text.HAL_TIMEx_OnePulseN_Stop_IT - 0x0000000000000000 0x64 build/stm32f0xx_hal_tim_ex.o - .text.HAL_TIMEx_ConfigCommutationEvent - 0x0000000000000000 0x5c build/stm32f0xx_hal_tim_ex.o - .text.HAL_TIMEx_ConfigCommutationEvent_IT - 0x0000000000000000 0x66 build/stm32f0xx_hal_tim_ex.o - .text.HAL_TIMEx_ConfigCommutationEvent_DMA - 0x0000000000000000 0x7c build/stm32f0xx_hal_tim_ex.o - .text.HAL_TIMEx_RemapConfig - 0x0000000000000000 0x20 build/stm32f0xx_hal_tim_ex.o - .text.HAL_TIM_ConfigOCrefClear - 0x0000000000000000 0x104 build/stm32f0xx_hal_tim_ex.o - .text.TIMEx_DMACommutationCplt - 0x0000000000000000 0x10 build/stm32f0xx_hal_tim_ex.o - .text.HAL_TIMEx_HallSensor_GetState - 0x0000000000000000 0x8 build/stm32f0xx_hal_tim_ex.o - .text 0x0000000000000000 0x0 build/stm32f0xx_hal_pcd.o - .data 0x0000000000000000 0x0 build/stm32f0xx_hal_pcd.o - .bss 0x0000000000000000 0x0 build/stm32f0xx_hal_pcd.o - .text.HAL_PCD_MspInit - 0x0000000000000000 0x2 build/stm32f0xx_hal_pcd.o - .text.HAL_PCD_MspDeInit - 0x0000000000000000 0x2 build/stm32f0xx_hal_pcd.o - .text.HAL_PCD_Start - 0x0000000000000000 0x18 build/stm32f0xx_hal_pcd.o - .text.HAL_PCD_Stop - 0x0000000000000000 0x32 build/stm32f0xx_hal_pcd.o - .text.HAL_PCD_DeInit - 0x0000000000000000 0x24 build/stm32f0xx_hal_pcd.o - .text.HAL_PCD_DataOutStageCallback - 0x0000000000000000 0x2 build/stm32f0xx_hal_pcd.o - .text.HAL_PCD_DataInStageCallback - 0x0000000000000000 0x2 build/stm32f0xx_hal_pcd.o - .text.HAL_PCD_SetupStageCallback - 0x0000000000000000 0x2 build/stm32f0xx_hal_pcd.o - .text.HAL_PCD_SOFCallback - 0x0000000000000000 0x2 build/stm32f0xx_hal_pcd.o - .text.HAL_PCD_ResetCallback - 0x0000000000000000 0x2 build/stm32f0xx_hal_pcd.o - .text.HAL_PCD_SuspendCallback - 0x0000000000000000 0x2 build/stm32f0xx_hal_pcd.o - .text.HAL_PCD_ResumeCallback - 0x0000000000000000 0x2 build/stm32f0xx_hal_pcd.o - .text.HAL_PCD_ISOOUTIncompleteCallback - 0x0000000000000000 0x2 build/stm32f0xx_hal_pcd.o - .text.HAL_PCD_ISOINIncompleteCallback - 0x0000000000000000 0x2 build/stm32f0xx_hal_pcd.o - .text.HAL_PCD_ConnectCallback - 0x0000000000000000 0x2 build/stm32f0xx_hal_pcd.o - .text.HAL_PCD_DisconnectCallback - 0x0000000000000000 0x2 build/stm32f0xx_hal_pcd.o - .text.HAL_PCD_DevConnect - 0x0000000000000000 0x34 build/stm32f0xx_hal_pcd.o - .text.HAL_PCD_DevDisconnect - 0x0000000000000000 0x2c build/stm32f0xx_hal_pcd.o - .text.HAL_PCD_SetAddress - 0x0000000000000000 0x36 build/stm32f0xx_hal_pcd.o - .text.HAL_PCD_EP_Open - 0x0000000000000000 0x394 build/stm32f0xx_hal_pcd.o - .text.HAL_PCD_EP_Close - 0x0000000000000000 0x1f8 build/stm32f0xx_hal_pcd.o - .text.HAL_PCD_EP_Receive - 0x0000000000000000 0x204 build/stm32f0xx_hal_pcd.o - .text.HAL_PCD_EP_GetRxCount - 0x0000000000000000 0x14 build/stm32f0xx_hal_pcd.o - .text.HAL_PCD_EP_SetStall - 0x0000000000000000 0xc8 build/stm32f0xx_hal_pcd.o - .text.HAL_PCD_EP_ClrStall - 0x0000000000000000 0xec build/stm32f0xx_hal_pcd.o - .text.HAL_PCD_EP_Flush - 0x0000000000000000 0x4 build/stm32f0xx_hal_pcd.o - .text.HAL_PCD_ActivateRemoteWakeup - 0x0000000000000000 0x24 build/stm32f0xx_hal_pcd.o - .text.HAL_PCD_DeActivateRemoteWakeup - 0x0000000000000000 0x24 build/stm32f0xx_hal_pcd.o - .text.HAL_PCD_GetState - 0x0000000000000000 0xa build/stm32f0xx_hal_pcd.o - .text.PCD_WritePMA - 0x0000000000000000 0x28 build/stm32f0xx_hal_pcd.o - .text.HAL_PCD_EP_Transmit - 0x0000000000000000 0x220 build/stm32f0xx_hal_pcd.o - .text.PCD_ReadPMA - 0x0000000000000000 0x2c build/stm32f0xx_hal_pcd.o - .text.PCD_EP_ISR_Handler - 0x0000000000000000 0x4bc build/stm32f0xx_hal_pcd.o - .text.HAL_PCD_IRQHandler - 0x0000000000000000 0x11c build/stm32f0xx_hal_pcd.o - .text 0x0000000000000000 0x0 build/stm32f0xx_hal_pcd_ex.o - .data 0x0000000000000000 0x0 build/stm32f0xx_hal_pcd_ex.o - .bss 0x0000000000000000 0x0 build/stm32f0xx_hal_pcd_ex.o - .text.HAL_PCDEx_PMAConfig - 0x0000000000000000 0x3a build/stm32f0xx_hal_pcd_ex.o - .debug_info 0x0000000000000000 0xf1e build/stm32f0xx_hal_pcd_ex.o - .debug_abbrev 0x0000000000000000 0x1ea build/stm32f0xx_hal_pcd_ex.o - .debug_loc 0x0000000000000000 0x10a build/stm32f0xx_hal_pcd_ex.o - .debug_aranges - 0x0000000000000000 0x20 build/stm32f0xx_hal_pcd_ex.o - .debug_ranges 0x0000000000000000 0x10 build/stm32f0xx_hal_pcd_ex.o - .debug_line 0x0000000000000000 0x277 build/stm32f0xx_hal_pcd_ex.o - .debug_str 0x0000000000000000 0x900 build/stm32f0xx_hal_pcd_ex.o - .comment 0x0000000000000000 0x80 build/stm32f0xx_hal_pcd_ex.o - .debug_frame 0x0000000000000000 0x2c build/stm32f0xx_hal_pcd_ex.o - .ARM.attributes - 0x0000000000000000 0x31 build/stm32f0xx_hal_pcd_ex.o - .text 0x0000000000000000 0x0 build/stm32f0xx_hal_rcc.o - .data 0x0000000000000000 0x0 build/stm32f0xx_hal_rcc.o - .bss 0x0000000000000000 0x0 build/stm32f0xx_hal_rcc.o - .text.HAL_RCC_DeInit - 0x0000000000000000 0x4c build/stm32f0xx_hal_rcc.o - .text.HAL_RCC_MCOConfig - 0x0000000000000000 0x54 build/stm32f0xx_hal_rcc.o - .text.HAL_RCC_EnableCSS - 0x0000000000000000 0x14 build/stm32f0xx_hal_rcc.o - .text.HAL_RCC_DisableCSS - 0x0000000000000000 0x14 build/stm32f0xx_hal_rcc.o - .text.HAL_RCC_GetPCLK1Freq - 0x0000000000000000 0x20 build/stm32f0xx_hal_rcc.o - .text.HAL_RCC_GetOscConfig - 0x0000000000000000 0xd4 build/stm32f0xx_hal_rcc.o - .text.HAL_RCC_GetClockConfig - 0x0000000000000000 0x38 build/stm32f0xx_hal_rcc.o - .text.HAL_RCC_CSSCallback - 0x0000000000000000 0x2 build/stm32f0xx_hal_rcc.o - .text.HAL_RCC_NMI_IRQHandler - 0x0000000000000000 0x20 build/stm32f0xx_hal_rcc.o - .text 0x0000000000000000 0x0 build/stm32f0xx_hal_rcc_ex.o - .data 0x0000000000000000 0x0 build/stm32f0xx_hal_rcc_ex.o - .bss 0x0000000000000000 0x0 build/stm32f0xx_hal_rcc_ex.o - .text.HAL_RCCEx_GetPeriphCLKConfig - 0x0000000000000000 0x5c build/stm32f0xx_hal_rcc_ex.o - .text.HAL_RCCEx_GetPeriphCLKFreq - 0x0000000000000000 0x1f4 build/stm32f0xx_hal_rcc_ex.o - .text.HAL_RCCEx_CRSConfig - 0x0000000000000000 0x54 build/stm32f0xx_hal_rcc_ex.o - .text.HAL_RCCEx_CRSSoftwareSynchronizationGenerate - 0x0000000000000000 0x10 build/stm32f0xx_hal_rcc_ex.o - .text.HAL_RCCEx_CRSGetSynchronizationInfo - 0x0000000000000000 0x2c build/stm32f0xx_hal_rcc_ex.o - .text.HAL_RCCEx_CRSWaitSynchronization - 0x0000000000000000 0x9c build/stm32f0xx_hal_rcc_ex.o - .text.HAL_RCCEx_CRS_SyncOkCallback - 0x0000000000000000 0x2 build/stm32f0xx_hal_rcc_ex.o - .text.HAL_RCCEx_CRS_SyncWarnCallback - 0x0000000000000000 0x2 build/stm32f0xx_hal_rcc_ex.o - .text.HAL_RCCEx_CRS_ExpectedSyncCallback - 0x0000000000000000 0x2 build/stm32f0xx_hal_rcc_ex.o - .text.HAL_RCCEx_CRS_ErrorCallback - 0x0000000000000000 0x2 build/stm32f0xx_hal_rcc_ex.o - .text.HAL_RCCEx_CRS_IRQHandler - 0x0000000000000000 0x78 build/stm32f0xx_hal_rcc_ex.o - .text 0x0000000000000000 0x0 build/stm32f0xx_hal.o - .data 0x0000000000000000 0x0 build/stm32f0xx_hal.o - .bss 0x0000000000000000 0x0 build/stm32f0xx_hal.o - .text.HAL_MspInit - 0x0000000000000000 0x2 build/stm32f0xx_hal.o - .text.HAL_MspDeInit - 0x0000000000000000 0x2 build/stm32f0xx_hal.o - .text.HAL_DeInit - 0x0000000000000000 0x24 build/stm32f0xx_hal.o - .text.HAL_SuspendTick - 0x0000000000000000 0x10 build/stm32f0xx_hal.o - .text.HAL_ResumeTick - 0x0000000000000000 0x10 build/stm32f0xx_hal.o - .text.HAL_GetHalVersion - 0x0000000000000000 0x8 build/stm32f0xx_hal.o - .text.HAL_GetREVID - 0x0000000000000000 0xc build/stm32f0xx_hal.o - .text.HAL_GetDEVID - 0x0000000000000000 0x10 build/stm32f0xx_hal.o - .text.HAL_GetUIDw0 - 0x0000000000000000 0xc build/stm32f0xx_hal.o - .text.HAL_GetUIDw1 - 0x0000000000000000 0xc build/stm32f0xx_hal.o - .text.HAL_GetUIDw2 - 0x0000000000000000 0xc build/stm32f0xx_hal.o - .text.HAL_DBGMCU_EnableDBGStopMode - 0x0000000000000000 0x10 build/stm32f0xx_hal.o - .text.HAL_DBGMCU_DisableDBGStopMode - 0x0000000000000000 0x10 build/stm32f0xx_hal.o - .text.HAL_DBGMCU_EnableDBGStandbyMode - 0x0000000000000000 0x10 build/stm32f0xx_hal.o - .text.HAL_DBGMCU_DisableDBGStandbyMode - 0x0000000000000000 0x10 build/stm32f0xx_hal.o - .text 0x0000000000000000 0x0 build/stm32f0xx_hal_gpio.o - .data 0x0000000000000000 0x0 build/stm32f0xx_hal_gpio.o - .bss 0x0000000000000000 0x0 build/stm32f0xx_hal_gpio.o - .text.HAL_GPIO_DeInit - 0x0000000000000000 0x10c build/stm32f0xx_hal_gpio.o - .text.HAL_GPIO_WritePin - 0x0000000000000000 0xc build/stm32f0xx_hal_gpio.o - .text.HAL_GPIO_TogglePin - 0x0000000000000000 0x8 build/stm32f0xx_hal_gpio.o - .text.HAL_GPIO_LockPin - 0x0000000000000000 0x2c build/stm32f0xx_hal_gpio.o - .text.HAL_GPIO_EXTI_Callback - 0x0000000000000000 0x2 build/stm32f0xx_hal_gpio.o - .text.HAL_GPIO_EXTI_IRQHandler - 0x0000000000000000 0x1c build/stm32f0xx_hal_gpio.o - .text 0x0000000000000000 0x0 build/stm32f0xx_hal_dma.o - .data 0x0000000000000000 0x0 build/stm32f0xx_hal_dma.o - .bss 0x0000000000000000 0x0 build/stm32f0xx_hal_dma.o - .text.HAL_DMA_DeInit - 0x0000000000000000 0x40 build/stm32f0xx_hal_dma.o - .text.HAL_DMA_Start - 0x0000000000000000 0x4e build/stm32f0xx_hal_dma.o - .text.HAL_DMA_Abort - 0x0000000000000000 0x2e build/stm32f0xx_hal_dma.o - .text.HAL_DMA_Abort_IT - 0x0000000000000000 0x4a build/stm32f0xx_hal_dma.o - .text.HAL_DMA_PollForTransfer - 0x0000000000000000 0xc4 build/stm32f0xx_hal_dma.o - .text.HAL_DMA_RegisterCallback - 0x0000000000000000 0x54 build/stm32f0xx_hal_dma.o - .text.HAL_DMA_UnRegisterCallback - 0x0000000000000000 0x60 build/stm32f0xx_hal_dma.o - .rodata.HAL_DMA_UnRegisterCallback - 0x0000000000000000 0x14 build/stm32f0xx_hal_dma.o - .text.HAL_DMA_GetState - 0x0000000000000000 0x8 build/stm32f0xx_hal_dma.o - .text.HAL_DMA_GetError - 0x0000000000000000 0x4 build/stm32f0xx_hal_dma.o - .text 0x0000000000000000 0x0 build/stm32f0xx_hal_cortex.o - .data 0x0000000000000000 0x0 build/stm32f0xx_hal_cortex.o - .bss 0x0000000000000000 0x0 build/stm32f0xx_hal_cortex.o - .text.HAL_NVIC_DisableIRQ - 0x0000000000000000 0x14 build/stm32f0xx_hal_cortex.o - .text.HAL_NVIC_SystemReset - 0x0000000000000000 0x1c build/stm32f0xx_hal_cortex.o - .text.HAL_NVIC_GetPriority - 0x0000000000000000 0x4c build/stm32f0xx_hal_cortex.o - .text.HAL_NVIC_SetPendingIRQ - 0x0000000000000000 0x18 build/stm32f0xx_hal_cortex.o - .text.HAL_NVIC_GetPendingIRQ - 0x0000000000000000 0x18 build/stm32f0xx_hal_cortex.o - .text.HAL_NVIC_ClearPendingIRQ - 0x0000000000000000 0x18 build/stm32f0xx_hal_cortex.o - .text.HAL_SYSTICK_CLKSourceConfig - 0x0000000000000000 0x20 build/stm32f0xx_hal_cortex.o - .text.HAL_SYSTICK_Callback - 0x0000000000000000 0x2 build/stm32f0xx_hal_cortex.o - .text.HAL_SYSTICK_IRQHandler - 0x0000000000000000 0x8 build/stm32f0xx_hal_cortex.o - .text 0x0000000000000000 0x0 build/stm32f0xx_hal_pwr.o - .data 0x0000000000000000 0x0 build/stm32f0xx_hal_pwr.o - .bss 0x0000000000000000 0x0 build/stm32f0xx_hal_pwr.o - .text.HAL_PWR_DeInit - 0x0000000000000000 0x20 build/stm32f0xx_hal_pwr.o - .text.HAL_PWR_EnableBkUpAccess - 0x0000000000000000 0x14 build/stm32f0xx_hal_pwr.o - .text.HAL_PWR_DisableBkUpAccess - 0x0000000000000000 0x14 build/stm32f0xx_hal_pwr.o - .text.HAL_PWR_EnableWakeUpPin - 0x0000000000000000 0x10 build/stm32f0xx_hal_pwr.o - .text.HAL_PWR_DisableWakeUpPin - 0x0000000000000000 0x10 build/stm32f0xx_hal_pwr.o - .text.HAL_PWR_EnterSLEEPMode - 0x0000000000000000 0x20 build/stm32f0xx_hal_pwr.o - .text.HAL_PWR_EnterSTOPMode - 0x0000000000000000 0x3c build/stm32f0xx_hal_pwr.o - .text.HAL_PWR_EnterSTANDBYMode - 0x0000000000000000 0x20 build/stm32f0xx_hal_pwr.o - .text.HAL_PWR_EnableSleepOnExit - 0x0000000000000000 0x10 build/stm32f0xx_hal_pwr.o - .text.HAL_PWR_DisableSleepOnExit - 0x0000000000000000 0x10 build/stm32f0xx_hal_pwr.o - .text.HAL_PWR_EnableSEVOnPend - 0x0000000000000000 0x10 build/stm32f0xx_hal_pwr.o - .text.HAL_PWR_DisableSEVOnPend - 0x0000000000000000 0x10 build/stm32f0xx_hal_pwr.o - .debug_info 0x0000000000000000 0xe08 build/stm32f0xx_hal_pwr.o - .debug_abbrev 0x0000000000000000 0x261 build/stm32f0xx_hal_pwr.o - .debug_loc 0x0000000000000000 0xe8 build/stm32f0xx_hal_pwr.o - .debug_aranges - 0x0000000000000000 0x78 build/stm32f0xx_hal_pwr.o - .debug_ranges 0x0000000000000000 0x68 build/stm32f0xx_hal_pwr.o - .debug_line 0x0000000000000000 0x347 build/stm32f0xx_hal_pwr.o - .debug_str 0x0000000000000000 0x7ad build/stm32f0xx_hal_pwr.o - .comment 0x0000000000000000 0x80 build/stm32f0xx_hal_pwr.o - .debug_frame 0x0000000000000000 0xdc build/stm32f0xx_hal_pwr.o - .ARM.attributes - 0x0000000000000000 0x31 build/stm32f0xx_hal_pwr.o - .text 0x0000000000000000 0x0 build/stm32f0xx_hal_pwr_ex.o - .data 0x0000000000000000 0x0 build/stm32f0xx_hal_pwr_ex.o - .bss 0x0000000000000000 0x0 build/stm32f0xx_hal_pwr_ex.o - .text.HAL_PWR_ConfigPVD - 0x0000000000000000 0x80 build/stm32f0xx_hal_pwr_ex.o - .text.HAL_PWR_EnablePVD - 0x0000000000000000 0x10 build/stm32f0xx_hal_pwr_ex.o - .text.HAL_PWR_DisablePVD - 0x0000000000000000 0x10 build/stm32f0xx_hal_pwr_ex.o - .text.HAL_PWR_PVDCallback - 0x0000000000000000 0x2 build/stm32f0xx_hal_pwr_ex.o - .text.HAL_PWR_PVD_IRQHandler - 0x0000000000000000 0x20 build/stm32f0xx_hal_pwr_ex.o - .text.HAL_PWREx_EnableVddio2Monitor - 0x0000000000000000 0x18 build/stm32f0xx_hal_pwr_ex.o - .text.HAL_PWREx_DisableVddio2Monitor - 0x0000000000000000 0x20 build/stm32f0xx_hal_pwr_ex.o - .text.HAL_PWREx_Vddio2MonitorCallback - 0x0000000000000000 0x2 build/stm32f0xx_hal_pwr_ex.o - .text.HAL_PWREx_Vddio2Monitor_IRQHandler - 0x0000000000000000 0x20 build/stm32f0xx_hal_pwr_ex.o - .debug_info 0x0000000000000000 0xbe0 build/stm32f0xx_hal_pwr_ex.o - .debug_abbrev 0x0000000000000000 0x22a build/stm32f0xx_hal_pwr_ex.o - .debug_loc 0x0000000000000000 0x40 build/stm32f0xx_hal_pwr_ex.o - .debug_aranges - 0x0000000000000000 0x60 build/stm32f0xx_hal_pwr_ex.o - .debug_ranges 0x0000000000000000 0x50 build/stm32f0xx_hal_pwr_ex.o - .debug_line 0x0000000000000000 0x307 build/stm32f0xx_hal_pwr_ex.o - .debug_str 0x0000000000000000 0x6f4 build/stm32f0xx_hal_pwr_ex.o - .comment 0x0000000000000000 0x80 build/stm32f0xx_hal_pwr_ex.o - .debug_frame 0x0000000000000000 0xb8 build/stm32f0xx_hal_pwr_ex.o - .ARM.attributes - 0x0000000000000000 0x31 build/stm32f0xx_hal_pwr_ex.o - .text 0x0000000000000000 0x0 build/stm32f0xx_hal_flash.o - .data 0x0000000000000000 0x0 build/stm32f0xx_hal_flash.o - .bss 0x0000000000000000 0x0 build/stm32f0xx_hal_flash.o - .text.HAL_FLASH_Program_IT - 0x0000000000000000 0x64 build/stm32f0xx_hal_flash.o - .text.HAL_FLASH_EndOfOperationCallback - 0x0000000000000000 0x2 build/stm32f0xx_hal_flash.o - .text.HAL_FLASH_OperationErrorCallback - 0x0000000000000000 0x2 build/stm32f0xx_hal_flash.o - .text.HAL_FLASH_IRQHandler - 0x0000000000000000 0x154 build/stm32f0xx_hal_flash.o - .text.HAL_FLASH_OB_Unlock - 0x0000000000000000 0x28 build/stm32f0xx_hal_flash.o - .text.HAL_FLASH_OB_Lock - 0x0000000000000000 0x18 build/stm32f0xx_hal_flash.o - .text.HAL_FLASH_GetError - 0x0000000000000000 0xc build/stm32f0xx_hal_flash.o - .text.HAL_FLASH_OB_Launch - 0x0000000000000000 0x20 build/stm32f0xx_hal_flash.o - .text 0x0000000000000000 0x0 build/stm32f0xx_hal_flash_ex.o - .data 0x0000000000000000 0x0 build/stm32f0xx_hal_flash_ex.o - .bss 0x0000000000000000 0x0 build/stm32f0xx_hal_flash_ex.o - .text.FLASH_MassErase - 0x0000000000000000 0x24 build/stm32f0xx_hal_flash_ex.o - .text.FLASH_OB_GetWRP - 0x0000000000000000 0xc build/stm32f0xx_hal_flash_ex.o - .text.FLASH_OB_GetRDP - 0x0000000000000000 0x20 build/stm32f0xx_hal_flash_ex.o - .text.FLASH_OB_GetUser - 0x0000000000000000 0x10 build/stm32f0xx_hal_flash_ex.o - .text.FLASH_OB_RDP_LevelConfig - 0x0000000000000000 0x64 build/stm32f0xx_hal_flash_ex.o - .text.FLASH_OB_UserConfig - 0x0000000000000000 0x48 build/stm32f0xx_hal_flash_ex.o - .text.FLASH_OB_ProgramData - 0x0000000000000000 0x40 build/stm32f0xx_hal_flash_ex.o - .text.HAL_FLASHEx_OBErase - 0x0000000000000000 0x50 build/stm32f0xx_hal_flash_ex.o - .text.FLASH_OB_EnableWRP - 0x0000000000000000 0xbc build/stm32f0xx_hal_flash_ex.o - .text.FLASH_OB_DisableWRP - 0x0000000000000000 0xb8 build/stm32f0xx_hal_flash_ex.o - .text.HAL_FLASHEx_OBProgram - 0x0000000000000000 0x94 build/stm32f0xx_hal_flash_ex.o - .text.HAL_FLASHEx_OBGetConfig - 0x0000000000000000 0x1c build/stm32f0xx_hal_flash_ex.o - .text.HAL_FLASHEx_OBGetUserData - 0x0000000000000000 0x24 build/stm32f0xx_hal_flash_ex.o - .text.FLASH_PageErase - 0x0000000000000000 0x24 build/stm32f0xx_hal_flash_ex.o - .text.HAL_FLASHEx_Erase - 0x0000000000000000 0xa4 build/stm32f0xx_hal_flash_ex.o - .text.HAL_FLASHEx_Erase_IT - 0x0000000000000000 0x60 build/stm32f0xx_hal_flash_ex.o - .debug_info 0x0000000000000000 0x13aa build/stm32f0xx_hal_flash_ex.o - .debug_abbrev 0x0000000000000000 0x328 build/stm32f0xx_hal_flash_ex.o - .debug_loc 0x0000000000000000 0x915 build/stm32f0xx_hal_flash_ex.o - .debug_aranges - 0x0000000000000000 0x98 build/stm32f0xx_hal_flash_ex.o - .debug_ranges 0x0000000000000000 0x88 build/stm32f0xx_hal_flash_ex.o - .debug_line 0x0000000000000000 0x4ed build/stm32f0xx_hal_flash_ex.o - .debug_str 0x0000000000000000 0xa23 build/stm32f0xx_hal_flash_ex.o - .comment 0x0000000000000000 0x80 build/stm32f0xx_hal_flash_ex.o - .debug_frame 0x0000000000000000 0x1bc build/stm32f0xx_hal_flash_ex.o - .ARM.attributes - 0x0000000000000000 0x31 build/stm32f0xx_hal_flash_ex.o - .text 0x0000000000000000 0x0 build/system_stm32f0xx.o - .data 0x0000000000000000 0x0 build/system_stm32f0xx.o - .bss 0x0000000000000000 0x0 build/system_stm32f0xx.o - .text.SystemCoreClockUpdate - 0x0000000000000000 0xac build/system_stm32f0xx.o - .rodata.APBPrescTable - 0x0000000000000000 0x8 build/system_stm32f0xx.o - .text 0x0000000000000000 0x14 build/startup_stm32f072xb.o - .data 0x0000000000000000 0x0 build/startup_stm32f072xb.o - .bss 0x0000000000000000 0x0 build/startup_stm32f072xb.o - .text 0x0000000000000000 0x0 /home/janhenrik/programme/gcc-arm-none-eabi-7-2018-q2-update/bin/../lib/gcc/arm-none-eabi/7.3.1/../../../../arm-none-eabi/lib/thumb/v6-m/libc_nano.a(lib_a-exit.o) - .data 0x0000000000000000 0x0 /home/janhenrik/programme/gcc-arm-none-eabi-7-2018-q2-update/bin/../lib/gcc/arm-none-eabi/7.3.1/../../../../arm-none-eabi/lib/thumb/v6-m/libc_nano.a(lib_a-exit.o) - .bss 0x0000000000000000 0x0 /home/janhenrik/programme/gcc-arm-none-eabi-7-2018-q2-update/bin/../lib/gcc/arm-none-eabi/7.3.1/../../../../arm-none-eabi/lib/thumb/v6-m/libc_nano.a(lib_a-exit.o) - .text.exit 0x0000000000000000 0x2c /home/janhenrik/programme/gcc-arm-none-eabi-7-2018-q2-update/bin/../lib/gcc/arm-none-eabi/7.3.1/../../../../arm-none-eabi/lib/thumb/v6-m/libc_nano.a(lib_a-exit.o) - .debug_frame 0x0000000000000000 0x28 /home/janhenrik/programme/gcc-arm-none-eabi-7-2018-q2-update/bin/../lib/gcc/arm-none-eabi/7.3.1/../../../../arm-none-eabi/lib/thumb/v6-m/libc_nano.a(lib_a-exit.o) - .ARM.attributes - 0x0000000000000000 0x2c /home/janhenrik/programme/gcc-arm-none-eabi-7-2018-q2-update/bin/../lib/gcc/arm-none-eabi/7.3.1/../../../../arm-none-eabi/lib/thumb/v6-m/libc_nano.a(lib_a-exit.o) - .text 0x0000000000000000 0x0 /home/janhenrik/programme/gcc-arm-none-eabi-7-2018-q2-update/bin/../lib/gcc/arm-none-eabi/7.3.1/../../../../arm-none-eabi/lib/thumb/v6-m/libc_nano.a(lib_a-impure.o) - .data 0x0000000000000000 0x0 /home/janhenrik/programme/gcc-arm-none-eabi-7-2018-q2-update/bin/../lib/gcc/arm-none-eabi/7.3.1/../../../../arm-none-eabi/lib/thumb/v6-m/libc_nano.a(lib_a-impure.o) - .bss 0x0000000000000000 0x0 /home/janhenrik/programme/gcc-arm-none-eabi-7-2018-q2-update/bin/../lib/gcc/arm-none-eabi/7.3.1/../../../../arm-none-eabi/lib/thumb/v6-m/libc_nano.a(lib_a-impure.o) - .rodata._global_impure_ptr - 0x0000000000000000 0x4 /home/janhenrik/programme/gcc-arm-none-eabi-7-2018-q2-update/bin/../lib/gcc/arm-none-eabi/7.3.1/../../../../arm-none-eabi/lib/thumb/v6-m/libc_nano.a(lib_a-impure.o) - .text 0x0000000000000000 0x0 /home/janhenrik/programme/gcc-arm-none-eabi-7-2018-q2-update/bin/../lib/gcc/arm-none-eabi/7.3.1/../../../../arm-none-eabi/lib/thumb/v6-m/libc_nano.a(lib_a-init.o) - .data 0x0000000000000000 0x0 /home/janhenrik/programme/gcc-arm-none-eabi-7-2018-q2-update/bin/../lib/gcc/arm-none-eabi/7.3.1/../../../../arm-none-eabi/lib/thumb/v6-m/libc_nano.a(lib_a-init.o) - .bss 0x0000000000000000 0x0 /home/janhenrik/programme/gcc-arm-none-eabi-7-2018-q2-update/bin/../lib/gcc/arm-none-eabi/7.3.1/../../../../arm-none-eabi/lib/thumb/v6-m/libc_nano.a(lib_a-init.o) - .text 0x0000000000000000 0x0 /home/janhenrik/programme/gcc-arm-none-eabi-7-2018-q2-update/bin/../lib/gcc/arm-none-eabi/7.3.1/../../../../arm-none-eabi/lib/thumb/v6-m/libc_nano.a(lib_a-memcpy-stub.o) - .data 0x0000000000000000 0x0 /home/janhenrik/programme/gcc-arm-none-eabi-7-2018-q2-update/bin/../lib/gcc/arm-none-eabi/7.3.1/../../../../arm-none-eabi/lib/thumb/v6-m/libc_nano.a(lib_a-memcpy-stub.o) - .bss 0x0000000000000000 0x0 /home/janhenrik/programme/gcc-arm-none-eabi-7-2018-q2-update/bin/../lib/gcc/arm-none-eabi/7.3.1/../../../../arm-none-eabi/lib/thumb/v6-m/libc_nano.a(lib_a-memcpy-stub.o) - .text 0x0000000000000000 0x0 /home/janhenrik/programme/gcc-arm-none-eabi-7-2018-q2-update/bin/../lib/gcc/arm-none-eabi/7.3.1/../../../../arm-none-eabi/lib/thumb/v6-m/libc_nano.a(lib_a-memset.o) - .data 0x0000000000000000 0x0 /home/janhenrik/programme/gcc-arm-none-eabi-7-2018-q2-update/bin/../lib/gcc/arm-none-eabi/7.3.1/../../../../arm-none-eabi/lib/thumb/v6-m/libc_nano.a(lib_a-memset.o) - .bss 0x0000000000000000 0x0 /home/janhenrik/programme/gcc-arm-none-eabi-7-2018-q2-update/bin/../lib/gcc/arm-none-eabi/7.3.1/../../../../arm-none-eabi/lib/thumb/v6-m/libc_nano.a(lib_a-memset.o) - .text 0x0000000000000000 0x0 /home/janhenrik/programme/gcc-arm-none-eabi-7-2018-q2-update/bin/../lib/gcc/arm-none-eabi/7.3.1/../../../../arm-none-eabi/lib/thumb/v6-m/libc_nano.a(lib_a-sprintf.o) - .data 0x0000000000000000 0x0 /home/janhenrik/programme/gcc-arm-none-eabi-7-2018-q2-update/bin/../lib/gcc/arm-none-eabi/7.3.1/../../../../arm-none-eabi/lib/thumb/v6-m/libc_nano.a(lib_a-sprintf.o) - .bss 0x0000000000000000 0x0 /home/janhenrik/programme/gcc-arm-none-eabi-7-2018-q2-update/bin/../lib/gcc/arm-none-eabi/7.3.1/../../../../arm-none-eabi/lib/thumb/v6-m/libc_nano.a(lib_a-sprintf.o) - .text._sprintf_r - 0x0000000000000000 0x38 /home/janhenrik/programme/gcc-arm-none-eabi-7-2018-q2-update/bin/../lib/gcc/arm-none-eabi/7.3.1/../../../../arm-none-eabi/lib/thumb/v6-m/libc_nano.a(lib_a-sprintf.o) - .text 0x0000000000000000 0x0 /home/janhenrik/programme/gcc-arm-none-eabi-7-2018-q2-update/bin/../lib/gcc/arm-none-eabi/7.3.1/../../../../arm-none-eabi/lib/thumb/v6-m/libc_nano.a(lib_a-nano-svfprintf.o) - .data 0x0000000000000000 0x0 /home/janhenrik/programme/gcc-arm-none-eabi-7-2018-q2-update/bin/../lib/gcc/arm-none-eabi/7.3.1/../../../../arm-none-eabi/lib/thumb/v6-m/libc_nano.a(lib_a-nano-svfprintf.o) - .bss 0x0000000000000000 0x0 /home/janhenrik/programme/gcc-arm-none-eabi-7-2018-q2-update/bin/../lib/gcc/arm-none-eabi/7.3.1/../../../../arm-none-eabi/lib/thumb/v6-m/libc_nano.a(lib_a-nano-svfprintf.o) - .text.__ssprint_r - 0x0000000000000000 0xfc /home/janhenrik/programme/gcc-arm-none-eabi-7-2018-q2-update/bin/../lib/gcc/arm-none-eabi/7.3.1/../../../../arm-none-eabi/lib/thumb/v6-m/libc_nano.a(lib_a-nano-svfprintf.o) - .text 0x0000000000000000 0x0 /home/janhenrik/programme/gcc-arm-none-eabi-7-2018-q2-update/bin/../lib/gcc/arm-none-eabi/7.3.1/../../../../arm-none-eabi/lib/thumb/v6-m/libc_nano.a(lib_a-nano-vfprintf_i.o) - .data 0x0000000000000000 0x0 /home/janhenrik/programme/gcc-arm-none-eabi-7-2018-q2-update/bin/../lib/gcc/arm-none-eabi/7.3.1/../../../../arm-none-eabi/lib/thumb/v6-m/libc_nano.a(lib_a-nano-vfprintf_i.o) - .bss 0x0000000000000000 0x0 /home/janhenrik/programme/gcc-arm-none-eabi-7-2018-q2-update/bin/../lib/gcc/arm-none-eabi/7.3.1/../../../../arm-none-eabi/lib/thumb/v6-m/libc_nano.a(lib_a-nano-vfprintf_i.o) - .text 0x0000000000000000 0x0 /home/janhenrik/programme/gcc-arm-none-eabi-7-2018-q2-update/bin/../lib/gcc/arm-none-eabi/7.3.1/../../../../arm-none-eabi/lib/thumb/v6-m/libc_nano.a(lib_a-memchr-stub.o) - .data 0x0000000000000000 0x0 /home/janhenrik/programme/gcc-arm-none-eabi-7-2018-q2-update/bin/../lib/gcc/arm-none-eabi/7.3.1/../../../../arm-none-eabi/lib/thumb/v6-m/libc_nano.a(lib_a-memchr-stub.o) - .bss 0x0000000000000000 0x0 /home/janhenrik/programme/gcc-arm-none-eabi-7-2018-q2-update/bin/../lib/gcc/arm-none-eabi/7.3.1/../../../../arm-none-eabi/lib/thumb/v6-m/libc_nano.a(lib_a-memchr-stub.o) - .text 0x0000000000000000 0x0 /home/janhenrik/programme/gcc-arm-none-eabi-7-2018-q2-update/bin/../lib/gcc/arm-none-eabi/7.3.1/../../../../arm-none-eabi/lib/thumb/v6-m/libc_nano.a(lib_a-memmove.o) - .data 0x0000000000000000 0x0 /home/janhenrik/programme/gcc-arm-none-eabi-7-2018-q2-update/bin/../lib/gcc/arm-none-eabi/7.3.1/../../../../arm-none-eabi/lib/thumb/v6-m/libc_nano.a(lib_a-memmove.o) - .bss 0x0000000000000000 0x0 /home/janhenrik/programme/gcc-arm-none-eabi-7-2018-q2-update/bin/../lib/gcc/arm-none-eabi/7.3.1/../../../../arm-none-eabi/lib/thumb/v6-m/libc_nano.a(lib_a-memmove.o) - .text 0x0000000000000000 0x0 /home/janhenrik/programme/gcc-arm-none-eabi-7-2018-q2-update/bin/../lib/gcc/arm-none-eabi/7.3.1/../../../../arm-none-eabi/lib/thumb/v6-m/libc_nano.a(lib_a-nano-freer.o) - .data 0x0000000000000000 0x0 /home/janhenrik/programme/gcc-arm-none-eabi-7-2018-q2-update/bin/../lib/gcc/arm-none-eabi/7.3.1/../../../../arm-none-eabi/lib/thumb/v6-m/libc_nano.a(lib_a-nano-freer.o) - .bss 0x0000000000000000 0x0 /home/janhenrik/programme/gcc-arm-none-eabi-7-2018-q2-update/bin/../lib/gcc/arm-none-eabi/7.3.1/../../../../arm-none-eabi/lib/thumb/v6-m/libc_nano.a(lib_a-nano-freer.o) - .text 0x0000000000000000 0x0 /home/janhenrik/programme/gcc-arm-none-eabi-7-2018-q2-update/bin/../lib/gcc/arm-none-eabi/7.3.1/../../../../arm-none-eabi/lib/thumb/v6-m/libc_nano.a(lib_a-nano-mallocr.o) - .data 0x0000000000000000 0x0 /home/janhenrik/programme/gcc-arm-none-eabi-7-2018-q2-update/bin/../lib/gcc/arm-none-eabi/7.3.1/../../../../arm-none-eabi/lib/thumb/v6-m/libc_nano.a(lib_a-nano-mallocr.o) - .bss 0x0000000000000000 0x0 /home/janhenrik/programme/gcc-arm-none-eabi-7-2018-q2-update/bin/../lib/gcc/arm-none-eabi/7.3.1/../../../../arm-none-eabi/lib/thumb/v6-m/libc_nano.a(lib_a-nano-mallocr.o) - .text 0x0000000000000000 0x0 /home/janhenrik/programme/gcc-arm-none-eabi-7-2018-q2-update/bin/../lib/gcc/arm-none-eabi/7.3.1/../../../../arm-none-eabi/lib/thumb/v6-m/libc_nano.a(lib_a-nano-reallocr.o) - .data 0x0000000000000000 0x0 /home/janhenrik/programme/gcc-arm-none-eabi-7-2018-q2-update/bin/../lib/gcc/arm-none-eabi/7.3.1/../../../../arm-none-eabi/lib/thumb/v6-m/libc_nano.a(lib_a-nano-reallocr.o) - .bss 0x0000000000000000 0x0 /home/janhenrik/programme/gcc-arm-none-eabi-7-2018-q2-update/bin/../lib/gcc/arm-none-eabi/7.3.1/../../../../arm-none-eabi/lib/thumb/v6-m/libc_nano.a(lib_a-nano-reallocr.o) - .text 0x0000000000000000 0x0 /home/janhenrik/programme/gcc-arm-none-eabi-7-2018-q2-update/bin/../lib/gcc/arm-none-eabi/7.3.1/../../../../arm-none-eabi/lib/thumb/v6-m/libc_nano.a(lib_a-sbrkr.o) - .data 0x0000000000000000 0x0 /home/janhenrik/programme/gcc-arm-none-eabi-7-2018-q2-update/bin/../lib/gcc/arm-none-eabi/7.3.1/../../../../arm-none-eabi/lib/thumb/v6-m/libc_nano.a(lib_a-sbrkr.o) - .bss 0x0000000000000000 0x0 /home/janhenrik/programme/gcc-arm-none-eabi-7-2018-q2-update/bin/../lib/gcc/arm-none-eabi/7.3.1/../../../../arm-none-eabi/lib/thumb/v6-m/libc_nano.a(lib_a-sbrkr.o) - .text 0x0000000000000000 0x0 /home/janhenrik/programme/gcc-arm-none-eabi-7-2018-q2-update/bin/../lib/gcc/arm-none-eabi/7.3.1/../../../../arm-none-eabi/lib/thumb/v6-m/libc_nano.a(lib_a-mlock.o) - .data 0x0000000000000000 0x0 /home/janhenrik/programme/gcc-arm-none-eabi-7-2018-q2-update/bin/../lib/gcc/arm-none-eabi/7.3.1/../../../../arm-none-eabi/lib/thumb/v6-m/libc_nano.a(lib_a-mlock.o) - .bss 0x0000000000000000 0x0 /home/janhenrik/programme/gcc-arm-none-eabi-7-2018-q2-update/bin/../lib/gcc/arm-none-eabi/7.3.1/../../../../arm-none-eabi/lib/thumb/v6-m/libc_nano.a(lib_a-mlock.o) - .text 0x0000000000000000 0x0 /home/janhenrik/programme/gcc-arm-none-eabi-7-2018-q2-update/bin/../lib/gcc/arm-none-eabi/7.3.1/../../../../arm-none-eabi/lib/thumb/v6-m/libc_nano.a(lib_a-nano-msizer.o) - .data 0x0000000000000000 0x0 /home/janhenrik/programme/gcc-arm-none-eabi-7-2018-q2-update/bin/../lib/gcc/arm-none-eabi/7.3.1/../../../../arm-none-eabi/lib/thumb/v6-m/libc_nano.a(lib_a-nano-msizer.o) - .bss 0x0000000000000000 0x0 /home/janhenrik/programme/gcc-arm-none-eabi-7-2018-q2-update/bin/../lib/gcc/arm-none-eabi/7.3.1/../../../../arm-none-eabi/lib/thumb/v6-m/libc_nano.a(lib_a-nano-msizer.o) - .text 0x0000000000000000 0x0 /home/janhenrik/programme/gcc-arm-none-eabi-7-2018-q2-update/bin/../lib/gcc/arm-none-eabi/7.3.1/../../../../arm-none-eabi/lib/thumb/v6-m/libc_nano.a(lib_a-reent.o) - .data 0x0000000000000000 0x0 /home/janhenrik/programme/gcc-arm-none-eabi-7-2018-q2-update/bin/../lib/gcc/arm-none-eabi/7.3.1/../../../../arm-none-eabi/lib/thumb/v6-m/libc_nano.a(lib_a-reent.o) - .bss 0x0000000000000000 0x0 /home/janhenrik/programme/gcc-arm-none-eabi-7-2018-q2-update/bin/../lib/gcc/arm-none-eabi/7.3.1/../../../../arm-none-eabi/lib/thumb/v6-m/libc_nano.a(lib_a-reent.o) - .text.cleanup_glue - 0x0000000000000000 0x1a /home/janhenrik/programme/gcc-arm-none-eabi-7-2018-q2-update/bin/../lib/gcc/arm-none-eabi/7.3.1/../../../../arm-none-eabi/lib/thumb/v6-m/libc_nano.a(lib_a-reent.o) - .text._reclaim_reent - 0x0000000000000000 0xcc /home/janhenrik/programme/gcc-arm-none-eabi-7-2018-q2-update/bin/../lib/gcc/arm-none-eabi/7.3.1/../../../../arm-none-eabi/lib/thumb/v6-m/libc_nano.a(lib_a-reent.o) - .text 0x0000000000000000 0x0 /home/janhenrik/programme/gcc-arm-none-eabi-7-2018-q2-update/bin/../lib/gcc/arm-none-eabi/7.3.1/../../../../arm-none-eabi/lib/thumb/v6-m/libnosys.a(sbrk.o) - .data 0x0000000000000000 0x0 /home/janhenrik/programme/gcc-arm-none-eabi-7-2018-q2-update/bin/../lib/gcc/arm-none-eabi/7.3.1/../../../../arm-none-eabi/lib/thumb/v6-m/libnosys.a(sbrk.o) - .bss 0x0000000000000000 0x0 /home/janhenrik/programme/gcc-arm-none-eabi-7-2018-q2-update/bin/../lib/gcc/arm-none-eabi/7.3.1/../../../../arm-none-eabi/lib/thumb/v6-m/libnosys.a(sbrk.o) - .text 0x0000000000000000 0x0 /home/janhenrik/programme/gcc-arm-none-eabi-7-2018-q2-update/bin/../lib/gcc/arm-none-eabi/7.3.1/../../../../arm-none-eabi/lib/thumb/v6-m/libnosys.a(_exit.o) - .data 0x0000000000000000 0x0 /home/janhenrik/programme/gcc-arm-none-eabi-7-2018-q2-update/bin/../lib/gcc/arm-none-eabi/7.3.1/../../../../arm-none-eabi/lib/thumb/v6-m/libnosys.a(_exit.o) - .bss 0x0000000000000000 0x0 /home/janhenrik/programme/gcc-arm-none-eabi-7-2018-q2-update/bin/../lib/gcc/arm-none-eabi/7.3.1/../../../../arm-none-eabi/lib/thumb/v6-m/libnosys.a(_exit.o) - .text._exit 0x0000000000000000 0x4 /home/janhenrik/programme/gcc-arm-none-eabi-7-2018-q2-update/bin/../lib/gcc/arm-none-eabi/7.3.1/../../../../arm-none-eabi/lib/thumb/v6-m/libnosys.a(_exit.o) - .debug_frame 0x0000000000000000 0x20 /home/janhenrik/programme/gcc-arm-none-eabi-7-2018-q2-update/bin/../lib/gcc/arm-none-eabi/7.3.1/../../../../arm-none-eabi/lib/thumb/v6-m/libnosys.a(_exit.o) - .ARM.attributes - 0x0000000000000000 0x2c /home/janhenrik/programme/gcc-arm-none-eabi-7-2018-q2-update/bin/../lib/gcc/arm-none-eabi/7.3.1/../../../../arm-none-eabi/lib/thumb/v6-m/libnosys.a(_exit.o) - .data 0x0000000000000000 0x0 /home/janhenrik/programme/gcc-arm-none-eabi-7-2018-q2-update/bin/../lib/gcc/arm-none-eabi/7.3.1/thumb/v6-m/libgcc.a(_udivsi3.o) - .bss 0x0000000000000000 0x0 /home/janhenrik/programme/gcc-arm-none-eabi-7-2018-q2-update/bin/../lib/gcc/arm-none-eabi/7.3.1/thumb/v6-m/libgcc.a(_udivsi3.o) - .data 0x0000000000000000 0x0 /home/janhenrik/programme/gcc-arm-none-eabi-7-2018-q2-update/bin/../lib/gcc/arm-none-eabi/7.3.1/thumb/v6-m/libgcc.a(_dvmd_tls.o) - .bss 0x0000000000000000 0x0 /home/janhenrik/programme/gcc-arm-none-eabi-7-2018-q2-update/bin/../lib/gcc/arm-none-eabi/7.3.1/thumb/v6-m/libgcc.a(_dvmd_tls.o) - .data 0x0000000000000000 0x0 /home/janhenrik/programme/gcc-arm-none-eabi-7-2018-q2-update/bin/../lib/gcc/arm-none-eabi/7.3.1/thumb/v6-m/libgcc.a(_arm_cmpsf2.o) - .bss 0x0000000000000000 0x0 /home/janhenrik/programme/gcc-arm-none-eabi-7-2018-q2-update/bin/../lib/gcc/arm-none-eabi/7.3.1/thumb/v6-m/libgcc.a(_arm_cmpsf2.o) - .data 0x0000000000000000 0x0 /home/janhenrik/programme/gcc-arm-none-eabi-7-2018-q2-update/bin/../lib/gcc/arm-none-eabi/7.3.1/thumb/v6-m/libgcc.a(_fixunssfsi.o) - .bss 0x0000000000000000 0x0 /home/janhenrik/programme/gcc-arm-none-eabi-7-2018-q2-update/bin/../lib/gcc/arm-none-eabi/7.3.1/thumb/v6-m/libgcc.a(_fixunssfsi.o) - .data 0x0000000000000000 0x0 /home/janhenrik/programme/gcc-arm-none-eabi-7-2018-q2-update/bin/../lib/gcc/arm-none-eabi/7.3.1/thumb/v6-m/libgcc.a(addsf3.o) - .bss 0x0000000000000000 0x0 /home/janhenrik/programme/gcc-arm-none-eabi-7-2018-q2-update/bin/../lib/gcc/arm-none-eabi/7.3.1/thumb/v6-m/libgcc.a(addsf3.o) - .data 0x0000000000000000 0x0 /home/janhenrik/programme/gcc-arm-none-eabi-7-2018-q2-update/bin/../lib/gcc/arm-none-eabi/7.3.1/thumb/v6-m/libgcc.a(divsf3.o) - .bss 0x0000000000000000 0x0 /home/janhenrik/programme/gcc-arm-none-eabi-7-2018-q2-update/bin/../lib/gcc/arm-none-eabi/7.3.1/thumb/v6-m/libgcc.a(divsf3.o) - .data 0x0000000000000000 0x0 /home/janhenrik/programme/gcc-arm-none-eabi-7-2018-q2-update/bin/../lib/gcc/arm-none-eabi/7.3.1/thumb/v6-m/libgcc.a(eqsf2.o) - .bss 0x0000000000000000 0x0 /home/janhenrik/programme/gcc-arm-none-eabi-7-2018-q2-update/bin/../lib/gcc/arm-none-eabi/7.3.1/thumb/v6-m/libgcc.a(eqsf2.o) - .data 0x0000000000000000 0x0 /home/janhenrik/programme/gcc-arm-none-eabi-7-2018-q2-update/bin/../lib/gcc/arm-none-eabi/7.3.1/thumb/v6-m/libgcc.a(gesf2.o) - .bss 0x0000000000000000 0x0 /home/janhenrik/programme/gcc-arm-none-eabi-7-2018-q2-update/bin/../lib/gcc/arm-none-eabi/7.3.1/thumb/v6-m/libgcc.a(gesf2.o) - .data 0x0000000000000000 0x0 /home/janhenrik/programme/gcc-arm-none-eabi-7-2018-q2-update/bin/../lib/gcc/arm-none-eabi/7.3.1/thumb/v6-m/libgcc.a(lesf2.o) - .bss 0x0000000000000000 0x0 /home/janhenrik/programme/gcc-arm-none-eabi-7-2018-q2-update/bin/../lib/gcc/arm-none-eabi/7.3.1/thumb/v6-m/libgcc.a(lesf2.o) - .data 0x0000000000000000 0x0 /home/janhenrik/programme/gcc-arm-none-eabi-7-2018-q2-update/bin/../lib/gcc/arm-none-eabi/7.3.1/thumb/v6-m/libgcc.a(mulsf3.o) - .bss 0x0000000000000000 0x0 /home/janhenrik/programme/gcc-arm-none-eabi-7-2018-q2-update/bin/../lib/gcc/arm-none-eabi/7.3.1/thumb/v6-m/libgcc.a(mulsf3.o) - .data 0x0000000000000000 0x0 /home/janhenrik/programme/gcc-arm-none-eabi-7-2018-q2-update/bin/../lib/gcc/arm-none-eabi/7.3.1/thumb/v6-m/libgcc.a(subsf3.o) - .bss 0x0000000000000000 0x0 /home/janhenrik/programme/gcc-arm-none-eabi-7-2018-q2-update/bin/../lib/gcc/arm-none-eabi/7.3.1/thumb/v6-m/libgcc.a(subsf3.o) - .data 0x0000000000000000 0x0 /home/janhenrik/programme/gcc-arm-none-eabi-7-2018-q2-update/bin/../lib/gcc/arm-none-eabi/7.3.1/thumb/v6-m/libgcc.a(fixsfsi.o) - .bss 0x0000000000000000 0x0 /home/janhenrik/programme/gcc-arm-none-eabi-7-2018-q2-update/bin/../lib/gcc/arm-none-eabi/7.3.1/thumb/v6-m/libgcc.a(fixsfsi.o) - .data 0x0000000000000000 0x0 /home/janhenrik/programme/gcc-arm-none-eabi-7-2018-q2-update/bin/../lib/gcc/arm-none-eabi/7.3.1/thumb/v6-m/libgcc.a(floatsisf.o) - .bss 0x0000000000000000 0x0 /home/janhenrik/programme/gcc-arm-none-eabi-7-2018-q2-update/bin/../lib/gcc/arm-none-eabi/7.3.1/thumb/v6-m/libgcc.a(floatsisf.o) - .data 0x0000000000000000 0x0 /home/janhenrik/programme/gcc-arm-none-eabi-7-2018-q2-update/bin/../lib/gcc/arm-none-eabi/7.3.1/thumb/v6-m/libgcc.a(floatunsisf.o) - .bss 0x0000000000000000 0x0 /home/janhenrik/programme/gcc-arm-none-eabi-7-2018-q2-update/bin/../lib/gcc/arm-none-eabi/7.3.1/thumb/v6-m/libgcc.a(floatunsisf.o) - .data 0x0000000000000000 0x0 /home/janhenrik/programme/gcc-arm-none-eabi-7-2018-q2-update/bin/../lib/gcc/arm-none-eabi/7.3.1/thumb/v6-m/libgcc.a(divdf3.o) - .bss 0x0000000000000000 0x0 /home/janhenrik/programme/gcc-arm-none-eabi-7-2018-q2-update/bin/../lib/gcc/arm-none-eabi/7.3.1/thumb/v6-m/libgcc.a(divdf3.o) - .data 0x0000000000000000 0x0 /home/janhenrik/programme/gcc-arm-none-eabi-7-2018-q2-update/bin/../lib/gcc/arm-none-eabi/7.3.1/thumb/v6-m/libgcc.a(muldf3.o) - .bss 0x0000000000000000 0x0 /home/janhenrik/programme/gcc-arm-none-eabi-7-2018-q2-update/bin/../lib/gcc/arm-none-eabi/7.3.1/thumb/v6-m/libgcc.a(muldf3.o) - .data 0x0000000000000000 0x0 /home/janhenrik/programme/gcc-arm-none-eabi-7-2018-q2-update/bin/../lib/gcc/arm-none-eabi/7.3.1/thumb/v6-m/libgcc.a(subdf3.o) - .bss 0x0000000000000000 0x0 /home/janhenrik/programme/gcc-arm-none-eabi-7-2018-q2-update/bin/../lib/gcc/arm-none-eabi/7.3.1/thumb/v6-m/libgcc.a(subdf3.o) - .data 0x0000000000000000 0x0 /home/janhenrik/programme/gcc-arm-none-eabi-7-2018-q2-update/bin/../lib/gcc/arm-none-eabi/7.3.1/thumb/v6-m/libgcc.a(floatsidf.o) - .bss 0x0000000000000000 0x0 /home/janhenrik/programme/gcc-arm-none-eabi-7-2018-q2-update/bin/../lib/gcc/arm-none-eabi/7.3.1/thumb/v6-m/libgcc.a(floatsidf.o) - .data 0x0000000000000000 0x0 /home/janhenrik/programme/gcc-arm-none-eabi-7-2018-q2-update/bin/../lib/gcc/arm-none-eabi/7.3.1/thumb/v6-m/libgcc.a(extendsfdf2.o) - .bss 0x0000000000000000 0x0 /home/janhenrik/programme/gcc-arm-none-eabi-7-2018-q2-update/bin/../lib/gcc/arm-none-eabi/7.3.1/thumb/v6-m/libgcc.a(extendsfdf2.o) - .data 0x0000000000000000 0x0 /home/janhenrik/programme/gcc-arm-none-eabi-7-2018-q2-update/bin/../lib/gcc/arm-none-eabi/7.3.1/thumb/v6-m/libgcc.a(truncdfsf2.o) - .bss 0x0000000000000000 0x0 /home/janhenrik/programme/gcc-arm-none-eabi-7-2018-q2-update/bin/../lib/gcc/arm-none-eabi/7.3.1/thumb/v6-m/libgcc.a(truncdfsf2.o) - .data 0x0000000000000000 0x0 /home/janhenrik/programme/gcc-arm-none-eabi-7-2018-q2-update/bin/../lib/gcc/arm-none-eabi/7.3.1/thumb/v6-m/libgcc.a(_clzsi2.o) - .bss 0x0000000000000000 0x0 /home/janhenrik/programme/gcc-arm-none-eabi-7-2018-q2-update/bin/../lib/gcc/arm-none-eabi/7.3.1/thumb/v6-m/libgcc.a(_clzsi2.o) - .text 0x0000000000000000 0x0 /home/janhenrik/programme/gcc-arm-none-eabi-7-2018-q2-update/bin/../lib/gcc/arm-none-eabi/7.3.1/thumb/v6-m/crtend.o - .data 0x0000000000000000 0x0 /home/janhenrik/programme/gcc-arm-none-eabi-7-2018-q2-update/bin/../lib/gcc/arm-none-eabi/7.3.1/thumb/v6-m/crtend.o - .bss 0x0000000000000000 0x0 /home/janhenrik/programme/gcc-arm-none-eabi-7-2018-q2-update/bin/../lib/gcc/arm-none-eabi/7.3.1/thumb/v6-m/crtend.o - .eh_frame 0x0000000000000000 0x4 /home/janhenrik/programme/gcc-arm-none-eabi-7-2018-q2-update/bin/../lib/gcc/arm-none-eabi/7.3.1/thumb/v6-m/crtend.o - .ARM.attributes - 0x0000000000000000 0x2c /home/janhenrik/programme/gcc-arm-none-eabi-7-2018-q2-update/bin/../lib/gcc/arm-none-eabi/7.3.1/thumb/v6-m/crtend.o - .text 0x0000000000000000 0x0 /home/janhenrik/programme/gcc-arm-none-eabi-7-2018-q2-update/bin/../lib/gcc/arm-none-eabi/7.3.1/thumb/v6-m/crtn.o - .data 0x0000000000000000 0x0 /home/janhenrik/programme/gcc-arm-none-eabi-7-2018-q2-update/bin/../lib/gcc/arm-none-eabi/7.3.1/thumb/v6-m/crtn.o - .bss 0x0000000000000000 0x0 /home/janhenrik/programme/gcc-arm-none-eabi-7-2018-q2-update/bin/../lib/gcc/arm-none-eabi/7.3.1/thumb/v6-m/crtn.o - -Memory Configuration - -Name Origin Length Attributes -RAM 0x0000000020000000 0x0000000000004000 xrw -FLASH 0x0000000008000000 0x0000000000020000 xr -*default* 0x0000000000000000 0xffffffffffffffff - -Linker script and memory map - -LOAD /home/janhenrik/programme/gcc-arm-none-eabi-7-2018-q2-update/bin/../lib/gcc/arm-none-eabi/7.3.1/thumb/v6-m/crti.o -LOAD /home/janhenrik/programme/gcc-arm-none-eabi-7-2018-q2-update/bin/../lib/gcc/arm-none-eabi/7.3.1/thumb/v6-m/crtbegin.o -LOAD /home/janhenrik/programme/gcc-arm-none-eabi-7-2018-q2-update/bin/../lib/gcc/arm-none-eabi/7.3.1/../../../../arm-none-eabi/lib/thumb/v6-m/crt0.o -LOAD build/main.o -LOAD build/stm32f0xx_it.o -LOAD build/stm32f0xx_hal_msp.o -LOAD build/stm32f0xx_hal_adc.o -LOAD build/stm32f0xx_hal_adc_ex.o -LOAD build/stm32f0xx_hal_i2c.o -LOAD build/stm32f0xx_hal_i2c_ex.o -LOAD build/stm32f0xx_hal_tim.o -LOAD build/stm32f0xx_hal_tim_ex.o -LOAD build/stm32f0xx_hal_pcd.o -LOAD build/stm32f0xx_hal_pcd_ex.o -LOAD build/stm32f0xx_hal_rcc.o -LOAD build/stm32f0xx_hal_rcc_ex.o -LOAD build/stm32f0xx_hal.o -LOAD build/stm32f0xx_hal_gpio.o -LOAD build/stm32f0xx_hal_dma.o -LOAD build/stm32f0xx_hal_cortex.o -LOAD build/stm32f0xx_hal_pwr.o -LOAD build/stm32f0xx_hal_pwr_ex.o -LOAD build/stm32f0xx_hal_flash.o -LOAD build/stm32f0xx_hal_flash_ex.o -LOAD build/system_stm32f0xx.o -LOAD build/startup_stm32f072xb.o -LOAD /home/janhenrik/programme/gcc-arm-none-eabi-7-2018-q2-update/bin/../lib/gcc/arm-none-eabi/7.3.1/../../../../arm-none-eabi/lib/thumb/v6-m/libc_nano.a -LOAD /home/janhenrik/programme/gcc-arm-none-eabi-7-2018-q2-update/bin/../lib/gcc/arm-none-eabi/7.3.1/../../../../arm-none-eabi/lib/thumb/v6-m/libm.a -LOAD /home/janhenrik/programme/gcc-arm-none-eabi-7-2018-q2-update/bin/../lib/gcc/arm-none-eabi/7.3.1/../../../../arm-none-eabi/lib/thumb/v6-m/libnosys.a -START GROUP -LOAD /home/janhenrik/programme/gcc-arm-none-eabi-7-2018-q2-update/bin/../lib/gcc/arm-none-eabi/7.3.1/thumb/v6-m/libgcc.a -LOAD /home/janhenrik/programme/gcc-arm-none-eabi-7-2018-q2-update/bin/../lib/gcc/arm-none-eabi/7.3.1/../../../../arm-none-eabi/lib/thumb/v6-m/libc_nano.a -END GROUP -START GROUP -LOAD /home/janhenrik/programme/gcc-arm-none-eabi-7-2018-q2-update/bin/../lib/gcc/arm-none-eabi/7.3.1/thumb/v6-m/libgcc.a -LOAD /home/janhenrik/programme/gcc-arm-none-eabi-7-2018-q2-update/bin/../lib/gcc/arm-none-eabi/7.3.1/../../../../arm-none-eabi/lib/thumb/v6-m/libc_nano.a -END GROUP -LOAD /home/janhenrik/programme/gcc-arm-none-eabi-7-2018-q2-update/bin/../lib/gcc/arm-none-eabi/7.3.1/thumb/v6-m/crtend.o -LOAD /home/janhenrik/programme/gcc-arm-none-eabi-7-2018-q2-update/bin/../lib/gcc/arm-none-eabi/7.3.1/thumb/v6-m/crtn.o - 0x0000000020004000 _estack = 0x20004000 - 0x0000000000000200 _Min_Heap_Size = 0x200 - 0x0000000000000400 _Min_Stack_Size = 0x400 - -.isr_vector 0x0000000008000000 0xc0 - 0x0000000008000000 . = ALIGN (0x4) - *(.isr_vector) - .isr_vector 0x0000000008000000 0xc0 build/startup_stm32f072xb.o - 0x0000000008000000 g_pfnVectors - 0x00000000080000c0 . = ALIGN (0x4) - -.text 0x00000000080000c0 0x5d98 - 0x00000000080000c0 . = ALIGN (0x4) - *(.text) - .text 0x00000000080000c0 0x48 /home/janhenrik/programme/gcc-arm-none-eabi-7-2018-q2-update/bin/../lib/gcc/arm-none-eabi/7.3.1/thumb/v6-m/crtbegin.o - .text 0x0000000008000108 0x114 /home/janhenrik/programme/gcc-arm-none-eabi-7-2018-q2-update/bin/../lib/gcc/arm-none-eabi/7.3.1/thumb/v6-m/libgcc.a(_udivsi3.o) - 0x0000000008000108 __udivsi3 - 0x0000000008000108 __aeabi_uidiv - 0x0000000008000214 __aeabi_uidivmod - .text 0x000000000800021c 0x4 /home/janhenrik/programme/gcc-arm-none-eabi-7-2018-q2-update/bin/../lib/gcc/arm-none-eabi/7.3.1/thumb/v6-m/libgcc.a(_dvmd_tls.o) - 0x000000000800021c __aeabi_ldiv0 - 0x000000000800021c __aeabi_idiv0 - .text 0x0000000008000220 0x74 /home/janhenrik/programme/gcc-arm-none-eabi-7-2018-q2-update/bin/../lib/gcc/arm-none-eabi/7.3.1/thumb/v6-m/libgcc.a(_arm_cmpsf2.o) - 0x0000000008000220 __aeabi_cfrcmple - 0x0000000008000228 __aeabi_cfcmple - 0x0000000008000228 __aeabi_cfcmpeq - 0x0000000008000238 __aeabi_fcmpeq - 0x0000000008000244 __aeabi_fcmplt - 0x0000000008000258 __aeabi_fcmple - 0x000000000800026c __aeabi_fcmpgt - 0x0000000008000280 __aeabi_fcmpge - .text 0x0000000008000294 0x30 /home/janhenrik/programme/gcc-arm-none-eabi-7-2018-q2-update/bin/../lib/gcc/arm-none-eabi/7.3.1/thumb/v6-m/libgcc.a(_fixunssfsi.o) - 0x0000000008000294 __aeabi_f2uiz - 0x0000000008000294 __fixunssfsi - .text 0x00000000080002c4 0x334 /home/janhenrik/programme/gcc-arm-none-eabi-7-2018-q2-update/bin/../lib/gcc/arm-none-eabi/7.3.1/thumb/v6-m/libgcc.a(addsf3.o) - 0x00000000080002c4 __aeabi_fadd - .text 0x00000000080005f8 0x224 /home/janhenrik/programme/gcc-arm-none-eabi-7-2018-q2-update/bin/../lib/gcc/arm-none-eabi/7.3.1/thumb/v6-m/libgcc.a(divsf3.o) - 0x00000000080005f8 __aeabi_fdiv - .text 0x000000000800081c 0x50 /home/janhenrik/programme/gcc-arm-none-eabi-7-2018-q2-update/bin/../lib/gcc/arm-none-eabi/7.3.1/thumb/v6-m/libgcc.a(eqsf2.o) - 0x000000000800081c __nesf2 - 0x000000000800081c __eqsf2 - .text 0x000000000800086c 0x9c /home/janhenrik/programme/gcc-arm-none-eabi-7-2018-q2-update/bin/../lib/gcc/arm-none-eabi/7.3.1/thumb/v6-m/libgcc.a(gesf2.o) - 0x000000000800086c __gtsf2 - 0x000000000800086c __gesf2 - .text 0x0000000008000908 0xa0 /home/janhenrik/programme/gcc-arm-none-eabi-7-2018-q2-update/bin/../lib/gcc/arm-none-eabi/7.3.1/thumb/v6-m/libgcc.a(lesf2.o) - 0x0000000008000908 __lesf2 - 0x0000000008000908 __ltsf2 - .text 0x00000000080009a8 0x264 /home/janhenrik/programme/gcc-arm-none-eabi-7-2018-q2-update/bin/../lib/gcc/arm-none-eabi/7.3.1/thumb/v6-m/libgcc.a(mulsf3.o) - 0x00000000080009a8 __aeabi_fmul - .text 0x0000000008000c0c 0x388 /home/janhenrik/programme/gcc-arm-none-eabi-7-2018-q2-update/bin/../lib/gcc/arm-none-eabi/7.3.1/thumb/v6-m/libgcc.a(subsf3.o) - 0x0000000008000c0c __aeabi_fsub - .text 0x0000000008000f94 0x40 /home/janhenrik/programme/gcc-arm-none-eabi-7-2018-q2-update/bin/../lib/gcc/arm-none-eabi/7.3.1/thumb/v6-m/libgcc.a(fixsfsi.o) - 0x0000000008000f94 __aeabi_f2iz - .text 0x0000000008000fd4 0x94 /home/janhenrik/programme/gcc-arm-none-eabi-7-2018-q2-update/bin/../lib/gcc/arm-none-eabi/7.3.1/thumb/v6-m/libgcc.a(floatsisf.o) - 0x0000000008000fd4 __aeabi_i2f - .text 0x0000000008001068 0x80 /home/janhenrik/programme/gcc-arm-none-eabi-7-2018-q2-update/bin/../lib/gcc/arm-none-eabi/7.3.1/thumb/v6-m/libgcc.a(floatunsisf.o) - 0x0000000008001068 __aeabi_ui2f - .text 0x00000000080010e8 0x604 /home/janhenrik/programme/gcc-arm-none-eabi-7-2018-q2-update/bin/../lib/gcc/arm-none-eabi/7.3.1/thumb/v6-m/libgcc.a(divdf3.o) - 0x00000000080010e8 __aeabi_ddiv - .text 0x00000000080016ec 0x4e4 /home/janhenrik/programme/gcc-arm-none-eabi-7-2018-q2-update/bin/../lib/gcc/arm-none-eabi/7.3.1/thumb/v6-m/libgcc.a(muldf3.o) - 0x00000000080016ec __aeabi_dmul - .text 0x0000000008001bd0 0x690 /home/janhenrik/programme/gcc-arm-none-eabi-7-2018-q2-update/bin/../lib/gcc/arm-none-eabi/7.3.1/thumb/v6-m/libgcc.a(subdf3.o) - 0x0000000008001bd0 __aeabi_dsub - .text 0x0000000008002260 0x74 /home/janhenrik/programme/gcc-arm-none-eabi-7-2018-q2-update/bin/../lib/gcc/arm-none-eabi/7.3.1/thumb/v6-m/libgcc.a(floatsidf.o) - 0x0000000008002260 __aeabi_i2d - .text 0x00000000080022d4 0xa4 /home/janhenrik/programme/gcc-arm-none-eabi-7-2018-q2-update/bin/../lib/gcc/arm-none-eabi/7.3.1/thumb/v6-m/libgcc.a(extendsfdf2.o) - 0x00000000080022d4 __aeabi_f2d - .text 0x0000000008002378 0x108 /home/janhenrik/programme/gcc-arm-none-eabi-7-2018-q2-update/bin/../lib/gcc/arm-none-eabi/7.3.1/thumb/v6-m/libgcc.a(truncdfsf2.o) - 0x0000000008002378 __aeabi_d2f - .text 0x0000000008002480 0x3c /home/janhenrik/programme/gcc-arm-none-eabi-7-2018-q2-update/bin/../lib/gcc/arm-none-eabi/7.3.1/thumb/v6-m/libgcc.a(_clzsi2.o) - 0x0000000008002480 __clzsi2 - *(.text*) - .text.MX_GPIO_Init - 0x00000000080024bc 0x68 build/main.o - .text.MX_DMA_Init - 0x0000000008002524 0x30 build/main.o - .text.MX_ADC_Init - 0x0000000008002554 0xac build/main.o - .text.MX_I2C1_Init - 0x0000000008002600 0x44 build/main.o - .text.MX_I2C2_Init - 0x0000000008002644 0x44 build/main.o - .text.MX_TIM1_Init - 0x0000000008002688 0xec build/main.o - .text.MX_USB_PCD_Init - 0x0000000008002774 0x28 build/main.o - .text.reg 0x000000000800279c 0x220 build/main.o - 0x000000000800279c reg - .text.disp_init - 0x00000000080029bc 0x54 build/main.o - 0x00000000080029bc disp_init - .text.refresh 0x0000000008002a10 0x40 build/main.o - 0x0000000008002a10 refresh - .text.clear_screen - 0x0000000008002a50 0x14 build/main.o - 0x0000000008002a50 clear_screen - .text.write_pixel - 0x0000000008002a64 0x74 build/main.o - 0x0000000008002a64 write_pixel - .text.draw_v_line - 0x0000000008002ad8 0x26 build/main.o - 0x0000000008002ad8 draw_v_line - *fill* 0x0000000008002afe 0x2 - .text.draw_char - 0x0000000008002b00 0x68 build/main.o - 0x0000000008002b00 draw_char - .text.draw_string - 0x0000000008002b68 0x24 build/main.o - 0x0000000008002b68 draw_string - .text.SystemClock_Config - 0x0000000008002b8c 0x70 build/main.o - 0x0000000008002b8c SystemClock_Config - .text.main 0x0000000008002bfc 0x354 build/main.o - 0x0000000008002bfc main - .text.NMI_Handler - 0x0000000008002f50 0x2 build/stm32f0xx_it.o - 0x0000000008002f50 NMI_Handler - .text.HardFault_Handler - 0x0000000008002f52 0x2 build/stm32f0xx_it.o - 0x0000000008002f52 HardFault_Handler - .text.SVC_Handler - 0x0000000008002f54 0x2 build/stm32f0xx_it.o - 0x0000000008002f54 SVC_Handler - .text.PendSV_Handler - 0x0000000008002f56 0x2 build/stm32f0xx_it.o - 0x0000000008002f56 PendSV_Handler - .text.SysTick_Handler - 0x0000000008002f58 0x8 build/stm32f0xx_it.o - 0x0000000008002f58 SysTick_Handler - .text.ADC1_COMP_IRQHandler - 0x0000000008002f60 0x10 build/stm32f0xx_it.o - 0x0000000008002f60 ADC1_COMP_IRQHandler - .text.DMA1_Channel1_IRQHandler - 0x0000000008002f70 0x14 build/stm32f0xx_it.o - 0x0000000008002f70 DMA1_Channel1_IRQHandler - .text.TIM1_BRK_UP_TRG_COM_IRQHandler - 0x0000000008002f84 0x10 build/stm32f0xx_it.o - 0x0000000008002f84 TIM1_BRK_UP_TRG_COM_IRQHandler - .text.TIM1_CC_IRQHandler - 0x0000000008002f94 0x10 build/stm32f0xx_it.o - 0x0000000008002f94 TIM1_CC_IRQHandler - .text.HAL_MspInit - 0x0000000008002fa4 0x30 build/stm32f0xx_hal_msp.o - 0x0000000008002fa4 HAL_MspInit - .text.HAL_ADC_MspInit - 0x0000000008002fd4 0x98 build/stm32f0xx_hal_msp.o - 0x0000000008002fd4 HAL_ADC_MspInit - .text.HAL_I2C_MspInit - 0x000000000800306c 0xb8 build/stm32f0xx_hal_msp.o - 0x000000000800306c HAL_I2C_MspInit - .text.HAL_TIM_PWM_MspInit - 0x0000000008003124 0x50 build/stm32f0xx_hal_msp.o - 0x0000000008003124 HAL_TIM_PWM_MspInit - .text.HAL_TIM_MspPostInit - 0x0000000008003174 0x64 build/stm32f0xx_hal_msp.o - 0x0000000008003174 HAL_TIM_MspPostInit - .text.HAL_PCD_MspInit - 0x00000000080031d8 0x2c build/stm32f0xx_hal_msp.o - 0x00000000080031d8 HAL_PCD_MspInit - .text.ADC_Enable - 0x0000000008003204 0xa8 build/stm32f0xx_hal_adc.o - .text.HAL_ADC_Init - 0x00000000080032ac 0x17c build/stm32f0xx_hal_adc.o - 0x00000000080032ac HAL_ADC_Init - .text.HAL_ADC_Start_DMA - 0x0000000008003428 0xa8 build/stm32f0xx_hal_adc.o - 0x0000000008003428 HAL_ADC_Start_DMA - .text.HAL_ADC_ConvCpltCallback - 0x00000000080034d0 0x2 build/stm32f0xx_hal_adc.o - 0x00000000080034d0 HAL_ADC_ConvCpltCallback - *fill* 0x00000000080034d2 0x2 - .text.ADC_DMAConvCplt - 0x00000000080034d4 0x70 build/stm32f0xx_hal_adc.o - .text.HAL_ADC_ConvHalfCpltCallback - 0x0000000008003544 0x2 build/stm32f0xx_hal_adc.o - 0x0000000008003544 HAL_ADC_ConvHalfCpltCallback - .text.ADC_DMAHalfConvCplt - 0x0000000008003546 0xa build/stm32f0xx_hal_adc.o - .text.HAL_ADC_LevelOutOfWindowCallback - 0x0000000008003550 0x2 build/stm32f0xx_hal_adc.o - 0x0000000008003550 HAL_ADC_LevelOutOfWindowCallback - .text.HAL_ADC_ErrorCallback - 0x0000000008003552 0x2 build/stm32f0xx_hal_adc.o - 0x0000000008003552 HAL_ADC_ErrorCallback - .text.ADC_DMAError - 0x0000000008003554 0x1a build/stm32f0xx_hal_adc.o - *fill* 0x000000000800356e 0x2 - .text.HAL_ADC_IRQHandler - 0x0000000008003570 0xdc build/stm32f0xx_hal_adc.o - 0x0000000008003570 HAL_ADC_IRQHandler - .text.HAL_ADC_ConfigChannel - 0x000000000800364c 0x14c build/stm32f0xx_hal_adc.o - 0x000000000800364c HAL_ADC_ConfigChannel - .text.I2C_Flush_TXDR - 0x0000000008003798 0x1e build/stm32f0xx_hal_i2c.o - *fill* 0x00000000080037b6 0x2 - .text.I2C_TransferConfig - 0x00000000080037b8 0x28 build/stm32f0xx_hal_i2c.o - .text.I2C_IsAcknowledgeFailed - 0x00000000080037e0 0x78 build/stm32f0xx_hal_i2c.o - .text.I2C_WaitOnTXISFlagUntilTimeout - 0x0000000008003858 0x52 build/stm32f0xx_hal_i2c.o - .text.I2C_WaitOnFlagUntilTimeout - 0x00000000080038aa 0x46 build/stm32f0xx_hal_i2c.o - .text.I2C_WaitOnSTOPFlagUntilTimeout - 0x00000000080038f0 0x4e build/stm32f0xx_hal_i2c.o - *fill* 0x000000000800393e 0x2 - .text.HAL_I2C_Init - 0x0000000008003940 0xcc build/stm32f0xx_hal_i2c.o - 0x0000000008003940 HAL_I2C_Init - .text.HAL_I2C_Master_Transmit - 0x0000000008003a0c 0x180 build/stm32f0xx_hal_i2c.o - 0x0000000008003a0c HAL_I2C_Master_Transmit - .text.HAL_I2C_GetState - 0x0000000008003b8c 0x8 build/stm32f0xx_hal_i2c.o - 0x0000000008003b8c HAL_I2C_GetState - .text.HAL_I2CEx_ConfigAnalogFilter - 0x0000000008003b94 0x58 build/stm32f0xx_hal_i2c_ex.o - 0x0000000008003b94 HAL_I2CEx_ConfigAnalogFilter - .text.HAL_I2CEx_ConfigDigitalFilter - 0x0000000008003bec 0x54 build/stm32f0xx_hal_i2c_ex.o - 0x0000000008003bec HAL_I2CEx_ConfigDigitalFilter - .text.TIM_OC1_SetConfig - 0x0000000008003c40 0x88 build/stm32f0xx_hal_tim.o - .text.TIM_OC3_SetConfig - 0x0000000008003cc8 0x90 build/stm32f0xx_hal_tim.o - .text.TIM_OC4_SetConfig - 0x0000000008003d58 0x74 build/stm32f0xx_hal_tim.o - .text.TIM_TI1_ConfigInputStage - 0x0000000008003dcc 0x22 build/stm32f0xx_hal_tim.o - *fill* 0x0000000008003dee 0x2 - .text.TIM_TI2_ConfigInputStage - 0x0000000008003df0 0x28 build/stm32f0xx_hal_tim.o - .text.TIM_ITRx_SetConfig - 0x0000000008003e18 0x10 build/stm32f0xx_hal_tim.o - .text.HAL_TIM_Base_MspInit - 0x0000000008003e28 0x2 build/stm32f0xx_hal_tim.o - 0x0000000008003e28 HAL_TIM_Base_MspInit - .text.HAL_TIM_OC_MspInit - 0x0000000008003e2a 0x2 build/stm32f0xx_hal_tim.o - 0x0000000008003e2a HAL_TIM_OC_MspInit - .text.HAL_TIM_PeriodElapsedCallback - 0x0000000008003e2c 0x2 build/stm32f0xx_hal_tim.o - 0x0000000008003e2c HAL_TIM_PeriodElapsedCallback - .text.HAL_TIM_OC_DelayElapsedCallback - 0x0000000008003e2e 0x2 build/stm32f0xx_hal_tim.o - 0x0000000008003e2e HAL_TIM_OC_DelayElapsedCallback - .text.HAL_TIM_IC_CaptureCallback - 0x0000000008003e30 0x2 build/stm32f0xx_hal_tim.o - 0x0000000008003e30 HAL_TIM_IC_CaptureCallback - .text.HAL_TIM_PWM_PulseFinishedCallback - 0x0000000008003e32 0x2 build/stm32f0xx_hal_tim.o - 0x0000000008003e32 HAL_TIM_PWM_PulseFinishedCallback - .text.HAL_TIM_TriggerCallback - 0x0000000008003e34 0x2 build/stm32f0xx_hal_tim.o - 0x0000000008003e34 HAL_TIM_TriggerCallback - .text.HAL_TIM_IRQHandler - 0x0000000008003e36 0x15a build/stm32f0xx_hal_tim.o - 0x0000000008003e36 HAL_TIM_IRQHandler - .text.TIM_Base_SetConfig - 0x0000000008003f90 0xa4 build/stm32f0xx_hal_tim.o - 0x0000000008003f90 TIM_Base_SetConfig - .text.HAL_TIM_Base_Init - 0x0000000008004034 0x34 build/stm32f0xx_hal_tim.o - 0x0000000008004034 HAL_TIM_Base_Init - .text.HAL_TIM_OC_Init - 0x0000000008004068 0x34 build/stm32f0xx_hal_tim.o - 0x0000000008004068 HAL_TIM_OC_Init - .text.HAL_TIM_PWM_Init - 0x000000000800409c 0x34 build/stm32f0xx_hal_tim.o - 0x000000000800409c HAL_TIM_PWM_Init - .text.TIM_OC2_SetConfig - 0x00000000080040d0 0x88 build/stm32f0xx_hal_tim.o - 0x00000000080040d0 TIM_OC2_SetConfig - .text.HAL_TIM_OC_ConfigChannel - 0x0000000008004158 0x5c build/stm32f0xx_hal_tim.o - 0x0000000008004158 HAL_TIM_OC_ConfigChannel - .text.HAL_TIM_PWM_ConfigChannel - 0x00000000080041b4 0xec build/stm32f0xx_hal_tim.o - 0x00000000080041b4 HAL_TIM_PWM_ConfigChannel - .text.TIM_ETR_SetConfig - 0x00000000080042a0 0x18 build/stm32f0xx_hal_tim.o - 0x00000000080042a0 TIM_ETR_SetConfig - .text.HAL_TIM_ConfigClockSource - 0x00000000080042b8 0x118 build/stm32f0xx_hal_tim.o - 0x00000000080042b8 HAL_TIM_ConfigClockSource - .text.TIM_CCxChannelCmd - 0x00000000080043d0 0x16 build/stm32f0xx_hal_tim.o - 0x00000000080043d0 TIM_CCxChannelCmd - *fill* 0x00000000080043e6 0x2 - .text.HAL_TIM_OC_Start - 0x00000000080043e8 0x50 build/stm32f0xx_hal_tim.o - 0x00000000080043e8 HAL_TIM_OC_Start - .text.HAL_TIM_PWM_Start - 0x0000000008004438 0x50 build/stm32f0xx_hal_tim.o - 0x0000000008004438 HAL_TIM_PWM_Start - .text.HAL_TIMEx_MasterConfigSynchronization - 0x0000000008004488 0x4c build/stm32f0xx_hal_tim_ex.o - 0x0000000008004488 HAL_TIMEx_MasterConfigSynchronization - .text.HAL_TIMEx_ConfigBreakDeadTime - 0x00000000080044d4 0x7c build/stm32f0xx_hal_tim_ex.o - 0x00000000080044d4 HAL_TIMEx_ConfigBreakDeadTime - .text.HAL_TIMEx_CommutationCallback - 0x0000000008004550 0x2 build/stm32f0xx_hal_tim_ex.o - 0x0000000008004550 HAL_TIMEx_CommutationCallback - .text.HAL_TIMEx_BreakCallback - 0x0000000008004552 0x2 build/stm32f0xx_hal_tim_ex.o - 0x0000000008004552 HAL_TIMEx_BreakCallback - .text.HAL_PCD_Init - 0x0000000008004554 0xc0 build/stm32f0xx_hal_pcd.o - 0x0000000008004554 HAL_PCD_Init - .text.HAL_RCC_OscConfig - 0x0000000008004614 0x4fc build/stm32f0xx_hal_rcc.o - 0x0000000008004614 HAL_RCC_OscConfig - .text.HAL_RCC_GetSysClockFreq - 0x0000000008004b10 0x94 build/stm32f0xx_hal_rcc.o - 0x0000000008004b10 HAL_RCC_GetSysClockFreq - .text.HAL_RCC_ClockConfig - 0x0000000008004ba4 0x184 build/stm32f0xx_hal_rcc.o - 0x0000000008004ba4 HAL_RCC_ClockConfig - .text.HAL_RCC_GetHCLKFreq - 0x0000000008004d28 0xc build/stm32f0xx_hal_rcc.o - 0x0000000008004d28 HAL_RCC_GetHCLKFreq - .text.HAL_RCCEx_PeriphCLKConfig - 0x0000000008004d34 0x158 build/stm32f0xx_hal_rcc_ex.o - 0x0000000008004d34 HAL_RCCEx_PeriphCLKConfig - .text.HAL_InitTick - 0x0000000008004e8c 0x24 build/stm32f0xx_hal.o - 0x0000000008004e8c HAL_InitTick - .text.HAL_Init - 0x0000000008004eb0 0x20 build/stm32f0xx_hal.o - 0x0000000008004eb0 HAL_Init - .text.HAL_IncTick - 0x0000000008004ed0 0x10 build/stm32f0xx_hal.o - 0x0000000008004ed0 HAL_IncTick - .text.HAL_GetTick - 0x0000000008004ee0 0xc build/stm32f0xx_hal.o - 0x0000000008004ee0 HAL_GetTick - .text.HAL_Delay - 0x0000000008004eec 0x22 build/stm32f0xx_hal.o - 0x0000000008004eec HAL_Delay - *fill* 0x0000000008004f0e 0x2 - .text.HAL_GPIO_Init - 0x0000000008004f10 0x198 build/stm32f0xx_hal_gpio.o - 0x0000000008004f10 HAL_GPIO_Init - .text.HAL_GPIO_ReadPin - 0x00000000080050a8 0xe build/stm32f0xx_hal_gpio.o - 0x00000000080050a8 HAL_GPIO_ReadPin - .text.DMA_SetConfig - 0x00000000080050b6 0x2a build/stm32f0xx_hal_dma.o - .text.DMA_CalcBaseAndBitshift - 0x00000000080050e0 0x28 build/stm32f0xx_hal_dma.o - .text.HAL_DMA_Init - 0x0000000008005108 0x58 build/stm32f0xx_hal_dma.o - 0x0000000008005108 HAL_DMA_Init - .text.HAL_DMA_Start_IT - 0x0000000008005160 0x76 build/stm32f0xx_hal_dma.o - 0x0000000008005160 HAL_DMA_Start_IT - .text.HAL_DMA_IRQHandler - 0x00000000080051d6 0xaa build/stm32f0xx_hal_dma.o - 0x00000000080051d6 HAL_DMA_IRQHandler - .text.HAL_NVIC_SetPriority - 0x0000000008005280 0x60 build/stm32f0xx_hal_cortex.o - 0x0000000008005280 HAL_NVIC_SetPriority - .text.HAL_NVIC_EnableIRQ - 0x00000000080052e0 0x14 build/stm32f0xx_hal_cortex.o - 0x00000000080052e0 HAL_NVIC_EnableIRQ - .text.HAL_SYSTICK_Config - 0x00000000080052f4 0x38 build/stm32f0xx_hal_cortex.o - 0x00000000080052f4 HAL_SYSTICK_Config - .text.FLASH_Program_HalfWord - 0x000000000800532c 0x20 build/stm32f0xx_hal_flash.o - .text.FLASH_SetErrorCode - 0x000000000800534c 0x3c build/stm32f0xx_hal_flash.o - .text.HAL_FLASH_Unlock - 0x0000000008005388 0x30 build/stm32f0xx_hal_flash.o - 0x0000000008005388 HAL_FLASH_Unlock - .text.HAL_FLASH_Lock - 0x00000000080053b8 0x14 build/stm32f0xx_hal_flash.o - 0x00000000080053b8 HAL_FLASH_Lock - .text.FLASH_WaitForLastOperation - 0x00000000080053cc 0x5c build/stm32f0xx_hal_flash.o - 0x00000000080053cc FLASH_WaitForLastOperation - .text.HAL_FLASH_Program - 0x0000000008005428 0xa0 build/stm32f0xx_hal_flash.o - 0x0000000008005428 HAL_FLASH_Program - .text.SystemInit - 0x00000000080054c8 0xa0 build/system_stm32f0xx.o - 0x00000000080054c8 SystemInit - .text.Reset_Handler - 0x0000000008005568 0x50 build/startup_stm32f072xb.o - 0x0000000008005568 Reset_Handler - .text.Default_Handler - 0x00000000080055b8 0x2 build/startup_stm32f072xb.o - 0x00000000080055b8 TSC_IRQHandler - 0x00000000080055b8 I2C1_IRQHandler - 0x00000000080055b8 RCC_CRS_IRQHandler - 0x00000000080055b8 SPI1_IRQHandler - 0x00000000080055b8 TIM6_DAC_IRQHandler - 0x00000000080055b8 USART3_4_IRQHandler - 0x00000000080055b8 EXTI2_3_IRQHandler - 0x00000000080055b8 I2C2_IRQHandler - 0x00000000080055b8 TIM17_IRQHandler - 0x00000000080055b8 CEC_CAN_IRQHandler - 0x00000000080055b8 RTC_IRQHandler - 0x00000000080055b8 PVD_VDDIO2_IRQHandler - 0x00000000080055b8 DMA1_Channel4_5_6_7_IRQHandler - 0x00000000080055b8 TIM16_IRQHandler - 0x00000000080055b8 TIM3_IRQHandler - 0x00000000080055b8 EXTI4_15_IRQHandler - 0x00000000080055b8 Default_Handler - 0x00000000080055b8 TIM14_IRQHandler - 0x00000000080055b8 TIM7_IRQHandler - 0x00000000080055b8 TIM15_IRQHandler - 0x00000000080055b8 EXTI0_1_IRQHandler - 0x00000000080055b8 USB_IRQHandler - 0x00000000080055b8 SPI2_IRQHandler - 0x00000000080055b8 WWDG_IRQHandler - 0x00000000080055b8 TIM2_IRQHandler - 0x00000000080055b8 DMA1_Channel2_3_IRQHandler - 0x00000000080055b8 USART2_IRQHandler - 0x00000000080055b8 FLASH_IRQHandler - 0x00000000080055b8 USART1_IRQHandler - *fill* 0x00000000080055ba 0x2 - .text.__libc_init_array - 0x00000000080055bc 0x48 /home/janhenrik/programme/gcc-arm-none-eabi-7-2018-q2-update/bin/../lib/gcc/arm-none-eabi/7.3.1/../../../../arm-none-eabi/lib/thumb/v6-m/libc_nano.a(lib_a-init.o) - 0x00000000080055bc __libc_init_array - .text.memcpy 0x0000000008005604 0x12 /home/janhenrik/programme/gcc-arm-none-eabi-7-2018-q2-update/bin/../lib/gcc/arm-none-eabi/7.3.1/../../../../arm-none-eabi/lib/thumb/v6-m/libc_nano.a(lib_a-memcpy-stub.o) - 0x0000000008005604 memcpy - .text.memset 0x0000000008005616 0x10 /home/janhenrik/programme/gcc-arm-none-eabi-7-2018-q2-update/bin/../lib/gcc/arm-none-eabi/7.3.1/../../../../arm-none-eabi/lib/thumb/v6-m/libc_nano.a(lib_a-memset.o) - 0x0000000008005616 memset - *fill* 0x0000000008005626 0x2 - .text.sprintf 0x0000000008005628 0x40 /home/janhenrik/programme/gcc-arm-none-eabi-7-2018-q2-update/bin/../lib/gcc/arm-none-eabi/7.3.1/../../../../arm-none-eabi/lib/thumb/v6-m/libc_nano.a(lib_a-sprintf.o) - 0x0000000008005628 sprintf - 0x0000000008005628 siprintf - .text.__ssputs_r - 0x0000000008005668 0xc4 /home/janhenrik/programme/gcc-arm-none-eabi-7-2018-q2-update/bin/../lib/gcc/arm-none-eabi/7.3.1/../../../../arm-none-eabi/lib/thumb/v6-m/libc_nano.a(lib_a-nano-svfprintf.o) - 0x0000000008005668 __ssputs_r - .text._svfprintf_r - 0x000000000800572c 0x1fc /home/janhenrik/programme/gcc-arm-none-eabi-7-2018-q2-update/bin/../lib/gcc/arm-none-eabi/7.3.1/../../../../arm-none-eabi/lib/thumb/v6-m/libc_nano.a(lib_a-nano-svfprintf.o) - 0x000000000800572c _svfprintf_r - 0x000000000800572c _svfiprintf_r - .text._printf_common - 0x0000000008005928 0xda /home/janhenrik/programme/gcc-arm-none-eabi-7-2018-q2-update/bin/../lib/gcc/arm-none-eabi/7.3.1/../../../../arm-none-eabi/lib/thumb/v6-m/libc_nano.a(lib_a-nano-vfprintf_i.o) - 0x0000000008005928 _printf_common - *fill* 0x0000000008005a02 0x2 - .text._printf_i - 0x0000000008005a04 0x210 /home/janhenrik/programme/gcc-arm-none-eabi-7-2018-q2-update/bin/../lib/gcc/arm-none-eabi/7.3.1/../../../../arm-none-eabi/lib/thumb/v6-m/libc_nano.a(lib_a-nano-vfprintf_i.o) - 0x0000000008005a04 _printf_i - .text.memchr 0x0000000008005c14 0x16 /home/janhenrik/programme/gcc-arm-none-eabi-7-2018-q2-update/bin/../lib/gcc/arm-none-eabi/7.3.1/../../../../arm-none-eabi/lib/thumb/v6-m/libc_nano.a(lib_a-memchr-stub.o) - 0x0000000008005c14 memchr - .text.memmove 0x0000000008005c2a 0x26 /home/janhenrik/programme/gcc-arm-none-eabi-7-2018-q2-update/bin/../lib/gcc/arm-none-eabi/7.3.1/../../../../arm-none-eabi/lib/thumb/v6-m/libc_nano.a(lib_a-memmove.o) - 0x0000000008005c2a memmove - .text._free_r 0x0000000008005c50 0x94 /home/janhenrik/programme/gcc-arm-none-eabi-7-2018-q2-update/bin/../lib/gcc/arm-none-eabi/7.3.1/../../../../arm-none-eabi/lib/thumb/v6-m/libc_nano.a(lib_a-nano-freer.o) - 0x0000000008005c50 _free_r - .text._malloc_r - 0x0000000008005ce4 0xbc /home/janhenrik/programme/gcc-arm-none-eabi-7-2018-q2-update/bin/../lib/gcc/arm-none-eabi/7.3.1/../../../../arm-none-eabi/lib/thumb/v6-m/libc_nano.a(lib_a-nano-mallocr.o) - 0x0000000008005ce4 _malloc_r - .text._realloc_r - 0x0000000008005da0 0x4c /home/janhenrik/programme/gcc-arm-none-eabi-7-2018-q2-update/bin/../lib/gcc/arm-none-eabi/7.3.1/../../../../arm-none-eabi/lib/thumb/v6-m/libc_nano.a(lib_a-nano-reallocr.o) - 0x0000000008005da0 _realloc_r - .text._sbrk_r 0x0000000008005dec 0x24 /home/janhenrik/programme/gcc-arm-none-eabi-7-2018-q2-update/bin/../lib/gcc/arm-none-eabi/7.3.1/../../../../arm-none-eabi/lib/thumb/v6-m/libc_nano.a(lib_a-sbrkr.o) - 0x0000000008005dec _sbrk_r - .text.__malloc_lock - 0x0000000008005e10 0x2 /home/janhenrik/programme/gcc-arm-none-eabi-7-2018-q2-update/bin/../lib/gcc/arm-none-eabi/7.3.1/../../../../arm-none-eabi/lib/thumb/v6-m/libc_nano.a(lib_a-mlock.o) - 0x0000000008005e10 __malloc_lock - .text.__malloc_unlock - 0x0000000008005e12 0x2 /home/janhenrik/programme/gcc-arm-none-eabi-7-2018-q2-update/bin/../lib/gcc/arm-none-eabi/7.3.1/../../../../arm-none-eabi/lib/thumb/v6-m/libc_nano.a(lib_a-mlock.o) - 0x0000000008005e12 __malloc_unlock - .text._malloc_usable_size_r - 0x0000000008005e14 0x10 /home/janhenrik/programme/gcc-arm-none-eabi-7-2018-q2-update/bin/../lib/gcc/arm-none-eabi/7.3.1/../../../../arm-none-eabi/lib/thumb/v6-m/libc_nano.a(lib_a-nano-msizer.o) - 0x0000000008005e14 _malloc_usable_size_r - .text._sbrk 0x0000000008005e24 0x1c /home/janhenrik/programme/gcc-arm-none-eabi-7-2018-q2-update/bin/../lib/gcc/arm-none-eabi/7.3.1/../../../../arm-none-eabi/lib/thumb/v6-m/libnosys.a(sbrk.o) - 0x0000000008005e24 _sbrk - *(.glue_7) - .glue_7 0x0000000008005e40 0x0 linker stubs - *(.glue_7t) - .glue_7t 0x0000000008005e40 0x0 linker stubs - *(.eh_frame) - .eh_frame 0x0000000008005e40 0x0 /home/janhenrik/programme/gcc-arm-none-eabi-7-2018-q2-update/bin/../lib/gcc/arm-none-eabi/7.3.1/thumb/v6-m/crtbegin.o - *(.init) - .init 0x0000000008005e40 0x4 /home/janhenrik/programme/gcc-arm-none-eabi-7-2018-q2-update/bin/../lib/gcc/arm-none-eabi/7.3.1/thumb/v6-m/crti.o - 0x0000000008005e40 _init - .init 0x0000000008005e44 0x8 /home/janhenrik/programme/gcc-arm-none-eabi-7-2018-q2-update/bin/../lib/gcc/arm-none-eabi/7.3.1/thumb/v6-m/crtn.o - *(.fini) - .fini 0x0000000008005e4c 0x4 /home/janhenrik/programme/gcc-arm-none-eabi-7-2018-q2-update/bin/../lib/gcc/arm-none-eabi/7.3.1/thumb/v6-m/crti.o - 0x0000000008005e4c _fini - .fini 0x0000000008005e50 0x8 /home/janhenrik/programme/gcc-arm-none-eabi-7-2018-q2-update/bin/../lib/gcc/arm-none-eabi/7.3.1/thumb/v6-m/crtn.o - 0x0000000008005e58 . = ALIGN (0x4) - 0x0000000008005e58 _etext = . - -.vfp11_veneer 0x0000000008005e58 0x0 - .vfp11_veneer 0x0000000008005e58 0x0 linker stubs - -.v4_bx 0x0000000008005e58 0x0 - .v4_bx 0x0000000008005e58 0x0 linker stubs - -.iplt 0x0000000008005e58 0x0 - .iplt 0x0000000008005e58 0x0 /home/janhenrik/programme/gcc-arm-none-eabi-7-2018-q2-update/bin/../lib/gcc/arm-none-eabi/7.3.1/thumb/v6-m/crtbegin.o - -.rodata 0x0000000008005e58 0x448 - 0x0000000008005e58 . = ALIGN (0x4) - *(.rodata) - .rodata 0x0000000008005e58 0xb build/main.o - *fill* 0x0000000008005e63 0x1 - .rodata 0x0000000008005e64 0x20 build/stm32f0xx_hal_rcc.o - .rodata 0x0000000008005e84 0x80 /home/janhenrik/programme/gcc-arm-none-eabi-7-2018-q2-update/bin/../lib/gcc/arm-none-eabi/7.3.1/thumb/v6-m/libgcc.a(divsf3.o) - .rodata 0x0000000008005f04 0x40 /home/janhenrik/programme/gcc-arm-none-eabi-7-2018-q2-update/bin/../lib/gcc/arm-none-eabi/7.3.1/thumb/v6-m/libgcc.a(mulsf3.o) - .rodata 0x0000000008005f44 0x40 /home/janhenrik/programme/gcc-arm-none-eabi-7-2018-q2-update/bin/../lib/gcc/arm-none-eabi/7.3.1/thumb/v6-m/libgcc.a(divdf3.o) - .rodata 0x0000000008005f84 0x40 /home/janhenrik/programme/gcc-arm-none-eabi-7-2018-q2-update/bin/../lib/gcc/arm-none-eabi/7.3.1/thumb/v6-m/libgcc.a(muldf3.o) - *(.rodata*) - .rodata.REFRESH_COMMANDS - 0x0000000008005fc4 0x11 build/main.o - 0x0000000008005fc4 REFRESH_COMMANDS - *fill* 0x0000000008005fd5 0x3 - .rodata.font 0x0000000008005fd8 0x240 build/main.o - 0x0000000008005fd8 font - .rodata.main.str1.4 - 0x0000000008006218 0x44 build/main.o - .rodata.AHBPrescTable - 0x000000000800625c 0x10 build/system_stm32f0xx.o - 0x000000000800625c AHBPrescTable - .rodata._svfprintf_r.str1.1 - 0x000000000800626c 0x11 /home/janhenrik/programme/gcc-arm-none-eabi-7-2018-q2-update/bin/../lib/gcc/arm-none-eabi/7.3.1/../../../../arm-none-eabi/lib/thumb/v6-m/libc_nano.a(lib_a-nano-svfprintf.o) - .rodata._printf_i.str1.1 - 0x000000000800627d 0x22 /home/janhenrik/programme/gcc-arm-none-eabi-7-2018-q2-update/bin/../lib/gcc/arm-none-eabi/7.3.1/../../../../arm-none-eabi/lib/thumb/v6-m/libc_nano.a(lib_a-nano-vfprintf_i.o) - 0x00000000080062a0 . = ALIGN (0x4) - *fill* 0x000000000800629f 0x1 - -.rel.dyn 0x00000000080062a0 0x0 - .rel.iplt 0x00000000080062a0 0x0 /home/janhenrik/programme/gcc-arm-none-eabi-7-2018-q2-update/bin/../lib/gcc/arm-none-eabi/7.3.1/thumb/v6-m/crtbegin.o - -.ARM.extab - *(.ARM.extab* .gnu.linkonce.armextab.*) - -.ARM 0x00000000080062a0 0x0 - 0x00000000080062a0 __exidx_start = . - *(.ARM.exidx*) - 0x00000000080062a0 __exidx_end = . - -.preinit_array 0x00000000080062a0 0x0 - 0x00000000080062a0 PROVIDE (__preinit_array_start = .) - *(.preinit_array*) - 0x00000000080062a0 PROVIDE (__preinit_array_end = .) - -.init_array 0x00000000080062a0 0x4 - 0x00000000080062a0 PROVIDE (__init_array_start = .) - *(SORT_BY_NAME(.init_array.*)) - *(.init_array*) - .init_array 0x00000000080062a0 0x4 /home/janhenrik/programme/gcc-arm-none-eabi-7-2018-q2-update/bin/../lib/gcc/arm-none-eabi/7.3.1/thumb/v6-m/crtbegin.o - 0x00000000080062a4 PROVIDE (__init_array_end = .) - -.fini_array 0x00000000080062a4 0x4 - [!provide] PROVIDE (__fini_array_start = .) - *(SORT_BY_NAME(.fini_array.*)) - *(.fini_array*) - .fini_array 0x00000000080062a4 0x4 /home/janhenrik/programme/gcc-arm-none-eabi-7-2018-q2-update/bin/../lib/gcc/arm-none-eabi/7.3.1/thumb/v6-m/crtbegin.o - [!provide] PROVIDE (__fini_array_end = .) - 0x00000000080062a8 _sidata = LOADADDR (.data) - -.data 0x0000000020000000 0xd4 load address 0x00000000080062a8 - 0x0000000020000000 . = ALIGN (0x4) - 0x0000000020000000 _sdata = . - *(.data) - *(.data*) - .data.OLED_Setup_Array - 0x0000000020000000 0x32 build/main.o - 0x0000000020000000 OLED_Setup_Array - *fill* 0x0000000020000032 0x2 - .data.r 0x0000000020000034 0x30 build/main.o - 0x0000000020000034 r - .data.tipcal 0x0000000020000064 0x8 build/main.o - 0x0000000020000064 tipcal - .data.SystemCoreClock - 0x000000002000006c 0x4 build/system_stm32f0xx.o - 0x000000002000006c SystemCoreClock - .data._impure_ptr - 0x0000000020000070 0x4 /home/janhenrik/programme/gcc-arm-none-eabi-7-2018-q2-update/bin/../lib/gcc/arm-none-eabi/7.3.1/../../../../arm-none-eabi/lib/thumb/v6-m/libc_nano.a(lib_a-impure.o) - 0x0000000020000070 _impure_ptr - .data.impure_data - 0x0000000020000074 0x60 /home/janhenrik/programme/gcc-arm-none-eabi-7-2018-q2-update/bin/../lib/gcc/arm-none-eabi/7.3.1/../../../../arm-none-eabi/lib/thumb/v6-m/libc_nano.a(lib_a-impure.o) - 0x00000000200000d4 . = ALIGN (0x4) - 0x00000000200000d4 _edata = . - -.igot.plt 0x00000000200000d4 0x0 load address 0x000000000800637c - .igot.plt 0x00000000200000d4 0x0 /home/janhenrik/programme/gcc-arm-none-eabi-7-2018-q2-update/bin/../lib/gcc/arm-none-eabi/7.3.1/thumb/v6-m/crtbegin.o - 0x00000000200000d4 . = ALIGN (0x4) - -.bss 0x00000000200000d8 0x4d8 load address 0x000000000800637c - 0x00000000200000d8 _sbss = . - 0x00000000200000d8 __bss_start__ = _sbss - *(.bss) - .bss 0x00000000200000d8 0x1c /home/janhenrik/programme/gcc-arm-none-eabi-7-2018-q2-update/bin/../lib/gcc/arm-none-eabi/7.3.1/thumb/v6-m/crtbegin.o - *(.bss*) - .bss.ADC_raw 0x00000000200000f4 0x8 build/main.o - .bss.s 0x00000000200000fc 0x18 build/main.o - 0x00000000200000fc s - .bss.__malloc_free_list - 0x0000000020000114 0x4 /home/janhenrik/programme/gcc-arm-none-eabi-7-2018-q2-update/bin/../lib/gcc/arm-none-eabi/7.3.1/../../../../arm-none-eabi/lib/thumb/v6-m/libc_nano.a(lib_a-nano-mallocr.o) - 0x0000000020000114 __malloc_free_list - .bss.__malloc_sbrk_start - 0x0000000020000118 0x4 /home/janhenrik/programme/gcc-arm-none-eabi-7-2018-q2-update/bin/../lib/gcc/arm-none-eabi/7.3.1/../../../../arm-none-eabi/lib/thumb/v6-m/libc_nano.a(lib_a-nano-mallocr.o) - 0x0000000020000118 __malloc_sbrk_start - .bss.heap_end.4102 - 0x000000002000011c 0x4 /home/janhenrik/programme/gcc-arm-none-eabi-7-2018-q2-update/bin/../lib/gcc/arm-none-eabi/7.3.1/../../../../arm-none-eabi/lib/thumb/v6-m/libnosys.a(sbrk.o) - *(COMMON) - COMMON 0x0000000020000120 0x464 build/main.o - 0x0000000020000120 screenBuffer - 0x00000000200001fc hi2c1 - 0x0000000020000248 hi2c2 - 0x0000000020000294 htim1 - 0x00000000200002d4 hdma_adc - 0x0000000020000318 hpcd_USB_FS - 0x0000000020000538 hadc - COMMON 0x0000000020000584 0x4 build/stm32f0xx_hal.o - 0x0000000020000584 uwTick - COMMON 0x0000000020000588 0x20 build/stm32f0xx_hal_flash.o - 0x0000000020000588 pFlash - COMMON 0x00000000200005a8 0x4 build/system_stm32f0xx.o - 0x00000000200005a8 SysMemBootJump - COMMON 0x00000000200005ac 0x4 /home/janhenrik/programme/gcc-arm-none-eabi-7-2018-q2-update/bin/../lib/gcc/arm-none-eabi/7.3.1/../../../../arm-none-eabi/lib/thumb/v6-m/libc_nano.a(lib_a-reent.o) - 0x00000000200005ac errno - 0x00000000200005b0 . = ALIGN (0x4) - 0x00000000200005b0 _ebss = . - 0x00000000200005b0 __bss_end__ = _ebss - -._user_heap_stack - 0x00000000200005b0 0x600 load address 0x000000000800637c - 0x00000000200005b0 . = ALIGN (0x8) - 0x00000000200005b0 PROVIDE (end = .) - [!provide] PROVIDE (_end = .) - 0x00000000200007b0 . = (. + _Min_Heap_Size) - *fill* 0x00000000200005b0 0x200 - 0x0000000020000bb0 . = (. + _Min_Stack_Size) - *fill* 0x00000000200007b0 0x400 - 0x0000000020000bb0 . = ALIGN (0x8) - -/DISCARD/ - libc.a(*) - libm.a(*) - libgcc.a(*) - -.ARM.attributes - 0x0000000000000000 0x28 - *(.ARM.attributes) - .ARM.attributes - 0x0000000000000000 0x1e /home/janhenrik/programme/gcc-arm-none-eabi-7-2018-q2-update/bin/../lib/gcc/arm-none-eabi/7.3.1/thumb/v6-m/crti.o - .ARM.attributes - 0x000000000000001e 0x2c /home/janhenrik/programme/gcc-arm-none-eabi-7-2018-q2-update/bin/../lib/gcc/arm-none-eabi/7.3.1/thumb/v6-m/crtbegin.o - .ARM.attributes - 0x000000000000004a 0x31 build/main.o - .ARM.attributes - 0x000000000000007b 0x31 build/stm32f0xx_it.o - .ARM.attributes - 0x00000000000000ac 0x31 build/stm32f0xx_hal_msp.o - .ARM.attributes - 0x00000000000000dd 0x31 build/stm32f0xx_hal_adc.o - .ARM.attributes - 0x000000000000010e 0x31 build/stm32f0xx_hal_i2c.o - .ARM.attributes - 0x000000000000013f 0x31 build/stm32f0xx_hal_i2c_ex.o - .ARM.attributes - 0x0000000000000170 0x31 build/stm32f0xx_hal_tim.o - .ARM.attributes - 0x00000000000001a1 0x31 build/stm32f0xx_hal_tim_ex.o - .ARM.attributes - 0x00000000000001d2 0x31 build/stm32f0xx_hal_pcd.o - .ARM.attributes - 0x0000000000000203 0x31 build/stm32f0xx_hal_rcc.o - .ARM.attributes - 0x0000000000000234 0x31 build/stm32f0xx_hal_rcc_ex.o - .ARM.attributes - 0x0000000000000265 0x31 build/stm32f0xx_hal.o - .ARM.attributes - 0x0000000000000296 0x31 build/stm32f0xx_hal_gpio.o - .ARM.attributes - 0x00000000000002c7 0x31 build/stm32f0xx_hal_dma.o - .ARM.attributes - 0x00000000000002f8 0x31 build/stm32f0xx_hal_cortex.o - .ARM.attributes - 0x0000000000000329 0x31 build/stm32f0xx_hal_flash.o - .ARM.attributes - 0x000000000000035a 0x31 build/system_stm32f0xx.o - .ARM.attributes - 0x000000000000038b 0x21 build/startup_stm32f072xb.o - .ARM.attributes - 0x00000000000003ac 0x2c /home/janhenrik/programme/gcc-arm-none-eabi-7-2018-q2-update/bin/../lib/gcc/arm-none-eabi/7.3.1/../../../../arm-none-eabi/lib/thumb/v6-m/libc_nano.a(lib_a-impure.o) - .ARM.attributes - 0x00000000000003d8 0x2c /home/janhenrik/programme/gcc-arm-none-eabi-7-2018-q2-update/bin/../lib/gcc/arm-none-eabi/7.3.1/../../../../arm-none-eabi/lib/thumb/v6-m/libc_nano.a(lib_a-init.o) - .ARM.attributes - 0x0000000000000404 0x2c /home/janhenrik/programme/gcc-arm-none-eabi-7-2018-q2-update/bin/../lib/gcc/arm-none-eabi/7.3.1/../../../../arm-none-eabi/lib/thumb/v6-m/libc_nano.a(lib_a-memcpy-stub.o) - .ARM.attributes - 0x0000000000000430 0x2c /home/janhenrik/programme/gcc-arm-none-eabi-7-2018-q2-update/bin/../lib/gcc/arm-none-eabi/7.3.1/../../../../arm-none-eabi/lib/thumb/v6-m/libc_nano.a(lib_a-memset.o) - .ARM.attributes - 0x000000000000045c 0x2c /home/janhenrik/programme/gcc-arm-none-eabi-7-2018-q2-update/bin/../lib/gcc/arm-none-eabi/7.3.1/../../../../arm-none-eabi/lib/thumb/v6-m/libc_nano.a(lib_a-sprintf.o) - .ARM.attributes - 0x0000000000000488 0x2c /home/janhenrik/programme/gcc-arm-none-eabi-7-2018-q2-update/bin/../lib/gcc/arm-none-eabi/7.3.1/../../../../arm-none-eabi/lib/thumb/v6-m/libc_nano.a(lib_a-nano-svfprintf.o) - .ARM.attributes - 0x00000000000004b4 0x2c /home/janhenrik/programme/gcc-arm-none-eabi-7-2018-q2-update/bin/../lib/gcc/arm-none-eabi/7.3.1/../../../../arm-none-eabi/lib/thumb/v6-m/libc_nano.a(lib_a-nano-vfprintf_i.o) - .ARM.attributes - 0x00000000000004e0 0x2c /home/janhenrik/programme/gcc-arm-none-eabi-7-2018-q2-update/bin/../lib/gcc/arm-none-eabi/7.3.1/../../../../arm-none-eabi/lib/thumb/v6-m/libc_nano.a(lib_a-memchr-stub.o) - .ARM.attributes - 0x000000000000050c 0x2c /home/janhenrik/programme/gcc-arm-none-eabi-7-2018-q2-update/bin/../lib/gcc/arm-none-eabi/7.3.1/../../../../arm-none-eabi/lib/thumb/v6-m/libc_nano.a(lib_a-memmove.o) - .ARM.attributes - 0x0000000000000538 0x2c /home/janhenrik/programme/gcc-arm-none-eabi-7-2018-q2-update/bin/../lib/gcc/arm-none-eabi/7.3.1/../../../../arm-none-eabi/lib/thumb/v6-m/libc_nano.a(lib_a-nano-freer.o) - .ARM.attributes - 0x0000000000000564 0x2c /home/janhenrik/programme/gcc-arm-none-eabi-7-2018-q2-update/bin/../lib/gcc/arm-none-eabi/7.3.1/../../../../arm-none-eabi/lib/thumb/v6-m/libc_nano.a(lib_a-nano-mallocr.o) - .ARM.attributes - 0x0000000000000590 0x2c /home/janhenrik/programme/gcc-arm-none-eabi-7-2018-q2-update/bin/../lib/gcc/arm-none-eabi/7.3.1/../../../../arm-none-eabi/lib/thumb/v6-m/libc_nano.a(lib_a-nano-reallocr.o) - .ARM.attributes - 0x00000000000005bc 0x2c /home/janhenrik/programme/gcc-arm-none-eabi-7-2018-q2-update/bin/../lib/gcc/arm-none-eabi/7.3.1/../../../../arm-none-eabi/lib/thumb/v6-m/libc_nano.a(lib_a-sbrkr.o) - .ARM.attributes - 0x00000000000005e8 0x2c /home/janhenrik/programme/gcc-arm-none-eabi-7-2018-q2-update/bin/../lib/gcc/arm-none-eabi/7.3.1/../../../../arm-none-eabi/lib/thumb/v6-m/libc_nano.a(lib_a-mlock.o) - .ARM.attributes - 0x0000000000000614 0x2c /home/janhenrik/programme/gcc-arm-none-eabi-7-2018-q2-update/bin/../lib/gcc/arm-none-eabi/7.3.1/../../../../arm-none-eabi/lib/thumb/v6-m/libc_nano.a(lib_a-nano-msizer.o) - .ARM.attributes - 0x0000000000000640 0x2c /home/janhenrik/programme/gcc-arm-none-eabi-7-2018-q2-update/bin/../lib/gcc/arm-none-eabi/7.3.1/../../../../arm-none-eabi/lib/thumb/v6-m/libc_nano.a(lib_a-reent.o) - .ARM.attributes - 0x000000000000066c 0x2c /home/janhenrik/programme/gcc-arm-none-eabi-7-2018-q2-update/bin/../lib/gcc/arm-none-eabi/7.3.1/../../../../arm-none-eabi/lib/thumb/v6-m/libnosys.a(sbrk.o) - .ARM.attributes - 0x0000000000000698 0x1e /home/janhenrik/programme/gcc-arm-none-eabi-7-2018-q2-update/bin/../lib/gcc/arm-none-eabi/7.3.1/thumb/v6-m/libgcc.a(_udivsi3.o) - .ARM.attributes - 0x00000000000006b6 0x1e /home/janhenrik/programme/gcc-arm-none-eabi-7-2018-q2-update/bin/../lib/gcc/arm-none-eabi/7.3.1/thumb/v6-m/libgcc.a(_dvmd_tls.o) - .ARM.attributes - 0x00000000000006d4 0x1e /home/janhenrik/programme/gcc-arm-none-eabi-7-2018-q2-update/bin/../lib/gcc/arm-none-eabi/7.3.1/thumb/v6-m/libgcc.a(_arm_cmpsf2.o) - .ARM.attributes - 0x00000000000006f2 0x2c /home/janhenrik/programme/gcc-arm-none-eabi-7-2018-q2-update/bin/../lib/gcc/arm-none-eabi/7.3.1/thumb/v6-m/libgcc.a(_fixunssfsi.o) - .ARM.attributes - 0x000000000000071e 0x2c /home/janhenrik/programme/gcc-arm-none-eabi-7-2018-q2-update/bin/../lib/gcc/arm-none-eabi/7.3.1/thumb/v6-m/libgcc.a(addsf3.o) - .ARM.attributes - 0x000000000000074a 0x2c /home/janhenrik/programme/gcc-arm-none-eabi-7-2018-q2-update/bin/../lib/gcc/arm-none-eabi/7.3.1/thumb/v6-m/libgcc.a(divsf3.o) - .ARM.attributes - 0x0000000000000776 0x2c /home/janhenrik/programme/gcc-arm-none-eabi-7-2018-q2-update/bin/../lib/gcc/arm-none-eabi/7.3.1/thumb/v6-m/libgcc.a(eqsf2.o) - .ARM.attributes - 0x00000000000007a2 0x2c /home/janhenrik/programme/gcc-arm-none-eabi-7-2018-q2-update/bin/../lib/gcc/arm-none-eabi/7.3.1/thumb/v6-m/libgcc.a(gesf2.o) - .ARM.attributes - 0x00000000000007ce 0x2c /home/janhenrik/programme/gcc-arm-none-eabi-7-2018-q2-update/bin/../lib/gcc/arm-none-eabi/7.3.1/thumb/v6-m/libgcc.a(lesf2.o) - .ARM.attributes - 0x00000000000007fa 0x2c /home/janhenrik/programme/gcc-arm-none-eabi-7-2018-q2-update/bin/../lib/gcc/arm-none-eabi/7.3.1/thumb/v6-m/libgcc.a(mulsf3.o) - .ARM.attributes - 0x0000000000000826 0x2c /home/janhenrik/programme/gcc-arm-none-eabi-7-2018-q2-update/bin/../lib/gcc/arm-none-eabi/7.3.1/thumb/v6-m/libgcc.a(subsf3.o) - .ARM.attributes - 0x0000000000000852 0x2c /home/janhenrik/programme/gcc-arm-none-eabi-7-2018-q2-update/bin/../lib/gcc/arm-none-eabi/7.3.1/thumb/v6-m/libgcc.a(fixsfsi.o) - .ARM.attributes - 0x000000000000087e 0x2c /home/janhenrik/programme/gcc-arm-none-eabi-7-2018-q2-update/bin/../lib/gcc/arm-none-eabi/7.3.1/thumb/v6-m/libgcc.a(floatsisf.o) - .ARM.attributes - 0x00000000000008aa 0x2c /home/janhenrik/programme/gcc-arm-none-eabi-7-2018-q2-update/bin/../lib/gcc/arm-none-eabi/7.3.1/thumb/v6-m/libgcc.a(floatunsisf.o) - .ARM.attributes - 0x00000000000008d6 0x2c /home/janhenrik/programme/gcc-arm-none-eabi-7-2018-q2-update/bin/../lib/gcc/arm-none-eabi/7.3.1/thumb/v6-m/libgcc.a(divdf3.o) - .ARM.attributes - 0x0000000000000902 0x2c /home/janhenrik/programme/gcc-arm-none-eabi-7-2018-q2-update/bin/../lib/gcc/arm-none-eabi/7.3.1/thumb/v6-m/libgcc.a(muldf3.o) - .ARM.attributes - 0x000000000000092e 0x2c /home/janhenrik/programme/gcc-arm-none-eabi-7-2018-q2-update/bin/../lib/gcc/arm-none-eabi/7.3.1/thumb/v6-m/libgcc.a(subdf3.o) - .ARM.attributes - 0x000000000000095a 0x2c /home/janhenrik/programme/gcc-arm-none-eabi-7-2018-q2-update/bin/../lib/gcc/arm-none-eabi/7.3.1/thumb/v6-m/libgcc.a(floatsidf.o) - .ARM.attributes - 0x0000000000000986 0x2c /home/janhenrik/programme/gcc-arm-none-eabi-7-2018-q2-update/bin/../lib/gcc/arm-none-eabi/7.3.1/thumb/v6-m/libgcc.a(extendsfdf2.o) - .ARM.attributes - 0x00000000000009b2 0x2c /home/janhenrik/programme/gcc-arm-none-eabi-7-2018-q2-update/bin/../lib/gcc/arm-none-eabi/7.3.1/thumb/v6-m/libgcc.a(truncdfsf2.o) - .ARM.attributes - 0x00000000000009de 0x1e /home/janhenrik/programme/gcc-arm-none-eabi-7-2018-q2-update/bin/../lib/gcc/arm-none-eabi/7.3.1/thumb/v6-m/libgcc.a(_clzsi2.o) - .ARM.attributes - 0x00000000000009fc 0x1e /home/janhenrik/programme/gcc-arm-none-eabi-7-2018-q2-update/bin/../lib/gcc/arm-none-eabi/7.3.1/thumb/v6-m/crtn.o -OUTPUT(build/firmware.elf elf32-littlearm) - -.debug_info 0x0000000000000000 0x1c557 - .debug_info 0x0000000000000000 0x335f build/main.o - .debug_info 0x000000000000335f 0x128f build/stm32f0xx_it.o - .debug_info 0x00000000000045ee 0x20c7 build/stm32f0xx_hal_msp.o - .debug_info 0x00000000000066b5 0x1875 build/stm32f0xx_hal_adc.o - .debug_info 0x0000000000007f2a 0x3c62 build/stm32f0xx_hal_i2c.o - .debug_info 0x000000000000bb8c 0x123b build/stm32f0xx_hal_i2c_ex.o - .debug_info 0x000000000000cdc7 0x3a9f build/stm32f0xx_hal_tim.o - .debug_info 0x0000000000010866 0x1daf build/stm32f0xx_hal_tim_ex.o - .debug_info 0x0000000000012615 0x1d6b build/stm32f0xx_hal_pcd.o - .debug_info 0x0000000000014380 0x1321 build/stm32f0xx_hal_rcc.o - .debug_info 0x00000000000156a1 0x106a build/stm32f0xx_hal_rcc_ex.o - .debug_info 0x000000000001670b 0x1016 build/stm32f0xx_hal.o - .debug_info 0x0000000000017721 0xfc3 build/stm32f0xx_hal_gpio.o - .debug_info 0x00000000000186e4 0x118f build/stm32f0xx_hal_dma.o - .debug_info 0x0000000000019873 0x114e build/stm32f0xx_hal_cortex.o - .debug_info 0x000000000001a9c1 0xfaf build/stm32f0xx_hal_flash.o - .debug_info 0x000000000001b970 0xbc5 build/system_stm32f0xx.o - .debug_info 0x000000000001c535 0x22 build/startup_stm32f072xb.o - -.debug_abbrev 0x0000000000000000 0x3181 - .debug_abbrev 0x0000000000000000 0x3a8 build/main.o - .debug_abbrev 0x00000000000003a8 0x215 build/stm32f0xx_it.o - .debug_abbrev 0x00000000000005bd 0x2df build/stm32f0xx_hal_msp.o - .debug_abbrev 0x000000000000089c 0x308 build/stm32f0xx_hal_adc.o - .debug_abbrev 0x0000000000000ba4 0x329 build/stm32f0xx_hal_i2c.o - .debug_abbrev 0x0000000000000ecd 0x247 build/stm32f0xx_hal_i2c_ex.o - .debug_abbrev 0x0000000000001114 0x310 build/stm32f0xx_hal_tim.o - .debug_abbrev 0x0000000000001424 0x2f8 build/stm32f0xx_hal_tim_ex.o - .debug_abbrev 0x000000000000171c 0x38d build/stm32f0xx_hal_pcd.o - .debug_abbrev 0x0000000000001aa9 0x2e6 build/stm32f0xx_hal_rcc.o - .debug_abbrev 0x0000000000001d8f 0x2d5 build/stm32f0xx_hal_rcc_ex.o - .debug_abbrev 0x0000000000002064 0x2d9 build/stm32f0xx_hal.o - .debug_abbrev 0x000000000000233d 0x2be build/stm32f0xx_hal_gpio.o - .debug_abbrev 0x00000000000025fb 0x2dd build/stm32f0xx_hal_dma.o - .debug_abbrev 0x00000000000028d8 0x32e build/stm32f0xx_hal_cortex.o - .debug_abbrev 0x0000000000002c06 0x33c build/stm32f0xx_hal_flash.o - .debug_abbrev 0x0000000000002f42 0x22d build/system_stm32f0xx.o - .debug_abbrev 0x000000000000316f 0x12 build/startup_stm32f072xb.o - -.debug_loc 0x0000000000000000 0xefeb - .debug_loc 0x0000000000000000 0x65e build/main.o - .debug_loc 0x000000000000065e 0xa0 build/stm32f0xx_it.o - .debug_loc 0x00000000000006fe 0x35f build/stm32f0xx_hal_msp.o - .debug_loc 0x0000000000000a5d 0xeaa build/stm32f0xx_hal_adc.o - .debug_loc 0x0000000000001907 0x4240 build/stm32f0xx_hal_i2c.o - .debug_loc 0x0000000000005b47 0x305 build/stm32f0xx_hal_i2c_ex.o - .debug_loc 0x0000000000005e4c 0x416b build/stm32f0xx_hal_tim.o - .debug_loc 0x0000000000009fb7 0x167a build/stm32f0xx_hal_tim_ex.o - .debug_loc 0x000000000000b631 0x1408 build/stm32f0xx_hal_pcd.o - .debug_loc 0x000000000000ca39 0x5d5 build/stm32f0xx_hal_rcc.o - .debug_loc 0x000000000000d00e 0x857 build/stm32f0xx_hal_rcc_ex.o - .debug_loc 0x000000000000d865 0x108 build/stm32f0xx_hal.o - .debug_loc 0x000000000000d96d 0x3a2 build/stm32f0xx_hal_gpio.o - .debug_loc 0x000000000000dd0f 0x95a build/stm32f0xx_hal_dma.o - .debug_loc 0x000000000000e669 0x3d3 build/stm32f0xx_hal_cortex.o - .debug_loc 0x000000000000ea3c 0x420 build/stm32f0xx_hal_flash.o - .debug_loc 0x000000000000ee5c 0x18f build/system_stm32f0xx.o - -.debug_aranges 0x0000000000000000 0xee8 - .debug_aranges - 0x0000000000000000 0xb0 build/main.o - .debug_aranges - 0x00000000000000b0 0x60 build/stm32f0xx_it.o - .debug_aranges - 0x0000000000000110 0x68 build/stm32f0xx_hal_msp.o - .debug_aranges - 0x0000000000000178 0xf8 build/stm32f0xx_hal_adc.o - .debug_aranges - 0x0000000000000270 0x260 build/stm32f0xx_hal_i2c.o - .debug_aranges - 0x00000000000004d0 0x48 build/stm32f0xx_hal_i2c_ex.o - .debug_aranges - 0x0000000000000518 0x378 build/stm32f0xx_hal_tim.o - .debug_aranges - 0x0000000000000890 0x148 build/stm32f0xx_hal_tim_ex.o - .debug_aranges - 0x00000000000009d8 0x130 build/stm32f0xx_hal_pcd.o - .debug_aranges - 0x0000000000000b08 0x80 build/stm32f0xx_hal_rcc.o - .debug_aranges - 0x0000000000000b88 0x78 build/stm32f0xx_hal_rcc_ex.o - .debug_aranges - 0x0000000000000c00 0xb8 build/stm32f0xx_hal.o - .debug_aranges - 0x0000000000000cb8 0x58 build/stm32f0xx_hal_gpio.o - .debug_aranges - 0x0000000000000d10 0x88 build/stm32f0xx_hal_dma.o - .debug_aranges - 0x0000000000000d98 0x78 build/stm32f0xx_hal_cortex.o - .debug_aranges - 0x0000000000000e10 0x88 build/stm32f0xx_hal_flash.o - .debug_aranges - 0x0000000000000e98 0x28 build/system_stm32f0xx.o - .debug_aranges - 0x0000000000000ec0 0x28 build/startup_stm32f072xb.o - -.debug_ranges 0x0000000000000000 0xf80 - .debug_ranges 0x0000000000000000 0xe8 build/main.o - .debug_ranges 0x00000000000000e8 0x50 build/stm32f0xx_it.o - .debug_ranges 0x0000000000000138 0x58 build/stm32f0xx_hal_msp.o - .debug_ranges 0x0000000000000190 0xe8 build/stm32f0xx_hal_adc.o - .debug_ranges 0x0000000000000278 0x250 build/stm32f0xx_hal_i2c.o - .debug_ranges 0x00000000000004c8 0x38 build/stm32f0xx_hal_i2c_ex.o - .debug_ranges 0x0000000000000500 0x368 build/stm32f0xx_hal_tim.o - .debug_ranges 0x0000000000000868 0x138 build/stm32f0xx_hal_tim_ex.o - .debug_ranges 0x00000000000009a0 0x210 build/stm32f0xx_hal_pcd.o - .debug_ranges 0x0000000000000bb0 0x88 build/stm32f0xx_hal_rcc.o - .debug_ranges 0x0000000000000c38 0x80 build/stm32f0xx_hal_rcc_ex.o - .debug_ranges 0x0000000000000cb8 0xa8 build/stm32f0xx_hal.o - .debug_ranges 0x0000000000000d60 0x48 build/stm32f0xx_hal_gpio.o - .debug_ranges 0x0000000000000da8 0x78 build/stm32f0xx_hal_dma.o - .debug_ranges 0x0000000000000e20 0xb0 build/stm32f0xx_hal_cortex.o - .debug_ranges 0x0000000000000ed0 0x78 build/stm32f0xx_hal_flash.o - .debug_ranges 0x0000000000000f48 0x18 build/system_stm32f0xx.o - .debug_ranges 0x0000000000000f60 0x20 build/startup_stm32f072xb.o - -.debug_line 0x0000000000000000 0x74e8 - .debug_line 0x0000000000000000 0x747 build/main.o - .debug_line 0x0000000000000747 0x30c build/stm32f0xx_it.o - .debug_line 0x0000000000000a53 0x3fa build/stm32f0xx_hal_msp.o - .debug_line 0x0000000000000e4d 0x7de build/stm32f0xx_hal_adc.o - .debug_line 0x000000000000162b 0x13c2 build/stm32f0xx_hal_i2c.o - .debug_line 0x00000000000029ed 0x3ae build/stm32f0xx_hal_i2c_ex.o - .debug_line 0x0000000000002d9b 0x1404 build/stm32f0xx_hal_tim.o - .debug_line 0x000000000000419f 0x8a6 build/stm32f0xx_hal_tim_ex.o - .debug_line 0x0000000000004a45 0x90d build/stm32f0xx_hal_pcd.o - .debug_line 0x0000000000005352 0x54e build/stm32f0xx_hal_rcc.o - .debug_line 0x00000000000058a0 0x4f6 build/stm32f0xx_hal_rcc_ex.o - .debug_line 0x0000000000005d96 0x406 build/stm32f0xx_hal.o - .debug_line 0x000000000000619c 0x3c0 build/stm32f0xx_hal_gpio.o - .debug_line 0x000000000000655c 0x4c2 build/stm32f0xx_hal_dma.o - .debug_line 0x0000000000006a1e 0x3a5 build/stm32f0xx_hal_cortex.o - .debug_line 0x0000000000006dc3 0x448 build/stm32f0xx_hal_flash.o - .debug_line 0x000000000000720b 0x265 build/system_stm32f0xx.o - .debug_line 0x0000000000007470 0x78 build/startup_stm32f072xb.o - -.debug_str 0x0000000000000000 0x47ed - .debug_str 0x0000000000000000 0x1a36 build/main.o - 0x1b6e (size before relaxing) - .debug_str 0x0000000000001a36 0x101 build/stm32f0xx_it.o - 0xba7 (size before relaxing) - .debug_str 0x0000000000001b37 0xfc build/stm32f0xx_hal_msp.o - 0x13fb (size before relaxing) - .debug_str 0x0000000000001c33 0x2d7 build/stm32f0xx_hal_adc.o - 0xcad (size before relaxing) - .debug_str 0x0000000000001f0a 0x76a build/stm32f0xx_hal_i2c.o - 0x126a (size before relaxing) - .debug_str 0x0000000000002674 0xcb build/stm32f0xx_hal_i2c_ex.o - 0xbd0 (size before relaxing) - .debug_str 0x000000000000273f 0xbf7 build/stm32f0xx_hal_tim.o - 0x1782 (size before relaxing) - .debug_str 0x0000000000003336 0x3f4 build/stm32f0xx_hal_tim_ex.o - 0x10ae (size before relaxing) - .debug_str 0x000000000000372a 0x3ac build/stm32f0xx_hal_pcd.o - 0xc93 (size before relaxing) - .debug_str 0x0000000000003ad6 0x1b3 build/stm32f0xx_hal_rcc.o - 0x9eb (size before relaxing) - .debug_str 0x0000000000003c89 0x27c build/stm32f0xx_hal_rcc_ex.o - 0xa0e (size before relaxing) - .debug_str 0x0000000000003f05 0x1a5 build/stm32f0xx_hal.o - 0xa3c (size before relaxing) - .debug_str 0x00000000000040aa 0x10f build/stm32f0xx_hal_gpio.o - 0x807 (size before relaxing) - .debug_str 0x00000000000041b9 0x1e5 build/stm32f0xx_hal_dma.o - 0xa16 (size before relaxing) - .debug_str 0x000000000000439e 0x170 build/stm32f0xx_hal_cortex.o - 0xa44 (size before relaxing) - .debug_str 0x000000000000450e 0x25b build/stm32f0xx_hal_flash.o - 0x909 (size before relaxing) - .debug_str 0x0000000000004769 0x60 build/system_stm32f0xx.o - 0x655 (size before relaxing) - .debug_str 0x00000000000047c9 0x24 build/startup_stm32f072xb.o - 0x4e (size before relaxing) - -.comment 0x0000000000000000 0x7f - .comment 0x0000000000000000 0x7f build/main.o - 0x80 (size before relaxing) - .comment 0x000000000000007f 0x80 build/stm32f0xx_it.o - .comment 0x000000000000007f 0x80 build/stm32f0xx_hal_msp.o - .comment 0x000000000000007f 0x80 build/stm32f0xx_hal_adc.o - .comment 0x000000000000007f 0x80 build/stm32f0xx_hal_i2c.o - .comment 0x000000000000007f 0x80 build/stm32f0xx_hal_i2c_ex.o - .comment 0x000000000000007f 0x80 build/stm32f0xx_hal_tim.o - .comment 0x000000000000007f 0x80 build/stm32f0xx_hal_tim_ex.o - .comment 0x000000000000007f 0x80 build/stm32f0xx_hal_pcd.o - .comment 0x000000000000007f 0x80 build/stm32f0xx_hal_rcc.o - .comment 0x000000000000007f 0x80 build/stm32f0xx_hal_rcc_ex.o - .comment 0x000000000000007f 0x80 build/stm32f0xx_hal.o - .comment 0x000000000000007f 0x80 build/stm32f0xx_hal_gpio.o - .comment 0x000000000000007f 0x80 build/stm32f0xx_hal_dma.o - .comment 0x000000000000007f 0x80 build/stm32f0xx_hal_cortex.o - .comment 0x000000000000007f 0x80 build/stm32f0xx_hal_flash.o - .comment 0x000000000000007f 0x80 build/system_stm32f0xx.o - -.debug_frame 0x0000000000000000 0x323c - .debug_frame 0x0000000000000000 0x268 build/main.o - .debug_frame 0x0000000000000268 0xdc build/stm32f0xx_it.o - .debug_frame 0x0000000000000344 0x110 build/stm32f0xx_hal_msp.o - .debug_frame 0x0000000000000454 0x2f8 build/stm32f0xx_hal_adc.o - .debug_frame 0x000000000000074c 0x880 build/stm32f0xx_hal_i2c.o - .debug_frame 0x0000000000000fcc 0xc0 build/stm32f0xx_hal_i2c_ex.o - .debug_frame 0x000000000000108c 0xaf0 build/stm32f0xx_hal_tim.o - .debug_frame 0x0000000000001b7c 0x418 build/stm32f0xx_hal_tim_ex.o - .debug_frame 0x0000000000001f94 0x324 build/stm32f0xx_hal_pcd.o - .debug_frame 0x00000000000022b8 0x14c build/stm32f0xx_hal_rcc.o - .debug_frame 0x0000000000002404 0x10c build/stm32f0xx_hal_rcc_ex.o - .debug_frame 0x0000000000002510 0x184 build/stm32f0xx_hal.o - .debug_frame 0x0000000000002694 0xdc build/stm32f0xx_hal_gpio.o - .debug_frame 0x0000000000002770 0x198 build/stm32f0xx_hal_dma.o - .debug_frame 0x0000000000002908 0xec build/stm32f0xx_hal_cortex.o - .debug_frame 0x00000000000029f4 0x160 build/stm32f0xx_hal_flash.o - .debug_frame 0x0000000000002b54 0x48 build/system_stm32f0xx.o - .debug_frame 0x0000000000002b9c 0x2c /home/janhenrik/programme/gcc-arm-none-eabi-7-2018-q2-update/bin/../lib/gcc/arm-none-eabi/7.3.1/../../../../arm-none-eabi/lib/thumb/v6-m/libc_nano.a(lib_a-init.o) - .debug_frame 0x0000000000002bc8 0x28 /home/janhenrik/programme/gcc-arm-none-eabi-7-2018-q2-update/bin/../lib/gcc/arm-none-eabi/7.3.1/../../../../arm-none-eabi/lib/thumb/v6-m/libc_nano.a(lib_a-memcpy-stub.o) - .debug_frame 0x0000000000002bf0 0x20 /home/janhenrik/programme/gcc-arm-none-eabi-7-2018-q2-update/bin/../lib/gcc/arm-none-eabi/7.3.1/../../../../arm-none-eabi/lib/thumb/v6-m/libc_nano.a(lib_a-memset.o) - .debug_frame 0x0000000000002c10 0x48 /home/janhenrik/programme/gcc-arm-none-eabi-7-2018-q2-update/bin/../lib/gcc/arm-none-eabi/7.3.1/../../../../arm-none-eabi/lib/thumb/v6-m/libc_nano.a(lib_a-sprintf.o) - .debug_frame 0x0000000000002c58 0x74 /home/janhenrik/programme/gcc-arm-none-eabi-7-2018-q2-update/bin/../lib/gcc/arm-none-eabi/7.3.1/../../../../arm-none-eabi/lib/thumb/v6-m/libc_nano.a(lib_a-nano-svfprintf.o) - .debug_frame 0x0000000000002ccc 0x54 /home/janhenrik/programme/gcc-arm-none-eabi-7-2018-q2-update/bin/../lib/gcc/arm-none-eabi/7.3.1/../../../../arm-none-eabi/lib/thumb/v6-m/libc_nano.a(lib_a-nano-vfprintf_i.o) - .debug_frame 0x0000000000002d20 0x20 /home/janhenrik/programme/gcc-arm-none-eabi-7-2018-q2-update/bin/../lib/gcc/arm-none-eabi/7.3.1/../../../../arm-none-eabi/lib/thumb/v6-m/libc_nano.a(lib_a-memchr-stub.o) - .debug_frame 0x0000000000002d40 0x28 /home/janhenrik/programme/gcc-arm-none-eabi-7-2018-q2-update/bin/../lib/gcc/arm-none-eabi/7.3.1/../../../../arm-none-eabi/lib/thumb/v6-m/libc_nano.a(lib_a-memmove.o) - .debug_frame 0x0000000000002d68 0x2c /home/janhenrik/programme/gcc-arm-none-eabi-7-2018-q2-update/bin/../lib/gcc/arm-none-eabi/7.3.1/../../../../arm-none-eabi/lib/thumb/v6-m/libc_nano.a(lib_a-nano-freer.o) - .debug_frame 0x0000000000002d94 0x2c /home/janhenrik/programme/gcc-arm-none-eabi-7-2018-q2-update/bin/../lib/gcc/arm-none-eabi/7.3.1/../../../../arm-none-eabi/lib/thumb/v6-m/libc_nano.a(lib_a-nano-mallocr.o) - .debug_frame 0x0000000000002dc0 0x30 /home/janhenrik/programme/gcc-arm-none-eabi-7-2018-q2-update/bin/../lib/gcc/arm-none-eabi/7.3.1/../../../../arm-none-eabi/lib/thumb/v6-m/libc_nano.a(lib_a-nano-reallocr.o) - .debug_frame 0x0000000000002df0 0x2c /home/janhenrik/programme/gcc-arm-none-eabi-7-2018-q2-update/bin/../lib/gcc/arm-none-eabi/7.3.1/../../../../arm-none-eabi/lib/thumb/v6-m/libc_nano.a(lib_a-sbrkr.o) - .debug_frame 0x0000000000002e1c 0x30 /home/janhenrik/programme/gcc-arm-none-eabi-7-2018-q2-update/bin/../lib/gcc/arm-none-eabi/7.3.1/../../../../arm-none-eabi/lib/thumb/v6-m/libc_nano.a(lib_a-mlock.o) - .debug_frame 0x0000000000002e4c 0x20 /home/janhenrik/programme/gcc-arm-none-eabi-7-2018-q2-update/bin/../lib/gcc/arm-none-eabi/7.3.1/../../../../arm-none-eabi/lib/thumb/v6-m/libc_nano.a(lib_a-nano-msizer.o) - .debug_frame 0x0000000000002e6c 0x48 /home/janhenrik/programme/gcc-arm-none-eabi-7-2018-q2-update/bin/../lib/gcc/arm-none-eabi/7.3.1/../../../../arm-none-eabi/lib/thumb/v6-m/libc_nano.a(lib_a-reent.o) - .debug_frame 0x0000000000002eb4 0x20 /home/janhenrik/programme/gcc-arm-none-eabi-7-2018-q2-update/bin/../lib/gcc/arm-none-eabi/7.3.1/../../../../arm-none-eabi/lib/thumb/v6-m/libnosys.a(sbrk.o) - .debug_frame 0x0000000000002ed4 0x20 /home/janhenrik/programme/gcc-arm-none-eabi-7-2018-q2-update/bin/../lib/gcc/arm-none-eabi/7.3.1/thumb/v6-m/libgcc.a(_udivsi3.o) - .debug_frame 0x0000000000002ef4 0x28 /home/janhenrik/programme/gcc-arm-none-eabi-7-2018-q2-update/bin/../lib/gcc/arm-none-eabi/7.3.1/thumb/v6-m/libgcc.a(_fixunssfsi.o) - .debug_frame 0x0000000000002f1c 0x38 /home/janhenrik/programme/gcc-arm-none-eabi-7-2018-q2-update/bin/../lib/gcc/arm-none-eabi/7.3.1/thumb/v6-m/libgcc.a(addsf3.o) - .debug_frame 0x0000000000002f54 0x3c /home/janhenrik/programme/gcc-arm-none-eabi-7-2018-q2-update/bin/../lib/gcc/arm-none-eabi/7.3.1/thumb/v6-m/libgcc.a(divsf3.o) - .debug_frame 0x0000000000002f90 0x2c /home/janhenrik/programme/gcc-arm-none-eabi-7-2018-q2-update/bin/../lib/gcc/arm-none-eabi/7.3.1/thumb/v6-m/libgcc.a(eqsf2.o) - .debug_frame 0x0000000000002fbc 0x2c /home/janhenrik/programme/gcc-arm-none-eabi-7-2018-q2-update/bin/../lib/gcc/arm-none-eabi/7.3.1/thumb/v6-m/libgcc.a(gesf2.o) - .debug_frame 0x0000000000002fe8 0x2c /home/janhenrik/programme/gcc-arm-none-eabi-7-2018-q2-update/bin/../lib/gcc/arm-none-eabi/7.3.1/thumb/v6-m/libgcc.a(lesf2.o) - .debug_frame 0x0000000000003014 0x3c /home/janhenrik/programme/gcc-arm-none-eabi-7-2018-q2-update/bin/../lib/gcc/arm-none-eabi/7.3.1/thumb/v6-m/libgcc.a(mulsf3.o) - .debug_frame 0x0000000000003050 0x38 /home/janhenrik/programme/gcc-arm-none-eabi-7-2018-q2-update/bin/../lib/gcc/arm-none-eabi/7.3.1/thumb/v6-m/libgcc.a(subsf3.o) - .debug_frame 0x0000000000003088 0x20 /home/janhenrik/programme/gcc-arm-none-eabi-7-2018-q2-update/bin/../lib/gcc/arm-none-eabi/7.3.1/thumb/v6-m/libgcc.a(fixsfsi.o) - .debug_frame 0x00000000000030a8 0x2c /home/janhenrik/programme/gcc-arm-none-eabi-7-2018-q2-update/bin/../lib/gcc/arm-none-eabi/7.3.1/thumb/v6-m/libgcc.a(floatsisf.o) - .debug_frame 0x00000000000030d4 0x2c /home/janhenrik/programme/gcc-arm-none-eabi-7-2018-q2-update/bin/../lib/gcc/arm-none-eabi/7.3.1/thumb/v6-m/libgcc.a(floatunsisf.o) - .debug_frame 0x0000000000003100 0x3c /home/janhenrik/programme/gcc-arm-none-eabi-7-2018-q2-update/bin/../lib/gcc/arm-none-eabi/7.3.1/thumb/v6-m/libgcc.a(divdf3.o) - .debug_frame 0x000000000000313c 0x3c /home/janhenrik/programme/gcc-arm-none-eabi-7-2018-q2-update/bin/../lib/gcc/arm-none-eabi/7.3.1/thumb/v6-m/libgcc.a(muldf3.o) - .debug_frame 0x0000000000003178 0x3c /home/janhenrik/programme/gcc-arm-none-eabi-7-2018-q2-update/bin/../lib/gcc/arm-none-eabi/7.3.1/thumb/v6-m/libgcc.a(subdf3.o) - .debug_frame 0x00000000000031b4 0x2c /home/janhenrik/programme/gcc-arm-none-eabi-7-2018-q2-update/bin/../lib/gcc/arm-none-eabi/7.3.1/thumb/v6-m/libgcc.a(floatsidf.o) - .debug_frame 0x00000000000031e0 0x2c /home/janhenrik/programme/gcc-arm-none-eabi-7-2018-q2-update/bin/../lib/gcc/arm-none-eabi/7.3.1/thumb/v6-m/libgcc.a(extendsfdf2.o) - .debug_frame 0x000000000000320c 0x30 /home/janhenrik/programme/gcc-arm-none-eabi-7-2018-q2-update/bin/../lib/gcc/arm-none-eabi/7.3.1/thumb/v6-m/libgcc.a(truncdfsf2.o) - -Cross Reference Table - -Symbol File -ADC1_COMP_IRQHandler build/stm32f0xx_it.o -AHBPrescTable build/system_stm32f0xx.o - build/stm32f0xx_hal_rcc.o -APBPrescTable build/system_stm32f0xx.o - build/stm32f0xx_hal_rcc.o -CEC_CAN_IRQHandler build/startup_stm32f072xb.o -DMA1_Channel1_IRQHandler build/stm32f0xx_it.o -DMA1_Channel2_3_IRQHandler build/startup_stm32f072xb.o -DMA1_Channel4_5_6_7_IRQHandler build/startup_stm32f072xb.o -Default_Handler build/startup_stm32f072xb.o -EXTI0_1_IRQHandler build/startup_stm32f072xb.o -EXTI2_3_IRQHandler build/startup_stm32f072xb.o -EXTI4_15_IRQHandler build/startup_stm32f072xb.o -Error_Handler build/main.o -FLASH_IRQHandler build/startup_stm32f072xb.o -FLASH_PageErase build/stm32f0xx_hal_flash_ex.o - build/stm32f0xx_hal_flash.o -FLASH_WaitForLastOperation build/stm32f0xx_hal_flash.o - build/stm32f0xx_hal_flash_ex.o -HAL_ADCEx_Calibration_Start build/stm32f0xx_hal_adc_ex.o -HAL_ADC_AnalogWDGConfig build/stm32f0xx_hal_adc.o -HAL_ADC_ConfigChannel build/stm32f0xx_hal_adc.o - build/main.o -HAL_ADC_ConvCpltCallback build/stm32f0xx_hal_adc.o -HAL_ADC_ConvHalfCpltCallback build/stm32f0xx_hal_adc.o -HAL_ADC_DeInit build/stm32f0xx_hal_adc.o -HAL_ADC_ErrorCallback build/stm32f0xx_hal_adc.o -HAL_ADC_GetError build/stm32f0xx_hal_adc.o -HAL_ADC_GetState build/stm32f0xx_hal_adc.o -HAL_ADC_GetValue build/stm32f0xx_hal_adc.o -HAL_ADC_IRQHandler build/stm32f0xx_hal_adc.o - build/stm32f0xx_it.o -HAL_ADC_Init build/stm32f0xx_hal_adc.o - build/main.o -HAL_ADC_LevelOutOfWindowCallback build/stm32f0xx_hal_adc.o -HAL_ADC_MspDeInit build/stm32f0xx_hal_msp.o -HAL_ADC_MspInit build/stm32f0xx_hal_msp.o - build/main.o -HAL_ADC_PollForConversion build/stm32f0xx_hal_adc.o -HAL_ADC_PollForEvent build/stm32f0xx_hal_adc.o -HAL_ADC_Start build/stm32f0xx_hal_adc.o -HAL_ADC_Start_DMA build/stm32f0xx_hal_adc.o - build/main.o -HAL_ADC_Start_IT build/stm32f0xx_hal_adc.o -HAL_ADC_Stop build/stm32f0xx_hal_adc.o -HAL_ADC_Stop_DMA build/stm32f0xx_hal_adc.o -HAL_ADC_Stop_IT build/stm32f0xx_hal_adc.o -HAL_DBGMCU_DisableDBGStandbyMode build/stm32f0xx_hal.o -HAL_DBGMCU_DisableDBGStopMode build/stm32f0xx_hal.o -HAL_DBGMCU_EnableDBGStandbyMode build/stm32f0xx_hal.o -HAL_DBGMCU_EnableDBGStopMode build/stm32f0xx_hal.o -HAL_DMA_Abort build/stm32f0xx_hal_dma.o - build/stm32f0xx_hal_tim.o - build/stm32f0xx_hal_adc.o -HAL_DMA_Abort_IT build/stm32f0xx_hal_dma.o - build/stm32f0xx_hal_i2c.o -HAL_DMA_DeInit build/stm32f0xx_hal_dma.o - build/stm32f0xx_hal_msp.o -HAL_DMA_GetError build/stm32f0xx_hal_dma.o -HAL_DMA_GetState build/stm32f0xx_hal_dma.o -HAL_DMA_IRQHandler build/stm32f0xx_hal_dma.o - build/stm32f0xx_it.o -HAL_DMA_Init build/stm32f0xx_hal_dma.o - build/stm32f0xx_hal_msp.o -HAL_DMA_PollForTransfer build/stm32f0xx_hal_dma.o -HAL_DMA_RegisterCallback build/stm32f0xx_hal_dma.o -HAL_DMA_Start build/stm32f0xx_hal_dma.o -HAL_DMA_Start_IT build/stm32f0xx_hal_dma.o - build/stm32f0xx_hal_tim_ex.o - build/stm32f0xx_hal_tim.o - build/stm32f0xx_hal_i2c.o - build/stm32f0xx_hal_adc.o -HAL_DMA_UnRegisterCallback build/stm32f0xx_hal_dma.o -HAL_DeInit build/stm32f0xx_hal.o -HAL_Delay build/stm32f0xx_hal.o - build/main.o -HAL_FLASHEx_Erase build/stm32f0xx_hal_flash_ex.o -HAL_FLASHEx_Erase_IT build/stm32f0xx_hal_flash_ex.o -HAL_FLASHEx_OBErase build/stm32f0xx_hal_flash_ex.o -HAL_FLASHEx_OBGetConfig build/stm32f0xx_hal_flash_ex.o -HAL_FLASHEx_OBGetUserData build/stm32f0xx_hal_flash_ex.o -HAL_FLASHEx_OBProgram build/stm32f0xx_hal_flash_ex.o -HAL_FLASH_EndOfOperationCallback build/stm32f0xx_hal_flash.o -HAL_FLASH_GetError build/stm32f0xx_hal_flash.o -HAL_FLASH_IRQHandler build/stm32f0xx_hal_flash.o -HAL_FLASH_Lock build/stm32f0xx_hal_flash.o - build/main.o -HAL_FLASH_OB_Launch build/stm32f0xx_hal_flash.o -HAL_FLASH_OB_Lock build/stm32f0xx_hal_flash.o -HAL_FLASH_OB_Unlock build/stm32f0xx_hal_flash.o -HAL_FLASH_OperationErrorCallback build/stm32f0xx_hal_flash.o -HAL_FLASH_Program build/stm32f0xx_hal_flash.o - build/main.o -HAL_FLASH_Program_IT build/stm32f0xx_hal_flash.o -HAL_FLASH_Unlock build/stm32f0xx_hal_flash.o - build/main.o -HAL_GPIO_DeInit build/stm32f0xx_hal_gpio.o - build/stm32f0xx_hal_msp.o -HAL_GPIO_EXTI_Callback build/stm32f0xx_hal_gpio.o -HAL_GPIO_EXTI_IRQHandler build/stm32f0xx_hal_gpio.o -HAL_GPIO_Init build/stm32f0xx_hal_gpio.o - build/stm32f0xx_hal_rcc.o - build/stm32f0xx_hal_msp.o - build/main.o -HAL_GPIO_LockPin build/stm32f0xx_hal_gpio.o -HAL_GPIO_ReadPin build/stm32f0xx_hal_gpio.o - build/main.o -HAL_GPIO_TogglePin build/stm32f0xx_hal_gpio.o -HAL_GPIO_WritePin build/stm32f0xx_hal_gpio.o -HAL_GetDEVID build/stm32f0xx_hal.o -HAL_GetHalVersion build/stm32f0xx_hal.o -HAL_GetREVID build/stm32f0xx_hal.o -HAL_GetTick build/stm32f0xx_hal.o - build/stm32f0xx_hal_flash.o - build/stm32f0xx_hal_dma.o - build/stm32f0xx_hal_rcc_ex.o - build/stm32f0xx_hal_rcc.o - build/stm32f0xx_hal_i2c.o - build/stm32f0xx_hal_adc_ex.o - build/stm32f0xx_hal_adc.o -HAL_GetUIDw0 build/stm32f0xx_hal.o -HAL_GetUIDw1 build/stm32f0xx_hal.o -HAL_GetUIDw2 build/stm32f0xx_hal.o -HAL_I2CEx_ConfigAnalogFilter build/stm32f0xx_hal_i2c_ex.o - build/main.o -HAL_I2CEx_ConfigDigitalFilter build/stm32f0xx_hal_i2c_ex.o - build/main.o -HAL_I2CEx_DisableFastModePlus build/stm32f0xx_hal_i2c_ex.o -HAL_I2CEx_DisableWakeUp build/stm32f0xx_hal_i2c_ex.o -HAL_I2CEx_EnableFastModePlus build/stm32f0xx_hal_i2c_ex.o -HAL_I2CEx_EnableWakeUp build/stm32f0xx_hal_i2c_ex.o -HAL_I2C_AbortCpltCallback build/stm32f0xx_hal_i2c.o -HAL_I2C_AddrCallback build/stm32f0xx_hal_i2c.o -HAL_I2C_DeInit build/stm32f0xx_hal_i2c.o -HAL_I2C_DisableListen_IT build/stm32f0xx_hal_i2c.o -HAL_I2C_ER_IRQHandler build/stm32f0xx_hal_i2c.o -HAL_I2C_EV_IRQHandler build/stm32f0xx_hal_i2c.o -HAL_I2C_EnableListen_IT build/stm32f0xx_hal_i2c.o -HAL_I2C_ErrorCallback build/stm32f0xx_hal_i2c.o -HAL_I2C_GetError build/stm32f0xx_hal_i2c.o -HAL_I2C_GetMode build/stm32f0xx_hal_i2c.o -HAL_I2C_GetState build/stm32f0xx_hal_i2c.o - build/main.o -HAL_I2C_Init build/stm32f0xx_hal_i2c.o - build/main.o -HAL_I2C_IsDeviceReady build/stm32f0xx_hal_i2c.o -HAL_I2C_ListenCpltCallback build/stm32f0xx_hal_i2c.o -HAL_I2C_MasterRxCpltCallback build/stm32f0xx_hal_i2c.o -HAL_I2C_MasterTxCpltCallback build/stm32f0xx_hal_i2c.o -HAL_I2C_Master_Abort_IT build/stm32f0xx_hal_i2c.o -HAL_I2C_Master_Receive build/stm32f0xx_hal_i2c.o -HAL_I2C_Master_Receive_DMA build/stm32f0xx_hal_i2c.o -HAL_I2C_Master_Receive_IT build/stm32f0xx_hal_i2c.o -HAL_I2C_Master_Sequential_Receive_IT build/stm32f0xx_hal_i2c.o -HAL_I2C_Master_Sequential_Transmit_IT build/stm32f0xx_hal_i2c.o -HAL_I2C_Master_Transmit build/stm32f0xx_hal_i2c.o - build/main.o -HAL_I2C_Master_Transmit_DMA build/stm32f0xx_hal_i2c.o -HAL_I2C_Master_Transmit_IT build/stm32f0xx_hal_i2c.o -HAL_I2C_MemRxCpltCallback build/stm32f0xx_hal_i2c.o -HAL_I2C_MemTxCpltCallback build/stm32f0xx_hal_i2c.o -HAL_I2C_Mem_Read build/stm32f0xx_hal_i2c.o -HAL_I2C_Mem_Read_DMA build/stm32f0xx_hal_i2c.o -HAL_I2C_Mem_Read_IT build/stm32f0xx_hal_i2c.o -HAL_I2C_Mem_Write build/stm32f0xx_hal_i2c.o -HAL_I2C_Mem_Write_DMA build/stm32f0xx_hal_i2c.o -HAL_I2C_Mem_Write_IT build/stm32f0xx_hal_i2c.o -HAL_I2C_MspDeInit build/stm32f0xx_hal_msp.o -HAL_I2C_MspInit build/stm32f0xx_hal_msp.o -HAL_I2C_SlaveRxCpltCallback build/stm32f0xx_hal_i2c.o -HAL_I2C_SlaveTxCpltCallback build/stm32f0xx_hal_i2c.o -HAL_I2C_Slave_Receive build/stm32f0xx_hal_i2c.o -HAL_I2C_Slave_Receive_DMA build/stm32f0xx_hal_i2c.o -HAL_I2C_Slave_Receive_IT build/stm32f0xx_hal_i2c.o -HAL_I2C_Slave_Sequential_Receive_IT build/stm32f0xx_hal_i2c.o -HAL_I2C_Slave_Sequential_Transmit_IT build/stm32f0xx_hal_i2c.o -HAL_I2C_Slave_Transmit build/stm32f0xx_hal_i2c.o -HAL_I2C_Slave_Transmit_DMA build/stm32f0xx_hal_i2c.o -HAL_I2C_Slave_Transmit_IT build/stm32f0xx_hal_i2c.o -HAL_IncTick build/stm32f0xx_hal.o - build/stm32f0xx_it.o -HAL_Init build/stm32f0xx_hal.o - build/main.o -HAL_InitTick build/stm32f0xx_hal.o - build/stm32f0xx_hal_rcc.o -HAL_MspDeInit build/stm32f0xx_hal.o -HAL_MspInit build/stm32f0xx_hal_msp.o -HAL_NVIC_ClearPendingIRQ build/stm32f0xx_hal_cortex.o -HAL_NVIC_DisableIRQ build/stm32f0xx_hal_cortex.o - build/stm32f0xx_hal_msp.o -HAL_NVIC_EnableIRQ build/stm32f0xx_hal_cortex.o - build/stm32f0xx_hal_msp.o - build/main.o -HAL_NVIC_GetPendingIRQ build/stm32f0xx_hal_cortex.o -HAL_NVIC_GetPriority build/stm32f0xx_hal_cortex.o -HAL_NVIC_SetPendingIRQ build/stm32f0xx_hal_cortex.o -HAL_NVIC_SetPriority build/stm32f0xx_hal_cortex.o - build/stm32f0xx_hal.o - build/stm32f0xx_hal_msp.o - build/main.o -HAL_NVIC_SystemReset build/stm32f0xx_hal_cortex.o -HAL_PCDEx_PMAConfig build/stm32f0xx_hal_pcd_ex.o -HAL_PCD_ActivateRemoteWakeup build/stm32f0xx_hal_pcd.o -HAL_PCD_ConnectCallback build/stm32f0xx_hal_pcd.o -HAL_PCD_DataInStageCallback build/stm32f0xx_hal_pcd.o -HAL_PCD_DataOutStageCallback build/stm32f0xx_hal_pcd.o -HAL_PCD_DeActivateRemoteWakeup build/stm32f0xx_hal_pcd.o -HAL_PCD_DeInit build/stm32f0xx_hal_pcd.o -HAL_PCD_DevConnect build/stm32f0xx_hal_pcd.o -HAL_PCD_DevDisconnect build/stm32f0xx_hal_pcd.o -HAL_PCD_DisconnectCallback build/stm32f0xx_hal_pcd.o -HAL_PCD_EP_Close build/stm32f0xx_hal_pcd.o -HAL_PCD_EP_ClrStall build/stm32f0xx_hal_pcd.o -HAL_PCD_EP_Flush build/stm32f0xx_hal_pcd.o -HAL_PCD_EP_GetRxCount build/stm32f0xx_hal_pcd.o -HAL_PCD_EP_Open build/stm32f0xx_hal_pcd.o -HAL_PCD_EP_Receive build/stm32f0xx_hal_pcd.o -HAL_PCD_EP_SetStall build/stm32f0xx_hal_pcd.o -HAL_PCD_EP_Transmit build/stm32f0xx_hal_pcd.o -HAL_PCD_GetState build/stm32f0xx_hal_pcd.o -HAL_PCD_IRQHandler build/stm32f0xx_hal_pcd.o -HAL_PCD_ISOINIncompleteCallback build/stm32f0xx_hal_pcd.o -HAL_PCD_ISOOUTIncompleteCallback build/stm32f0xx_hal_pcd.o -HAL_PCD_Init build/stm32f0xx_hal_pcd.o - build/main.o -HAL_PCD_MspDeInit build/stm32f0xx_hal_msp.o -HAL_PCD_MspInit build/stm32f0xx_hal_msp.o -HAL_PCD_ResetCallback build/stm32f0xx_hal_pcd.o -HAL_PCD_ResumeCallback build/stm32f0xx_hal_pcd.o -HAL_PCD_SOFCallback build/stm32f0xx_hal_pcd.o -HAL_PCD_SetAddress build/stm32f0xx_hal_pcd.o -HAL_PCD_SetupStageCallback build/stm32f0xx_hal_pcd.o -HAL_PCD_Start build/stm32f0xx_hal_pcd.o -HAL_PCD_Stop build/stm32f0xx_hal_pcd.o -HAL_PCD_SuspendCallback build/stm32f0xx_hal_pcd.o -HAL_PWREx_DisableVddio2Monitor build/stm32f0xx_hal_pwr_ex.o -HAL_PWREx_EnableVddio2Monitor build/stm32f0xx_hal_pwr_ex.o -HAL_PWREx_Vddio2MonitorCallback build/stm32f0xx_hal_pwr_ex.o -HAL_PWREx_Vddio2Monitor_IRQHandler build/stm32f0xx_hal_pwr_ex.o -HAL_PWR_ConfigPVD build/stm32f0xx_hal_pwr_ex.o -HAL_PWR_DeInit build/stm32f0xx_hal_pwr.o -HAL_PWR_DisableBkUpAccess build/stm32f0xx_hal_pwr.o -HAL_PWR_DisablePVD build/stm32f0xx_hal_pwr_ex.o -HAL_PWR_DisableSEVOnPend build/stm32f0xx_hal_pwr.o -HAL_PWR_DisableSleepOnExit build/stm32f0xx_hal_pwr.o -HAL_PWR_DisableWakeUpPin build/stm32f0xx_hal_pwr.o -HAL_PWR_EnableBkUpAccess build/stm32f0xx_hal_pwr.o -HAL_PWR_EnablePVD build/stm32f0xx_hal_pwr_ex.o -HAL_PWR_EnableSEVOnPend build/stm32f0xx_hal_pwr.o -HAL_PWR_EnableSleepOnExit build/stm32f0xx_hal_pwr.o -HAL_PWR_EnableWakeUpPin build/stm32f0xx_hal_pwr.o -HAL_PWR_EnterSLEEPMode build/stm32f0xx_hal_pwr.o -HAL_PWR_EnterSTANDBYMode build/stm32f0xx_hal_pwr.o -HAL_PWR_EnterSTOPMode build/stm32f0xx_hal_pwr.o -HAL_PWR_PVDCallback build/stm32f0xx_hal_pwr_ex.o -HAL_PWR_PVD_IRQHandler build/stm32f0xx_hal_pwr_ex.o -HAL_RCCEx_CRSConfig build/stm32f0xx_hal_rcc_ex.o -HAL_RCCEx_CRSGetSynchronizationInfo build/stm32f0xx_hal_rcc_ex.o -HAL_RCCEx_CRSSoftwareSynchronizationGenerate build/stm32f0xx_hal_rcc_ex.o -HAL_RCCEx_CRSWaitSynchronization build/stm32f0xx_hal_rcc_ex.o -HAL_RCCEx_CRS_ErrorCallback build/stm32f0xx_hal_rcc_ex.o -HAL_RCCEx_CRS_ExpectedSyncCallback build/stm32f0xx_hal_rcc_ex.o -HAL_RCCEx_CRS_IRQHandler build/stm32f0xx_hal_rcc_ex.o -HAL_RCCEx_CRS_SyncOkCallback build/stm32f0xx_hal_rcc_ex.o -HAL_RCCEx_CRS_SyncWarnCallback build/stm32f0xx_hal_rcc_ex.o -HAL_RCCEx_GetPeriphCLKConfig build/stm32f0xx_hal_rcc_ex.o -HAL_RCCEx_GetPeriphCLKFreq build/stm32f0xx_hal_rcc_ex.o -HAL_RCCEx_PeriphCLKConfig build/stm32f0xx_hal_rcc_ex.o - build/main.o -HAL_RCC_CSSCallback build/stm32f0xx_hal_rcc.o -HAL_RCC_ClockConfig build/stm32f0xx_hal_rcc.o - build/main.o -HAL_RCC_DeInit build/stm32f0xx_hal_rcc.o -HAL_RCC_DisableCSS build/stm32f0xx_hal_rcc.o -HAL_RCC_EnableCSS build/stm32f0xx_hal_rcc.o -HAL_RCC_GetClockConfig build/stm32f0xx_hal_rcc.o -HAL_RCC_GetHCLKFreq build/stm32f0xx_hal_rcc.o - build/stm32f0xx_hal.o -HAL_RCC_GetOscConfig build/stm32f0xx_hal_rcc.o -HAL_RCC_GetPCLK1Freq build/stm32f0xx_hal_rcc.o - build/stm32f0xx_hal_rcc_ex.o -HAL_RCC_GetSysClockFreq build/stm32f0xx_hal_rcc.o - build/stm32f0xx_hal_rcc_ex.o -HAL_RCC_MCOConfig build/stm32f0xx_hal_rcc.o -HAL_RCC_NMI_IRQHandler build/stm32f0xx_hal_rcc.o -HAL_RCC_OscConfig build/stm32f0xx_hal_rcc.o - build/main.o -HAL_ResumeTick build/stm32f0xx_hal.o -HAL_SYSTICK_CLKSourceConfig build/stm32f0xx_hal_cortex.o -HAL_SYSTICK_Callback build/stm32f0xx_hal_cortex.o -HAL_SYSTICK_Config build/stm32f0xx_hal_cortex.o - build/stm32f0xx_hal.o -HAL_SYSTICK_IRQHandler build/stm32f0xx_hal_cortex.o -HAL_SuspendTick build/stm32f0xx_hal.o -HAL_TIMEx_BreakCallback build/stm32f0xx_hal_tim_ex.o - build/stm32f0xx_hal_tim.o -HAL_TIMEx_CommutationCallback build/stm32f0xx_hal_tim_ex.o - build/stm32f0xx_hal_tim.o -HAL_TIMEx_ConfigBreakDeadTime build/stm32f0xx_hal_tim_ex.o - build/main.o -HAL_TIMEx_ConfigCommutationEvent build/stm32f0xx_hal_tim_ex.o -HAL_TIMEx_ConfigCommutationEvent_DMA build/stm32f0xx_hal_tim_ex.o -HAL_TIMEx_ConfigCommutationEvent_IT build/stm32f0xx_hal_tim_ex.o -HAL_TIMEx_HallSensor_DeInit build/stm32f0xx_hal_tim_ex.o -HAL_TIMEx_HallSensor_GetState build/stm32f0xx_hal_tim_ex.o -HAL_TIMEx_HallSensor_Init build/stm32f0xx_hal_tim_ex.o -HAL_TIMEx_HallSensor_MspDeInit build/stm32f0xx_hal_tim_ex.o -HAL_TIMEx_HallSensor_MspInit build/stm32f0xx_hal_tim_ex.o -HAL_TIMEx_HallSensor_Start build/stm32f0xx_hal_tim_ex.o -HAL_TIMEx_HallSensor_Start_DMA build/stm32f0xx_hal_tim_ex.o -HAL_TIMEx_HallSensor_Start_IT build/stm32f0xx_hal_tim_ex.o -HAL_TIMEx_HallSensor_Stop build/stm32f0xx_hal_tim_ex.o -HAL_TIMEx_HallSensor_Stop_DMA build/stm32f0xx_hal_tim_ex.o -HAL_TIMEx_HallSensor_Stop_IT build/stm32f0xx_hal_tim_ex.o -HAL_TIMEx_MasterConfigSynchronization build/stm32f0xx_hal_tim_ex.o - build/main.o -HAL_TIMEx_OCN_Start build/stm32f0xx_hal_tim_ex.o -HAL_TIMEx_OCN_Start_DMA build/stm32f0xx_hal_tim_ex.o -HAL_TIMEx_OCN_Start_IT build/stm32f0xx_hal_tim_ex.o -HAL_TIMEx_OCN_Stop build/stm32f0xx_hal_tim_ex.o -HAL_TIMEx_OCN_Stop_DMA build/stm32f0xx_hal_tim_ex.o -HAL_TIMEx_OCN_Stop_IT build/stm32f0xx_hal_tim_ex.o -HAL_TIMEx_OnePulseN_Start build/stm32f0xx_hal_tim_ex.o -HAL_TIMEx_OnePulseN_Start_IT build/stm32f0xx_hal_tim_ex.o -HAL_TIMEx_OnePulseN_Stop build/stm32f0xx_hal_tim_ex.o -HAL_TIMEx_OnePulseN_Stop_IT build/stm32f0xx_hal_tim_ex.o -HAL_TIMEx_PWMN_Start build/stm32f0xx_hal_tim_ex.o -HAL_TIMEx_PWMN_Start_DMA build/stm32f0xx_hal_tim_ex.o -HAL_TIMEx_PWMN_Start_IT build/stm32f0xx_hal_tim_ex.o -HAL_TIMEx_PWMN_Stop build/stm32f0xx_hal_tim_ex.o -HAL_TIMEx_PWMN_Stop_DMA build/stm32f0xx_hal_tim_ex.o -HAL_TIMEx_PWMN_Stop_IT build/stm32f0xx_hal_tim_ex.o -HAL_TIMEx_RemapConfig build/stm32f0xx_hal_tim_ex.o -HAL_TIM_Base_DeInit build/stm32f0xx_hal_tim.o -HAL_TIM_Base_GetState build/stm32f0xx_hal_tim.o -HAL_TIM_Base_Init build/stm32f0xx_hal_tim.o - build/main.o -HAL_TIM_Base_MspDeInit build/stm32f0xx_hal_tim.o -HAL_TIM_Base_MspInit build/stm32f0xx_hal_tim.o -HAL_TIM_Base_Start build/stm32f0xx_hal_tim.o -HAL_TIM_Base_Start_DMA build/stm32f0xx_hal_tim.o -HAL_TIM_Base_Start_IT build/stm32f0xx_hal_tim.o -HAL_TIM_Base_Stop build/stm32f0xx_hal_tim.o -HAL_TIM_Base_Stop_DMA build/stm32f0xx_hal_tim.o -HAL_TIM_Base_Stop_IT build/stm32f0xx_hal_tim.o -HAL_TIM_ConfigClockSource build/stm32f0xx_hal_tim.o - build/main.o -HAL_TIM_ConfigOCrefClear build/stm32f0xx_hal_tim_ex.o - build/stm32f0xx_hal_tim.o -HAL_TIM_ConfigTI1Input build/stm32f0xx_hal_tim.o -HAL_TIM_DMABurst_MultiReadStart build/stm32f0xx_hal_tim.o -HAL_TIM_DMABurst_MultiWriteStart build/stm32f0xx_hal_tim.o -HAL_TIM_DMABurst_ReadStart build/stm32f0xx_hal_tim.o -HAL_TIM_DMABurst_ReadStop build/stm32f0xx_hal_tim.o -HAL_TIM_DMABurst_WriteStart build/stm32f0xx_hal_tim.o -HAL_TIM_DMABurst_WriteStop build/stm32f0xx_hal_tim.o -HAL_TIM_Encoder_DeInit build/stm32f0xx_hal_tim.o -HAL_TIM_Encoder_GetState build/stm32f0xx_hal_tim.o -HAL_TIM_Encoder_Init build/stm32f0xx_hal_tim.o -HAL_TIM_Encoder_MspDeInit build/stm32f0xx_hal_tim.o -HAL_TIM_Encoder_MspInit build/stm32f0xx_hal_tim.o -HAL_TIM_Encoder_Start build/stm32f0xx_hal_tim.o -HAL_TIM_Encoder_Start_DMA build/stm32f0xx_hal_tim.o -HAL_TIM_Encoder_Start_IT build/stm32f0xx_hal_tim.o -HAL_TIM_Encoder_Stop build/stm32f0xx_hal_tim.o -HAL_TIM_Encoder_Stop_DMA build/stm32f0xx_hal_tim.o -HAL_TIM_Encoder_Stop_IT build/stm32f0xx_hal_tim.o -HAL_TIM_ErrorCallback build/stm32f0xx_hal_tim.o -HAL_TIM_GenerateEvent build/stm32f0xx_hal_tim.o -HAL_TIM_IC_CaptureCallback build/stm32f0xx_hal_tim.o -HAL_TIM_IC_ConfigChannel build/stm32f0xx_hal_tim.o -HAL_TIM_IC_DeInit build/stm32f0xx_hal_tim.o -HAL_TIM_IC_GetState build/stm32f0xx_hal_tim.o -HAL_TIM_IC_Init build/stm32f0xx_hal_tim.o -HAL_TIM_IC_MspDeInit build/stm32f0xx_hal_tim.o -HAL_TIM_IC_MspInit build/stm32f0xx_hal_tim.o -HAL_TIM_IC_Start build/stm32f0xx_hal_tim.o -HAL_TIM_IC_Start_DMA build/stm32f0xx_hal_tim.o -HAL_TIM_IC_Start_IT build/stm32f0xx_hal_tim.o -HAL_TIM_IC_Stop build/stm32f0xx_hal_tim.o -HAL_TIM_IC_Stop_DMA build/stm32f0xx_hal_tim.o -HAL_TIM_IC_Stop_IT build/stm32f0xx_hal_tim.o -HAL_TIM_IRQHandler build/stm32f0xx_hal_tim.o - build/stm32f0xx_it.o -HAL_TIM_MspPostInit build/stm32f0xx_hal_msp.o - build/main.o -HAL_TIM_OC_ConfigChannel build/stm32f0xx_hal_tim.o - build/main.o -HAL_TIM_OC_DeInit build/stm32f0xx_hal_tim.o -HAL_TIM_OC_DelayElapsedCallback build/stm32f0xx_hal_tim.o -HAL_TIM_OC_GetState build/stm32f0xx_hal_tim.o -HAL_TIM_OC_Init build/stm32f0xx_hal_tim.o - build/main.o -HAL_TIM_OC_MspDeInit build/stm32f0xx_hal_tim.o -HAL_TIM_OC_MspInit build/stm32f0xx_hal_tim.o -HAL_TIM_OC_Start build/stm32f0xx_hal_tim.o - build/main.o -HAL_TIM_OC_Start_DMA build/stm32f0xx_hal_tim.o -HAL_TIM_OC_Start_IT build/stm32f0xx_hal_tim.o -HAL_TIM_OC_Stop build/stm32f0xx_hal_tim.o -HAL_TIM_OC_Stop_DMA build/stm32f0xx_hal_tim.o -HAL_TIM_OC_Stop_IT build/stm32f0xx_hal_tim.o -HAL_TIM_OnePulse_ConfigChannel build/stm32f0xx_hal_tim.o -HAL_TIM_OnePulse_DeInit build/stm32f0xx_hal_tim.o -HAL_TIM_OnePulse_GetState build/stm32f0xx_hal_tim.o -HAL_TIM_OnePulse_Init build/stm32f0xx_hal_tim.o -HAL_TIM_OnePulse_MspDeInit build/stm32f0xx_hal_tim.o -HAL_TIM_OnePulse_MspInit build/stm32f0xx_hal_tim.o -HAL_TIM_OnePulse_Start build/stm32f0xx_hal_tim.o -HAL_TIM_OnePulse_Start_IT build/stm32f0xx_hal_tim.o -HAL_TIM_OnePulse_Stop build/stm32f0xx_hal_tim.o -HAL_TIM_OnePulse_Stop_IT build/stm32f0xx_hal_tim.o -HAL_TIM_PWM_ConfigChannel build/stm32f0xx_hal_tim.o - build/main.o -HAL_TIM_PWM_DeInit build/stm32f0xx_hal_tim.o -HAL_TIM_PWM_GetState build/stm32f0xx_hal_tim.o -HAL_TIM_PWM_Init build/stm32f0xx_hal_tim.o - build/main.o -HAL_TIM_PWM_MspDeInit build/stm32f0xx_hal_msp.o -HAL_TIM_PWM_MspInit build/stm32f0xx_hal_msp.o -HAL_TIM_PWM_PulseFinishedCallback build/stm32f0xx_hal_tim.o -HAL_TIM_PWM_Start build/stm32f0xx_hal_tim.o - build/main.o -HAL_TIM_PWM_Start_DMA build/stm32f0xx_hal_tim.o -HAL_TIM_PWM_Start_IT build/stm32f0xx_hal_tim.o -HAL_TIM_PWM_Stop build/stm32f0xx_hal_tim.o -HAL_TIM_PWM_Stop_DMA build/stm32f0xx_hal_tim.o -HAL_TIM_PWM_Stop_IT build/stm32f0xx_hal_tim.o -HAL_TIM_PeriodElapsedCallback build/stm32f0xx_hal_tim.o -HAL_TIM_ReadCapturedValue build/stm32f0xx_hal_tim.o -HAL_TIM_SlaveConfigSynchronization build/stm32f0xx_hal_tim.o -HAL_TIM_SlaveConfigSynchronization_IT build/stm32f0xx_hal_tim.o -HAL_TIM_TriggerCallback build/stm32f0xx_hal_tim.o -HardFault_Handler build/stm32f0xx_it.o -I2C1_IRQHandler build/startup_stm32f072xb.o -I2C2_IRQHandler build/startup_stm32f072xb.o -NMI_Handler build/stm32f0xx_it.o -OLED_Setup_Array build/main.o -PCD_ReadPMA build/stm32f0xx_hal_pcd.o -PCD_WritePMA build/stm32f0xx_hal_pcd.o -PVD_VDDIO2_IRQHandler build/startup_stm32f072xb.o -PendSV_Handler build/stm32f0xx_it.o -RCC_CRS_IRQHandler build/startup_stm32f072xb.o -REFRESH_COMMANDS build/main.o -RTC_IRQHandler build/startup_stm32f072xb.o -Reset_Handler build/startup_stm32f072xb.o -SPI1_IRQHandler build/startup_stm32f072xb.o -SPI2_IRQHandler build/startup_stm32f072xb.o -SVC_Handler build/stm32f0xx_it.o -SysMemBootJump build/system_stm32f0xx.o -SysTick_Handler build/stm32f0xx_it.o -SystemClock_Config build/main.o -SystemCoreClock build/system_stm32f0xx.o - build/stm32f0xx_hal_rcc.o - build/stm32f0xx_hal_adc.o -SystemCoreClockUpdate build/system_stm32f0xx.o -SystemInit build/system_stm32f0xx.o - build/startup_stm32f072xb.o -TIM14_IRQHandler build/startup_stm32f072xb.o -TIM15_IRQHandler build/startup_stm32f072xb.o -TIM16_IRQHandler build/startup_stm32f072xb.o -TIM17_IRQHandler build/startup_stm32f072xb.o -TIM1_BRK_UP_TRG_COM_IRQHandler build/stm32f0xx_it.o -TIM1_CC_IRQHandler build/stm32f0xx_it.o -TIM2_IRQHandler build/startup_stm32f072xb.o -TIM3_IRQHandler build/startup_stm32f072xb.o -TIM6_DAC_IRQHandler build/startup_stm32f072xb.o -TIM7_IRQHandler build/startup_stm32f072xb.o -TIMEx_DMACommutationCplt build/stm32f0xx_hal_tim_ex.o - build/stm32f0xx_hal_tim.o -TIM_Base_SetConfig build/stm32f0xx_hal_tim.o - build/stm32f0xx_hal_tim_ex.o -TIM_CCxChannelCmd build/stm32f0xx_hal_tim.o - build/stm32f0xx_hal_tim_ex.o -TIM_DMACaptureCplt build/stm32f0xx_hal_tim.o - build/stm32f0xx_hal_tim_ex.o -TIM_DMADelayPulseCplt build/stm32f0xx_hal_tim.o - build/stm32f0xx_hal_tim_ex.o -TIM_DMAError build/stm32f0xx_hal_tim.o - build/stm32f0xx_hal_tim_ex.o -TIM_ETR_SetConfig build/stm32f0xx_hal_tim.o - build/stm32f0xx_hal_tim_ex.o -TIM_OC2_SetConfig build/stm32f0xx_hal_tim.o - build/stm32f0xx_hal_tim_ex.o -TIM_TI1_SetConfig build/stm32f0xx_hal_tim.o - build/stm32f0xx_hal_tim_ex.o -TSC_IRQHandler build/startup_stm32f072xb.o -USART1_IRQHandler build/startup_stm32f072xb.o -USART2_IRQHandler build/startup_stm32f072xb.o -USART3_4_IRQHandler build/startup_stm32f072xb.o -USB_IRQHandler build/startup_stm32f072xb.o -WWDG_IRQHandler build/startup_stm32f072xb.o -__aeabi_cfcmpeq /home/janhenrik/programme/gcc-arm-none-eabi-7-2018-q2-update/bin/../lib/gcc/arm-none-eabi/7.3.1/thumb/v6-m/libgcc.a(_arm_cmpsf2.o) -__aeabi_cfcmple /home/janhenrik/programme/gcc-arm-none-eabi-7-2018-q2-update/bin/../lib/gcc/arm-none-eabi/7.3.1/thumb/v6-m/libgcc.a(_arm_cmpsf2.o) -__aeabi_cfrcmple /home/janhenrik/programme/gcc-arm-none-eabi-7-2018-q2-update/bin/../lib/gcc/arm-none-eabi/7.3.1/thumb/v6-m/libgcc.a(_arm_cmpsf2.o) -__aeabi_d2f /home/janhenrik/programme/gcc-arm-none-eabi-7-2018-q2-update/bin/../lib/gcc/arm-none-eabi/7.3.1/thumb/v6-m/libgcc.a(truncdfsf2.o) - build/main.o -__aeabi_ddiv /home/janhenrik/programme/gcc-arm-none-eabi-7-2018-q2-update/bin/../lib/gcc/arm-none-eabi/7.3.1/thumb/v6-m/libgcc.a(divdf3.o) - build/main.o -__aeabi_dmul /home/janhenrik/programme/gcc-arm-none-eabi-7-2018-q2-update/bin/../lib/gcc/arm-none-eabi/7.3.1/thumb/v6-m/libgcc.a(muldf3.o) - build/main.o -__aeabi_dsub /home/janhenrik/programme/gcc-arm-none-eabi-7-2018-q2-update/bin/../lib/gcc/arm-none-eabi/7.3.1/thumb/v6-m/libgcc.a(subdf3.o) - build/main.o -__aeabi_f2d /home/janhenrik/programme/gcc-arm-none-eabi-7-2018-q2-update/bin/../lib/gcc/arm-none-eabi/7.3.1/thumb/v6-m/libgcc.a(extendsfdf2.o) - build/main.o -__aeabi_f2iz /home/janhenrik/programme/gcc-arm-none-eabi-7-2018-q2-update/bin/../lib/gcc/arm-none-eabi/7.3.1/thumb/v6-m/libgcc.a(fixsfsi.o) - /home/janhenrik/programme/gcc-arm-none-eabi-7-2018-q2-update/bin/../lib/gcc/arm-none-eabi/7.3.1/thumb/v6-m/libgcc.a(_fixunssfsi.o) - build/main.o -__aeabi_f2uiz /home/janhenrik/programme/gcc-arm-none-eabi-7-2018-q2-update/bin/../lib/gcc/arm-none-eabi/7.3.1/thumb/v6-m/libgcc.a(_fixunssfsi.o) - build/main.o -__aeabi_fadd /home/janhenrik/programme/gcc-arm-none-eabi-7-2018-q2-update/bin/../lib/gcc/arm-none-eabi/7.3.1/thumb/v6-m/libgcc.a(addsf3.o) - build/main.o -__aeabi_fcmpeq /home/janhenrik/programme/gcc-arm-none-eabi-7-2018-q2-update/bin/../lib/gcc/arm-none-eabi/7.3.1/thumb/v6-m/libgcc.a(_arm_cmpsf2.o) -__aeabi_fcmpge /home/janhenrik/programme/gcc-arm-none-eabi-7-2018-q2-update/bin/../lib/gcc/arm-none-eabi/7.3.1/thumb/v6-m/libgcc.a(_arm_cmpsf2.o) - /home/janhenrik/programme/gcc-arm-none-eabi-7-2018-q2-update/bin/../lib/gcc/arm-none-eabi/7.3.1/thumb/v6-m/libgcc.a(_fixunssfsi.o) - build/main.o -__aeabi_fcmpgt /home/janhenrik/programme/gcc-arm-none-eabi-7-2018-q2-update/bin/../lib/gcc/arm-none-eabi/7.3.1/thumb/v6-m/libgcc.a(_arm_cmpsf2.o) - build/main.o -__aeabi_fcmple /home/janhenrik/programme/gcc-arm-none-eabi-7-2018-q2-update/bin/../lib/gcc/arm-none-eabi/7.3.1/thumb/v6-m/libgcc.a(_arm_cmpsf2.o) - build/main.o -__aeabi_fcmplt /home/janhenrik/programme/gcc-arm-none-eabi-7-2018-q2-update/bin/../lib/gcc/arm-none-eabi/7.3.1/thumb/v6-m/libgcc.a(_arm_cmpsf2.o) - build/main.o -__aeabi_fdiv /home/janhenrik/programme/gcc-arm-none-eabi-7-2018-q2-update/bin/../lib/gcc/arm-none-eabi/7.3.1/thumb/v6-m/libgcc.a(divsf3.o) - build/main.o -__aeabi_fmul /home/janhenrik/programme/gcc-arm-none-eabi-7-2018-q2-update/bin/../lib/gcc/arm-none-eabi/7.3.1/thumb/v6-m/libgcc.a(mulsf3.o) - build/main.o -__aeabi_fsub /home/janhenrik/programme/gcc-arm-none-eabi-7-2018-q2-update/bin/../lib/gcc/arm-none-eabi/7.3.1/thumb/v6-m/libgcc.a(subsf3.o) - /home/janhenrik/programme/gcc-arm-none-eabi-7-2018-q2-update/bin/../lib/gcc/arm-none-eabi/7.3.1/thumb/v6-m/libgcc.a(_fixunssfsi.o) - build/main.o -__aeabi_i2d /home/janhenrik/programme/gcc-arm-none-eabi-7-2018-q2-update/bin/../lib/gcc/arm-none-eabi/7.3.1/thumb/v6-m/libgcc.a(floatsidf.o) - build/main.o -__aeabi_i2f /home/janhenrik/programme/gcc-arm-none-eabi-7-2018-q2-update/bin/../lib/gcc/arm-none-eabi/7.3.1/thumb/v6-m/libgcc.a(floatsisf.o) - build/main.o -__aeabi_idiv0 /home/janhenrik/programme/gcc-arm-none-eabi-7-2018-q2-update/bin/../lib/gcc/arm-none-eabi/7.3.1/thumb/v6-m/libgcc.a(_dvmd_tls.o) - /home/janhenrik/programme/gcc-arm-none-eabi-7-2018-q2-update/bin/../lib/gcc/arm-none-eabi/7.3.1/thumb/v6-m/libgcc.a(_udivsi3.o) -__aeabi_ldiv0 /home/janhenrik/programme/gcc-arm-none-eabi-7-2018-q2-update/bin/../lib/gcc/arm-none-eabi/7.3.1/thumb/v6-m/libgcc.a(_dvmd_tls.o) -__aeabi_ui2f /home/janhenrik/programme/gcc-arm-none-eabi-7-2018-q2-update/bin/../lib/gcc/arm-none-eabi/7.3.1/thumb/v6-m/libgcc.a(floatunsisf.o) - build/main.o -__aeabi_uidiv /home/janhenrik/programme/gcc-arm-none-eabi-7-2018-q2-update/bin/../lib/gcc/arm-none-eabi/7.3.1/thumb/v6-m/libgcc.a(_udivsi3.o) - build/system_stm32f0xx.o - build/stm32f0xx_hal_dma.o - build/stm32f0xx_hal.o - build/stm32f0xx_hal_rcc_ex.o - build/stm32f0xx_hal_rcc.o - build/stm32f0xx_hal_adc.o -__aeabi_uidivmod /home/janhenrik/programme/gcc-arm-none-eabi-7-2018-q2-update/bin/../lib/gcc/arm-none-eabi/7.3.1/thumb/v6-m/libgcc.a(_udivsi3.o) - /home/janhenrik/programme/gcc-arm-none-eabi-7-2018-q2-update/bin/../lib/gcc/arm-none-eabi/7.3.1/thumb/v6-m/libgcc.a(divdf3.o) - /home/janhenrik/programme/gcc-arm-none-eabi-7-2018-q2-update/bin/../lib/gcc/arm-none-eabi/7.3.1/../../../../arm-none-eabi/lib/thumb/v6-m/libc_nano.a(lib_a-nano-vfprintf_i.o) -__bss_end__ /home/janhenrik/programme/gcc-arm-none-eabi-7-2018-q2-update/bin/../lib/gcc/arm-none-eabi/7.3.1/../../../../arm-none-eabi/lib/thumb/v6-m/crt0.o -__bss_start__ /home/janhenrik/programme/gcc-arm-none-eabi-7-2018-q2-update/bin/../lib/gcc/arm-none-eabi/7.3.1/../../../../arm-none-eabi/lib/thumb/v6-m/crt0.o -__call_exitprocs /home/janhenrik/programme/gcc-arm-none-eabi-7-2018-q2-update/bin/../lib/gcc/arm-none-eabi/7.3.1/../../../../arm-none-eabi/lib/thumb/v6-m/libc_nano.a(lib_a-exit.o) -__clzsi2 /home/janhenrik/programme/gcc-arm-none-eabi-7-2018-q2-update/bin/../lib/gcc/arm-none-eabi/7.3.1/thumb/v6-m/libgcc.a(_clzsi2.o) - /home/janhenrik/programme/gcc-arm-none-eabi-7-2018-q2-update/bin/../lib/gcc/arm-none-eabi/7.3.1/thumb/v6-m/libgcc.a(extendsfdf2.o) - /home/janhenrik/programme/gcc-arm-none-eabi-7-2018-q2-update/bin/../lib/gcc/arm-none-eabi/7.3.1/thumb/v6-m/libgcc.a(floatsidf.o) - /home/janhenrik/programme/gcc-arm-none-eabi-7-2018-q2-update/bin/../lib/gcc/arm-none-eabi/7.3.1/thumb/v6-m/libgcc.a(subdf3.o) - /home/janhenrik/programme/gcc-arm-none-eabi-7-2018-q2-update/bin/../lib/gcc/arm-none-eabi/7.3.1/thumb/v6-m/libgcc.a(muldf3.o) - /home/janhenrik/programme/gcc-arm-none-eabi-7-2018-q2-update/bin/../lib/gcc/arm-none-eabi/7.3.1/thumb/v6-m/libgcc.a(divdf3.o) - /home/janhenrik/programme/gcc-arm-none-eabi-7-2018-q2-update/bin/../lib/gcc/arm-none-eabi/7.3.1/thumb/v6-m/libgcc.a(floatunsisf.o) - /home/janhenrik/programme/gcc-arm-none-eabi-7-2018-q2-update/bin/../lib/gcc/arm-none-eabi/7.3.1/thumb/v6-m/libgcc.a(floatsisf.o) - /home/janhenrik/programme/gcc-arm-none-eabi-7-2018-q2-update/bin/../lib/gcc/arm-none-eabi/7.3.1/thumb/v6-m/libgcc.a(subsf3.o) - /home/janhenrik/programme/gcc-arm-none-eabi-7-2018-q2-update/bin/../lib/gcc/arm-none-eabi/7.3.1/thumb/v6-m/libgcc.a(mulsf3.o) - /home/janhenrik/programme/gcc-arm-none-eabi-7-2018-q2-update/bin/../lib/gcc/arm-none-eabi/7.3.1/thumb/v6-m/libgcc.a(divsf3.o) - /home/janhenrik/programme/gcc-arm-none-eabi-7-2018-q2-update/bin/../lib/gcc/arm-none-eabi/7.3.1/thumb/v6-m/libgcc.a(addsf3.o) -__deregister_frame_info /home/janhenrik/programme/gcc-arm-none-eabi-7-2018-q2-update/bin/../lib/gcc/arm-none-eabi/7.3.1/thumb/v6-m/crtbegin.o -__dso_handle /home/janhenrik/programme/gcc-arm-none-eabi-7-2018-q2-update/bin/../lib/gcc/arm-none-eabi/7.3.1/thumb/v6-m/crtbegin.o -__eqsf2 /home/janhenrik/programme/gcc-arm-none-eabi-7-2018-q2-update/bin/../lib/gcc/arm-none-eabi/7.3.1/thumb/v6-m/libgcc.a(eqsf2.o) - /home/janhenrik/programme/gcc-arm-none-eabi-7-2018-q2-update/bin/../lib/gcc/arm-none-eabi/7.3.1/thumb/v6-m/libgcc.a(_arm_cmpsf2.o) -__fixunssfsi /home/janhenrik/programme/gcc-arm-none-eabi-7-2018-q2-update/bin/../lib/gcc/arm-none-eabi/7.3.1/thumb/v6-m/libgcc.a(_fixunssfsi.o) -__gesf2 /home/janhenrik/programme/gcc-arm-none-eabi-7-2018-q2-update/bin/../lib/gcc/arm-none-eabi/7.3.1/thumb/v6-m/libgcc.a(gesf2.o) - /home/janhenrik/programme/gcc-arm-none-eabi-7-2018-q2-update/bin/../lib/gcc/arm-none-eabi/7.3.1/thumb/v6-m/libgcc.a(_arm_cmpsf2.o) -__gtsf2 /home/janhenrik/programme/gcc-arm-none-eabi-7-2018-q2-update/bin/../lib/gcc/arm-none-eabi/7.3.1/thumb/v6-m/libgcc.a(gesf2.o) -__init_array_end /home/janhenrik/programme/gcc-arm-none-eabi-7-2018-q2-update/bin/../lib/gcc/arm-none-eabi/7.3.1/../../../../arm-none-eabi/lib/thumb/v6-m/libc_nano.a(lib_a-init.o) -__init_array_start /home/janhenrik/programme/gcc-arm-none-eabi-7-2018-q2-update/bin/../lib/gcc/arm-none-eabi/7.3.1/../../../../arm-none-eabi/lib/thumb/v6-m/libc_nano.a(lib_a-init.o) -__lesf2 /home/janhenrik/programme/gcc-arm-none-eabi-7-2018-q2-update/bin/../lib/gcc/arm-none-eabi/7.3.1/thumb/v6-m/libgcc.a(lesf2.o) - /home/janhenrik/programme/gcc-arm-none-eabi-7-2018-q2-update/bin/../lib/gcc/arm-none-eabi/7.3.1/thumb/v6-m/libgcc.a(_arm_cmpsf2.o) -__libc_fini_array /home/janhenrik/programme/gcc-arm-none-eabi-7-2018-q2-update/bin/../lib/gcc/arm-none-eabi/7.3.1/../../../../arm-none-eabi/lib/thumb/v6-m/crt0.o -__libc_init_array /home/janhenrik/programme/gcc-arm-none-eabi-7-2018-q2-update/bin/../lib/gcc/arm-none-eabi/7.3.1/../../../../arm-none-eabi/lib/thumb/v6-m/libc_nano.a(lib_a-init.o) - build/startup_stm32f072xb.o - /home/janhenrik/programme/gcc-arm-none-eabi-7-2018-q2-update/bin/../lib/gcc/arm-none-eabi/7.3.1/../../../../arm-none-eabi/lib/thumb/v6-m/crt0.o -__ltsf2 /home/janhenrik/programme/gcc-arm-none-eabi-7-2018-q2-update/bin/../lib/gcc/arm-none-eabi/7.3.1/thumb/v6-m/libgcc.a(lesf2.o) -__malloc_free_list /home/janhenrik/programme/gcc-arm-none-eabi-7-2018-q2-update/bin/../lib/gcc/arm-none-eabi/7.3.1/../../../../arm-none-eabi/lib/thumb/v6-m/libc_nano.a(lib_a-nano-mallocr.o) - /home/janhenrik/programme/gcc-arm-none-eabi-7-2018-q2-update/bin/../lib/gcc/arm-none-eabi/7.3.1/../../../../arm-none-eabi/lib/thumb/v6-m/libc_nano.a(lib_a-nano-freer.o) -__malloc_lock /home/janhenrik/programme/gcc-arm-none-eabi-7-2018-q2-update/bin/../lib/gcc/arm-none-eabi/7.3.1/../../../../arm-none-eabi/lib/thumb/v6-m/libc_nano.a(lib_a-mlock.o) - /home/janhenrik/programme/gcc-arm-none-eabi-7-2018-q2-update/bin/../lib/gcc/arm-none-eabi/7.3.1/../../../../arm-none-eabi/lib/thumb/v6-m/libc_nano.a(lib_a-nano-mallocr.o) - /home/janhenrik/programme/gcc-arm-none-eabi-7-2018-q2-update/bin/../lib/gcc/arm-none-eabi/7.3.1/../../../../arm-none-eabi/lib/thumb/v6-m/libc_nano.a(lib_a-nano-freer.o) -__malloc_sbrk_start /home/janhenrik/programme/gcc-arm-none-eabi-7-2018-q2-update/bin/../lib/gcc/arm-none-eabi/7.3.1/../../../../arm-none-eabi/lib/thumb/v6-m/libc_nano.a(lib_a-nano-mallocr.o) -__malloc_unlock /home/janhenrik/programme/gcc-arm-none-eabi-7-2018-q2-update/bin/../lib/gcc/arm-none-eabi/7.3.1/../../../../arm-none-eabi/lib/thumb/v6-m/libc_nano.a(lib_a-mlock.o) - /home/janhenrik/programme/gcc-arm-none-eabi-7-2018-q2-update/bin/../lib/gcc/arm-none-eabi/7.3.1/../../../../arm-none-eabi/lib/thumb/v6-m/libc_nano.a(lib_a-nano-mallocr.o) - /home/janhenrik/programme/gcc-arm-none-eabi-7-2018-q2-update/bin/../lib/gcc/arm-none-eabi/7.3.1/../../../../arm-none-eabi/lib/thumb/v6-m/libc_nano.a(lib_a-nano-freer.o) -__nesf2 /home/janhenrik/programme/gcc-arm-none-eabi-7-2018-q2-update/bin/../lib/gcc/arm-none-eabi/7.3.1/thumb/v6-m/libgcc.a(eqsf2.o) -__preinit_array_end /home/janhenrik/programme/gcc-arm-none-eabi-7-2018-q2-update/bin/../lib/gcc/arm-none-eabi/7.3.1/../../../../arm-none-eabi/lib/thumb/v6-m/libc_nano.a(lib_a-init.o) -__preinit_array_start /home/janhenrik/programme/gcc-arm-none-eabi-7-2018-q2-update/bin/../lib/gcc/arm-none-eabi/7.3.1/../../../../arm-none-eabi/lib/thumb/v6-m/libc_nano.a(lib_a-init.o) -__register_frame_info /home/janhenrik/programme/gcc-arm-none-eabi-7-2018-q2-update/bin/../lib/gcc/arm-none-eabi/7.3.1/thumb/v6-m/crtbegin.o -__sf_fake_stderr /home/janhenrik/programme/gcc-arm-none-eabi-7-2018-q2-update/bin/../lib/gcc/arm-none-eabi/7.3.1/../../../../arm-none-eabi/lib/thumb/v6-m/libc_nano.a(lib_a-impure.o) -__sf_fake_stdin /home/janhenrik/programme/gcc-arm-none-eabi-7-2018-q2-update/bin/../lib/gcc/arm-none-eabi/7.3.1/../../../../arm-none-eabi/lib/thumb/v6-m/libc_nano.a(lib_a-impure.o) -__sf_fake_stdout /home/janhenrik/programme/gcc-arm-none-eabi-7-2018-q2-update/bin/../lib/gcc/arm-none-eabi/7.3.1/../../../../arm-none-eabi/lib/thumb/v6-m/libc_nano.a(lib_a-impure.o) -__ssprint_r /home/janhenrik/programme/gcc-arm-none-eabi-7-2018-q2-update/bin/../lib/gcc/arm-none-eabi/7.3.1/../../../../arm-none-eabi/lib/thumb/v6-m/libc_nano.a(lib_a-nano-svfprintf.o) -__ssputs_r /home/janhenrik/programme/gcc-arm-none-eabi-7-2018-q2-update/bin/../lib/gcc/arm-none-eabi/7.3.1/../../../../arm-none-eabi/lib/thumb/v6-m/libc_nano.a(lib_a-nano-svfprintf.o) -__stack /home/janhenrik/programme/gcc-arm-none-eabi-7-2018-q2-update/bin/../lib/gcc/arm-none-eabi/7.3.1/../../../../arm-none-eabi/lib/thumb/v6-m/crt0.o -__udivsi3 /home/janhenrik/programme/gcc-arm-none-eabi-7-2018-q2-update/bin/../lib/gcc/arm-none-eabi/7.3.1/thumb/v6-m/libgcc.a(_udivsi3.o) -_ebss build/startup_stm32f072xb.o -_edata build/startup_stm32f072xb.o -_estack build/startup_stm32f072xb.o -_exit /home/janhenrik/programme/gcc-arm-none-eabi-7-2018-q2-update/bin/../lib/gcc/arm-none-eabi/7.3.1/../../../../arm-none-eabi/lib/thumb/v6-m/libnosys.a(_exit.o) - /home/janhenrik/programme/gcc-arm-none-eabi-7-2018-q2-update/bin/../lib/gcc/arm-none-eabi/7.3.1/../../../../arm-none-eabi/lib/thumb/v6-m/libc_nano.a(lib_a-exit.o) -_fini /home/janhenrik/programme/gcc-arm-none-eabi-7-2018-q2-update/bin/../lib/gcc/arm-none-eabi/7.3.1/thumb/v6-m/crti.o -_free_r /home/janhenrik/programme/gcc-arm-none-eabi-7-2018-q2-update/bin/../lib/gcc/arm-none-eabi/7.3.1/../../../../arm-none-eabi/lib/thumb/v6-m/libc_nano.a(lib_a-nano-freer.o) - /home/janhenrik/programme/gcc-arm-none-eabi-7-2018-q2-update/bin/../lib/gcc/arm-none-eabi/7.3.1/../../../../arm-none-eabi/lib/thumb/v6-m/libc_nano.a(lib_a-reent.o) - /home/janhenrik/programme/gcc-arm-none-eabi-7-2018-q2-update/bin/../lib/gcc/arm-none-eabi/7.3.1/../../../../arm-none-eabi/lib/thumb/v6-m/libc_nano.a(lib_a-nano-reallocr.o) - /home/janhenrik/programme/gcc-arm-none-eabi-7-2018-q2-update/bin/../lib/gcc/arm-none-eabi/7.3.1/../../../../arm-none-eabi/lib/thumb/v6-m/libc_nano.a(lib_a-nano-svfprintf.o) -_global_impure_ptr /home/janhenrik/programme/gcc-arm-none-eabi-7-2018-q2-update/bin/../lib/gcc/arm-none-eabi/7.3.1/../../../../arm-none-eabi/lib/thumb/v6-m/libc_nano.a(lib_a-impure.o) - /home/janhenrik/programme/gcc-arm-none-eabi-7-2018-q2-update/bin/../lib/gcc/arm-none-eabi/7.3.1/../../../../arm-none-eabi/lib/thumb/v6-m/libc_nano.a(lib_a-exit.o) -_impure_ptr /home/janhenrik/programme/gcc-arm-none-eabi-7-2018-q2-update/bin/../lib/gcc/arm-none-eabi/7.3.1/../../../../arm-none-eabi/lib/thumb/v6-m/libc_nano.a(lib_a-impure.o) - /home/janhenrik/programme/gcc-arm-none-eabi-7-2018-q2-update/bin/../lib/gcc/arm-none-eabi/7.3.1/../../../../arm-none-eabi/lib/thumb/v6-m/libc_nano.a(lib_a-reent.o) - /home/janhenrik/programme/gcc-arm-none-eabi-7-2018-q2-update/bin/../lib/gcc/arm-none-eabi/7.3.1/../../../../arm-none-eabi/lib/thumb/v6-m/libc_nano.a(lib_a-sprintf.o) -_init /home/janhenrik/programme/gcc-arm-none-eabi-7-2018-q2-update/bin/../lib/gcc/arm-none-eabi/7.3.1/thumb/v6-m/crti.o - /home/janhenrik/programme/gcc-arm-none-eabi-7-2018-q2-update/bin/../lib/gcc/arm-none-eabi/7.3.1/../../../../arm-none-eabi/lib/thumb/v6-m/libc_nano.a(lib_a-init.o) -_mainCRTStartup /home/janhenrik/programme/gcc-arm-none-eabi-7-2018-q2-update/bin/../lib/gcc/arm-none-eabi/7.3.1/../../../../arm-none-eabi/lib/thumb/v6-m/crt0.o -_malloc_r /home/janhenrik/programme/gcc-arm-none-eabi-7-2018-q2-update/bin/../lib/gcc/arm-none-eabi/7.3.1/../../../../arm-none-eabi/lib/thumb/v6-m/libc_nano.a(lib_a-nano-mallocr.o) - /home/janhenrik/programme/gcc-arm-none-eabi-7-2018-q2-update/bin/../lib/gcc/arm-none-eabi/7.3.1/../../../../arm-none-eabi/lib/thumb/v6-m/libc_nano.a(lib_a-nano-reallocr.o) - /home/janhenrik/programme/gcc-arm-none-eabi-7-2018-q2-update/bin/../lib/gcc/arm-none-eabi/7.3.1/../../../../arm-none-eabi/lib/thumb/v6-m/libc_nano.a(lib_a-nano-svfprintf.o) -_malloc_usable_size_r /home/janhenrik/programme/gcc-arm-none-eabi-7-2018-q2-update/bin/../lib/gcc/arm-none-eabi/7.3.1/../../../../arm-none-eabi/lib/thumb/v6-m/libc_nano.a(lib_a-nano-msizer.o) - /home/janhenrik/programme/gcc-arm-none-eabi-7-2018-q2-update/bin/../lib/gcc/arm-none-eabi/7.3.1/../../../../arm-none-eabi/lib/thumb/v6-m/libc_nano.a(lib_a-nano-reallocr.o) -_printf_common /home/janhenrik/programme/gcc-arm-none-eabi-7-2018-q2-update/bin/../lib/gcc/arm-none-eabi/7.3.1/../../../../arm-none-eabi/lib/thumb/v6-m/libc_nano.a(lib_a-nano-vfprintf_i.o) -_printf_float /home/janhenrik/programme/gcc-arm-none-eabi-7-2018-q2-update/bin/../lib/gcc/arm-none-eabi/7.3.1/../../../../arm-none-eabi/lib/thumb/v6-m/libc_nano.a(lib_a-nano-svfprintf.o) -_printf_i /home/janhenrik/programme/gcc-arm-none-eabi-7-2018-q2-update/bin/../lib/gcc/arm-none-eabi/7.3.1/../../../../arm-none-eabi/lib/thumb/v6-m/libc_nano.a(lib_a-nano-vfprintf_i.o) - /home/janhenrik/programme/gcc-arm-none-eabi-7-2018-q2-update/bin/../lib/gcc/arm-none-eabi/7.3.1/../../../../arm-none-eabi/lib/thumb/v6-m/libc_nano.a(lib_a-nano-svfprintf.o) -_realloc_r /home/janhenrik/programme/gcc-arm-none-eabi-7-2018-q2-update/bin/../lib/gcc/arm-none-eabi/7.3.1/../../../../arm-none-eabi/lib/thumb/v6-m/libc_nano.a(lib_a-nano-reallocr.o) - /home/janhenrik/programme/gcc-arm-none-eabi-7-2018-q2-update/bin/../lib/gcc/arm-none-eabi/7.3.1/../../../../arm-none-eabi/lib/thumb/v6-m/libc_nano.a(lib_a-nano-svfprintf.o) -_reclaim_reent /home/janhenrik/programme/gcc-arm-none-eabi-7-2018-q2-update/bin/../lib/gcc/arm-none-eabi/7.3.1/../../../../arm-none-eabi/lib/thumb/v6-m/libc_nano.a(lib_a-reent.o) -_sbrk /home/janhenrik/programme/gcc-arm-none-eabi-7-2018-q2-update/bin/../lib/gcc/arm-none-eabi/7.3.1/../../../../arm-none-eabi/lib/thumb/v6-m/libnosys.a(sbrk.o) - /home/janhenrik/programme/gcc-arm-none-eabi-7-2018-q2-update/bin/../lib/gcc/arm-none-eabi/7.3.1/../../../../arm-none-eabi/lib/thumb/v6-m/libc_nano.a(lib_a-sbrkr.o) -_sbrk_r /home/janhenrik/programme/gcc-arm-none-eabi-7-2018-q2-update/bin/../lib/gcc/arm-none-eabi/7.3.1/../../../../arm-none-eabi/lib/thumb/v6-m/libc_nano.a(lib_a-sbrkr.o) - /home/janhenrik/programme/gcc-arm-none-eabi-7-2018-q2-update/bin/../lib/gcc/arm-none-eabi/7.3.1/../../../../arm-none-eabi/lib/thumb/v6-m/libc_nano.a(lib_a-nano-mallocr.o) -_sbss build/startup_stm32f072xb.o -_sdata build/startup_stm32f072xb.o -_sidata build/startup_stm32f072xb.o -_siprintf_r /home/janhenrik/programme/gcc-arm-none-eabi-7-2018-q2-update/bin/../lib/gcc/arm-none-eabi/7.3.1/../../../../arm-none-eabi/lib/thumb/v6-m/libc_nano.a(lib_a-sprintf.o) -_sprintf_r /home/janhenrik/programme/gcc-arm-none-eabi-7-2018-q2-update/bin/../lib/gcc/arm-none-eabi/7.3.1/../../../../arm-none-eabi/lib/thumb/v6-m/libc_nano.a(lib_a-sprintf.o) -_start /home/janhenrik/programme/gcc-arm-none-eabi-7-2018-q2-update/bin/../lib/gcc/arm-none-eabi/7.3.1/../../../../arm-none-eabi/lib/thumb/v6-m/crt0.o -_svfiprintf_r /home/janhenrik/programme/gcc-arm-none-eabi-7-2018-q2-update/bin/../lib/gcc/arm-none-eabi/7.3.1/../../../../arm-none-eabi/lib/thumb/v6-m/libc_nano.a(lib_a-nano-svfprintf.o) -_svfprintf_r /home/janhenrik/programme/gcc-arm-none-eabi-7-2018-q2-update/bin/../lib/gcc/arm-none-eabi/7.3.1/../../../../arm-none-eabi/lib/thumb/v6-m/libc_nano.a(lib_a-nano-svfprintf.o) - /home/janhenrik/programme/gcc-arm-none-eabi-7-2018-q2-update/bin/../lib/gcc/arm-none-eabi/7.3.1/../../../../arm-none-eabi/lib/thumb/v6-m/libc_nano.a(lib_a-sprintf.o) -atexit /home/janhenrik/programme/gcc-arm-none-eabi-7-2018-q2-update/bin/../lib/gcc/arm-none-eabi/7.3.1/../../../../arm-none-eabi/lib/thumb/v6-m/crt0.o -cleanup_glue /home/janhenrik/programme/gcc-arm-none-eabi-7-2018-q2-update/bin/../lib/gcc/arm-none-eabi/7.3.1/../../../../arm-none-eabi/lib/thumb/v6-m/libc_nano.a(lib_a-reent.o) -clear_screen build/main.o -disp_init build/main.o -draw_char build/main.o -draw_string build/main.o -draw_v_line build/main.o -end /home/janhenrik/programme/gcc-arm-none-eabi-7-2018-q2-update/bin/../lib/gcc/arm-none-eabi/7.3.1/../../../../arm-none-eabi/lib/thumb/v6-m/libnosys.a(sbrk.o) -errno /home/janhenrik/programme/gcc-arm-none-eabi-7-2018-q2-update/bin/../lib/gcc/arm-none-eabi/7.3.1/../../../../arm-none-eabi/lib/thumb/v6-m/libc_nano.a(lib_a-reent.o) - /home/janhenrik/programme/gcc-arm-none-eabi-7-2018-q2-update/bin/../lib/gcc/arm-none-eabi/7.3.1/../../../../arm-none-eabi/lib/thumb/v6-m/libc_nano.a(lib_a-sbrkr.o) -exit /home/janhenrik/programme/gcc-arm-none-eabi-7-2018-q2-update/bin/../lib/gcc/arm-none-eabi/7.3.1/../../../../arm-none-eabi/lib/thumb/v6-m/libc_nano.a(lib_a-exit.o) - /home/janhenrik/programme/gcc-arm-none-eabi-7-2018-q2-update/bin/../lib/gcc/arm-none-eabi/7.3.1/../../../../arm-none-eabi/lib/thumb/v6-m/crt0.o -font build/main.o -g_pfnVectors build/startup_stm32f072xb.o -hadc build/main.o - build/stm32f0xx_it.o -hardware_init_hook /home/janhenrik/programme/gcc-arm-none-eabi-7-2018-q2-update/bin/../lib/gcc/arm-none-eabi/7.3.1/../../../../arm-none-eabi/lib/thumb/v6-m/crt0.o -hdma_adc build/main.o - build/stm32f0xx_hal_msp.o - build/stm32f0xx_it.o -hi2c1 build/main.o -hi2c2 build/main.o -hpcd_USB_FS build/main.o -htim1 build/main.o - build/stm32f0xx_it.o -main build/main.o - build/startup_stm32f072xb.o - /home/janhenrik/programme/gcc-arm-none-eabi-7-2018-q2-update/bin/../lib/gcc/arm-none-eabi/7.3.1/../../../../arm-none-eabi/lib/thumb/v6-m/crt0.o -memchr /home/janhenrik/programme/gcc-arm-none-eabi-7-2018-q2-update/bin/../lib/gcc/arm-none-eabi/7.3.1/../../../../arm-none-eabi/lib/thumb/v6-m/libc_nano.a(lib_a-memchr-stub.o) - /home/janhenrik/programme/gcc-arm-none-eabi-7-2018-q2-update/bin/../lib/gcc/arm-none-eabi/7.3.1/../../../../arm-none-eabi/lib/thumb/v6-m/libc_nano.a(lib_a-nano-vfprintf_i.o) - /home/janhenrik/programme/gcc-arm-none-eabi-7-2018-q2-update/bin/../lib/gcc/arm-none-eabi/7.3.1/../../../../arm-none-eabi/lib/thumb/v6-m/libc_nano.a(lib_a-nano-svfprintf.o) -memcpy /home/janhenrik/programme/gcc-arm-none-eabi-7-2018-q2-update/bin/../lib/gcc/arm-none-eabi/7.3.1/../../../../arm-none-eabi/lib/thumb/v6-m/libc_nano.a(lib_a-memcpy-stub.o) - /home/janhenrik/programme/gcc-arm-none-eabi-7-2018-q2-update/bin/../lib/gcc/arm-none-eabi/7.3.1/../../../../arm-none-eabi/lib/thumb/v6-m/libc_nano.a(lib_a-nano-reallocr.o) - /home/janhenrik/programme/gcc-arm-none-eabi-7-2018-q2-update/bin/../lib/gcc/arm-none-eabi/7.3.1/../../../../arm-none-eabi/lib/thumb/v6-m/libc_nano.a(lib_a-nano-svfprintf.o) - build/main.o -memmove /home/janhenrik/programme/gcc-arm-none-eabi-7-2018-q2-update/bin/../lib/gcc/arm-none-eabi/7.3.1/../../../../arm-none-eabi/lib/thumb/v6-m/libc_nano.a(lib_a-memmove.o) - /home/janhenrik/programme/gcc-arm-none-eabi-7-2018-q2-update/bin/../lib/gcc/arm-none-eabi/7.3.1/../../../../arm-none-eabi/lib/thumb/v6-m/libc_nano.a(lib_a-nano-svfprintf.o) -memset /home/janhenrik/programme/gcc-arm-none-eabi-7-2018-q2-update/bin/../lib/gcc/arm-none-eabi/7.3.1/../../../../arm-none-eabi/lib/thumb/v6-m/libc_nano.a(lib_a-memset.o) - build/stm32f0xx_hal_msp.o - build/main.o - /home/janhenrik/programme/gcc-arm-none-eabi-7-2018-q2-update/bin/../lib/gcc/arm-none-eabi/7.3.1/../../../../arm-none-eabi/lib/thumb/v6-m/crt0.o -pFlash build/stm32f0xx_hal_flash.o - build/stm32f0xx_hal_flash_ex.o -r build/main.o -refresh build/main.o -reg build/main.o - build/stm32f0xx_it.o -s build/main.o -screenBuffer build/main.o -set_screen build/main.o -siprintf /home/janhenrik/programme/gcc-arm-none-eabi-7-2018-q2-update/bin/../lib/gcc/arm-none-eabi/7.3.1/../../../../arm-none-eabi/lib/thumb/v6-m/libc_nano.a(lib_a-sprintf.o) -software_init_hook /home/janhenrik/programme/gcc-arm-none-eabi-7-2018-q2-update/bin/../lib/gcc/arm-none-eabi/7.3.1/../../../../arm-none-eabi/lib/thumb/v6-m/crt0.o -sprintf /home/janhenrik/programme/gcc-arm-none-eabi-7-2018-q2-update/bin/../lib/gcc/arm-none-eabi/7.3.1/../../../../arm-none-eabi/lib/thumb/v6-m/libc_nano.a(lib_a-sprintf.o) - build/main.o -tipcal build/main.o -uwTick build/stm32f0xx_hal.o -write_pixel build/main.o diff --git a/firmware/build/main.d b/firmware/build/main.d deleted file mode 100644 index fd764b6..0000000 --- a/firmware/build/main.d +++ /dev/null @@ -1,90 +0,0 @@ -build/main.o: Src/main.c Inc/main.h \ - Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal.h \ - Inc/stm32f0xx_hal_conf.h \ - Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_rcc.h \ - Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_def.h \ - Drivers/CMSIS/Device/ST/STM32F0xx/Include/stm32f0xx.h \ - Drivers/CMSIS/Device/ST/STM32F0xx/Include/stm32f072xb.h \ - Drivers/CMSIS/Include/core_cm0.h Drivers/CMSIS/Include/core_cmInstr.h \ - Drivers/CMSIS/Include/cmsis_gcc.h Drivers/CMSIS/Include/core_cmFunc.h \ - Drivers/CMSIS/Device/ST/STM32F0xx/Include/system_stm32f0xx.h \ - Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_rcc_ex.h \ - Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_gpio.h \ - Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_gpio_ex.h \ - Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_dma.h \ - Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_dma_ex.h \ - Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_cortex.h \ - Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_adc.h \ - Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_adc_ex.h \ - Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_flash.h \ - Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_flash_ex.h \ - Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_i2c.h \ - Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_i2c_ex.h \ - Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_pcd.h \ - Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_pcd_ex.h \ - Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_pwr.h \ - Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_pwr_ex.h \ - Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_tim.h \ - Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_tim_ex.h Inc/font.h - -Inc/main.h: - -Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal.h: - -Inc/stm32f0xx_hal_conf.h: - -Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_rcc.h: - -Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_def.h: - -Drivers/CMSIS/Device/ST/STM32F0xx/Include/stm32f0xx.h: - -Drivers/CMSIS/Device/ST/STM32F0xx/Include/stm32f072xb.h: - -Drivers/CMSIS/Include/core_cm0.h: - -Drivers/CMSIS/Include/core_cmInstr.h: - -Drivers/CMSIS/Include/cmsis_gcc.h: - -Drivers/CMSIS/Include/core_cmFunc.h: - -Drivers/CMSIS/Device/ST/STM32F0xx/Include/system_stm32f0xx.h: - -Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_rcc_ex.h: - -Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_gpio.h: - -Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_gpio_ex.h: - -Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_dma.h: - -Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_dma_ex.h: - -Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_cortex.h: - -Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_adc.h: - -Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_adc_ex.h: - -Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_flash.h: - -Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_flash_ex.h: - -Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_i2c.h: - -Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_i2c_ex.h: - -Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_pcd.h: - -Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_pcd_ex.h: - -Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_pwr.h: - -Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_pwr_ex.h: - -Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_tim.h: - -Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_tim_ex.h: - -Inc/font.h: diff --git a/firmware/build/main.lst b/firmware/build/main.lst deleted file mode 100644 index 379efbc..0000000 --- a/firmware/build/main.lst +++ /dev/null @@ -1,5440 +0,0 @@ -ARM GAS /tmp/cc9UFUWX.s page 1 - - - 1 .cpu cortex-m0 - 2 .eabi_attribute 20, 1 - 3 .eabi_attribute 21, 1 - 4 .eabi_attribute 23, 3 - 5 .eabi_attribute 24, 1 - 6 .eabi_attribute 25, 1 - 7 .eabi_attribute 26, 1 - 8 .eabi_attribute 30, 1 - 9 .eabi_attribute 34, 0 - 10 .eabi_attribute 18, 4 - 11 .file "main.c" - 12 .text - 13 .Ltext0: - 14 .cfi_sections .debug_frame - 15 .section .text.MX_GPIO_Init,"ax",%progbits - 16 .align 1 - 17 .syntax unified - 18 .code 16 - 19 .thumb_func - 20 .fpu softvfp - 22 MX_GPIO_Init: - 23 .LFB54: - 24 .file 1 "Src/main.c" - 1:Src/main.c **** - 2:Src/main.c **** /* - 3:Src/main.c **** * Otter-Iron - Stm32f072 based soldering iron. - 4:Src/main.c **** * Copyright (C) 2019 Jan Henrik Hemsing - 5:Src/main.c **** * - 6:Src/main.c **** * This program is free software: you can redistribute it and/or modify it - 7:Src/main.c **** * under the terms of the GNU General Public License as published by the Free - 8:Src/main.c **** * Software Foundation, either version 3 of the License, or (at your option) - 9:Src/main.c **** * any later version. - 10:Src/main.c **** * - 11:Src/main.c **** * This program is distributed in the hope that it will be useful, but WITHOUT - 12:Src/main.c **** * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or - 13:Src/main.c **** * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for - 14:Src/main.c **** * more details. - 15:Src/main.c **** * - 16:Src/main.c **** * You should have received a copy of the GNU General Public License along with - 17:Src/main.c **** * this program. If not, see . - 18:Src/main.c **** */ - 19:Src/main.c **** - 20:Src/main.c **** #include "main.h" - 21:Src/main.c **** #include "font.h" - 22:Src/main.c **** - 23:Src/main.c **** #define FILT(a, b, c) ((a) * (c) + (b) * ((1.0f) - (c))) - 24:Src/main.c **** #define CLAMP(x, low, high) (((x) > (high)) ? (high) : (((x) < (low)) ? (low) : (x))) - 25:Src/main.c **** - 26:Src/main.c **** #define TTIP_AVG_FILTER 0.9f - 27:Src/main.c **** #define MIN_DUTY 0 - 28:Src/main.c **** #define MAX_DUTY 4050 - 29:Src/main.c **** - 30:Src/main.c **** ADC_HandleTypeDef hadc; - 31:Src/main.c **** DMA_HandleTypeDef hdma_adc; - 32:Src/main.c **** - 33:Src/main.c **** I2C_HandleTypeDef hi2c1; - 34:Src/main.c **** I2C_HandleTypeDef hi2c2; - ARM GAS /tmp/cc9UFUWX.s page 2 - - - 35:Src/main.c **** - 36:Src/main.c **** TIM_HandleTypeDef htim1; - 37:Src/main.c **** - 38:Src/main.c **** PCD_HandleTypeDef hpcd_USB_FS; - 39:Src/main.c **** - 40:Src/main.c **** void SystemClock_Config(void); - 41:Src/main.c **** static void MX_GPIO_Init(void); - 42:Src/main.c **** static void MX_ADC_Init(void); - 43:Src/main.c **** static void MX_DMA_Init(void); - 44:Src/main.c **** static void MX_I2C1_Init(void); - 45:Src/main.c **** static void MX_I2C2_Init(void); - 46:Src/main.c **** static void MX_TIM1_Init(void); - 47:Src/main.c **** static void MX_USB_PCD_Init(void); - 48:Src/main.c **** - 49:Src/main.c **** void reg(void); - 50:Src/main.c **** void disp_init(void); - 51:Src/main.c **** void refresh(void); - 52:Src/main.c **** void clear_screen(void); - 53:Src/main.c **** void set_screen(void); - 54:Src/main.c **** void write_pixel(int16_t x, int16_t y, uint8_t color); - 55:Src/main.c **** void draw_char(unsigned char c, uint8_t x, uint8_t y, uint8_t brightness); - 56:Src/main.c **** void draw_string(const unsigned char * str, uint8_t x, uint8_t y, uint8_t brightness); - 57:Src/main.c **** void draw_v_line(int16_t x, int16_t y, uint16_t h, uint8_t color); - 58:Src/main.c **** - 59:Src/main.c **** struct status_t{ - 60:Src/main.c **** float ttip; - 61:Src/main.c **** float ttipavg; - 62:Src/main.c **** float uin; - 63:Src/main.c **** float iin; - 64:Src/main.c **** float tref; - 65:Src/main.c **** uint8_t writeFlash; - 66:Src/main.c **** uint8_t button[2]; - 67:Src/main.c **** }s = {.writeFlash = 0}; - 68:Src/main.c **** - 69:Src/main.c **** struct reg_t{ - 70:Src/main.c **** float target; - 71:Src/main.c **** float error; - 72:Src/main.c **** float errorprior; - 73:Src/main.c **** float ierror; - 74:Src/main.c **** float imax; - 75:Src/main.c **** float derror; - 76:Src/main.c **** int16_t duty; - 77:Src/main.c **** float cycletime; - 78:Src/main.c **** float Kp; - 79:Src/main.c **** float Ki; - 80:Src/main.c **** float Kd; - 81:Src/main.c **** float deadband; - 82:Src/main.c **** }r = {.Kp = 0.4f,.Ki = 0.05f,.Kd = 0.2f,.cycletime = 0.1f,.imax=200.0f,.target=220.0f,.deadband=12. - 83:Src/main.c **** - 84:Src/main.c **** struct tipcal_t{ - 85:Src/main.c **** float offset; - 86:Src/main.c **** float coefficient; - 87:Src/main.c **** } tipcal = {.offset = 120, .coefficient = 92}; - 88:Src/main.c **** - 89:Src/main.c **** static uint16_t ADC_raw[4]; - 90:Src/main.c **** - 91:Src/main.c **** int main(void) - ARM GAS /tmp/cc9UFUWX.s page 3 - - - 92:Src/main.c **** { - 93:Src/main.c **** - 94:Src/main.c **** HAL_Init(); - 95:Src/main.c **** - 96:Src/main.c **** SystemClock_Config(); - 97:Src/main.c **** - 98:Src/main.c **** MX_GPIO_Init(); - 99:Src/main.c **** MX_DMA_Init(); - 100:Src/main.c **** MX_ADC_Init(); - 101:Src/main.c **** MX_I2C1_Init(); - 102:Src/main.c **** MX_I2C2_Init(); - 103:Src/main.c **** MX_TIM1_Init(); - 104:Src/main.c **** MX_USB_PCD_Init(); - 105:Src/main.c **** - 106:Src/main.c **** HAL_TIM_PWM_Start(&htim1, TIM_CHANNEL_1); - 107:Src/main.c **** HAL_TIM_OC_Start(&htim1, TIM_CHANNEL_4); - 108:Src/main.c **** - 109:Src/main.c **** HAL_ADC_Start_DMA(&hadc, (uint32_t *)ADC_raw, 4); - 110:Src/main.c **** - 111:Src/main.c **** HAL_Delay(20); - 112:Src/main.c **** disp_init(); - 113:Src/main.c **** HAL_Delay(60); - 114:Src/main.c **** clear_screen(); - 115:Src/main.c **** // DFU bootloader - 116:Src/main.c **** if(HAL_GPIO_ReadPin(GPIOA,B1_Pin) && HAL_GPIO_ReadPin(GPIOA,B2_Pin)){ - 117:Src/main.c **** draw_string("dfudfudfudfudfu", 1, 1 ,1); - 118:Src/main.c **** draw_string("dfudfudfudfudfu", 1, 8 ,1); - 119:Src/main.c **** refresh(); - 120:Src/main.c **** HAL_Delay(40); - 121:Src/main.c **** *((unsigned long *)0x20003FF0) = 0xDEADBEEF; - 122:Src/main.c **** NVIC_SystemReset(); - 123:Src/main.c **** } else { - 124:Src/main.c **** draw_string("Otter-Iron", 15, 1 ,1); - 125:Src/main.c **** draw_string("by Jan Henrik", 10, 9 ,1); - 126:Src/main.c **** refresh(); - 127:Src/main.c **** } - 128:Src/main.c **** HAL_Delay(1000); - 129:Src/main.c **** - 130:Src/main.c **** r.target = *((uint16_t *) 0x0800e400); - 131:Src/main.c **** - 132:Src/main.c **** while (1) - 133:Src/main.c **** { - 134:Src/main.c **** HAL_Delay(50); - 135:Src/main.c **** - 136:Src/main.c **** //UI - 137:Src/main.c **** s.button[0] = HAL_GPIO_ReadPin(GPIOA,B1_Pin); - 138:Src/main.c **** s.button[1] = HAL_GPIO_ReadPin(GPIOA,B2_Pin); - 139:Src/main.c **** - 140:Src/main.c **** if(s.button[0] == 1){ - 141:Src/main.c **** r.target -= 5; - 142:Src/main.c **** s.writeFlash = 1; - 143:Src/main.c **** HAL_Delay(50); - 144:Src/main.c **** } - 145:Src/main.c **** - 146:Src/main.c **** if(s.button[1] == 1){ - 147:Src/main.c **** r.target += 5; - 148:Src/main.c **** s.writeFlash = 1; - ARM GAS /tmp/cc9UFUWX.s page 4 - - - 149:Src/main.c **** HAL_Delay(50); - 150:Src/main.c **** } - 151:Src/main.c **** - 152:Src/main.c **** r.target = CLAMP(r.target, 20, 400); - 153:Src/main.c **** - 154:Src/main.c **** if(s.writeFlash = 1){ - 155:Src/main.c **** HAL_FLASH_Unlock(); - 156:Src/main.c **** FLASH->CR |= FLASH_CR_PER; - 157:Src/main.c **** FLASH->AR = 0x0800e400; - 158:Src/main.c **** FLASH->CR |= FLASH_CR_STRT; - 159:Src/main.c **** while ((FLASH->SR & FLASH_SR_BSY) != 0){} - 160:Src/main.c **** if ((FLASH->SR & FLASH_SR_EOP) != 0){ - 161:Src/main.c **** FLASH->SR |= FLASH_SR_EOP; - 162:Src/main.c **** FLASH->CR &= ~FLASH_CR_PER; - 163:Src/main.c **** HAL_FLASH_Program(FLASH_TYPEPROGRAM_HALFWORD, 0x0800e400, (uint16_t)r.target); - 164:Src/main.c **** HAL_FLASH_Lock(); - 165:Src/main.c **** s.writeFlash = 0; - 166:Src/main.c **** } - 167:Src/main.c **** } - 168:Src/main.c **** - 169:Src/main.c **** //super shitty display code - 170:Src/main.c **** char str1[10] = " "; - 171:Src/main.c **** char str2[10] = " "; - 172:Src/main.c **** char str3[10] = " "; - 173:Src/main.c **** sprintf(str1, "%d C", (uint16_t)r.target); - 174:Src/main.c **** sprintf(str2, "%d.%d C", (uint16_t)s.ttipavg,(uint16_t)((s.ttipavg-(uint16_t)s.ttipavg)*10.0f)) - 175:Src/main.c **** sprintf(str3, "%d.%d V", (uint16_t)s.uin,(uint16_t)((s.uin-(uint16_t)s.uin)*10.0f)); - 176:Src/main.c **** - 177:Src/main.c **** clear_screen(); - 178:Src/main.c **** draw_string(str1, 10, 1 ,1); - 179:Src/main.c **** draw_string(str2, 10, 9 ,1); - 180:Src/main.c **** draw_string(str3, 60, 1 ,1); - 181:Src/main.c **** - 182:Src/main.c **** for(uint16_t i = 0; i <= CLAMP(r.error*3.0f,0,30); i++){ - 183:Src/main.c **** draw_v_line(60+i, 8, 8, 1); - 184:Src/main.c **** } - 185:Src/main.c **** - 186:Src/main.c **** refresh(); - 187:Src/main.c **** } - 188:Src/main.c **** } - 189:Src/main.c **** - 190:Src/main.c **** // Main PID+two-way controller and ADC readout - 191:Src/main.c **** void reg(void) { - 192:Src/main.c **** - 193:Src/main.c **** s.tref = ((((float)ADC_raw[3]/4095.0)*3.3)-0.5)/0.01; - 194:Src/main.c **** s.ttip = ((ADC_raw[1]-tipcal.offset)*tipcal.coefficient)/1000+s.tref; - 195:Src/main.c **** s.uin = ((ADC_raw[2]/4095.0)*3.3)*6.6; - 196:Src/main.c **** s.iin = ((ADC_raw[0]/4095.0)*3.3); - 197:Src/main.c **** - 198:Src/main.c **** s.ttipavg = FILT(s.ttipavg, s.ttip, TTIP_AVG_FILTER); - 199:Src/main.c **** - 200:Src/main.c **** // Check if within deadband, decide on two-way or PID control - 201:Src/main.c **** if(s.ttipavg >= r.target-r.deadband && s.ttipavg <= r.target+r.deadband){ - 202:Src/main.c **** r.error = r.target - s.ttipavg; - 203:Src/main.c **** r.ierror = r.ierror + (r.error*r.cycletime); - 204:Src/main.c **** r.ierror = CLAMP(r.ierror,-r.imax,r.imax); - 205:Src/main.c **** r.derror = (r.error - r.errorprior)/r.cycletime; - ARM GAS /tmp/cc9UFUWX.s page 5 - - - 206:Src/main.c **** r.duty = (r.Kp*r.error + r.Ki*r.ierror + r.Kd*r.derror)*MAX_DUTY; - 207:Src/main.c **** r.errorprior = r.error; - 208:Src/main.c **** } else { - 209:Src/main.c **** if(s.ttipavg <= r.target){ - 210:Src/main.c **** r.duty = MAX_DUTY; - 211:Src/main.c **** } else { - 212:Src/main.c **** r.duty = MIN_DUTY; - 213:Src/main.c **** } - 214:Src/main.c **** r.error = 12.0; - 215:Src/main.c **** } - 216:Src/main.c **** - 217:Src/main.c **** r.duty = CLAMP(r.duty, MIN_DUTY, MAX_DUTY); // Clamp to duty cycle - 218:Src/main.c **** - 219:Src/main.c **** __HAL_TIM_SET_COMPARE(&htim1, TIM_CHANNEL_1, r.duty); - 220:Src/main.c **** } - 221:Src/main.c **** - 222:Src/main.c **** // init code sequence by Ralim, thanks alot! - 223:Src/main.c **** #define DEVICEADDR_OLED (0x3c<<1) - 224:Src/main.c **** #define OLED_WIDTH 96 - 225:Src/main.c **** #define FRAMEBUFFER_START 17 - 226:Src/main.c **** uint8_t screenBuffer[16 + (OLED_WIDTH * 2) + 10]; // The data buffer - 227:Src/main.c **** const uint8_t REFRESH_COMMANDS[17] = { 0x80, 0xAF, 0x80, 0x21, 0x80, 0x20, 0x80, 0x7F, 0x80, 0xC0, - 228:Src/main.c **** uint8_t OLED_Setup_Array[] = { - 229:Src/main.c **** 0x80, 0xAE, /*Display off*/ - 230:Src/main.c **** 0x80, 0xD5, /*Set display clock divide ratio / osc freq*/ - 231:Src/main.c **** 0x80, 0x52, /*Divide ratios*/ - 232:Src/main.c **** 0x80, 0xA8, /*Set Multiplex Ratio*/ - 233:Src/main.c **** 0x80, 0x0F, /*16 == max brightness,39==dimmest*/ - 234:Src/main.c **** 0x80, 0xC0, /*Set COM Scan direction*/ - 235:Src/main.c **** 0x80, 0xD3, /*Set vertical Display offset*/ - 236:Src/main.c **** 0x80, 0x00, /*0 Offset*/ - 237:Src/main.c **** 0x80, 0x40, /*Set Display start line to 0*/ - 238:Src/main.c **** 0x80, 0xA0, /*Set Segment remap to normal*/ - 239:Src/main.c **** 0x80, 0x8D, /*Charge Pump*/ - 240:Src/main.c **** 0x80, 0x14, /*Charge Pump settings*/ - 241:Src/main.c **** 0x80, 0xDA, /*Set VCOM Pins hardware config*/ - 242:Src/main.c **** 0x80, 0x02, /*Combination 2*/ - 243:Src/main.c **** 0x80, 0x81, /*Contrast*/ - 244:Src/main.c **** 0x80, 0x33, /*^51*/ - 245:Src/main.c **** 0x80, 0xD9, /*Set pre-charge period*/ - 246:Src/main.c **** 0x80, 0xF1, /*Pre charge period*/ - 247:Src/main.c **** 0x80, 0xDB, /*Adjust VCOMH regulator ouput*/ - 248:Src/main.c **** 0x80, 0x30, /*VCOM level*/ - 249:Src/main.c **** 0x80, 0xA4, /*Enable the display GDDR*/ - 250:Src/main.c **** 0x80, 0XA6, /*Normal display*/ - 251:Src/main.c **** 0x80, 0x20, /*Memory Mode*/ - 252:Src/main.c **** 0x80, 0x00, /*Wrap memory*/ - 253:Src/main.c **** 0x80, 0xAF /*Display on*/ - 254:Src/main.c **** }; - 255:Src/main.c **** //not Ralim anymore - 256:Src/main.c **** void disp_init(void) { - 257:Src/main.c **** memcpy(&screenBuffer[0], &REFRESH_COMMANDS[0], sizeof(REFRESH_COMMANDS)); - 258:Src/main.c **** uint16_t _cnt = 0; - 259:Src/main.c **** while (HAL_I2C_GetState(&hi2c1) != HAL_I2C_STATE_READY) if (_cnt++ > 10000) break; - 260:Src/main.c **** HAL_I2C_Master_Transmit(&hi2c1,DEVICEADDR_OLED, &OLED_Setup_Array[0],sizeof(OLED_Setup_Array),100 - 261:Src/main.c **** } - 262:Src/main.c **** - ARM GAS /tmp/cc9UFUWX.s page 6 - - - 263:Src/main.c **** void refresh(void) { - 264:Src/main.c **** uint16_t _cnt = 0; - 265:Src/main.c **** while (HAL_I2C_GetState(&hi2c1) != HAL_I2C_STATE_READY) if (_cnt++ > 10000) break; - 266:Src/main.c **** HAL_I2C_Master_Transmit(&hi2c1,DEVICEADDR_OLED, screenBuffer,FRAMEBUFFER_START + (OLED_WIDTH * 2) - 267:Src/main.c **** } - 268:Src/main.c **** - 269:Src/main.c **** void clear_screen(void) { - 270:Src/main.c **** memset(&screenBuffer[FRAMEBUFFER_START], 0, OLED_WIDTH * 2); - 271:Src/main.c **** } - 272:Src/main.c **** void set_screen(void) { - 273:Src/main.c **** memset(&screenBuffer[FRAMEBUFFER_START], 255, OLED_WIDTH * 2); - 274:Src/main.c **** } - 275:Src/main.c **** - 276:Src/main.c **** void draw_v_line(int16_t x, int16_t y, uint16_t h, uint8_t color){ - 277:Src/main.c **** for(int i = 0; i <= h; i++){ - 278:Src/main.c **** write_pixel(x, y+i, color); - 279:Src/main.c **** } - 280:Src/main.c **** } - 281:Src/main.c **** - 282:Src/main.c **** void write_pixel(int16_t x, int16_t y, uint8_t color){ - 283:Src/main.c **** if(x>95 || y >15){ - 284:Src/main.c **** return; - 285:Src/main.c **** } - 286:Src/main.c **** if(color == 1){ - 287:Src/main.c **** screenBuffer[FRAMEBUFFER_START + (x + ((y/8)*96))] |= (1 << y % 8); - 288:Src/main.c **** } else if (color == 0){ - 289:Src/main.c **** screenBuffer[FRAMEBUFFER_START + (x + ((y/8)*96))] &= ~(1 << y % 8); - 290:Src/main.c **** } - 291:Src/main.c **** } - 292:Src/main.c **** - 293:Src/main.c **** #define CHAR_WIDTH 6 - 294:Src/main.c **** #define CHAR_HEIGHT 8 - 295:Src/main.c **** void draw_char(unsigned char c, uint8_t x, uint8_t y, uint8_t brightness) { - 296:Src/main.c **** c = c & 0x7F; - 297:Src/main.c **** if (c < ' ') { - 298:Src/main.c **** c = 0; - 299:Src/main.c **** } else { - 300:Src/main.c **** c -= ' '; - 301:Src/main.c **** } - 302:Src/main.c **** uint8_t * chr = font[c]; - 303:Src/main.c **** for (uint8_t j=0; j 10000) break; - 1038 .loc 1 258 0 - 1039 000e 0024 movs r4, #0 - 1040 .LVL76: - 1041 .L44: - 259:Src/main.c **** HAL_I2C_Master_Transmit(&hi2c1,DEVICEADDR_OLED, &OLED_Setup_Array[0],sizeof(OLED_Setup_Array),100 - 1042 .loc 1 259 0 discriminator 1 - 1043 0010 0D48 ldr r0, .L47+8 - 1044 0012 FFF7FEFF bl HAL_I2C_GetState - 1045 .LVL77: - 1046 0016 2028 cmp r0, #32 - 1047 0018 06D0 beq .L45 - 259:Src/main.c **** HAL_I2C_Master_Transmit(&hi2c1,DEVICEADDR_OLED, &OLED_Setup_Array[0],sizeof(OLED_Setup_Array),100 - 1048 .loc 1 259 0 is_stmt 0 discriminator 2 - 1049 001a 631C adds r3, r4, #1 - 1050 001c 9BB2 uxth r3, r3 - 1051 .LVL78: - 1052 001e 0B4A ldr r2, .L47+12 - 1053 0020 9442 cmp r4, r2 - 1054 0022 01D8 bhi .L45 - 259:Src/main.c **** HAL_I2C_Master_Transmit(&hi2c1,DEVICEADDR_OLED, &OLED_Setup_Array[0],sizeof(OLED_Setup_Array),100 - 1055 .loc 1 259 0 - 1056 0024 1C00 movs r4, r3 - 1057 0026 F3E7 b .L44 - 1058 .LVL79: - 1059 .L45: - 260:Src/main.c **** } - 1060 .loc 1 260 0 is_stmt 1 - 1061 0028 FA23 movs r3, #250 - 1062 002a 9B00 lsls r3, r3, #2 - 1063 002c 0093 str r3, [sp] - 1064 002e 3223 movs r3, #50 - 1065 0030 074A ldr r2, .L47+16 - 1066 0032 7821 movs r1, #120 - 1067 0034 0448 ldr r0, .L47+8 - 1068 0036 FFF7FEFF bl HAL_I2C_Master_Transmit - 1069 .LVL80: - 261:Src/main.c **** - 1070 .loc 1 261 0 - ARM GAS /tmp/cc9UFUWX.s page 32 - - - 1071 003a 02B0 add sp, sp, #8 - 1072 @ sp needed - 1073 003c 10BD pop {r4, pc} - 1074 .L48: - 1075 003e C046 .align 2 - 1076 .L47: - 1077 0040 00000000 .word .LANCHOR4 - 1078 0044 00000000 .word screenBuffer - 1079 0048 00000000 .word hi2c1 - 1080 004c 10270000 .word 10000 - 1081 0050 00000000 .word .LANCHOR5 - 1082 .cfi_endproc - 1083 .LFE39: - 1085 .section .text.refresh,"ax",%progbits - 1086 .align 1 - 1087 .global refresh - 1088 .syntax unified - 1089 .code 16 - 1090 .thumb_func - 1091 .fpu softvfp - 1093 refresh: - 1094 .LFB40: - 263:Src/main.c **** uint16_t _cnt = 0; - 1095 .loc 1 263 0 - 1096 .cfi_startproc - 1097 @ args = 0, pretend = 0, frame = 0 - 1098 @ frame_needed = 0, uses_anonymous_args = 0 - 1099 0000 10B5 push {r4, lr} - 1100 .LCFI16: - 1101 .cfi_def_cfa_offset 8 - 1102 .cfi_offset 4, -8 - 1103 .cfi_offset 14, -4 - 1104 0002 82B0 sub sp, sp, #8 - 1105 .LCFI17: - 1106 .cfi_def_cfa_offset 16 - 1107 .LVL81: - 264:Src/main.c **** while (HAL_I2C_GetState(&hi2c1) != HAL_I2C_STATE_READY) if (_cnt++ > 10000) break; - 1108 .loc 1 264 0 - 1109 0004 0024 movs r4, #0 - 1110 .LVL82: - 1111 .L50: - 265:Src/main.c **** HAL_I2C_Master_Transmit(&hi2c1,DEVICEADDR_OLED, screenBuffer,FRAMEBUFFER_START + (OLED_WIDTH * 2) - 1112 .loc 1 265 0 discriminator 1 - 1113 0006 0B48 ldr r0, .L53 - 1114 0008 FFF7FEFF bl HAL_I2C_GetState - 1115 .LVL83: - 1116 000c 2028 cmp r0, #32 - 1117 000e 06D0 beq .L51 - 265:Src/main.c **** HAL_I2C_Master_Transmit(&hi2c1,DEVICEADDR_OLED, screenBuffer,FRAMEBUFFER_START + (OLED_WIDTH * 2) - 1118 .loc 1 265 0 is_stmt 0 discriminator 2 - 1119 0010 631C adds r3, r4, #1 - 1120 0012 9BB2 uxth r3, r3 - 1121 .LVL84: - 1122 0014 084A ldr r2, .L53+4 - 1123 0016 9442 cmp r4, r2 - 1124 0018 01D8 bhi .L51 - 265:Src/main.c **** HAL_I2C_Master_Transmit(&hi2c1,DEVICEADDR_OLED, screenBuffer,FRAMEBUFFER_START + (OLED_WIDTH * 2) - ARM GAS /tmp/cc9UFUWX.s page 33 - - - 1125 .loc 1 265 0 - 1126 001a 1C00 movs r4, r3 - 1127 001c F3E7 b .L50 - 1128 .LVL85: - 1129 .L51: - 266:Src/main.c **** } - 1130 .loc 1 266 0 is_stmt 1 - 1131 001e FA23 movs r3, #250 - 1132 0020 9B00 lsls r3, r3, #2 - 1133 0022 0093 str r3, [sp] - 1134 0024 D123 movs r3, #209 - 1135 0026 054A ldr r2, .L53+8 - 1136 0028 7821 movs r1, #120 - 1137 002a 0248 ldr r0, .L53 - 1138 002c FFF7FEFF bl HAL_I2C_Master_Transmit - 1139 .LVL86: - 267:Src/main.c **** - 1140 .loc 1 267 0 - 1141 0030 02B0 add sp, sp, #8 - 1142 @ sp needed - 1143 0032 10BD pop {r4, pc} - 1144 .L54: - 1145 .align 2 - 1146 .L53: - 1147 0034 00000000 .word hi2c1 - 1148 0038 10270000 .word 10000 - 1149 003c 00000000 .word screenBuffer - 1150 .cfi_endproc - 1151 .LFE40: - 1153 .section .text.clear_screen,"ax",%progbits - 1154 .align 1 - 1155 .global clear_screen - 1156 .syntax unified - 1157 .code 16 - 1158 .thumb_func - 1159 .fpu softvfp - 1161 clear_screen: - 1162 .LFB41: - 269:Src/main.c **** memset(&screenBuffer[FRAMEBUFFER_START], 0, OLED_WIDTH * 2); - 1163 .loc 1 269 0 - 1164 .cfi_startproc - 1165 @ args = 0, pretend = 0, frame = 0 - 1166 @ frame_needed = 0, uses_anonymous_args = 0 - 1167 0000 10B5 push {r4, lr} - 1168 .LCFI18: - 1169 .cfi_def_cfa_offset 8 - 1170 .cfi_offset 4, -8 - 1171 .cfi_offset 14, -4 - 270:Src/main.c **** } - 1172 .loc 1 270 0 - 1173 0002 C022 movs r2, #192 - 1174 0004 0021 movs r1, #0 - 1175 0006 0248 ldr r0, .L56 - 1176 0008 FFF7FEFF bl memset - 1177 .LVL87: - 271:Src/main.c **** void set_screen(void) { - 1178 .loc 1 271 0 - ARM GAS /tmp/cc9UFUWX.s page 34 - - - 1179 @ sp needed - 1180 000c 10BD pop {r4, pc} - 1181 .L57: - 1182 000e C046 .align 2 - 1183 .L56: - 1184 0010 11000000 .word screenBuffer+17 - 1185 .cfi_endproc - 1186 .LFE41: - 1188 .section .text.set_screen,"ax",%progbits - 1189 .align 1 - 1190 .global set_screen - 1191 .syntax unified - 1192 .code 16 - 1193 .thumb_func - 1194 .fpu softvfp - 1196 set_screen: - 1197 .LFB42: - 272:Src/main.c **** memset(&screenBuffer[FRAMEBUFFER_START], 255, OLED_WIDTH * 2); - 1198 .loc 1 272 0 - 1199 .cfi_startproc - 1200 @ args = 0, pretend = 0, frame = 0 - 1201 @ frame_needed = 0, uses_anonymous_args = 0 - 1202 0000 10B5 push {r4, lr} - 1203 .LCFI19: - 1204 .cfi_def_cfa_offset 8 - 1205 .cfi_offset 4, -8 - 1206 .cfi_offset 14, -4 - 273:Src/main.c **** } - 1207 .loc 1 273 0 - 1208 0002 C022 movs r2, #192 - 1209 0004 FF21 movs r1, #255 - 1210 0006 0248 ldr r0, .L59 - 1211 0008 FFF7FEFF bl memset - 1212 .LVL88: - 274:Src/main.c **** - 1213 .loc 1 274 0 - 1214 @ sp needed - 1215 000c 10BD pop {r4, pc} - 1216 .L60: - 1217 000e C046 .align 2 - 1218 .L59: - 1219 0010 11000000 .word screenBuffer+17 - 1220 .cfi_endproc - 1221 .LFE42: - 1223 .section .text.write_pixel,"ax",%progbits - 1224 .align 1 - 1225 .global write_pixel - 1226 .syntax unified - 1227 .code 16 - 1228 .thumb_func - 1229 .fpu softvfp - 1231 write_pixel: - 1232 .LFB44: - 282:Src/main.c **** if(x>95 || y >15){ - 1233 .loc 1 282 0 - 1234 .cfi_startproc - 1235 @ args = 0, pretend = 0, frame = 0 - ARM GAS /tmp/cc9UFUWX.s page 35 - - - 1236 @ frame_needed = 0, uses_anonymous_args = 0 - 1237 .LVL89: - 1238 0000 30B5 push {r4, r5, lr} - 1239 .LCFI20: - 1240 .cfi_def_cfa_offset 12 - 1241 .cfi_offset 4, -12 - 1242 .cfi_offset 5, -8 - 1243 .cfi_offset 14, -4 - 283:Src/main.c **** return; - 1244 .loc 1 283 0 - 1245 0002 5F28 cmp r0, #95 - 1246 0004 1BDC bgt .L61 - 283:Src/main.c **** return; - 1247 .loc 1 283 0 is_stmt 0 discriminator 1 - 1248 0006 0F29 cmp r1, #15 - 1249 0008 19DC bgt .L61 - 286:Src/main.c **** screenBuffer[FRAMEBUFFER_START + (x + ((y/8)*96))] |= (1 << y % 8); - 1250 .loc 1 286 0 is_stmt 1 - 1251 000a 012A cmp r2, #1 - 1252 000c 18D0 beq .L64 - 288:Src/main.c **** screenBuffer[FRAMEBUFFER_START + (x + ((y/8)*96))] &= ~(1 << y % 8); - 1253 .loc 1 288 0 - 1254 000e 002A cmp r2, #0 - 1255 0010 15D1 bne .L61 - 289:Src/main.c **** } - 1256 .loc 1 289 0 - 1257 0012 CC17 asrs r4, r1, #31 - 1258 0014 0723 movs r3, #7 - 1259 0016 1A00 movs r2, r3 - 1260 .LVL90: - 1261 0018 2240 ands r2, r4 - 1262 001a 5218 adds r2, r2, r1 - 1263 001c D210 asrs r2, r2, #3 - 1264 001e 5500 lsls r5, r2, #1 - 1265 0020 AA18 adds r2, r5, r2 - 1266 0022 5501 lsls r5, r2, #5 - 1267 0024 2818 adds r0, r5, r0 - 1268 .LVL91: - 1269 0026 1130 adds r0, r0, #17 - 1270 0028 640F lsrs r4, r4, #29 - 1271 002a 0919 adds r1, r1, r4 - 1272 .LVL92: - 1273 002c 1940 ands r1, r3 - 1274 002e 091B subs r1, r1, r4 - 1275 0030 09B2 sxth r1, r1 - 1276 0032 0122 movs r2, #1 - 1277 0034 8A40 lsls r2, r2, r1 - 1278 0036 0E49 ldr r1, .L65 - 1279 0038 0B5C ldrb r3, [r1, r0] - 1280 003a 9343 bics r3, r2 - 1281 003c 0B54 strb r3, [r1, r0] - 1282 .L61: - 291:Src/main.c **** - 1283 .loc 1 291 0 - 1284 @ sp needed - 1285 003e 30BD pop {r4, r5, pc} - 1286 .LVL93: - ARM GAS /tmp/cc9UFUWX.s page 36 - - - 1287 .L64: - 287:Src/main.c **** } else if (color == 0){ - 1288 .loc 1 287 0 - 1289 0040 CC17 asrs r4, r1, #31 - 1290 0042 0723 movs r3, #7 - 1291 0044 1A00 movs r2, r3 - 1292 .LVL94: - 1293 0046 2240 ands r2, r4 - 1294 0048 5218 adds r2, r2, r1 - 1295 004a D210 asrs r2, r2, #3 - 1296 004c 5500 lsls r5, r2, #1 - 1297 004e AA18 adds r2, r5, r2 - 1298 0050 5501 lsls r5, r2, #5 - 1299 0052 2818 adds r0, r5, r0 - 1300 .LVL95: - 1301 0054 1130 adds r0, r0, #17 - 1302 0056 640F lsrs r4, r4, #29 - 1303 0058 0919 adds r1, r1, r4 - 1304 .LVL96: - 1305 005a 0B40 ands r3, r1 - 1306 005c 1B1B subs r3, r3, r4 - 1307 005e 1BB2 sxth r3, r3 - 1308 0060 0122 movs r2, #1 - 1309 0062 9A40 lsls r2, r2, r3 - 1310 0064 0249 ldr r1, .L65 - 1311 0066 0B5C ldrb r3, [r1, r0] - 1312 0068 1343 orrs r3, r2 - 1313 006a 0B54 strb r3, [r1, r0] - 1314 006c E7E7 b .L61 - 1315 .L66: - 1316 006e C046 .align 2 - 1317 .L65: - 1318 0070 00000000 .word screenBuffer - 1319 .cfi_endproc - 1320 .LFE44: - 1322 .section .text.draw_v_line,"ax",%progbits - 1323 .align 1 - 1324 .global draw_v_line - 1325 .syntax unified - 1326 .code 16 - 1327 .thumb_func - 1328 .fpu softvfp - 1330 draw_v_line: - 1331 .LFB43: - 276:Src/main.c **** for(int i = 0; i <= h; i++){ - 1332 .loc 1 276 0 - 1333 .cfi_startproc - 1334 @ args = 0, pretend = 0, frame = 8 - 1335 @ frame_needed = 0, uses_anonymous_args = 0 - 1336 .LVL97: - 1337 0000 F0B5 push {r4, r5, r6, r7, lr} - 1338 .LCFI21: - 1339 .cfi_def_cfa_offset 20 - 1340 .cfi_offset 4, -20 - 1341 .cfi_offset 5, -16 - 1342 .cfi_offset 6, -12 - 1343 .cfi_offset 7, -8 - ARM GAS /tmp/cc9UFUWX.s page 37 - - - 1344 .cfi_offset 14, -4 - 1345 0002 83B0 sub sp, sp, #12 - 1346 .LCFI22: - 1347 .cfi_def_cfa_offset 32 - 1348 0004 0600 movs r6, r0 - 1349 0006 0D00 movs r5, r1 - 1350 0008 1700 movs r7, r2 - 1351 000a 0193 str r3, [sp, #4] - 1352 .LVL98: - 1353 .LBB14: - 277:Src/main.c **** write_pixel(x, y+i, color); - 1354 .loc 1 277 0 - 1355 000c 0024 movs r4, #0 - 1356 000e 06E0 b .L68 - 1357 .LVL99: - 1358 .L69: - 278:Src/main.c **** } - 1359 .loc 1 278 0 discriminator 3 - 1360 0010 6119 adds r1, r4, r5 - 1361 0012 09B2 sxth r1, r1 - 1362 0014 019A ldr r2, [sp, #4] - 1363 0016 3000 movs r0, r6 - 1364 0018 FFF7FEFF bl write_pixel - 1365 .LVL100: - 277:Src/main.c **** write_pixel(x, y+i, color); - 1366 .loc 1 277 0 discriminator 3 - 1367 001c 0134 adds r4, r4, #1 - 1368 .LVL101: - 1369 .L68: - 277:Src/main.c **** write_pixel(x, y+i, color); - 1370 .loc 1 277 0 is_stmt 0 discriminator 1 - 1371 001e A742 cmp r7, r4 - 1372 0020 F6DA bge .L69 - 1373 .LBE14: - 280:Src/main.c **** - 1374 .loc 1 280 0 is_stmt 1 - 1375 0022 03B0 add sp, sp, #12 - 1376 @ sp needed - 1377 .LVL102: - 1378 0024 F0BD pop {r4, r5, r6, r7, pc} - 1379 .cfi_endproc - 1380 .LFE43: - 1382 .section .text.draw_char,"ax",%progbits - 1383 .align 1 - 1384 .global draw_char - 1385 .syntax unified - 1386 .code 16 - 1387 .thumb_func - 1388 .fpu softvfp - 1390 draw_char: - 1391 .LFB45: - 295:Src/main.c **** c = c & 0x7F; - 1392 .loc 1 295 0 - 1393 .cfi_startproc - 1394 @ args = 0, pretend = 0, frame = 0 - 1395 @ frame_needed = 0, uses_anonymous_args = 0 - 1396 .LVL103: - ARM GAS /tmp/cc9UFUWX.s page 38 - - - 1397 0000 F0B5 push {r4, r5, r6, r7, lr} - 1398 .LCFI23: - 1399 .cfi_def_cfa_offset 20 - 1400 .cfi_offset 4, -20 - 1401 .cfi_offset 5, -16 - 1402 .cfi_offset 6, -12 - 1403 .cfi_offset 7, -8 - 1404 .cfi_offset 14, -4 - 1405 0002 C646 mov lr, r8 - 1406 0004 00B5 push {lr} - 1407 .LCFI24: - 1408 .cfi_def_cfa_offset 24 - 1409 .cfi_offset 8, -24 - 1410 0006 0F00 movs r7, r1 - 1411 0008 9046 mov r8, r2 - 296:Src/main.c **** if (c < ' ') { - 1412 .loc 1 296 0 - 1413 000a 7F23 movs r3, #127 - 1414 .LVL104: - 1415 000c 0340 ands r3, r0 - 1416 .LVL105: - 297:Src/main.c **** c = 0; - 1417 .loc 1 297 0 - 1418 000e 1F2B cmp r3, #31 - 1419 0010 08D9 bls .L77 - 300:Src/main.c **** } - 1420 .loc 1 300 0 - 1421 0012 203B subs r3, r3, #32 - 1422 .LVL106: - 1423 0014 DBB2 uxtb r3, r3 - 1424 .LVL107: - 1425 .L71: - 302:Src/main.c **** for (uint8_t j=0; j= 0x03U) - 220:Drivers/CMSIS/Include/cmsis_gcc.h **** - 221:Drivers/CMSIS/Include/cmsis_gcc.h **** /** - 222:Drivers/CMSIS/Include/cmsis_gcc.h **** \brief Enable FIQ - 223:Drivers/CMSIS/Include/cmsis_gcc.h **** \details Enables FIQ interrupts by clearing the F-bit in the CPSR. - 224:Drivers/CMSIS/Include/cmsis_gcc.h **** Can only be executed in Privileged modes. - 225:Drivers/CMSIS/Include/cmsis_gcc.h **** */ - 226:Drivers/CMSIS/Include/cmsis_gcc.h **** __attribute__( ( always_inline ) ) __STATIC_INLINE void __enable_fault_irq(void) - 227:Drivers/CMSIS/Include/cmsis_gcc.h **** { - 228:Drivers/CMSIS/Include/cmsis_gcc.h **** __ASM volatile ("cpsie f" : : : "memory"); - 229:Drivers/CMSIS/Include/cmsis_gcc.h **** } - 230:Drivers/CMSIS/Include/cmsis_gcc.h **** - 231:Drivers/CMSIS/Include/cmsis_gcc.h **** - 232:Drivers/CMSIS/Include/cmsis_gcc.h **** /** - 233:Drivers/CMSIS/Include/cmsis_gcc.h **** \brief Disable FIQ - 234:Drivers/CMSIS/Include/cmsis_gcc.h **** \details Disables FIQ interrupts by setting the F-bit in the CPSR. - 235:Drivers/CMSIS/Include/cmsis_gcc.h **** Can only be executed in Privileged modes. - 236:Drivers/CMSIS/Include/cmsis_gcc.h **** */ - 237:Drivers/CMSIS/Include/cmsis_gcc.h **** __attribute__( ( always_inline ) ) __STATIC_INLINE void __disable_fault_irq(void) - 238:Drivers/CMSIS/Include/cmsis_gcc.h **** { - 239:Drivers/CMSIS/Include/cmsis_gcc.h **** __ASM volatile ("cpsid f" : : : "memory"); - 240:Drivers/CMSIS/Include/cmsis_gcc.h **** } - 241:Drivers/CMSIS/Include/cmsis_gcc.h **** - 242:Drivers/CMSIS/Include/cmsis_gcc.h **** - 243:Drivers/CMSIS/Include/cmsis_gcc.h **** /** - 244:Drivers/CMSIS/Include/cmsis_gcc.h **** \brief Get Base Priority - 245:Drivers/CMSIS/Include/cmsis_gcc.h **** \details Returns the current value of the Base Priority register. - 246:Drivers/CMSIS/Include/cmsis_gcc.h **** \return Base Priority register value - 247:Drivers/CMSIS/Include/cmsis_gcc.h **** */ - 248:Drivers/CMSIS/Include/cmsis_gcc.h **** __attribute__( ( always_inline ) ) __STATIC_INLINE uint32_t __get_BASEPRI(void) - 249:Drivers/CMSIS/Include/cmsis_gcc.h **** { - 250:Drivers/CMSIS/Include/cmsis_gcc.h **** uint32_t result; - 251:Drivers/CMSIS/Include/cmsis_gcc.h **** - 252:Drivers/CMSIS/Include/cmsis_gcc.h **** __ASM volatile ("MRS %0, basepri" : "=r" (result) ); - 253:Drivers/CMSIS/Include/cmsis_gcc.h **** return(result); - 254:Drivers/CMSIS/Include/cmsis_gcc.h **** } - 255:Drivers/CMSIS/Include/cmsis_gcc.h **** - 256:Drivers/CMSIS/Include/cmsis_gcc.h **** - 257:Drivers/CMSIS/Include/cmsis_gcc.h **** /** - 258:Drivers/CMSIS/Include/cmsis_gcc.h **** \brief Set Base Priority - 259:Drivers/CMSIS/Include/cmsis_gcc.h **** \details Assigns the given value to the Base Priority register. - 260:Drivers/CMSIS/Include/cmsis_gcc.h **** \param [in] basePri Base Priority value to set - 261:Drivers/CMSIS/Include/cmsis_gcc.h **** */ - 262:Drivers/CMSIS/Include/cmsis_gcc.h **** __attribute__( ( always_inline ) ) __STATIC_INLINE void __set_BASEPRI(uint32_t value) - 263:Drivers/CMSIS/Include/cmsis_gcc.h **** { - 264:Drivers/CMSIS/Include/cmsis_gcc.h **** __ASM volatile ("MSR basepri, %0" : : "r" (value) : "memory"); - 265:Drivers/CMSIS/Include/cmsis_gcc.h **** } - 266:Drivers/CMSIS/Include/cmsis_gcc.h **** - 267:Drivers/CMSIS/Include/cmsis_gcc.h **** - 268:Drivers/CMSIS/Include/cmsis_gcc.h **** /** - 269:Drivers/CMSIS/Include/cmsis_gcc.h **** \brief Set Base Priority with condition - ARM GAS /tmp/cc9UFUWX.s page 51 - - - 270:Drivers/CMSIS/Include/cmsis_gcc.h **** \details Assigns the given value to the Base Priority register only if BASEPRI masking is disable - 271:Drivers/CMSIS/Include/cmsis_gcc.h **** or the new value increases the BASEPRI priority level. - 272:Drivers/CMSIS/Include/cmsis_gcc.h **** \param [in] basePri Base Priority value to set - 273:Drivers/CMSIS/Include/cmsis_gcc.h **** */ - 274:Drivers/CMSIS/Include/cmsis_gcc.h **** __attribute__( ( always_inline ) ) __STATIC_INLINE void __set_BASEPRI_MAX(uint32_t value) - 275:Drivers/CMSIS/Include/cmsis_gcc.h **** { - 276:Drivers/CMSIS/Include/cmsis_gcc.h **** __ASM volatile ("MSR basepri_max, %0" : : "r" (value) : "memory"); - 277:Drivers/CMSIS/Include/cmsis_gcc.h **** } - 278:Drivers/CMSIS/Include/cmsis_gcc.h **** - 279:Drivers/CMSIS/Include/cmsis_gcc.h **** - 280:Drivers/CMSIS/Include/cmsis_gcc.h **** /** - 281:Drivers/CMSIS/Include/cmsis_gcc.h **** \brief Get Fault Mask - 282:Drivers/CMSIS/Include/cmsis_gcc.h **** \details Returns the current value of the Fault Mask register. - 283:Drivers/CMSIS/Include/cmsis_gcc.h **** \return Fault Mask register value - 284:Drivers/CMSIS/Include/cmsis_gcc.h **** */ - 285:Drivers/CMSIS/Include/cmsis_gcc.h **** __attribute__( ( always_inline ) ) __STATIC_INLINE uint32_t __get_FAULTMASK(void) - 286:Drivers/CMSIS/Include/cmsis_gcc.h **** { - 287:Drivers/CMSIS/Include/cmsis_gcc.h **** uint32_t result; - 288:Drivers/CMSIS/Include/cmsis_gcc.h **** - 289:Drivers/CMSIS/Include/cmsis_gcc.h **** __ASM volatile ("MRS %0, faultmask" : "=r" (result) ); - 290:Drivers/CMSIS/Include/cmsis_gcc.h **** return(result); - 291:Drivers/CMSIS/Include/cmsis_gcc.h **** } - 292:Drivers/CMSIS/Include/cmsis_gcc.h **** - 293:Drivers/CMSIS/Include/cmsis_gcc.h **** - 294:Drivers/CMSIS/Include/cmsis_gcc.h **** /** - 295:Drivers/CMSIS/Include/cmsis_gcc.h **** \brief Set Fault Mask - 296:Drivers/CMSIS/Include/cmsis_gcc.h **** \details Assigns the given value to the Fault Mask register. - 297:Drivers/CMSIS/Include/cmsis_gcc.h **** \param [in] faultMask Fault Mask value to set - 298:Drivers/CMSIS/Include/cmsis_gcc.h **** */ - 299:Drivers/CMSIS/Include/cmsis_gcc.h **** __attribute__( ( always_inline ) ) __STATIC_INLINE void __set_FAULTMASK(uint32_t faultMask) - 300:Drivers/CMSIS/Include/cmsis_gcc.h **** { - 301:Drivers/CMSIS/Include/cmsis_gcc.h **** __ASM volatile ("MSR faultmask, %0" : : "r" (faultMask) : "memory"); - 302:Drivers/CMSIS/Include/cmsis_gcc.h **** } - 303:Drivers/CMSIS/Include/cmsis_gcc.h **** - 304:Drivers/CMSIS/Include/cmsis_gcc.h **** #endif /* (__CORTEX_M >= 0x03U) */ - 305:Drivers/CMSIS/Include/cmsis_gcc.h **** - 306:Drivers/CMSIS/Include/cmsis_gcc.h **** - 307:Drivers/CMSIS/Include/cmsis_gcc.h **** #if (__CORTEX_M == 0x04U) || (__CORTEX_M == 0x07U) - 308:Drivers/CMSIS/Include/cmsis_gcc.h **** - 309:Drivers/CMSIS/Include/cmsis_gcc.h **** /** - 310:Drivers/CMSIS/Include/cmsis_gcc.h **** \brief Get FPSCR - 311:Drivers/CMSIS/Include/cmsis_gcc.h **** \details Returns the current value of the Floating Point Status/Control register. - 312:Drivers/CMSIS/Include/cmsis_gcc.h **** \return Floating Point Status/Control register value - 313:Drivers/CMSIS/Include/cmsis_gcc.h **** */ - 314:Drivers/CMSIS/Include/cmsis_gcc.h **** __attribute__( ( always_inline ) ) __STATIC_INLINE uint32_t __get_FPSCR(void) - 315:Drivers/CMSIS/Include/cmsis_gcc.h **** { - 316:Drivers/CMSIS/Include/cmsis_gcc.h **** #if (__FPU_PRESENT == 1U) && (__FPU_USED == 1U) - 317:Drivers/CMSIS/Include/cmsis_gcc.h **** uint32_t result; - 318:Drivers/CMSIS/Include/cmsis_gcc.h **** - 319:Drivers/CMSIS/Include/cmsis_gcc.h **** /* Empty asm statement works as a scheduling barrier */ - 320:Drivers/CMSIS/Include/cmsis_gcc.h **** __ASM volatile (""); - 321:Drivers/CMSIS/Include/cmsis_gcc.h **** __ASM volatile ("VMRS %0, fpscr" : "=r" (result) ); - 322:Drivers/CMSIS/Include/cmsis_gcc.h **** __ASM volatile (""); - 323:Drivers/CMSIS/Include/cmsis_gcc.h **** return(result); - 324:Drivers/CMSIS/Include/cmsis_gcc.h **** #else - 325:Drivers/CMSIS/Include/cmsis_gcc.h **** return(0); - 326:Drivers/CMSIS/Include/cmsis_gcc.h **** #endif - ARM GAS /tmp/cc9UFUWX.s page 52 - - - 327:Drivers/CMSIS/Include/cmsis_gcc.h **** } - 328:Drivers/CMSIS/Include/cmsis_gcc.h **** - 329:Drivers/CMSIS/Include/cmsis_gcc.h **** - 330:Drivers/CMSIS/Include/cmsis_gcc.h **** /** - 331:Drivers/CMSIS/Include/cmsis_gcc.h **** \brief Set FPSCR - 332:Drivers/CMSIS/Include/cmsis_gcc.h **** \details Assigns the given value to the Floating Point Status/Control register. - 333:Drivers/CMSIS/Include/cmsis_gcc.h **** \param [in] fpscr Floating Point Status/Control value to set - 334:Drivers/CMSIS/Include/cmsis_gcc.h **** */ - 335:Drivers/CMSIS/Include/cmsis_gcc.h **** __attribute__( ( always_inline ) ) __STATIC_INLINE void __set_FPSCR(uint32_t fpscr) - 336:Drivers/CMSIS/Include/cmsis_gcc.h **** { - 337:Drivers/CMSIS/Include/cmsis_gcc.h **** #if (__FPU_PRESENT == 1U) && (__FPU_USED == 1U) - 338:Drivers/CMSIS/Include/cmsis_gcc.h **** /* Empty asm statement works as a scheduling barrier */ - 339:Drivers/CMSIS/Include/cmsis_gcc.h **** __ASM volatile (""); - 340:Drivers/CMSIS/Include/cmsis_gcc.h **** __ASM volatile ("VMSR fpscr, %0" : : "r" (fpscr) : "vfpcc"); - 341:Drivers/CMSIS/Include/cmsis_gcc.h **** __ASM volatile (""); - 342:Drivers/CMSIS/Include/cmsis_gcc.h **** #endif - 343:Drivers/CMSIS/Include/cmsis_gcc.h **** } - 344:Drivers/CMSIS/Include/cmsis_gcc.h **** - 345:Drivers/CMSIS/Include/cmsis_gcc.h **** #endif /* (__CORTEX_M == 0x04U) || (__CORTEX_M == 0x07U) */ - 346:Drivers/CMSIS/Include/cmsis_gcc.h **** - 347:Drivers/CMSIS/Include/cmsis_gcc.h **** - 348:Drivers/CMSIS/Include/cmsis_gcc.h **** - 349:Drivers/CMSIS/Include/cmsis_gcc.h **** /*@} end of CMSIS_Core_RegAccFunctions */ - 350:Drivers/CMSIS/Include/cmsis_gcc.h **** - 351:Drivers/CMSIS/Include/cmsis_gcc.h **** - 352:Drivers/CMSIS/Include/cmsis_gcc.h **** /* ########################## Core Instruction Access ######################### */ - 353:Drivers/CMSIS/Include/cmsis_gcc.h **** /** \defgroup CMSIS_Core_InstructionInterface CMSIS Core Instruction Interface - 354:Drivers/CMSIS/Include/cmsis_gcc.h **** Access to dedicated instructions - 355:Drivers/CMSIS/Include/cmsis_gcc.h **** @{ - 356:Drivers/CMSIS/Include/cmsis_gcc.h **** */ - 357:Drivers/CMSIS/Include/cmsis_gcc.h **** - 358:Drivers/CMSIS/Include/cmsis_gcc.h **** /* Define macros for porting to both thumb1 and thumb2. - 359:Drivers/CMSIS/Include/cmsis_gcc.h **** * For thumb1, use low register (r0-r7), specified by constraint "l" - 360:Drivers/CMSIS/Include/cmsis_gcc.h **** * Otherwise, use general registers, specified by constraint "r" */ - 361:Drivers/CMSIS/Include/cmsis_gcc.h **** #if defined (__thumb__) && !defined (__thumb2__) - 362:Drivers/CMSIS/Include/cmsis_gcc.h **** #define __CMSIS_GCC_OUT_REG(r) "=l" (r) - 363:Drivers/CMSIS/Include/cmsis_gcc.h **** #define __CMSIS_GCC_USE_REG(r) "l" (r) - 364:Drivers/CMSIS/Include/cmsis_gcc.h **** #else - 365:Drivers/CMSIS/Include/cmsis_gcc.h **** #define __CMSIS_GCC_OUT_REG(r) "=r" (r) - 366:Drivers/CMSIS/Include/cmsis_gcc.h **** #define __CMSIS_GCC_USE_REG(r) "r" (r) - 367:Drivers/CMSIS/Include/cmsis_gcc.h **** #endif - 368:Drivers/CMSIS/Include/cmsis_gcc.h **** - 369:Drivers/CMSIS/Include/cmsis_gcc.h **** /** - 370:Drivers/CMSIS/Include/cmsis_gcc.h **** \brief No Operation - 371:Drivers/CMSIS/Include/cmsis_gcc.h **** \details No Operation does nothing. This instruction can be used for code alignment purposes. - 372:Drivers/CMSIS/Include/cmsis_gcc.h **** */ - 373:Drivers/CMSIS/Include/cmsis_gcc.h **** __attribute__((always_inline)) __STATIC_INLINE void __NOP(void) - 374:Drivers/CMSIS/Include/cmsis_gcc.h **** { - 375:Drivers/CMSIS/Include/cmsis_gcc.h **** __ASM volatile ("nop"); - 376:Drivers/CMSIS/Include/cmsis_gcc.h **** } - 377:Drivers/CMSIS/Include/cmsis_gcc.h **** - 378:Drivers/CMSIS/Include/cmsis_gcc.h **** - 379:Drivers/CMSIS/Include/cmsis_gcc.h **** /** - 380:Drivers/CMSIS/Include/cmsis_gcc.h **** \brief Wait For Interrupt - 381:Drivers/CMSIS/Include/cmsis_gcc.h **** \details Wait For Interrupt is a hint instruction that suspends execution until one of a number o - 382:Drivers/CMSIS/Include/cmsis_gcc.h **** */ - 383:Drivers/CMSIS/Include/cmsis_gcc.h **** __attribute__((always_inline)) __STATIC_INLINE void __WFI(void) - ARM GAS /tmp/cc9UFUWX.s page 53 - - - 384:Drivers/CMSIS/Include/cmsis_gcc.h **** { - 385:Drivers/CMSIS/Include/cmsis_gcc.h **** __ASM volatile ("wfi"); - 386:Drivers/CMSIS/Include/cmsis_gcc.h **** } - 387:Drivers/CMSIS/Include/cmsis_gcc.h **** - 388:Drivers/CMSIS/Include/cmsis_gcc.h **** - 389:Drivers/CMSIS/Include/cmsis_gcc.h **** /** - 390:Drivers/CMSIS/Include/cmsis_gcc.h **** \brief Wait For Event - 391:Drivers/CMSIS/Include/cmsis_gcc.h **** \details Wait For Event is a hint instruction that permits the processor to enter - 392:Drivers/CMSIS/Include/cmsis_gcc.h **** a low-power state until one of a number of events occurs. - 393:Drivers/CMSIS/Include/cmsis_gcc.h **** */ - 394:Drivers/CMSIS/Include/cmsis_gcc.h **** __attribute__((always_inline)) __STATIC_INLINE void __WFE(void) - 395:Drivers/CMSIS/Include/cmsis_gcc.h **** { - 396:Drivers/CMSIS/Include/cmsis_gcc.h **** __ASM volatile ("wfe"); - 397:Drivers/CMSIS/Include/cmsis_gcc.h **** } - 398:Drivers/CMSIS/Include/cmsis_gcc.h **** - 399:Drivers/CMSIS/Include/cmsis_gcc.h **** - 400:Drivers/CMSIS/Include/cmsis_gcc.h **** /** - 401:Drivers/CMSIS/Include/cmsis_gcc.h **** \brief Send Event - 402:Drivers/CMSIS/Include/cmsis_gcc.h **** \details Send Event is a hint instruction. It causes an event to be signaled to the CPU. - 403:Drivers/CMSIS/Include/cmsis_gcc.h **** */ - 404:Drivers/CMSIS/Include/cmsis_gcc.h **** __attribute__((always_inline)) __STATIC_INLINE void __SEV(void) - 405:Drivers/CMSIS/Include/cmsis_gcc.h **** { - 406:Drivers/CMSIS/Include/cmsis_gcc.h **** __ASM volatile ("sev"); - 407:Drivers/CMSIS/Include/cmsis_gcc.h **** } - 408:Drivers/CMSIS/Include/cmsis_gcc.h **** - 409:Drivers/CMSIS/Include/cmsis_gcc.h **** - 410:Drivers/CMSIS/Include/cmsis_gcc.h **** /** - 411:Drivers/CMSIS/Include/cmsis_gcc.h **** \brief Instruction Synchronization Barrier - 412:Drivers/CMSIS/Include/cmsis_gcc.h **** \details Instruction Synchronization Barrier flushes the pipeline in the processor, - 413:Drivers/CMSIS/Include/cmsis_gcc.h **** so that all instructions following the ISB are fetched from cache or memory, - 414:Drivers/CMSIS/Include/cmsis_gcc.h **** after the instruction has been completed. - 415:Drivers/CMSIS/Include/cmsis_gcc.h **** */ - 416:Drivers/CMSIS/Include/cmsis_gcc.h **** __attribute__((always_inline)) __STATIC_INLINE void __ISB(void) - 417:Drivers/CMSIS/Include/cmsis_gcc.h **** { - 418:Drivers/CMSIS/Include/cmsis_gcc.h **** __ASM volatile ("isb 0xF":::"memory"); - 419:Drivers/CMSIS/Include/cmsis_gcc.h **** } - 420:Drivers/CMSIS/Include/cmsis_gcc.h **** - 421:Drivers/CMSIS/Include/cmsis_gcc.h **** - 422:Drivers/CMSIS/Include/cmsis_gcc.h **** /** - 423:Drivers/CMSIS/Include/cmsis_gcc.h **** \brief Data Synchronization Barrier - 424:Drivers/CMSIS/Include/cmsis_gcc.h **** \details Acts as a special kind of Data Memory Barrier. - 425:Drivers/CMSIS/Include/cmsis_gcc.h **** It completes when all explicit memory accesses before this instruction complete. - 426:Drivers/CMSIS/Include/cmsis_gcc.h **** */ - 427:Drivers/CMSIS/Include/cmsis_gcc.h **** __attribute__((always_inline)) __STATIC_INLINE void __DSB(void) - 428:Drivers/CMSIS/Include/cmsis_gcc.h **** { - 429:Drivers/CMSIS/Include/cmsis_gcc.h **** __ASM volatile ("dsb 0xF":::"memory"); - 1806 .loc 2 429 0 - 1807 .syntax divided - 1808 @ 429 "Drivers/CMSIS/Include/cmsis_gcc.h" 1 - 1809 009e BFF34F8F dsb 0xF - 1810 @ 0 "" 2 - 1811 .thumb - 1812 .syntax unified - 1813 .LBE32: - 1814 .LBE31: - 1815 .file 3 "Drivers/CMSIS/Include/core_cm0.h" - 1:Drivers/CMSIS/Include/core_cm0.h **** /**************************************************************************//** - ARM GAS /tmp/cc9UFUWX.s page 54 - - - 2:Drivers/CMSIS/Include/core_cm0.h **** * @file core_cm0.h - 3:Drivers/CMSIS/Include/core_cm0.h **** * @brief CMSIS Cortex-M0 Core Peripheral Access Layer Header File - 4:Drivers/CMSIS/Include/core_cm0.h **** * @version V4.30 - 5:Drivers/CMSIS/Include/core_cm0.h **** * @date 20. October 2015 - 6:Drivers/CMSIS/Include/core_cm0.h **** ******************************************************************************/ - 7:Drivers/CMSIS/Include/core_cm0.h **** /* Copyright (c) 2009 - 2015 ARM LIMITED - 8:Drivers/CMSIS/Include/core_cm0.h **** - 9:Drivers/CMSIS/Include/core_cm0.h **** All rights reserved. - 10:Drivers/CMSIS/Include/core_cm0.h **** Redistribution and use in source and binary forms, with or without - 11:Drivers/CMSIS/Include/core_cm0.h **** modification, are permitted provided that the following conditions are met: - 12:Drivers/CMSIS/Include/core_cm0.h **** - Redistributions of source code must retain the above copyright - 13:Drivers/CMSIS/Include/core_cm0.h **** notice, this list of conditions and the following disclaimer. - 14:Drivers/CMSIS/Include/core_cm0.h **** - Redistributions in binary form must reproduce the above copyright - 15:Drivers/CMSIS/Include/core_cm0.h **** notice, this list of conditions and the following disclaimer in the - 16:Drivers/CMSIS/Include/core_cm0.h **** documentation and/or other materials provided with the distribution. - 17:Drivers/CMSIS/Include/core_cm0.h **** - Neither the name of ARM nor the names of its contributors may be used - 18:Drivers/CMSIS/Include/core_cm0.h **** to endorse or promote products derived from this software without - 19:Drivers/CMSIS/Include/core_cm0.h **** specific prior written permission. - 20:Drivers/CMSIS/Include/core_cm0.h **** * - 21:Drivers/CMSIS/Include/core_cm0.h **** THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" - 22:Drivers/CMSIS/Include/core_cm0.h **** AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE - 23:Drivers/CMSIS/Include/core_cm0.h **** IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE - 24:Drivers/CMSIS/Include/core_cm0.h **** ARE DISCLAIMED. IN NO EVENT SHALL COPYRIGHT HOLDERS AND CONTRIBUTORS BE - 25:Drivers/CMSIS/Include/core_cm0.h **** LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR - 26:Drivers/CMSIS/Include/core_cm0.h **** CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF - 27:Drivers/CMSIS/Include/core_cm0.h **** SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS - 28:Drivers/CMSIS/Include/core_cm0.h **** INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN - 29:Drivers/CMSIS/Include/core_cm0.h **** CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) - 30:Drivers/CMSIS/Include/core_cm0.h **** ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE - 31:Drivers/CMSIS/Include/core_cm0.h **** POSSIBILITY OF SUCH DAMAGE. - 32:Drivers/CMSIS/Include/core_cm0.h **** ---------------------------------------------------------------------------*/ - 33:Drivers/CMSIS/Include/core_cm0.h **** - 34:Drivers/CMSIS/Include/core_cm0.h **** - 35:Drivers/CMSIS/Include/core_cm0.h **** #if defined ( __ICCARM__ ) - 36:Drivers/CMSIS/Include/core_cm0.h **** #pragma system_include /* treat file as system include file for MISRA check */ - 37:Drivers/CMSIS/Include/core_cm0.h **** #elif defined(__ARMCC_VERSION) && (__ARMCC_VERSION >= 6010050) - 38:Drivers/CMSIS/Include/core_cm0.h **** #pragma clang system_header /* treat file as system include file */ - 39:Drivers/CMSIS/Include/core_cm0.h **** #endif - 40:Drivers/CMSIS/Include/core_cm0.h **** - 41:Drivers/CMSIS/Include/core_cm0.h **** #ifndef __CORE_CM0_H_GENERIC - 42:Drivers/CMSIS/Include/core_cm0.h **** #define __CORE_CM0_H_GENERIC - 43:Drivers/CMSIS/Include/core_cm0.h **** - 44:Drivers/CMSIS/Include/core_cm0.h **** #include - 45:Drivers/CMSIS/Include/core_cm0.h **** - 46:Drivers/CMSIS/Include/core_cm0.h **** #ifdef __cplusplus - 47:Drivers/CMSIS/Include/core_cm0.h **** extern "C" { - 48:Drivers/CMSIS/Include/core_cm0.h **** #endif - 49:Drivers/CMSIS/Include/core_cm0.h **** - 50:Drivers/CMSIS/Include/core_cm0.h **** /** - 51:Drivers/CMSIS/Include/core_cm0.h **** \page CMSIS_MISRA_Exceptions MISRA-C:2004 Compliance Exceptions - 52:Drivers/CMSIS/Include/core_cm0.h **** CMSIS violates the following MISRA-C:2004 rules: - 53:Drivers/CMSIS/Include/core_cm0.h **** - 54:Drivers/CMSIS/Include/core_cm0.h **** \li Required Rule 8.5, object/function definition in header file.
- 55:Drivers/CMSIS/Include/core_cm0.h **** Function definitions in header files are used to allow 'inlining'. - 56:Drivers/CMSIS/Include/core_cm0.h **** - 57:Drivers/CMSIS/Include/core_cm0.h **** \li Required Rule 18.4, declaration of union type or object of union type: '{...}'.
- 58:Drivers/CMSIS/Include/core_cm0.h **** Unions are used for effective representation of core registers. - ARM GAS /tmp/cc9UFUWX.s page 55 - - - 59:Drivers/CMSIS/Include/core_cm0.h **** - 60:Drivers/CMSIS/Include/core_cm0.h **** \li Advisory Rule 19.7, Function-like macro defined.
- 61:Drivers/CMSIS/Include/core_cm0.h **** Function-like macros are used to allow more efficient code. - 62:Drivers/CMSIS/Include/core_cm0.h **** */ - 63:Drivers/CMSIS/Include/core_cm0.h **** - 64:Drivers/CMSIS/Include/core_cm0.h **** - 65:Drivers/CMSIS/Include/core_cm0.h **** /******************************************************************************* - 66:Drivers/CMSIS/Include/core_cm0.h **** * CMSIS definitions - 67:Drivers/CMSIS/Include/core_cm0.h **** ******************************************************************************/ - 68:Drivers/CMSIS/Include/core_cm0.h **** /** - 69:Drivers/CMSIS/Include/core_cm0.h **** \ingroup Cortex_M0 - 70:Drivers/CMSIS/Include/core_cm0.h **** @{ - 71:Drivers/CMSIS/Include/core_cm0.h **** */ - 72:Drivers/CMSIS/Include/core_cm0.h **** - 73:Drivers/CMSIS/Include/core_cm0.h **** /* CMSIS CM0 definitions */ - 74:Drivers/CMSIS/Include/core_cm0.h **** #define __CM0_CMSIS_VERSION_MAIN (0x04U) /*!< [31:16] CMSIS H - 75:Drivers/CMSIS/Include/core_cm0.h **** #define __CM0_CMSIS_VERSION_SUB (0x1EU) /*!< [15:0] CMSIS H - 76:Drivers/CMSIS/Include/core_cm0.h **** #define __CM0_CMSIS_VERSION ((__CM0_CMSIS_VERSION_MAIN << 16U) | \ - 77:Drivers/CMSIS/Include/core_cm0.h **** __CM0_CMSIS_VERSION_SUB ) /*!< CMSIS HAL versi - 78:Drivers/CMSIS/Include/core_cm0.h **** - 79:Drivers/CMSIS/Include/core_cm0.h **** #define __CORTEX_M (0x00U) /*!< Cortex-M Core * - 80:Drivers/CMSIS/Include/core_cm0.h **** - 81:Drivers/CMSIS/Include/core_cm0.h **** - 82:Drivers/CMSIS/Include/core_cm0.h **** #if defined ( __CC_ARM ) - 83:Drivers/CMSIS/Include/core_cm0.h **** #define __ASM __asm /*!< asm keyword for ARM Comp - 84:Drivers/CMSIS/Include/core_cm0.h **** #define __INLINE __inline /*!< inline keyword for ARM C - 85:Drivers/CMSIS/Include/core_cm0.h **** #define __STATIC_INLINE static __inline - 86:Drivers/CMSIS/Include/core_cm0.h **** - 87:Drivers/CMSIS/Include/core_cm0.h **** #elif defined(__ARMCC_VERSION) && (__ARMCC_VERSION >= 6010050) - 88:Drivers/CMSIS/Include/core_cm0.h **** #define __ASM __asm /*!< asm keyword for ARM Comp - 89:Drivers/CMSIS/Include/core_cm0.h **** #define __INLINE __inline /*!< inline keyword for ARM C - 90:Drivers/CMSIS/Include/core_cm0.h **** #define __STATIC_INLINE static __inline - 91:Drivers/CMSIS/Include/core_cm0.h **** - 92:Drivers/CMSIS/Include/core_cm0.h **** #elif defined ( __GNUC__ ) - 93:Drivers/CMSIS/Include/core_cm0.h **** #define __ASM __asm /*!< asm keyword for GNU Comp - 94:Drivers/CMSIS/Include/core_cm0.h **** #define __INLINE inline /*!< inline keyword for GNU C - 95:Drivers/CMSIS/Include/core_cm0.h **** #define __STATIC_INLINE static inline - 96:Drivers/CMSIS/Include/core_cm0.h **** - 97:Drivers/CMSIS/Include/core_cm0.h **** #elif defined ( __ICCARM__ ) - 98:Drivers/CMSIS/Include/core_cm0.h **** #define __ASM __asm /*!< asm keyword for IAR Comp - 99:Drivers/CMSIS/Include/core_cm0.h **** #define __INLINE inline /*!< inline keyword for IAR C - 100:Drivers/CMSIS/Include/core_cm0.h **** #define __STATIC_INLINE static inline - 101:Drivers/CMSIS/Include/core_cm0.h **** - 102:Drivers/CMSIS/Include/core_cm0.h **** #elif defined ( __TMS470__ ) - 103:Drivers/CMSIS/Include/core_cm0.h **** #define __ASM __asm /*!< asm keyword for TI CCS C - 104:Drivers/CMSIS/Include/core_cm0.h **** #define __STATIC_INLINE static inline - 105:Drivers/CMSIS/Include/core_cm0.h **** - 106:Drivers/CMSIS/Include/core_cm0.h **** #elif defined ( __TASKING__ ) - 107:Drivers/CMSIS/Include/core_cm0.h **** #define __ASM __asm /*!< asm keyword for TASKING - 108:Drivers/CMSIS/Include/core_cm0.h **** #define __INLINE inline /*!< inline keyword for TASKI - 109:Drivers/CMSIS/Include/core_cm0.h **** #define __STATIC_INLINE static inline - 110:Drivers/CMSIS/Include/core_cm0.h **** - 111:Drivers/CMSIS/Include/core_cm0.h **** #elif defined ( __CSMC__ ) - 112:Drivers/CMSIS/Include/core_cm0.h **** #define __packed - 113:Drivers/CMSIS/Include/core_cm0.h **** #define __ASM _asm /*!< asm keyword for COSMIC Co - 114:Drivers/CMSIS/Include/core_cm0.h **** #define __INLINE inline /*!< inline keyword for COSMIC - 115:Drivers/CMSIS/Include/core_cm0.h **** #define __STATIC_INLINE static inline - ARM GAS /tmp/cc9UFUWX.s page 56 - - - 116:Drivers/CMSIS/Include/core_cm0.h **** - 117:Drivers/CMSIS/Include/core_cm0.h **** #else - 118:Drivers/CMSIS/Include/core_cm0.h **** #error Unknown compiler - 119:Drivers/CMSIS/Include/core_cm0.h **** #endif - 120:Drivers/CMSIS/Include/core_cm0.h **** - 121:Drivers/CMSIS/Include/core_cm0.h **** /** __FPU_USED indicates whether an FPU is used or not. - 122:Drivers/CMSIS/Include/core_cm0.h **** This core does not support an FPU at all - 123:Drivers/CMSIS/Include/core_cm0.h **** */ - 124:Drivers/CMSIS/Include/core_cm0.h **** #define __FPU_USED 0U - 125:Drivers/CMSIS/Include/core_cm0.h **** - 126:Drivers/CMSIS/Include/core_cm0.h **** #if defined ( __CC_ARM ) - 127:Drivers/CMSIS/Include/core_cm0.h **** #if defined __TARGET_FPU_VFP - 128:Drivers/CMSIS/Include/core_cm0.h **** #error "Compiler generates FPU instructions for a device without an FPU (check __FPU_PRESENT)" - 129:Drivers/CMSIS/Include/core_cm0.h **** #endif - 130:Drivers/CMSIS/Include/core_cm0.h **** - 131:Drivers/CMSIS/Include/core_cm0.h **** #elif defined(__ARMCC_VERSION) && (__ARMCC_VERSION >= 6010050) - 132:Drivers/CMSIS/Include/core_cm0.h **** #if defined __ARM_PCS_VFP - 133:Drivers/CMSIS/Include/core_cm0.h **** #error "Compiler generates FPU instructions for a device without an FPU (check __FPU_PRESENT)" - 134:Drivers/CMSIS/Include/core_cm0.h **** #endif - 135:Drivers/CMSIS/Include/core_cm0.h **** - 136:Drivers/CMSIS/Include/core_cm0.h **** #elif defined ( __GNUC__ ) - 137:Drivers/CMSIS/Include/core_cm0.h **** #if defined (__VFP_FP__) && !defined(__SOFTFP__) - 138:Drivers/CMSIS/Include/core_cm0.h **** #error "Compiler generates FPU instructions for a device without an FPU (check __FPU_PRESENT)" - 139:Drivers/CMSIS/Include/core_cm0.h **** #endif - 140:Drivers/CMSIS/Include/core_cm0.h **** - 141:Drivers/CMSIS/Include/core_cm0.h **** #elif defined ( __ICCARM__ ) - 142:Drivers/CMSIS/Include/core_cm0.h **** #if defined __ARMVFP__ - 143:Drivers/CMSIS/Include/core_cm0.h **** #error "Compiler generates FPU instructions for a device without an FPU (check __FPU_PRESENT)" - 144:Drivers/CMSIS/Include/core_cm0.h **** #endif - 145:Drivers/CMSIS/Include/core_cm0.h **** - 146:Drivers/CMSIS/Include/core_cm0.h **** #elif defined ( __TMS470__ ) - 147:Drivers/CMSIS/Include/core_cm0.h **** #if defined __TI_VFP_SUPPORT__ - 148:Drivers/CMSIS/Include/core_cm0.h **** #error "Compiler generates FPU instructions for a device without an FPU (check __FPU_PRESENT)" - 149:Drivers/CMSIS/Include/core_cm0.h **** #endif - 150:Drivers/CMSIS/Include/core_cm0.h **** - 151:Drivers/CMSIS/Include/core_cm0.h **** #elif defined ( __TASKING__ ) - 152:Drivers/CMSIS/Include/core_cm0.h **** #if defined __FPU_VFP__ - 153:Drivers/CMSIS/Include/core_cm0.h **** #error "Compiler generates FPU instructions for a device without an FPU (check __FPU_PRESENT)" - 154:Drivers/CMSIS/Include/core_cm0.h **** #endif - 155:Drivers/CMSIS/Include/core_cm0.h **** - 156:Drivers/CMSIS/Include/core_cm0.h **** #elif defined ( __CSMC__ ) - 157:Drivers/CMSIS/Include/core_cm0.h **** #if ( __CSMC__ & 0x400U) - 158:Drivers/CMSIS/Include/core_cm0.h **** #error "Compiler generates FPU instructions for a device without an FPU (check __FPU_PRESENT)" - 159:Drivers/CMSIS/Include/core_cm0.h **** #endif - 160:Drivers/CMSIS/Include/core_cm0.h **** - 161:Drivers/CMSIS/Include/core_cm0.h **** #endif - 162:Drivers/CMSIS/Include/core_cm0.h **** - 163:Drivers/CMSIS/Include/core_cm0.h **** #include "core_cmInstr.h" /* Core Instruction Access */ - 164:Drivers/CMSIS/Include/core_cm0.h **** #include "core_cmFunc.h" /* Core Function Access */ - 165:Drivers/CMSIS/Include/core_cm0.h **** - 166:Drivers/CMSIS/Include/core_cm0.h **** #ifdef __cplusplus - 167:Drivers/CMSIS/Include/core_cm0.h **** } - 168:Drivers/CMSIS/Include/core_cm0.h **** #endif - 169:Drivers/CMSIS/Include/core_cm0.h **** - 170:Drivers/CMSIS/Include/core_cm0.h **** #endif /* __CORE_CM0_H_GENERIC */ - 171:Drivers/CMSIS/Include/core_cm0.h **** - 172:Drivers/CMSIS/Include/core_cm0.h **** #ifndef __CMSIS_GENERIC - ARM GAS /tmp/cc9UFUWX.s page 57 - - - 173:Drivers/CMSIS/Include/core_cm0.h **** - 174:Drivers/CMSIS/Include/core_cm0.h **** #ifndef __CORE_CM0_H_DEPENDANT - 175:Drivers/CMSIS/Include/core_cm0.h **** #define __CORE_CM0_H_DEPENDANT - 176:Drivers/CMSIS/Include/core_cm0.h **** - 177:Drivers/CMSIS/Include/core_cm0.h **** #ifdef __cplusplus - 178:Drivers/CMSIS/Include/core_cm0.h **** extern "C" { - 179:Drivers/CMSIS/Include/core_cm0.h **** #endif - 180:Drivers/CMSIS/Include/core_cm0.h **** - 181:Drivers/CMSIS/Include/core_cm0.h **** /* check device defines and use defaults */ - 182:Drivers/CMSIS/Include/core_cm0.h **** #if defined __CHECK_DEVICE_DEFINES - 183:Drivers/CMSIS/Include/core_cm0.h **** #ifndef __CM0_REV - 184:Drivers/CMSIS/Include/core_cm0.h **** #define __CM0_REV 0x0000U - 185:Drivers/CMSIS/Include/core_cm0.h **** #warning "__CM0_REV not defined in device header file; using default!" - 186:Drivers/CMSIS/Include/core_cm0.h **** #endif - 187:Drivers/CMSIS/Include/core_cm0.h **** - 188:Drivers/CMSIS/Include/core_cm0.h **** #ifndef __NVIC_PRIO_BITS - 189:Drivers/CMSIS/Include/core_cm0.h **** #define __NVIC_PRIO_BITS 2U - 190:Drivers/CMSIS/Include/core_cm0.h **** #warning "__NVIC_PRIO_BITS not defined in device header file; using default!" - 191:Drivers/CMSIS/Include/core_cm0.h **** #endif - 192:Drivers/CMSIS/Include/core_cm0.h **** - 193:Drivers/CMSIS/Include/core_cm0.h **** #ifndef __Vendor_SysTickConfig - 194:Drivers/CMSIS/Include/core_cm0.h **** #define __Vendor_SysTickConfig 0U - 195:Drivers/CMSIS/Include/core_cm0.h **** #warning "__Vendor_SysTickConfig not defined in device header file; using default!" - 196:Drivers/CMSIS/Include/core_cm0.h **** #endif - 197:Drivers/CMSIS/Include/core_cm0.h **** #endif - 198:Drivers/CMSIS/Include/core_cm0.h **** - 199:Drivers/CMSIS/Include/core_cm0.h **** /* IO definitions (access restrictions to peripheral registers) */ - 200:Drivers/CMSIS/Include/core_cm0.h **** /** - 201:Drivers/CMSIS/Include/core_cm0.h **** \defgroup CMSIS_glob_defs CMSIS Global Defines - 202:Drivers/CMSIS/Include/core_cm0.h **** - 203:Drivers/CMSIS/Include/core_cm0.h **** IO Type Qualifiers are used - 204:Drivers/CMSIS/Include/core_cm0.h **** \li to specify the access to peripheral variables. - 205:Drivers/CMSIS/Include/core_cm0.h **** \li for automatic generation of peripheral register debug information. - 206:Drivers/CMSIS/Include/core_cm0.h **** */ - 207:Drivers/CMSIS/Include/core_cm0.h **** #ifdef __cplusplus - 208:Drivers/CMSIS/Include/core_cm0.h **** #define __I volatile /*!< Defines 'read only' permissions */ - 209:Drivers/CMSIS/Include/core_cm0.h **** #else - 210:Drivers/CMSIS/Include/core_cm0.h **** #define __I volatile const /*!< Defines 'read only' permissions */ - 211:Drivers/CMSIS/Include/core_cm0.h **** #endif - 212:Drivers/CMSIS/Include/core_cm0.h **** #define __O volatile /*!< Defines 'write only' permissions */ - 213:Drivers/CMSIS/Include/core_cm0.h **** #define __IO volatile /*!< Defines 'read / write' permissions */ - 214:Drivers/CMSIS/Include/core_cm0.h **** - 215:Drivers/CMSIS/Include/core_cm0.h **** /* following defines should be used for structure members */ - 216:Drivers/CMSIS/Include/core_cm0.h **** #define __IM volatile const /*! Defines 'read only' structure member permissions */ - 217:Drivers/CMSIS/Include/core_cm0.h **** #define __OM volatile /*! Defines 'write only' structure member permissions */ - 218:Drivers/CMSIS/Include/core_cm0.h **** #define __IOM volatile /*! Defines 'read / write' structure member permissions */ - 219:Drivers/CMSIS/Include/core_cm0.h **** - 220:Drivers/CMSIS/Include/core_cm0.h **** /*@} end of group Cortex_M0 */ - 221:Drivers/CMSIS/Include/core_cm0.h **** - 222:Drivers/CMSIS/Include/core_cm0.h **** - 223:Drivers/CMSIS/Include/core_cm0.h **** - 224:Drivers/CMSIS/Include/core_cm0.h **** /******************************************************************************* - 225:Drivers/CMSIS/Include/core_cm0.h **** * Register Abstraction - 226:Drivers/CMSIS/Include/core_cm0.h **** Core Register contain: - 227:Drivers/CMSIS/Include/core_cm0.h **** - Core Register - 228:Drivers/CMSIS/Include/core_cm0.h **** - Core NVIC Register - 229:Drivers/CMSIS/Include/core_cm0.h **** - Core SCB Register - ARM GAS /tmp/cc9UFUWX.s page 58 - - - 230:Drivers/CMSIS/Include/core_cm0.h **** - Core SysTick Register - 231:Drivers/CMSIS/Include/core_cm0.h **** ******************************************************************************/ - 232:Drivers/CMSIS/Include/core_cm0.h **** /** - 233:Drivers/CMSIS/Include/core_cm0.h **** \defgroup CMSIS_core_register Defines and Type Definitions - 234:Drivers/CMSIS/Include/core_cm0.h **** \brief Type definitions and defines for Cortex-M processor based devices. - 235:Drivers/CMSIS/Include/core_cm0.h **** */ - 236:Drivers/CMSIS/Include/core_cm0.h **** - 237:Drivers/CMSIS/Include/core_cm0.h **** /** - 238:Drivers/CMSIS/Include/core_cm0.h **** \ingroup CMSIS_core_register - 239:Drivers/CMSIS/Include/core_cm0.h **** \defgroup CMSIS_CORE Status and Control Registers - 240:Drivers/CMSIS/Include/core_cm0.h **** \brief Core Register type definitions. - 241:Drivers/CMSIS/Include/core_cm0.h **** @{ - 242:Drivers/CMSIS/Include/core_cm0.h **** */ - 243:Drivers/CMSIS/Include/core_cm0.h **** - 244:Drivers/CMSIS/Include/core_cm0.h **** /** - 245:Drivers/CMSIS/Include/core_cm0.h **** \brief Union type to access the Application Program Status Register (APSR). - 246:Drivers/CMSIS/Include/core_cm0.h **** */ - 247:Drivers/CMSIS/Include/core_cm0.h **** typedef union - 248:Drivers/CMSIS/Include/core_cm0.h **** { - 249:Drivers/CMSIS/Include/core_cm0.h **** struct - 250:Drivers/CMSIS/Include/core_cm0.h **** { - 251:Drivers/CMSIS/Include/core_cm0.h **** uint32_t _reserved0:28; /*!< bit: 0..27 Reserved */ - 252:Drivers/CMSIS/Include/core_cm0.h **** uint32_t V:1; /*!< bit: 28 Overflow condition code flag */ - 253:Drivers/CMSIS/Include/core_cm0.h **** uint32_t C:1; /*!< bit: 29 Carry condition code flag */ - 254:Drivers/CMSIS/Include/core_cm0.h **** uint32_t Z:1; /*!< bit: 30 Zero condition code flag */ - 255:Drivers/CMSIS/Include/core_cm0.h **** uint32_t N:1; /*!< bit: 31 Negative condition code flag */ - 256:Drivers/CMSIS/Include/core_cm0.h **** } b; /*!< Structure used for bit access */ - 257:Drivers/CMSIS/Include/core_cm0.h **** uint32_t w; /*!< Type used for word access */ - 258:Drivers/CMSIS/Include/core_cm0.h **** } APSR_Type; - 259:Drivers/CMSIS/Include/core_cm0.h **** - 260:Drivers/CMSIS/Include/core_cm0.h **** /* APSR Register Definitions */ - 261:Drivers/CMSIS/Include/core_cm0.h **** #define APSR_N_Pos 31U /*!< APSR - 262:Drivers/CMSIS/Include/core_cm0.h **** #define APSR_N_Msk (1UL << APSR_N_Pos) /*!< APSR - 263:Drivers/CMSIS/Include/core_cm0.h **** - 264:Drivers/CMSIS/Include/core_cm0.h **** #define APSR_Z_Pos 30U /*!< APSR - 265:Drivers/CMSIS/Include/core_cm0.h **** #define APSR_Z_Msk (1UL << APSR_Z_Pos) /*!< APSR - 266:Drivers/CMSIS/Include/core_cm0.h **** - 267:Drivers/CMSIS/Include/core_cm0.h **** #define APSR_C_Pos 29U /*!< APSR - 268:Drivers/CMSIS/Include/core_cm0.h **** #define APSR_C_Msk (1UL << APSR_C_Pos) /*!< APSR - 269:Drivers/CMSIS/Include/core_cm0.h **** - 270:Drivers/CMSIS/Include/core_cm0.h **** #define APSR_V_Pos 28U /*!< APSR - 271:Drivers/CMSIS/Include/core_cm0.h **** #define APSR_V_Msk (1UL << APSR_V_Pos) /*!< APSR - 272:Drivers/CMSIS/Include/core_cm0.h **** - 273:Drivers/CMSIS/Include/core_cm0.h **** - 274:Drivers/CMSIS/Include/core_cm0.h **** /** - 275:Drivers/CMSIS/Include/core_cm0.h **** \brief Union type to access the Interrupt Program Status Register (IPSR). - 276:Drivers/CMSIS/Include/core_cm0.h **** */ - 277:Drivers/CMSIS/Include/core_cm0.h **** typedef union - 278:Drivers/CMSIS/Include/core_cm0.h **** { - 279:Drivers/CMSIS/Include/core_cm0.h **** struct - 280:Drivers/CMSIS/Include/core_cm0.h **** { - 281:Drivers/CMSIS/Include/core_cm0.h **** uint32_t ISR:9; /*!< bit: 0.. 8 Exception number */ - 282:Drivers/CMSIS/Include/core_cm0.h **** uint32_t _reserved0:23; /*!< bit: 9..31 Reserved */ - 283:Drivers/CMSIS/Include/core_cm0.h **** } b; /*!< Structure used for bit access */ - 284:Drivers/CMSIS/Include/core_cm0.h **** uint32_t w; /*!< Type used for word access */ - 285:Drivers/CMSIS/Include/core_cm0.h **** } IPSR_Type; - 286:Drivers/CMSIS/Include/core_cm0.h **** - ARM GAS /tmp/cc9UFUWX.s page 59 - - - 287:Drivers/CMSIS/Include/core_cm0.h **** /* IPSR Register Definitions */ - 288:Drivers/CMSIS/Include/core_cm0.h **** #define IPSR_ISR_Pos 0U /*!< IPSR - 289:Drivers/CMSIS/Include/core_cm0.h **** #define IPSR_ISR_Msk (0x1FFUL /*<< IPSR_ISR_Pos*/) /*!< IPSR - 290:Drivers/CMSIS/Include/core_cm0.h **** - 291:Drivers/CMSIS/Include/core_cm0.h **** - 292:Drivers/CMSIS/Include/core_cm0.h **** /** - 293:Drivers/CMSIS/Include/core_cm0.h **** \brief Union type to access the Special-Purpose Program Status Registers (xPSR). - 294:Drivers/CMSIS/Include/core_cm0.h **** */ - 295:Drivers/CMSIS/Include/core_cm0.h **** typedef union - 296:Drivers/CMSIS/Include/core_cm0.h **** { - 297:Drivers/CMSIS/Include/core_cm0.h **** struct - 298:Drivers/CMSIS/Include/core_cm0.h **** { - 299:Drivers/CMSIS/Include/core_cm0.h **** uint32_t ISR:9; /*!< bit: 0.. 8 Exception number */ - 300:Drivers/CMSIS/Include/core_cm0.h **** uint32_t _reserved0:15; /*!< bit: 9..23 Reserved */ - 301:Drivers/CMSIS/Include/core_cm0.h **** uint32_t T:1; /*!< bit: 24 Thumb bit (read 0) */ - 302:Drivers/CMSIS/Include/core_cm0.h **** uint32_t _reserved1:3; /*!< bit: 25..27 Reserved */ - 303:Drivers/CMSIS/Include/core_cm0.h **** uint32_t V:1; /*!< bit: 28 Overflow condition code flag */ - 304:Drivers/CMSIS/Include/core_cm0.h **** uint32_t C:1; /*!< bit: 29 Carry condition code flag */ - 305:Drivers/CMSIS/Include/core_cm0.h **** uint32_t Z:1; /*!< bit: 30 Zero condition code flag */ - 306:Drivers/CMSIS/Include/core_cm0.h **** uint32_t N:1; /*!< bit: 31 Negative condition code flag */ - 307:Drivers/CMSIS/Include/core_cm0.h **** } b; /*!< Structure used for bit access */ - 308:Drivers/CMSIS/Include/core_cm0.h **** uint32_t w; /*!< Type used for word access */ - 309:Drivers/CMSIS/Include/core_cm0.h **** } xPSR_Type; - 310:Drivers/CMSIS/Include/core_cm0.h **** - 311:Drivers/CMSIS/Include/core_cm0.h **** /* xPSR Register Definitions */ - 312:Drivers/CMSIS/Include/core_cm0.h **** #define xPSR_N_Pos 31U /*!< xPSR - 313:Drivers/CMSIS/Include/core_cm0.h **** #define xPSR_N_Msk (1UL << xPSR_N_Pos) /*!< xPSR - 314:Drivers/CMSIS/Include/core_cm0.h **** - 315:Drivers/CMSIS/Include/core_cm0.h **** #define xPSR_Z_Pos 30U /*!< xPSR - 316:Drivers/CMSIS/Include/core_cm0.h **** #define xPSR_Z_Msk (1UL << xPSR_Z_Pos) /*!< xPSR - 317:Drivers/CMSIS/Include/core_cm0.h **** - 318:Drivers/CMSIS/Include/core_cm0.h **** #define xPSR_C_Pos 29U /*!< xPSR - 319:Drivers/CMSIS/Include/core_cm0.h **** #define xPSR_C_Msk (1UL << xPSR_C_Pos) /*!< xPSR - 320:Drivers/CMSIS/Include/core_cm0.h **** - 321:Drivers/CMSIS/Include/core_cm0.h **** #define xPSR_V_Pos 28U /*!< xPSR - 322:Drivers/CMSIS/Include/core_cm0.h **** #define xPSR_V_Msk (1UL << xPSR_V_Pos) /*!< xPSR - 323:Drivers/CMSIS/Include/core_cm0.h **** - 324:Drivers/CMSIS/Include/core_cm0.h **** #define xPSR_T_Pos 24U /*!< xPSR - 325:Drivers/CMSIS/Include/core_cm0.h **** #define xPSR_T_Msk (1UL << xPSR_T_Pos) /*!< xPSR - 326:Drivers/CMSIS/Include/core_cm0.h **** - 327:Drivers/CMSIS/Include/core_cm0.h **** #define xPSR_ISR_Pos 0U /*!< xPSR - 328:Drivers/CMSIS/Include/core_cm0.h **** #define xPSR_ISR_Msk (0x1FFUL /*<< xPSR_ISR_Pos*/) /*!< xPSR - 329:Drivers/CMSIS/Include/core_cm0.h **** - 330:Drivers/CMSIS/Include/core_cm0.h **** - 331:Drivers/CMSIS/Include/core_cm0.h **** /** - 332:Drivers/CMSIS/Include/core_cm0.h **** \brief Union type to access the Control Registers (CONTROL). - 333:Drivers/CMSIS/Include/core_cm0.h **** */ - 334:Drivers/CMSIS/Include/core_cm0.h **** typedef union - 335:Drivers/CMSIS/Include/core_cm0.h **** { - 336:Drivers/CMSIS/Include/core_cm0.h **** struct - 337:Drivers/CMSIS/Include/core_cm0.h **** { - 338:Drivers/CMSIS/Include/core_cm0.h **** uint32_t _reserved0:1; /*!< bit: 0 Reserved */ - 339:Drivers/CMSIS/Include/core_cm0.h **** uint32_t SPSEL:1; /*!< bit: 1 Stack to be used */ - 340:Drivers/CMSIS/Include/core_cm0.h **** uint32_t _reserved1:30; /*!< bit: 2..31 Reserved */ - 341:Drivers/CMSIS/Include/core_cm0.h **** } b; /*!< Structure used for bit access */ - 342:Drivers/CMSIS/Include/core_cm0.h **** uint32_t w; /*!< Type used for word access */ - 343:Drivers/CMSIS/Include/core_cm0.h **** } CONTROL_Type; - ARM GAS /tmp/cc9UFUWX.s page 60 - - - 344:Drivers/CMSIS/Include/core_cm0.h **** - 345:Drivers/CMSIS/Include/core_cm0.h **** /* CONTROL Register Definitions */ - 346:Drivers/CMSIS/Include/core_cm0.h **** #define CONTROL_SPSEL_Pos 1U /*!< CONT - 347:Drivers/CMSIS/Include/core_cm0.h **** #define CONTROL_SPSEL_Msk (1UL << CONTROL_SPSEL_Pos) /*!< CONT - 348:Drivers/CMSIS/Include/core_cm0.h **** - 349:Drivers/CMSIS/Include/core_cm0.h **** /*@} end of group CMSIS_CORE */ - 350:Drivers/CMSIS/Include/core_cm0.h **** - 351:Drivers/CMSIS/Include/core_cm0.h **** - 352:Drivers/CMSIS/Include/core_cm0.h **** /** - 353:Drivers/CMSIS/Include/core_cm0.h **** \ingroup CMSIS_core_register - 354:Drivers/CMSIS/Include/core_cm0.h **** \defgroup CMSIS_NVIC Nested Vectored Interrupt Controller (NVIC) - 355:Drivers/CMSIS/Include/core_cm0.h **** \brief Type definitions for the NVIC Registers - 356:Drivers/CMSIS/Include/core_cm0.h **** @{ - 357:Drivers/CMSIS/Include/core_cm0.h **** */ - 358:Drivers/CMSIS/Include/core_cm0.h **** - 359:Drivers/CMSIS/Include/core_cm0.h **** /** - 360:Drivers/CMSIS/Include/core_cm0.h **** \brief Structure type to access the Nested Vectored Interrupt Controller (NVIC). - 361:Drivers/CMSIS/Include/core_cm0.h **** */ - 362:Drivers/CMSIS/Include/core_cm0.h **** typedef struct - 363:Drivers/CMSIS/Include/core_cm0.h **** { - 364:Drivers/CMSIS/Include/core_cm0.h **** __IOM uint32_t ISER[1U]; /*!< Offset: 0x000 (R/W) Interrupt Set Enable Register */ - 365:Drivers/CMSIS/Include/core_cm0.h **** uint32_t RESERVED0[31U]; - 366:Drivers/CMSIS/Include/core_cm0.h **** __IOM uint32_t ICER[1U]; /*!< Offset: 0x080 (R/W) Interrupt Clear Enable Register - 367:Drivers/CMSIS/Include/core_cm0.h **** uint32_t RSERVED1[31U]; - 368:Drivers/CMSIS/Include/core_cm0.h **** __IOM uint32_t ISPR[1U]; /*!< Offset: 0x100 (R/W) Interrupt Set Pending Register * - 369:Drivers/CMSIS/Include/core_cm0.h **** uint32_t RESERVED2[31U]; - 370:Drivers/CMSIS/Include/core_cm0.h **** __IOM uint32_t ICPR[1U]; /*!< Offset: 0x180 (R/W) Interrupt Clear Pending Register - 371:Drivers/CMSIS/Include/core_cm0.h **** uint32_t RESERVED3[31U]; - 372:Drivers/CMSIS/Include/core_cm0.h **** uint32_t RESERVED4[64U]; - 373:Drivers/CMSIS/Include/core_cm0.h **** __IOM uint32_t IP[8U]; /*!< Offset: 0x300 (R/W) Interrupt Priority Register */ - 374:Drivers/CMSIS/Include/core_cm0.h **** } NVIC_Type; - 375:Drivers/CMSIS/Include/core_cm0.h **** - 376:Drivers/CMSIS/Include/core_cm0.h **** /*@} end of group CMSIS_NVIC */ - 377:Drivers/CMSIS/Include/core_cm0.h **** - 378:Drivers/CMSIS/Include/core_cm0.h **** - 379:Drivers/CMSIS/Include/core_cm0.h **** /** - 380:Drivers/CMSIS/Include/core_cm0.h **** \ingroup CMSIS_core_register - 381:Drivers/CMSIS/Include/core_cm0.h **** \defgroup CMSIS_SCB System Control Block (SCB) - 382:Drivers/CMSIS/Include/core_cm0.h **** \brief Type definitions for the System Control Block Registers - 383:Drivers/CMSIS/Include/core_cm0.h **** @{ - 384:Drivers/CMSIS/Include/core_cm0.h **** */ - 385:Drivers/CMSIS/Include/core_cm0.h **** - 386:Drivers/CMSIS/Include/core_cm0.h **** /** - 387:Drivers/CMSIS/Include/core_cm0.h **** \brief Structure type to access the System Control Block (SCB). - 388:Drivers/CMSIS/Include/core_cm0.h **** */ - 389:Drivers/CMSIS/Include/core_cm0.h **** typedef struct - 390:Drivers/CMSIS/Include/core_cm0.h **** { - 391:Drivers/CMSIS/Include/core_cm0.h **** __IM uint32_t CPUID; /*!< Offset: 0x000 (R/ ) CPUID Base Register */ - 392:Drivers/CMSIS/Include/core_cm0.h **** __IOM uint32_t ICSR; /*!< Offset: 0x004 (R/W) Interrupt Control and State Regi - 393:Drivers/CMSIS/Include/core_cm0.h **** uint32_t RESERVED0; - 394:Drivers/CMSIS/Include/core_cm0.h **** __IOM uint32_t AIRCR; /*!< Offset: 0x00C (R/W) Application Interrupt and Reset - 395:Drivers/CMSIS/Include/core_cm0.h **** __IOM uint32_t SCR; /*!< Offset: 0x010 (R/W) System Control Register */ - 396:Drivers/CMSIS/Include/core_cm0.h **** __IOM uint32_t CCR; /*!< Offset: 0x014 (R/W) Configuration Control Register * - 397:Drivers/CMSIS/Include/core_cm0.h **** uint32_t RESERVED1; - 398:Drivers/CMSIS/Include/core_cm0.h **** __IOM uint32_t SHP[2U]; /*!< Offset: 0x01C (R/W) System Handlers Priority Registe - 399:Drivers/CMSIS/Include/core_cm0.h **** __IOM uint32_t SHCSR; /*!< Offset: 0x024 (R/W) System Handler Control and State - 400:Drivers/CMSIS/Include/core_cm0.h **** } SCB_Type; - ARM GAS /tmp/cc9UFUWX.s page 61 - - - 401:Drivers/CMSIS/Include/core_cm0.h **** - 402:Drivers/CMSIS/Include/core_cm0.h **** /* SCB CPUID Register Definitions */ - 403:Drivers/CMSIS/Include/core_cm0.h **** #define SCB_CPUID_IMPLEMENTER_Pos 24U /*!< SCB - 404:Drivers/CMSIS/Include/core_cm0.h **** #define SCB_CPUID_IMPLEMENTER_Msk (0xFFUL << SCB_CPUID_IMPLEMENTER_Pos) /*!< SCB - 405:Drivers/CMSIS/Include/core_cm0.h **** - 406:Drivers/CMSIS/Include/core_cm0.h **** #define SCB_CPUID_VARIANT_Pos 20U /*!< SCB - 407:Drivers/CMSIS/Include/core_cm0.h **** #define SCB_CPUID_VARIANT_Msk (0xFUL << SCB_CPUID_VARIANT_Pos) /*!< SCB - 408:Drivers/CMSIS/Include/core_cm0.h **** - 409:Drivers/CMSIS/Include/core_cm0.h **** #define SCB_CPUID_ARCHITECTURE_Pos 16U /*!< SCB - 410:Drivers/CMSIS/Include/core_cm0.h **** #define SCB_CPUID_ARCHITECTURE_Msk (0xFUL << SCB_CPUID_ARCHITECTURE_Pos) /*!< SCB - 411:Drivers/CMSIS/Include/core_cm0.h **** - 412:Drivers/CMSIS/Include/core_cm0.h **** #define SCB_CPUID_PARTNO_Pos 4U /*!< SCB - 413:Drivers/CMSIS/Include/core_cm0.h **** #define SCB_CPUID_PARTNO_Msk (0xFFFUL << SCB_CPUID_PARTNO_Pos) /*!< SCB - 414:Drivers/CMSIS/Include/core_cm0.h **** - 415:Drivers/CMSIS/Include/core_cm0.h **** #define SCB_CPUID_REVISION_Pos 0U /*!< SCB - 416:Drivers/CMSIS/Include/core_cm0.h **** #define SCB_CPUID_REVISION_Msk (0xFUL /*<< SCB_CPUID_REVISION_Pos*/) /*!< SCB - 417:Drivers/CMSIS/Include/core_cm0.h **** - 418:Drivers/CMSIS/Include/core_cm0.h **** /* SCB Interrupt Control State Register Definitions */ - 419:Drivers/CMSIS/Include/core_cm0.h **** #define SCB_ICSR_NMIPENDSET_Pos 31U /*!< SCB - 420:Drivers/CMSIS/Include/core_cm0.h **** #define SCB_ICSR_NMIPENDSET_Msk (1UL << SCB_ICSR_NMIPENDSET_Pos) /*!< SCB - 421:Drivers/CMSIS/Include/core_cm0.h **** - 422:Drivers/CMSIS/Include/core_cm0.h **** #define SCB_ICSR_PENDSVSET_Pos 28U /*!< SCB - 423:Drivers/CMSIS/Include/core_cm0.h **** #define SCB_ICSR_PENDSVSET_Msk (1UL << SCB_ICSR_PENDSVSET_Pos) /*!< SCB - 424:Drivers/CMSIS/Include/core_cm0.h **** - 425:Drivers/CMSIS/Include/core_cm0.h **** #define SCB_ICSR_PENDSVCLR_Pos 27U /*!< SCB - 426:Drivers/CMSIS/Include/core_cm0.h **** #define SCB_ICSR_PENDSVCLR_Msk (1UL << SCB_ICSR_PENDSVCLR_Pos) /*!< SCB - 427:Drivers/CMSIS/Include/core_cm0.h **** - 428:Drivers/CMSIS/Include/core_cm0.h **** #define SCB_ICSR_PENDSTSET_Pos 26U /*!< SCB - 429:Drivers/CMSIS/Include/core_cm0.h **** #define SCB_ICSR_PENDSTSET_Msk (1UL << SCB_ICSR_PENDSTSET_Pos) /*!< SCB - 430:Drivers/CMSIS/Include/core_cm0.h **** - 431:Drivers/CMSIS/Include/core_cm0.h **** #define SCB_ICSR_PENDSTCLR_Pos 25U /*!< SCB - 432:Drivers/CMSIS/Include/core_cm0.h **** #define SCB_ICSR_PENDSTCLR_Msk (1UL << SCB_ICSR_PENDSTCLR_Pos) /*!< SCB - 433:Drivers/CMSIS/Include/core_cm0.h **** - 434:Drivers/CMSIS/Include/core_cm0.h **** #define SCB_ICSR_ISRPREEMPT_Pos 23U /*!< SCB - 435:Drivers/CMSIS/Include/core_cm0.h **** #define SCB_ICSR_ISRPREEMPT_Msk (1UL << SCB_ICSR_ISRPREEMPT_Pos) /*!< SCB - 436:Drivers/CMSIS/Include/core_cm0.h **** - 437:Drivers/CMSIS/Include/core_cm0.h **** #define SCB_ICSR_ISRPENDING_Pos 22U /*!< SCB - 438:Drivers/CMSIS/Include/core_cm0.h **** #define SCB_ICSR_ISRPENDING_Msk (1UL << SCB_ICSR_ISRPENDING_Pos) /*!< SCB - 439:Drivers/CMSIS/Include/core_cm0.h **** - 440:Drivers/CMSIS/Include/core_cm0.h **** #define SCB_ICSR_VECTPENDING_Pos 12U /*!< SCB - 441:Drivers/CMSIS/Include/core_cm0.h **** #define SCB_ICSR_VECTPENDING_Msk (0x1FFUL << SCB_ICSR_VECTPENDING_Pos) /*!< SCB - 442:Drivers/CMSIS/Include/core_cm0.h **** - 443:Drivers/CMSIS/Include/core_cm0.h **** #define SCB_ICSR_VECTACTIVE_Pos 0U /*!< SCB - 444:Drivers/CMSIS/Include/core_cm0.h **** #define SCB_ICSR_VECTACTIVE_Msk (0x1FFUL /*<< SCB_ICSR_VECTACTIVE_Pos*/) /*!< SCB - 445:Drivers/CMSIS/Include/core_cm0.h **** - 446:Drivers/CMSIS/Include/core_cm0.h **** /* SCB Application Interrupt and Reset Control Register Definitions */ - 447:Drivers/CMSIS/Include/core_cm0.h **** #define SCB_AIRCR_VECTKEY_Pos 16U /*!< SCB - 448:Drivers/CMSIS/Include/core_cm0.h **** #define SCB_AIRCR_VECTKEY_Msk (0xFFFFUL << SCB_AIRCR_VECTKEY_Pos) /*!< SCB - 449:Drivers/CMSIS/Include/core_cm0.h **** - 450:Drivers/CMSIS/Include/core_cm0.h **** #define SCB_AIRCR_VECTKEYSTAT_Pos 16U /*!< SCB - 451:Drivers/CMSIS/Include/core_cm0.h **** #define SCB_AIRCR_VECTKEYSTAT_Msk (0xFFFFUL << SCB_AIRCR_VECTKEYSTAT_Pos) /*!< SCB - 452:Drivers/CMSIS/Include/core_cm0.h **** - 453:Drivers/CMSIS/Include/core_cm0.h **** #define SCB_AIRCR_ENDIANESS_Pos 15U /*!< SCB - 454:Drivers/CMSIS/Include/core_cm0.h **** #define SCB_AIRCR_ENDIANESS_Msk (1UL << SCB_AIRCR_ENDIANESS_Pos) /*!< SCB - 455:Drivers/CMSIS/Include/core_cm0.h **** - 456:Drivers/CMSIS/Include/core_cm0.h **** #define SCB_AIRCR_SYSRESETREQ_Pos 2U /*!< SCB - 457:Drivers/CMSIS/Include/core_cm0.h **** #define SCB_AIRCR_SYSRESETREQ_Msk (1UL << SCB_AIRCR_SYSRESETREQ_Pos) /*!< SCB - ARM GAS /tmp/cc9UFUWX.s page 62 - - - 458:Drivers/CMSIS/Include/core_cm0.h **** - 459:Drivers/CMSIS/Include/core_cm0.h **** #define SCB_AIRCR_VECTCLRACTIVE_Pos 1U /*!< SCB - 460:Drivers/CMSIS/Include/core_cm0.h **** #define SCB_AIRCR_VECTCLRACTIVE_Msk (1UL << SCB_AIRCR_VECTCLRACTIVE_Pos) /*!< SCB - 461:Drivers/CMSIS/Include/core_cm0.h **** - 462:Drivers/CMSIS/Include/core_cm0.h **** /* SCB System Control Register Definitions */ - 463:Drivers/CMSIS/Include/core_cm0.h **** #define SCB_SCR_SEVONPEND_Pos 4U /*!< SCB - 464:Drivers/CMSIS/Include/core_cm0.h **** #define SCB_SCR_SEVONPEND_Msk (1UL << SCB_SCR_SEVONPEND_Pos) /*!< SCB - 465:Drivers/CMSIS/Include/core_cm0.h **** - 466:Drivers/CMSIS/Include/core_cm0.h **** #define SCB_SCR_SLEEPDEEP_Pos 2U /*!< SCB - 467:Drivers/CMSIS/Include/core_cm0.h **** #define SCB_SCR_SLEEPDEEP_Msk (1UL << SCB_SCR_SLEEPDEEP_Pos) /*!< SCB - 468:Drivers/CMSIS/Include/core_cm0.h **** - 469:Drivers/CMSIS/Include/core_cm0.h **** #define SCB_SCR_SLEEPONEXIT_Pos 1U /*!< SCB - 470:Drivers/CMSIS/Include/core_cm0.h **** #define SCB_SCR_SLEEPONEXIT_Msk (1UL << SCB_SCR_SLEEPONEXIT_Pos) /*!< SCB - 471:Drivers/CMSIS/Include/core_cm0.h **** - 472:Drivers/CMSIS/Include/core_cm0.h **** /* SCB Configuration Control Register Definitions */ - 473:Drivers/CMSIS/Include/core_cm0.h **** #define SCB_CCR_STKALIGN_Pos 9U /*!< SCB - 474:Drivers/CMSIS/Include/core_cm0.h **** #define SCB_CCR_STKALIGN_Msk (1UL << SCB_CCR_STKALIGN_Pos) /*!< SCB - 475:Drivers/CMSIS/Include/core_cm0.h **** - 476:Drivers/CMSIS/Include/core_cm0.h **** #define SCB_CCR_UNALIGN_TRP_Pos 3U /*!< SCB - 477:Drivers/CMSIS/Include/core_cm0.h **** #define SCB_CCR_UNALIGN_TRP_Msk (1UL << SCB_CCR_UNALIGN_TRP_Pos) /*!< SCB - 478:Drivers/CMSIS/Include/core_cm0.h **** - 479:Drivers/CMSIS/Include/core_cm0.h **** /* SCB System Handler Control and State Register Definitions */ - 480:Drivers/CMSIS/Include/core_cm0.h **** #define SCB_SHCSR_SVCALLPENDED_Pos 15U /*!< SCB - 481:Drivers/CMSIS/Include/core_cm0.h **** #define SCB_SHCSR_SVCALLPENDED_Msk (1UL << SCB_SHCSR_SVCALLPENDED_Pos) /*!< SCB - 482:Drivers/CMSIS/Include/core_cm0.h **** - 483:Drivers/CMSIS/Include/core_cm0.h **** /*@} end of group CMSIS_SCB */ - 484:Drivers/CMSIS/Include/core_cm0.h **** - 485:Drivers/CMSIS/Include/core_cm0.h **** - 486:Drivers/CMSIS/Include/core_cm0.h **** /** - 487:Drivers/CMSIS/Include/core_cm0.h **** \ingroup CMSIS_core_register - 488:Drivers/CMSIS/Include/core_cm0.h **** \defgroup CMSIS_SysTick System Tick Timer (SysTick) - 489:Drivers/CMSIS/Include/core_cm0.h **** \brief Type definitions for the System Timer Registers. - 490:Drivers/CMSIS/Include/core_cm0.h **** @{ - 491:Drivers/CMSIS/Include/core_cm0.h **** */ - 492:Drivers/CMSIS/Include/core_cm0.h **** - 493:Drivers/CMSIS/Include/core_cm0.h **** /** - 494:Drivers/CMSIS/Include/core_cm0.h **** \brief Structure type to access the System Timer (SysTick). - 495:Drivers/CMSIS/Include/core_cm0.h **** */ - 496:Drivers/CMSIS/Include/core_cm0.h **** typedef struct - 497:Drivers/CMSIS/Include/core_cm0.h **** { - 498:Drivers/CMSIS/Include/core_cm0.h **** __IOM uint32_t CTRL; /*!< Offset: 0x000 (R/W) SysTick Control and Status Regis - 499:Drivers/CMSIS/Include/core_cm0.h **** __IOM uint32_t LOAD; /*!< Offset: 0x004 (R/W) SysTick Reload Value Register */ - 500:Drivers/CMSIS/Include/core_cm0.h **** __IOM uint32_t VAL; /*!< Offset: 0x008 (R/W) SysTick Current Value Register * - 501:Drivers/CMSIS/Include/core_cm0.h **** __IM uint32_t CALIB; /*!< Offset: 0x00C (R/ ) SysTick Calibration Register */ - 502:Drivers/CMSIS/Include/core_cm0.h **** } SysTick_Type; - 503:Drivers/CMSIS/Include/core_cm0.h **** - 504:Drivers/CMSIS/Include/core_cm0.h **** /* SysTick Control / Status Register Definitions */ - 505:Drivers/CMSIS/Include/core_cm0.h **** #define SysTick_CTRL_COUNTFLAG_Pos 16U /*!< SysT - 506:Drivers/CMSIS/Include/core_cm0.h **** #define SysTick_CTRL_COUNTFLAG_Msk (1UL << SysTick_CTRL_COUNTFLAG_Pos) /*!< SysT - 507:Drivers/CMSIS/Include/core_cm0.h **** - 508:Drivers/CMSIS/Include/core_cm0.h **** #define SysTick_CTRL_CLKSOURCE_Pos 2U /*!< SysT - 509:Drivers/CMSIS/Include/core_cm0.h **** #define SysTick_CTRL_CLKSOURCE_Msk (1UL << SysTick_CTRL_CLKSOURCE_Pos) /*!< SysT - 510:Drivers/CMSIS/Include/core_cm0.h **** - 511:Drivers/CMSIS/Include/core_cm0.h **** #define SysTick_CTRL_TICKINT_Pos 1U /*!< SysT - 512:Drivers/CMSIS/Include/core_cm0.h **** #define SysTick_CTRL_TICKINT_Msk (1UL << SysTick_CTRL_TICKINT_Pos) /*!< SysT - 513:Drivers/CMSIS/Include/core_cm0.h **** - 514:Drivers/CMSIS/Include/core_cm0.h **** #define SysTick_CTRL_ENABLE_Pos 0U /*!< SysT - ARM GAS /tmp/cc9UFUWX.s page 63 - - - 515:Drivers/CMSIS/Include/core_cm0.h **** #define SysTick_CTRL_ENABLE_Msk (1UL /*<< SysTick_CTRL_ENABLE_Pos*/) /*!< SysT - 516:Drivers/CMSIS/Include/core_cm0.h **** - 517:Drivers/CMSIS/Include/core_cm0.h **** /* SysTick Reload Register Definitions */ - 518:Drivers/CMSIS/Include/core_cm0.h **** #define SysTick_LOAD_RELOAD_Pos 0U /*!< SysT - 519:Drivers/CMSIS/Include/core_cm0.h **** #define SysTick_LOAD_RELOAD_Msk (0xFFFFFFUL /*<< SysTick_LOAD_RELOAD_Pos*/) /*!< SysT - 520:Drivers/CMSIS/Include/core_cm0.h **** - 521:Drivers/CMSIS/Include/core_cm0.h **** /* SysTick Current Register Definitions */ - 522:Drivers/CMSIS/Include/core_cm0.h **** #define SysTick_VAL_CURRENT_Pos 0U /*!< SysT - 523:Drivers/CMSIS/Include/core_cm0.h **** #define SysTick_VAL_CURRENT_Msk (0xFFFFFFUL /*<< SysTick_VAL_CURRENT_Pos*/) /*!< SysT - 524:Drivers/CMSIS/Include/core_cm0.h **** - 525:Drivers/CMSIS/Include/core_cm0.h **** /* SysTick Calibration Register Definitions */ - 526:Drivers/CMSIS/Include/core_cm0.h **** #define SysTick_CALIB_NOREF_Pos 31U /*!< SysT - 527:Drivers/CMSIS/Include/core_cm0.h **** #define SysTick_CALIB_NOREF_Msk (1UL << SysTick_CALIB_NOREF_Pos) /*!< SysT - 528:Drivers/CMSIS/Include/core_cm0.h **** - 529:Drivers/CMSIS/Include/core_cm0.h **** #define SysTick_CALIB_SKEW_Pos 30U /*!< SysT - 530:Drivers/CMSIS/Include/core_cm0.h **** #define SysTick_CALIB_SKEW_Msk (1UL << SysTick_CALIB_SKEW_Pos) /*!< SysT - 531:Drivers/CMSIS/Include/core_cm0.h **** - 532:Drivers/CMSIS/Include/core_cm0.h **** #define SysTick_CALIB_TENMS_Pos 0U /*!< SysT - 533:Drivers/CMSIS/Include/core_cm0.h **** #define SysTick_CALIB_TENMS_Msk (0xFFFFFFUL /*<< SysTick_CALIB_TENMS_Pos*/) /*!< SysT - 534:Drivers/CMSIS/Include/core_cm0.h **** - 535:Drivers/CMSIS/Include/core_cm0.h **** /*@} end of group CMSIS_SysTick */ - 536:Drivers/CMSIS/Include/core_cm0.h **** - 537:Drivers/CMSIS/Include/core_cm0.h **** - 538:Drivers/CMSIS/Include/core_cm0.h **** /** - 539:Drivers/CMSIS/Include/core_cm0.h **** \ingroup CMSIS_core_register - 540:Drivers/CMSIS/Include/core_cm0.h **** \defgroup CMSIS_CoreDebug Core Debug Registers (CoreDebug) - 541:Drivers/CMSIS/Include/core_cm0.h **** \brief Cortex-M0 Core Debug Registers (DCB registers, SHCSR, and DFSR) are only accessible ove - 542:Drivers/CMSIS/Include/core_cm0.h **** Therefore they are not covered by the Cortex-M0 header file. - 543:Drivers/CMSIS/Include/core_cm0.h **** @{ - 544:Drivers/CMSIS/Include/core_cm0.h **** */ - 545:Drivers/CMSIS/Include/core_cm0.h **** /*@} end of group CMSIS_CoreDebug */ - 546:Drivers/CMSIS/Include/core_cm0.h **** - 547:Drivers/CMSIS/Include/core_cm0.h **** - 548:Drivers/CMSIS/Include/core_cm0.h **** /** - 549:Drivers/CMSIS/Include/core_cm0.h **** \ingroup CMSIS_core_register - 550:Drivers/CMSIS/Include/core_cm0.h **** \defgroup CMSIS_core_bitfield Core register bit field macros - 551:Drivers/CMSIS/Include/core_cm0.h **** \brief Macros for use with bit field definitions (xxx_Pos, xxx_Msk). - 552:Drivers/CMSIS/Include/core_cm0.h **** @{ - 553:Drivers/CMSIS/Include/core_cm0.h **** */ - 554:Drivers/CMSIS/Include/core_cm0.h **** - 555:Drivers/CMSIS/Include/core_cm0.h **** /** - 556:Drivers/CMSIS/Include/core_cm0.h **** \brief Mask and shift a bit field value for use in a register bit range. - 557:Drivers/CMSIS/Include/core_cm0.h **** \param[in] field Name of the register bit field. - 558:Drivers/CMSIS/Include/core_cm0.h **** \param[in] value Value of the bit field. - 559:Drivers/CMSIS/Include/core_cm0.h **** \return Masked and shifted value. - 560:Drivers/CMSIS/Include/core_cm0.h **** */ - 561:Drivers/CMSIS/Include/core_cm0.h **** #define _VAL2FLD(field, value) ((value << field ## _Pos) & field ## _Msk) - 562:Drivers/CMSIS/Include/core_cm0.h **** - 563:Drivers/CMSIS/Include/core_cm0.h **** /** - 564:Drivers/CMSIS/Include/core_cm0.h **** \brief Mask and shift a register value to extract a bit filed value. - 565:Drivers/CMSIS/Include/core_cm0.h **** \param[in] field Name of the register bit field. - 566:Drivers/CMSIS/Include/core_cm0.h **** \param[in] value Value of register. - 567:Drivers/CMSIS/Include/core_cm0.h **** \return Masked and shifted bit field value. - 568:Drivers/CMSIS/Include/core_cm0.h **** */ - 569:Drivers/CMSIS/Include/core_cm0.h **** #define _FLD2VAL(field, value) ((value & field ## _Msk) >> field ## _Pos) - 570:Drivers/CMSIS/Include/core_cm0.h **** - 571:Drivers/CMSIS/Include/core_cm0.h **** /*@} end of group CMSIS_core_bitfield */ - ARM GAS /tmp/cc9UFUWX.s page 64 - - - 572:Drivers/CMSIS/Include/core_cm0.h **** - 573:Drivers/CMSIS/Include/core_cm0.h **** - 574:Drivers/CMSIS/Include/core_cm0.h **** /** - 575:Drivers/CMSIS/Include/core_cm0.h **** \ingroup CMSIS_core_register - 576:Drivers/CMSIS/Include/core_cm0.h **** \defgroup CMSIS_core_base Core Definitions - 577:Drivers/CMSIS/Include/core_cm0.h **** \brief Definitions for base addresses, unions, and structures. - 578:Drivers/CMSIS/Include/core_cm0.h **** @{ - 579:Drivers/CMSIS/Include/core_cm0.h **** */ - 580:Drivers/CMSIS/Include/core_cm0.h **** - 581:Drivers/CMSIS/Include/core_cm0.h **** /* Memory mapping of Cortex-M0 Hardware */ - 582:Drivers/CMSIS/Include/core_cm0.h **** #define SCS_BASE (0xE000E000UL) /*!< System Control Space Bas - 583:Drivers/CMSIS/Include/core_cm0.h **** #define SysTick_BASE (SCS_BASE + 0x0010UL) /*!< SysTick Base Address */ - 584:Drivers/CMSIS/Include/core_cm0.h **** #define NVIC_BASE (SCS_BASE + 0x0100UL) /*!< NVIC Base Address */ - 585:Drivers/CMSIS/Include/core_cm0.h **** #define SCB_BASE (SCS_BASE + 0x0D00UL) /*!< System Control Block Bas - 586:Drivers/CMSIS/Include/core_cm0.h **** - 587:Drivers/CMSIS/Include/core_cm0.h **** #define SCB ((SCB_Type *) SCB_BASE ) /*!< SCB configuration struct - 588:Drivers/CMSIS/Include/core_cm0.h **** #define SysTick ((SysTick_Type *) SysTick_BASE ) /*!< SysTick configuration st - 589:Drivers/CMSIS/Include/core_cm0.h **** #define NVIC ((NVIC_Type *) NVIC_BASE ) /*!< NVIC configuration struc - 590:Drivers/CMSIS/Include/core_cm0.h **** - 591:Drivers/CMSIS/Include/core_cm0.h **** - 592:Drivers/CMSIS/Include/core_cm0.h **** /*@} */ - 593:Drivers/CMSIS/Include/core_cm0.h **** - 594:Drivers/CMSIS/Include/core_cm0.h **** - 595:Drivers/CMSIS/Include/core_cm0.h **** - 596:Drivers/CMSIS/Include/core_cm0.h **** /******************************************************************************* - 597:Drivers/CMSIS/Include/core_cm0.h **** * Hardware Abstraction Layer - 598:Drivers/CMSIS/Include/core_cm0.h **** Core Function Interface contains: - 599:Drivers/CMSIS/Include/core_cm0.h **** - Core NVIC Functions - 600:Drivers/CMSIS/Include/core_cm0.h **** - Core SysTick Functions - 601:Drivers/CMSIS/Include/core_cm0.h **** - Core Register Access Functions - 602:Drivers/CMSIS/Include/core_cm0.h **** ******************************************************************************/ - 603:Drivers/CMSIS/Include/core_cm0.h **** /** - 604:Drivers/CMSIS/Include/core_cm0.h **** \defgroup CMSIS_Core_FunctionInterface Functions and Instructions Reference - 605:Drivers/CMSIS/Include/core_cm0.h **** */ - 606:Drivers/CMSIS/Include/core_cm0.h **** - 607:Drivers/CMSIS/Include/core_cm0.h **** - 608:Drivers/CMSIS/Include/core_cm0.h **** - 609:Drivers/CMSIS/Include/core_cm0.h **** /* ########################## NVIC functions #################################### */ - 610:Drivers/CMSIS/Include/core_cm0.h **** /** - 611:Drivers/CMSIS/Include/core_cm0.h **** \ingroup CMSIS_Core_FunctionInterface - 612:Drivers/CMSIS/Include/core_cm0.h **** \defgroup CMSIS_Core_NVICFunctions NVIC Functions - 613:Drivers/CMSIS/Include/core_cm0.h **** \brief Functions that manage interrupts and exceptions via the NVIC. - 614:Drivers/CMSIS/Include/core_cm0.h **** @{ - 615:Drivers/CMSIS/Include/core_cm0.h **** */ - 616:Drivers/CMSIS/Include/core_cm0.h **** - 617:Drivers/CMSIS/Include/core_cm0.h **** /* Interrupt Priorities are WORD accessible only under ARMv6M */ - 618:Drivers/CMSIS/Include/core_cm0.h **** /* The following MACROS handle generation of the register offset and byte masks */ - 619:Drivers/CMSIS/Include/core_cm0.h **** #define _BIT_SHIFT(IRQn) ( ((((uint32_t)(int32_t)(IRQn)) ) & 0x03UL) * 8UL) - 620:Drivers/CMSIS/Include/core_cm0.h **** #define _SHP_IDX(IRQn) ( (((((uint32_t)(int32_t)(IRQn)) & 0x0FUL)-8UL) >> 2UL) ) - 621:Drivers/CMSIS/Include/core_cm0.h **** #define _IP_IDX(IRQn) ( (((uint32_t)(int32_t)(IRQn)) >> 2UL) ) - 622:Drivers/CMSIS/Include/core_cm0.h **** - 623:Drivers/CMSIS/Include/core_cm0.h **** - 624:Drivers/CMSIS/Include/core_cm0.h **** /** - 625:Drivers/CMSIS/Include/core_cm0.h **** \brief Enable External Interrupt - 626:Drivers/CMSIS/Include/core_cm0.h **** \details Enables a device-specific interrupt in the NVIC interrupt controller. - 627:Drivers/CMSIS/Include/core_cm0.h **** \param [in] IRQn External interrupt number. Value cannot be negative. - 628:Drivers/CMSIS/Include/core_cm0.h **** */ - ARM GAS /tmp/cc9UFUWX.s page 65 - - - 629:Drivers/CMSIS/Include/core_cm0.h **** __STATIC_INLINE void NVIC_EnableIRQ(IRQn_Type IRQn) - 630:Drivers/CMSIS/Include/core_cm0.h **** { - 631:Drivers/CMSIS/Include/core_cm0.h **** NVIC->ISER[0U] = (uint32_t)(1UL << (((uint32_t)(int32_t)IRQn) & 0x1FUL)); - 632:Drivers/CMSIS/Include/core_cm0.h **** } - 633:Drivers/CMSIS/Include/core_cm0.h **** - 634:Drivers/CMSIS/Include/core_cm0.h **** - 635:Drivers/CMSIS/Include/core_cm0.h **** /** - 636:Drivers/CMSIS/Include/core_cm0.h **** \brief Disable External Interrupt - 637:Drivers/CMSIS/Include/core_cm0.h **** \details Disables a device-specific interrupt in the NVIC interrupt controller. - 638:Drivers/CMSIS/Include/core_cm0.h **** \param [in] IRQn External interrupt number. Value cannot be negative. - 639:Drivers/CMSIS/Include/core_cm0.h **** */ - 640:Drivers/CMSIS/Include/core_cm0.h **** __STATIC_INLINE void NVIC_DisableIRQ(IRQn_Type IRQn) - 641:Drivers/CMSIS/Include/core_cm0.h **** { - 642:Drivers/CMSIS/Include/core_cm0.h **** NVIC->ICER[0U] = (uint32_t)(1UL << (((uint32_t)(int32_t)IRQn) & 0x1FUL)); - 643:Drivers/CMSIS/Include/core_cm0.h **** } - 644:Drivers/CMSIS/Include/core_cm0.h **** - 645:Drivers/CMSIS/Include/core_cm0.h **** - 646:Drivers/CMSIS/Include/core_cm0.h **** /** - 647:Drivers/CMSIS/Include/core_cm0.h **** \brief Get Pending Interrupt - 648:Drivers/CMSIS/Include/core_cm0.h **** \details Reads the pending register in the NVIC and returns the pending bit for the specified int - 649:Drivers/CMSIS/Include/core_cm0.h **** \param [in] IRQn Interrupt number. - 650:Drivers/CMSIS/Include/core_cm0.h **** \return 0 Interrupt status is not pending. - 651:Drivers/CMSIS/Include/core_cm0.h **** \return 1 Interrupt status is pending. - 652:Drivers/CMSIS/Include/core_cm0.h **** */ - 653:Drivers/CMSIS/Include/core_cm0.h **** __STATIC_INLINE uint32_t NVIC_GetPendingIRQ(IRQn_Type IRQn) - 654:Drivers/CMSIS/Include/core_cm0.h **** { - 655:Drivers/CMSIS/Include/core_cm0.h **** return((uint32_t)(((NVIC->ISPR[0U] & (1UL << (((uint32_t)(int32_t)IRQn) & 0x1FUL))) != 0UL) ? 1UL - 656:Drivers/CMSIS/Include/core_cm0.h **** } - 657:Drivers/CMSIS/Include/core_cm0.h **** - 658:Drivers/CMSIS/Include/core_cm0.h **** - 659:Drivers/CMSIS/Include/core_cm0.h **** /** - 660:Drivers/CMSIS/Include/core_cm0.h **** \brief Set Pending Interrupt - 661:Drivers/CMSIS/Include/core_cm0.h **** \details Sets the pending bit of an external interrupt. - 662:Drivers/CMSIS/Include/core_cm0.h **** \param [in] IRQn Interrupt number. Value cannot be negative. - 663:Drivers/CMSIS/Include/core_cm0.h **** */ - 664:Drivers/CMSIS/Include/core_cm0.h **** __STATIC_INLINE void NVIC_SetPendingIRQ(IRQn_Type IRQn) - 665:Drivers/CMSIS/Include/core_cm0.h **** { - 666:Drivers/CMSIS/Include/core_cm0.h **** NVIC->ISPR[0U] = (uint32_t)(1UL << (((uint32_t)(int32_t)IRQn) & 0x1FUL)); - 667:Drivers/CMSIS/Include/core_cm0.h **** } - 668:Drivers/CMSIS/Include/core_cm0.h **** - 669:Drivers/CMSIS/Include/core_cm0.h **** - 670:Drivers/CMSIS/Include/core_cm0.h **** /** - 671:Drivers/CMSIS/Include/core_cm0.h **** \brief Clear Pending Interrupt - 672:Drivers/CMSIS/Include/core_cm0.h **** \details Clears the pending bit of an external interrupt. - 673:Drivers/CMSIS/Include/core_cm0.h **** \param [in] IRQn External interrupt number. Value cannot be negative. - 674:Drivers/CMSIS/Include/core_cm0.h **** */ - 675:Drivers/CMSIS/Include/core_cm0.h **** __STATIC_INLINE void NVIC_ClearPendingIRQ(IRQn_Type IRQn) - 676:Drivers/CMSIS/Include/core_cm0.h **** { - 677:Drivers/CMSIS/Include/core_cm0.h **** NVIC->ICPR[0U] = (uint32_t)(1UL << (((uint32_t)(int32_t)IRQn) & 0x1FUL)); - 678:Drivers/CMSIS/Include/core_cm0.h **** } - 679:Drivers/CMSIS/Include/core_cm0.h **** - 680:Drivers/CMSIS/Include/core_cm0.h **** - 681:Drivers/CMSIS/Include/core_cm0.h **** /** - 682:Drivers/CMSIS/Include/core_cm0.h **** \brief Set Interrupt Priority - 683:Drivers/CMSIS/Include/core_cm0.h **** \details Sets the priority of an interrupt. - 684:Drivers/CMSIS/Include/core_cm0.h **** \note The priority cannot be set for every core interrupt. - 685:Drivers/CMSIS/Include/core_cm0.h **** \param [in] IRQn Interrupt number. - ARM GAS /tmp/cc9UFUWX.s page 66 - - - 686:Drivers/CMSIS/Include/core_cm0.h **** \param [in] priority Priority to set. - 687:Drivers/CMSIS/Include/core_cm0.h **** */ - 688:Drivers/CMSIS/Include/core_cm0.h **** __STATIC_INLINE void NVIC_SetPriority(IRQn_Type IRQn, uint32_t priority) - 689:Drivers/CMSIS/Include/core_cm0.h **** { - 690:Drivers/CMSIS/Include/core_cm0.h **** if ((int32_t)(IRQn) < 0) - 691:Drivers/CMSIS/Include/core_cm0.h **** { - 692:Drivers/CMSIS/Include/core_cm0.h **** SCB->SHP[_SHP_IDX(IRQn)] = ((uint32_t)(SCB->SHP[_SHP_IDX(IRQn)] & ~(0xFFUL << _BIT_SHIFT(IRQn)) - 693:Drivers/CMSIS/Include/core_cm0.h **** (((priority << (8U - __NVIC_PRIO_BITS)) & (uint32_t)0xFFUL) << _BIT_SHIFT(IRQn))); - 694:Drivers/CMSIS/Include/core_cm0.h **** } - 695:Drivers/CMSIS/Include/core_cm0.h **** else - 696:Drivers/CMSIS/Include/core_cm0.h **** { - 697:Drivers/CMSIS/Include/core_cm0.h **** NVIC->IP[_IP_IDX(IRQn)] = ((uint32_t)(NVIC->IP[_IP_IDX(IRQn)] & ~(0xFFUL << _BIT_SHIFT(IRQn)) - 698:Drivers/CMSIS/Include/core_cm0.h **** (((priority << (8U - __NVIC_PRIO_BITS)) & (uint32_t)0xFFUL) << _BIT_SHIFT(IRQn))); - 699:Drivers/CMSIS/Include/core_cm0.h **** } - 700:Drivers/CMSIS/Include/core_cm0.h **** } - 701:Drivers/CMSIS/Include/core_cm0.h **** - 702:Drivers/CMSIS/Include/core_cm0.h **** - 703:Drivers/CMSIS/Include/core_cm0.h **** /** - 704:Drivers/CMSIS/Include/core_cm0.h **** \brief Get Interrupt Priority - 705:Drivers/CMSIS/Include/core_cm0.h **** \details Reads the priority of an interrupt. - 706:Drivers/CMSIS/Include/core_cm0.h **** The interrupt number can be positive to specify an external (device specific) interrupt, - 707:Drivers/CMSIS/Include/core_cm0.h **** or negative to specify an internal (core) interrupt. - 708:Drivers/CMSIS/Include/core_cm0.h **** \param [in] IRQn Interrupt number. - 709:Drivers/CMSIS/Include/core_cm0.h **** \return Interrupt Priority. - 710:Drivers/CMSIS/Include/core_cm0.h **** Value is aligned automatically to the implemented priority bits of the microc - 711:Drivers/CMSIS/Include/core_cm0.h **** */ - 712:Drivers/CMSIS/Include/core_cm0.h **** __STATIC_INLINE uint32_t NVIC_GetPriority(IRQn_Type IRQn) - 713:Drivers/CMSIS/Include/core_cm0.h **** { - 714:Drivers/CMSIS/Include/core_cm0.h **** - 715:Drivers/CMSIS/Include/core_cm0.h **** if ((int32_t)(IRQn) < 0) - 716:Drivers/CMSIS/Include/core_cm0.h **** { - 717:Drivers/CMSIS/Include/core_cm0.h **** return((uint32_t)(((SCB->SHP[_SHP_IDX(IRQn)] >> _BIT_SHIFT(IRQn) ) & (uint32_t)0xFFUL) >> (8U - - 718:Drivers/CMSIS/Include/core_cm0.h **** } - 719:Drivers/CMSIS/Include/core_cm0.h **** else - 720:Drivers/CMSIS/Include/core_cm0.h **** { - 721:Drivers/CMSIS/Include/core_cm0.h **** return((uint32_t)(((NVIC->IP[ _IP_IDX(IRQn)] >> _BIT_SHIFT(IRQn) ) & (uint32_t)0xFFUL) >> (8U - - 722:Drivers/CMSIS/Include/core_cm0.h **** } - 723:Drivers/CMSIS/Include/core_cm0.h **** } - 724:Drivers/CMSIS/Include/core_cm0.h **** - 725:Drivers/CMSIS/Include/core_cm0.h **** - 726:Drivers/CMSIS/Include/core_cm0.h **** /** - 727:Drivers/CMSIS/Include/core_cm0.h **** \brief System Reset - 728:Drivers/CMSIS/Include/core_cm0.h **** \details Initiates a system reset request to reset the MCU. - 729:Drivers/CMSIS/Include/core_cm0.h **** */ - 730:Drivers/CMSIS/Include/core_cm0.h **** __STATIC_INLINE void NVIC_SystemReset(void) - 731:Drivers/CMSIS/Include/core_cm0.h **** { - 732:Drivers/CMSIS/Include/core_cm0.h **** __DSB(); /* Ensure all outstanding memor - 733:Drivers/CMSIS/Include/core_cm0.h **** buffered write are completed - 734:Drivers/CMSIS/Include/core_cm0.h **** SCB->AIRCR = ((0x5FAUL << SCB_AIRCR_VECTKEY_Pos) | - 1816 .loc 3 734 0 - 1817 00a2 9A4B ldr r3, .L111+24 - 1818 00a4 9A4A ldr r2, .L111+28 - 1819 00a6 DA60 str r2, [r3, #12] - 1820 .LBB33: - 1821 .LBB34: - 1822 .loc 2 429 0 - 1823 .syntax divided - ARM GAS /tmp/cc9UFUWX.s page 67 - - - 1824 @ 429 "Drivers/CMSIS/Include/cmsis_gcc.h" 1 - 1825 00a8 BFF34F8F dsb 0xF - 1826 @ 0 "" 2 - 1827 .thumb - 1828 .syntax unified - 1829 .L91: - 1830 .LBE34: - 1831 .LBE33: - 1832 .LBB35: - 1833 .LBB36: - 375:Drivers/CMSIS/Include/cmsis_gcc.h **** } - 1834 .loc 2 375 0 - 1835 .syntax divided - 1836 @ 375 "Drivers/CMSIS/Include/cmsis_gcc.h" 1 - 1837 00ac C046 nop - 1838 @ 0 "" 2 - 1839 .thumb - 1840 .syntax unified - 1841 00ae FDE7 b .L91 - 1842 .L90: - 1843 .LBE36: - 1844 .LBE35: - 1845 .LBE30: - 1846 .LBE29: - 124:Src/main.c **** draw_string("by Jan Henrik", 10, 9 ,1); - 1847 .loc 1 124 0 - 1848 00b0 0123 movs r3, #1 - 1849 00b2 0122 movs r2, #1 - 1850 00b4 0F21 movs r1, #15 - 1851 00b6 9748 ldr r0, .L111+32 - 1852 00b8 FFF7FEFF bl draw_string - 1853 .LVL158: - 125:Src/main.c **** refresh(); - 1854 .loc 1 125 0 - 1855 00bc 0123 movs r3, #1 - 1856 00be 0922 movs r2, #9 - 1857 00c0 0A21 movs r1, #10 - 1858 00c2 9548 ldr r0, .L111+36 - 1859 00c4 FFF7FEFF bl draw_string - 1860 .LVL159: - 126:Src/main.c **** } - 1861 .loc 1 126 0 - 1862 00c8 FFF7FEFF bl refresh - 1863 .LVL160: - 128:Src/main.c **** - 1864 .loc 1 128 0 - 1865 00cc FA20 movs r0, #250 - 1866 00ce 8000 lsls r0, r0, #2 - 1867 00d0 FFF7FEFF bl HAL_Delay - 1868 .LVL161: - 130:Src/main.c **** - 1869 .loc 1 130 0 - 1870 00d4 914B ldr r3, .L111+40 - 1871 00d6 1888 ldrh r0, [r3] - 1872 00d8 FFF7FEFF bl __aeabi_ui2f - 1873 .LVL162: - 1874 00dc 904B ldr r3, .L111+44 - ARM GAS /tmp/cc9UFUWX.s page 68 - - - 1875 00de 1860 str r0, [r3] - 1876 00e0 DDE0 b .L102 - 1877 .L109: - 1878 .LBB37: - 141:Src/main.c **** s.writeFlash = 1; - 1879 .loc 1 141 0 - 1880 00e2 8F4C ldr r4, .L111+44 - 1881 00e4 8F49 ldr r1, .L111+48 - 1882 00e6 2068 ldr r0, [r4] - 1883 00e8 FFF7FEFF bl __aeabi_fsub - 1884 .LVL163: - 1885 00ec 2060 str r0, [r4] - 142:Src/main.c **** HAL_Delay(50); - 1886 .loc 1 142 0 - 1887 00ee 8E4B ldr r3, .L111+52 - 1888 00f0 0122 movs r2, #1 - 1889 00f2 1A75 strb r2, [r3, #20] - 143:Src/main.c **** } - 1890 .loc 1 143 0 - 1891 00f4 3220 movs r0, #50 - 1892 00f6 FFF7FEFF bl HAL_Delay - 1893 .LVL164: - 1894 00fa E4E0 b .L92 - 1895 .L110: - 147:Src/main.c **** s.writeFlash = 1; - 1896 .loc 1 147 0 - 1897 00fc 884C ldr r4, .L111+44 - 1898 00fe 8949 ldr r1, .L111+48 - 1899 0100 2068 ldr r0, [r4] - 1900 0102 FFF7FEFF bl __aeabi_fadd - 1901 .LVL165: - 1902 0106 2060 str r0, [r4] - 148:Src/main.c **** HAL_Delay(50); - 1903 .loc 1 148 0 - 1904 0108 874B ldr r3, .L111+52 - 1905 010a 0122 movs r2, #1 - 1906 010c 1A75 strb r2, [r3, #20] - 149:Src/main.c **** } - 1907 .loc 1 149 0 - 1908 010e 3220 movs r0, #50 - 1909 0110 FFF7FEFF bl HAL_Delay - 1910 .LVL166: - 1911 0114 DCE0 b .L93 - 1912 .L103: - 152:Src/main.c **** - 1913 .loc 1 152 0 - 1914 0116 854C ldr r4, .L111+56 - 1915 .L94: - 152:Src/main.c **** - 1916 .loc 1 152 0 is_stmt 0 discriminator 8 - 1917 0118 814B ldr r3, .L111+44 - 1918 011a 1C60 str r4, [r3] - 154:Src/main.c **** HAL_FLASH_Unlock(); - 1919 .loc 1 154 0 is_stmt 1 discriminator 8 - 1920 011c 824B ldr r3, .L111+52 - 1921 011e 0122 movs r2, #1 - 1922 0120 1A75 strb r2, [r3, #20] - ARM GAS /tmp/cc9UFUWX.s page 69 - - - 155:Src/main.c **** FLASH->CR |= FLASH_CR_PER; - 1923 .loc 1 155 0 discriminator 8 - 1924 0122 FFF7FEFF bl HAL_FLASH_Unlock - 1925 .LVL167: - 156:Src/main.c **** FLASH->AR = 0x0800e400; - 1926 .loc 1 156 0 discriminator 8 - 1927 0126 824B ldr r3, .L111+60 - 1928 0128 1A69 ldr r2, [r3, #16] - 1929 012a 0221 movs r1, #2 - 1930 012c 0A43 orrs r2, r1 - 1931 012e 1A61 str r2, [r3, #16] - 157:Src/main.c **** FLASH->CR |= FLASH_CR_STRT; - 1932 .loc 1 157 0 discriminator 8 - 1933 0130 7A4A ldr r2, .L111+40 - 1934 0132 5A61 str r2, [r3, #20] - 158:Src/main.c **** while ((FLASH->SR & FLASH_SR_BSY) != 0){} - 1935 .loc 1 158 0 discriminator 8 - 1936 0134 1A69 ldr r2, [r3, #16] - 1937 0136 3E31 adds r1, r1, #62 - 1938 0138 0A43 orrs r2, r1 - 1939 013a 1A61 str r2, [r3, #16] - 1940 .L96: - 159:Src/main.c **** if ((FLASH->SR & FLASH_SR_EOP) != 0){ - 1941 .loc 1 159 0 discriminator 1 - 1942 013c 7C4B ldr r3, .L111+60 - 1943 013e DB68 ldr r3, [r3, #12] - 1944 0140 DB07 lsls r3, r3, #31 - 1945 0142 FBD4 bmi .L96 - 160:Src/main.c **** FLASH->SR |= FLASH_SR_EOP; - 1946 .loc 1 160 0 - 1947 0144 7A4B ldr r3, .L111+60 - 1948 0146 DB68 ldr r3, [r3, #12] - 1949 0148 9B06 lsls r3, r3, #26 - 1950 014a 65D4 bmi .L107 - 1951 .L97: - 170:Src/main.c **** char str2[10] = " "; - 1952 .loc 1 170 0 - 1953 014c 03AE add r6, sp, #12 - 1954 014e 794B ldr r3, .L111+64 - 1955 0150 3100 movs r1, r6 - 1956 0152 1A00 movs r2, r3 - 1957 0154 11CA ldmia r2!, {r0, r4} - 1958 0156 11C1 stmia r1!, {r0, r4} - 1959 0158 1088 ldrh r0, [r2] - 1960 015a 0880 strh r0, [r1] - 171:Src/main.c **** char str3[10] = " "; - 1961 .loc 1 171 0 - 1962 015c 06AD add r5, sp, #24 - 1963 015e 2900 movs r1, r5 - 1964 0160 1800 movs r0, r3 - 1965 0162 90C8 ldmia r0!, {r4, r7} - 1966 0164 90C1 stmia r1!, {r4, r7} - 1967 0166 1088 ldrh r0, [r2] - 1968 0168 0880 strh r0, [r1] - 172:Src/main.c **** sprintf(str1, "%d C", (uint16_t)r.target); - 1969 .loc 1 172 0 - 1970 016a 09AC add r4, sp, #36 - ARM GAS /tmp/cc9UFUWX.s page 70 - - - 1971 016c 2100 movs r1, r4 - 1972 016e 81CB ldmia r3!, {r0, r7} - 1973 0170 81C1 stmia r1!, {r0, r7} - 1974 0172 1388 ldrh r3, [r2] - 1975 0174 0B80 strh r3, [r1] - 173:Src/main.c **** sprintf(str2, "%d.%d C", (uint16_t)s.ttipavg,(uint16_t)((s.ttipavg-(uint16_t)s.ttipavg)*10.0f)) - 1976 .loc 1 173 0 - 1977 0176 6A4B ldr r3, .L111+44 - 1978 0178 1868 ldr r0, [r3] - 1979 017a FFF7FEFF bl __aeabi_f2uiz - 1980 .LVL168: - 1981 017e 82B2 uxth r2, r0 - 1982 0180 6D49 ldr r1, .L111+68 - 1983 0182 3000 movs r0, r6 - 1984 0184 FFF7FEFF bl sprintf - 1985 .LVL169: - 174:Src/main.c **** sprintf(str3, "%d.%d V", (uint16_t)s.uin,(uint16_t)((s.uin-(uint16_t)s.uin)*10.0f)); - 1986 .loc 1 174 0 - 1987 0188 674F ldr r7, .L111+52 - 1988 018a 7B68 ldr r3, [r7, #4] - 1989 018c 0093 str r3, [sp] - 1990 018e 181C adds r0, r3, #0 - 1991 0190 FFF7FEFF bl __aeabi_f2uiz - 1992 .LVL170: - 1993 0194 82B2 uxth r2, r0 - 1994 0196 0192 str r2, [sp, #4] - 1995 0198 1000 movs r0, r2 - 1996 019a FFF7FEFF bl __aeabi_i2f - 1997 .LVL171: - 1998 019e 011C adds r1, r0, #0 - 1999 01a0 0098 ldr r0, [sp] - 2000 01a2 FFF7FEFF bl __aeabi_fsub - 2001 .LVL172: - 2002 01a6 6549 ldr r1, .L111+72 - 2003 01a8 FFF7FEFF bl __aeabi_fmul - 2004 .LVL173: - 2005 01ac FFF7FEFF bl __aeabi_f2uiz - 2006 .LVL174: - 2007 01b0 83B2 uxth r3, r0 - 2008 01b2 019A ldr r2, [sp, #4] - 2009 01b4 6249 ldr r1, .L111+76 - 2010 01b6 2800 movs r0, r5 - 2011 01b8 FFF7FEFF bl sprintf - 2012 .LVL175: - 175:Src/main.c **** - 2013 .loc 1 175 0 - 2014 01bc BF68 ldr r7, [r7, #8] - 2015 01be 381C adds r0, r7, #0 - 2016 01c0 FFF7FEFF bl __aeabi_f2uiz - 2017 .LVL176: - 2018 01c4 83B2 uxth r3, r0 - 2019 01c6 0093 str r3, [sp] - 2020 01c8 1800 movs r0, r3 - 2021 01ca FFF7FEFF bl __aeabi_i2f - 2022 .LVL177: - 2023 01ce 011C adds r1, r0, #0 - 2024 01d0 381C adds r0, r7, #0 - ARM GAS /tmp/cc9UFUWX.s page 71 - - - 2025 01d2 FFF7FEFF bl __aeabi_fsub - 2026 .LVL178: - 2027 01d6 5949 ldr r1, .L111+72 - 2028 01d8 FFF7FEFF bl __aeabi_fmul - 2029 .LVL179: - 2030 01dc FFF7FEFF bl __aeabi_f2uiz - 2031 .LVL180: - 2032 01e0 83B2 uxth r3, r0 - 2033 01e2 009A ldr r2, [sp] - 2034 01e4 5749 ldr r1, .L111+80 - 2035 01e6 2000 movs r0, r4 - 2036 01e8 FFF7FEFF bl sprintf - 2037 .LVL181: - 177:Src/main.c **** draw_string(str1, 10, 1 ,1); - 2038 .loc 1 177 0 - 2039 01ec FFF7FEFF bl clear_screen - 2040 .LVL182: - 178:Src/main.c **** draw_string(str2, 10, 9 ,1); - 2041 .loc 1 178 0 - 2042 01f0 0123 movs r3, #1 - 2043 01f2 0122 movs r2, #1 - 2044 01f4 0A21 movs r1, #10 - 2045 01f6 3000 movs r0, r6 - 2046 01f8 FFF7FEFF bl draw_string - 2047 .LVL183: - 179:Src/main.c **** draw_string(str3, 60, 1 ,1); - 2048 .loc 1 179 0 - 2049 01fc 0123 movs r3, #1 - 2050 01fe 0922 movs r2, #9 - 2051 0200 0A21 movs r1, #10 - 2052 0202 2800 movs r0, r5 - 2053 0204 FFF7FEFF bl draw_string - 2054 .LVL184: - 180:Src/main.c **** - 2055 .loc 1 180 0 - 2056 0208 0123 movs r3, #1 - 2057 020a 0122 movs r2, #1 - 2058 020c 3C21 movs r1, #60 - 2059 020e 2000 movs r0, r4 - 2060 0210 FFF7FEFF bl draw_string - 2061 .LVL185: - 2062 .LBB38: - 182:Src/main.c **** draw_v_line(60+i, 8, 8, 1); - 2063 .loc 1 182 0 - 2064 0214 0024 movs r4, #0 - 2065 0216 29E0 b .L98 - 2066 .LVL186: - 2067 .L107: - 2068 .LBE38: - 161:Src/main.c **** FLASH->CR &= ~FLASH_CR_PER; - 2069 .loc 1 161 0 - 2070 0218 454B ldr r3, .L111+60 - 2071 021a DA68 ldr r2, [r3, #12] - 2072 021c 2021 movs r1, #32 - 2073 021e 0A43 orrs r2, r1 - 2074 0220 DA60 str r2, [r3, #12] - 162:Src/main.c **** HAL_FLASH_Program(FLASH_TYPEPROGRAM_HALFWORD, 0x0800e400, (uint16_t)r.target); - ARM GAS /tmp/cc9UFUWX.s page 72 - - - 2075 .loc 1 162 0 - 2076 0222 1A69 ldr r2, [r3, #16] - 2077 0224 1E39 subs r1, r1, #30 - 2078 0226 8A43 bics r2, r1 - 2079 0228 1A61 str r2, [r3, #16] - 163:Src/main.c **** HAL_FLASH_Lock(); - 2080 .loc 1 163 0 - 2081 022a 3D4B ldr r3, .L111+44 - 2082 022c 1868 ldr r0, [r3] - 2083 022e FFF7FEFF bl __aeabi_f2uiz - 2084 .LVL187: - 2085 0232 82B2 uxth r2, r0 - 2086 0234 0023 movs r3, #0 - 2087 0236 3949 ldr r1, .L111+40 - 2088 0238 0120 movs r0, #1 - 2089 023a FFF7FEFF bl HAL_FLASH_Program - 2090 .LVL188: - 164:Src/main.c **** s.writeFlash = 0; - 2091 .loc 1 164 0 - 2092 023e FFF7FEFF bl HAL_FLASH_Lock - 2093 .LVL189: - 165:Src/main.c **** } - 2094 .loc 1 165 0 - 2095 0242 0022 movs r2, #0 - 2096 0244 384B ldr r3, .L111+52 - 2097 0246 1A75 strb r2, [r3, #20] - 2098 0248 80E7 b .L97 - 2099 .LVL190: - 2100 .L104: - 2101 .LBB39: - 182:Src/main.c **** draw_v_line(60+i, 8, 8, 1); - 2102 .loc 1 182 0 - 2103 024a 3F4D ldr r5, .L111+84 - 2104 .L99: - 182:Src/main.c **** draw_v_line(60+i, 8, 8, 1); - 2105 .loc 1 182 0 is_stmt 0 discriminator 10 - 2106 024c 291C adds r1, r5, #0 - 2107 024e 301C adds r0, r6, #0 - 2108 0250 FFF7FEFF bl __aeabi_fcmple - 2109 .LVL191: - 2110 0254 0028 cmp r0, #0 - 2111 0256 20D0 beq .L108 - 183:Src/main.c **** } - 2112 .loc 1 183 0 is_stmt 1 discriminator 11 - 2113 0258 2000 movs r0, r4 - 2114 025a 3C30 adds r0, r0, #60 - 2115 025c 00B2 sxth r0, r0 - 2116 025e 0123 movs r3, #1 - 2117 0260 0822 movs r2, #8 - 2118 0262 0821 movs r1, #8 - 2119 0264 FFF7FEFF bl draw_v_line - 2120 .LVL192: - 182:Src/main.c **** draw_v_line(60+i, 8, 8, 1); - 2121 .loc 1 182 0 discriminator 11 - 2122 0268 0134 adds r4, r4, #1 - 2123 .LVL193: - 2124 026a A4B2 uxth r4, r4 - ARM GAS /tmp/cc9UFUWX.s page 73 - - - 2125 .LVL194: - 2126 .L98: - 182:Src/main.c **** draw_v_line(60+i, 8, 8, 1); - 2127 .loc 1 182 0 is_stmt 0 discriminator 1 - 2128 026c 2000 movs r0, r4 - 2129 026e FFF7FEFF bl __aeabi_i2f - 2130 .LVL195: - 2131 0272 061C adds r6, r0, #0 - 2132 0274 2A4B ldr r3, .L111+44 - 2133 0276 5868 ldr r0, [r3, #4] - 2134 0278 3449 ldr r1, .L111+88 - 2135 027a FFF7FEFF bl __aeabi_fmul - 2136 .LVL196: - 2137 027e 051C adds r5, r0, #0 - 2138 0280 3149 ldr r1, .L111+84 - 2139 0282 FFF7FEFF bl __aeabi_fcmpgt - 2140 .LVL197: - 2141 0286 0028 cmp r0, #0 - 2142 0288 DFD1 bne .L104 - 182:Src/main.c **** draw_v_line(60+i, 8, 8, 1); - 2143 .loc 1 182 0 discriminator 4 - 2144 028a 0021 movs r1, #0 - 2145 028c 281C adds r0, r5, #0 - 2146 028e FFF7FEFF bl __aeabi_fcmplt - 2147 .LVL198: - 2148 0292 0028 cmp r0, #0 - 2149 0294 DAD0 beq .L99 - 182:Src/main.c **** draw_v_line(60+i, 8, 8, 1); - 2150 .loc 1 182 0 - 2151 0296 0025 movs r5, #0 - 2152 0298 D8E7 b .L99 - 2153 .L108: - 2154 .LBE39: - 186:Src/main.c **** } - 2155 .loc 1 186 0 is_stmt 1 - 2156 029a FFF7FEFF bl refresh - 2157 .LVL199: - 2158 .L102: - 134:Src/main.c **** - 2159 .loc 1 134 0 - 2160 029e 3220 movs r0, #50 - 2161 02a0 FFF7FEFF bl HAL_Delay - 2162 .LVL200: - 137:Src/main.c **** s.button[1] = HAL_GPIO_ReadPin(GPIOA,B2_Pin); - 2163 .loc 1 137 0 - 2164 02a4 9025 movs r5, #144 - 2165 02a6 ED05 lsls r5, r5, #23 - 2166 02a8 0821 movs r1, #8 - 2167 02aa 2800 movs r0, r5 - 2168 02ac FFF7FEFF bl HAL_GPIO_ReadPin - 2169 .LVL201: - 2170 02b0 1D4C ldr r4, .L111+52 - 2171 02b2 6075 strb r0, [r4, #21] - 138:Src/main.c **** - 2172 .loc 1 138 0 - 2173 02b4 1021 movs r1, #16 - 2174 02b6 2800 movs r0, r5 - ARM GAS /tmp/cc9UFUWX.s page 74 - - - 2175 02b8 FFF7FEFF bl HAL_GPIO_ReadPin - 2176 .LVL202: - 2177 02bc A075 strb r0, [r4, #22] - 140:Src/main.c **** r.target -= 5; - 2178 .loc 1 140 0 - 2179 02be 637D ldrb r3, [r4, #21] - 2180 02c0 012B cmp r3, #1 - 2181 02c2 00D1 bne .LCB1883 - 2182 02c4 0DE7 b .L109 @long jump - 2183 .LCB1883: - 2184 .L92: - 146:Src/main.c **** r.target += 5; - 2185 .loc 1 146 0 - 2186 02c6 184B ldr r3, .L111+52 - 2187 02c8 9B7D ldrb r3, [r3, #22] - 2188 02ca 012B cmp r3, #1 - 2189 02cc 00D1 bne .LCB1888 - 2190 02ce 15E7 b .L110 @long jump - 2191 .LCB1888: - 2192 .L93: - 152:Src/main.c **** - 2193 .loc 1 152 0 - 2194 02d0 134B ldr r3, .L111+44 - 2195 02d2 1C68 ldr r4, [r3] - 2196 02d4 1549 ldr r1, .L111+56 - 2197 02d6 201C adds r0, r4, #0 - 2198 02d8 FFF7FEFF bl __aeabi_fcmpgt - 2199 .LVL203: - 2200 02dc 0028 cmp r0, #0 - 2201 02de 00D0 beq .LCB1897 - 2202 02e0 19E7 b .L103 @long jump - 2203 .LCB1897: - 152:Src/main.c **** - 2204 .loc 1 152 0 is_stmt 0 discriminator 2 - 2205 02e2 1B49 ldr r1, .L111+92 - 2206 02e4 201C adds r0, r4, #0 - 2207 02e6 FFF7FEFF bl __aeabi_fcmplt - 2208 .LVL204: - 2209 02ea 0028 cmp r0, #0 - 2210 02ec 00D1 bne .LCB1903 - 2211 02ee 13E7 b .L94 @long jump - 2212 .LCB1903: - 152:Src/main.c **** - 2213 .loc 1 152 0 - 2214 02f0 174C ldr r4, .L111+92 - 2215 02f2 11E7 b .L94 - 2216 .L112: - 2217 .align 2 - 2218 .L111: - 2219 02f4 00000000 .word htim1 - 2220 02f8 00000000 .word .LANCHOR0 - 2221 02fc 00000000 .word hadc - 2222 0300 00000000 .word .LC23 - 2223 0304 F03F0020 .word 536887280 - 2224 0308 EFBEADDE .word -559038737 - 2225 030c 00ED00E0 .word -536810240 - 2226 0310 0400FA05 .word 100270084 - ARM GAS /tmp/cc9UFUWX.s page 75 - - - 2227 0314 10000000 .word .LC25 - 2228 0318 1C000000 .word .LC27 - 2229 031c 00E40008 .word 134276096 - 2230 0320 00000000 .word .LANCHOR3 - 2231 0324 0000A040 .word 1084227584 - 2232 0328 00000000 .word .LANCHOR1 - 2233 032c 0000C843 .word 1137180672 - 2234 0330 00200240 .word 1073881088 - 2235 0334 00000000 .word .LANCHOR6 - 2236 0338 2C000000 .word .LC33 - 2237 033c 00002041 .word 1092616192 - 2238 0340 34000000 .word .LC35 - 2239 0344 3C000000 .word .LC37 - 2240 0348 0000F041 .word 1106247680 - 2241 034c 00004040 .word 1077936128 - 2242 0350 0000A041 .word 1101004800 - 2243 .LBE37: - 2244 .cfi_endproc - 2245 .LFE37: - 2247 .section .text.Error_Handler,"ax",%progbits - 2248 .align 1 - 2249 .global Error_Handler - 2250 .syntax unified - 2251 .code 16 - 2252 .thumb_func - 2253 .fpu softvfp - 2255 Error_Handler: - 2256 .LFB55: - 564:Src/main.c **** - 565:Src/main.c **** void Error_Handler(void) - 566:Src/main.c **** { - 2257 .loc 1 566 0 is_stmt 1 - 2258 .cfi_startproc - 2259 @ args = 0, pretend = 0, frame = 0 - 2260 @ frame_needed = 0, uses_anonymous_args = 0 - 2261 @ link register save eliminated. - 567:Src/main.c **** - 568:Src/main.c **** } - 2262 .loc 1 568 0 - 2263 @ sp needed - 2264 0000 7047 bx lr - 2265 .cfi_endproc - 2266 .LFE55: - 2268 .global OLED_Setup_Array - 2269 .global REFRESH_COMMANDS - 2270 .comm screenBuffer,218,4 - 2271 .global tipcal - 2272 .global r - 2273 .global s - 2274 .comm hpcd_USB_FS,544,4 - 2275 .comm htim1,64,4 - 2276 .comm hi2c2,76,4 - 2277 .comm hi2c1,76,4 - 2278 .comm hdma_adc,68,4 - 2279 .comm hadc,76,4 - 2280 .global font - 2281 .section .rodata - ARM GAS /tmp/cc9UFUWX.s page 76 - - - 2282 .align 2 - 2283 .set .LANCHOR6,. + 0 - 2284 .LC31: - 2285 0000 20202020 .ascii " \000" - 2285 20202020 - 2285 202000 - 2286 .section .bss.ADC_raw,"aw",%nobits - 2287 .align 2 - 2288 .set .LANCHOR0,. + 0 - 2291 ADC_raw: - 2292 0000 00000000 .space 8 - 2292 00000000 - 2293 .section .bss.s,"aw",%nobits - 2294 .align 2 - 2295 .set .LANCHOR1,. + 0 - 2298 s: - 2299 0000 00000000 .space 24 - 2299 00000000 - 2299 00000000 - 2299 00000000 - 2299 00000000 - 2300 .section .data.OLED_Setup_Array,"aw",%progbits - 2301 .align 2 - 2302 .set .LANCHOR5,. + 0 - 2305 OLED_Setup_Array: - 2306 0000 80 .byte -128 - 2307 0001 AE .byte -82 - 2308 0002 80 .byte -128 - 2309 0003 D5 .byte -43 - 2310 0004 80 .byte -128 - 2311 0005 52 .byte 82 - 2312 0006 80 .byte -128 - 2313 0007 A8 .byte -88 - 2314 0008 80 .byte -128 - 2315 0009 0F .byte 15 - 2316 000a 80 .byte -128 - 2317 000b C0 .byte -64 - 2318 000c 80 .byte -128 - 2319 000d D3 .byte -45 - 2320 000e 80 .byte -128 - 2321 000f 00 .byte 0 - 2322 0010 80 .byte -128 - 2323 0011 40 .byte 64 - 2324 0012 80 .byte -128 - 2325 0013 A0 .byte -96 - 2326 0014 80 .byte -128 - 2327 0015 8D .byte -115 - 2328 0016 80 .byte -128 - 2329 0017 14 .byte 20 - 2330 0018 80 .byte -128 - 2331 0019 DA .byte -38 - 2332 001a 80 .byte -128 - 2333 001b 02 .byte 2 - 2334 001c 80 .byte -128 - 2335 001d 81 .byte -127 - 2336 001e 80 .byte -128 - 2337 001f 33 .byte 51 - ARM GAS /tmp/cc9UFUWX.s page 77 - - - 2338 0020 80 .byte -128 - 2339 0021 D9 .byte -39 - 2340 0022 80 .byte -128 - 2341 0023 F1 .byte -15 - 2342 0024 80 .byte -128 - 2343 0025 DB .byte -37 - 2344 0026 80 .byte -128 - 2345 0027 30 .byte 48 - 2346 0028 80 .byte -128 - 2347 0029 A4 .byte -92 - 2348 002a 80 .byte -128 - 2349 002b A6 .byte -90 - 2350 002c 80 .byte -128 - 2351 002d 20 .byte 32 - 2352 002e 80 .byte -128 - 2353 002f 00 .byte 0 - 2354 0030 80 .byte -128 - 2355 0031 AF .byte -81 - 2356 .section .data.r,"aw",%progbits - 2357 .align 2 - 2358 .set .LANCHOR3,. + 0 - 2361 r: - 2362 0000 00005C43 .word 1130102784 - 2363 0004 00000000 .space 12 - 2363 00000000 - 2363 00000000 - 2364 0010 00004843 .word 1128792064 - 2365 0014 00000000 .space 8 - 2365 00000000 - 2366 001c CDCCCC3D .word 1036831949 - 2367 0020 CDCCCC3E .word 1053609165 - 2368 0024 CDCC4C3D .word 1028443341 - 2369 0028 CDCC4C3E .word 1045220557 - 2370 002c 00004041 .word 1094713344 - 2371 .section .data.tipcal,"aw",%progbits - 2372 .align 2 - 2373 .set .LANCHOR2,. + 0 - 2376 tipcal: - 2377 0000 0000F042 .word 1123024896 - 2378 0004 0000B842 .word 1119354880 - 2379 .section .rodata.REFRESH_COMMANDS,"a",%progbits - 2380 .align 2 - 2381 .set .LANCHOR4,. + 0 - 2384 REFRESH_COMMANDS: - 2385 0000 80 .byte -128 - 2386 0001 AF .byte -81 - 2387 0002 80 .byte -128 - 2388 0003 21 .byte 33 - 2389 0004 80 .byte -128 - 2390 0005 20 .byte 32 - 2391 0006 80 .byte -128 - 2392 0007 7F .byte 127 - 2393 0008 80 .byte -128 - 2394 0009 C0 .byte -64 - 2395 000a 80 .byte -128 - 2396 000b 22 .byte 34 - 2397 000c 80 .byte -128 - ARM GAS /tmp/cc9UFUWX.s page 78 - - - 2398 000d 00 .byte 0 - 2399 000e 80 .byte -128 - 2400 000f 01 .byte 1 - 2401 0010 40 .byte 64 - 2402 .section .rodata.font,"a",%progbits - 2403 .align 2 - 2406 font: - 2407 0000 00 .byte 0 - 2408 0001 00 .byte 0 - 2409 0002 00 .byte 0 - 2410 0003 00 .byte 0 - 2411 0004 00 .byte 0 - 2412 0005 00 .byte 0 - 2413 0006 2F .byte 47 - 2414 0007 00 .byte 0 - 2415 0008 00 .byte 0 - 2416 0009 00 .byte 0 - 2417 000a 00 .byte 0 - 2418 000b 00 .byte 0 - 2419 000c 03 .byte 3 - 2420 000d 00 .byte 0 - 2421 000e 03 .byte 3 - 2422 000f 00 .byte 0 - 2423 0010 00 .byte 0 - 2424 0011 00 .byte 0 - 2425 0012 12 .byte 18 - 2426 0013 3F .byte 63 - 2427 0014 12 .byte 18 - 2428 0015 12 .byte 18 - 2429 0016 3F .byte 63 - 2430 0017 12 .byte 18 - 2431 0018 2E .byte 46 - 2432 0019 2A .byte 42 - 2433 001a 7F .byte 127 - 2434 001b 2A .byte 42 - 2435 001c 3A .byte 58 - 2436 001d 00 .byte 0 - 2437 001e 23 .byte 35 - 2438 001f 13 .byte 19 - 2439 0020 08 .byte 8 - 2440 0021 04 .byte 4 - 2441 0022 32 .byte 50 - 2442 0023 31 .byte 49 - 2443 0024 10 .byte 16 - 2444 0025 2A .byte 42 - 2445 0026 25 .byte 37 - 2446 0027 2A .byte 42 - 2447 0028 10 .byte 16 - 2448 0029 20 .byte 32 - 2449 002a 02 .byte 2 - 2450 002b 01 .byte 1 - 2451 002c 00 .byte 0 - 2452 002d 00 .byte 0 - 2453 002e 00 .byte 0 - 2454 002f 00 .byte 0 - 2455 0030 1E .byte 30 - 2456 0031 21 .byte 33 - ARM GAS /tmp/cc9UFUWX.s page 79 - - - 2457 0032 00 .byte 0 - 2458 0033 00 .byte 0 - 2459 0034 00 .byte 0 - 2460 0035 00 .byte 0 - 2461 0036 21 .byte 33 - 2462 0037 1E .byte 30 - 2463 0038 00 .byte 0 - 2464 0039 00 .byte 0 - 2465 003a 00 .byte 0 - 2466 003b 00 .byte 0 - 2467 003c 08 .byte 8 - 2468 003d 2A .byte 42 - 2469 003e 1C .byte 28 - 2470 003f 2A .byte 42 - 2471 0040 08 .byte 8 - 2472 0041 08 .byte 8 - 2473 0042 08 .byte 8 - 2474 0043 08 .byte 8 - 2475 0044 3E .byte 62 - 2476 0045 08 .byte 8 - 2477 0046 08 .byte 8 - 2478 0047 08 .byte 8 - 2479 0048 80 .byte -128 - 2480 0049 60 .byte 96 - 2481 004a 00 .byte 0 - 2482 004b 00 .byte 0 - 2483 004c 00 .byte 0 - 2484 004d 00 .byte 0 - 2485 004e 08 .byte 8 - 2486 004f 08 .byte 8 - 2487 0050 08 .byte 8 - 2488 0051 08 .byte 8 - 2489 0052 08 .byte 8 - 2490 0053 00 .byte 0 - 2491 0054 30 .byte 48 - 2492 0055 30 .byte 48 - 2493 0056 00 .byte 0 - 2494 0057 00 .byte 0 - 2495 0058 00 .byte 0 - 2496 0059 00 .byte 0 - 2497 005a 20 .byte 32 - 2498 005b 10 .byte 16 - 2499 005c 08 .byte 8 - 2500 005d 04 .byte 4 - 2501 005e 02 .byte 2 - 2502 005f 00 .byte 0 - 2503 0060 1E .byte 30 - 2504 0061 31 .byte 49 - 2505 0062 29 .byte 41 - 2506 0063 25 .byte 37 - 2507 0064 23 .byte 35 - 2508 0065 1E .byte 30 - 2509 0066 22 .byte 34 - 2510 0067 21 .byte 33 - 2511 0068 3F .byte 63 - 2512 0069 20 .byte 32 - 2513 006a 20 .byte 32 - ARM GAS /tmp/cc9UFUWX.s page 80 - - - 2514 006b 20 .byte 32 - 2515 006c 32 .byte 50 - 2516 006d 29 .byte 41 - 2517 006e 29 .byte 41 - 2518 006f 29 .byte 41 - 2519 0070 29 .byte 41 - 2520 0071 26 .byte 38 - 2521 0072 12 .byte 18 - 2522 0073 21 .byte 33 - 2523 0074 21 .byte 33 - 2524 0075 25 .byte 37 - 2525 0076 25 .byte 37 - 2526 0077 1A .byte 26 - 2527 0078 18 .byte 24 - 2528 0079 14 .byte 20 - 2529 007a 12 .byte 18 - 2530 007b 3F .byte 63 - 2531 007c 10 .byte 16 - 2532 007d 10 .byte 16 - 2533 007e 17 .byte 23 - 2534 007f 25 .byte 37 - 2535 0080 25 .byte 37 - 2536 0081 25 .byte 37 - 2537 0082 25 .byte 37 - 2538 0083 19 .byte 25 - 2539 0084 1E .byte 30 - 2540 0085 25 .byte 37 - 2541 0086 25 .byte 37 - 2542 0087 25 .byte 37 - 2543 0088 25 .byte 37 - 2544 0089 18 .byte 24 - 2545 008a 01 .byte 1 - 2546 008b 01 .byte 1 - 2547 008c 31 .byte 49 - 2548 008d 09 .byte 9 - 2549 008e 05 .byte 5 - 2550 008f 03 .byte 3 - 2551 0090 1A .byte 26 - 2552 0091 25 .byte 37 - 2553 0092 25 .byte 37 - 2554 0093 25 .byte 37 - 2555 0094 25 .byte 37 - 2556 0095 1A .byte 26 - 2557 0096 06 .byte 6 - 2558 0097 29 .byte 41 - 2559 0098 29 .byte 41 - 2560 0099 29 .byte 41 - 2561 009a 29 .byte 41 - 2562 009b 1E .byte 30 - 2563 009c 24 .byte 36 - 2564 009d 00 .byte 0 - 2565 009e 00 .byte 0 - 2566 009f 00 .byte 0 - 2567 00a0 00 .byte 0 - 2568 00a1 00 .byte 0 - 2569 00a2 80 .byte -128 - 2570 00a3 64 .byte 100 - ARM GAS /tmp/cc9UFUWX.s page 81 - - - 2571 00a4 00 .byte 0 - 2572 00a5 00 .byte 0 - 2573 00a6 00 .byte 0 - 2574 00a7 00 .byte 0 - 2575 00a8 08 .byte 8 - 2576 00a9 14 .byte 20 - 2577 00aa 22 .byte 34 - 2578 00ab 00 .byte 0 - 2579 00ac 00 .byte 0 - 2580 00ad 00 .byte 0 - 2581 00ae 14 .byte 20 - 2582 00af 14 .byte 20 - 2583 00b0 14 .byte 20 - 2584 00b1 14 .byte 20 - 2585 00b2 14 .byte 20 - 2586 00b3 00 .byte 0 - 2587 00b4 22 .byte 34 - 2588 00b5 14 .byte 20 - 2589 00b6 08 .byte 8 - 2590 00b7 00 .byte 0 - 2591 00b8 00 .byte 0 - 2592 00b9 00 .byte 0 - 2593 00ba 02 .byte 2 - 2594 00bb 01 .byte 1 - 2595 00bc 01 .byte 1 - 2596 00bd 29 .byte 41 - 2597 00be 05 .byte 5 - 2598 00bf 02 .byte 2 - 2599 00c0 1E .byte 30 - 2600 00c1 21 .byte 33 - 2601 00c2 2D .byte 45 - 2602 00c3 2B .byte 43 - 2603 00c4 2D .byte 45 - 2604 00c5 0E .byte 14 - 2605 00c6 3E .byte 62 - 2606 00c7 09 .byte 9 - 2607 00c8 09 .byte 9 - 2608 00c9 09 .byte 9 - 2609 00ca 09 .byte 9 - 2610 00cb 3E .byte 62 - 2611 00cc 3F .byte 63 - 2612 00cd 25 .byte 37 - 2613 00ce 25 .byte 37 - 2614 00cf 25 .byte 37 - 2615 00d0 25 .byte 37 - 2616 00d1 1A .byte 26 - 2617 00d2 1E .byte 30 - 2618 00d3 21 .byte 33 - 2619 00d4 21 .byte 33 - 2620 00d5 21 .byte 33 - 2621 00d6 21 .byte 33 - 2622 00d7 12 .byte 18 - 2623 00d8 3F .byte 63 - 2624 00d9 21 .byte 33 - 2625 00da 21 .byte 33 - 2626 00db 21 .byte 33 - 2627 00dc 12 .byte 18 - ARM GAS /tmp/cc9UFUWX.s page 82 - - - 2628 00dd 0C .byte 12 - 2629 00de 3F .byte 63 - 2630 00df 25 .byte 37 - 2631 00e0 25 .byte 37 - 2632 00e1 25 .byte 37 - 2633 00e2 25 .byte 37 - 2634 00e3 21 .byte 33 - 2635 00e4 3F .byte 63 - 2636 00e5 05 .byte 5 - 2637 00e6 05 .byte 5 - 2638 00e7 05 .byte 5 - 2639 00e8 05 .byte 5 - 2640 00e9 01 .byte 1 - 2641 00ea 1E .byte 30 - 2642 00eb 21 .byte 33 - 2643 00ec 21 .byte 33 - 2644 00ed 21 .byte 33 - 2645 00ee 29 .byte 41 - 2646 00ef 1A .byte 26 - 2647 00f0 3F .byte 63 - 2648 00f1 04 .byte 4 - 2649 00f2 04 .byte 4 - 2650 00f3 04 .byte 4 - 2651 00f4 04 .byte 4 - 2652 00f5 3F .byte 63 - 2653 00f6 21 .byte 33 - 2654 00f7 21 .byte 33 - 2655 00f8 3F .byte 63 - 2656 00f9 21 .byte 33 - 2657 00fa 21 .byte 33 - 2658 00fb 21 .byte 33 - 2659 00fc 10 .byte 16 - 2660 00fd 20 .byte 32 - 2661 00fe 20 .byte 32 - 2662 00ff 20 .byte 32 - 2663 0100 20 .byte 32 - 2664 0101 1F .byte 31 - 2665 0102 3F .byte 63 - 2666 0103 04 .byte 4 - 2667 0104 0C .byte 12 - 2668 0105 0A .byte 10 - 2669 0106 11 .byte 17 - 2670 0107 20 .byte 32 - 2671 0108 3F .byte 63 - 2672 0109 20 .byte 32 - 2673 010a 20 .byte 32 - 2674 010b 20 .byte 32 - 2675 010c 20 .byte 32 - 2676 010d 20 .byte 32 - 2677 010e 3F .byte 63 - 2678 010f 02 .byte 2 - 2679 0110 04 .byte 4 - 2680 0111 04 .byte 4 - 2681 0112 02 .byte 2 - 2682 0113 3F .byte 63 - 2683 0114 3F .byte 63 - 2684 0115 02 .byte 2 - ARM GAS /tmp/cc9UFUWX.s page 83 - - - 2685 0116 04 .byte 4 - 2686 0117 08 .byte 8 - 2687 0118 10 .byte 16 - 2688 0119 3F .byte 63 - 2689 011a 1E .byte 30 - 2690 011b 21 .byte 33 - 2691 011c 21 .byte 33 - 2692 011d 21 .byte 33 - 2693 011e 21 .byte 33 - 2694 011f 1E .byte 30 - 2695 0120 3F .byte 63 - 2696 0121 09 .byte 9 - 2697 0122 09 .byte 9 - 2698 0123 09 .byte 9 - 2699 0124 09 .byte 9 - 2700 0125 06 .byte 6 - 2701 0126 1E .byte 30 - 2702 0127 21 .byte 33 - 2703 0128 29 .byte 41 - 2704 0129 31 .byte 49 - 2705 012a 21 .byte 33 - 2706 012b 1E .byte 30 - 2707 012c 3F .byte 63 - 2708 012d 09 .byte 9 - 2709 012e 09 .byte 9 - 2710 012f 09 .byte 9 - 2711 0130 19 .byte 25 - 2712 0131 26 .byte 38 - 2713 0132 12 .byte 18 - 2714 0133 25 .byte 37 - 2715 0134 25 .byte 37 - 2716 0135 25 .byte 37 - 2717 0136 25 .byte 37 - 2718 0137 18 .byte 24 - 2719 0138 01 .byte 1 - 2720 0139 01 .byte 1 - 2721 013a 01 .byte 1 - 2722 013b 3F .byte 63 - 2723 013c 01 .byte 1 - 2724 013d 01 .byte 1 - 2725 013e 1F .byte 31 - 2726 013f 20 .byte 32 - 2727 0140 20 .byte 32 - 2728 0141 20 .byte 32 - 2729 0142 20 .byte 32 - 2730 0143 1F .byte 31 - 2731 0144 0F .byte 15 - 2732 0145 10 .byte 16 - 2733 0146 20 .byte 32 - 2734 0147 20 .byte 32 - 2735 0148 10 .byte 16 - 2736 0149 0F .byte 15 - 2737 014a 1F .byte 31 - 2738 014b 20 .byte 32 - 2739 014c 10 .byte 16 - 2740 014d 10 .byte 16 - 2741 014e 20 .byte 32 - ARM GAS /tmp/cc9UFUWX.s page 84 - - - 2742 014f 1F .byte 31 - 2743 0150 21 .byte 33 - 2744 0151 12 .byte 18 - 2745 0152 0C .byte 12 - 2746 0153 0C .byte 12 - 2747 0154 12 .byte 18 - 2748 0155 21 .byte 33 - 2749 0156 01 .byte 1 - 2750 0157 02 .byte 2 - 2751 0158 0C .byte 12 - 2752 0159 38 .byte 56 - 2753 015a 04 .byte 4 - 2754 015b 02 .byte 2 - 2755 015c 21 .byte 33 - 2756 015d 31 .byte 49 - 2757 015e 29 .byte 41 - 2758 015f 25 .byte 37 - 2759 0160 23 .byte 35 - 2760 0161 21 .byte 33 - 2761 0162 3F .byte 63 - 2762 0163 21 .byte 33 - 2763 0164 00 .byte 0 - 2764 0165 00 .byte 0 - 2765 0166 00 .byte 0 - 2766 0167 00 .byte 0 - 2767 0168 02 .byte 2 - 2768 0169 04 .byte 4 - 2769 016a 08 .byte 8 - 2770 016b 10 .byte 16 - 2771 016c 20 .byte 32 - 2772 016d 00 .byte 0 - 2773 016e 21 .byte 33 - 2774 016f 3F .byte 63 - 2775 0170 00 .byte 0 - 2776 0171 00 .byte 0 - 2777 0172 00 .byte 0 - 2778 0173 00 .byte 0 - 2779 0174 04 .byte 4 - 2780 0175 02 .byte 2 - 2781 0176 3F .byte 63 - 2782 0177 02 .byte 2 - 2783 0178 04 .byte 4 - 2784 0179 00 .byte 0 - 2785 017a 40 .byte 64 - 2786 017b 40 .byte 64 - 2787 017c 40 .byte 64 - 2788 017d 40 .byte 64 - 2789 017e 40 .byte 64 - 2790 017f 40 .byte 64 - 2791 0180 01 .byte 1 - 2792 0181 02 .byte 2 - 2793 0182 00 .byte 0 - 2794 0183 00 .byte 0 - 2795 0184 00 .byte 0 - 2796 0185 00 .byte 0 - 2797 0186 10 .byte 16 - 2798 0187 30 .byte 48 - ARM GAS /tmp/cc9UFUWX.s page 85 - - - 2799 0188 2A .byte 42 - 2800 0189 2A .byte 42 - 2801 018a 3C .byte 60 - 2802 018b 00 .byte 0 - 2803 018c 3F .byte 63 - 2804 018d 24 .byte 36 - 2805 018e 24 .byte 36 - 2806 018f 24 .byte 36 - 2807 0190 18 .byte 24 - 2808 0191 00 .byte 0 - 2809 0192 0C .byte 12 - 2810 0193 14 .byte 20 - 2811 0194 22 .byte 34 - 2812 0195 22 .byte 34 - 2813 0196 00 .byte 0 - 2814 0197 00 .byte 0 - 2815 0198 18 .byte 24 - 2816 0199 24 .byte 36 - 2817 019a 24 .byte 36 - 2818 019b 24 .byte 36 - 2819 019c 3F .byte 63 - 2820 019d 00 .byte 0 - 2821 019e 1C .byte 28 - 2822 019f 2C .byte 44 - 2823 01a0 2A .byte 42 - 2824 01a1 2A .byte 42 - 2825 01a2 24 .byte 36 - 2826 01a3 00 .byte 0 - 2827 01a4 3E .byte 62 - 2828 01a5 05 .byte 5 - 2829 01a6 01 .byte 1 - 2830 01a7 00 .byte 0 - 2831 01a8 00 .byte 0 - 2832 01a9 00 .byte 0 - 2833 01aa 18 .byte 24 - 2834 01ab 28 .byte 40 - 2835 01ac A4 .byte -92 - 2836 01ad A4 .byte -92 - 2837 01ae 7C .byte 124 - 2838 01af 00 .byte 0 - 2839 01b0 3F .byte 63 - 2840 01b1 04 .byte 4 - 2841 01b2 04 .byte 4 - 2842 01b3 0C .byte 12 - 2843 01b4 30 .byte 48 - 2844 01b5 00 .byte 0 - 2845 01b6 24 .byte 36 - 2846 01b7 3D .byte 61 - 2847 01b8 20 .byte 32 - 2848 01b9 00 .byte 0 - 2849 01ba 00 .byte 0 - 2850 01bb 00 .byte 0 - 2851 01bc 20 .byte 32 - 2852 01bd 40 .byte 64 - 2853 01be 40 .byte 64 - 2854 01bf 3D .byte 61 - 2855 01c0 00 .byte 0 - ARM GAS /tmp/cc9UFUWX.s page 86 - - - 2856 01c1 00 .byte 0 - 2857 01c2 3F .byte 63 - 2858 01c3 0C .byte 12 - 2859 01c4 12 .byte 18 - 2860 01c5 20 .byte 32 - 2861 01c6 00 .byte 0 - 2862 01c7 00 .byte 0 - 2863 01c8 1F .byte 31 - 2864 01c9 20 .byte 32 - 2865 01ca 20 .byte 32 - 2866 01cb 00 .byte 0 - 2867 01cc 00 .byte 0 - 2868 01cd 00 .byte 0 - 2869 01ce 3E .byte 62 - 2870 01cf 02 .byte 2 - 2871 01d0 3C .byte 60 - 2872 01d1 02 .byte 2 - 2873 01d2 3C .byte 60 - 2874 01d3 00 .byte 0 - 2875 01d4 3E .byte 62 - 2876 01d5 02 .byte 2 - 2877 01d6 02 .byte 2 - 2878 01d7 02 .byte 2 - 2879 01d8 3C .byte 60 - 2880 01d9 00 .byte 0 - 2881 01da 0C .byte 12 - 2882 01db 14 .byte 20 - 2883 01dc 22 .byte 34 - 2884 01dd 32 .byte 50 - 2885 01de 0C .byte 12 - 2886 01df 00 .byte 0 - 2887 01e0 FC .byte -4 - 2888 01e1 24 .byte 36 - 2889 01e2 24 .byte 36 - 2890 01e3 24 .byte 36 - 2891 01e4 18 .byte 24 - 2892 01e5 00 .byte 0 - 2893 01e6 18 .byte 24 - 2894 01e7 24 .byte 36 - 2895 01e8 24 .byte 36 - 2896 01e9 24 .byte 36 - 2897 01ea FC .byte -4 - 2898 01eb 80 .byte -128 - 2899 01ec 3C .byte 60 - 2900 01ed 04 .byte 4 - 2901 01ee 02 .byte 2 - 2902 01ef 02 .byte 2 - 2903 01f0 00 .byte 0 - 2904 01f1 00 .byte 0 - 2905 01f2 24 .byte 36 - 2906 01f3 2C .byte 44 - 2907 01f4 2A .byte 42 - 2908 01f5 2A .byte 42 - 2909 01f6 10 .byte 16 - 2910 01f7 00 .byte 0 - 2911 01f8 02 .byte 2 - 2912 01f9 1F .byte 31 - ARM GAS /tmp/cc9UFUWX.s page 87 - - - 2913 01fa 22 .byte 34 - 2914 01fb 20 .byte 32 - 2915 01fc 00 .byte 0 - 2916 01fd 00 .byte 0 - 2917 01fe 1E .byte 30 - 2918 01ff 20 .byte 32 - 2919 0200 20 .byte 32 - 2920 0201 20 .byte 32 - 2921 0202 1E .byte 30 - 2922 0203 00 .byte 0 - 2923 0204 06 .byte 6 - 2924 0205 18 .byte 24 - 2925 0206 20 .byte 32 - 2926 0207 18 .byte 24 - 2927 0208 06 .byte 6 - 2928 0209 00 .byte 0 - 2929 020a 1E .byte 30 - 2930 020b 30 .byte 48 - 2931 020c 1C .byte 28 - 2932 020d 30 .byte 48 - 2933 020e 0E .byte 14 - 2934 020f 00 .byte 0 - 2935 0210 22 .byte 34 - 2936 0211 14 .byte 20 - 2937 0212 08 .byte 8 - 2938 0213 14 .byte 20 - 2939 0214 22 .byte 34 - 2940 0215 00 .byte 0 - 2941 0216 0C .byte 12 - 2942 0217 10 .byte 16 - 2943 0218 A0 .byte -96 - 2944 0219 A0 .byte -96 - 2945 021a 7C .byte 124 - 2946 021b 00 .byte 0 - 2947 021c 22 .byte 34 - 2948 021d 32 .byte 50 - 2949 021e 2A .byte 42 - 2950 021f 26 .byte 38 - 2951 0220 22 .byte 34 - 2952 0221 22 .byte 34 - 2953 0222 0C .byte 12 - 2954 0223 3F .byte 63 - 2955 0224 21 .byte 33 - 2956 0225 00 .byte 0 - 2957 0226 00 .byte 0 - 2958 0227 00 .byte 0 - 2959 0228 3F .byte 63 - 2960 0229 00 .byte 0 - 2961 022a 00 .byte 0 - 2962 022b 00 .byte 0 - 2963 022c 00 .byte 0 - 2964 022d 00 .byte 0 - 2965 022e 21 .byte 33 - 2966 022f 3F .byte 63 - 2967 0230 0C .byte 12 - 2968 0231 00 .byte 0 - 2969 0232 00 .byte 0 - ARM GAS /tmp/cc9UFUWX.s page 88 - - - 2970 0233 00 .byte 0 - 2971 0234 02 .byte 2 - 2972 0235 01 .byte 1 - 2973 0236 02 .byte 2 - 2974 0237 01 .byte 1 - 2975 0238 00 .byte 0 - 2976 0239 00 .byte 0 - 2977 023a 00 .byte 0 - 2978 023b 00 .byte 0 - 2979 023c 00 .byte 0 - 2980 023d 00 .byte 0 - 2981 023e 00 .byte 0 - 2982 023f 00 .byte 0 - 2983 .section .rodata.main.str1.4,"aMS",%progbits,1 - 2984 .align 2 - 2985 .LC23: - 2986 0000 64667564 .ascii "dfudfudfudfudfu\000" - 2986 66756466 - 2986 75646675 - 2986 64667500 - 2987 .LC25: - 2988 0010 4F747465 .ascii "Otter-Iron\000" - 2988 722D4972 - 2988 6F6E00 - 2989 001b 00 .space 1 - 2990 .LC27: - 2991 001c 6279204A .ascii "by Jan Henrik\000" - 2991 616E2048 - 2991 656E7269 - 2991 6B00 - 2992 002a 0000 .space 2 - 2993 .LC33: - 2994 002c 25642043 .ascii "%d C\000" - 2994 00 - 2995 0031 000000 .space 3 - 2996 .LC35: - 2997 0034 25642E25 .ascii "%d.%d C\000" - 2997 64204300 - 2998 .LC37: - 2999 003c 25642E25 .ascii "%d.%d V\000" - 2999 64205600 - 3000 .text - 3001 .Letext0: - 3002 .file 4 "/home/janhenrik/programme/gcc-arm-none-eabi-7-2018-q2-update/arm-none-eabi/include/machin - 3003 .file 5 "/home/janhenrik/programme/gcc-arm-none-eabi-7-2018-q2-update/arm-none-eabi/include/sys/_s - 3004 .file 6 "Drivers/CMSIS/Device/ST/STM32F0xx/Include/system_stm32f0xx.h" - 3005 .file 7 "Drivers/CMSIS/Device/ST/STM32F0xx/Include/stm32f072xb.h" - 3006 .file 8 "Drivers/CMSIS/Device/ST/STM32F0xx/Include/stm32f0xx.h" - 3007 .file 9 "/home/janhenrik/programme/gcc-arm-none-eabi-7-2018-q2-update/arm-none-eabi/include/sys/lo - 3008 .file 10 "/home/janhenrik/programme/gcc-arm-none-eabi-7-2018-q2-update/arm-none-eabi/include/sys/_ - 3009 .file 11 "/home/janhenrik/programme/gcc-arm-none-eabi-7-2018-q2-update/lib/gcc/arm-none-eabi/7.3.1 - 3010 .file 12 "/home/janhenrik/programme/gcc-arm-none-eabi-7-2018-q2-update/arm-none-eabi/include/sys/r - 3011 .file 13 "Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_def.h" - 3012 .file 14 "Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_rcc.h" - 3013 .file 15 "Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_rcc_ex.h" - 3014 .file 16 "Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_gpio.h" - 3015 .file 17 "Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_dma.h" - ARM GAS /tmp/cc9UFUWX.s page 89 - - - 3016 .file 18 "Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_adc.h" - 3017 .file 19 "Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_i2c.h" - 3018 .file 20 "Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_pcd.h" - 3019 .file 21 "Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_tim.h" - 3020 .file 22 "Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_tim_ex.h" - 3021 .file 23 "Inc/font.h" - 3022 .file 24 "" - 3023 .file 25 "Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_cortex.h" - 3024 .file 26 "Inc/main.h" - 3025 .file 27 "Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_i2c_ex.h" - 3026 .file 28 "Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal.h" - 3027 .file 29 "Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_flash.h" - 3028 .file 30 "/home/janhenrik/programme/gcc-arm-none-eabi-7-2018-q2-update/arm-none-eabi/include/stdio - ARM GAS /tmp/cc9UFUWX.s page 90 - - -DEFINED SYMBOLS - *ABS*:0000000000000000 main.c - /tmp/cc9UFUWX.s:16 .text.MX_GPIO_Init:0000000000000000 $t - /tmp/cc9UFUWX.s:22 .text.MX_GPIO_Init:0000000000000000 MX_GPIO_Init - /tmp/cc9UFUWX.s:100 .text.MX_GPIO_Init:0000000000000060 $d - /tmp/cc9UFUWX.s:106 .text.MX_DMA_Init:0000000000000000 $t - /tmp/cc9UFUWX.s:112 .text.MX_DMA_Init:0000000000000000 MX_DMA_Init - /tmp/cc9UFUWX.s:154 .text.MX_DMA_Init:000000000000002c $d - /tmp/cc9UFUWX.s:159 .text.MX_ADC_Init:0000000000000000 $t - /tmp/cc9UFUWX.s:165 .text.MX_ADC_Init:0000000000000000 MX_ADC_Init - /tmp/cc9UFUWX.s:297 .text.MX_ADC_Init:00000000000000a0 $d - *COM*:000000000000004c hadc - /tmp/cc9UFUWX.s:304 .text.MX_I2C1_Init:0000000000000000 $t - /tmp/cc9UFUWX.s:310 .text.MX_I2C1_Init:0000000000000000 MX_I2C1_Init - /tmp/cc9UFUWX.s:364 .text.MX_I2C1_Init:0000000000000038 $d - *COM*:000000000000004c hi2c1 - /tmp/cc9UFUWX.s:371 .text.MX_I2C2_Init:0000000000000000 $t - /tmp/cc9UFUWX.s:377 .text.MX_I2C2_Init:0000000000000000 MX_I2C2_Init - /tmp/cc9UFUWX.s:431 .text.MX_I2C2_Init:0000000000000038 $d - *COM*:000000000000004c hi2c2 - /tmp/cc9UFUWX.s:438 .text.MX_TIM1_Init:0000000000000000 $t - /tmp/cc9UFUWX.s:444 .text.MX_TIM1_Init:0000000000000000 MX_TIM1_Init - /tmp/cc9UFUWX.s:614 .text.MX_TIM1_Init:00000000000000dc $d - *COM*:0000000000000040 htim1 - /tmp/cc9UFUWX.s:622 .text.MX_USB_PCD_Init:0000000000000000 $t - /tmp/cc9UFUWX.s:628 .text.MX_USB_PCD_Init:0000000000000000 MX_USB_PCD_Init - /tmp/cc9UFUWX.s:667 .text.MX_USB_PCD_Init:0000000000000020 $d - *COM*:0000000000000220 hpcd_USB_FS - /tmp/cc9UFUWX.s:690 .text.reg:0000000000000000 $t - /tmp/cc9UFUWX.s:697 .text.reg:0000000000000000 reg - /tmp/cc9UFUWX.s:989 .text.reg:00000000000001d8 $d - /tmp/cc9UFUWX.s:1011 .text.disp_init:0000000000000000 $t - /tmp/cc9UFUWX.s:1018 .text.disp_init:0000000000000000 disp_init - /tmp/cc9UFUWX.s:1077 .text.disp_init:0000000000000040 $d - *COM*:00000000000000da screenBuffer - /tmp/cc9UFUWX.s:1086 .text.refresh:0000000000000000 $t - /tmp/cc9UFUWX.s:1093 .text.refresh:0000000000000000 refresh - /tmp/cc9UFUWX.s:1147 .text.refresh:0000000000000034 $d - /tmp/cc9UFUWX.s:1154 .text.clear_screen:0000000000000000 $t - /tmp/cc9UFUWX.s:1161 .text.clear_screen:0000000000000000 clear_screen - /tmp/cc9UFUWX.s:1184 .text.clear_screen:0000000000000010 $d - /tmp/cc9UFUWX.s:1189 .text.set_screen:0000000000000000 $t - /tmp/cc9UFUWX.s:1196 .text.set_screen:0000000000000000 set_screen - /tmp/cc9UFUWX.s:1219 .text.set_screen:0000000000000010 $d - /tmp/cc9UFUWX.s:1224 .text.write_pixel:0000000000000000 $t - /tmp/cc9UFUWX.s:1231 .text.write_pixel:0000000000000000 write_pixel - /tmp/cc9UFUWX.s:1318 .text.write_pixel:0000000000000070 $d - /tmp/cc9UFUWX.s:1323 .text.draw_v_line:0000000000000000 $t - /tmp/cc9UFUWX.s:1330 .text.draw_v_line:0000000000000000 draw_v_line - /tmp/cc9UFUWX.s:1383 .text.draw_char:0000000000000000 $t - /tmp/cc9UFUWX.s:1390 .text.draw_char:0000000000000000 draw_char - /tmp/cc9UFUWX.s:1508 .text.draw_char:0000000000000064 $d - /tmp/cc9UFUWX.s:2406 .rodata.font:0000000000000000 font - /tmp/cc9UFUWX.s:1513 .text.draw_string:0000000000000000 $t - /tmp/cc9UFUWX.s:1520 .text.draw_string:0000000000000000 draw_string - /tmp/cc9UFUWX.s:1571 .text.SystemClock_Config:0000000000000000 $t - /tmp/cc9UFUWX.s:1578 .text.SystemClock_Config:0000000000000000 SystemClock_Config - ARM GAS /tmp/cc9UFUWX.s page 91 - - - /tmp/cc9UFUWX.s:1671 .text.SystemClock_Config:000000000000006c $d - /tmp/cc9UFUWX.s:1677 .text.main:0000000000000000 $t - /tmp/cc9UFUWX.s:1684 .text.main:0000000000000000 main - /tmp/cc9UFUWX.s:2219 .text.main:00000000000002f4 $d - /tmp/cc9UFUWX.s:2248 .text.Error_Handler:0000000000000000 $t - /tmp/cc9UFUWX.s:2255 .text.Error_Handler:0000000000000000 Error_Handler - /tmp/cc9UFUWX.s:2305 .data.OLED_Setup_Array:0000000000000000 OLED_Setup_Array - /tmp/cc9UFUWX.s:2384 .rodata.REFRESH_COMMANDS:0000000000000000 REFRESH_COMMANDS - /tmp/cc9UFUWX.s:2376 .data.tipcal:0000000000000000 tipcal - /tmp/cc9UFUWX.s:2361 .data.r:0000000000000000 r - /tmp/cc9UFUWX.s:2298 .bss.s:0000000000000000 s - *COM*:0000000000000044 hdma_adc - /tmp/cc9UFUWX.s:2282 .rodata:0000000000000000 $d - /tmp/cc9UFUWX.s:2287 .bss.ADC_raw:0000000000000000 $d - /tmp/cc9UFUWX.s:2291 .bss.ADC_raw:0000000000000000 ADC_raw - /tmp/cc9UFUWX.s:2294 .bss.s:0000000000000000 $d - /tmp/cc9UFUWX.s:2301 .data.OLED_Setup_Array:0000000000000000 $d - /tmp/cc9UFUWX.s:2357 .data.r:0000000000000000 $d - /tmp/cc9UFUWX.s:2372 .data.tipcal:0000000000000000 $d - /tmp/cc9UFUWX.s:2380 .rodata.REFRESH_COMMANDS:0000000000000000 $d - /tmp/cc9UFUWX.s:2403 .rodata.font:0000000000000000 $d - /tmp/cc9UFUWX.s:2984 .rodata.main.str1.4:0000000000000000 $d - -UNDEFINED SYMBOLS -memset -HAL_GPIO_Init -HAL_NVIC_SetPriority -HAL_NVIC_EnableIRQ -HAL_ADC_Init -HAL_ADC_ConfigChannel -HAL_ADC_MspInit -HAL_I2C_Init -HAL_I2CEx_ConfigAnalogFilter -HAL_I2CEx_ConfigDigitalFilter -HAL_TIM_Base_Init -HAL_TIM_ConfigClockSource -HAL_TIM_PWM_Init -HAL_TIM_OC_Init -HAL_TIMEx_MasterConfigSynchronization -HAL_TIM_PWM_ConfigChannel -HAL_TIM_OC_ConfigChannel -HAL_TIMEx_ConfigBreakDeadTime -HAL_TIM_MspPostInit -HAL_PCD_Init -__aeabi_ui2f -__aeabi_f2d -__aeabi_ddiv -__aeabi_dmul -__aeabi_dsub -__aeabi_d2f -__aeabi_i2f -__aeabi_fsub -__aeabi_fmul -__aeabi_fdiv -__aeabi_fadd -__aeabi_i2d -__aeabi_fcmpge - ARM GAS /tmp/cc9UFUWX.s page 92 - - -__aeabi_fcmple -__aeabi_fcmpgt -__aeabi_fcmplt -__aeabi_f2iz -memcpy -HAL_I2C_GetState -HAL_I2C_Master_Transmit -HAL_RCC_OscConfig -HAL_RCC_ClockConfig -HAL_RCCEx_PeriphCLKConfig -__aeabi_f2uiz -HAL_Init -HAL_TIM_PWM_Start -HAL_TIM_OC_Start -HAL_ADC_Start_DMA -HAL_Delay -HAL_GPIO_ReadPin -HAL_FLASH_Unlock -sprintf -HAL_FLASH_Program -HAL_FLASH_Lock diff --git a/firmware/build/main.o b/firmware/build/main.o deleted file mode 100644 index 931295b..0000000 Binary files a/firmware/build/main.o and /dev/null differ diff --git a/firmware/build/startup_stm32f072xb.d b/firmware/build/startup_stm32f072xb.d deleted file mode 100644 index 1c25e32..0000000 --- a/firmware/build/startup_stm32f072xb.d +++ /dev/null @@ -1 +0,0 @@ -build/startup_stm32f072xb.o: startup_stm32f072xb.s diff --git a/firmware/build/startup_stm32f072xb.o b/firmware/build/startup_stm32f072xb.o deleted file mode 100644 index 8082199..0000000 Binary files a/firmware/build/startup_stm32f072xb.o and /dev/null differ diff --git a/firmware/build/stm32f0xx_hal.d b/firmware/build/stm32f0xx_hal.d deleted file mode 100644 index 8bea8d8..0000000 --- a/firmware/build/stm32f0xx_hal.d +++ /dev/null @@ -1,86 +0,0 @@ -build/stm32f0xx_hal.o: Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal.c \ - Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal.h \ - Inc/stm32f0xx_hal_conf.h \ - Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_rcc.h \ - Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_def.h \ - Drivers/CMSIS/Device/ST/STM32F0xx/Include/stm32f0xx.h \ - Drivers/CMSIS/Device/ST/STM32F0xx/Include/stm32f072xb.h \ - Drivers/CMSIS/Include/core_cm0.h Drivers/CMSIS/Include/core_cmInstr.h \ - Drivers/CMSIS/Include/cmsis_gcc.h Drivers/CMSIS/Include/core_cmFunc.h \ - Drivers/CMSIS/Device/ST/STM32F0xx/Include/system_stm32f0xx.h \ - Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_rcc_ex.h \ - Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_gpio.h \ - Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_gpio_ex.h \ - Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_dma.h \ - Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_dma_ex.h \ - Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_cortex.h \ - Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_adc.h \ - Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_adc_ex.h \ - Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_flash.h \ - Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_flash_ex.h \ - Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_i2c.h \ - Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_i2c_ex.h \ - Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_pcd.h \ - Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_pcd_ex.h \ - Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_pwr.h \ - Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_pwr_ex.h \ - Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_tim.h \ - Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_tim_ex.h - -Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal.h: - -Inc/stm32f0xx_hal_conf.h: - -Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_rcc.h: - -Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_def.h: - -Drivers/CMSIS/Device/ST/STM32F0xx/Include/stm32f0xx.h: - -Drivers/CMSIS/Device/ST/STM32F0xx/Include/stm32f072xb.h: - -Drivers/CMSIS/Include/core_cm0.h: - -Drivers/CMSIS/Include/core_cmInstr.h: - -Drivers/CMSIS/Include/cmsis_gcc.h: - -Drivers/CMSIS/Include/core_cmFunc.h: - -Drivers/CMSIS/Device/ST/STM32F0xx/Include/system_stm32f0xx.h: - -Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_rcc_ex.h: - -Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_gpio.h: - -Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_gpio_ex.h: - -Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_dma.h: - -Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_dma_ex.h: - -Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_cortex.h: - -Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_adc.h: - -Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_adc_ex.h: - -Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_flash.h: - -Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_flash_ex.h: - -Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_i2c.h: - -Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_i2c_ex.h: - -Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_pcd.h: - -Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_pcd_ex.h: - -Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_pwr.h: - -Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_pwr_ex.h: - -Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_tim.h: - -Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_tim_ex.h: diff --git a/firmware/build/stm32f0xx_hal.lst b/firmware/build/stm32f0xx_hal.lst deleted file mode 100644 index 4ddf11a..0000000 --- a/firmware/build/stm32f0xx_hal.lst +++ /dev/null @@ -1,1231 +0,0 @@ -ARM GAS /tmp/ccItNBni.s page 1 - - - 1 .cpu cortex-m0 - 2 .eabi_attribute 20, 1 - 3 .eabi_attribute 21, 1 - 4 .eabi_attribute 23, 3 - 5 .eabi_attribute 24, 1 - 6 .eabi_attribute 25, 1 - 7 .eabi_attribute 26, 1 - 8 .eabi_attribute 30, 1 - 9 .eabi_attribute 34, 0 - 10 .eabi_attribute 18, 4 - 11 .file "stm32f0xx_hal.c" - 12 .text - 13 .Ltext0: - 14 .cfi_sections .debug_frame - 15 .section .text.HAL_MspInit,"ax",%progbits - 16 .align 1 - 17 .weak HAL_MspInit - 18 .syntax unified - 19 .code 16 - 20 .thumb_func - 21 .fpu softvfp - 23 HAL_MspInit: - 24 .LFB39: - 25 .file 1 "Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal.c" - 1:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal.c **** /** - 2:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal.c **** ****************************************************************************** - 3:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal.c **** * @file stm32f0xx_hal.c - 4:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal.c **** * @author MCD Application Team - 5:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal.c **** * @brief HAL module driver. - 6:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal.c **** * This is the common part of the HAL initialization - 7:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal.c **** * - 8:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal.c **** @verbatim - 9:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal.c **** ============================================================================== - 10:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal.c **** ##### How to use this driver ##### - 11:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal.c **** ============================================================================== - 12:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal.c **** [..] - 13:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal.c **** The common HAL driver contains a set of generic and common APIs that can be - 14:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal.c **** used by the PPP peripheral drivers and the user to start using the HAL. - 15:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal.c **** [..] - 16:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal.c **** The HAL contains two APIs categories: - 17:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal.c **** (+) HAL Initialization and de-initialization functions - 18:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal.c **** (+) HAL Control functions - 19:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal.c **** - 20:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal.c **** @endverbatim - 21:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal.c **** ****************************************************************************** - 22:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal.c **** * @attention - 23:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal.c **** * - 24:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal.c **** *

© COPYRIGHT(c) 2016 STMicroelectronics

- 25:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal.c **** * - 26:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal.c **** * Redistribution and use in source and binary forms, with or without modification, - 27:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal.c **** * are permitted provided that the following conditions are met: - 28:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal.c **** * 1. Redistributions of source code must retain the above copyright notice, - 29:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal.c **** * this list of conditions and the following disclaimer. - 30:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal.c **** * 2. Redistributions in binary form must reproduce the above copyright notice, - 31:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal.c **** * this list of conditions and the following disclaimer in the documentation - 32:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal.c **** * and/or other materials provided with the distribution. - 33:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal.c **** * 3. Neither the name of STMicroelectronics nor the names of its contributors - ARM GAS /tmp/ccItNBni.s page 2 - - - 34:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal.c **** * may be used to endorse or promote products derived from this software - 35:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal.c **** * without specific prior written permission. - 36:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal.c **** * - 37:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal.c **** * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" - 38:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal.c **** * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE - 39:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal.c **** * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE - 40:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal.c **** * DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE - 41:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal.c **** * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL - 42:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal.c **** * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR - 43:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal.c **** * SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER - 44:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal.c **** * CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, - 45:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal.c **** * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE - 46:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal.c **** * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. - 47:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal.c **** * - 48:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal.c **** ****************************************************************************** - 49:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal.c **** */ - 50:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal.c **** - 51:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal.c **** /* Includes ------------------------------------------------------------------*/ - 52:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal.c **** #include "stm32f0xx_hal.h" - 53:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal.c **** - 54:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal.c **** /** @addtogroup STM32F0xx_HAL_Driver - 55:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal.c **** * @{ - 56:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal.c **** */ - 57:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal.c **** - 58:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal.c **** /** @defgroup HAL HAL - 59:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal.c **** * @brief HAL module driver. - 60:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal.c **** * @{ - 61:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal.c **** */ - 62:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal.c **** - 63:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal.c **** #ifdef HAL_MODULE_ENABLED - 64:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal.c **** - 65:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal.c **** /* Private typedef -----------------------------------------------------------*/ - 66:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal.c **** /* Private define ------------------------------------------------------------*/ - 67:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal.c **** /** @defgroup HAL_Private_Constants HAL Private Constants - 68:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal.c **** * @{ - 69:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal.c **** */ - 70:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal.c **** /** - 71:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal.c **** * @brief STM32F0xx HAL Driver version number V1.7.2 - 72:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal.c **** */ - 73:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal.c **** #define __STM32F0xx_HAL_VERSION_MAIN (0x01) /*!< [31:24] main version */ - 74:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal.c **** #define __STM32F0xx_HAL_VERSION_SUB1 (0x07) /*!< [23:16] sub1 version */ - 75:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal.c **** #define __STM32F0xx_HAL_VERSION_SUB2 (0x02) /*!< [15:8] sub2 version */ - 76:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal.c **** #define __STM32F0xx_HAL_VERSION_RC (0x00) /*!< [7:0] release candidate */ - 77:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal.c **** #define __STM32F0xx_HAL_VERSION ((__STM32F0xx_HAL_VERSION_MAIN << 24U)\ - 78:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal.c **** |(__STM32F0xx_HAL_VERSION_SUB1 << 16U)\ - 79:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal.c **** |(__STM32F0xx_HAL_VERSION_SUB2 << 8U )\ - 80:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal.c **** |(__STM32F0xx_HAL_VERSION_RC)) - 81:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal.c **** - 82:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal.c **** #define IDCODE_DEVID_MASK (0x00000FFFU) - 83:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal.c **** /** - 84:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal.c **** * @} - 85:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal.c **** */ - 86:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal.c **** - 87:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal.c **** /* Private macro -------------------------------------------------------------*/ - 88:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal.c **** /** @defgroup HAL_Private_Macros HAL Private Macros - 89:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal.c **** * @{ - 90:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal.c **** */ - ARM GAS /tmp/ccItNBni.s page 3 - - - 91:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal.c **** /** - 92:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal.c **** * @} - 93:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal.c **** */ - 94:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal.c **** - 95:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal.c **** /* Private variables ---------------------------------------------------------*/ - 96:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal.c **** /** @defgroup HAL_Private_Variables HAL Private Variables - 97:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal.c **** * @{ - 98:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal.c **** */ - 99:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal.c **** __IO uint32_t uwTick; - 100:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal.c **** /** - 101:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal.c **** * @} - 102:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal.c **** */ - 103:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal.c **** /* Private function prototypes -----------------------------------------------*/ - 104:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal.c **** /* Exported functions ---------------------------------------------------------*/ - 105:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal.c **** - 106:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal.c **** /** @defgroup HAL_Exported_Functions HAL Exported Functions - 107:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal.c **** * @{ - 108:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal.c **** */ - 109:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal.c **** - 110:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal.c **** /** @defgroup HAL_Exported_Functions_Group1 Initialization and de-initialization Functions - 111:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal.c **** * @brief Initialization and de-initialization functions - 112:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal.c **** * - 113:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal.c **** @verbatim - 114:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal.c **** =============================================================================== - 115:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal.c **** ##### Initialization and de-initialization functions ##### - 116:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal.c **** =============================================================================== - 117:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal.c **** [..] This section provides functions allowing to: - 118:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal.c **** (+) Initializes the Flash interface, the NVIC allocation and initial clock - 119:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal.c **** configuration. It initializes the source of time base also when timeout - 120:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal.c **** is needed and the backup domain when enabled. - 121:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal.c **** (+) de-Initializes common part of the HAL. - 122:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal.c **** (+) Configure The time base source to have 1ms time base with a dedicated - 123:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal.c **** Tick interrupt priority. - 124:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal.c **** (++) Systick timer is used by default as source of time base, but user - 125:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal.c **** can eventually implement his proper time base source (a general purpose - 126:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal.c **** timer for example or other time source), keeping in mind that Time base - 127:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal.c **** duration should be kept 1ms since PPP_TIMEOUT_VALUEs are defined and - 128:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal.c **** handled in milliseconds basis. - 129:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal.c **** (++) Time base configuration function (HAL_InitTick ()) is called automatically - 130:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal.c **** at the beginning of the program after reset by HAL_Init() or at any time - 131:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal.c **** when clock is configured, by HAL_RCC_ClockConfig(). - 132:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal.c **** (++) Source of time base is configured to generate interrupts at regular - 133:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal.c **** time intervals. Care must be taken if HAL_Delay() is called from a - 134:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal.c **** peripheral ISR process, the Tick interrupt line must have higher priority - 135:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal.c **** (numerically lower) than the peripheral interrupt. Otherwise the caller - 136:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal.c **** ISR process will be blocked. - 137:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal.c **** (++) functions affecting time base configurations are declared as __Weak - 138:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal.c **** to make override possible in case of other implementations in user file. - 139:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal.c **** - 140:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal.c **** @endverbatim - 141:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal.c **** * @{ - 142:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal.c **** */ - 143:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal.c **** - 144:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal.c **** /** - 145:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal.c **** * @brief This function configures the Flash prefetch, - 146:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal.c **** * Configures time base source, NVIC and Low level hardware - 147:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal.c **** * @note This function is called at the beginning of program after reset and before - ARM GAS /tmp/ccItNBni.s page 4 - - - 148:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal.c **** * the clock configuration - 149:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal.c **** * @note The time base configuration is based on HSI clock when exiting from Reset. - 150:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal.c **** * Once done, time base tick start incrementing. - 151:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal.c **** * In the default implementation,Systick is used as source of time base. - 152:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal.c **** * The tick variable is incremented each 1ms in its ISR. - 153:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal.c **** * @retval HAL status - 154:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal.c **** */ - 155:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal.c **** HAL_StatusTypeDef HAL_Init(void) - 156:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal.c **** { - 157:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal.c **** /* Configure Flash prefetch */ - 158:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal.c **** #if (PREFETCH_ENABLE != 0) - 159:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal.c **** __HAL_FLASH_PREFETCH_BUFFER_ENABLE(); - 160:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal.c **** #endif /* PREFETCH_ENABLE */ - 161:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal.c **** - 162:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal.c **** /* Use systick as time base source and configure 1ms tick (default clock after Reset is HSI) */ - 163:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal.c **** - 164:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal.c **** HAL_InitTick(TICK_INT_PRIORITY); - 165:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal.c **** - 166:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal.c **** /* Init the low level hardware */ - 167:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal.c **** HAL_MspInit(); - 168:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal.c **** - 169:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal.c **** /* Return function status */ - 170:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal.c **** return HAL_OK; - 171:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal.c **** } - 172:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal.c **** - 173:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal.c **** /** - 174:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal.c **** * @brief This function de-Initializes common part of the HAL and stops the source - 175:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal.c **** * of time base. - 176:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal.c **** * @note This function is optional. - 177:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal.c **** * @retval HAL status - 178:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal.c **** */ - 179:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal.c **** HAL_StatusTypeDef HAL_DeInit(void) - 180:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal.c **** { - 181:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal.c **** /* Reset of all peripherals */ - 182:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal.c **** __HAL_RCC_APB1_FORCE_RESET(); - 183:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal.c **** __HAL_RCC_APB1_RELEASE_RESET(); - 184:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal.c **** - 185:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal.c **** __HAL_RCC_APB2_FORCE_RESET(); - 186:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal.c **** __HAL_RCC_APB2_RELEASE_RESET(); - 187:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal.c **** - 188:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal.c **** __HAL_RCC_AHB_FORCE_RESET(); - 189:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal.c **** __HAL_RCC_AHB_RELEASE_RESET(); - 190:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal.c **** - 191:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal.c **** /* De-Init the low level hardware */ - 192:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal.c **** HAL_MspDeInit(); - 193:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal.c **** - 194:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal.c **** /* Return function status */ - 195:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal.c **** return HAL_OK; - 196:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal.c **** } - 197:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal.c **** - 198:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal.c **** /** - 199:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal.c **** * @brief Initializes the MSP. - 200:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal.c **** * @retval None - 201:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal.c **** */ - 202:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal.c **** __weak void HAL_MspInit(void) - 203:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal.c **** { - 26 .loc 1 203 0 - ARM GAS /tmp/ccItNBni.s page 5 - - - 27 .cfi_startproc - 28 @ args = 0, pretend = 0, frame = 0 - 29 @ frame_needed = 0, uses_anonymous_args = 0 - 30 @ link register save eliminated. - 204:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal.c **** /* NOTE : This function Should not be modified, when the callback is needed, - 205:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal.c **** the HAL_MspInit could be implemented in the user file - 206:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal.c **** */ - 207:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal.c **** } - 31 .loc 1 207 0 - 32 @ sp needed - 33 0000 7047 bx lr - 34 .cfi_endproc - 35 .LFE39: - 37 .section .text.HAL_MspDeInit,"ax",%progbits - 38 .align 1 - 39 .weak HAL_MspDeInit - 40 .syntax unified - 41 .code 16 - 42 .thumb_func - 43 .fpu softvfp - 45 HAL_MspDeInit: - 46 .LFB40: - 208:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal.c **** - 209:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal.c **** /** - 210:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal.c **** * @brief DeInitializes the MSP. - 211:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal.c **** * @retval None - 212:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal.c **** */ - 213:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal.c **** __weak void HAL_MspDeInit(void) - 214:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal.c **** { - 47 .loc 1 214 0 - 48 .cfi_startproc - 49 @ args = 0, pretend = 0, frame = 0 - 50 @ frame_needed = 0, uses_anonymous_args = 0 - 51 @ link register save eliminated. - 215:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal.c **** /* NOTE : This function Should not be modified, when the callback is needed, - 216:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal.c **** the HAL_MspDeInit could be implemented in the user file - 217:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal.c **** */ - 218:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal.c **** } - 52 .loc 1 218 0 - 53 @ sp needed - 54 0000 7047 bx lr - 55 .cfi_endproc - 56 .LFE40: - 58 .section .text.HAL_DeInit,"ax",%progbits - 59 .align 1 - 60 .global HAL_DeInit - 61 .syntax unified - 62 .code 16 - 63 .thumb_func - 64 .fpu softvfp - 66 HAL_DeInit: - 67 .LFB38: - 180:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal.c **** /* Reset of all peripherals */ - 68 .loc 1 180 0 - 69 .cfi_startproc - 70 @ args = 0, pretend = 0, frame = 0 - 71 @ frame_needed = 0, uses_anonymous_args = 0 - ARM GAS /tmp/ccItNBni.s page 6 - - - 72 0000 10B5 push {r4, lr} - 73 .LCFI0: - 74 .cfi_def_cfa_offset 8 - 75 .cfi_offset 4, -8 - 76 .cfi_offset 14, -4 - 182:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal.c **** __HAL_RCC_APB1_RELEASE_RESET(); - 77 .loc 1 182 0 - 78 0002 074B ldr r3, .L4 - 79 0004 0121 movs r1, #1 - 80 0006 4942 rsbs r1, r1, #0 - 81 0008 1961 str r1, [r3, #16] - 183:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal.c **** - 82 .loc 1 183 0 - 83 000a 0022 movs r2, #0 - 84 000c 1A61 str r2, [r3, #16] - 185:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal.c **** __HAL_RCC_APB2_RELEASE_RESET(); - 85 .loc 1 185 0 - 86 000e D960 str r1, [r3, #12] - 186:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal.c **** - 87 .loc 1 186 0 - 88 0010 DA60 str r2, [r3, #12] - 188:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal.c **** __HAL_RCC_AHB_RELEASE_RESET(); - 89 .loc 1 188 0 - 90 0012 9962 str r1, [r3, #40] - 189:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal.c **** - 91 .loc 1 189 0 - 92 0014 9A62 str r2, [r3, #40] - 192:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal.c **** - 93 .loc 1 192 0 - 94 0016 FFF7FEFF bl HAL_MspDeInit - 95 .LVL0: - 196:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal.c **** - 96 .loc 1 196 0 - 97 001a 0020 movs r0, #0 - 98 @ sp needed - 99 001c 10BD pop {r4, pc} - 100 .L5: - 101 001e C046 .align 2 - 102 .L4: - 103 0020 00100240 .word 1073876992 - 104 .cfi_endproc - 105 .LFE38: - 107 .global __aeabi_uidiv - 108 .section .text.HAL_InitTick,"ax",%progbits - 109 .align 1 - 110 .weak HAL_InitTick - 111 .syntax unified - 112 .code 16 - 113 .thumb_func - 114 .fpu softvfp - 116 HAL_InitTick: - 117 .LFB41: - 219:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal.c **** - 220:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal.c **** /** - 221:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal.c **** * @brief This function configures the source of the time base. - 222:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal.c **** * The time source is configured to have 1ms time base with a dedicated - 223:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal.c **** * Tick interrupt priority. - ARM GAS /tmp/ccItNBni.s page 7 - - - 224:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal.c **** * @note This function is called automatically at the beginning of program after - 225:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal.c **** * reset by HAL_Init() or at any time when clock is reconfigured by HAL_RCC_ClockConfig(). - 226:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal.c **** * @note In the default implementation, SysTick timer is the source of time base. - 227:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal.c **** * It is used to generate interrupts at regular time intervals. - 228:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal.c **** * Care must be taken if HAL_Delay() is called from a peripheral ISR process, - 229:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal.c **** * The the SysTick interrupt must have higher priority (numerically lower) - 230:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal.c **** * than the peripheral interrupt. Otherwise the caller ISR process will be blocked. - 231:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal.c **** * The function is declared as __Weak to be overwritten in case of other - 232:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal.c **** * implementation in user file. - 233:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal.c **** * @param TickPriority Tick interrupt priority. - 234:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal.c **** * @retval HAL status - 235:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal.c **** */ - 236:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal.c **** __weak HAL_StatusTypeDef HAL_InitTick(uint32_t TickPriority) - 237:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal.c **** { - 118 .loc 1 237 0 - 119 .cfi_startproc - 120 @ args = 0, pretend = 0, frame = 0 - 121 @ frame_needed = 0, uses_anonymous_args = 0 - 122 .LVL1: - 123 0000 10B5 push {r4, lr} - 124 .LCFI1: - 125 .cfi_def_cfa_offset 8 - 126 .cfi_offset 4, -8 - 127 .cfi_offset 14, -4 - 128 0002 0400 movs r4, r0 - 238:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal.c **** /*Configure the SysTick to have interrupt in 1ms time basis*/ - 239:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal.c **** HAL_SYSTICK_Config(HAL_RCC_GetHCLKFreq()/1000U); - 129 .loc 1 239 0 - 130 0004 FFF7FEFF bl HAL_RCC_GetHCLKFreq - 131 .LVL2: - 132 0008 FA21 movs r1, #250 - 133 000a 8900 lsls r1, r1, #2 - 134 000c FFF7FEFF bl __aeabi_uidiv - 135 .LVL3: - 136 0010 FFF7FEFF bl HAL_SYSTICK_Config - 137 .LVL4: - 240:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal.c **** - 241:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal.c **** /*Configure the SysTick IRQ priority */ - 242:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal.c **** HAL_NVIC_SetPriority(SysTick_IRQn, TickPriority ,0U); - 138 .loc 1 242 0 - 139 0014 0120 movs r0, #1 - 140 0016 0022 movs r2, #0 - 141 0018 2100 movs r1, r4 - 142 001a 4042 rsbs r0, r0, #0 - 143 001c FFF7FEFF bl HAL_NVIC_SetPriority - 144 .LVL5: - 243:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal.c **** - 244:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal.c **** /* Return function status */ - 245:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal.c **** return HAL_OK; - 246:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal.c **** } - 145 .loc 1 246 0 - 146 0020 0020 movs r0, #0 - 147 @ sp needed - 148 .LVL6: - 149 0022 10BD pop {r4, pc} - 150 .cfi_endproc - 151 .LFE41: - ARM GAS /tmp/ccItNBni.s page 8 - - - 153 .section .text.HAL_Init,"ax",%progbits - 154 .align 1 - 155 .global HAL_Init - 156 .syntax unified - 157 .code 16 - 158 .thumb_func - 159 .fpu softvfp - 161 HAL_Init: - 162 .LFB37: - 156:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal.c **** /* Configure Flash prefetch */ - 163 .loc 1 156 0 - 164 .cfi_startproc - 165 @ args = 0, pretend = 0, frame = 0 - 166 @ frame_needed = 0, uses_anonymous_args = 0 - 167 0000 10B5 push {r4, lr} - 168 .LCFI2: - 169 .cfi_def_cfa_offset 8 - 170 .cfi_offset 4, -8 - 171 .cfi_offset 14, -4 - 159:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal.c **** #endif /* PREFETCH_ENABLE */ - 172 .loc 1 159 0 - 173 0002 064A ldr r2, .L8 - 174 0004 1368 ldr r3, [r2] - 175 0006 1021 movs r1, #16 - 176 0008 0B43 orrs r3, r1 - 177 000a 1360 str r3, [r2] - 164:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal.c **** - 178 .loc 1 164 0 - 179 000c 0020 movs r0, #0 - 180 000e FFF7FEFF bl HAL_InitTick - 181 .LVL7: - 167:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal.c **** - 182 .loc 1 167 0 - 183 0012 FFF7FEFF bl HAL_MspInit - 184 .LVL8: - 171:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal.c **** - 185 .loc 1 171 0 - 186 0016 0020 movs r0, #0 - 187 @ sp needed - 188 0018 10BD pop {r4, pc} - 189 .L9: - 190 001a C046 .align 2 - 191 .L8: - 192 001c 00200240 .word 1073881088 - 193 .cfi_endproc - 194 .LFE37: - 196 .section .text.HAL_IncTick,"ax",%progbits - 197 .align 1 - 198 .weak HAL_IncTick - 199 .syntax unified - 200 .code 16 - 201 .thumb_func - 202 .fpu softvfp - 204 HAL_IncTick: - 205 .LFB42: - 247:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal.c **** - 248:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal.c **** /** - ARM GAS /tmp/ccItNBni.s page 9 - - - 249:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal.c **** * @} - 250:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal.c **** */ - 251:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal.c **** - 252:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal.c **** /** @defgroup HAL_Exported_Functions_Group2 HAL Control functions - 253:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal.c **** * @brief HAL Control functions - 254:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal.c **** * - 255:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal.c **** @verbatim - 256:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal.c **** =============================================================================== - 257:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal.c **** ##### HAL Control functions ##### - 258:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal.c **** =============================================================================== - 259:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal.c **** [..] This section provides functions allowing to: - 260:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal.c **** (+) Provide a tick value in millisecond - 261:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal.c **** (+) Provide a blocking delay in millisecond - 262:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal.c **** (+) Suspend the time base source interrupt - 263:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal.c **** (+) Resume the time base source interrupt - 264:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal.c **** (+) Get the HAL API driver version - 265:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal.c **** (+) Get the device identifier - 266:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal.c **** (+) Get the device revision identifier - 267:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal.c **** (+) Enable/Disable Debug module during Sleep mode - 268:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal.c **** (+) Enable/Disable Debug module during STOP mode - 269:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal.c **** (+) Enable/Disable Debug module during STANDBY mode - 270:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal.c **** - 271:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal.c **** @endverbatim - 272:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal.c **** * @{ - 273:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal.c **** */ - 274:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal.c **** - 275:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal.c **** /** - 276:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal.c **** * @brief This function is called to increment a global variable "uwTick" - 277:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal.c **** * used as application time base. - 278:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal.c **** * @note In the default implementation, this variable is incremented each 1ms - 279:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal.c **** * in Systick ISR. - 280:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal.c **** * @note This function is declared as __weak to be overwritten in case of other - 281:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal.c **** * implementations in user file. - 282:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal.c **** * @retval None - 283:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal.c **** */ - 284:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal.c **** __weak void HAL_IncTick(void) - 285:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal.c **** { - 206 .loc 1 285 0 - 207 .cfi_startproc - 208 @ args = 0, pretend = 0, frame = 0 - 209 @ frame_needed = 0, uses_anonymous_args = 0 - 210 @ link register save eliminated. - 286:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal.c **** uwTick++; - 211 .loc 1 286 0 - 212 0000 024A ldr r2, .L11 - 213 0002 1368 ldr r3, [r2] - 214 0004 0133 adds r3, r3, #1 - 215 0006 1360 str r3, [r2] - 287:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal.c **** } - 216 .loc 1 287 0 - 217 @ sp needed - 218 0008 7047 bx lr - 219 .L12: - 220 000a C046 .align 2 - 221 .L11: - 222 000c 00000000 .word uwTick - 223 .cfi_endproc - ARM GAS /tmp/ccItNBni.s page 10 - - - 224 .LFE42: - 226 .section .text.HAL_GetTick,"ax",%progbits - 227 .align 1 - 228 .weak HAL_GetTick - 229 .syntax unified - 230 .code 16 - 231 .thumb_func - 232 .fpu softvfp - 234 HAL_GetTick: - 235 .LFB43: - 288:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal.c **** - 289:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal.c **** /** - 290:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal.c **** * @brief Provides a tick value in millisecond. - 291:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal.c **** * @note This function is declared as __weak to be overwritten in case of other - 292:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal.c **** * implementations in user file. - 293:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal.c **** * @retval tick value - 294:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal.c **** */ - 295:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal.c **** __weak uint32_t HAL_GetTick(void) - 296:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal.c **** { - 236 .loc 1 296 0 - 237 .cfi_startproc - 238 @ args = 0, pretend = 0, frame = 0 - 239 @ frame_needed = 0, uses_anonymous_args = 0 - 240 @ link register save eliminated. - 297:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal.c **** return uwTick; - 241 .loc 1 297 0 - 242 0000 014B ldr r3, .L14 - 243 0002 1868 ldr r0, [r3] - 298:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal.c **** } - 244 .loc 1 298 0 - 245 @ sp needed - 246 0004 7047 bx lr - 247 .L15: - 248 0006 C046 .align 2 - 249 .L14: - 250 0008 00000000 .word uwTick - 251 .cfi_endproc - 252 .LFE43: - 254 .section .text.HAL_Delay,"ax",%progbits - 255 .align 1 - 256 .weak HAL_Delay - 257 .syntax unified - 258 .code 16 - 259 .thumb_func - 260 .fpu softvfp - 262 HAL_Delay: - 263 .LFB44: - 299:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal.c **** - 300:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal.c **** /** - 301:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal.c **** * @brief This function provides accurate delay (in milliseconds) based - 302:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal.c **** * on variable incremented. - 303:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal.c **** * @note In the default implementation , SysTick timer is the source of time base. - 304:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal.c **** * It is used to generate interrupts at regular time intervals where uwTick - 305:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal.c **** * is incremented. - 306:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal.c **** * @note ThiS function is declared as __weak to be overwritten in case of other - 307:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal.c **** * implementations in user file. - 308:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal.c **** * @param Delay specifies the delay time length, in milliseconds. - ARM GAS /tmp/ccItNBni.s page 11 - - - 309:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal.c **** * @retval None - 310:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal.c **** */ - 311:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal.c **** __weak void HAL_Delay(__IO uint32_t Delay) - 312:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal.c **** { - 264 .loc 1 312 0 - 265 .cfi_startproc - 266 @ args = 0, pretend = 0, frame = 8 - 267 @ frame_needed = 0, uses_anonymous_args = 0 - 268 .LVL9: - 269 0000 30B5 push {r4, r5, lr} - 270 .LCFI3: - 271 .cfi_def_cfa_offset 12 - 272 .cfi_offset 4, -12 - 273 .cfi_offset 5, -8 - 274 .cfi_offset 14, -4 - 275 0002 83B0 sub sp, sp, #12 - 276 .LCFI4: - 277 .cfi_def_cfa_offset 24 - 278 0004 0190 str r0, [sp, #4] - 313:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal.c **** uint32_t tickstart = HAL_GetTick(); - 279 .loc 1 313 0 - 280 0006 FFF7FEFF bl HAL_GetTick - 281 .LVL10: - 282 000a 0500 movs r5, r0 - 283 .LVL11: - 314:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal.c **** uint32_t wait = Delay; - 284 .loc 1 314 0 - 285 000c 019C ldr r4, [sp, #4] - 286 .LVL12: - 315:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal.c **** - 316:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal.c **** /* Add a period to guarantee minimum wait */ - 317:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal.c **** if (wait < HAL_MAX_DELAY) - 287 .loc 1 317 0 - 288 000e 631C adds r3, r4, #1 - 289 0010 00D0 beq .L18 - 318:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal.c **** { - 319:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal.c **** wait++; - 290 .loc 1 319 0 - 291 0012 0134 adds r4, r4, #1 - 292 .LVL13: - 293 .L18: - 320:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal.c **** } - 321:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal.c **** - 322:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal.c **** while((HAL_GetTick() - tickstart) < wait) - 294 .loc 1 322 0 discriminator 1 - 295 0014 FFF7FEFF bl HAL_GetTick - 296 .LVL14: - 297 0018 401B subs r0, r0, r5 - 298 001a A042 cmp r0, r4 - 299 001c FAD3 bcc .L18 - 323:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal.c **** { - 324:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal.c **** } - 325:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal.c **** } - 300 .loc 1 325 0 - 301 001e 03B0 add sp, sp, #12 - 302 @ sp needed - 303 .LVL15: - ARM GAS /tmp/ccItNBni.s page 12 - - - 304 .LVL16: - 305 0020 30BD pop {r4, r5, pc} - 306 .cfi_endproc - 307 .LFE44: - 309 .section .text.HAL_SuspendTick,"ax",%progbits - 310 .align 1 - 311 .weak HAL_SuspendTick - 312 .syntax unified - 313 .code 16 - 314 .thumb_func - 315 .fpu softvfp - 317 HAL_SuspendTick: - 318 .LFB45: - 326:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal.c **** - 327:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal.c **** /** - 328:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal.c **** * @brief Suspend Tick increment. - 329:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal.c **** * @note In the default implementation , SysTick timer is the source of time base. It is - 330:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal.c **** * used to generate interrupts at regular time intervals. Once HAL_SuspendTick() - 331:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal.c **** * is called, the the SysTick interrupt will be disabled and so Tick increment - 332:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal.c **** * is suspended. - 333:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal.c **** * @note This function is declared as __weak to be overwritten in case of other - 334:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal.c **** * implementations in user file. - 335:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal.c **** * @retval None - 336:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal.c **** */ - 337:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal.c **** __weak void HAL_SuspendTick(void) - 338:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal.c **** - 339:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal.c **** { - 319 .loc 1 339 0 - 320 .cfi_startproc - 321 @ args = 0, pretend = 0, frame = 0 - 322 @ frame_needed = 0, uses_anonymous_args = 0 - 323 @ link register save eliminated. - 340:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal.c **** /* Disable SysTick Interrupt */ - 341:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal.c **** CLEAR_BIT(SysTick->CTRL,SysTick_CTRL_TICKINT_Msk); - 324 .loc 1 341 0 - 325 0000 024A ldr r2, .L20 - 326 0002 1368 ldr r3, [r2] - 327 0004 0221 movs r1, #2 - 328 0006 8B43 bics r3, r1 - 329 0008 1360 str r3, [r2] - 342:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal.c **** } - 330 .loc 1 342 0 - 331 @ sp needed - 332 000a 7047 bx lr - 333 .L21: - 334 .align 2 - 335 .L20: - 336 000c 10E000E0 .word -536813552 - 337 .cfi_endproc - 338 .LFE45: - 340 .section .text.HAL_ResumeTick,"ax",%progbits - 341 .align 1 - 342 .weak HAL_ResumeTick - 343 .syntax unified - 344 .code 16 - 345 .thumb_func - 346 .fpu softvfp - ARM GAS /tmp/ccItNBni.s page 13 - - - 348 HAL_ResumeTick: - 349 .LFB46: - 343:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal.c **** - 344:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal.c **** /** - 345:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal.c **** * @brief Resume Tick increment. - 346:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal.c **** * @note In the default implementation , SysTick timer is the source of time base. It is - 347:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal.c **** * used to generate interrupts at regular time intervals. Once HAL_ResumeTick() - 348:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal.c **** * is called, the the SysTick interrupt will be enabled and so Tick increment - 349:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal.c **** * is resumed. - 350:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal.c **** * @note This function is declared as __weak to be overwritten in case of other - 351:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal.c **** * implementations in user file. - 352:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal.c **** * @retval None - 353:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal.c **** */ - 354:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal.c **** __weak void HAL_ResumeTick(void) - 355:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal.c **** { - 350 .loc 1 355 0 - 351 .cfi_startproc - 352 @ args = 0, pretend = 0, frame = 0 - 353 @ frame_needed = 0, uses_anonymous_args = 0 - 354 @ link register save eliminated. - 356:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal.c **** /* Enable SysTick Interrupt */ - 357:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal.c **** SET_BIT(SysTick->CTRL,SysTick_CTRL_TICKINT_Msk); - 355 .loc 1 357 0 - 356 0000 024A ldr r2, .L23 - 357 0002 1368 ldr r3, [r2] - 358 0004 0221 movs r1, #2 - 359 0006 0B43 orrs r3, r1 - 360 0008 1360 str r3, [r2] - 358:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal.c **** } - 361 .loc 1 358 0 - 362 @ sp needed - 363 000a 7047 bx lr - 364 .L24: - 365 .align 2 - 366 .L23: - 367 000c 10E000E0 .word -536813552 - 368 .cfi_endproc - 369 .LFE46: - 371 .section .text.HAL_GetHalVersion,"ax",%progbits - 372 .align 1 - 373 .global HAL_GetHalVersion - 374 .syntax unified - 375 .code 16 - 376 .thumb_func - 377 .fpu softvfp - 379 HAL_GetHalVersion: - 380 .LFB47: - 359:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal.c **** - 360:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal.c **** /** - 361:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal.c **** * @brief This method returns the HAL revision - 362:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal.c **** * @retval version : 0xXYZR (8bits for each decimal, R for RC) - 363:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal.c **** */ - 364:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal.c **** uint32_t HAL_GetHalVersion(void) - 365:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal.c **** { - 381 .loc 1 365 0 - 382 .cfi_startproc - 383 @ args = 0, pretend = 0, frame = 0 - ARM GAS /tmp/ccItNBni.s page 14 - - - 384 @ frame_needed = 0, uses_anonymous_args = 0 - 385 @ link register save eliminated. - 366:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal.c **** return __STM32F0xx_HAL_VERSION; - 367:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal.c **** } - 386 .loc 1 367 0 - 387 0000 0048 ldr r0, .L26 - 388 @ sp needed - 389 0002 7047 bx lr - 390 .L27: - 391 .align 2 - 392 .L26: - 393 0004 00020701 .word 17236480 - 394 .cfi_endproc - 395 .LFE47: - 397 .section .text.HAL_GetREVID,"ax",%progbits - 398 .align 1 - 399 .global HAL_GetREVID - 400 .syntax unified - 401 .code 16 - 402 .thumb_func - 403 .fpu softvfp - 405 HAL_GetREVID: - 406 .LFB48: - 368:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal.c **** - 369:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal.c **** /** - 370:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal.c **** * @brief Returns the device revision identifier. - 371:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal.c **** * @retval Device revision identifier - 372:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal.c **** */ - 373:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal.c **** uint32_t HAL_GetREVID(void) - 374:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal.c **** { - 407 .loc 1 374 0 - 408 .cfi_startproc - 409 @ args = 0, pretend = 0, frame = 0 - 410 @ frame_needed = 0, uses_anonymous_args = 0 - 411 @ link register save eliminated. - 375:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal.c **** return((DBGMCU->IDCODE) >> 16U); - 412 .loc 1 375 0 - 413 0000 014B ldr r3, .L29 - 414 0002 1868 ldr r0, [r3] - 415 0004 000C lsrs r0, r0, #16 - 376:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal.c **** } - 416 .loc 1 376 0 - 417 @ sp needed - 418 0006 7047 bx lr - 419 .L30: - 420 .align 2 - 421 .L29: - 422 0008 00580140 .word 1073829888 - 423 .cfi_endproc - 424 .LFE48: - 426 .section .text.HAL_GetDEVID,"ax",%progbits - 427 .align 1 - 428 .global HAL_GetDEVID - 429 .syntax unified - 430 .code 16 - 431 .thumb_func - 432 .fpu softvfp - ARM GAS /tmp/ccItNBni.s page 15 - - - 434 HAL_GetDEVID: - 435 .LFB49: - 377:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal.c **** - 378:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal.c **** /** - 379:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal.c **** * @brief Returns the device identifier. - 380:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal.c **** * @retval Device identifier - 381:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal.c **** */ - 382:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal.c **** uint32_t HAL_GetDEVID(void) - 383:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal.c **** { - 436 .loc 1 383 0 - 437 .cfi_startproc - 438 @ args = 0, pretend = 0, frame = 0 - 439 @ frame_needed = 0, uses_anonymous_args = 0 - 440 @ link register save eliminated. - 384:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal.c **** return((DBGMCU->IDCODE) & IDCODE_DEVID_MASK); - 441 .loc 1 384 0 - 442 0000 024B ldr r3, .L32 - 443 0002 1868 ldr r0, [r3] - 444 0004 0005 lsls r0, r0, #20 - 445 0006 000D lsrs r0, r0, #20 - 385:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal.c **** } - 446 .loc 1 385 0 - 447 @ sp needed - 448 0008 7047 bx lr - 449 .L33: - 450 000a C046 .align 2 - 451 .L32: - 452 000c 00580140 .word 1073829888 - 453 .cfi_endproc - 454 .LFE49: - 456 .section .text.HAL_GetUIDw0,"ax",%progbits - 457 .align 1 - 458 .global HAL_GetUIDw0 - 459 .syntax unified - 460 .code 16 - 461 .thumb_func - 462 .fpu softvfp - 464 HAL_GetUIDw0: - 465 .LFB50: - 386:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal.c **** - 387:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal.c **** /** - 388:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal.c **** * @brief Returns first word of the unique device identifier (UID based on 96 bits) - 389:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal.c **** * @retval Device identifier - 390:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal.c **** */ - 391:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal.c **** uint32_t HAL_GetUIDw0(void) - 392:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal.c **** { - 466 .loc 1 392 0 - 467 .cfi_startproc - 468 @ args = 0, pretend = 0, frame = 0 - 469 @ frame_needed = 0, uses_anonymous_args = 0 - 470 @ link register save eliminated. - 393:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal.c **** return(READ_REG(*((uint32_t *)UID_BASE))); - 471 .loc 1 393 0 - 472 0000 014B ldr r3, .L35 - 473 0002 1868 ldr r0, [r3] - 394:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal.c **** } - 474 .loc 1 394 0 - ARM GAS /tmp/ccItNBni.s page 16 - - - 475 @ sp needed - 476 0004 7047 bx lr - 477 .L36: - 478 0006 C046 .align 2 - 479 .L35: - 480 0008 ACF7FF1F .word 536868780 - 481 .cfi_endproc - 482 .LFE50: - 484 .section .text.HAL_GetUIDw1,"ax",%progbits - 485 .align 1 - 486 .global HAL_GetUIDw1 - 487 .syntax unified - 488 .code 16 - 489 .thumb_func - 490 .fpu softvfp - 492 HAL_GetUIDw1: - 493 .LFB51: - 395:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal.c **** - 396:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal.c **** /** - 397:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal.c **** * @brief Returns second word of the unique device identifier (UID based on 96 bits) - 398:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal.c **** * @retval Device identifier - 399:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal.c **** */ - 400:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal.c **** uint32_t HAL_GetUIDw1(void) - 401:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal.c **** { - 494 .loc 1 401 0 - 495 .cfi_startproc - 496 @ args = 0, pretend = 0, frame = 0 - 497 @ frame_needed = 0, uses_anonymous_args = 0 - 498 @ link register save eliminated. - 402:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal.c **** return(READ_REG(*((uint32_t *)(UID_BASE + 4U)))); - 499 .loc 1 402 0 - 500 0000 014B ldr r3, .L38 - 501 0002 1868 ldr r0, [r3] - 403:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal.c **** } - 502 .loc 1 403 0 - 503 @ sp needed - 504 0004 7047 bx lr - 505 .L39: - 506 0006 C046 .align 2 - 507 .L38: - 508 0008 B0F7FF1F .word 536868784 - 509 .cfi_endproc - 510 .LFE51: - 512 .section .text.HAL_GetUIDw2,"ax",%progbits - 513 .align 1 - 514 .global HAL_GetUIDw2 - 515 .syntax unified - 516 .code 16 - 517 .thumb_func - 518 .fpu softvfp - 520 HAL_GetUIDw2: - 521 .LFB52: - 404:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal.c **** - 405:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal.c **** /** - 406:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal.c **** * @brief Returns third word of the unique device identifier (UID based on 96 bits) - 407:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal.c **** * @retval Device identifier - 408:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal.c **** */ - ARM GAS /tmp/ccItNBni.s page 17 - - - 409:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal.c **** uint32_t HAL_GetUIDw2(void) - 410:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal.c **** { - 522 .loc 1 410 0 - 523 .cfi_startproc - 524 @ args = 0, pretend = 0, frame = 0 - 525 @ frame_needed = 0, uses_anonymous_args = 0 - 526 @ link register save eliminated. - 411:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal.c **** return(READ_REG(*((uint32_t *)(UID_BASE + 8U)))); - 527 .loc 1 411 0 - 528 0000 014B ldr r3, .L41 - 529 0002 1868 ldr r0, [r3] - 412:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal.c **** } - 530 .loc 1 412 0 - 531 @ sp needed - 532 0004 7047 bx lr - 533 .L42: - 534 0006 C046 .align 2 - 535 .L41: - 536 0008 B4F7FF1F .word 536868788 - 537 .cfi_endproc - 538 .LFE52: - 540 .section .text.HAL_DBGMCU_EnableDBGStopMode,"ax",%progbits - 541 .align 1 - 542 .global HAL_DBGMCU_EnableDBGStopMode - 543 .syntax unified - 544 .code 16 - 545 .thumb_func - 546 .fpu softvfp - 548 HAL_DBGMCU_EnableDBGStopMode: - 549 .LFB53: - 413:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal.c **** - 414:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal.c **** /** - 415:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal.c **** * @brief Enable the Debug Module during STOP mode - 416:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal.c **** * @retval None - 417:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal.c **** */ - 418:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal.c **** void HAL_DBGMCU_EnableDBGStopMode(void) - 419:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal.c **** { - 550 .loc 1 419 0 - 551 .cfi_startproc - 552 @ args = 0, pretend = 0, frame = 0 - 553 @ frame_needed = 0, uses_anonymous_args = 0 - 554 @ link register save eliminated. - 420:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal.c **** SET_BIT(DBGMCU->CR, DBGMCU_CR_DBG_STOP); - 555 .loc 1 420 0 - 556 0000 024A ldr r2, .L44 - 557 0002 5368 ldr r3, [r2, #4] - 558 0004 0221 movs r1, #2 - 559 0006 0B43 orrs r3, r1 - 560 0008 5360 str r3, [r2, #4] - 421:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal.c **** } - 561 .loc 1 421 0 - 562 @ sp needed - 563 000a 7047 bx lr - 564 .L45: - 565 .align 2 - 566 .L44: - 567 000c 00580140 .word 1073829888 - ARM GAS /tmp/ccItNBni.s page 18 - - - 568 .cfi_endproc - 569 .LFE53: - 571 .section .text.HAL_DBGMCU_DisableDBGStopMode,"ax",%progbits - 572 .align 1 - 573 .global HAL_DBGMCU_DisableDBGStopMode - 574 .syntax unified - 575 .code 16 - 576 .thumb_func - 577 .fpu softvfp - 579 HAL_DBGMCU_DisableDBGStopMode: - 580 .LFB54: - 422:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal.c **** - 423:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal.c **** /** - 424:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal.c **** * @brief Disable the Debug Module during STOP mode - 425:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal.c **** * @retval None - 426:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal.c **** */ - 427:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal.c **** void HAL_DBGMCU_DisableDBGStopMode(void) - 428:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal.c **** { - 581 .loc 1 428 0 - 582 .cfi_startproc - 583 @ args = 0, pretend = 0, frame = 0 - 584 @ frame_needed = 0, uses_anonymous_args = 0 - 585 @ link register save eliminated. - 429:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal.c **** CLEAR_BIT(DBGMCU->CR, DBGMCU_CR_DBG_STOP); - 586 .loc 1 429 0 - 587 0000 024A ldr r2, .L47 - 588 0002 5368 ldr r3, [r2, #4] - 589 0004 0221 movs r1, #2 - 590 0006 8B43 bics r3, r1 - 591 0008 5360 str r3, [r2, #4] - 430:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal.c **** } - 592 .loc 1 430 0 - 593 @ sp needed - 594 000a 7047 bx lr - 595 .L48: - 596 .align 2 - 597 .L47: - 598 000c 00580140 .word 1073829888 - 599 .cfi_endproc - 600 .LFE54: - 602 .section .text.HAL_DBGMCU_EnableDBGStandbyMode,"ax",%progbits - 603 .align 1 - 604 .global HAL_DBGMCU_EnableDBGStandbyMode - 605 .syntax unified - 606 .code 16 - 607 .thumb_func - 608 .fpu softvfp - 610 HAL_DBGMCU_EnableDBGStandbyMode: - 611 .LFB55: - 431:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal.c **** - 432:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal.c **** /** - 433:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal.c **** * @brief Enable the Debug Module during STANDBY mode - 434:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal.c **** * @retval None - 435:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal.c **** */ - 436:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal.c **** void HAL_DBGMCU_EnableDBGStandbyMode(void) - 437:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal.c **** { - 612 .loc 1 437 0 - ARM GAS /tmp/ccItNBni.s page 19 - - - 613 .cfi_startproc - 614 @ args = 0, pretend = 0, frame = 0 - 615 @ frame_needed = 0, uses_anonymous_args = 0 - 616 @ link register save eliminated. - 438:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal.c **** SET_BIT(DBGMCU->CR, DBGMCU_CR_DBG_STANDBY); - 617 .loc 1 438 0 - 618 0000 024A ldr r2, .L50 - 619 0002 5368 ldr r3, [r2, #4] - 620 0004 0421 movs r1, #4 - 621 0006 0B43 orrs r3, r1 - 622 0008 5360 str r3, [r2, #4] - 439:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal.c **** } - 623 .loc 1 439 0 - 624 @ sp needed - 625 000a 7047 bx lr - 626 .L51: - 627 .align 2 - 628 .L50: - 629 000c 00580140 .word 1073829888 - 630 .cfi_endproc - 631 .LFE55: - 633 .section .text.HAL_DBGMCU_DisableDBGStandbyMode,"ax",%progbits - 634 .align 1 - 635 .global HAL_DBGMCU_DisableDBGStandbyMode - 636 .syntax unified - 637 .code 16 - 638 .thumb_func - 639 .fpu softvfp - 641 HAL_DBGMCU_DisableDBGStandbyMode: - 642 .LFB56: - 440:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal.c **** - 441:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal.c **** /** - 442:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal.c **** * @brief Disable the Debug Module during STANDBY mode - 443:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal.c **** * @retval None - 444:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal.c **** */ - 445:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal.c **** void HAL_DBGMCU_DisableDBGStandbyMode(void) - 446:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal.c **** { - 643 .loc 1 446 0 - 644 .cfi_startproc - 645 @ args = 0, pretend = 0, frame = 0 - 646 @ frame_needed = 0, uses_anonymous_args = 0 - 647 @ link register save eliminated. - 447:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal.c **** CLEAR_BIT(DBGMCU->CR, DBGMCU_CR_DBG_STANDBY); - 648 .loc 1 447 0 - 649 0000 024A ldr r2, .L53 - 650 0002 5368 ldr r3, [r2, #4] - 651 0004 0421 movs r1, #4 - 652 0006 8B43 bics r3, r1 - 653 0008 5360 str r3, [r2, #4] - 448:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal.c **** } - 654 .loc 1 448 0 - 655 @ sp needed - 656 000a 7047 bx lr - 657 .L54: - 658 .align 2 - 659 .L53: - 660 000c 00580140 .word 1073829888 - ARM GAS /tmp/ccItNBni.s page 20 - - - 661 .cfi_endproc - 662 .LFE56: - 664 .comm uwTick,4,4 - 665 .text - 666 .Letext0: - 667 .file 2 "/home/janhenrik/programme/gcc-arm-none-eabi-7-2018-q2-update/arm-none-eabi/include/machin - 668 .file 3 "/home/janhenrik/programme/gcc-arm-none-eabi-7-2018-q2-update/arm-none-eabi/include/sys/_s - 669 .file 4 "Drivers/CMSIS/Include/core_cm0.h" - 670 .file 5 "Drivers/CMSIS/Device/ST/STM32F0xx/Include/system_stm32f0xx.h" - 671 .file 6 "Drivers/CMSIS/Device/ST/STM32F0xx/Include/stm32f072xb.h" - 672 .file 7 "/home/janhenrik/programme/gcc-arm-none-eabi-7-2018-q2-update/arm-none-eabi/include/sys/lo - 673 .file 8 "/home/janhenrik/programme/gcc-arm-none-eabi-7-2018-q2-update/arm-none-eabi/include/sys/_t - 674 .file 9 "/home/janhenrik/programme/gcc-arm-none-eabi-7-2018-q2-update/lib/gcc/arm-none-eabi/7.3.1/ - 675 .file 10 "/home/janhenrik/programme/gcc-arm-none-eabi-7-2018-q2-update/arm-none-eabi/include/sys/r - 676 .file 11 "Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_def.h" - 677 .file 12 "Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_rcc.h" - 678 .file 13 "Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_cortex.h" - ARM GAS /tmp/ccItNBni.s page 21 - - -DEFINED SYMBOLS - *ABS*:0000000000000000 stm32f0xx_hal.c - /tmp/ccItNBni.s:16 .text.HAL_MspInit:0000000000000000 $t - /tmp/ccItNBni.s:23 .text.HAL_MspInit:0000000000000000 HAL_MspInit - /tmp/ccItNBni.s:38 .text.HAL_MspDeInit:0000000000000000 $t - /tmp/ccItNBni.s:45 .text.HAL_MspDeInit:0000000000000000 HAL_MspDeInit - /tmp/ccItNBni.s:59 .text.HAL_DeInit:0000000000000000 $t - /tmp/ccItNBni.s:66 .text.HAL_DeInit:0000000000000000 HAL_DeInit - /tmp/ccItNBni.s:103 .text.HAL_DeInit:0000000000000020 $d - /tmp/ccItNBni.s:109 .text.HAL_InitTick:0000000000000000 $t - /tmp/ccItNBni.s:116 .text.HAL_InitTick:0000000000000000 HAL_InitTick - /tmp/ccItNBni.s:154 .text.HAL_Init:0000000000000000 $t - /tmp/ccItNBni.s:161 .text.HAL_Init:0000000000000000 HAL_Init - /tmp/ccItNBni.s:192 .text.HAL_Init:000000000000001c $d - /tmp/ccItNBni.s:197 .text.HAL_IncTick:0000000000000000 $t - /tmp/ccItNBni.s:204 .text.HAL_IncTick:0000000000000000 HAL_IncTick - /tmp/ccItNBni.s:222 .text.HAL_IncTick:000000000000000c $d - *COM*:0000000000000004 uwTick - /tmp/ccItNBni.s:227 .text.HAL_GetTick:0000000000000000 $t - /tmp/ccItNBni.s:234 .text.HAL_GetTick:0000000000000000 HAL_GetTick - /tmp/ccItNBni.s:250 .text.HAL_GetTick:0000000000000008 $d - /tmp/ccItNBni.s:255 .text.HAL_Delay:0000000000000000 $t - /tmp/ccItNBni.s:262 .text.HAL_Delay:0000000000000000 HAL_Delay - /tmp/ccItNBni.s:310 .text.HAL_SuspendTick:0000000000000000 $t - /tmp/ccItNBni.s:317 .text.HAL_SuspendTick:0000000000000000 HAL_SuspendTick - /tmp/ccItNBni.s:336 .text.HAL_SuspendTick:000000000000000c $d - /tmp/ccItNBni.s:341 .text.HAL_ResumeTick:0000000000000000 $t - /tmp/ccItNBni.s:348 .text.HAL_ResumeTick:0000000000000000 HAL_ResumeTick - /tmp/ccItNBni.s:367 .text.HAL_ResumeTick:000000000000000c $d - /tmp/ccItNBni.s:372 .text.HAL_GetHalVersion:0000000000000000 $t - /tmp/ccItNBni.s:379 .text.HAL_GetHalVersion:0000000000000000 HAL_GetHalVersion - /tmp/ccItNBni.s:393 .text.HAL_GetHalVersion:0000000000000004 $d - /tmp/ccItNBni.s:398 .text.HAL_GetREVID:0000000000000000 $t - /tmp/ccItNBni.s:405 .text.HAL_GetREVID:0000000000000000 HAL_GetREVID - /tmp/ccItNBni.s:422 .text.HAL_GetREVID:0000000000000008 $d - /tmp/ccItNBni.s:427 .text.HAL_GetDEVID:0000000000000000 $t - /tmp/ccItNBni.s:434 .text.HAL_GetDEVID:0000000000000000 HAL_GetDEVID - /tmp/ccItNBni.s:452 .text.HAL_GetDEVID:000000000000000c $d - /tmp/ccItNBni.s:457 .text.HAL_GetUIDw0:0000000000000000 $t - /tmp/ccItNBni.s:464 .text.HAL_GetUIDw0:0000000000000000 HAL_GetUIDw0 - /tmp/ccItNBni.s:480 .text.HAL_GetUIDw0:0000000000000008 $d - /tmp/ccItNBni.s:485 .text.HAL_GetUIDw1:0000000000000000 $t - /tmp/ccItNBni.s:492 .text.HAL_GetUIDw1:0000000000000000 HAL_GetUIDw1 - /tmp/ccItNBni.s:508 .text.HAL_GetUIDw1:0000000000000008 $d - /tmp/ccItNBni.s:513 .text.HAL_GetUIDw2:0000000000000000 $t - /tmp/ccItNBni.s:520 .text.HAL_GetUIDw2:0000000000000000 HAL_GetUIDw2 - /tmp/ccItNBni.s:536 .text.HAL_GetUIDw2:0000000000000008 $d - /tmp/ccItNBni.s:541 .text.HAL_DBGMCU_EnableDBGStopMode:0000000000000000 $t - /tmp/ccItNBni.s:548 .text.HAL_DBGMCU_EnableDBGStopMode:0000000000000000 HAL_DBGMCU_EnableDBGStopMode - /tmp/ccItNBni.s:567 .text.HAL_DBGMCU_EnableDBGStopMode:000000000000000c $d - /tmp/ccItNBni.s:572 .text.HAL_DBGMCU_DisableDBGStopMode:0000000000000000 $t - /tmp/ccItNBni.s:579 .text.HAL_DBGMCU_DisableDBGStopMode:0000000000000000 HAL_DBGMCU_DisableDBGStopMode - /tmp/ccItNBni.s:598 .text.HAL_DBGMCU_DisableDBGStopMode:000000000000000c $d - /tmp/ccItNBni.s:603 .text.HAL_DBGMCU_EnableDBGStandbyMode:0000000000000000 $t - /tmp/ccItNBni.s:610 .text.HAL_DBGMCU_EnableDBGStandbyMode:0000000000000000 HAL_DBGMCU_EnableDBGStandbyMode - /tmp/ccItNBni.s:629 .text.HAL_DBGMCU_EnableDBGStandbyMode:000000000000000c $d - /tmp/ccItNBni.s:634 .text.HAL_DBGMCU_DisableDBGStandbyMode:0000000000000000 $t - ARM GAS /tmp/ccItNBni.s page 22 - - - /tmp/ccItNBni.s:641 .text.HAL_DBGMCU_DisableDBGStandbyMode:0000000000000000 HAL_DBGMCU_DisableDBGStandbyMode - /tmp/ccItNBni.s:660 .text.HAL_DBGMCU_DisableDBGStandbyMode:000000000000000c $d - -UNDEFINED SYMBOLS -__aeabi_uidiv -HAL_RCC_GetHCLKFreq -HAL_SYSTICK_Config -HAL_NVIC_SetPriority diff --git a/firmware/build/stm32f0xx_hal.o b/firmware/build/stm32f0xx_hal.o deleted file mode 100644 index 5a949e6..0000000 Binary files a/firmware/build/stm32f0xx_hal.o and /dev/null differ diff --git a/firmware/build/stm32f0xx_hal_adc.d b/firmware/build/stm32f0xx_hal_adc.d deleted file mode 100644 index e33df21..0000000 --- a/firmware/build/stm32f0xx_hal_adc.d +++ /dev/null @@ -1,87 +0,0 @@ -build/stm32f0xx_hal_adc.o: \ - Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c \ - Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal.h \ - Inc/stm32f0xx_hal_conf.h \ - Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_rcc.h \ - Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_def.h \ - Drivers/CMSIS/Device/ST/STM32F0xx/Include/stm32f0xx.h \ - Drivers/CMSIS/Device/ST/STM32F0xx/Include/stm32f072xb.h \ - Drivers/CMSIS/Include/core_cm0.h Drivers/CMSIS/Include/core_cmInstr.h \ - Drivers/CMSIS/Include/cmsis_gcc.h Drivers/CMSIS/Include/core_cmFunc.h \ - Drivers/CMSIS/Device/ST/STM32F0xx/Include/system_stm32f0xx.h \ - Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_rcc_ex.h \ - Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_gpio.h \ - Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_gpio_ex.h \ - Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_dma.h \ - Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_dma_ex.h \ - Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_cortex.h \ - Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_adc.h \ - Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_adc_ex.h \ - Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_flash.h \ - Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_flash_ex.h \ - Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_i2c.h \ - Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_i2c_ex.h \ - Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_pcd.h \ - Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_pcd_ex.h \ - Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_pwr.h \ - Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_pwr_ex.h \ - Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_tim.h \ - Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_tim_ex.h - -Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal.h: - -Inc/stm32f0xx_hal_conf.h: - -Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_rcc.h: - -Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_def.h: - -Drivers/CMSIS/Device/ST/STM32F0xx/Include/stm32f0xx.h: - -Drivers/CMSIS/Device/ST/STM32F0xx/Include/stm32f072xb.h: - -Drivers/CMSIS/Include/core_cm0.h: - -Drivers/CMSIS/Include/core_cmInstr.h: - -Drivers/CMSIS/Include/cmsis_gcc.h: - -Drivers/CMSIS/Include/core_cmFunc.h: - -Drivers/CMSIS/Device/ST/STM32F0xx/Include/system_stm32f0xx.h: - -Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_rcc_ex.h: - -Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_gpio.h: - -Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_gpio_ex.h: - -Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_dma.h: - -Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_dma_ex.h: - -Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_cortex.h: - -Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_adc.h: - -Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_adc_ex.h: - -Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_flash.h: - -Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_flash_ex.h: - -Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_i2c.h: - -Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_i2c_ex.h: - -Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_pcd.h: - -Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_pcd_ex.h: - -Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_pwr.h: - -Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_pwr_ex.h: - -Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_tim.h: - -Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_tim_ex.h: diff --git a/firmware/build/stm32f0xx_hal_adc.lst b/firmware/build/stm32f0xx_hal_adc.lst deleted file mode 100644 index a5f17fa..0000000 --- a/firmware/build/stm32f0xx_hal_adc.lst +++ /dev/null @@ -1,5659 +0,0 @@ -ARM GAS /tmp/ccEKYEFi.s page 1 - - - 1 .cpu cortex-m0 - 2 .eabi_attribute 20, 1 - 3 .eabi_attribute 21, 1 - 4 .eabi_attribute 23, 3 - 5 .eabi_attribute 24, 1 - 6 .eabi_attribute 25, 1 - 7 .eabi_attribute 26, 1 - 8 .eabi_attribute 30, 1 - 9 .eabi_attribute 34, 0 - 10 .eabi_attribute 18, 4 - 11 .file "stm32f0xx_hal_adc.c" - 12 .text - 13 .Ltext0: - 14 .cfi_sections .debug_frame - 15 .section .text.ADC_ConversionStop,"ax",%progbits - 16 .align 1 - 17 .syntax unified - 18 .code 16 - 19 .thumb_func - 20 .fpu softvfp - 22 ADC_ConversionStop: - 23 .LFB61: - 24 .file 1 "Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c" - 1:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** /** - 2:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** ****************************************************************************** - 3:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** * @file stm32f0xx_hal_adc.c - 4:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** * @author MCD Application Team - 5:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** * @brief This file provides firmware functions to manage the following - 6:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** * functionalities of the Analog to Digital Convertor (ADC) - 7:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** * peripheral: - 8:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** * + Initialization and de-initialization functions - 9:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** * ++ Initialization and Configuration of ADC - 10:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** * + Operation functions - 11:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** * ++ Start, stop, get result of conversions of regular - 12:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** * group, using 3 possible modes: polling, interruption or DMA. - 13:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** * + Control functions - 14:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** * ++ Channels configuration on regular group - 15:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** * ++ Analog Watchdog configuration - 16:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** * + State functions - 17:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** * ++ ADC state machine management - 18:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** * ++ Interrupts and flags management - 19:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** * Other functions (extended functions) are available in file - 20:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** * "stm32f0xx_hal_adc_ex.c". - 21:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** * - 22:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** @verbatim - 23:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** ============================================================================== - 24:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** ##### ADC peripheral features ##### - 25:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** ============================================================================== - 26:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** [..] - 27:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** (+) 12-bit, 10-bit, 8-bit or 6-bit configurable resolution - 28:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** - 29:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** (+) Interrupt generation at the end of regular conversion and in case of - 30:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** analog watchdog or overrun events. - 31:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** - 32:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** (+) Single and continuous conversion modes. - 33:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** - 34:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** (+) Scan mode for conversion of several channels sequentially. - ARM GAS /tmp/ccEKYEFi.s page 2 - - - 35:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** - 36:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** (+) Data alignment with in-built data coherency. - 37:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** - 38:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** (+) Programmable sampling time (common for all channels) - 39:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** - 40:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** (+) ADC conversion of regular group. - 41:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** - 42:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** (+) External trigger (timer or EXTI) with configurable polarity - 43:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** - 44:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** (+) DMA request generation for transfer of conversions data of regular group. - 45:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** - 46:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** (+) ADC calibration - 47:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** - 48:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** (+) ADC supply requirements: 2.4 V to 3.6 V at full speed and down to 1.8 V at - 49:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** slower speed. - 50:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** - 51:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** (+) ADC input range: from Vref- (connected to Vssa) to Vref+ (connected to - 52:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** Vdda or to an external voltage reference). - 53:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** - 54:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** - 55:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** ##### How to use this driver ##### - 56:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** ============================================================================== - 57:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** [..] - 58:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** - 59:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** *** Configuration of top level parameters related to ADC *** - 60:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** ============================================================ - 61:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** [..] - 62:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** - 63:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** (#) Enable the ADC interface - 64:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** (++) As prerequisite, ADC clock must be configured at RCC top level. - 65:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** Caution: On STM32F0, ADC clock frequency max is 14MHz (refer - 66:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** to device datasheet). - 67:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** Therefore, ADC clock prescaler must be configured in - 68:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** function of ADC clock source frequency to remain below - 69:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** this maximum frequency. - 70:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** - 71:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** (++) Two clock settings are mandatory: - 72:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** (+++) ADC clock (core clock, also possibly conversion clock). - 73:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** - 74:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** (+++) ADC clock (conversions clock). - 75:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** Two possible clock sources: synchronous clock derived from APB clock - 76:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** or asynchronous clock derived from ADC dedicated HSI RC oscillator - 77:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** 14MHz. - 78:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** If asynchronous clock is selected, parameter "HSI14State" must be set either: - 79:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** - to "...HSI14State = RCC_HSI14_ADC_CONTROL" to let the ADC control - 80:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** the HSI14 oscillator enable/disable (if not used to supply the main - 81:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** system clock): feature used if ADC mode LowPowerAutoPowerOff is - 82:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** enabled. - 83:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** - to "...HSI14State = RCC_HSI14_ON" to maintain the HSI14 oscillator - 84:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** always enabled: can be used to supply the main system clock. - 85:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** - 86:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** (+++) Example: - 87:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** Into HAL_ADC_MspInit() (recommended code location) or with - 88:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** other device clock parameters configuration: - 89:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** (+++) __HAL_RCC_ADC1_CLK_ENABLE(); (mandatory) - 90:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** - 91:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** HI14 enable or let under control of ADC: (optional: if asynchronous clock - ARM GAS /tmp/ccEKYEFi.s page 3 - - - 92:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** (+++) RCC_OscInitTypeDef RCC_OscInitStructure; - 93:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** (+++) RCC_OscInitStructure.OscillatorType = RCC_OSCILLATORTYPE_HSI14; - 94:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** (+++) RCC_OscInitStructure.HSI14CalibrationValue = RCC_HSI14CALIBRATION_DEFAULT; - 95:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** (+++) RCC_OscInitStructure.HSI14State = RCC_HSI14_ADC_CONTROL; - 96:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** (+++) RCC_OscInitStructure.PLL... (optional if used for system clock) - 97:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** (+++) HAL_RCC_OscConfig(&RCC_OscInitStructure); - 98:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** - 99:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** (++) ADC clock source and clock prescaler are configured at ADC level with - 100:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** parameter "ClockPrescaler" using function HAL_ADC_Init(). - 101:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** - 102:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** (#) ADC pins configuration - 103:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** (++) Enable the clock for the ADC GPIOs - 104:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** using macro __HAL_RCC_GPIOx_CLK_ENABLE() - 105:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** (++) Configure these ADC pins in analog mode - 106:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** using function HAL_GPIO_Init() - 107:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** - 108:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** (#) Optionally, in case of usage of ADC with interruptions: - 109:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** (++) Configure the NVIC for ADC - 110:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** using function HAL_NVIC_EnableIRQ(ADCx_IRQn) - 111:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** (++) Insert the ADC interruption handler function HAL_ADC_IRQHandler() - 112:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** into the function of corresponding ADC interruption vector - 113:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** ADCx_IRQHandler(). - 114:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** - 115:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** (#) Optionally, in case of usage of DMA: - 116:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** (++) Configure the DMA (DMA channel, mode normal or circular, ...) - 117:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** using function HAL_DMA_Init(). - 118:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** (++) Configure the NVIC for DMA - 119:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** using function HAL_NVIC_EnableIRQ(DMAx_Channelx_IRQn) - 120:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** (++) Insert the ADC interruption handler function HAL_ADC_IRQHandler() - 121:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** into the function of corresponding DMA interruption vector - 122:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** DMAx_Channelx_IRQHandler(). - 123:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** - 124:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** *** Configuration of ADC, group regular, channels parameters *** - 125:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** ================================================================ - 126:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** [..] - 127:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** - 128:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** (#) Configure the ADC parameters (resolution, data alignment, ...) - 129:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** and regular group parameters (conversion trigger, sequencer, ...) - 130:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** using function HAL_ADC_Init(). - 131:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** - 132:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** (#) Configure the channels for regular group parameters (channel number, - 133:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** channel rank into sequencer, ..., into regular group) - 134:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** using function HAL_ADC_ConfigChannel(). - 135:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** - 136:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** (#) Optionally, configure the analog watchdog parameters (channels - 137:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** monitored, thresholds, ...) - 138:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** using function HAL_ADC_AnalogWDGConfig(). - 139:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** - 140:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** *** Execution of ADC conversions *** - 141:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** ==================================== - 142:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** [..] - 143:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** - 144:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** (#) Optionally, perform an automatic ADC calibration to improve the - 145:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** conversion accuracy - 146:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** using function HAL_ADCEx_Calibration_Start(). - 147:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** - 148:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** (#) ADC driver can be used among three modes: polling, interruption, - ARM GAS /tmp/ccEKYEFi.s page 4 - - - 149:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** transfer by DMA. - 150:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** - 151:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** (++) ADC conversion by polling: - 152:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** (+++) Activate the ADC peripheral and start conversions - 153:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** using function HAL_ADC_Start() - 154:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** (+++) Wait for ADC conversion completion - 155:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** using function HAL_ADC_PollForConversion() - 156:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** (+++) Retrieve conversion results - 157:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** using function HAL_ADC_GetValue() - 158:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** (+++) Stop conversion and disable the ADC peripheral - 159:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** using function HAL_ADC_Stop() - 160:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** - 161:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** (++) ADC conversion by interruption: - 162:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** (+++) Activate the ADC peripheral and start conversions - 163:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** using function HAL_ADC_Start_IT() - 164:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** (+++) Wait for ADC conversion completion by call of function - 165:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** HAL_ADC_ConvCpltCallback() - 166:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** (this function must be implemented in user program) - 167:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** (+++) Retrieve conversion results - 168:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** using function HAL_ADC_GetValue() - 169:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** (+++) Stop conversion and disable the ADC peripheral - 170:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** using function HAL_ADC_Stop_IT() - 171:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** - 172:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** (++) ADC conversion with transfer by DMA: - 173:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** (+++) Activate the ADC peripheral and start conversions - 174:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** using function HAL_ADC_Start_DMA() - 175:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** (+++) Wait for ADC conversion completion by call of function - 176:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** HAL_ADC_ConvCpltCallback() or HAL_ADC_ConvHalfCpltCallback() - 177:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** (these functions must be implemented in user program) - 178:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** (+++) Conversion results are automatically transferred by DMA into - 179:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** destination variable address. - 180:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** (+++) Stop conversion and disable the ADC peripheral - 181:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** using function HAL_ADC_Stop_DMA() - 182:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** - 183:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** [..] - 184:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** - 185:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** (@) Callback functions must be implemented in user program: - 186:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** (+@) HAL_ADC_ErrorCallback() - 187:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** (+@) HAL_ADC_LevelOutOfWindowCallback() (callback of analog watchdog) - 188:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** (+@) HAL_ADC_ConvCpltCallback() - 189:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** (+@) HAL_ADC_ConvHalfCpltCallback - 190:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** - 191:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** *** Deinitialization of ADC *** - 192:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** ============================================================ - 193:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** [..] - 194:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** - 195:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** (#) Disable the ADC interface - 196:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** (++) ADC clock can be hard reset and disabled at RCC top level. - 197:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** (++) Hard reset of ADC peripherals - 198:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** using macro __ADCx_FORCE_RESET(), __ADCx_RELEASE_RESET(). - 199:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** (++) ADC clock disable - 200:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** using the equivalent macro/functions as configuration step. - 201:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** (+++) Example: - 202:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** Into HAL_ADC_MspDeInit() (recommended code location) or with - 203:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** other device clock parameters configuration: - 204:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** (+++) RCC_OscInitStructure.OscillatorType = RCC_OSCILLATORTYPE_HSI14; - 205:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** (+++) RCC_OscInitStructure.HSI14State = RCC_HSI14_OFF; (if not used for system clock - ARM GAS /tmp/ccEKYEFi.s page 5 - - - 206:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** (+++) HAL_RCC_OscConfig(&RCC_OscInitStructure); - 207:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** - 208:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** (#) ADC pins configuration - 209:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** (++) Disable the clock for the ADC GPIOs - 210:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** using macro __HAL_RCC_GPIOx_CLK_DISABLE() - 211:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** - 212:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** (#) Optionally, in case of usage of ADC with interruptions: - 213:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** (++) Disable the NVIC for ADC - 214:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** using function HAL_NVIC_EnableIRQ(ADCx_IRQn) - 215:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** - 216:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** (#) Optionally, in case of usage of DMA: - 217:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** (++) Deinitialize the DMA - 218:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** using function HAL_DMA_Init(). - 219:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** (++) Disable the NVIC for DMA - 220:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** using function HAL_NVIC_EnableIRQ(DMAx_Channelx_IRQn) - 221:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** - 222:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** [..] - 223:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** - 224:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** @endverbatim - 225:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** ****************************************************************************** - 226:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** * @attention - 227:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** * - 228:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** *

© COPYRIGHT(c) 2016 STMicroelectronics

- 229:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** * - 230:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** * Redistribution and use in source and binary forms, with or without modification, - 231:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** * are permitted provided that the following conditions are met: - 232:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** * 1. Redistributions of source code must retain the above copyright notice, - 233:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** * this list of conditions and the following disclaimer. - 234:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** * 2. Redistributions in binary form must reproduce the above copyright notice, - 235:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** * this list of conditions and the following disclaimer in the documentation - 236:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** * and/or other materials provided with the distribution. - 237:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** * 3. Neither the name of STMicroelectronics nor the names of its contributors - 238:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** * may be used to endorse or promote products derived from this software - 239:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** * without specific prior written permission. - 240:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** * - 241:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" - 242:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE - 243:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE - 244:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** * DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE - 245:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL - 246:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR - 247:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** * SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER - 248:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** * CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, - 249:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE - 250:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. - 251:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** * - 252:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** ****************************************************************************** - 253:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** */ - 254:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** - 255:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** /* Includes ------------------------------------------------------------------*/ - 256:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** #include "stm32f0xx_hal.h" - 257:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** - 258:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** /** @addtogroup STM32F0xx_HAL_Driver - 259:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** * @{ - 260:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** */ - 261:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** - 262:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** /** @defgroup ADC ADC - ARM GAS /tmp/ccEKYEFi.s page 6 - - - 263:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** * @brief ADC HAL module driver - 264:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** * @{ - 265:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** */ - 266:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** - 267:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** #ifdef HAL_ADC_MODULE_ENABLED - 268:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** - 269:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** /* Private typedef -----------------------------------------------------------*/ - 270:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** /* Private define ------------------------------------------------------------*/ - 271:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** /** @defgroup ADC_Private_Constants ADC Private Constants - 272:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** * @{ - 273:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** */ - 274:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** - 275:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** /* Fixed timeout values for ADC calibration, enable settling time, disable */ - 276:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** /* settling time. */ - 277:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** /* Values defined to be higher than worst cases: low clock frequency, */ - 278:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** /* maximum prescaler. */ - 279:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** /* Ex of profile low frequency : Clock source at 0.1 MHz, ADC clock */ - 280:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** /* prescaler 4, sampling time 7.5 ADC clock cycles, resolution 12 bits. */ - 281:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** /* Unit: ms */ - 282:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** #define ADC_ENABLE_TIMEOUT ( 2U) - 283:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** #define ADC_DISABLE_TIMEOUT ( 2U) - 284:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** #define ADC_STOP_CONVERSION_TIMEOUT ( 2U) - 285:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** - 286:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** /* Delay for ADC stabilization time. */ - 287:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** /* Maximum delay is 1us (refer to device datasheet, parameter tSTAB). */ - 288:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** /* Unit: us */ - 289:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** #define ADC_STAB_DELAY_US ( 1U) - 290:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** - 291:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** /* Delay for temperature sensor stabilization time. */ - 292:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** /* Maximum delay is 10us (refer to device datasheet, parameter tSTART). */ - 293:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** /* Unit: us */ - 294:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** #define ADC_TEMPSENSOR_DELAY_US ( 10U) - 295:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** - 296:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** /** - 297:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** * @} - 298:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** */ - 299:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** - 300:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** /* Private macro -------------------------------------------------------------*/ - 301:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** /* Private variables ---------------------------------------------------------*/ - 302:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** /* Private function prototypes -----------------------------------------------*/ - 303:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** /** @defgroup ADC_Private_Functions ADC Private Functions - 304:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** * @{ - 305:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** */ - 306:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** static HAL_StatusTypeDef ADC_Enable(ADC_HandleTypeDef* hadc); - 307:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** static HAL_StatusTypeDef ADC_Disable(ADC_HandleTypeDef* hadc); - 308:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** static HAL_StatusTypeDef ADC_ConversionStop(ADC_HandleTypeDef* hadc); - 309:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** static void ADC_DMAConvCplt(DMA_HandleTypeDef *hdma); - 310:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** static void ADC_DMAHalfConvCplt(DMA_HandleTypeDef *hdma); - 311:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** static void ADC_DMAError(DMA_HandleTypeDef *hdma); - 312:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** /** - 313:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** * @} - 314:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** */ - 315:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** - 316:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** /* Exported functions ---------------------------------------------------------*/ - 317:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** - 318:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** /** @defgroup ADC_Exported_Functions ADC Exported Functions - 319:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** * @{ - ARM GAS /tmp/ccEKYEFi.s page 7 - - - 320:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** */ - 321:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** - 322:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** /** @defgroup ADC_Exported_Functions_Group1 Initialization/de-initialization functions - 323:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** * @brief Initialization and Configuration functions - 324:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** * - 325:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** @verbatim - 326:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** =============================================================================== - 327:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** ##### Initialization and de-initialization functions ##### - 328:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** =============================================================================== - 329:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** [..] This section provides functions allowing to: - 330:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** (+) Initialize and configure the ADC. - 331:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** (+) De-initialize the ADC - 332:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** @endverbatim - 333:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** * @{ - 334:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** */ - 335:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** - 336:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** /** - 337:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** * @brief Initializes the ADC peripheral and regular group according to - 338:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** * parameters specified in structure "ADC_InitTypeDef". - 339:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** * @note As prerequisite, ADC clock must be configured at RCC top level - 340:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** * depending on both possible clock sources: APB clock of HSI clock. - 341:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** * See commented example code below that can be copied and uncommented - 342:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** * into HAL_ADC_MspInit(). - 343:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** * @note Possibility to update parameters on the fly: - 344:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** * This function initializes the ADC MSP (HAL_ADC_MspInit()) only when - 345:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** * coming from ADC state reset. Following calls to this function can - 346:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** * be used to reconfigure some parameters of ADC_InitTypeDef - 347:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** * structure on the fly, without modifying MSP configuration. If ADC - 348:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** * MSP has to be modified again, HAL_ADC_DeInit() must be called - 349:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** * before HAL_ADC_Init(). - 350:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** * The setting of these parameters is conditioned to ADC state. - 351:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** * For parameters constraints, see comments of structure - 352:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** * "ADC_InitTypeDef". - 353:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** * @note This function configures the ADC within 2 scopes: scope of entire - 354:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** * ADC and scope of regular group. For parameters details, see comments - 355:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** * of structure "ADC_InitTypeDef". - 356:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** * @param hadc ADC handle - 357:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** * @retval HAL status - 358:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** */ - 359:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** HAL_StatusTypeDef HAL_ADC_Init(ADC_HandleTypeDef* hadc) - 360:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** { - 361:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** HAL_StatusTypeDef tmp_hal_status = HAL_OK; - 362:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** uint32_t tmpCFGR1 = 0U; - 363:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** - 364:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** /* Check ADC handle */ - 365:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** if(hadc == NULL) - 366:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** { - 367:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** return HAL_ERROR; - 368:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** } - 369:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** - 370:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** /* Check the parameters */ - 371:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** assert_param(IS_ADC_ALL_INSTANCE(hadc->Instance)); - 372:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** assert_param(IS_ADC_CLOCKPRESCALER(hadc->Init.ClockPrescaler)); - 373:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** assert_param(IS_ADC_RESOLUTION(hadc->Init.Resolution)); - 374:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** assert_param(IS_ADC_DATA_ALIGN(hadc->Init.DataAlign)); - 375:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** assert_param(IS_ADC_SCAN_MODE(hadc->Init.ScanConvMode)); - 376:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** assert_param(IS_FUNCTIONAL_STATE(hadc->Init.ContinuousConvMode)); - ARM GAS /tmp/ccEKYEFi.s page 8 - - - 377:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** assert_param(IS_FUNCTIONAL_STATE(hadc->Init.DiscontinuousConvMode)); - 378:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** assert_param(IS_ADC_EXTTRIG_EDGE(hadc->Init.ExternalTrigConvEdge)); - 379:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** assert_param(IS_ADC_EXTTRIG(hadc->Init.ExternalTrigConv)); - 380:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** assert_param(IS_FUNCTIONAL_STATE(hadc->Init.DMAContinuousRequests)); - 381:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** assert_param(IS_ADC_EOC_SELECTION(hadc->Init.EOCSelection)); - 382:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** assert_param(IS_ADC_OVERRUN(hadc->Init.Overrun)); - 383:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** assert_param(IS_FUNCTIONAL_STATE(hadc->Init.LowPowerAutoWait)); - 384:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** assert_param(IS_FUNCTIONAL_STATE(hadc->Init.LowPowerAutoPowerOff)); - 385:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** - 386:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** /* As prerequisite, into HAL_ADC_MspInit(), ADC clock must be configured */ - 387:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** /* at RCC top level depending on both possible clock sources: */ - 388:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** /* APB clock or HSI clock. */ - 389:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** /* Refer to header of this file for more details on clock enabling procedure*/ - 390:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** - 391:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** /* Actions performed only if ADC is coming from state reset: */ - 392:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** /* - Initialization of ADC MSP */ - 393:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** /* - ADC voltage regulator enable */ - 394:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** if (hadc->State == HAL_ADC_STATE_RESET) - 395:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** { - 396:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** /* Initialize ADC error code */ - 397:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** ADC_CLEAR_ERRORCODE(hadc); - 398:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** - 399:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** /* Allocate lock resource and initialize it */ - 400:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** hadc->Lock = HAL_UNLOCKED; - 401:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** - 402:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** /* Init the low level hardware */ - 403:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** HAL_ADC_MspInit(hadc); - 404:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** } - 405:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** - 406:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** /* Configuration of ADC parameters if previous preliminary actions are */ - 407:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** /* correctly completed. */ - 408:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** /* and if there is no conversion on going on regular group (ADC can be */ - 409:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** /* enabled anyway, in case of call of this function to update a parameter */ - 410:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** /* on the fly). */ - 411:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** if (HAL_IS_BIT_CLR(hadc->State, HAL_ADC_STATE_ERROR_INTERNAL) && - 412:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** (tmp_hal_status == HAL_OK) && - 413:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** (ADC_IS_CONVERSION_ONGOING_REGULAR(hadc) == RESET) ) - 414:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** { - 415:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** /* Set ADC state */ - 416:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** ADC_STATE_CLR_SET(hadc->State, - 417:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** HAL_ADC_STATE_REG_BUSY, - 418:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** HAL_ADC_STATE_BUSY_INTERNAL); - 419:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** - 420:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** /* Parameters update conditioned to ADC state: */ - 421:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** /* Parameters that can be updated only when ADC is disabled: */ - 422:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** /* - ADC clock mode */ - 423:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** /* - ADC clock prescaler */ - 424:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** /* - ADC resolution */ - 425:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** if (ADC_IS_ENABLE(hadc) == RESET) - 426:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** { - 427:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** /* Some parameters of this register are not reset, since they are set */ - 428:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** /* by other functions and must be kept in case of usage of this */ - 429:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** /* function on the fly (update of a parameter of ADC_InitTypeDef */ - 430:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** /* without needing to reconfigure all other ADC groups/channels */ - 431:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** /* parameters): */ - 432:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** /* - internal measurement paths: Vbat, temperature sensor, Vref */ - 433:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** /* (set into HAL_ADC_ConfigChannel() ) */ - ARM GAS /tmp/ccEKYEFi.s page 9 - - - 434:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** - 435:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** /* Configuration of ADC resolution */ - 436:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** MODIFY_REG(hadc->Instance->CFGR1, - 437:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** ADC_CFGR1_RES , - 438:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** hadc->Init.Resolution ); - 439:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** - 440:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** /* Configuration of ADC clock mode: clock source AHB or HSI with */ - 441:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** /* selectable prescaler */ - 442:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** MODIFY_REG(hadc->Instance->CFGR2 , - 443:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** ADC_CFGR2_CKMODE , - 444:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** hadc->Init.ClockPrescaler ); - 445:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** } - 446:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** - 447:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** /* Configuration of ADC: */ - 448:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** /* - discontinuous mode */ - 449:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** /* - LowPowerAutoWait mode */ - 450:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** /* - LowPowerAutoPowerOff mode */ - 451:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** /* - continuous conversion mode */ - 452:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** /* - overrun */ - 453:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** /* - external trigger to start conversion */ - 454:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** /* - external trigger polarity */ - 455:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** /* - data alignment */ - 456:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** /* - resolution */ - 457:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** /* - scan direction */ - 458:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** /* - DMA continuous request */ - 459:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** hadc->Instance->CFGR1 &= ~( ADC_CFGR1_DISCEN | - 460:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** ADC_CFGR1_AUTOFF | - 461:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** ADC_CFGR1_AUTDLY | - 462:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** ADC_CFGR1_CONT | - 463:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** ADC_CFGR1_OVRMOD | - 464:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** ADC_CFGR1_EXTSEL | - 465:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** ADC_CFGR1_EXTEN | - 466:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** ADC_CFGR1_ALIGN | - 467:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** ADC_CFGR1_SCANDIR | - 468:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** ADC_CFGR1_DMACFG ); - 469:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** - 470:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** tmpCFGR1 |= (ADC_CFGR1_AUTOWAIT(hadc->Init.LowPowerAutoWait) | - 471:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** ADC_CFGR1_AUTOOFF(hadc->Init.LowPowerAutoPowerOff) | - 472:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** ADC_CFGR1_CONTINUOUS(hadc->Init.ContinuousConvMode) | - 473:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** ADC_CFGR1_OVERRUN(hadc->Init.Overrun) | - 474:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** hadc->Init.DataAlign | - 475:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** ADC_SCANDIR(hadc->Init.ScanConvMode) | - 476:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** ADC_CFGR1_DMACONTREQ(hadc->Init.DMAContinuousRequests) ); - 477:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** - 478:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** /* Enable discontinuous mode only if continuous mode is disabled */ - 479:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** if (hadc->Init.DiscontinuousConvMode == ENABLE) - 480:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** { - 481:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** if (hadc->Init.ContinuousConvMode == DISABLE) - 482:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** { - 483:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** /* Enable the selected ADC group regular discontinuous mode */ - 484:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** tmpCFGR1 |= ADC_CFGR1_DISCEN; - 485:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** } - 486:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** else - 487:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** { - 488:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** /* ADC regular group discontinuous was intended to be enabled, */ - 489:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** /* but ADC regular group modes continuous and sequencer discontinuous */ - 490:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** /* cannot be enabled simultaneously. */ - ARM GAS /tmp/ccEKYEFi.s page 10 - - - 491:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** - 492:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** /* Update ADC state machine to error */ - 493:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** SET_BIT(hadc->State, HAL_ADC_STATE_ERROR_CONFIG); - 494:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** - 495:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** /* Set ADC error code to ADC IP internal error */ - 496:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** SET_BIT(hadc->ErrorCode, HAL_ADC_ERROR_INTERNAL); - 497:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** } - 498:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** } - 499:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** - 500:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** /* Enable external trigger if trigger selection is different of software */ - 501:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** /* start. */ - 502:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** /* Note: This configuration keeps the hardware feature of parameter */ - 503:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** /* ExternalTrigConvEdge "trigger edge none" equivalent to */ - 504:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** /* software start. */ - 505:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** if (hadc->Init.ExternalTrigConv != ADC_SOFTWARE_START) - 506:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** { - 507:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** tmpCFGR1 |= ( hadc->Init.ExternalTrigConv | - 508:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** hadc->Init.ExternalTrigConvEdge ); - 509:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** } - 510:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** - 511:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** /* Update ADC configuration register with previous settings */ - 512:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** hadc->Instance->CFGR1 |= tmpCFGR1; - 513:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** - 514:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** /* Channel sampling time configuration */ - 515:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** /* Management of parameters "SamplingTimeCommon" and "SamplingTime" */ - 516:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** /* (obsolete): sampling time set in this function if parameter */ - 517:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** /* "SamplingTimeCommon" has been set to a valid sampling time. */ - 518:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** /* Otherwise, sampling time is set into ADC channel initialization */ - 519:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** /* structure with parameter "SamplingTime" (obsolete). */ - 520:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** if (IS_ADC_SAMPLE_TIME(hadc->Init.SamplingTimeCommon)) - 521:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** { - 522:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** /* Channel sampling time configuration */ - 523:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** /* Clear the old sample time */ - 524:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** hadc->Instance->SMPR &= ~(ADC_SMPR_SMP); - 525:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** - 526:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** /* Set the new sample time */ - 527:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** hadc->Instance->SMPR |= ADC_SMPR_SET(hadc->Init.SamplingTimeCommon); - 528:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** } - 529:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** - 530:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** /* Check back that ADC registers have effectively been configured to */ - 531:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** /* ensure of no potential problem of ADC core IP clocking. */ - 532:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** /* Check through register CFGR1 (excluding analog watchdog configuration: */ - 533:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** /* set into separate dedicated function, and bits of ADC resolution set */ - 534:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** /* out of temporary variable 'tmpCFGR1'). */ - 535:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** if ((hadc->Instance->CFGR1 & ~(ADC_CFGR1_AWDCH | ADC_CFGR1_AWDEN | ADC_CFGR1_AWDSGL | ADC_CFGR1 - 536:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** == tmpCFGR1) - 537:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** { - 538:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** /* Set ADC error code to none */ - 539:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** ADC_CLEAR_ERRORCODE(hadc); - 540:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** - 541:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** /* Set the ADC state */ - 542:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** ADC_STATE_CLR_SET(hadc->State, - 543:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** HAL_ADC_STATE_BUSY_INTERNAL, - 544:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** HAL_ADC_STATE_READY); - 545:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** } - 546:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** else - 547:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** { - ARM GAS /tmp/ccEKYEFi.s page 11 - - - 548:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** /* Update ADC state machine to error */ - 549:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** ADC_STATE_CLR_SET(hadc->State, - 550:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** HAL_ADC_STATE_BUSY_INTERNAL, - 551:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** HAL_ADC_STATE_ERROR_INTERNAL); - 552:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** - 553:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** /* Set ADC error code to ADC IP internal error */ - 554:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** SET_BIT(hadc->ErrorCode, HAL_ADC_ERROR_INTERNAL); - 555:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** - 556:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** tmp_hal_status = HAL_ERROR; - 557:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** } - 558:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** - 559:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** } - 560:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** else - 561:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** { - 562:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** /* Update ADC state machine to error */ - 563:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** SET_BIT(hadc->State, HAL_ADC_STATE_ERROR_INTERNAL); - 564:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** - 565:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** tmp_hal_status = HAL_ERROR; - 566:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** } - 567:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** - 568:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** /* Return function status */ - 569:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** return tmp_hal_status; - 570:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** } - 571:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** - 572:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** - 573:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** /** - 574:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** * @brief Deinitialize the ADC peripheral registers to their default reset - 575:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** * values, with deinitialization of the ADC MSP. - 576:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** * @note For devices with several ADCs: reset of ADC common registers is done - 577:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** * only if all ADCs sharing the same common group are disabled. - 578:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** * If this is not the case, reset of these common parameters reset is - 579:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** * bypassed without error reporting: it can be the intended behaviour in - 580:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** * case of reset of a single ADC while the other ADCs sharing the same - 581:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** * common group is still running. - 582:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** * @param hadc ADC handle - 583:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** * @retval HAL status - 584:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** */ - 585:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** HAL_StatusTypeDef HAL_ADC_DeInit(ADC_HandleTypeDef* hadc) - 586:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** { - 587:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** HAL_StatusTypeDef tmp_hal_status = HAL_OK; - 588:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** - 589:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** /* Check ADC handle */ - 590:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** if(hadc == NULL) - 591:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** { - 592:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** return HAL_ERROR; - 593:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** } - 594:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** - 595:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** /* Check the parameters */ - 596:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** assert_param(IS_ADC_ALL_INSTANCE(hadc->Instance)); - 597:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** - 598:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** /* Set ADC state */ - 599:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** SET_BIT(hadc->State, HAL_ADC_STATE_BUSY_INTERNAL); - 600:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** - 601:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** /* Stop potential conversion on going, on regular group */ - 602:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** tmp_hal_status = ADC_ConversionStop(hadc); - 603:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** - 604:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** /* Disable ADC peripheral if conversions are effectively stopped */ - ARM GAS /tmp/ccEKYEFi.s page 12 - - - 605:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** if (tmp_hal_status == HAL_OK) - 606:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** { - 607:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** /* Disable the ADC peripheral */ - 608:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** tmp_hal_status = ADC_Disable(hadc); - 609:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** - 610:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** /* Check if ADC is effectively disabled */ - 611:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** if (tmp_hal_status != HAL_ERROR) - 612:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** { - 613:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** /* Change ADC state */ - 614:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** hadc->State = HAL_ADC_STATE_READY; - 615:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** } - 616:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** } - 617:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** - 618:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** - 619:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** /* Configuration of ADC parameters if previous preliminary actions are */ - 620:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** /* correctly completed. */ - 621:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** if (tmp_hal_status != HAL_ERROR) - 622:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** { - 623:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** - 624:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** /* ========== Reset ADC registers ========== */ - 625:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** /* Reset register IER */ - 626:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** __HAL_ADC_DISABLE_IT(hadc, (ADC_IT_AWD | ADC_IT_OVR | - 627:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** ADC_IT_EOS | ADC_IT_EOC | - 628:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** ADC_IT_EOSMP | ADC_IT_RDY ) ); - 629:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** - 630:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** /* Reset register ISR */ - 631:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** __HAL_ADC_CLEAR_FLAG(hadc, (ADC_FLAG_AWD | ADC_FLAG_OVR | - 632:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** ADC_FLAG_EOS | ADC_FLAG_EOC | - 633:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** ADC_FLAG_EOSMP | ADC_FLAG_RDY ) ); - 634:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** - 635:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** /* Reset register CR */ - 636:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** /* Bits ADC_CR_ADCAL, ADC_CR_ADSTP, ADC_CR_ADSTART are in access mode */ - 637:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** /* "read-set": no direct reset applicable. */ - 638:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** - 639:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** /* Reset register CFGR1 */ - 640:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** hadc->Instance->CFGR1 &= ~(ADC_CFGR1_AWDCH | ADC_CFGR1_AWDEN | ADC_CFGR1_AWDSGL | ADC_CFGR1_ - 641:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** ADC_CFGR1_AUTOFF | ADC_CFGR1_WAIT | ADC_CFGR1_CONT | ADC_CFGR1_ - 642:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** ADC_CFGR1_EXTEN | ADC_CFGR1_EXTSEL | ADC_CFGR1_ALIGN | ADC_CFGR1_ - 643:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** ADC_CFGR1_SCANDIR | ADC_CFGR1_DMACFG | ADC_CFGR1_DMAEN - 644:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** - 645:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** /* Reset register CFGR2 */ - 646:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** /* Note: Update of ADC clock mode is conditioned to ADC state disabled: */ - 647:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** /* already done above. */ - 648:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** hadc->Instance->CFGR2 &= ~ADC_CFGR2_CKMODE; - 649:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** - 650:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** /* Reset register SMPR */ - 651:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** hadc->Instance->SMPR &= ~ADC_SMPR_SMP; - 652:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** - 653:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** /* Reset register TR1 */ - 654:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** hadc->Instance->TR &= ~(ADC_TR_HT | ADC_TR_LT); - 655:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** - 656:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** /* Reset register CHSELR */ - 657:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** hadc->Instance->CHSELR &= ~(ADC_CHSELR_CHSEL18 | ADC_CHSELR_CHSEL17 | ADC_CHSELR_CHSEL16 | - 658:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** ADC_CHSELR_CHSEL15 | ADC_CHSELR_CHSEL14 | ADC_CHSELR_CHSEL13 | ADC_ - 659:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** ADC_CHSELR_CHSEL11 | ADC_CHSELR_CHSEL10 | ADC_CHSELR_CHSEL9 | ADC_ - 660:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** ADC_CHSELR_CHSEL7 | ADC_CHSELR_CHSEL6 | ADC_CHSELR_CHSEL5 | ADC_ - 661:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** ADC_CHSELR_CHSEL3 | ADC_CHSELR_CHSEL2 | ADC_CHSELR_CHSEL1 | ADC_ - ARM GAS /tmp/ccEKYEFi.s page 13 - - - 662:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** - 663:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** /* Reset register DR */ - 664:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** /* bits in access mode read only, no direct reset applicable*/ - 665:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** - 666:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** /* Reset register CCR */ - 667:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** ADC->CCR &= ~(ADC_CCR_ALL); - 668:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** - 669:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** /* ========== Hard reset ADC peripheral ========== */ - 670:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** /* Performs a global reset of the entire ADC peripheral: ADC state is */ - 671:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** /* forced to a similar state after device power-on. */ - 672:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** /* If needed, copy-paste and uncomment the following reset code into */ - 673:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** /* function "void HAL_ADC_MspInit(ADC_HandleTypeDef* hadc)": */ - 674:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** /* */ - 675:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** /* __HAL_RCC_ADC1_FORCE_RESET() */ - 676:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** /* __HAL_RCC_ADC1_RELEASE_RESET() */ - 677:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** - 678:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** /* DeInit the low level hardware */ - 679:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** HAL_ADC_MspDeInit(hadc); - 680:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** - 681:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** /* Set ADC error code to none */ - 682:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** ADC_CLEAR_ERRORCODE(hadc); - 683:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** - 684:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** /* Set ADC state */ - 685:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** hadc->State = HAL_ADC_STATE_RESET; - 686:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** } - 687:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** - 688:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** /* Process unlocked */ - 689:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** __HAL_UNLOCK(hadc); - 690:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** - 691:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** /* Return function status */ - 692:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** return tmp_hal_status; - 693:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** } - 694:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** - 695:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** - 696:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** /** - 697:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** * @brief Initializes the ADC MSP. - 698:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** * @param hadc ADC handle - 699:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** * @retval None - 700:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** */ - 701:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** __weak void HAL_ADC_MspInit(ADC_HandleTypeDef* hadc) - 702:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** { - 703:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** /* Prevent unused argument(s) compilation warning */ - 704:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** UNUSED(hadc); - 705:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** - 706:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** /* NOTE : This function should not be modified. When the callback is needed, - 707:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** function HAL_ADC_MspInit must be implemented in the user file. - 708:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** */ - 709:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** } - 710:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** - 711:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** /** - 712:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** * @brief DeInitializes the ADC MSP. - 713:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** * @param hadc ADC handle - 714:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** * @retval None - 715:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** */ - 716:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** __weak void HAL_ADC_MspDeInit(ADC_HandleTypeDef* hadc) - 717:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** { - 718:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** /* Prevent unused argument(s) compilation warning */ - ARM GAS /tmp/ccEKYEFi.s page 14 - - - 719:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** UNUSED(hadc); - 720:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** - 721:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** /* NOTE : This function should not be modified. When the callback is needed, - 722:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** function HAL_ADC_MspDeInit must be implemented in the user file. - 723:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** */ - 724:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** } - 725:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** - 726:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** /** - 727:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** * @} - 728:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** */ - 729:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** - 730:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** /** @defgroup ADC_Exported_Functions_Group2 IO operation functions - 731:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** * @brief IO operation functions - 732:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** * - 733:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** @verbatim - 734:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** =============================================================================== - 735:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** ##### IO operation functions ##### - 736:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** =============================================================================== - 737:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** [..] This section provides functions allowing to: - 738:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** (+) Start conversion of regular group. - 739:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** (+) Stop conversion of regular group. - 740:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** (+) Poll for conversion complete on regular group. - 741:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** (+) Poll for conversion event. - 742:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** (+) Get result of regular channel conversion. - 743:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** (+) Start conversion of regular group and enable interruptions. - 744:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** (+) Stop conversion of regular group and disable interruptions. - 745:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** (+) Handle ADC interrupt request - 746:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** (+) Start conversion of regular group and enable DMA transfer. - 747:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** (+) Stop conversion of regular group and disable ADC DMA transfer. - 748:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** @endverbatim - 749:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** * @{ - 750:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** */ - 751:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** - 752:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** /** - 753:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** * @brief Enables ADC, starts conversion of regular group. - 754:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** * Interruptions enabled in this function: None. - 755:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** * @param hadc ADC handle - 756:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** * @retval HAL status - 757:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** */ - 758:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** HAL_StatusTypeDef HAL_ADC_Start(ADC_HandleTypeDef* hadc) - 759:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** { - 760:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** HAL_StatusTypeDef tmp_hal_status = HAL_OK; - 761:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** - 762:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** /* Check the parameters */ - 763:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** assert_param(IS_ADC_ALL_INSTANCE(hadc->Instance)); - 764:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** - 765:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** /* Perform ADC enable and conversion start if no conversion is on going */ - 766:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** if (ADC_IS_CONVERSION_ONGOING_REGULAR(hadc) == RESET) - 767:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** { - 768:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** /* Process locked */ - 769:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** __HAL_LOCK(hadc); - 770:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** - 771:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** /* Enable the ADC peripheral */ - 772:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** /* If low power mode AutoPowerOff is enabled, power-on/off phases are */ - 773:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** /* performed automatically by hardware. */ - 774:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** if (hadc->Init.LowPowerAutoPowerOff != ENABLE) - 775:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** { - ARM GAS /tmp/ccEKYEFi.s page 15 - - - 776:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** tmp_hal_status = ADC_Enable(hadc); - 777:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** } - 778:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** - 779:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** /* Start conversion if ADC is effectively enabled */ - 780:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** if (tmp_hal_status == HAL_OK) - 781:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** { - 782:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** /* Set ADC state */ - 783:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** /* - Clear state bitfield related to regular group conversion results */ - 784:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** /* - Set state bitfield related to regular operation */ - 785:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** ADC_STATE_CLR_SET(hadc->State, - 786:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** HAL_ADC_STATE_READY | HAL_ADC_STATE_REG_EOC | HAL_ADC_STATE_REG_OVR | HAL_A - 787:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** HAL_ADC_STATE_REG_BUSY); - 788:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** - 789:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** /* Reset ADC all error code fields */ - 790:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** ADC_CLEAR_ERRORCODE(hadc); - 791:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** - 792:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** /* Process unlocked */ - 793:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** /* Unlock before starting ADC conversions: in case of potential */ - 794:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** /* interruption, to let the process to ADC IRQ Handler. */ - 795:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** __HAL_UNLOCK(hadc); - 796:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** - 797:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** /* Clear regular group conversion flag and overrun flag */ - 798:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** /* (To ensure of no unknown state from potential previous ADC */ - 799:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** /* operations) */ - 800:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** __HAL_ADC_CLEAR_FLAG(hadc, (ADC_FLAG_EOC | ADC_FLAG_EOS | ADC_FLAG_OVR)); - 801:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** - 802:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** /* Enable conversion of regular group. */ - 803:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** /* If software start has been selected, conversion starts immediately. */ - 804:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** /* If external trigger has been selected, conversion will start at next */ - 805:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** /* trigger event. */ - 806:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** hadc->Instance->CR |= ADC_CR_ADSTART; - 807:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** } - 808:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** } - 809:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** else - 810:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** { - 811:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** tmp_hal_status = HAL_BUSY; - 812:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** } - 813:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** - 814:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** /* Return function status */ - 815:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** return tmp_hal_status; - 816:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** } - 817:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** - 818:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** /** - 819:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** * @brief Stop ADC conversion of regular group, disable ADC peripheral. - 820:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** * @param hadc ADC handle - 821:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** * @retval HAL status. - 822:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** */ - 823:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** HAL_StatusTypeDef HAL_ADC_Stop(ADC_HandleTypeDef* hadc) - 824:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** { - 825:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** HAL_StatusTypeDef tmp_hal_status = HAL_OK; - 826:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** - 827:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** /* Check the parameters */ - 828:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** assert_param(IS_ADC_ALL_INSTANCE(hadc->Instance)); - 829:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** - 830:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** /* Process locked */ - 831:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** __HAL_LOCK(hadc); - 832:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** - ARM GAS /tmp/ccEKYEFi.s page 16 - - - 833:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** /* 1. Stop potential conversion on going, on regular group */ - 834:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** tmp_hal_status = ADC_ConversionStop(hadc); - 835:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** - 836:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** /* Disable ADC peripheral if conversions are effectively stopped */ - 837:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** if (tmp_hal_status == HAL_OK) - 838:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** { - 839:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** /* 2. Disable the ADC peripheral */ - 840:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** tmp_hal_status = ADC_Disable(hadc); - 841:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** - 842:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** /* Check if ADC is effectively disabled */ - 843:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** if (tmp_hal_status == HAL_OK) - 844:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** { - 845:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** /* Set ADC state */ - 846:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** ADC_STATE_CLR_SET(hadc->State, - 847:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** HAL_ADC_STATE_REG_BUSY, - 848:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** HAL_ADC_STATE_READY); - 849:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** } - 850:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** } - 851:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** - 852:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** /* Process unlocked */ - 853:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** __HAL_UNLOCK(hadc); - 854:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** - 855:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** /* Return function status */ - 856:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** return tmp_hal_status; - 857:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** } - 858:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** - 859:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** /** - 860:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** * @brief Wait for regular group conversion to be completed. - 861:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** * @note ADC conversion flags EOS (end of sequence) and EOC (end of - 862:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** * conversion) are cleared by this function, with an exception: - 863:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** * if low power feature "LowPowerAutoWait" is enabled, flags are - 864:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** * not cleared to not interfere with this feature until data register - 865:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** * is read using function HAL_ADC_GetValue(). - 866:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** * @note This function cannot be used in a particular setup: ADC configured - 867:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** * in DMA mode and polling for end of each conversion (ADC init - 868:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** * parameter "EOCSelection" set to ADC_EOC_SINGLE_CONV). - 869:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** * In this case, DMA resets the flag EOC and polling cannot be - 870:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** * performed on each conversion. Nevertheless, polling can still - 871:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** * be performed on the complete sequence (ADC init - 872:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** * parameter "EOCSelection" set to ADC_EOC_SEQ_CONV). - 873:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** * @param hadc ADC handle - 874:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** * @param Timeout Timeout value in millisecond. - 875:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** * @retval HAL status - 876:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** */ - 877:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** HAL_StatusTypeDef HAL_ADC_PollForConversion(ADC_HandleTypeDef* hadc, uint32_t Timeout) - 878:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** { - 879:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** uint32_t tickstart; - 880:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** uint32_t tmp_Flag_EOC; - 881:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** - 882:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** /* Check the parameters */ - 883:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** assert_param(IS_ADC_ALL_INSTANCE(hadc->Instance)); - 884:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** - 885:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** /* If end of conversion selected to end of sequence */ - 886:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** if (hadc->Init.EOCSelection == ADC_EOC_SEQ_CONV) - 887:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** { - 888:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** tmp_Flag_EOC = ADC_FLAG_EOS; - 889:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** } - ARM GAS /tmp/ccEKYEFi.s page 17 - - - 890:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** /* If end of conversion selected to end of each conversion */ - 891:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** else /* ADC_EOC_SINGLE_CONV */ - 892:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** { - 893:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** /* Verification that ADC configuration is compliant with polling for */ - 894:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** /* each conversion: */ - 895:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** /* Particular case is ADC configured in DMA mode and ADC sequencer with */ - 896:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** /* several ranks and polling for end of each conversion. */ - 897:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** /* For code simplicity sake, this particular case is generalized to */ - 898:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** /* ADC configured in DMA mode and and polling for end of each conversion. */ - 899:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** if (HAL_IS_BIT_SET(hadc->Instance->CFGR1, ADC_CFGR1_DMAEN)) - 900:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** { - 901:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** /* Update ADC state machine to error */ - 902:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** SET_BIT(hadc->State, HAL_ADC_STATE_ERROR_CONFIG); - 903:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** - 904:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** /* Process unlocked */ - 905:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** __HAL_UNLOCK(hadc); - 906:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** - 907:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** return HAL_ERROR; - 908:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** } - 909:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** else - 910:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** { - 911:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** tmp_Flag_EOC = (ADC_FLAG_EOC | ADC_FLAG_EOS); - 912:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** } - 913:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** } - 914:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** - 915:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** /* Get tick count */ - 916:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** tickstart = HAL_GetTick(); - 917:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** - 918:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** /* Wait until End of Conversion flag is raised */ - 919:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** while(HAL_IS_BIT_CLR(hadc->Instance->ISR, tmp_Flag_EOC)) - 920:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** { - 921:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** /* Check if timeout is disabled (set to infinite wait) */ - 922:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** if(Timeout != HAL_MAX_DELAY) - 923:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** { - 924:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** if((Timeout == 0) || ((HAL_GetTick()-tickstart) > Timeout)) - 925:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** { - 926:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** /* Update ADC state machine to timeout */ - 927:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** SET_BIT(hadc->State, HAL_ADC_STATE_TIMEOUT); - 928:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** - 929:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** /* Process unlocked */ - 930:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** __HAL_UNLOCK(hadc); - 931:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** - 932:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** return HAL_TIMEOUT; - 933:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** } - 934:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** } - 935:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** } - 936:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** - 937:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** /* Update ADC state machine */ - 938:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** SET_BIT(hadc->State, HAL_ADC_STATE_REG_EOC); - 939:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** - 940:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** /* Determine whether any further conversion upcoming on group regular */ - 941:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** /* by external trigger, continuous mode or scan sequence on going. */ - 942:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** if(ADC_IS_SOFTWARE_START_REGULAR(hadc) && - 943:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** (hadc->Init.ContinuousConvMode == DISABLE) ) - 944:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** { - 945:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** /* If End of Sequence is reached, disable interrupts */ - 946:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** if( __HAL_ADC_GET_FLAG(hadc, ADC_FLAG_EOS) ) - ARM GAS /tmp/ccEKYEFi.s page 18 - - - 947:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** { - 948:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** /* Allowed to modify bits ADC_IT_EOC/ADC_IT_EOS only if bit */ - 949:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** /* ADSTART==0 (no conversion on going) */ - 950:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** if (ADC_IS_CONVERSION_ONGOING_REGULAR(hadc) == RESET) - 951:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** { - 952:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** /* Disable ADC end of single conversion interrupt on group regular */ - 953:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** /* Note: Overrun interrupt was enabled with EOC interrupt in */ - 954:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** /* HAL_Start_IT(), but is not disabled here because can be used */ - 955:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** /* by overrun IRQ process below. */ - 956:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** __HAL_ADC_DISABLE_IT(hadc, ADC_IT_EOC | ADC_IT_EOS); - 957:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** - 958:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** /* Set ADC state */ - 959:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** ADC_STATE_CLR_SET(hadc->State, - 960:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** HAL_ADC_STATE_REG_BUSY, - 961:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** HAL_ADC_STATE_READY); - 962:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** } - 963:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** else - 964:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** { - 965:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** /* Change ADC state to error state */ - 966:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** SET_BIT(hadc->State, HAL_ADC_STATE_ERROR_CONFIG); - 967:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** - 968:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** /* Set ADC error code to ADC IP internal error */ - 969:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** SET_BIT(hadc->ErrorCode, HAL_ADC_ERROR_INTERNAL); - 970:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** } - 971:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** } - 972:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** } - 973:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** - 974:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** /* Clear end of conversion flag of regular group if low power feature */ - 975:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** /* "LowPowerAutoWait " is disabled, to not interfere with this feature */ - 976:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** /* until data register is read using function HAL_ADC_GetValue(). */ - 977:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** if (hadc->Init.LowPowerAutoWait == DISABLE) - 978:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** { - 979:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** /* Clear regular group conversion flag */ - 980:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** __HAL_ADC_CLEAR_FLAG(hadc, (ADC_FLAG_EOC | ADC_FLAG_EOS)); - 981:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** } - 982:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** - 983:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** /* Return ADC state */ - 984:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** return HAL_OK; - 985:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** } - 986:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** - 987:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** /** - 988:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** * @brief Poll for conversion event. - 989:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** * @param hadc ADC handle - 990:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** * @param EventType the ADC event type. - 991:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** * This parameter can be one of the following values: - 992:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** * @arg ADC_AWD_EVENT: ADC Analog watchdog event - 993:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** * @arg ADC_OVR_EVENT: ADC Overrun event - 994:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** * @param Timeout Timeout value in millisecond. - 995:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** * @retval HAL status - 996:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** */ - 997:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** HAL_StatusTypeDef HAL_ADC_PollForEvent(ADC_HandleTypeDef* hadc, uint32_t EventType, uint32_t Timeou - 998:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** { - 999:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** uint32_t tickstart=0; -1000:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** -1001:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** /* Check the parameters */ -1002:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** assert_param(IS_ADC_ALL_INSTANCE(hadc->Instance)); -1003:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** assert_param(IS_ADC_EVENT_TYPE(EventType)); - ARM GAS /tmp/ccEKYEFi.s page 19 - - -1004:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** -1005:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** /* Get tick count */ -1006:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** tickstart = HAL_GetTick(); -1007:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** -1008:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** /* Check selected event flag */ -1009:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** while(__HAL_ADC_GET_FLAG(hadc, EventType) == RESET) -1010:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** { -1011:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** /* Check if timeout is disabled (set to infinite wait) */ -1012:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** if(Timeout != HAL_MAX_DELAY) -1013:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** { -1014:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** if((Timeout == 0U) || ((HAL_GetTick()-tickstart) > Timeout)) -1015:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** { -1016:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** /* Update ADC state machine to timeout */ -1017:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** SET_BIT(hadc->State, HAL_ADC_STATE_TIMEOUT); -1018:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** -1019:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** /* Process unlocked */ -1020:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** __HAL_UNLOCK(hadc); -1021:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** -1022:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** return HAL_TIMEOUT; -1023:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** } -1024:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** } -1025:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** } -1026:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** -1027:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** switch(EventType) -1028:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** { -1029:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** /* Analog watchdog (level out of window) event */ -1030:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** case ADC_AWD_EVENT: -1031:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** /* Set ADC state */ -1032:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** SET_BIT(hadc->State, HAL_ADC_STATE_AWD1); -1033:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** -1034:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** /* Clear ADC analog watchdog flag */ -1035:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** __HAL_ADC_CLEAR_FLAG(hadc, ADC_FLAG_AWD); -1036:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** break; -1037:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** -1038:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** /* Overrun event */ -1039:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** default: /* Case ADC_OVR_EVENT */ -1040:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** /* If overrun is set to overwrite previous data, overrun event is not */ -1041:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** /* considered as an error. */ -1042:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** /* (cf ref manual "Managing conversions without using the DMA and without */ -1043:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** /* overrun ") */ -1044:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** if (hadc->Init.Overrun == ADC_OVR_DATA_PRESERVED) -1045:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** { -1046:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** /* Set ADC state */ -1047:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** SET_BIT(hadc->State, HAL_ADC_STATE_REG_OVR); -1048:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** -1049:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** /* Set ADC error code to overrun */ -1050:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** SET_BIT(hadc->ErrorCode, HAL_ADC_ERROR_OVR); -1051:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** } -1052:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** -1053:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** /* Clear ADC Overrun flag */ -1054:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** __HAL_ADC_CLEAR_FLAG(hadc, ADC_FLAG_OVR); -1055:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** break; -1056:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** } -1057:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** -1058:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** /* Return ADC state */ -1059:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** return HAL_OK; -1060:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** } - ARM GAS /tmp/ccEKYEFi.s page 20 - - -1061:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** -1062:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** /** -1063:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** * @brief Enables ADC, starts conversion of regular group with interruption. -1064:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** * Interruptions enabled in this function: -1065:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** * - EOC (end of conversion of regular group) or EOS (end of -1066:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** * sequence of regular group) depending on ADC initialization -1067:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** * parameter "EOCSelection" -1068:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** * - overrun (if available) -1069:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** * Each of these interruptions has its dedicated callback function. -1070:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** * @param hadc ADC handle -1071:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** * @retval HAL status -1072:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** */ -1073:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** HAL_StatusTypeDef HAL_ADC_Start_IT(ADC_HandleTypeDef* hadc) -1074:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** { -1075:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** HAL_StatusTypeDef tmp_hal_status = HAL_OK; -1076:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** -1077:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** /* Check the parameters */ -1078:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** assert_param(IS_ADC_ALL_INSTANCE(hadc->Instance)); -1079:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** -1080:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** /* Perform ADC enable and conversion start if no conversion is on going */ -1081:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** if (ADC_IS_CONVERSION_ONGOING_REGULAR(hadc) == RESET) -1082:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** { -1083:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** /* Process locked */ -1084:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** __HAL_LOCK(hadc); -1085:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** -1086:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** /* Enable the ADC peripheral */ -1087:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** /* If low power mode AutoPowerOff is enabled, power-on/off phases are */ -1088:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** /* performed automatically by hardware. */ -1089:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** if (hadc->Init.LowPowerAutoPowerOff != ENABLE) -1090:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** { -1091:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** tmp_hal_status = ADC_Enable(hadc); -1092:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** } -1093:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** -1094:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** /* Start conversion if ADC is effectively enabled */ -1095:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** if (tmp_hal_status == HAL_OK) -1096:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** { -1097:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** /* Set ADC state */ -1098:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** /* - Clear state bitfield related to regular group conversion results */ -1099:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** /* - Set state bitfield related to regular operation */ -1100:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** ADC_STATE_CLR_SET(hadc->State, -1101:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** HAL_ADC_STATE_READY | HAL_ADC_STATE_REG_EOC | HAL_ADC_STATE_REG_OVR | HAL_A -1102:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** HAL_ADC_STATE_REG_BUSY); -1103:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** -1104:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** /* Reset ADC all error code fields */ -1105:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** ADC_CLEAR_ERRORCODE(hadc); -1106:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** -1107:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** /* Process unlocked */ -1108:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** /* Unlock before starting ADC conversions: in case of potential */ -1109:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** /* interruption, to let the process to ADC IRQ Handler. */ -1110:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** __HAL_UNLOCK(hadc); -1111:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** -1112:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** /* Clear regular group conversion flag and overrun flag */ -1113:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** /* (To ensure of no unknown state from potential previous ADC */ -1114:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** /* operations) */ -1115:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** __HAL_ADC_CLEAR_FLAG(hadc, (ADC_FLAG_EOC | ADC_FLAG_EOS | ADC_FLAG_OVR)); -1116:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** -1117:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** /* Enable ADC end of conversion interrupt */ - ARM GAS /tmp/ccEKYEFi.s page 21 - - -1118:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** /* Enable ADC overrun interrupt */ -1119:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** switch(hadc->Init.EOCSelection) -1120:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** { -1121:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** case ADC_EOC_SEQ_CONV: -1122:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** __HAL_ADC_DISABLE_IT(hadc, ADC_IT_EOC); -1123:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** __HAL_ADC_ENABLE_IT(hadc, (ADC_IT_EOS | ADC_IT_OVR)); -1124:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** break; -1125:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** /* case ADC_EOC_SINGLE_CONV */ -1126:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** default: -1127:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** __HAL_ADC_ENABLE_IT(hadc, (ADC_IT_EOC | ADC_IT_EOS | ADC_IT_OVR)); -1128:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** break; -1129:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** } -1130:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** -1131:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** /* Enable conversion of regular group. */ -1132:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** /* If software start has been selected, conversion starts immediately. */ -1133:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** /* If external trigger has been selected, conversion will start at next */ -1134:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** /* trigger event. */ -1135:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** hadc->Instance->CR |= ADC_CR_ADSTART; -1136:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** } -1137:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** } -1138:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** else -1139:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** { -1140:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** tmp_hal_status = HAL_BUSY; -1141:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** } -1142:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** -1143:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** /* Return function status */ -1144:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** return tmp_hal_status; -1145:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** } -1146:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** -1147:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** -1148:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** /** -1149:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** * @brief Stop ADC conversion of regular group, disable interruption of -1150:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** * end-of-conversion, disable ADC peripheral. -1151:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** * @param hadc ADC handle -1152:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** * @retval HAL status. -1153:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** */ -1154:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** HAL_StatusTypeDef HAL_ADC_Stop_IT(ADC_HandleTypeDef* hadc) -1155:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** { -1156:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** HAL_StatusTypeDef tmp_hal_status = HAL_OK; -1157:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** -1158:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** /* Check the parameters */ -1159:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** assert_param(IS_ADC_ALL_INSTANCE(hadc->Instance)); -1160:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** -1161:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** /* Process locked */ -1162:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** __HAL_LOCK(hadc); -1163:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** -1164:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** /* 1. Stop potential conversion on going, on regular group */ -1165:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** tmp_hal_status = ADC_ConversionStop(hadc); -1166:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** -1167:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** /* Disable ADC peripheral if conversions are effectively stopped */ -1168:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** if (tmp_hal_status == HAL_OK) -1169:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** { -1170:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** /* Disable ADC end of conversion interrupt for regular group */ -1171:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** /* Disable ADC overrun interrupt */ -1172:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** __HAL_ADC_DISABLE_IT(hadc, (ADC_IT_EOC | ADC_IT_EOS | ADC_IT_OVR)); -1173:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** -1174:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** /* 2. Disable the ADC peripheral */ - ARM GAS /tmp/ccEKYEFi.s page 22 - - -1175:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** tmp_hal_status = ADC_Disable(hadc); -1176:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** -1177:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** /* Check if ADC is effectively disabled */ -1178:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** if (tmp_hal_status == HAL_OK) -1179:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** { -1180:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** /* Set ADC state */ -1181:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** ADC_STATE_CLR_SET(hadc->State, -1182:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** HAL_ADC_STATE_REG_BUSY, -1183:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** HAL_ADC_STATE_READY); -1184:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** } -1185:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** } -1186:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** -1187:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** /* Process unlocked */ -1188:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** __HAL_UNLOCK(hadc); -1189:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** -1190:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** /* Return function status */ -1191:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** return tmp_hal_status; -1192:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** } -1193:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** -1194:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** /** -1195:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** * @brief Enables ADC, starts conversion of regular group and transfers result -1196:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** * through DMA. -1197:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** * Interruptions enabled in this function: -1198:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** * - DMA transfer complete -1199:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** * - DMA half transfer -1200:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** * - overrun -1201:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** * Each of these interruptions has its dedicated callback function. -1202:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** * @param hadc ADC handle -1203:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** * @param pData The destination Buffer address. -1204:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** * @param Length The length of data to be transferred from ADC peripheral to memory. -1205:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** * @retval None -1206:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** */ -1207:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** HAL_StatusTypeDef HAL_ADC_Start_DMA(ADC_HandleTypeDef* hadc, uint32_t* pData, uint32_t Length) -1208:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** { -1209:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** HAL_StatusTypeDef tmp_hal_status = HAL_OK; -1210:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** -1211:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** /* Check the parameters */ -1212:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** assert_param(IS_ADC_ALL_INSTANCE(hadc->Instance)); -1213:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** -1214:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** /* Perform ADC enable and conversion start if no conversion is on going */ -1215:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** if (ADC_IS_CONVERSION_ONGOING_REGULAR(hadc) == RESET) -1216:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** { -1217:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** /* Process locked */ -1218:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** __HAL_LOCK(hadc); -1219:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** -1220:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** /* Enable the ADC peripheral */ -1221:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** /* If low power mode AutoPowerOff is enabled, power-on/off phases are */ -1222:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** /* performed automatically by hardware. */ -1223:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** if (hadc->Init.LowPowerAutoPowerOff != ENABLE) -1224:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** { -1225:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** tmp_hal_status = ADC_Enable(hadc); -1226:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** } -1227:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** -1228:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** /* Start conversion if ADC is effectively enabled */ -1229:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** if (tmp_hal_status == HAL_OK) -1230:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** { -1231:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** /* Set ADC state */ - ARM GAS /tmp/ccEKYEFi.s page 23 - - -1232:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** /* - Clear state bitfield related to regular group conversion results */ -1233:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** /* - Set state bitfield related to regular operation */ -1234:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** ADC_STATE_CLR_SET(hadc->State, -1235:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** HAL_ADC_STATE_READY | HAL_ADC_STATE_REG_EOC | HAL_ADC_STATE_REG_OVR | HAL_A -1236:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** HAL_ADC_STATE_REG_BUSY); -1237:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** -1238:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** /* Reset ADC all error code fields */ -1239:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** ADC_CLEAR_ERRORCODE(hadc); -1240:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** -1241:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** /* Process unlocked */ -1242:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** /* Unlock before starting ADC conversions: in case of potential */ -1243:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** /* interruption, to let the process to ADC IRQ Handler. */ -1244:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** __HAL_UNLOCK(hadc); -1245:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** -1246:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** /* Set the DMA transfer complete callback */ -1247:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** hadc->DMA_Handle->XferCpltCallback = ADC_DMAConvCplt; -1248:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** -1249:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** /* Set the DMA half transfer complete callback */ -1250:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** hadc->DMA_Handle->XferHalfCpltCallback = ADC_DMAHalfConvCplt; -1251:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** -1252:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** /* Set the DMA error callback */ -1253:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** hadc->DMA_Handle->XferErrorCallback = ADC_DMAError; -1254:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** -1255:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** -1256:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** /* Manage ADC and DMA start: ADC overrun interruption, DMA start, ADC */ -1257:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** /* start (in case of SW start): */ -1258:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** -1259:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** /* Clear regular group conversion flag and overrun flag */ -1260:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** /* (To ensure of no unknown state from potential previous ADC */ -1261:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** /* operations) */ -1262:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** __HAL_ADC_CLEAR_FLAG(hadc, (ADC_FLAG_EOC | ADC_FLAG_EOS | ADC_FLAG_OVR)); -1263:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** -1264:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** /* Enable ADC overrun interrupt */ -1265:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** __HAL_ADC_ENABLE_IT(hadc, ADC_IT_OVR); -1266:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** -1267:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** /* Enable ADC DMA mode */ -1268:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** hadc->Instance->CFGR1 |= ADC_CFGR1_DMAEN; -1269:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** -1270:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** /* Start the DMA channel */ -1271:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** HAL_DMA_Start_IT(hadc->DMA_Handle, (uint32_t)&hadc->Instance->DR, (uint32_t)pData, Length); -1272:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** -1273:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** /* Enable conversion of regular group. */ -1274:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** /* If software start has been selected, conversion starts immediately. */ -1275:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** /* If external trigger has been selected, conversion will start at next */ -1276:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** /* trigger event. */ -1277:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** hadc->Instance->CR |= ADC_CR_ADSTART; -1278:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** } -1279:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** } -1280:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** else -1281:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** { -1282:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** tmp_hal_status = HAL_BUSY; -1283:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** } -1284:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** -1285:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** /* Return function status */ -1286:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** return tmp_hal_status; -1287:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** } -1288:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** - ARM GAS /tmp/ccEKYEFi.s page 24 - - -1289:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** /** -1290:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** * @brief Stop ADC conversion of regular group, disable ADC DMA transfer, disable -1291:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** * ADC peripheral. -1292:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** * Each of these interruptions has its dedicated callback function. -1293:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** * @param hadc ADC handle -1294:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** * @retval HAL status. -1295:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** */ -1296:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** HAL_StatusTypeDef HAL_ADC_Stop_DMA(ADC_HandleTypeDef* hadc) -1297:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** { -1298:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** HAL_StatusTypeDef tmp_hal_status = HAL_OK; -1299:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** -1300:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** /* Check the parameters */ -1301:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** assert_param(IS_ADC_ALL_INSTANCE(hadc->Instance)); -1302:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** -1303:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** /* Process locked */ -1304:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** __HAL_LOCK(hadc); -1305:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** -1306:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** /* 1. Stop potential conversion on going, on regular group */ -1307:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** tmp_hal_status = ADC_ConversionStop(hadc); -1308:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** -1309:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** /* Disable ADC peripheral if conversions are effectively stopped */ -1310:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** if (tmp_hal_status == HAL_OK) -1311:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** { -1312:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** /* Disable ADC DMA (ADC DMA configuration ADC_CFGR_DMACFG is kept) */ -1313:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** hadc->Instance->CFGR1 &= ~ADC_CFGR1_DMAEN; -1314:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** -1315:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** /* Disable the DMA channel (in case of DMA in circular mode or stop while */ -1316:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** /* while DMA transfer is on going) */ -1317:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** tmp_hal_status = HAL_DMA_Abort(hadc->DMA_Handle); -1318:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** -1319:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** /* Check if DMA channel effectively disabled */ -1320:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** if (tmp_hal_status != HAL_OK) -1321:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** { -1322:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** /* Update ADC state machine to error */ -1323:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** SET_BIT(hadc->State, HAL_ADC_STATE_ERROR_DMA); -1324:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** } -1325:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** -1326:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** /* Disable ADC overrun interrupt */ -1327:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** __HAL_ADC_DISABLE_IT(hadc, ADC_IT_OVR); -1328:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** -1329:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** /* 2. Disable the ADC peripheral */ -1330:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** /* Update "tmp_hal_status" only if DMA channel disabling passed, to keep */ -1331:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** /* in memory a potential failing status. */ -1332:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** if (tmp_hal_status == HAL_OK) -1333:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** { -1334:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** tmp_hal_status = ADC_Disable(hadc); -1335:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** } -1336:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** else -1337:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** { -1338:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** ADC_Disable(hadc); -1339:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** } -1340:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** -1341:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** /* Check if ADC is effectively disabled */ -1342:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** if (tmp_hal_status == HAL_OK) -1343:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** { -1344:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** /* Set ADC state */ -1345:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** ADC_STATE_CLR_SET(hadc->State, - ARM GAS /tmp/ccEKYEFi.s page 25 - - -1346:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** HAL_ADC_STATE_REG_BUSY, -1347:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** HAL_ADC_STATE_READY); -1348:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** } -1349:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** -1350:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** } -1351:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** -1352:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** /* Process unlocked */ -1353:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** __HAL_UNLOCK(hadc); -1354:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** -1355:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** /* Return function status */ -1356:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** return tmp_hal_status; -1357:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** } -1358:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** -1359:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** /** -1360:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** * @brief Get ADC regular group conversion result. -1361:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** * @note Reading register DR automatically clears ADC flag EOC -1362:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** * (ADC group regular end of unitary conversion). -1363:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** * @note This function does not clear ADC flag EOS -1364:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** * (ADC group regular end of sequence conversion). -1365:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** * Occurrence of flag EOS rising: -1366:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** * - If sequencer is composed of 1 rank, flag EOS is equivalent -1367:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** * to flag EOC. -1368:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** * - If sequencer is composed of several ranks, during the scan -1369:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** * sequence flag EOC only is raised, at the end of the scan sequence -1370:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** * both flags EOC and EOS are raised. -1371:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** * To clear this flag, either use function: -1372:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** * in programming model IT: @ref HAL_ADC_IRQHandler(), in programming -1373:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** * model polling: @ref HAL_ADC_PollForConversion() -1374:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** * or @ref __HAL_ADC_CLEAR_FLAG(&hadc, ADC_FLAG_EOS). -1375:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** * @param hadc ADC handle -1376:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** * @retval ADC group regular conversion data -1377:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** */ -1378:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** uint32_t HAL_ADC_GetValue(ADC_HandleTypeDef* hadc) -1379:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** { -1380:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** /* Check the parameters */ -1381:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** assert_param(IS_ADC_ALL_INSTANCE(hadc->Instance)); -1382:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** -1383:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** /* Note: EOC flag is not cleared here by software because automatically */ -1384:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** /* cleared by hardware when reading register DR. */ -1385:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** -1386:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** /* Return ADC converted value */ -1387:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** return hadc->Instance->DR; -1388:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** } -1389:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** -1390:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** /** -1391:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** * @brief Handles ADC interrupt request. -1392:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** * @param hadc ADC handle -1393:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** * @retval None -1394:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** */ -1395:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** void HAL_ADC_IRQHandler(ADC_HandleTypeDef* hadc) -1396:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** { -1397:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** /* Check the parameters */ -1398:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** assert_param(IS_ADC_ALL_INSTANCE(hadc->Instance)); -1399:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** assert_param(IS_FUNCTIONAL_STATE(hadc->Init.ContinuousConvMode)); -1400:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** assert_param(IS_ADC_EOC_SELECTION(hadc->Init.EOCSelection)); -1401:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** -1402:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** /* ========== Check End of Conversion flag for regular group ========== */ - ARM GAS /tmp/ccEKYEFi.s page 26 - - -1403:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** if( (__HAL_ADC_GET_FLAG(hadc, ADC_FLAG_EOC) && __HAL_ADC_GET_IT_SOURCE(hadc, ADC_IT_EOC)) || -1404:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** (__HAL_ADC_GET_FLAG(hadc, ADC_FLAG_EOS) && __HAL_ADC_GET_IT_SOURCE(hadc, ADC_IT_EOS)) ) -1405:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** { -1406:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** /* Update state machine on conversion status if not in error state */ -1407:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** if (HAL_IS_BIT_CLR(hadc->State, HAL_ADC_STATE_ERROR_INTERNAL)) -1408:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** { -1409:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** /* Set ADC state */ -1410:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** SET_BIT(hadc->State, HAL_ADC_STATE_REG_EOC); -1411:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** } -1412:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** -1413:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** /* Determine whether any further conversion upcoming on group regular */ -1414:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** /* by external trigger, continuous mode or scan sequence on going. */ -1415:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** if(ADC_IS_SOFTWARE_START_REGULAR(hadc) && -1416:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** (hadc->Init.ContinuousConvMode == DISABLE) ) -1417:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** { -1418:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** /* If End of Sequence is reached, disable interrupts */ -1419:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** if( __HAL_ADC_GET_FLAG(hadc, ADC_FLAG_EOS) ) -1420:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** { -1421:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** /* Allowed to modify bits ADC_IT_EOC/ADC_IT_EOS only if bit */ -1422:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** /* ADSTART==0 (no conversion on going) */ -1423:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** if (ADC_IS_CONVERSION_ONGOING_REGULAR(hadc) == RESET) -1424:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** { -1425:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** /* Disable ADC end of single conversion interrupt on group regular */ -1426:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** /* Note: Overrun interrupt was enabled with EOC interrupt in */ -1427:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** /* HAL_Start_IT(), but is not disabled here because can be used */ -1428:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** /* by overrun IRQ process below. */ -1429:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** __HAL_ADC_DISABLE_IT(hadc, ADC_IT_EOC | ADC_IT_EOS); -1430:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** -1431:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** /* Set ADC state */ -1432:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** ADC_STATE_CLR_SET(hadc->State, -1433:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** HAL_ADC_STATE_REG_BUSY, -1434:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** HAL_ADC_STATE_READY); -1435:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** } -1436:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** else -1437:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** { -1438:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** /* Change ADC state to error state */ -1439:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** SET_BIT(hadc->State, HAL_ADC_STATE_ERROR_CONFIG); -1440:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** -1441:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** /* Set ADC error code to ADC IP internal error */ -1442:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** SET_BIT(hadc->ErrorCode, HAL_ADC_ERROR_INTERNAL); -1443:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** } -1444:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** } -1445:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** } -1446:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** -1447:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** /* Conversion complete callback */ -1448:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** /* Note: into callback, to determine if conversion has been triggered */ -1449:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** /* from EOC or EOS, possibility to use: */ -1450:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** /* " if( __HAL_ADC_GET_FLAG(&hadc, ADC_FLAG_EOS)) " */ -1451:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** HAL_ADC_ConvCpltCallback(hadc); -1452:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** -1453:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** -1454:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** /* Clear regular group conversion flag */ -1455:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** /* Note: in case of overrun set to ADC_OVR_DATA_PRESERVED, end of */ -1456:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** /* conversion flags clear induces the release of the preserved data.*/ -1457:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** /* Therefore, if the preserved data value is needed, it must be */ -1458:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** /* read preliminarily into HAL_ADC_ConvCpltCallback(). */ -1459:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** __HAL_ADC_CLEAR_FLAG(hadc, (ADC_FLAG_EOC | ADC_FLAG_EOS) ); - ARM GAS /tmp/ccEKYEFi.s page 27 - - -1460:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** } -1461:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** -1462:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** /* ========== Check Analog watchdog flags ========== */ -1463:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** if(__HAL_ADC_GET_FLAG(hadc, ADC_FLAG_AWD) && __HAL_ADC_GET_IT_SOURCE(hadc, ADC_IT_AWD)) -1464:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** { -1465:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** /* Set ADC state */ -1466:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** SET_BIT(hadc->State, HAL_ADC_STATE_AWD1); -1467:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** -1468:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** /* Level out of window callback */ -1469:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** HAL_ADC_LevelOutOfWindowCallback(hadc); -1470:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** -1471:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** /* Clear ADC Analog watchdog flag */ -1472:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** __HAL_ADC_CLEAR_FLAG(hadc, ADC_FLAG_AWD); -1473:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** -1474:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** } -1475:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** -1476:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** -1477:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** /* ========== Check Overrun flag ========== */ -1478:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** if(__HAL_ADC_GET_FLAG(hadc, ADC_FLAG_OVR) && __HAL_ADC_GET_IT_SOURCE(hadc, ADC_IT_OVR)) -1479:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** { -1480:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** /* If overrun is set to overwrite previous data (default setting), */ -1481:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** /* overrun event is not considered as an error. */ -1482:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** /* (cf ref manual "Managing conversions without using the DMA and without */ -1483:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** /* overrun ") */ -1484:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** /* Exception for usage with DMA overrun event always considered as an */ -1485:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** /* error. */ -1486:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** if ((hadc->Init.Overrun == ADC_OVR_DATA_PRESERVED) || -1487:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** HAL_IS_BIT_SET(hadc->Instance->CFGR1, ADC_CFGR1_DMAEN) ) -1488:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** { -1489:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** /* Set ADC error code to overrun */ -1490:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** SET_BIT(hadc->ErrorCode, HAL_ADC_ERROR_OVR); -1491:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** -1492:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** /* Clear ADC overrun flag */ -1493:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** __HAL_ADC_CLEAR_FLAG(hadc, ADC_FLAG_OVR); -1494:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** -1495:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** /* Error callback */ -1496:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** HAL_ADC_ErrorCallback(hadc); -1497:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** } -1498:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** -1499:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** /* Clear the Overrun flag */ -1500:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** __HAL_ADC_CLEAR_FLAG(hadc, ADC_FLAG_OVR); -1501:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** } -1502:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** -1503:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** } -1504:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** -1505:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** -1506:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** /** -1507:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** * @brief Conversion complete callback in non blocking mode -1508:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** * @param hadc ADC handle -1509:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** * @retval None -1510:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** */ -1511:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** __weak void HAL_ADC_ConvCpltCallback(ADC_HandleTypeDef* hadc) -1512:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** { -1513:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** /* Prevent unused argument(s) compilation warning */ -1514:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** UNUSED(hadc); -1515:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** -1516:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** /* NOTE : This function should not be modified. When the callback is needed, - ARM GAS /tmp/ccEKYEFi.s page 28 - - -1517:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** function HAL_ADC_ConvCpltCallback must be implemented in the user file. -1518:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** */ -1519:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** } -1520:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** -1521:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** /** -1522:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** * @brief Conversion DMA half-transfer callback in non blocking mode -1523:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** * @param hadc ADC handle -1524:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** * @retval None -1525:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** */ -1526:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** __weak void HAL_ADC_ConvHalfCpltCallback(ADC_HandleTypeDef* hadc) -1527:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** { -1528:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** /* Prevent unused argument(s) compilation warning */ -1529:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** UNUSED(hadc); -1530:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** -1531:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** /* NOTE : This function should not be modified. When the callback is needed, -1532:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** function HAL_ADC_ConvHalfCpltCallback must be implemented in the user file. -1533:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** */ -1534:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** } -1535:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** -1536:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** /** -1537:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** * @brief Analog watchdog callback in non blocking mode. -1538:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** * @param hadc ADC handle -1539:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** * @retval None -1540:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** */ -1541:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** __weak void HAL_ADC_LevelOutOfWindowCallback(ADC_HandleTypeDef* hadc) -1542:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** { -1543:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** /* Prevent unused argument(s) compilation warning */ -1544:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** UNUSED(hadc); -1545:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** -1546:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** /* NOTE : This function should not be modified. When the callback is needed, -1547:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** function HAL_ADC_LevelOoutOfWindowCallback must be implemented in the user file. -1548:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** */ -1549:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** } -1550:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** -1551:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** /** -1552:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** * @brief ADC error callback in non blocking mode -1553:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** * (ADC conversion with interruption or transfer by DMA) -1554:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** * @param hadc ADC handle -1555:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** * @retval None -1556:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** */ -1557:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** __weak void HAL_ADC_ErrorCallback(ADC_HandleTypeDef *hadc) -1558:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** { -1559:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** /* Prevent unused argument(s) compilation warning */ -1560:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** UNUSED(hadc); -1561:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** -1562:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** /* NOTE : This function should not be modified. When the callback is needed, -1563:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** function HAL_ADC_ErrorCallback must be implemented in the user file. -1564:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** */ -1565:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** } -1566:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** -1567:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** -1568:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** /** -1569:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** * @} -1570:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** */ -1571:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** -1572:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** /** @defgroup ADC_Exported_Functions_Group3 Peripheral Control functions -1573:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** * @brief Peripheral Control functions - ARM GAS /tmp/ccEKYEFi.s page 29 - - -1574:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** * -1575:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** @verbatim -1576:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** =============================================================================== -1577:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** ##### Peripheral Control functions ##### -1578:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** =============================================================================== -1579:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** [..] This section provides functions allowing to: -1580:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** (+) Configure channels on regular group -1581:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** (+) Configure the analog watchdog -1582:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** -1583:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** @endverbatim -1584:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** * @{ -1585:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** */ -1586:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** -1587:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** /** -1588:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** * @brief Configures the the selected channel to be linked to the regular -1589:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** * group. -1590:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** * @note In case of usage of internal measurement channels: -1591:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** * VrefInt/Vbat/TempSensor. -1592:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** * Sampling time constraints must be respected (sampling time can be -1593:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** * adjusted in function of ADC clock frequency and sampling time -1594:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** * setting). -1595:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** * Refer to device datasheet for timings values, parameters TS_vrefint, -1596:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** * TS_vbat, TS_temp (values rough order: 5us to 17us). -1597:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** * These internal paths can be be disabled using function -1598:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** * HAL_ADC_DeInit(). -1599:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** * @note Possibility to update parameters on the fly: -1600:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** * This function initializes channel into regular group, following -1601:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** * calls to this function can be used to reconfigure some parameters -1602:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** * of structure "ADC_ChannelConfTypeDef" on the fly, without reseting -1603:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** * the ADC. -1604:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** * The setting of these parameters is conditioned to ADC state. -1605:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** * For parameters constraints, see comments of structure -1606:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** * "ADC_ChannelConfTypeDef". -1607:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** * @param hadc ADC handle -1608:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** * @param sConfig Structure of ADC channel for regular group. -1609:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** * @retval HAL status -1610:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** */ -1611:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** HAL_StatusTypeDef HAL_ADC_ConfigChannel(ADC_HandleTypeDef* hadc, ADC_ChannelConfTypeDef* sConfig) -1612:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** { -1613:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** HAL_StatusTypeDef tmp_hal_status = HAL_OK; -1614:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** __IO uint32_t wait_loop_index = 0U; -1615:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** -1616:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** /* Check the parameters */ -1617:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** assert_param(IS_ADC_ALL_INSTANCE(hadc->Instance)); -1618:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** assert_param(IS_ADC_CHANNEL(sConfig->Channel)); -1619:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** assert_param(IS_ADC_RANK(sConfig->Rank)); -1620:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** -1621:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** if (! IS_ADC_SAMPLE_TIME(hadc->Init.SamplingTimeCommon)) -1622:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** { -1623:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** assert_param(IS_ADC_SAMPLE_TIME(sConfig->SamplingTime)); -1624:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** } -1625:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** -1626:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** /* Process locked */ -1627:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** __HAL_LOCK(hadc); -1628:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** -1629:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** /* Parameters update conditioned to ADC state: */ -1630:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** /* Parameters that can be updated when ADC is disabled or enabled without */ - ARM GAS /tmp/ccEKYEFi.s page 30 - - -1631:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** /* conversion on going on regular group: */ -1632:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** /* - Channel number */ -1633:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** /* - Channel sampling time */ -1634:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** /* - Management of internal measurement channels: VrefInt/TempSensor/Vbat */ -1635:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** if (ADC_IS_CONVERSION_ONGOING_REGULAR(hadc) == RESET) -1636:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** { -1637:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** /* Configure channel: depending on rank setting, add it or remove it from */ -1638:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** /* ADC conversion sequencer. */ -1639:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** if (sConfig->Rank != ADC_RANK_NONE) -1640:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** { -1641:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** /* Regular sequence configuration */ -1642:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** /* Set the channel selection register from the selected channel */ -1643:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** hadc->Instance->CHSELR |= ADC_CHSELR_CHANNEL(sConfig->Channel); -1644:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** -1645:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** /* Channel sampling time configuration */ -1646:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** /* Management of parameters "SamplingTimeCommon" and "SamplingTime" */ -1647:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** /* (obsolete): sampling time set in this function with */ -1648:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** /* parameter "SamplingTime" (obsolete) only if not already set into */ -1649:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** /* ADC initialization structure with parameter "SamplingTimeCommon". */ -1650:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** if (! IS_ADC_SAMPLE_TIME(hadc->Init.SamplingTimeCommon)) -1651:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** { -1652:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** /* Modify sampling time if needed (not needed in case of reoccurrence */ -1653:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** /* for several channels programmed consecutively into the sequencer) */ -1654:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** if (sConfig->SamplingTime != ADC_GET_SAMPLINGTIME(hadc)) -1655:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** { -1656:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** /* Channel sampling time configuration */ -1657:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** /* Clear the old sample time */ -1658:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** hadc->Instance->SMPR &= ~(ADC_SMPR_SMP); -1659:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** -1660:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** /* Set the new sample time */ -1661:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** hadc->Instance->SMPR |= ADC_SMPR_SET(sConfig->SamplingTime); -1662:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** } -1663:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** } -1664:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** -1665:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** /* Management of internal measurement channels: VrefInt/TempSensor/Vbat */ -1666:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** /* internal measurement paths enable: If internal channel selected, */ -1667:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** /* enable dedicated internal buffers and path. */ -1668:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** /* Note: these internal measurement paths can be disabled using */ -1669:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** /* HAL_ADC_DeInit() or removing the channel from sequencer with */ -1670:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** /* channel configuration parameter "Rank". */ -1671:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** if(ADC_IS_CHANNEL_INTERNAL(sConfig->Channel)) -1672:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** { -1673:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** /* If Channel_16 is selected, enable Temp. sensor measurement path. */ -1674:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** /* If Channel_17 is selected, enable VREFINT measurement path. */ -1675:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** /* If Channel_18 is selected, enable VBAT measurement path. */ -1676:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** ADC->CCR |= ADC_CHANNEL_INTERNAL_PATH(sConfig->Channel); -1677:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** -1678:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** /* If Temp. sensor is selected, wait for stabilization delay */ -1679:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** if (sConfig->Channel == ADC_CHANNEL_TEMPSENSOR) -1680:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** { -1681:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** /* Delay for temperature sensor stabilization time */ -1682:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** /* Compute number of CPU cycles to wait for */ -1683:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** wait_loop_index = (ADC_TEMPSENSOR_DELAY_US * (SystemCoreClock / 1000000U)); -1684:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** while(wait_loop_index != 0U) -1685:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** { -1686:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** wait_loop_index--; -1687:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** } - ARM GAS /tmp/ccEKYEFi.s page 31 - - -1688:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** } -1689:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** } -1690:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** } -1691:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** else -1692:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** { -1693:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** /* Regular sequence configuration */ -1694:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** /* Reset the channel selection register from the selected channel */ -1695:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** hadc->Instance->CHSELR &= ~ADC_CHSELR_CHANNEL(sConfig->Channel); -1696:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** -1697:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** /* Management of internal measurement channels: VrefInt/TempSensor/Vbat */ -1698:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** /* internal measurement paths disable: If internal channel selected, */ -1699:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** /* disable dedicated internal buffers and path. */ -1700:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** if(ADC_IS_CHANNEL_INTERNAL(sConfig->Channel)) -1701:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** { -1702:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** /* If Channel_16 is selected, disable Temp. sensor measurement path. */ -1703:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** /* If Channel_17 is selected, disable VREFINT measurement path. */ -1704:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** /* If Channel_18 is selected, disable VBAT measurement path. */ -1705:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** ADC->CCR &= ~ADC_CHANNEL_INTERNAL_PATH(sConfig->Channel); -1706:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** } -1707:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** } -1708:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** -1709:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** } -1710:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** -1711:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** /* If a conversion is on going on regular group, no update on regular */ -1712:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** /* channel could be done on neither of the channel configuration structure */ -1713:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** /* parameters. */ -1714:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** else -1715:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** { -1716:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** /* Update ADC state machine to error */ -1717:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** SET_BIT(hadc->State, HAL_ADC_STATE_ERROR_CONFIG); -1718:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** -1719:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** tmp_hal_status = HAL_ERROR; -1720:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** } -1721:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** -1722:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** /* Process unlocked */ -1723:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** __HAL_UNLOCK(hadc); -1724:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** -1725:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** /* Return function status */ -1726:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** return tmp_hal_status; -1727:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** } -1728:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** -1729:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** -1730:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** /** -1731:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** * @brief Configures the analog watchdog. -1732:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** * @note Possibility to update parameters on the fly: -1733:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** * This function initializes the selected analog watchdog, following -1734:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** * calls to this function can be used to reconfigure some parameters -1735:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** * of structure "ADC_AnalogWDGConfTypeDef" on the fly, without reseting -1736:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** * the ADC. -1737:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** * The setting of these parameters is conditioned to ADC state. -1738:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** * For parameters constraints, see comments of structure -1739:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** * "ADC_AnalogWDGConfTypeDef". -1740:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** * @param hadc ADC handle -1741:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** * @param AnalogWDGConfig Structure of ADC analog watchdog configuration -1742:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** * @retval HAL status -1743:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** */ -1744:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** HAL_StatusTypeDef HAL_ADC_AnalogWDGConfig(ADC_HandleTypeDef* hadc, ADC_AnalogWDGConfTypeDef* Analog - ARM GAS /tmp/ccEKYEFi.s page 32 - - -1745:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** { -1746:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** HAL_StatusTypeDef tmp_hal_status = HAL_OK; -1747:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** -1748:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** uint32_t tmpAWDHighThresholdShifted; -1749:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** uint32_t tmpAWDLowThresholdShifted; -1750:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** -1751:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** /* Check the parameters */ -1752:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** assert_param(IS_ADC_ALL_INSTANCE(hadc->Instance)); -1753:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** assert_param(IS_ADC_ANALOG_WATCHDOG_MODE(AnalogWDGConfig->WatchdogMode)); -1754:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** assert_param(IS_FUNCTIONAL_STATE(AnalogWDGConfig->ITMode)); -1755:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** -1756:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** /* Verify if threshold is within the selected ADC resolution */ -1757:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** assert_param(IS_ADC_RANGE(ADC_GET_RESOLUTION(hadc), AnalogWDGConfig->HighThreshold)); -1758:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** assert_param(IS_ADC_RANGE(ADC_GET_RESOLUTION(hadc), AnalogWDGConfig->LowThreshold)); -1759:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** -1760:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** if(AnalogWDGConfig->WatchdogMode == ADC_ANALOGWATCHDOG_SINGLE_REG) -1761:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** { -1762:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** assert_param(IS_ADC_CHANNEL(AnalogWDGConfig->Channel)); -1763:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** } -1764:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** -1765:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** /* Process locked */ -1766:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** __HAL_LOCK(hadc); -1767:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** -1768:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** /* Parameters update conditioned to ADC state: */ -1769:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** /* Parameters that can be updated when ADC is disabled or enabled without */ -1770:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** /* conversion on going on regular group: */ -1771:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** /* - Analog watchdog channels */ -1772:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** /* - Analog watchdog thresholds */ -1773:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** if (ADC_IS_CONVERSION_ONGOING_REGULAR(hadc) == RESET) -1774:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** { -1775:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** /* Configuration of analog watchdog: */ -1776:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** /* - Set the analog watchdog enable mode: one or overall group of */ -1777:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** /* channels. */ -1778:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** /* - Set the Analog watchdog channel (is not used if watchdog */ -1779:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** /* mode "all channels": ADC_CFGR_AWD1SGL=0). */ -1780:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** hadc->Instance->CFGR1 &= ~( ADC_CFGR1_AWDSGL | -1781:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** ADC_CFGR1_AWDEN | -1782:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** ADC_CFGR1_AWDCH ); -1783:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** -1784:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** hadc->Instance->CFGR1 |= ( AnalogWDGConfig->WatchdogMode | -1785:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** ADC_CFGR_AWDCH(AnalogWDGConfig->Channel) ); -1786:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** -1787:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** /* Shift the offset in function of the selected ADC resolution: Thresholds*/ -1788:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** /* have to be left-aligned on bit 11, the LSB (right bits) are set to 0 */ -1789:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** tmpAWDHighThresholdShifted = ADC_AWD1THRESHOLD_SHIFT_RESOLUTION(hadc, AnalogWDGConfig->HighThre -1790:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** tmpAWDLowThresholdShifted = ADC_AWD1THRESHOLD_SHIFT_RESOLUTION(hadc, AnalogWDGConfig->LowThres -1791:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** -1792:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** /* Set the high and low thresholds */ -1793:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** hadc->Instance->TR &= ~(ADC_TR_HT | ADC_TR_LT); -1794:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** hadc->Instance->TR |= ( ADC_TRX_HIGHTHRESHOLD (tmpAWDHighThresholdShifted) | -1795:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** tmpAWDLowThresholdShifted ); -1796:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** -1797:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** /* Clear the ADC Analog watchdog flag (in case of left enabled by */ -1798:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** /* previous ADC operations) to be ready to use for HAL_ADC_IRQHandler() */ -1799:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** /* or HAL_ADC_PollForEvent(). */ -1800:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** __HAL_ADC_CLEAR_FLAG(hadc, ADC_IT_AWD); -1801:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** - ARM GAS /tmp/ccEKYEFi.s page 33 - - -1802:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** /* Configure ADC Analog watchdog interrupt */ -1803:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** if(AnalogWDGConfig->ITMode == ENABLE) -1804:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** { -1805:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** /* Enable the ADC Analog watchdog interrupt */ -1806:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** __HAL_ADC_ENABLE_IT(hadc, ADC_IT_AWD); -1807:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** } -1808:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** else -1809:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** { -1810:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** /* Disable the ADC Analog watchdog interrupt */ -1811:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** __HAL_ADC_DISABLE_IT(hadc, ADC_IT_AWD); -1812:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** } -1813:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** -1814:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** } -1815:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** /* If a conversion is on going on regular group, no update could be done */ -1816:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** /* on neither of the AWD configuration structure parameters. */ -1817:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** else -1818:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** { -1819:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** /* Update ADC state machine to error */ -1820:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** SET_BIT(hadc->State, HAL_ADC_STATE_ERROR_CONFIG); -1821:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** -1822:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** tmp_hal_status = HAL_ERROR; -1823:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** } -1824:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** -1825:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** -1826:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** /* Process unlocked */ -1827:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** __HAL_UNLOCK(hadc); -1828:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** -1829:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** /* Return function status */ -1830:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** return tmp_hal_status; -1831:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** } -1832:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** -1833:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** -1834:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** /** -1835:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** * @} -1836:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** */ -1837:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** -1838:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** -1839:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** /** @defgroup ADC_Exported_Functions_Group4 Peripheral State functions -1840:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** * @brief Peripheral State functions -1841:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** * -1842:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** @verbatim -1843:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** =============================================================================== -1844:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** ##### Peripheral State and Errors functions ##### -1845:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** =============================================================================== -1846:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** [..] -1847:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** This subsection provides functions to get in run-time the status of the -1848:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** peripheral. -1849:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** (+) Check the ADC state -1850:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** (+) Check the ADC error code -1851:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** -1852:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** @endverbatim -1853:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** * @{ -1854:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** */ -1855:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** -1856:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** /** -1857:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** * @brief Return the ADC state -1858:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** * @note ADC state machine is managed by bitfields, ADC status must be - ARM GAS /tmp/ccEKYEFi.s page 34 - - -1859:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** * compared with states bits. -1860:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** * For example: -1861:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** * " if (HAL_IS_BIT_SET(HAL_ADC_GetState(hadc1), HAL_ADC_STATE_REG_BUSY)) " -1862:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** * " if (HAL_IS_BIT_SET(HAL_ADC_GetState(hadc1), HAL_ADC_STATE_AWD1) ) " -1863:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** * @param hadc ADC handle -1864:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** * @retval HAL state -1865:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** */ -1866:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** uint32_t HAL_ADC_GetState(ADC_HandleTypeDef* hadc) -1867:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** { -1868:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** /* Check the parameters */ -1869:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** assert_param(IS_ADC_ALL_INSTANCE(hadc->Instance)); -1870:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** -1871:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** /* Return ADC state */ -1872:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** return hadc->State; -1873:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** } -1874:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** -1875:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** /** -1876:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** * @brief Return the ADC error code -1877:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** * @param hadc ADC handle -1878:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** * @retval ADC Error Code -1879:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** */ -1880:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** uint32_t HAL_ADC_GetError(ADC_HandleTypeDef *hadc) -1881:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** { -1882:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** return hadc->ErrorCode; -1883:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** } -1884:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** -1885:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** /** -1886:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** * @} -1887:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** */ -1888:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** -1889:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** /** -1890:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** * @} -1891:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** */ -1892:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** -1893:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** /** @defgroup ADC_Private_Functions ADC Private Functions -1894:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** * @{ -1895:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** */ -1896:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** -1897:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** /** -1898:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** * @brief Enable the selected ADC. -1899:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** * @note Prerequisite condition to use this function: ADC must be disabled -1900:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** * and voltage regulator must be enabled (done into HAL_ADC_Init()). -1901:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** * @note If low power mode AutoPowerOff is enabled, power-on/off phases are -1902:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** * performed automatically by hardware. -1903:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** * In this mode, this function is useless and must not be called because -1904:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** * flag ADC_FLAG_RDY is not usable. -1905:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** * Therefore, this function must be called under condition of -1906:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** * "if (hadc->Init.LowPowerAutoPowerOff != ENABLE)". -1907:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** * @param hadc ADC handle -1908:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** * @retval HAL status. -1909:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** */ -1910:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** static HAL_StatusTypeDef ADC_Enable(ADC_HandleTypeDef* hadc) -1911:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** { -1912:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** uint32_t tickstart = 0U; -1913:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** __IO uint32_t wait_loop_index = 0U; -1914:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** -1915:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** /* ADC enable and wait for ADC ready (in case of ADC is disabled or */ - ARM GAS /tmp/ccEKYEFi.s page 35 - - -1916:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** /* enabling phase not yet completed: flag ADC ready not yet set). */ -1917:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** /* Timeout implemented to not be stuck if ADC cannot be enabled (possible */ -1918:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** /* causes: ADC clock not running, ...). */ -1919:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** if (ADC_IS_ENABLE(hadc) == RESET) -1920:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** { -1921:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** /* Check if conditions to enable the ADC are fulfilled */ -1922:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** if (ADC_ENABLING_CONDITIONS(hadc) == RESET) -1923:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** { -1924:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** /* Update ADC state machine to error */ -1925:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** SET_BIT(hadc->State, HAL_ADC_STATE_ERROR_INTERNAL); -1926:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** -1927:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** /* Set ADC error code to ADC IP internal error */ -1928:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** SET_BIT(hadc->ErrorCode, HAL_ADC_ERROR_INTERNAL); -1929:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** -1930:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** return HAL_ERROR; -1931:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** } -1932:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** -1933:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** /* Enable the ADC peripheral */ -1934:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** __HAL_ADC_ENABLE(hadc); -1935:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** -1936:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** /* Delay for ADC stabilization time */ -1937:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** /* Compute number of CPU cycles to wait for */ -1938:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** wait_loop_index = (ADC_STAB_DELAY_US * (SystemCoreClock / 1000000U)); -1939:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** while(wait_loop_index != 0U) -1940:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** { -1941:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** wait_loop_index--; -1942:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** } -1943:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** -1944:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** /* Get tick count */ -1945:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** tickstart = HAL_GetTick(); -1946:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** -1947:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** /* Wait for ADC effectively enabled */ -1948:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** while(__HAL_ADC_GET_FLAG(hadc, ADC_FLAG_RDY) == RESET) -1949:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** { -1950:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** if((HAL_GetTick() - tickstart) > ADC_ENABLE_TIMEOUT) -1951:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** { -1952:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** /* Update ADC state machine to error */ -1953:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** SET_BIT(hadc->State, HAL_ADC_STATE_ERROR_INTERNAL); -1954:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** -1955:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** /* Set ADC error code to ADC IP internal error */ -1956:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** SET_BIT(hadc->ErrorCode, HAL_ADC_ERROR_INTERNAL); -1957:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** -1958:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** return HAL_ERROR; -1959:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** } -1960:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** } -1961:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** -1962:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** } -1963:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** -1964:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** /* Return HAL status */ -1965:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** return HAL_OK; -1966:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** } -1967:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** -1968:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** /** -1969:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** * @brief Disable the selected ADC. -1970:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** * @note Prerequisite condition to use this function: ADC conversions must be -1971:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** * stopped. -1972:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** * @param hadc ADC handle - ARM GAS /tmp/ccEKYEFi.s page 36 - - -1973:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** * @retval HAL status. -1974:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** */ -1975:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** static HAL_StatusTypeDef ADC_Disable(ADC_HandleTypeDef* hadc) -1976:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** { -1977:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** uint32_t tickstart = 0U; -1978:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** -1979:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** /* Verification if ADC is not already disabled: */ -1980:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** /* Note: forbidden to disable ADC (set bit ADC_CR_ADDIS) if ADC is already */ -1981:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** /* disabled. */ -1982:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** if (ADC_IS_ENABLE(hadc) != RESET) -1983:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** { -1984:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** /* Check if conditions to disable the ADC are fulfilled */ -1985:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** if (ADC_DISABLING_CONDITIONS(hadc) != RESET) -1986:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** { -1987:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** /* Disable the ADC peripheral */ -1988:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** __HAL_ADC_DISABLE(hadc); -1989:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** } -1990:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** else -1991:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** { -1992:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** /* Update ADC state machine to error */ -1993:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** SET_BIT(hadc->State, HAL_ADC_STATE_ERROR_INTERNAL); -1994:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** -1995:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** /* Set ADC error code to ADC IP internal error */ -1996:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** SET_BIT(hadc->ErrorCode, HAL_ADC_ERROR_INTERNAL); -1997:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** -1998:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** return HAL_ERROR; -1999:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** } -2000:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** -2001:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** /* Wait for ADC effectively disabled */ -2002:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** /* Get tick count */ -2003:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** tickstart = HAL_GetTick(); -2004:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** -2005:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** while(HAL_IS_BIT_SET(hadc->Instance->CR, ADC_CR_ADEN)) -2006:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** { -2007:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** if((HAL_GetTick() - tickstart) > ADC_DISABLE_TIMEOUT) -2008:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** { -2009:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** /* Update ADC state machine to error */ -2010:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** SET_BIT(hadc->State, HAL_ADC_STATE_ERROR_INTERNAL); -2011:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** -2012:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** /* Set ADC error code to ADC IP internal error */ -2013:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** SET_BIT(hadc->ErrorCode, HAL_ADC_ERROR_INTERNAL); -2014:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** -2015:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** return HAL_ERROR; -2016:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** } -2017:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** } -2018:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** } -2019:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** -2020:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** /* Return HAL status */ -2021:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** return HAL_OK; -2022:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** } -2023:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** -2024:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** -2025:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** /** -2026:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** * @brief Stop ADC conversion. -2027:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** * @note Prerequisite condition to use this function: ADC conversions must be -2028:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** * stopped to disable the ADC. -2029:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** * @param hadc ADC handle - ARM GAS /tmp/ccEKYEFi.s page 37 - - -2030:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** * @retval HAL status. -2031:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** */ -2032:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** static HAL_StatusTypeDef ADC_ConversionStop(ADC_HandleTypeDef* hadc) -2033:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** { - 25 .loc 1 2033 0 - 26 .cfi_startproc - 27 @ args = 0, pretend = 0, frame = 0 - 28 @ frame_needed = 0, uses_anonymous_args = 0 - 29 .LVL0: - 30 0000 70B5 push {r4, r5, r6, lr} - 31 .LCFI0: - 32 .cfi_def_cfa_offset 16 - 33 .cfi_offset 4, -16 - 34 .cfi_offset 5, -12 - 35 .cfi_offset 6, -8 - 36 .cfi_offset 14, -4 - 37 0002 0400 movs r4, r0 - 38 .LVL1: -2034:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** uint32_t tickstart = 0U; -2035:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** -2036:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** /* Check the parameters */ -2037:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** assert_param(IS_ADC_ALL_INSTANCE(hadc->Instance)); -2038:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** -2039:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** /* Verification if ADC is not already stopped on regular group to bypass */ -2040:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** /* this function if not needed. */ -2041:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** if (ADC_IS_CONVERSION_ONGOING_REGULAR(hadc)) - 39 .loc 1 2041 0 - 40 0004 0368 ldr r3, [r0] - 41 0006 9A68 ldr r2, [r3, #8] - 42 0008 5207 lsls r2, r2, #29 - 43 000a 21D5 bpl .L6 -2042:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** { -2043:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** -2044:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** /* Stop potential conversion on going on regular group */ -2045:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** /* Software is allowed to set ADSTP only when ADSTART=1 and ADDIS=0 */ -2046:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** if (HAL_IS_BIT_SET(hadc->Instance->CR, ADC_CR_ADSTART) && - 44 .loc 1 2046 0 - 45 000c 9A68 ldr r2, [r3, #8] - 46 000e 5207 lsls r2, r2, #29 - 47 0010 06D5 bpl .L3 -2047:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** HAL_IS_BIT_CLR(hadc->Instance->CR, ADC_CR_ADDIS) ) - 48 .loc 1 2047 0 discriminator 1 - 49 0012 9A68 ldr r2, [r3, #8] -2046:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** HAL_IS_BIT_CLR(hadc->Instance->CR, ADC_CR_ADDIS) ) - 50 .loc 1 2046 0 discriminator 1 - 51 0014 9207 lsls r2, r2, #30 - 52 0016 03D4 bmi .L3 -2048:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** { -2049:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** /* Stop conversions on regular group */ -2050:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** hadc->Instance->CR |= ADC_CR_ADSTP; - 53 .loc 1 2050 0 - 54 0018 9A68 ldr r2, [r3, #8] - 55 001a 1021 movs r1, #16 - 56 001c 0A43 orrs r2, r1 - 57 001e 9A60 str r2, [r3, #8] - 58 .L3: -2051:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** } - ARM GAS /tmp/ccEKYEFi.s page 38 - - -2052:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** -2053:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** /* Wait for conversion effectively stopped */ -2054:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** /* Get tick count */ -2055:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** tickstart = HAL_GetTick(); - 59 .loc 1 2055 0 - 60 0020 FFF7FEFF bl HAL_GetTick - 61 .LVL2: - 62 0024 0500 movs r5, r0 - 63 .LVL3: - 64 .L4: -2056:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** -2057:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** while((hadc->Instance->CR & ADC_CR_ADSTART) != RESET) - 65 .loc 1 2057 0 - 66 0026 2368 ldr r3, [r4] - 67 0028 9B68 ldr r3, [r3, #8] - 68 002a 5B07 lsls r3, r3, #29 - 69 002c 0ED5 bpl .L7 -2058:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** { -2059:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** if((HAL_GetTick() - tickstart) > ADC_STOP_CONVERSION_TIMEOUT) - 70 .loc 1 2059 0 - 71 002e FFF7FEFF bl HAL_GetTick - 72 .LVL4: - 73 0032 401B subs r0, r0, r5 - 74 0034 0228 cmp r0, #2 - 75 0036 F6D9 bls .L4 -2060:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** { -2061:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** /* Update ADC state machine to error */ -2062:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** SET_BIT(hadc->State, HAL_ADC_STATE_ERROR_INTERNAL); - 76 .loc 1 2062 0 - 77 0038 636C ldr r3, [r4, #68] - 78 003a 1022 movs r2, #16 - 79 003c 1343 orrs r3, r2 - 80 003e 6364 str r3, [r4, #68] -2063:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** -2064:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** /* Set ADC error code to ADC IP internal error */ -2065:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** SET_BIT(hadc->ErrorCode, HAL_ADC_ERROR_INTERNAL); - 81 .loc 1 2065 0 - 82 0040 A36C ldr r3, [r4, #72] - 83 0042 0F3A subs r2, r2, #15 - 84 0044 1343 orrs r3, r2 - 85 0046 A364 str r3, [r4, #72] -2066:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** -2067:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** return HAL_ERROR; - 86 .loc 1 2067 0 - 87 0048 0120 movs r0, #1 - 88 004a 02E0 b .L2 - 89 .L7: -2068:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** } -2069:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** } -2070:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** -2071:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** } -2072:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** -2073:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** /* Return HAL status */ -2074:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** return HAL_OK; - 90 .loc 1 2074 0 - 91 004c 0020 movs r0, #0 - 92 004e 00E0 b .L2 - ARM GAS /tmp/ccEKYEFi.s page 39 - - - 93 .LVL5: - 94 .L6: - 95 0050 0020 movs r0, #0 - 96 .LVL6: - 97 .L2: -2075:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** } - 98 .loc 1 2075 0 - 99 @ sp needed - 100 .LVL7: - 101 0052 70BD pop {r4, r5, r6, pc} - 102 .cfi_endproc - 103 .LFE61: - 105 .section .text.ADC_Disable,"ax",%progbits - 106 .align 1 - 107 .syntax unified - 108 .code 16 - 109 .thumb_func - 110 .fpu softvfp - 112 ADC_Disable: - 113 .LFB60: -1976:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** uint32_t tickstart = 0U; - 114 .loc 1 1976 0 - 115 .cfi_startproc - 116 @ args = 0, pretend = 0, frame = 0 - 117 @ frame_needed = 0, uses_anonymous_args = 0 - 118 .LVL8: - 119 0000 70B5 push {r4, r5, r6, lr} - 120 .LCFI1: - 121 .cfi_def_cfa_offset 16 - 122 .cfi_offset 4, -16 - 123 .cfi_offset 5, -12 - 124 .cfi_offset 6, -8 - 125 .cfi_offset 14, -4 - 126 0002 0400 movs r4, r0 - 127 .LVL9: -1982:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** { - 128 .loc 1 1982 0 - 129 0004 0268 ldr r2, [r0] - 130 0006 9168 ldr r1, [r2, #8] - 131 0008 0323 movs r3, #3 - 132 000a 0B40 ands r3, r1 - 133 000c 012B cmp r3, #1 - 134 000e 01D0 beq .L16 -2021:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** } - 135 .loc 1 2021 0 - 136 0010 0020 movs r0, #0 - 137 .LVL10: - 138 .L9: -2022:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** - 139 .loc 1 2022 0 - 140 @ sp needed - 141 .LVL11: - 142 0012 70BD pop {r4, r5, r6, pc} - 143 .LVL12: - 144 .L16: -1982:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** { - 145 .loc 1 1982 0 discriminator 1 - ARM GAS /tmp/ccEKYEFi.s page 40 - - - 146 0014 1368 ldr r3, [r2] - 147 0016 DB07 lsls r3, r3, #31 - 148 0018 02D4 bmi .L10 -1982:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** { - 149 .loc 1 1982 0 is_stmt 0 discriminator 4 - 150 001a D368 ldr r3, [r2, #12] - 151 001c 1B04 lsls r3, r3, #16 - 152 001e 2DD5 bpl .L15 - 153 .L10: -1985:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** { - 154 .loc 1 1985 0 is_stmt 1 - 155 0020 9168 ldr r1, [r2, #8] - 156 0022 0523 movs r3, #5 - 157 0024 0B40 ands r3, r1 - 158 0026 012B cmp r3, #1 - 159 0028 09D0 beq .L17 -1993:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** - 160 .loc 1 1993 0 - 161 002a 636C ldr r3, [r4, #68] - 162 002c 1022 movs r2, #16 - 163 002e 1343 orrs r3, r2 - 164 0030 6364 str r3, [r4, #68] -1996:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** - 165 .loc 1 1996 0 - 166 0032 A36C ldr r3, [r4, #72] - 167 0034 0F3A subs r2, r2, #15 - 168 0036 1343 orrs r3, r2 - 169 0038 A364 str r3, [r4, #72] -1998:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** } - 170 .loc 1 1998 0 - 171 003a 0120 movs r0, #1 - 172 .LVL13: - 173 003c E9E7 b .L9 - 174 .LVL14: - 175 .L17: -1988:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** } - 176 .loc 1 1988 0 - 177 003e 9368 ldr r3, [r2, #8] - 178 0040 0221 movs r1, #2 - 179 0042 0B43 orrs r3, r1 - 180 0044 9360 str r3, [r2, #8] - 181 0046 2368 ldr r3, [r4] - 182 0048 0322 movs r2, #3 - 183 004a 1A60 str r2, [r3] -2003:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** - 184 .loc 1 2003 0 - 185 004c FFF7FEFF bl HAL_GetTick - 186 .LVL15: - 187 0050 0500 movs r5, r0 - 188 .LVL16: - 189 .L12: -2005:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** { - 190 .loc 1 2005 0 - 191 0052 2368 ldr r3, [r4] - 192 0054 9B68 ldr r3, [r3, #8] - 193 0056 DB07 lsls r3, r3, #31 - 194 0058 0ED5 bpl .L18 - ARM GAS /tmp/ccEKYEFi.s page 41 - - -2007:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** { - 195 .loc 1 2007 0 - 196 005a FFF7FEFF bl HAL_GetTick - 197 .LVL17: - 198 005e 401B subs r0, r0, r5 - 199 0060 0228 cmp r0, #2 - 200 0062 F6D9 bls .L12 -2010:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** - 201 .loc 1 2010 0 - 202 0064 636C ldr r3, [r4, #68] - 203 0066 1022 movs r2, #16 - 204 0068 1343 orrs r3, r2 - 205 006a 6364 str r3, [r4, #68] -2013:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** - 206 .loc 1 2013 0 - 207 006c A36C ldr r3, [r4, #72] - 208 006e 0F3A subs r2, r2, #15 - 209 0070 1343 orrs r3, r2 - 210 0072 A364 str r3, [r4, #72] -2015:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** } - 211 .loc 1 2015 0 - 212 0074 0120 movs r0, #1 - 213 0076 CCE7 b .L9 - 214 .L18: -2021:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** } - 215 .loc 1 2021 0 - 216 0078 0020 movs r0, #0 - 217 007a CAE7 b .L9 - 218 .LVL18: - 219 .L15: - 220 007c 0020 movs r0, #0 - 221 .LVL19: - 222 007e C8E7 b .L9 - 223 .cfi_endproc - 224 .LFE60: - 226 .global __aeabi_uidiv - 227 .section .text.ADC_Enable,"ax",%progbits - 228 .align 1 - 229 .syntax unified - 230 .code 16 - 231 .thumb_func - 232 .fpu softvfp - 234 ADC_Enable: - 235 .LFB59: -1911:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** uint32_t tickstart = 0U; - 236 .loc 1 1911 0 - 237 .cfi_startproc - 238 @ args = 0, pretend = 0, frame = 8 - 239 @ frame_needed = 0, uses_anonymous_args = 0 - 240 .LVL20: - 241 0000 30B5 push {r4, r5, lr} - 242 .LCFI2: - 243 .cfi_def_cfa_offset 12 - 244 .cfi_offset 4, -12 - 245 .cfi_offset 5, -8 - 246 .cfi_offset 14, -4 - 247 0002 83B0 sub sp, sp, #12 - ARM GAS /tmp/ccEKYEFi.s page 42 - - - 248 .LCFI3: - 249 .cfi_def_cfa_offset 24 - 250 0004 0400 movs r4, r0 - 251 .LVL21: -1913:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** - 252 .loc 1 1913 0 - 253 0006 0023 movs r3, #0 - 254 0008 0193 str r3, [sp, #4] -1919:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** { - 255 .loc 1 1919 0 - 256 000a 0368 ldr r3, [r0] - 257 000c 9968 ldr r1, [r3, #8] - 258 000e 0322 movs r2, #3 - 259 0010 0A40 ands r2, r1 - 260 0012 012A cmp r2, #1 - 261 0014 0ED0 beq .L29 - 262 .L20: -1922:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** { - 263 .loc 1 1922 0 - 264 0016 9968 ldr r1, [r3, #8] - 265 0018 204A ldr r2, .L32 - 266 001a 1142 tst r1, r2 - 267 001c 12D1 bne .L30 -1934:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** - 268 .loc 1 1934 0 - 269 001e 9A68 ldr r2, [r3, #8] - 270 0020 0121 movs r1, #1 - 271 0022 0A43 orrs r2, r1 - 272 0024 9A60 str r2, [r3, #8] -1938:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** while(wait_loop_index != 0U) - 273 .loc 1 1938 0 - 274 0026 1E4B ldr r3, .L32+4 - 275 0028 1868 ldr r0, [r3] - 276 .LVL22: - 277 002a 1E49 ldr r1, .L32+8 - 278 002c FFF7FEFF bl __aeabi_uidiv - 279 .LVL23: - 280 0030 0190 str r0, [sp, #4] -1939:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** { - 281 .loc 1 1939 0 - 282 0032 15E0 b .L23 - 283 .LVL24: - 284 .L29: -1919:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** { - 285 .loc 1 1919 0 discriminator 1 - 286 0034 1A68 ldr r2, [r3] - 287 0036 D207 lsls r2, r2, #31 - 288 0038 2DD4 bmi .L27 -1919:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** { - 289 .loc 1 1919 0 is_stmt 0 discriminator 4 - 290 003a DA68 ldr r2, [r3, #12] - 291 003c 1204 lsls r2, r2, #16 - 292 003e EAD5 bpl .L20 -1965:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** } - 293 .loc 1 1965 0 is_stmt 1 - 294 0040 0020 movs r0, #0 - 295 .LVL25: - ARM GAS /tmp/ccEKYEFi.s page 43 - - - 296 0042 08E0 b .L21 - 297 .LVL26: - 298 .L30: -1925:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** - 299 .loc 1 1925 0 - 300 0044 636C ldr r3, [r4, #68] - 301 0046 1022 movs r2, #16 - 302 0048 1343 orrs r3, r2 - 303 004a 6364 str r3, [r4, #68] -1928:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** - 304 .loc 1 1928 0 - 305 004c A36C ldr r3, [r4, #72] - 306 004e 0F3A subs r2, r2, #15 - 307 0050 1343 orrs r3, r2 - 308 0052 A364 str r3, [r4, #72] -1930:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** } - 309 .loc 1 1930 0 - 310 0054 0120 movs r0, #1 - 311 .LVL27: - 312 .L21: -1966:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** - 313 .loc 1 1966 0 - 314 0056 03B0 add sp, sp, #12 - 315 @ sp needed - 316 .LVL28: - 317 0058 30BD pop {r4, r5, pc} - 318 .LVL29: - 319 .L24: -1941:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** } - 320 .loc 1 1941 0 - 321 005a 019B ldr r3, [sp, #4] - 322 005c 013B subs r3, r3, #1 - 323 005e 0193 str r3, [sp, #4] - 324 .L23: -1939:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** { - 325 .loc 1 1939 0 - 326 0060 019B ldr r3, [sp, #4] - 327 0062 002B cmp r3, #0 - 328 0064 F9D1 bne .L24 -1945:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** - 329 .loc 1 1945 0 - 330 0066 FFF7FEFF bl HAL_GetTick - 331 .LVL30: - 332 006a 0500 movs r5, r0 - 333 .LVL31: - 334 .L25: -1948:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** { - 335 .loc 1 1948 0 - 336 006c 2368 ldr r3, [r4] - 337 006e 1B68 ldr r3, [r3] - 338 0070 DB07 lsls r3, r3, #31 - 339 0072 0ED4 bmi .L31 -1950:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** { - 340 .loc 1 1950 0 - 341 0074 FFF7FEFF bl HAL_GetTick - 342 .LVL32: - 343 0078 401B subs r0, r0, r5 - ARM GAS /tmp/ccEKYEFi.s page 44 - - - 344 007a 0228 cmp r0, #2 - 345 007c F6D9 bls .L25 -1953:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** - 346 .loc 1 1953 0 - 347 007e 636C ldr r3, [r4, #68] - 348 0080 1022 movs r2, #16 - 349 0082 1343 orrs r3, r2 - 350 0084 6364 str r3, [r4, #68] -1956:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** - 351 .loc 1 1956 0 - 352 0086 A36C ldr r3, [r4, #72] - 353 0088 0F3A subs r2, r2, #15 - 354 008a 1343 orrs r3, r2 - 355 008c A364 str r3, [r4, #72] -1958:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** } - 356 .loc 1 1958 0 - 357 008e 0120 movs r0, #1 - 358 0090 E1E7 b .L21 - 359 .L31: -1965:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** } - 360 .loc 1 1965 0 - 361 0092 0020 movs r0, #0 - 362 0094 DFE7 b .L21 - 363 .LVL33: - 364 .L27: - 365 0096 0020 movs r0, #0 - 366 .LVL34: - 367 0098 DDE7 b .L21 - 368 .L33: - 369 009a C046 .align 2 - 370 .L32: - 371 009c 17000080 .word -2147483625 - 372 00a0 00000000 .word SystemCoreClock - 373 00a4 40420F00 .word 1000000 - 374 .cfi_endproc - 375 .LFE59: - 377 .section .text.HAL_ADC_MspInit,"ax",%progbits - 378 .align 1 - 379 .weak HAL_ADC_MspInit - 380 .syntax unified - 381 .code 16 - 382 .thumb_func - 383 .fpu softvfp - 385 HAL_ADC_MspInit: - 386 .LFB39: - 702:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** /* Prevent unused argument(s) compilation warning */ - 387 .loc 1 702 0 - 388 .cfi_startproc - 389 @ args = 0, pretend = 0, frame = 0 - 390 @ frame_needed = 0, uses_anonymous_args = 0 - 391 @ link register save eliminated. - 392 .LVL35: - 709:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** - 393 .loc 1 709 0 - 394 @ sp needed - 395 0000 7047 bx lr - 396 .cfi_endproc - ARM GAS /tmp/ccEKYEFi.s page 45 - - - 397 .LFE39: - 399 .section .text.HAL_ADC_Init,"ax",%progbits - 400 .align 1 - 401 .global HAL_ADC_Init - 402 .syntax unified - 403 .code 16 - 404 .thumb_func - 405 .fpu softvfp - 407 HAL_ADC_Init: - 408 .LFB37: - 360:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** HAL_StatusTypeDef tmp_hal_status = HAL_OK; - 409 .loc 1 360 0 - 410 .cfi_startproc - 411 @ args = 0, pretend = 0, frame = 0 - 412 @ frame_needed = 0, uses_anonymous_args = 0 - 413 .LVL36: - 414 0000 70B5 push {r4, r5, r6, lr} - 415 .LCFI4: - 416 .cfi_def_cfa_offset 16 - 417 .cfi_offset 4, -16 - 418 .cfi_offset 5, -12 - 419 .cfi_offset 6, -8 - 420 .cfi_offset 14, -4 - 421 0002 041E subs r4, r0, #0 - 422 .LVL37: - 365:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** { - 423 .loc 1 365 0 - 424 0004 00D1 bne .LCB388 - 425 0006 B0E0 b .L49 @long jump - 426 .LCB388: - 394:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** { - 427 .loc 1 394 0 - 428 0008 436C ldr r3, [r0, #68] - 429 000a 002B cmp r3, #0 - 430 000c 7DD0 beq .L51 - 431 .LVL38: - 432 .L37: - 411:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** (tmp_hal_status == HAL_OK) && - 433 .loc 1 411 0 - 434 000e 636C ldr r3, [r4, #68] - 435 0010 DB06 lsls r3, r3, #27 - 436 0012 00D5 bpl .LCB398 - 437 0014 A3E0 b .L38 @long jump - 438 .LCB398: - 413:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** { - 439 .loc 1 413 0 - 440 0016 2168 ldr r1, [r4] - 441 0018 8B68 ldr r3, [r1, #8] - 442 001a 0422 movs r2, #4 - 443 001c 1A40 ands r2, r3 - 412:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** (ADC_IS_CONVERSION_ONGOING_REGULAR(hadc) == RESET) ) - 444 .loc 1 412 0 - 445 001e 00D0 beq .LCB404 - 446 0020 9DE0 b .L38 @long jump - 447 .LCB404: - 416:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** HAL_ADC_STATE_REG_BUSY, - 448 .loc 1 416 0 - ARM GAS /tmp/ccEKYEFi.s page 46 - - - 449 0022 636C ldr r3, [r4, #68] - 450 0024 5248 ldr r0, .L56 - 451 0026 0340 ands r3, r0 - 452 0028 0630 adds r0, r0, #6 - 453 002a FF30 adds r0, r0, #255 - 454 002c 0343 orrs r3, r0 - 455 002e 6364 str r3, [r4, #68] - 425:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** { - 456 .loc 1 425 0 - 457 0030 8868 ldr r0, [r1, #8] - 458 0032 0323 movs r3, #3 - 459 0034 0340 ands r3, r0 - 460 0036 012B cmp r3, #1 - 461 0038 6DD0 beq .L52 - 462 .L39: - 436:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** ADC_CFGR1_RES , - 463 .loc 1 436 0 - 464 003a CB68 ldr r3, [r1, #12] - 465 003c 1820 movs r0, #24 - 466 003e 8343 bics r3, r0 - 467 0040 A068 ldr r0, [r4, #8] - 468 0042 0343 orrs r3, r0 - 469 0044 CB60 str r3, [r1, #12] - 442:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** ADC_CFGR2_CKMODE , - 470 .loc 1 442 0 - 471 0046 2168 ldr r1, [r4] - 472 0048 0B69 ldr r3, [r1, #16] - 473 004a 9B00 lsls r3, r3, #2 - 474 004c 9B08 lsrs r3, r3, #2 - 475 004e 6068 ldr r0, [r4, #4] - 476 0050 0343 orrs r3, r0 - 477 0052 0B61 str r3, [r1, #16] - 478 .L40: - 459:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** ADC_CFGR1_AUTOFF | - 479 .loc 1 459 0 - 480 0054 2168 ldr r1, [r4] - 481 0056 CB68 ldr r3, [r1, #12] - 482 0058 4648 ldr r0, .L56+4 - 483 005a 0340 ands r3, r0 - 484 005c CB60 str r3, [r1, #12] - 470:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** ADC_CFGR1_AUTOOFF(hadc->Init.LowPowerAutoPowerOff) | - 485 .loc 1 470 0 - 486 005e A369 ldr r3, [r4, #24] - 487 0060 9B03 lsls r3, r3, #14 - 471:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** ADC_CFGR1_CONTINUOUS(hadc->Init.ContinuousConvMode) | - 488 .loc 1 471 0 - 489 0062 E169 ldr r1, [r4, #28] - 490 0064 C903 lsls r1, r1, #15 - 470:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** ADC_CFGR1_AUTOOFF(hadc->Init.LowPowerAutoPowerOff) | - 491 .loc 1 470 0 - 492 0066 0B43 orrs r3, r1 - 472:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** ADC_CFGR1_OVERRUN(hadc->Init.Overrun) | - 493 .loc 1 472 0 - 494 0068 216A ldr r1, [r4, #32] - 495 006a 4803 lsls r0, r1, #13 - 471:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** ADC_CFGR1_CONTINUOUS(hadc->Init.ContinuousConvMode) | - 496 .loc 1 471 0 - ARM GAS /tmp/ccEKYEFi.s page 47 - - - 497 006c 0343 orrs r3, r0 - 473:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** hadc->Init.DataAlign | - 498 .loc 1 473 0 - 499 006e 606B ldr r0, [r4, #52] - 500 0070 0128 cmp r0, #1 - 501 0072 57D0 beq .L50 - 502 0074 8020 movs r0, #128 - 503 0076 4001 lsls r0, r0, #5 - 504 .L41: - 472:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** ADC_CFGR1_OVERRUN(hadc->Init.Overrun) | - 505 .loc 1 472 0 - 506 0078 0343 orrs r3, r0 - 473:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** hadc->Init.DataAlign | - 507 .loc 1 473 0 - 508 007a E068 ldr r0, [r4, #12] - 509 007c 0343 orrs r3, r0 - 475:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** ADC_CFGR1_DMACONTREQ(hadc->Init.DMAContinuousRequests) ); - 510 .loc 1 475 0 - 511 007e 2069 ldr r0, [r4, #16] - 512 0080 0228 cmp r0, #2 - 513 0082 51D0 beq .L53 - 514 .L42: - 474:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** ADC_SCANDIR(hadc->Init.ScanConvMode) | - 515 .loc 1 474 0 - 516 0084 1343 orrs r3, r2 - 476:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** - 517 .loc 1 476 0 - 518 0086 226B ldr r2, [r4, #48] - 519 0088 5200 lsls r2, r2, #1 - 475:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** ADC_CFGR1_DMACONTREQ(hadc->Init.DMAContinuousRequests) ); - 520 .loc 1 475 0 - 521 008a 1343 orrs r3, r2 - 522 .LVL39: - 479:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** { - 523 .loc 1 479 0 - 524 008c 626A ldr r2, [r4, #36] - 525 008e 012A cmp r2, #1 - 526 0090 4CD0 beq .L54 - 527 .L43: - 505:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** { - 528 .loc 1 505 0 - 529 0092 A26A ldr r2, [r4, #40] - 530 0094 C221 movs r1, #194 - 531 0096 FF31 adds r1, r1, #255 - 532 0098 8A42 cmp r2, r1 - 533 009a 02D0 beq .L45 - 507:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** hadc->Init.ExternalTrigConvEdge ); - 534 .loc 1 507 0 - 535 009c E16A ldr r1, [r4, #44] - 536 009e 0A43 orrs r2, r1 - 537 00a0 1343 orrs r3, r2 - 538 .LVL40: - 539 .L45: - 512:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** - 540 .loc 1 512 0 - 541 00a2 2168 ldr r1, [r4] - 542 00a4 CA68 ldr r2, [r1, #12] - ARM GAS /tmp/ccEKYEFi.s page 48 - - - 543 00a6 1A43 orrs r2, r3 - 544 00a8 CA60 str r2, [r1, #12] - 520:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** { - 545 .loc 1 520 0 - 546 00aa A26B ldr r2, [r4, #56] - 547 00ac 8021 movs r1, #128 - 548 00ae 4905 lsls r1, r1, #21 - 549 00b0 8A42 cmp r2, r1 - 550 00b2 0DD0 beq .L46 - 520:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** { - 551 .loc 1 520 0 is_stmt 0 discriminator 1 - 552 00b4 012A cmp r2, #1 - 553 00b6 0BD0 beq .L46 - 520:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** { - 554 .loc 1 520 0 discriminator 2 - 555 00b8 022A cmp r2, #2 - 556 00ba 09D0 beq .L46 - 520:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** { - 557 .loc 1 520 0 discriminator 3 - 558 00bc 032A cmp r2, #3 - 559 00be 07D0 beq .L46 - 520:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** { - 560 .loc 1 520 0 discriminator 4 - 561 00c0 042A cmp r2, #4 - 562 00c2 05D0 beq .L46 - 520:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** { - 563 .loc 1 520 0 discriminator 5 - 564 00c4 052A cmp r2, #5 - 565 00c6 03D0 beq .L46 - 520:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** { - 566 .loc 1 520 0 discriminator 6 - 567 00c8 062A cmp r2, #6 - 568 00ca 01D0 beq .L46 - 520:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** { - 569 .loc 1 520 0 discriminator 7 - 570 00cc 072A cmp r2, #7 - 571 00ce 0AD1 bne .L47 - 572 .L46: - 524:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** - 573 .loc 1 524 0 is_stmt 1 - 574 00d0 2068 ldr r0, [r4] - 575 00d2 4169 ldr r1, [r0, #20] - 576 00d4 0722 movs r2, #7 - 577 00d6 9143 bics r1, r2 - 578 00d8 4161 str r1, [r0, #20] - 527:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** } - 579 .loc 1 527 0 - 580 00da 2068 ldr r0, [r4] - 581 00dc 4169 ldr r1, [r0, #20] - 582 00de A56B ldr r5, [r4, #56] - 583 00e0 2A40 ands r2, r5 - 584 00e2 0A43 orrs r2, r1 - 585 00e4 4261 str r2, [r0, #20] - 586 .L47: - 535:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** == tmpCFGR1) - 587 .loc 1 535 0 - 588 00e6 2268 ldr r2, [r4] - ARM GAS /tmp/ccEKYEFi.s page 49 - - - 589 00e8 D268 ldr r2, [r2, #12] - 590 00ea 2349 ldr r1, .L56+8 - 591 00ec 0A40 ands r2, r1 - 592 00ee 9A42 cmp r2, r3 - 593 00f0 2BD0 beq .L55 - 549:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** HAL_ADC_STATE_BUSY_INTERNAL, - 594 .loc 1 549 0 - 595 00f2 636C ldr r3, [r4, #68] - 596 .LVL41: - 597 00f4 1222 movs r2, #18 - 598 00f6 9343 bics r3, r2 - 599 00f8 023A subs r2, r2, #2 - 600 00fa 1343 orrs r3, r2 - 601 00fc 6364 str r3, [r4, #68] - 554:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** - 602 .loc 1 554 0 - 603 00fe A36C ldr r3, [r4, #72] - 604 0100 0F3A subs r2, r2, #15 - 605 0102 1343 orrs r3, r2 - 606 0104 A364 str r3, [r4, #72] - 607 .LVL42: - 556:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** } - 608 .loc 1 556 0 - 609 0106 0120 movs r0, #1 - 610 0108 2EE0 b .L36 - 611 .LVL43: - 612 .L51: - 397:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** - 613 .loc 1 397 0 - 614 010a 8364 str r3, [r0, #72] - 400:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** - 615 .loc 1 400 0 - 616 010c 4022 movs r2, #64 - 617 010e 8354 strb r3, [r0, r2] - 403:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** } - 618 .loc 1 403 0 - 619 0110 FFF7FEFF bl HAL_ADC_MspInit - 620 .LVL44: - 621 0114 7BE7 b .L37 - 622 .L52: - 425:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** { - 623 .loc 1 425 0 discriminator 1 - 624 0116 0B68 ldr r3, [r1] - 625 0118 DB07 lsls r3, r3, #31 - 626 011a 9BD4 bmi .L40 - 425:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** { - 627 .loc 1 425 0 is_stmt 0 discriminator 4 - 628 011c CB68 ldr r3, [r1, #12] - 629 011e 1B04 lsls r3, r3, #16 - 630 0120 98D4 bmi .L40 - 631 0122 8AE7 b .L39 - 632 .L50: - 473:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** hadc->Init.DataAlign | - 633 .loc 1 473 0 is_stmt 1 - 634 0124 1000 movs r0, r2 - 635 0126 A7E7 b .L41 - 636 .L53: - ARM GAS /tmp/ccEKYEFi.s page 50 - - - 475:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** ADC_CFGR1_DMACONTREQ(hadc->Init.DMAContinuousRequests) ); - 637 .loc 1 475 0 - 638 0128 0422 movs r2, #4 - 639 012a ABE7 b .L42 - 640 .LVL45: - 641 .L54: - 481:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** { - 642 .loc 1 481 0 - 643 012c 0029 cmp r1, #0 - 644 012e 03D1 bne .L44 - 484:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** } - 645 .loc 1 484 0 - 646 0130 8022 movs r2, #128 - 647 0132 5202 lsls r2, r2, #9 - 648 0134 1343 orrs r3, r2 - 649 .LVL46: - 650 0136 ACE7 b .L43 - 651 .L44: - 493:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** - 652 .loc 1 493 0 - 653 0138 626C ldr r2, [r4, #68] - 654 013a 2021 movs r1, #32 - 655 013c 0A43 orrs r2, r1 - 656 013e 6264 str r2, [r4, #68] - 496:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** } - 657 .loc 1 496 0 - 658 0140 A26C ldr r2, [r4, #72] - 659 0142 1F39 subs r1, r1, #31 - 660 0144 0A43 orrs r2, r1 - 661 0146 A264 str r2, [r4, #72] - 662 0148 A3E7 b .L43 - 663 .L55: - 539:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** - 664 .loc 1 539 0 - 665 014a 0023 movs r3, #0 - 666 .LVL47: - 667 014c A364 str r3, [r4, #72] - 542:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** HAL_ADC_STATE_BUSY_INTERNAL, - 668 .loc 1 542 0 - 669 014e 636C ldr r3, [r4, #68] - 670 0150 0322 movs r2, #3 - 671 0152 9343 bics r3, r2 - 672 0154 023A subs r2, r2, #2 - 673 0156 1343 orrs r3, r2 - 674 0158 6364 str r3, [r4, #68] - 361:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** uint32_t tmpCFGR1 = 0U; - 675 .loc 1 361 0 - 676 015a 0020 movs r0, #0 - 677 015c 04E0 b .L36 - 678 .LVL48: - 679 .L38: - 563:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** - 680 .loc 1 563 0 - 681 015e 636C ldr r3, [r4, #68] - 682 0160 1022 movs r2, #16 - 683 0162 1343 orrs r3, r2 - 684 0164 6364 str r3, [r4, #68] - ARM GAS /tmp/ccEKYEFi.s page 51 - - - 685 .LVL49: - 565:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** } - 686 .loc 1 565 0 - 687 0166 0120 movs r0, #1 - 688 .LVL50: - 689 .L36: - 570:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** - 690 .loc 1 570 0 - 691 @ sp needed - 692 .LVL51: - 693 0168 70BD pop {r4, r5, r6, pc} - 694 .LVL52: - 695 .L49: - 367:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** } - 696 .loc 1 367 0 - 697 016a 0120 movs r0, #1 - 698 .LVL53: - 699 016c FCE7 b .L36 - 700 .L57: - 701 016e C046 .align 2 - 702 .L56: - 703 0170 FDFEFFFF .word -259 - 704 0174 1902FEFF .word -130535 - 705 0178 E7FF3F83 .word -2092957721 - 706 .cfi_endproc - 707 .LFE37: - 709 .section .text.HAL_ADC_MspDeInit,"ax",%progbits - 710 .align 1 - 711 .weak HAL_ADC_MspDeInit - 712 .syntax unified - 713 .code 16 - 714 .thumb_func - 715 .fpu softvfp - 717 HAL_ADC_MspDeInit: - 718 .LFB40: - 717:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** /* Prevent unused argument(s) compilation warning */ - 719 .loc 1 717 0 - 720 .cfi_startproc - 721 @ args = 0, pretend = 0, frame = 0 - 722 @ frame_needed = 0, uses_anonymous_args = 0 - 723 @ link register save eliminated. - 724 .LVL54: - 724:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** - 725 .loc 1 724 0 - 726 @ sp needed - 727 0000 7047 bx lr - 728 .cfi_endproc - 729 .LFE40: - 731 .section .text.HAL_ADC_DeInit,"ax",%progbits - 732 .align 1 - 733 .global HAL_ADC_DeInit - 734 .syntax unified - 735 .code 16 - 736 .thumb_func - 737 .fpu softvfp - 739 HAL_ADC_DeInit: - 740 .LFB38: - ARM GAS /tmp/ccEKYEFi.s page 52 - - - 586:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** HAL_StatusTypeDef tmp_hal_status = HAL_OK; - 741 .loc 1 586 0 - 742 .cfi_startproc - 743 @ args = 0, pretend = 0, frame = 0 - 744 @ frame_needed = 0, uses_anonymous_args = 0 - 745 .LVL55: - 746 0000 70B5 push {r4, r5, r6, lr} - 747 .LCFI5: - 748 .cfi_def_cfa_offset 16 - 749 .cfi_offset 4, -16 - 750 .cfi_offset 5, -12 - 751 .cfi_offset 6, -8 - 752 .cfi_offset 14, -4 - 753 0002 041E subs r4, r0, #0 - 754 .LVL56: - 590:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** { - 755 .loc 1 590 0 - 756 0004 43D0 beq .L63 - 599:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** - 757 .loc 1 599 0 - 758 0006 436C ldr r3, [r0, #68] - 759 0008 0222 movs r2, #2 - 760 000a 1343 orrs r3, r2 - 761 000c 4364 str r3, [r0, #68] - 602:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** - 762 .loc 1 602 0 - 763 000e FFF7FEFF bl ADC_ConversionStop - 764 .LVL57: - 765 0012 051E subs r5, r0, #0 - 766 .LVL58: - 605:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** { - 767 .loc 1 605 0 - 768 0014 06D0 beq .L64 - 769 .LVL59: - 770 .L61: - 621:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** { - 771 .loc 1 621 0 - 772 0016 012D cmp r5, #1 - 773 0018 0DD1 bne .L65 - 774 .L62: - 689:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** - 775 .loc 1 689 0 - 776 001a 4023 movs r3, #64 - 777 001c 0022 movs r2, #0 - 778 001e E254 strb r2, [r4, r3] - 779 .LVL60: - 780 .L60: - 693:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** - 781 .loc 1 693 0 - 782 0020 2800 movs r0, r5 - 783 @ sp needed - 784 .LVL61: - 785 0022 70BD pop {r4, r5, r6, pc} - 786 .LVL62: - 787 .L64: - 608:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** - 788 .loc 1 608 0 - ARM GAS /tmp/ccEKYEFi.s page 53 - - - 789 0024 2000 movs r0, r4 - 790 .LVL63: - 791 0026 FFF7FEFF bl ADC_Disable - 792 .LVL64: - 793 002a 0500 movs r5, r0 - 794 .LVL65: - 611:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** { - 795 .loc 1 611 0 - 796 002c 0128 cmp r0, #1 - 797 002e F2D0 beq .L61 - 614:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** } - 798 .loc 1 614 0 - 799 0030 0123 movs r3, #1 - 800 0032 6364 str r3, [r4, #68] - 801 0034 EFE7 b .L61 - 802 .LVL66: - 803 .L65: - 626:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** ADC_IT_EOS | ADC_IT_EOC | - 804 .loc 1 626 0 - 805 0036 2168 ldr r1, [r4] - 806 0038 4B68 ldr r3, [r1, #4] - 807 003a 9F22 movs r2, #159 - 808 003c 9343 bics r3, r2 - 809 003e 4B60 str r3, [r1, #4] - 631:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** ADC_FLAG_EOS | ADC_FLAG_EOC | - 810 .loc 1 631 0 - 811 0040 2368 ldr r3, [r4] - 812 0042 1A60 str r2, [r3] - 640:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** ADC_CFGR1_AUTOFF | ADC_CFGR1_WAIT | ADC_CFGR1_CONT | ADC_CFGR1_ - 813 .loc 1 640 0 - 814 0044 2268 ldr r2, [r4] - 815 0046 D368 ldr r3, [r2, #12] - 816 0048 1249 ldr r1, .L66 - 817 004a 0B40 ands r3, r1 - 818 004c D360 str r3, [r2, #12] - 648:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** - 819 .loc 1 648 0 - 820 004e 2268 ldr r2, [r4] - 821 0050 1369 ldr r3, [r2, #16] - 822 0052 9B00 lsls r3, r3, #2 - 823 0054 9B08 lsrs r3, r3, #2 - 824 0056 1361 str r3, [r2, #16] - 651:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** - 825 .loc 1 651 0 - 826 0058 2268 ldr r2, [r4] - 827 005a 5369 ldr r3, [r2, #20] - 828 005c 0721 movs r1, #7 - 829 005e 8B43 bics r3, r1 - 830 0060 5361 str r3, [r2, #20] - 654:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** - 831 .loc 1 654 0 - 832 0062 2268 ldr r2, [r4] - 833 0064 136A ldr r3, [r2, #32] - 834 0066 0C49 ldr r1, .L66+4 - 835 0068 0B40 ands r3, r1 - 836 006a 1362 str r3, [r2, #32] - 657:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** ADC_CHSELR_CHSEL15 | ADC_CHSELR_CHSEL14 | ADC_CHSELR_CHSEL13 | ADC_ - ARM GAS /tmp/ccEKYEFi.s page 54 - - - 837 .loc 1 657 0 - 838 006c 2268 ldr r2, [r4] - 839 006e 936A ldr r3, [r2, #40] - 840 0070 DB0C lsrs r3, r3, #19 - 841 0072 DB04 lsls r3, r3, #19 - 842 0074 9362 str r3, [r2, #40] - 667:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** - 843 .loc 1 667 0 - 844 0076 094A ldr r2, .L66+8 - 845 0078 1368 ldr r3, [r2] - 846 007a 0949 ldr r1, .L66+12 - 847 007c 0B40 ands r3, r1 - 848 007e 1360 str r3, [r2] - 679:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** - 849 .loc 1 679 0 - 850 0080 2000 movs r0, r4 - 851 0082 FFF7FEFF bl HAL_ADC_MspDeInit - 852 .LVL67: - 682:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** - 853 .loc 1 682 0 - 854 0086 0023 movs r3, #0 - 855 0088 A364 str r3, [r4, #72] - 685:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** } - 856 .loc 1 685 0 - 857 008a 6364 str r3, [r4, #68] - 858 008c C5E7 b .L62 - 859 .LVL68: - 860 .L63: - 592:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** } - 861 .loc 1 592 0 - 862 008e 0125 movs r5, #1 - 863 0090 C6E7 b .L60 - 864 .L67: - 865 0092 C046 .align 2 - 866 .L66: - 867 0094 00023E83 .word -2093088256 - 868 0098 00F000F0 .word -268374016 - 869 009c 08270140 .word 1073817352 - 870 00a0 FFFF3FFE .word -29360129 - 871 .cfi_endproc - 872 .LFE38: - 874 .section .text.HAL_ADC_Start,"ax",%progbits - 875 .align 1 - 876 .global HAL_ADC_Start - 877 .syntax unified - 878 .code 16 - 879 .thumb_func - 880 .fpu softvfp - 882 HAL_ADC_Start: - 883 .LFB41: - 759:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** HAL_StatusTypeDef tmp_hal_status = HAL_OK; - 884 .loc 1 759 0 - 885 .cfi_startproc - 886 @ args = 0, pretend = 0, frame = 0 - 887 @ frame_needed = 0, uses_anonymous_args = 0 - 888 .LVL69: - 889 0000 10B5 push {r4, lr} - ARM GAS /tmp/ccEKYEFi.s page 55 - - - 890 .LCFI6: - 891 .cfi_def_cfa_offset 8 - 892 .cfi_offset 4, -8 - 893 .cfi_offset 14, -4 - 894 0002 0400 movs r4, r0 - 895 .LVL70: - 766:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** { - 896 .loc 1 766 0 - 897 0004 0368 ldr r3, [r0] - 898 0006 9B68 ldr r3, [r3, #8] - 899 0008 5B07 lsls r3, r3, #29 - 900 000a 23D4 bmi .L71 - 769:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** - 901 .loc 1 769 0 - 902 000c 4023 movs r3, #64 - 903 000e C35C ldrb r3, [r0, r3] - 904 0010 012B cmp r3, #1 - 905 0012 21D0 beq .L72 - 769:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** - 906 .loc 1 769 0 is_stmt 0 discriminator 2 - 907 0014 4023 movs r3, #64 - 908 0016 0122 movs r2, #1 - 909 0018 C254 strb r2, [r0, r3] - 774:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** { - 910 .loc 1 774 0 is_stmt 1 discriminator 2 - 911 001a C369 ldr r3, [r0, #28] - 912 001c 012B cmp r3, #1 - 913 001e 14D1 bne .L74 - 760:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** - 914 .loc 1 760 0 - 915 0020 0020 movs r0, #0 - 916 .LVL71: - 917 .L70: - 785:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** HAL_ADC_STATE_READY | HAL_ADC_STATE_REG_EOC | HAL_ADC_STATE_REG_OVR | HAL_A - 918 .loc 1 785 0 - 919 0022 636C ldr r3, [r4, #68] - 920 0024 0D4A ldr r2, .L75 - 921 0026 1A40 ands r2, r3 - 922 0028 8023 movs r3, #128 - 923 002a 5B00 lsls r3, r3, #1 - 924 002c 1343 orrs r3, r2 - 925 002e 6364 str r3, [r4, #68] - 790:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** - 926 .loc 1 790 0 - 927 0030 0023 movs r3, #0 - 928 0032 A364 str r3, [r4, #72] - 795:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** - 929 .loc 1 795 0 - 930 0034 4022 movs r2, #64 - 931 0036 A354 strb r3, [r4, r2] - 800:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** - 932 .loc 1 800 0 - 933 0038 2368 ldr r3, [r4] - 934 003a 243A subs r2, r2, #36 - 935 003c 1A60 str r2, [r3] - 806:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** } - 936 .loc 1 806 0 - ARM GAS /tmp/ccEKYEFi.s page 56 - - - 937 003e 2268 ldr r2, [r4] - 938 0040 9368 ldr r3, [r2, #8] - 939 0042 0421 movs r1, #4 - 940 0044 0B43 orrs r3, r1 - 941 0046 9360 str r3, [r2, #8] - 942 .L69: - 816:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** - 943 .loc 1 816 0 - 944 @ sp needed - 945 .LVL72: - 946 0048 10BD pop {r4, pc} - 947 .LVL73: - 948 .L74: - 776:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** } - 949 .loc 1 776 0 - 950 004a FFF7FEFF bl ADC_Enable - 951 .LVL74: - 780:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** { - 952 .loc 1 780 0 - 953 004e 0028 cmp r0, #0 - 954 0050 E7D0 beq .L70 - 955 0052 F9E7 b .L69 - 956 .LVL75: - 957 .L71: - 811:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** } - 958 .loc 1 811 0 - 959 0054 0220 movs r0, #2 - 960 .LVL76: - 961 0056 F7E7 b .L69 - 962 .LVL77: - 963 .L72: - 769:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** - 964 .loc 1 769 0 - 965 0058 0220 movs r0, #2 - 966 .LVL78: - 967 005a F5E7 b .L69 - 968 .L76: - 969 .align 2 - 970 .L75: - 971 005c FEF0FFFF .word -3842 - 972 .cfi_endproc - 973 .LFE41: - 975 .section .text.HAL_ADC_Stop,"ax",%progbits - 976 .align 1 - 977 .global HAL_ADC_Stop - 978 .syntax unified - 979 .code 16 - 980 .thumb_func - 981 .fpu softvfp - 983 HAL_ADC_Stop: - 984 .LFB42: - 824:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** HAL_StatusTypeDef tmp_hal_status = HAL_OK; - 985 .loc 1 824 0 - 986 .cfi_startproc - 987 @ args = 0, pretend = 0, frame = 0 - 988 @ frame_needed = 0, uses_anonymous_args = 0 - 989 .LVL79: - ARM GAS /tmp/ccEKYEFi.s page 57 - - - 990 0000 10B5 push {r4, lr} - 991 .LCFI7: - 992 .cfi_def_cfa_offset 8 - 993 .cfi_offset 4, -8 - 994 .cfi_offset 14, -4 - 995 0002 0400 movs r4, r0 - 996 .LVL80: - 831:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** - 997 .loc 1 831 0 - 998 0004 4023 movs r3, #64 - 999 0006 C35C ldrb r3, [r0, r3] - 1000 0008 012B cmp r3, #1 - 1001 000a 17D0 beq .L80 - 831:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** - 1002 .loc 1 831 0 is_stmt 0 discriminator 2 - 1003 000c 4023 movs r3, #64 - 1004 000e 0122 movs r2, #1 - 1005 0010 C254 strb r2, [r0, r3] - 834:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** - 1006 .loc 1 834 0 is_stmt 1 discriminator 2 - 1007 0012 FFF7FEFF bl ADC_ConversionStop - 1008 .LVL81: - 837:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** { - 1009 .loc 1 837 0 discriminator 2 - 1010 0016 0028 cmp r0, #0 - 1011 0018 03D0 beq .L81 - 1012 .LVL82: - 1013 .L79: - 853:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** - 1014 .loc 1 853 0 - 1015 001a 4023 movs r3, #64 - 1016 001c 0022 movs r2, #0 - 1017 001e E254 strb r2, [r4, r3] - 1018 .LVL83: - 1019 .L78: - 857:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** - 1020 .loc 1 857 0 - 1021 @ sp needed - 1022 .LVL84: - 1023 0020 10BD pop {r4, pc} - 1024 .LVL85: - 1025 .L81: - 840:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** - 1026 .loc 1 840 0 - 1027 0022 2000 movs r0, r4 - 1028 .LVL86: - 1029 0024 FFF7FEFF bl ADC_Disable - 1030 .LVL87: - 843:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** { - 1031 .loc 1 843 0 - 1032 0028 0028 cmp r0, #0 - 1033 002a F6D1 bne .L79 - 846:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** HAL_ADC_STATE_REG_BUSY, - 1034 .loc 1 846 0 - 1035 002c 636C ldr r3, [r4, #68] - 1036 002e 044A ldr r2, .L82 - 1037 0030 1340 ands r3, r2 - ARM GAS /tmp/ccEKYEFi.s page 58 - - - 1038 0032 0432 adds r2, r2, #4 - 1039 0034 FF32 adds r2, r2, #255 - 1040 0036 1343 orrs r3, r2 - 1041 0038 6364 str r3, [r4, #68] - 1042 003a EEE7 b .L79 - 1043 .LVL88: - 1044 .L80: - 831:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** - 1045 .loc 1 831 0 - 1046 003c 0220 movs r0, #2 - 1047 .LVL89: - 1048 003e EFE7 b .L78 - 1049 .L83: - 1050 .align 2 - 1051 .L82: - 1052 0040 FEFEFFFF .word -258 - 1053 .cfi_endproc - 1054 .LFE42: - 1056 .section .text.HAL_ADC_PollForConversion,"ax",%progbits - 1057 .align 1 - 1058 .global HAL_ADC_PollForConversion - 1059 .syntax unified - 1060 .code 16 - 1061 .thumb_func - 1062 .fpu softvfp - 1064 HAL_ADC_PollForConversion: - 1065 .LFB43: - 878:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** uint32_t tickstart; - 1066 .loc 1 878 0 - 1067 .cfi_startproc - 1068 @ args = 0, pretend = 0, frame = 0 - 1069 @ frame_needed = 0, uses_anonymous_args = 0 - 1070 .LVL90: - 1071 0000 F8B5 push {r3, r4, r5, r6, r7, lr} - 1072 .LCFI8: - 1073 .cfi_def_cfa_offset 24 - 1074 .cfi_offset 3, -24 - 1075 .cfi_offset 4, -20 - 1076 .cfi_offset 5, -16 - 1077 .cfi_offset 6, -12 - 1078 .cfi_offset 7, -8 - 1079 .cfi_offset 14, -4 - 1080 0002 0400 movs r4, r0 - 1081 0004 0E00 movs r6, r1 - 886:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** { - 1082 .loc 1 886 0 - 1083 0006 4569 ldr r5, [r0, #20] - 1084 0008 082D cmp r5, #8 - 1085 000a 04D0 beq .L85 - 899:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** { - 1086 .loc 1 899 0 - 1087 000c 0368 ldr r3, [r0] - 1088 000e DB68 ldr r3, [r3, #12] - 1089 0010 DB07 lsls r3, r3, #31 - 1090 0012 19D4 bmi .L95 - 911:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** } - 1091 .loc 1 911 0 - ARM GAS /tmp/ccEKYEFi.s page 59 - - - 1092 0014 0C25 movs r5, #12 - 1093 .L85: - 1094 .LVL91: - 916:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** - 1095 .loc 1 916 0 - 1096 0016 FFF7FEFF bl HAL_GetTick - 1097 .LVL92: - 1098 001a 0700 movs r7, r0 - 1099 .LVL93: - 1100 .L88: - 919:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** { - 1101 .loc 1 919 0 - 1102 001c 2368 ldr r3, [r4] - 1103 001e 1A68 ldr r2, [r3] - 1104 0020 1542 tst r5, r2 - 1105 0022 1AD1 bne .L96 - 922:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** { - 1106 .loc 1 922 0 - 1107 0024 731C adds r3, r6, #1 - 1108 0026 F9D0 beq .L88 - 924:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** { - 1109 .loc 1 924 0 - 1110 0028 002E cmp r6, #0 - 1111 002a 04D0 beq .L89 - 924:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** { - 1112 .loc 1 924 0 is_stmt 0 discriminator 1 - 1113 002c FFF7FEFF bl HAL_GetTick - 1114 .LVL94: - 1115 0030 C01B subs r0, r0, r7 - 1116 0032 B042 cmp r0, r6 - 1117 0034 F2D9 bls .L88 - 1118 .L89: - 927:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** - 1119 .loc 1 927 0 is_stmt 1 - 1120 0036 636C ldr r3, [r4, #68] - 1121 0038 0422 movs r2, #4 - 1122 003a 1343 orrs r3, r2 - 1123 003c 6364 str r3, [r4, #68] - 930:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** - 1124 .loc 1 930 0 - 1125 003e 4023 movs r3, #64 - 1126 0040 0022 movs r2, #0 - 1127 0042 E254 strb r2, [r4, r3] - 932:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** } - 1128 .loc 1 932 0 - 1129 0044 0320 movs r0, #3 - 1130 0046 07E0 b .L86 - 1131 .LVL95: - 1132 .L95: - 902:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** - 1133 .loc 1 902 0 - 1134 0048 436C ldr r3, [r0, #68] - 1135 004a 2022 movs r2, #32 - 1136 004c 1343 orrs r3, r2 - 1137 004e 4364 str r3, [r0, #68] - 905:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** - 1138 .loc 1 905 0 - ARM GAS /tmp/ccEKYEFi.s page 60 - - - 1139 0050 4023 movs r3, #64 - 1140 0052 0022 movs r2, #0 - 1141 0054 C254 strb r2, [r0, r3] - 907:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** } - 1142 .loc 1 907 0 - 1143 0056 0120 movs r0, #1 - 1144 .LVL96: - 1145 .L86: - 985:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** - 1146 .loc 1 985 0 - 1147 @ sp needed - 1148 .LVL97: - 1149 .LVL98: - 1150 0058 F8BD pop {r3, r4, r5, r6, r7, pc} - 1151 .LVL99: - 1152 .L96: - 938:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** - 1153 .loc 1 938 0 - 1154 005a 616C ldr r1, [r4, #68] - 1155 005c 8022 movs r2, #128 - 1156 005e 9200 lsls r2, r2, #2 - 1157 0060 0A43 orrs r2, r1 - 1158 0062 6264 str r2, [r4, #68] - 942:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** (hadc->Init.ContinuousConvMode == DISABLE) ) - 1159 .loc 1 942 0 - 1160 0064 D968 ldr r1, [r3, #12] - 1161 0066 C022 movs r2, #192 - 1162 0068 1201 lsls r2, r2, #4 - 1163 006a 1142 tst r1, r2 - 1164 006c 13D1 bne .L91 - 942:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** (hadc->Init.ContinuousConvMode == DISABLE) ) - 1165 .loc 1 942 0 is_stmt 0 discriminator 1 - 1166 006e 226A ldr r2, [r4, #32] - 1167 0070 002A cmp r2, #0 - 1168 0072 10D1 bne .L91 - 946:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** { - 1169 .loc 1 946 0 is_stmt 1 - 1170 0074 1A68 ldr r2, [r3] - 1171 0076 1207 lsls r2, r2, #28 - 1172 0078 0DD5 bpl .L91 - 950:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** { - 1173 .loc 1 950 0 - 1174 007a 9A68 ldr r2, [r3, #8] - 1175 007c 5207 lsls r2, r2, #29 - 1176 007e 12D4 bmi .L92 - 956:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** - 1177 .loc 1 956 0 - 1178 0080 5A68 ldr r2, [r3, #4] - 1179 0082 0C21 movs r1, #12 - 1180 0084 8A43 bics r2, r1 - 1181 0086 5A60 str r2, [r3, #4] - 959:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** HAL_ADC_STATE_REG_BUSY, - 1182 .loc 1 959 0 - 1183 0088 636C ldr r3, [r4, #68] - 1184 008a 0C4A ldr r2, .L97 - 1185 008c 1340 ands r3, r2 - 1186 008e 0432 adds r2, r2, #4 - ARM GAS /tmp/ccEKYEFi.s page 61 - - - 1187 0090 FF32 adds r2, r2, #255 - 1188 0092 1343 orrs r3, r2 - 1189 0094 6364 str r3, [r4, #68] - 1190 .L91: - 977:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** { - 1191 .loc 1 977 0 - 1192 0096 A369 ldr r3, [r4, #24] - 1193 0098 002B cmp r3, #0 - 1194 009a 0DD1 bne .L94 - 980:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** } - 1195 .loc 1 980 0 - 1196 009c 2368 ldr r3, [r4] - 1197 009e 0C22 movs r2, #12 - 1198 00a0 1A60 str r2, [r3] - 984:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** } - 1199 .loc 1 984 0 - 1200 00a2 0020 movs r0, #0 - 1201 00a4 D8E7 b .L86 - 1202 .L92: - 966:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** - 1203 .loc 1 966 0 - 1204 00a6 636C ldr r3, [r4, #68] - 1205 00a8 2022 movs r2, #32 - 1206 00aa 1343 orrs r3, r2 - 1207 00ac 6364 str r3, [r4, #68] - 969:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** } - 1208 .loc 1 969 0 - 1209 00ae A36C ldr r3, [r4, #72] - 1210 00b0 1F3A subs r2, r2, #31 - 1211 00b2 1343 orrs r3, r2 - 1212 00b4 A364 str r3, [r4, #72] - 1213 00b6 EEE7 b .L91 - 1214 .L94: - 984:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** } - 1215 .loc 1 984 0 - 1216 00b8 0020 movs r0, #0 - 1217 00ba CDE7 b .L86 - 1218 .L98: - 1219 .align 2 - 1220 .L97: - 1221 00bc FEFEFFFF .word -258 - 1222 .cfi_endproc - 1223 .LFE43: - 1225 .section .text.HAL_ADC_PollForEvent,"ax",%progbits - 1226 .align 1 - 1227 .global HAL_ADC_PollForEvent - 1228 .syntax unified - 1229 .code 16 - 1230 .thumb_func - 1231 .fpu softvfp - 1233 HAL_ADC_PollForEvent: - 1234 .LFB44: - 998:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** uint32_t tickstart=0; - 1235 .loc 1 998 0 - 1236 .cfi_startproc - 1237 @ args = 0, pretend = 0, frame = 0 - 1238 @ frame_needed = 0, uses_anonymous_args = 0 - ARM GAS /tmp/ccEKYEFi.s page 62 - - - 1239 .LVL100: - 1240 0000 F8B5 push {r3, r4, r5, r6, r7, lr} - 1241 .LCFI9: - 1242 .cfi_def_cfa_offset 24 - 1243 .cfi_offset 3, -24 - 1244 .cfi_offset 4, -20 - 1245 .cfi_offset 5, -16 - 1246 .cfi_offset 6, -12 - 1247 .cfi_offset 7, -8 - 1248 .cfi_offset 14, -4 - 1249 0002 0500 movs r5, r0 - 1250 0004 0C00 movs r4, r1 - 1251 0006 1600 movs r6, r2 - 1252 .LVL101: -1006:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** - 1253 .loc 1 1006 0 - 1254 0008 FFF7FEFF bl HAL_GetTick - 1255 .LVL102: - 1256 000c 0700 movs r7, r0 - 1257 .LVL103: - 1258 .L101: -1009:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** { - 1259 .loc 1 1009 0 - 1260 000e 2A68 ldr r2, [r5] - 1261 0010 1368 ldr r3, [r2] - 1262 0012 2340 ands r3, r4 - 1263 0014 A342 cmp r3, r4 - 1264 0016 11D0 beq .L109 -1012:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** { - 1265 .loc 1 1012 0 - 1266 0018 731C adds r3, r6, #1 - 1267 001a F8D0 beq .L101 -1014:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** { - 1268 .loc 1 1014 0 - 1269 001c 002E cmp r6, #0 - 1270 001e 04D0 beq .L102 -1014:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** { - 1271 .loc 1 1014 0 is_stmt 0 discriminator 1 - 1272 0020 FFF7FEFF bl HAL_GetTick - 1273 .LVL104: - 1274 0024 C01B subs r0, r0, r7 - 1275 0026 B042 cmp r0, r6 - 1276 0028 F1D9 bls .L101 - 1277 .L102: -1017:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** - 1278 .loc 1 1017 0 is_stmt 1 - 1279 002a 6B6C ldr r3, [r5, #68] - 1280 002c 0422 movs r2, #4 - 1281 002e 1343 orrs r3, r2 - 1282 0030 6B64 str r3, [r5, #68] -1020:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** - 1283 .loc 1 1020 0 - 1284 0032 4023 movs r3, #64 - 1285 0034 0022 movs r2, #0 - 1286 0036 EA54 strb r2, [r5, r3] -1022:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** } - 1287 .loc 1 1022 0 - ARM GAS /tmp/ccEKYEFi.s page 63 - - - 1288 0038 0320 movs r0, #3 - 1289 003a 07E0 b .L103 - 1290 .L109: -1027:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** { - 1291 .loc 1 1027 0 - 1292 003c 802C cmp r4, #128 - 1293 003e 06D0 beq .L110 -1044:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** { - 1294 .loc 1 1044 0 - 1295 0040 6B6B ldr r3, [r5, #52] - 1296 0042 012B cmp r3, #1 - 1297 0044 0CD0 beq .L111 - 1298 .L107: -1054:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** break; - 1299 .loc 1 1054 0 - 1300 0046 1023 movs r3, #16 - 1301 0048 1360 str r3, [r2] -1059:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** } - 1302 .loc 1 1059 0 - 1303 004a 0020 movs r0, #0 - 1304 .L103: -1060:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** - 1305 .loc 1 1060 0 - 1306 @ sp needed - 1307 .LVL105: - 1308 .LVL106: - 1309 .LVL107: - 1310 .LVL108: - 1311 004c F8BD pop {r3, r4, r5, r6, r7, pc} - 1312 .LVL109: - 1313 .L110: -1032:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** - 1314 .loc 1 1032 0 - 1315 004e 696C ldr r1, [r5, #68] - 1316 0050 8023 movs r3, #128 - 1317 0052 5B02 lsls r3, r3, #9 - 1318 0054 0B43 orrs r3, r1 - 1319 0056 6B64 str r3, [r5, #68] -1035:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** break; - 1320 .loc 1 1035 0 - 1321 0058 8023 movs r3, #128 - 1322 005a 1360 str r3, [r2] -1059:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** } - 1323 .loc 1 1059 0 - 1324 005c 0020 movs r0, #0 -1036:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** - 1325 .loc 1 1036 0 - 1326 005e F5E7 b .L103 - 1327 .L111: -1047:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** - 1328 .loc 1 1047 0 - 1329 0060 696C ldr r1, [r5, #68] - 1330 0062 8023 movs r3, #128 - 1331 0064 DB00 lsls r3, r3, #3 - 1332 0066 0B43 orrs r3, r1 - 1333 0068 6B64 str r3, [r5, #68] -1050:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** } - ARM GAS /tmp/ccEKYEFi.s page 64 - - - 1334 .loc 1 1050 0 - 1335 006a AB6C ldr r3, [r5, #72] - 1336 006c 0221 movs r1, #2 - 1337 006e 0B43 orrs r3, r1 - 1338 0070 AB64 str r3, [r5, #72] - 1339 0072 E8E7 b .L107 - 1340 .cfi_endproc - 1341 .LFE44: - 1343 .section .text.HAL_ADC_Start_IT,"ax",%progbits - 1344 .align 1 - 1345 .global HAL_ADC_Start_IT - 1346 .syntax unified - 1347 .code 16 - 1348 .thumb_func - 1349 .fpu softvfp - 1351 HAL_ADC_Start_IT: - 1352 .LFB45: -1074:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** HAL_StatusTypeDef tmp_hal_status = HAL_OK; - 1353 .loc 1 1074 0 - 1354 .cfi_startproc - 1355 @ args = 0, pretend = 0, frame = 0 - 1356 @ frame_needed = 0, uses_anonymous_args = 0 - 1357 .LVL110: - 1358 0000 10B5 push {r4, lr} - 1359 .LCFI10: - 1360 .cfi_def_cfa_offset 8 - 1361 .cfi_offset 4, -8 - 1362 .cfi_offset 14, -4 - 1363 0002 0400 movs r4, r0 - 1364 .LVL111: -1081:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** { - 1365 .loc 1 1081 0 - 1366 0004 0368 ldr r3, [r0] - 1367 0006 9B68 ldr r3, [r3, #8] - 1368 0008 5B07 lsls r3, r3, #29 - 1369 000a 36D4 bmi .L118 -1084:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** - 1370 .loc 1 1084 0 - 1371 000c 4023 movs r3, #64 - 1372 000e C35C ldrb r3, [r0, r3] - 1373 0010 012B cmp r3, #1 - 1374 0012 34D0 beq .L119 -1084:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** - 1375 .loc 1 1084 0 is_stmt 0 discriminator 2 - 1376 0014 4023 movs r3, #64 - 1377 0016 0122 movs r2, #1 - 1378 0018 C254 strb r2, [r0, r3] -1089:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** { - 1379 .loc 1 1089 0 is_stmt 1 discriminator 2 - 1380 001a C369 ldr r3, [r0, #28] - 1381 001c 012B cmp r3, #1 - 1382 001e 21D1 bne .L122 -1075:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** - 1383 .loc 1 1075 0 - 1384 0020 0020 movs r0, #0 - 1385 .LVL112: - 1386 .L114: - ARM GAS /tmp/ccEKYEFi.s page 65 - - -1100:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** HAL_ADC_STATE_READY | HAL_ADC_STATE_REG_EOC | HAL_ADC_STATE_REG_OVR | HAL_A - 1387 .loc 1 1100 0 - 1388 0022 636C ldr r3, [r4, #68] - 1389 0024 174A ldr r2, .L123 - 1390 0026 1A40 ands r2, r3 - 1391 0028 8023 movs r3, #128 - 1392 002a 5B00 lsls r3, r3, #1 - 1393 002c 1343 orrs r3, r2 - 1394 002e 6364 str r3, [r4, #68] -1105:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** - 1395 .loc 1 1105 0 - 1396 0030 0023 movs r3, #0 - 1397 0032 A364 str r3, [r4, #72] -1110:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** - 1398 .loc 1 1110 0 - 1399 0034 4022 movs r2, #64 - 1400 0036 A354 strb r3, [r4, r2] -1115:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** - 1401 .loc 1 1115 0 - 1402 0038 2368 ldr r3, [r4] - 1403 003a 243A subs r2, r2, #36 - 1404 003c 1A60 str r2, [r3] -1119:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** { - 1405 .loc 1 1119 0 - 1406 003e 6369 ldr r3, [r4, #20] - 1407 0040 082B cmp r3, #8 - 1408 0042 14D1 bne .L121 -1122:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** __HAL_ADC_ENABLE_IT(hadc, (ADC_IT_EOS | ADC_IT_OVR)); - 1409 .loc 1 1122 0 - 1410 0044 2268 ldr r2, [r4] - 1411 0046 5368 ldr r3, [r2, #4] - 1412 0048 0421 movs r1, #4 - 1413 004a 8B43 bics r3, r1 - 1414 004c 5360 str r3, [r2, #4] -1123:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** break; - 1415 .loc 1 1123 0 - 1416 004e 2268 ldr r2, [r4] - 1417 0050 5368 ldr r3, [r2, #4] - 1418 0052 1431 adds r1, r1, #20 - 1419 0054 0B43 orrs r3, r1 - 1420 0056 5360 str r3, [r2, #4] - 1421 .L117: -1135:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** } - 1422 .loc 1 1135 0 - 1423 0058 2268 ldr r2, [r4] - 1424 005a 9368 ldr r3, [r2, #8] - 1425 005c 0421 movs r1, #4 - 1426 005e 0B43 orrs r3, r1 - 1427 0060 9360 str r3, [r2, #8] - 1428 .L113: -1145:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** - 1429 .loc 1 1145 0 - 1430 @ sp needed - 1431 .LVL113: - 1432 0062 10BD pop {r4, pc} - 1433 .LVL114: - 1434 .L122: - ARM GAS /tmp/ccEKYEFi.s page 66 - - -1091:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** } - 1435 .loc 1 1091 0 - 1436 0064 FFF7FEFF bl ADC_Enable - 1437 .LVL115: -1095:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** { - 1438 .loc 1 1095 0 - 1439 0068 0028 cmp r0, #0 - 1440 006a DAD0 beq .L114 - 1441 006c F9E7 b .L113 - 1442 .LVL116: - 1443 .L121: -1127:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** break; - 1444 .loc 1 1127 0 - 1445 006e 2268 ldr r2, [r4] - 1446 0070 5368 ldr r3, [r2, #4] - 1447 0072 1C21 movs r1, #28 - 1448 0074 0B43 orrs r3, r1 - 1449 0076 5360 str r3, [r2, #4] -1128:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** } - 1450 .loc 1 1128 0 - 1451 0078 EEE7 b .L117 - 1452 .LVL117: - 1453 .L118: -1140:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** } - 1454 .loc 1 1140 0 - 1455 007a 0220 movs r0, #2 - 1456 .LVL118: - 1457 007c F1E7 b .L113 - 1458 .LVL119: - 1459 .L119: -1084:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** - 1460 .loc 1 1084 0 - 1461 007e 0220 movs r0, #2 - 1462 .LVL120: - 1463 0080 EFE7 b .L113 - 1464 .L124: - 1465 0082 C046 .align 2 - 1466 .L123: - 1467 0084 FEF0FFFF .word -3842 - 1468 .cfi_endproc - 1469 .LFE45: - 1471 .section .text.HAL_ADC_Stop_IT,"ax",%progbits - 1472 .align 1 - 1473 .global HAL_ADC_Stop_IT - 1474 .syntax unified - 1475 .code 16 - 1476 .thumb_func - 1477 .fpu softvfp - 1479 HAL_ADC_Stop_IT: - 1480 .LFB46: -1155:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** HAL_StatusTypeDef tmp_hal_status = HAL_OK; - 1481 .loc 1 1155 0 - 1482 .cfi_startproc - 1483 @ args = 0, pretend = 0, frame = 0 - 1484 @ frame_needed = 0, uses_anonymous_args = 0 - 1485 .LVL121: - 1486 0000 10B5 push {r4, lr} - ARM GAS /tmp/ccEKYEFi.s page 67 - - - 1487 .LCFI11: - 1488 .cfi_def_cfa_offset 8 - 1489 .cfi_offset 4, -8 - 1490 .cfi_offset 14, -4 - 1491 0002 0400 movs r4, r0 - 1492 .LVL122: -1162:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** - 1493 .loc 1 1162 0 - 1494 0004 4023 movs r3, #64 - 1495 0006 C35C ldrb r3, [r0, r3] - 1496 0008 012B cmp r3, #1 - 1497 000a 1CD0 beq .L128 -1162:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** - 1498 .loc 1 1162 0 is_stmt 0 discriminator 2 - 1499 000c 4023 movs r3, #64 - 1500 000e 0122 movs r2, #1 - 1501 0010 C254 strb r2, [r0, r3] -1165:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** - 1502 .loc 1 1165 0 is_stmt 1 discriminator 2 - 1503 0012 FFF7FEFF bl ADC_ConversionStop - 1504 .LVL123: -1168:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** { - 1505 .loc 1 1168 0 discriminator 2 - 1506 0016 0028 cmp r0, #0 - 1507 0018 03D0 beq .L129 - 1508 .LVL124: - 1509 .L127: -1188:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** - 1510 .loc 1 1188 0 - 1511 001a 4023 movs r3, #64 - 1512 001c 0022 movs r2, #0 - 1513 001e E254 strb r2, [r4, r3] - 1514 .LVL125: - 1515 .L126: -1192:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** - 1516 .loc 1 1192 0 - 1517 @ sp needed - 1518 .LVL126: - 1519 0020 10BD pop {r4, pc} - 1520 .LVL127: - 1521 .L129: -1172:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** - 1522 .loc 1 1172 0 - 1523 0022 2268 ldr r2, [r4] - 1524 0024 5368 ldr r3, [r2, #4] - 1525 0026 1C21 movs r1, #28 - 1526 0028 8B43 bics r3, r1 - 1527 002a 5360 str r3, [r2, #4] -1175:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** - 1528 .loc 1 1175 0 - 1529 002c 2000 movs r0, r4 - 1530 .LVL128: - 1531 002e FFF7FEFF bl ADC_Disable - 1532 .LVL129: -1178:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** { - 1533 .loc 1 1178 0 - 1534 0032 0028 cmp r0, #0 - ARM GAS /tmp/ccEKYEFi.s page 68 - - - 1535 0034 F1D1 bne .L127 -1181:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** HAL_ADC_STATE_REG_BUSY, - 1536 .loc 1 1181 0 - 1537 0036 636C ldr r3, [r4, #68] - 1538 0038 044A ldr r2, .L130 - 1539 003a 1340 ands r3, r2 - 1540 003c 0432 adds r2, r2, #4 - 1541 003e FF32 adds r2, r2, #255 - 1542 0040 1343 orrs r3, r2 - 1543 0042 6364 str r3, [r4, #68] - 1544 0044 E9E7 b .L127 - 1545 .LVL130: - 1546 .L128: -1162:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** - 1547 .loc 1 1162 0 - 1548 0046 0220 movs r0, #2 - 1549 .LVL131: - 1550 0048 EAE7 b .L126 - 1551 .L131: - 1552 004a C046 .align 2 - 1553 .L130: - 1554 004c FEFEFFFF .word -258 - 1555 .cfi_endproc - 1556 .LFE46: - 1558 .section .text.HAL_ADC_Start_DMA,"ax",%progbits - 1559 .align 1 - 1560 .global HAL_ADC_Start_DMA - 1561 .syntax unified - 1562 .code 16 - 1563 .thumb_func - 1564 .fpu softvfp - 1566 HAL_ADC_Start_DMA: - 1567 .LFB47: -1208:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** HAL_StatusTypeDef tmp_hal_status = HAL_OK; - 1568 .loc 1 1208 0 - 1569 .cfi_startproc - 1570 @ args = 0, pretend = 0, frame = 0 - 1571 @ frame_needed = 0, uses_anonymous_args = 0 - 1572 .LVL132: - 1573 0000 F8B5 push {r3, r4, r5, r6, r7, lr} - 1574 .LCFI12: - 1575 .cfi_def_cfa_offset 24 - 1576 .cfi_offset 3, -24 - 1577 .cfi_offset 4, -20 - 1578 .cfi_offset 5, -16 - 1579 .cfi_offset 6, -12 - 1580 .cfi_offset 7, -8 - 1581 .cfi_offset 14, -4 - 1582 0002 0400 movs r4, r0 - 1583 0004 0E00 movs r6, r1 - 1584 0006 1700 movs r7, r2 - 1585 .LVL133: -1215:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** { - 1586 .loc 1 1215 0 - 1587 0008 0368 ldr r3, [r0] - 1588 000a 9B68 ldr r3, [r3, #8] - 1589 000c 5B07 lsls r3, r3, #29 - ARM GAS /tmp/ccEKYEFi.s page 69 - - - 1590 000e 3ED4 bmi .L135 -1218:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** - 1591 .loc 1 1218 0 - 1592 0010 4023 movs r3, #64 - 1593 0012 C35C ldrb r3, [r0, r3] - 1594 0014 012B cmp r3, #1 - 1595 0016 3CD0 beq .L136 -1218:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** - 1596 .loc 1 1218 0 is_stmt 0 discriminator 2 - 1597 0018 4023 movs r3, #64 - 1598 001a 0122 movs r2, #1 - 1599 .LVL134: - 1600 001c C254 strb r2, [r0, r3] -1223:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** { - 1601 .loc 1 1223 0 is_stmt 1 discriminator 2 - 1602 001e C369 ldr r3, [r0, #28] - 1603 0020 012B cmp r3, #1 - 1604 0022 32D0 beq .L137 -1225:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** } - 1605 .loc 1 1225 0 - 1606 0024 FFF7FEFF bl ADC_Enable - 1607 .LVL135: - 1608 0028 051E subs r5, r0, #0 - 1609 .LVL136: -1229:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** { - 1610 .loc 1 1229 0 - 1611 002a 2CD1 bne .L133 - 1612 .LVL137: - 1613 .L134: -1234:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** HAL_ADC_STATE_READY | HAL_ADC_STATE_REG_EOC | HAL_ADC_STATE_REG_OVR | HAL_A - 1614 .loc 1 1234 0 - 1615 002c 636C ldr r3, [r4, #68] - 1616 002e 1A4A ldr r2, .L138 - 1617 0030 1A40 ands r2, r3 - 1618 0032 8023 movs r3, #128 - 1619 0034 5B00 lsls r3, r3, #1 - 1620 0036 1343 orrs r3, r2 - 1621 0038 6364 str r3, [r4, #68] -1239:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** - 1622 .loc 1 1239 0 - 1623 003a 0023 movs r3, #0 - 1624 003c A364 str r3, [r4, #72] -1244:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** - 1625 .loc 1 1244 0 - 1626 003e 4022 movs r2, #64 - 1627 0040 A354 strb r3, [r4, r2] -1247:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** - 1628 .loc 1 1247 0 - 1629 0042 E36B ldr r3, [r4, #60] - 1630 0044 154A ldr r2, .L138+4 - 1631 0046 9A62 str r2, [r3, #40] -1250:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** - 1632 .loc 1 1250 0 - 1633 0048 E36B ldr r3, [r4, #60] - 1634 004a 154A ldr r2, .L138+8 - 1635 004c DA62 str r2, [r3, #44] -1253:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** - ARM GAS /tmp/ccEKYEFi.s page 70 - - - 1636 .loc 1 1253 0 - 1637 004e E36B ldr r3, [r4, #60] - 1638 0050 144A ldr r2, .L138+12 - 1639 0052 1A63 str r2, [r3, #48] -1262:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** - 1640 .loc 1 1262 0 - 1641 0054 2368 ldr r3, [r4] - 1642 0056 1C22 movs r2, #28 - 1643 0058 1A60 str r2, [r3] -1265:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** - 1644 .loc 1 1265 0 - 1645 005a 2268 ldr r2, [r4] - 1646 005c 5368 ldr r3, [r2, #4] - 1647 005e 1021 movs r1, #16 - 1648 0060 0B43 orrs r3, r1 - 1649 0062 5360 str r3, [r2, #4] -1268:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** - 1650 .loc 1 1268 0 - 1651 0064 2268 ldr r2, [r4] - 1652 0066 D368 ldr r3, [r2, #12] - 1653 0068 0F39 subs r1, r1, #15 - 1654 006a 0B43 orrs r3, r1 - 1655 006c D360 str r3, [r2, #12] -1271:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** - 1656 .loc 1 1271 0 - 1657 006e 2168 ldr r1, [r4] - 1658 0070 4031 adds r1, r1, #64 - 1659 0072 3B00 movs r3, r7 - 1660 0074 3200 movs r2, r6 - 1661 0076 E06B ldr r0, [r4, #60] - 1662 0078 FFF7FEFF bl HAL_DMA_Start_IT - 1663 .LVL138: -1277:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** } - 1664 .loc 1 1277 0 - 1665 007c 2268 ldr r2, [r4] - 1666 007e 9368 ldr r3, [r2, #8] - 1667 0080 0421 movs r1, #4 - 1668 0082 0B43 orrs r3, r1 - 1669 0084 9360 str r3, [r2, #8] - 1670 .L133: -1287:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** - 1671 .loc 1 1287 0 - 1672 0086 2800 movs r0, r5 - 1673 @ sp needed - 1674 .LVL139: - 1675 .LVL140: - 1676 .LVL141: - 1677 0088 F8BD pop {r3, r4, r5, r6, r7, pc} - 1678 .LVL142: - 1679 .L137: -1209:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** - 1680 .loc 1 1209 0 - 1681 008a 0025 movs r5, #0 - 1682 008c CEE7 b .L134 - 1683 .LVL143: - 1684 .L135: -1282:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** } - ARM GAS /tmp/ccEKYEFi.s page 71 - - - 1685 .loc 1 1282 0 - 1686 008e 0225 movs r5, #2 - 1687 0090 F9E7 b .L133 - 1688 .L136: -1218:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** - 1689 .loc 1 1218 0 - 1690 0092 0225 movs r5, #2 - 1691 0094 F7E7 b .L133 - 1692 .L139: - 1693 0096 C046 .align 2 - 1694 .L138: - 1695 0098 FEF0FFFF .word -3842 - 1696 009c 00000000 .word ADC_DMAConvCplt - 1697 00a0 00000000 .word ADC_DMAHalfConvCplt - 1698 00a4 00000000 .word ADC_DMAError - 1699 .cfi_endproc - 1700 .LFE47: - 1702 .section .text.HAL_ADC_Stop_DMA,"ax",%progbits - 1703 .align 1 - 1704 .global HAL_ADC_Stop_DMA - 1705 .syntax unified - 1706 .code 16 - 1707 .thumb_func - 1708 .fpu softvfp - 1710 HAL_ADC_Stop_DMA: - 1711 .LFB48: -1297:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** HAL_StatusTypeDef tmp_hal_status = HAL_OK; - 1712 .loc 1 1297 0 - 1713 .cfi_startproc - 1714 @ args = 0, pretend = 0, frame = 0 - 1715 @ frame_needed = 0, uses_anonymous_args = 0 - 1716 .LVL144: - 1717 0000 70B5 push {r4, r5, r6, lr} - 1718 .LCFI13: - 1719 .cfi_def_cfa_offset 16 - 1720 .cfi_offset 4, -16 - 1721 .cfi_offset 5, -12 - 1722 .cfi_offset 6, -8 - 1723 .cfi_offset 14, -4 - 1724 0002 0500 movs r5, r0 - 1725 .LVL145: -1304:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** - 1726 .loc 1 1304 0 - 1727 0004 4023 movs r3, #64 - 1728 0006 C35C ldrb r3, [r0, r3] - 1729 0008 012B cmp r3, #1 - 1730 000a 32D0 beq .L146 -1304:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** - 1731 .loc 1 1304 0 is_stmt 0 discriminator 2 - 1732 000c 4023 movs r3, #64 - 1733 000e 0122 movs r2, #1 - 1734 0010 C254 strb r2, [r0, r3] -1307:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** - 1735 .loc 1 1307 0 is_stmt 1 discriminator 2 - 1736 0012 FFF7FEFF bl ADC_ConversionStop - 1737 .LVL146: - 1738 0016 041E subs r4, r0, #0 - ARM GAS /tmp/ccEKYEFi.s page 72 - - - 1739 .LVL147: -1310:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** { - 1740 .loc 1 1310 0 discriminator 2 - 1741 0018 04D0 beq .L147 - 1742 .LVL148: - 1743 .L142: -1353:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** - 1744 .loc 1 1353 0 - 1745 001a 4023 movs r3, #64 - 1746 001c 0022 movs r2, #0 - 1747 001e EA54 strb r2, [r5, r3] - 1748 .LVL149: - 1749 .L141: -1357:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** - 1750 .loc 1 1357 0 - 1751 0020 2000 movs r0, r4 - 1752 @ sp needed - 1753 .LVL150: - 1754 0022 70BD pop {r4, r5, r6, pc} - 1755 .LVL151: - 1756 .L147: -1313:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** - 1757 .loc 1 1313 0 - 1758 0024 2A68 ldr r2, [r5] - 1759 0026 D368 ldr r3, [r2, #12] - 1760 0028 0121 movs r1, #1 - 1761 002a 8B43 bics r3, r1 - 1762 002c D360 str r3, [r2, #12] -1317:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** - 1763 .loc 1 1317 0 - 1764 002e E86B ldr r0, [r5, #60] - 1765 .LVL152: - 1766 0030 FFF7FEFF bl HAL_DMA_Abort - 1767 .LVL153: - 1768 0034 041E subs r4, r0, #0 - 1769 .LVL154: -1320:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** { - 1770 .loc 1 1320 0 - 1771 0036 03D0 beq .L143 -1323:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** } - 1772 .loc 1 1323 0 - 1773 0038 6B6C ldr r3, [r5, #68] - 1774 003a 4022 movs r2, #64 - 1775 003c 1343 orrs r3, r2 - 1776 003e 6B64 str r3, [r5, #68] - 1777 .L143: -1327:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** - 1778 .loc 1 1327 0 - 1779 0040 2A68 ldr r2, [r5] - 1780 0042 5368 ldr r3, [r2, #4] - 1781 0044 1021 movs r1, #16 - 1782 0046 8B43 bics r3, r1 - 1783 0048 5360 str r3, [r2, #4] -1332:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** { - 1784 .loc 1 1332 0 - 1785 004a 002C cmp r4, #0 - 1786 004c 0DD1 bne .L144 - ARM GAS /tmp/ccEKYEFi.s page 73 - - -1334:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** } - 1787 .loc 1 1334 0 - 1788 004e 2800 movs r0, r5 - 1789 .LVL155: - 1790 0050 FFF7FEFF bl ADC_Disable - 1791 .LVL156: - 1792 0054 0400 movs r4, r0 - 1793 .LVL157: - 1794 .L145: -1342:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** { - 1795 .loc 1 1342 0 - 1796 0056 002C cmp r4, #0 - 1797 0058 DFD1 bne .L142 -1345:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** HAL_ADC_STATE_REG_BUSY, - 1798 .loc 1 1345 0 - 1799 005a 6B6C ldr r3, [r5, #68] - 1800 005c 064A ldr r2, .L148 - 1801 005e 1340 ands r3, r2 - 1802 0060 0432 adds r2, r2, #4 - 1803 0062 FF32 adds r2, r2, #255 - 1804 0064 1343 orrs r3, r2 - 1805 0066 6B64 str r3, [r5, #68] - 1806 0068 D7E7 b .L142 - 1807 .LVL158: - 1808 .L144: -1338:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** } - 1809 .loc 1 1338 0 - 1810 006a 2800 movs r0, r5 - 1811 .LVL159: - 1812 006c FFF7FEFF bl ADC_Disable - 1813 .LVL160: - 1814 0070 F1E7 b .L145 - 1815 .LVL161: - 1816 .L146: -1304:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** - 1817 .loc 1 1304 0 - 1818 0072 0224 movs r4, #2 - 1819 0074 D4E7 b .L141 - 1820 .L149: - 1821 0076 C046 .align 2 - 1822 .L148: - 1823 0078 FEFEFFFF .word -258 - 1824 .cfi_endproc - 1825 .LFE48: - 1827 .section .text.HAL_ADC_GetValue,"ax",%progbits - 1828 .align 1 - 1829 .global HAL_ADC_GetValue - 1830 .syntax unified - 1831 .code 16 - 1832 .thumb_func - 1833 .fpu softvfp - 1835 HAL_ADC_GetValue: - 1836 .LFB49: -1379:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** /* Check the parameters */ - 1837 .loc 1 1379 0 - 1838 .cfi_startproc - 1839 @ args = 0, pretend = 0, frame = 0 - ARM GAS /tmp/ccEKYEFi.s page 74 - - - 1840 @ frame_needed = 0, uses_anonymous_args = 0 - 1841 @ link register save eliminated. - 1842 .LVL162: -1387:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** } - 1843 .loc 1 1387 0 - 1844 0000 0368 ldr r3, [r0] - 1845 0002 186C ldr r0, [r3, #64] - 1846 .LVL163: -1388:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** - 1847 .loc 1 1388 0 - 1848 @ sp needed - 1849 0004 7047 bx lr - 1850 .cfi_endproc - 1851 .LFE49: - 1853 .section .text.HAL_ADC_ConvCpltCallback,"ax",%progbits - 1854 .align 1 - 1855 .weak HAL_ADC_ConvCpltCallback - 1856 .syntax unified - 1857 .code 16 - 1858 .thumb_func - 1859 .fpu softvfp - 1861 HAL_ADC_ConvCpltCallback: - 1862 .LFB51: -1512:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** /* Prevent unused argument(s) compilation warning */ - 1863 .loc 1 1512 0 - 1864 .cfi_startproc - 1865 @ args = 0, pretend = 0, frame = 0 - 1866 @ frame_needed = 0, uses_anonymous_args = 0 - 1867 @ link register save eliminated. - 1868 .LVL164: -1519:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** - 1869 .loc 1 1519 0 - 1870 @ sp needed - 1871 0000 7047 bx lr - 1872 .cfi_endproc - 1873 .LFE51: - 1875 .section .text.ADC_DMAConvCplt,"ax",%progbits - 1876 .align 1 - 1877 .syntax unified - 1878 .code 16 - 1879 .thumb_func - 1880 .fpu softvfp - 1882 ADC_DMAConvCplt: - 1883 .LFB62: -2076:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** -2077:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** -2078:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** /** -2079:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** * @brief DMA transfer complete callback. -2080:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** * @param hdma pointer to DMA handle. -2081:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** * @retval None -2082:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** */ -2083:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** static void ADC_DMAConvCplt(DMA_HandleTypeDef *hdma) -2084:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** { - 1884 .loc 1 2084 0 - 1885 .cfi_startproc - 1886 @ args = 0, pretend = 0, frame = 0 - 1887 @ frame_needed = 0, uses_anonymous_args = 0 - ARM GAS /tmp/ccEKYEFi.s page 75 - - - 1888 .LVL165: - 1889 0000 10B5 push {r4, lr} - 1890 .LCFI14: - 1891 .cfi_def_cfa_offset 8 - 1892 .cfi_offset 4, -8 - 1893 .cfi_offset 14, -4 -2085:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** /* Retrieve ADC handle corresponding to current DMA handle */ -2086:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** ADC_HandleTypeDef* hadc = ( ADC_HandleTypeDef* )((DMA_HandleTypeDef* )hdma)->Parent; - 1894 .loc 1 2086 0 - 1895 0002 436A ldr r3, [r0, #36] - 1896 .LVL166: -2087:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** -2088:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** /* Update state machine on conversion status if not in error state */ -2089:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** if (HAL_IS_BIT_CLR(hadc->State, HAL_ADC_STATE_ERROR_INTERNAL | HAL_ADC_STATE_ERROR_DMA)) - 1897 .loc 1 2089 0 - 1898 0004 5A6C ldr r2, [r3, #68] - 1899 0006 5021 movs r1, #80 - 1900 0008 1142 tst r1, r2 - 1901 000a 03D0 beq .L157 -2090:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** { -2091:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** /* Set ADC state */ -2092:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** SET_BIT(hadc->State, HAL_ADC_STATE_REG_EOC); -2093:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** -2094:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** /* Determine whether any further conversion upcoming on group regular */ -2095:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** /* by external trigger, continuous mode or scan sequence on going. */ -2096:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** if(ADC_IS_SOFTWARE_START_REGULAR(hadc) && -2097:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** (hadc->Init.ContinuousConvMode == DISABLE) ) -2098:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** { -2099:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** /* If End of Sequence is reached, disable interrupts */ -2100:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** if( __HAL_ADC_GET_FLAG(hadc, ADC_FLAG_EOS) ) -2101:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** { -2102:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** /* Allowed to modify bits ADC_IT_EOC/ADC_IT_EOS only if bit */ -2103:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** /* ADSTART==0 (no conversion on going) */ -2104:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** if (ADC_IS_CONVERSION_ONGOING_REGULAR(hadc) == RESET) -2105:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** { -2106:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** /* Disable ADC end of single conversion interrupt on group regular */ -2107:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** /* Note: Overrun interrupt was enabled with EOC interrupt in */ -2108:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** /* HAL_Start_IT(), but is not disabled here because can be used */ -2109:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** /* by overrun IRQ process below. */ -2110:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** __HAL_ADC_DISABLE_IT(hadc, ADC_IT_EOC | ADC_IT_EOS); -2111:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** -2112:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** /* Set ADC state */ -2113:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** ADC_STATE_CLR_SET(hadc->State, -2114:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** HAL_ADC_STATE_REG_BUSY, -2115:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** HAL_ADC_STATE_READY); -2116:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** } -2117:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** else -2118:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** { -2119:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** /* Change ADC state to error state */ -2120:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** SET_BIT(hadc->State, HAL_ADC_STATE_ERROR_CONFIG); -2121:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** -2122:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** /* Set ADC error code to ADC IP internal error */ -2123:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** SET_BIT(hadc->ErrorCode, HAL_ADC_ERROR_INTERNAL); -2124:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** } -2125:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** } -2126:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** } -2127:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** - ARM GAS /tmp/ccEKYEFi.s page 76 - - -2128:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** /* Conversion complete callback */ -2129:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** HAL_ADC_ConvCpltCallback(hadc); -2130:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** } -2131:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** else -2132:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** { -2133:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** /* Call DMA error callback */ -2134:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** hadc->DMA_Handle->XferErrorCallback(hdma); - 1902 .loc 1 2134 0 - 1903 000c DB6B ldr r3, [r3, #60] - 1904 .LVL167: - 1905 000e 1B6B ldr r3, [r3, #48] - 1906 0010 9847 blx r3 - 1907 .LVL168: - 1908 .L152: -2135:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** } -2136:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** -2137:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** } - 1909 .loc 1 2137 0 - 1910 @ sp needed - 1911 0012 10BD pop {r4, pc} - 1912 .LVL169: - 1913 .L157: -2092:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** - 1914 .loc 1 2092 0 - 1915 0014 596C ldr r1, [r3, #68] - 1916 0016 8022 movs r2, #128 - 1917 0018 9200 lsls r2, r2, #2 - 1918 001a 0A43 orrs r2, r1 - 1919 001c 5A64 str r2, [r3, #68] -2096:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** (hadc->Init.ContinuousConvMode == DISABLE) ) - 1920 .loc 1 2096 0 - 1921 001e 1A68 ldr r2, [r3] - 1922 0020 D068 ldr r0, [r2, #12] - 1923 .LVL170: - 1924 0022 C021 movs r1, #192 - 1925 0024 0901 lsls r1, r1, #4 - 1926 0026 0842 tst r0, r1 - 1927 0028 13D1 bne .L154 -2096:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** (hadc->Init.ContinuousConvMode == DISABLE) ) - 1928 .loc 1 2096 0 is_stmt 0 discriminator 1 - 1929 002a 196A ldr r1, [r3, #32] - 1930 002c 0029 cmp r1, #0 - 1931 002e 10D1 bne .L154 -2100:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** { - 1932 .loc 1 2100 0 is_stmt 1 - 1933 0030 1168 ldr r1, [r2] - 1934 0032 0907 lsls r1, r1, #28 - 1935 0034 0DD5 bpl .L154 -2104:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** { - 1936 .loc 1 2104 0 - 1937 0036 9168 ldr r1, [r2, #8] - 1938 0038 4907 lsls r1, r1, #29 - 1939 003a 0ED4 bmi .L155 -2110:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** - 1940 .loc 1 2110 0 - 1941 003c 5168 ldr r1, [r2, #4] - 1942 003e 0C20 movs r0, #12 - ARM GAS /tmp/ccEKYEFi.s page 77 - - - 1943 0040 8143 bics r1, r0 - 1944 0042 5160 str r1, [r2, #4] -2113:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** HAL_ADC_STATE_REG_BUSY, - 1945 .loc 1 2113 0 - 1946 0044 5A6C ldr r2, [r3, #68] - 1947 0046 0949 ldr r1, .L158 - 1948 0048 0A40 ands r2, r1 - 1949 004a 0431 adds r1, r1, #4 - 1950 004c FF31 adds r1, r1, #255 - 1951 004e 0A43 orrs r2, r1 - 1952 0050 5A64 str r2, [r3, #68] - 1953 .L154: -2129:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** } - 1954 .loc 1 2129 0 - 1955 0052 1800 movs r0, r3 - 1956 0054 FFF7FEFF bl HAL_ADC_ConvCpltCallback - 1957 .LVL171: - 1958 0058 DBE7 b .L152 - 1959 .LVL172: - 1960 .L155: -2120:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** - 1961 .loc 1 2120 0 - 1962 005a 5A6C ldr r2, [r3, #68] - 1963 005c 2021 movs r1, #32 - 1964 005e 0A43 orrs r2, r1 - 1965 0060 5A64 str r2, [r3, #68] -2123:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** } - 1966 .loc 1 2123 0 - 1967 0062 9A6C ldr r2, [r3, #72] - 1968 0064 1F39 subs r1, r1, #31 - 1969 0066 0A43 orrs r2, r1 - 1970 0068 9A64 str r2, [r3, #72] - 1971 006a F2E7 b .L154 - 1972 .L159: - 1973 .align 2 - 1974 .L158: - 1975 006c FEFEFFFF .word -258 - 1976 .cfi_endproc - 1977 .LFE62: - 1979 .section .text.HAL_ADC_ConvHalfCpltCallback,"ax",%progbits - 1980 .align 1 - 1981 .weak HAL_ADC_ConvHalfCpltCallback - 1982 .syntax unified - 1983 .code 16 - 1984 .thumb_func - 1985 .fpu softvfp - 1987 HAL_ADC_ConvHalfCpltCallback: - 1988 .LFB52: -1527:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** /* Prevent unused argument(s) compilation warning */ - 1989 .loc 1 1527 0 - 1990 .cfi_startproc - 1991 @ args = 0, pretend = 0, frame = 0 - 1992 @ frame_needed = 0, uses_anonymous_args = 0 - 1993 @ link register save eliminated. - 1994 .LVL173: -1534:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** - 1995 .loc 1 1534 0 - ARM GAS /tmp/ccEKYEFi.s page 78 - - - 1996 @ sp needed - 1997 0000 7047 bx lr - 1998 .cfi_endproc - 1999 .LFE52: - 2001 .section .text.ADC_DMAHalfConvCplt,"ax",%progbits - 2002 .align 1 - 2003 .syntax unified - 2004 .code 16 - 2005 .thumb_func - 2006 .fpu softvfp - 2008 ADC_DMAHalfConvCplt: - 2009 .LFB63: -2138:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** -2139:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** /** -2140:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** * @brief DMA half transfer complete callback. -2141:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** * @param hdma pointer to DMA handle. -2142:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** * @retval None -2143:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** */ -2144:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** static void ADC_DMAHalfConvCplt(DMA_HandleTypeDef *hdma) -2145:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** { - 2010 .loc 1 2145 0 - 2011 .cfi_startproc - 2012 @ args = 0, pretend = 0, frame = 0 - 2013 @ frame_needed = 0, uses_anonymous_args = 0 - 2014 .LVL174: - 2015 0000 10B5 push {r4, lr} - 2016 .LCFI15: - 2017 .cfi_def_cfa_offset 8 - 2018 .cfi_offset 4, -8 - 2019 .cfi_offset 14, -4 -2146:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** /* Retrieve ADC handle corresponding to current DMA handle */ -2147:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** ADC_HandleTypeDef* hadc = ( ADC_HandleTypeDef* )((DMA_HandleTypeDef* )hdma)->Parent; - 2020 .loc 1 2147 0 - 2021 0002 406A ldr r0, [r0, #36] - 2022 .LVL175: -2148:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** -2149:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** /* Half conversion callback */ -2150:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** HAL_ADC_ConvHalfCpltCallback(hadc); - 2023 .loc 1 2150 0 - 2024 0004 FFF7FEFF bl HAL_ADC_ConvHalfCpltCallback - 2025 .LVL176: -2151:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** } - 2026 .loc 1 2151 0 - 2027 @ sp needed - 2028 0008 10BD pop {r4, pc} - 2029 .cfi_endproc - 2030 .LFE63: - 2032 .section .text.HAL_ADC_LevelOutOfWindowCallback,"ax",%progbits - 2033 .align 1 - 2034 .weak HAL_ADC_LevelOutOfWindowCallback - 2035 .syntax unified - 2036 .code 16 - 2037 .thumb_func - 2038 .fpu softvfp - 2040 HAL_ADC_LevelOutOfWindowCallback: - 2041 .LFB53: -1542:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** /* Prevent unused argument(s) compilation warning */ - ARM GAS /tmp/ccEKYEFi.s page 79 - - - 2042 .loc 1 1542 0 - 2043 .cfi_startproc - 2044 @ args = 0, pretend = 0, frame = 0 - 2045 @ frame_needed = 0, uses_anonymous_args = 0 - 2046 @ link register save eliminated. - 2047 .LVL177: -1549:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** - 2048 .loc 1 1549 0 - 2049 @ sp needed - 2050 0000 7047 bx lr - 2051 .cfi_endproc - 2052 .LFE53: - 2054 .section .text.HAL_ADC_ErrorCallback,"ax",%progbits - 2055 .align 1 - 2056 .weak HAL_ADC_ErrorCallback - 2057 .syntax unified - 2058 .code 16 - 2059 .thumb_func - 2060 .fpu softvfp - 2062 HAL_ADC_ErrorCallback: - 2063 .LFB54: -1558:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** /* Prevent unused argument(s) compilation warning */ - 2064 .loc 1 1558 0 - 2065 .cfi_startproc - 2066 @ args = 0, pretend = 0, frame = 0 - 2067 @ frame_needed = 0, uses_anonymous_args = 0 - 2068 @ link register save eliminated. - 2069 .LVL178: -1565:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** - 2070 .loc 1 1565 0 - 2071 @ sp needed - 2072 0000 7047 bx lr - 2073 .cfi_endproc - 2074 .LFE54: - 2076 .section .text.ADC_DMAError,"ax",%progbits - 2077 .align 1 - 2078 .syntax unified - 2079 .code 16 - 2080 .thumb_func - 2081 .fpu softvfp - 2083 ADC_DMAError: - 2084 .LFB64: -2152:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** -2153:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** /** -2154:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** * @brief DMA error callback -2155:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** * @param hdma pointer to DMA handle. -2156:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** * @retval None -2157:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** */ -2158:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** static void ADC_DMAError(DMA_HandleTypeDef *hdma) -2159:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** { - 2085 .loc 1 2159 0 - 2086 .cfi_startproc - 2087 @ args = 0, pretend = 0, frame = 0 - 2088 @ frame_needed = 0, uses_anonymous_args = 0 - 2089 .LVL179: - 2090 0000 10B5 push {r4, lr} - 2091 .LCFI16: - ARM GAS /tmp/ccEKYEFi.s page 80 - - - 2092 .cfi_def_cfa_offset 8 - 2093 .cfi_offset 4, -8 - 2094 .cfi_offset 14, -4 -2160:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** /* Retrieve ADC handle corresponding to current DMA handle */ -2161:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** ADC_HandleTypeDef* hadc = ( ADC_HandleTypeDef* )((DMA_HandleTypeDef* )hdma)->Parent; - 2095 .loc 1 2161 0 - 2096 0002 406A ldr r0, [r0, #36] - 2097 .LVL180: -2162:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** -2163:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** /* Set ADC state */ -2164:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** SET_BIT(hadc->State, HAL_ADC_STATE_ERROR_DMA); - 2098 .loc 1 2164 0 - 2099 0004 436C ldr r3, [r0, #68] - 2100 0006 4022 movs r2, #64 - 2101 0008 1343 orrs r3, r2 - 2102 000a 4364 str r3, [r0, #68] -2165:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** -2166:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** /* Set ADC error code to DMA error */ -2167:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** SET_BIT(hadc->ErrorCode, HAL_ADC_ERROR_DMA); - 2103 .loc 1 2167 0 - 2104 000c 836C ldr r3, [r0, #72] - 2105 000e 3C3A subs r2, r2, #60 - 2106 0010 1343 orrs r3, r2 - 2107 0012 8364 str r3, [r0, #72] -2168:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** -2169:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** /* Error callback */ -2170:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** HAL_ADC_ErrorCallback(hadc); - 2108 .loc 1 2170 0 - 2109 0014 FFF7FEFF bl HAL_ADC_ErrorCallback - 2110 .LVL181: -2171:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** } - 2111 .loc 1 2171 0 - 2112 @ sp needed - 2113 0018 10BD pop {r4, pc} - 2114 .cfi_endproc - 2115 .LFE64: - 2117 .section .text.HAL_ADC_IRQHandler,"ax",%progbits - 2118 .align 1 - 2119 .global HAL_ADC_IRQHandler - 2120 .syntax unified - 2121 .code 16 - 2122 .thumb_func - 2123 .fpu softvfp - 2125 HAL_ADC_IRQHandler: - 2126 .LFB50: -1396:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** /* Check the parameters */ - 2127 .loc 1 1396 0 - 2128 .cfi_startproc - 2129 @ args = 0, pretend = 0, frame = 0 - 2130 @ frame_needed = 0, uses_anonymous_args = 0 - 2131 .LVL182: - 2132 0000 10B5 push {r4, lr} - 2133 .LCFI17: - 2134 .cfi_def_cfa_offset 8 - 2135 .cfi_offset 4, -8 - 2136 .cfi_offset 14, -4 - 2137 0002 0400 movs r4, r0 - ARM GAS /tmp/ccEKYEFi.s page 81 - - -1403:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** (__HAL_ADC_GET_FLAG(hadc, ADC_FLAG_EOS) && __HAL_ADC_GET_IT_SOURCE(hadc, ADC_IT_EOS)) ) - 2138 .loc 1 1403 0 - 2139 0004 0368 ldr r3, [r0] - 2140 0006 1A68 ldr r2, [r3] - 2141 0008 5207 lsls r2, r2, #29 - 2142 000a 02D5 bpl .L166 -1403:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** (__HAL_ADC_GET_FLAG(hadc, ADC_FLAG_EOS) && __HAL_ADC_GET_IT_SOURCE(hadc, ADC_IT_EOS)) ) - 2143 .loc 1 1403 0 is_stmt 0 discriminator 1 - 2144 000c 5A68 ldr r2, [r3, #4] - 2145 000e 5207 lsls r2, r2, #29 - 2146 0010 05D4 bmi .L167 - 2147 .L166: -1404:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** { - 2148 .loc 1 1404 0 is_stmt 1 discriminator 3 - 2149 0012 1A68 ldr r2, [r3] -1403:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** (__HAL_ADC_GET_FLAG(hadc, ADC_FLAG_EOS) && __HAL_ADC_GET_IT_SOURCE(hadc, ADC_IT_EOS)) ) - 2150 .loc 1 1403 0 discriminator 3 - 2151 0014 1207 lsls r2, r2, #28 - 2152 0016 29D5 bpl .L168 -1404:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** { - 2153 .loc 1 1404 0 - 2154 0018 5A68 ldr r2, [r3, #4] - 2155 001a 1207 lsls r2, r2, #28 - 2156 001c 26D5 bpl .L168 - 2157 .L167: -1407:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** { - 2158 .loc 1 1407 0 - 2159 001e 626C ldr r2, [r4, #68] - 2160 0020 D206 lsls r2, r2, #27 - 2161 0022 04D4 bmi .L169 -1410:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** } - 2162 .loc 1 1410 0 - 2163 0024 616C ldr r1, [r4, #68] - 2164 0026 8022 movs r2, #128 - 2165 0028 9200 lsls r2, r2, #2 - 2166 002a 0A43 orrs r2, r1 - 2167 002c 6264 str r2, [r4, #68] - 2168 .L169: -1415:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** (hadc->Init.ContinuousConvMode == DISABLE) ) - 2169 .loc 1 1415 0 - 2170 002e D968 ldr r1, [r3, #12] - 2171 0030 C022 movs r2, #192 - 2172 0032 1201 lsls r2, r2, #4 - 2173 0034 1142 tst r1, r2 - 2174 0036 13D1 bne .L170 -1415:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** (hadc->Init.ContinuousConvMode == DISABLE) ) - 2175 .loc 1 1415 0 is_stmt 0 discriminator 1 - 2176 0038 226A ldr r2, [r4, #32] - 2177 003a 002A cmp r2, #0 - 2178 003c 10D1 bne .L170 -1419:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** { - 2179 .loc 1 1419 0 is_stmt 1 - 2180 003e 1A68 ldr r2, [r3] - 2181 0040 1207 lsls r2, r2, #28 - 2182 0042 0DD5 bpl .L170 -1423:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** { - 2183 .loc 1 1423 0 - ARM GAS /tmp/ccEKYEFi.s page 82 - - - 2184 0044 9A68 ldr r2, [r3, #8] - 2185 0046 5207 lsls r2, r2, #29 - 2186 0048 31D4 bmi .L171 -1429:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** - 2187 .loc 1 1429 0 - 2188 004a 5A68 ldr r2, [r3, #4] - 2189 004c 0C21 movs r1, #12 - 2190 004e 8A43 bics r2, r1 - 2191 0050 5A60 str r2, [r3, #4] -1432:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** HAL_ADC_STATE_REG_BUSY, - 2192 .loc 1 1432 0 - 2193 0052 636C ldr r3, [r4, #68] - 2194 0054 204A ldr r2, .L177 - 2195 0056 1340 ands r3, r2 - 2196 0058 0432 adds r2, r2, #4 - 2197 005a FF32 adds r2, r2, #255 - 2198 005c 1343 orrs r3, r2 - 2199 005e 6364 str r3, [r4, #68] - 2200 .L170: -1451:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** - 2201 .loc 1 1451 0 - 2202 0060 2000 movs r0, r4 - 2203 .LVL183: - 2204 0062 FFF7FEFF bl HAL_ADC_ConvCpltCallback - 2205 .LVL184: -1459:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** } - 2206 .loc 1 1459 0 - 2207 0066 2368 ldr r3, [r4] - 2208 0068 0C22 movs r2, #12 - 2209 006a 1A60 str r2, [r3] - 2210 .L168: -1463:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** { - 2211 .loc 1 1463 0 - 2212 006c 2368 ldr r3, [r4] - 2213 006e 1A68 ldr r2, [r3] - 2214 0070 1206 lsls r2, r2, #24 - 2215 0072 02D5 bpl .L172 -1463:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** { - 2216 .loc 1 1463 0 is_stmt 0 discriminator 1 - 2217 0074 5B68 ldr r3, [r3, #4] - 2218 0076 1B06 lsls r3, r3, #24 - 2219 0078 22D4 bmi .L176 - 2220 .L172: -1478:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** { - 2221 .loc 1 1478 0 is_stmt 1 - 2222 007a 2368 ldr r3, [r4] - 2223 007c 1A68 ldr r2, [r3] - 2224 007e D206 lsls r2, r2, #27 - 2225 0080 14D5 bpl .L165 -1478:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** { - 2226 .loc 1 1478 0 is_stmt 0 discriminator 1 - 2227 0082 5A68 ldr r2, [r3, #4] - 2228 0084 D206 lsls r2, r2, #27 - 2229 0086 11D5 bpl .L165 -1486:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** HAL_IS_BIT_SET(hadc->Instance->CFGR1, ADC_CFGR1_DMAEN) ) - 2230 .loc 1 1486 0 is_stmt 1 - 2231 0088 626B ldr r2, [r4, #52] - ARM GAS /tmp/ccEKYEFi.s page 83 - - - 2232 008a 012A cmp r2, #1 - 2233 008c 02D0 beq .L174 -1487:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** { - 2234 .loc 1 1487 0 discriminator 1 - 2235 008e DA68 ldr r2, [r3, #12] -1486:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** HAL_IS_BIT_SET(hadc->Instance->CFGR1, ADC_CFGR1_DMAEN) ) - 2236 .loc 1 1486 0 discriminator 1 - 2237 0090 D207 lsls r2, r2, #31 - 2238 0092 08D5 bpl .L175 - 2239 .L174: -1490:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** - 2240 .loc 1 1490 0 - 2241 0094 A26C ldr r2, [r4, #72] - 2242 0096 0221 movs r1, #2 - 2243 0098 0A43 orrs r2, r1 - 2244 009a A264 str r2, [r4, #72] -1493:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** - 2245 .loc 1 1493 0 - 2246 009c 1022 movs r2, #16 - 2247 009e 1A60 str r2, [r3] -1496:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** } - 2248 .loc 1 1496 0 - 2249 00a0 2000 movs r0, r4 - 2250 00a2 FFF7FEFF bl HAL_ADC_ErrorCallback - 2251 .LVL185: - 2252 .L175: -1500:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** } - 2253 .loc 1 1500 0 - 2254 00a6 2368 ldr r3, [r4] - 2255 00a8 1022 movs r2, #16 - 2256 00aa 1A60 str r2, [r3] - 2257 .L165: -1503:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** - 2258 .loc 1 1503 0 - 2259 @ sp needed - 2260 .LVL186: - 2261 00ac 10BD pop {r4, pc} - 2262 .LVL187: - 2263 .L171: -1439:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** - 2264 .loc 1 1439 0 - 2265 00ae 636C ldr r3, [r4, #68] - 2266 00b0 2022 movs r2, #32 - 2267 00b2 1343 orrs r3, r2 - 2268 00b4 6364 str r3, [r4, #68] -1442:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** } - 2269 .loc 1 1442 0 - 2270 00b6 A36C ldr r3, [r4, #72] - 2271 00b8 1F3A subs r2, r2, #31 - 2272 00ba 1343 orrs r3, r2 - 2273 00bc A364 str r3, [r4, #72] - 2274 00be CFE7 b .L170 - 2275 .LVL188: - 2276 .L176: -1466:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** - 2277 .loc 1 1466 0 - 2278 00c0 626C ldr r2, [r4, #68] - ARM GAS /tmp/ccEKYEFi.s page 84 - - - 2279 00c2 8023 movs r3, #128 - 2280 00c4 5B02 lsls r3, r3, #9 - 2281 00c6 1343 orrs r3, r2 - 2282 00c8 6364 str r3, [r4, #68] -1469:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** - 2283 .loc 1 1469 0 - 2284 00ca 2000 movs r0, r4 - 2285 00cc FFF7FEFF bl HAL_ADC_LevelOutOfWindowCallback - 2286 .LVL189: -1472:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** - 2287 .loc 1 1472 0 - 2288 00d0 2368 ldr r3, [r4] - 2289 00d2 8022 movs r2, #128 - 2290 00d4 1A60 str r2, [r3] - 2291 00d6 D0E7 b .L172 - 2292 .L178: - 2293 .align 2 - 2294 .L177: - 2295 00d8 FEFEFFFF .word -258 - 2296 .cfi_endproc - 2297 .LFE50: - 2299 .section .text.HAL_ADC_ConfigChannel,"ax",%progbits - 2300 .align 1 - 2301 .global HAL_ADC_ConfigChannel - 2302 .syntax unified - 2303 .code 16 - 2304 .thumb_func - 2305 .fpu softvfp - 2307 HAL_ADC_ConfigChannel: - 2308 .LFB55: -1612:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** HAL_StatusTypeDef tmp_hal_status = HAL_OK; - 2309 .loc 1 1612 0 - 2310 .cfi_startproc - 2311 @ args = 0, pretend = 0, frame = 8 - 2312 @ frame_needed = 0, uses_anonymous_args = 0 - 2313 .LVL190: - 2314 0000 30B5 push {r4, r5, lr} - 2315 .LCFI18: - 2316 .cfi_def_cfa_offset 12 - 2317 .cfi_offset 4, -12 - 2318 .cfi_offset 5, -8 - 2319 .cfi_offset 14, -4 - 2320 0002 83B0 sub sp, sp, #12 - 2321 .LCFI19: - 2322 .cfi_def_cfa_offset 24 - 2323 0004 0400 movs r4, r0 - 2324 .LVL191: -1614:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** - 2325 .loc 1 1614 0 - 2326 0006 0023 movs r3, #0 - 2327 0008 0193 str r3, [sp, #4] -1627:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** - 2328 .loc 1 1627 0 - 2329 000a 4033 adds r3, r3, #64 - 2330 000c C35C ldrb r3, [r0, r3] - 2331 000e 012B cmp r3, #1 - 2332 0010 00D1 bne .LCB2178 - ARM GAS /tmp/ccEKYEFi.s page 85 - - - 2333 0012 8AE0 b .L189 @long jump - 2334 .LCB2178: -1627:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** - 2335 .loc 1 1627 0 is_stmt 0 discriminator 2 - 2336 0014 4023 movs r3, #64 - 2337 0016 0122 movs r2, #1 - 2338 0018 C254 strb r2, [r0, r3] -1635:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** { - 2339 .loc 1 1635 0 is_stmt 1 discriminator 2 - 2340 001a 0368 ldr r3, [r0] - 2341 001c 9A68 ldr r2, [r3, #8] - 2342 001e 5207 lsls r2, r2, #29 - 2343 0020 75D4 bmi .L181 -1639:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** { - 2344 .loc 1 1639 0 - 2345 0022 434A ldr r2, .L200 - 2346 0024 4868 ldr r0, [r1, #4] - 2347 .LVL192: - 2348 0026 9042 cmp r0, r2 - 2349 0028 56D0 beq .L182 -1643:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** - 2350 .loc 1 1643 0 - 2351 002a 9A6A ldr r2, [r3, #40] - 2352 002c 0120 movs r0, #1 - 2353 002e 0D68 ldr r5, [r1] - 2354 0030 A840 lsls r0, r0, r5 - 2355 0032 0243 orrs r2, r0 - 2356 0034 9A62 str r2, [r3, #40] -1650:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** { - 2357 .loc 1 1650 0 - 2358 0036 A36B ldr r3, [r4, #56] - 2359 0038 8022 movs r2, #128 - 2360 003a 5205 lsls r2, r2, #21 - 2361 003c 9342 cmp r3, r2 - 2362 003e 1ED0 beq .L183 -1650:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** { - 2363 .loc 1 1650 0 is_stmt 0 discriminator 1 - 2364 0040 012B cmp r3, #1 - 2365 0042 1CD0 beq .L183 -1650:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** { - 2366 .loc 1 1650 0 discriminator 2 - 2367 0044 022B cmp r3, #2 - 2368 0046 1AD0 beq .L183 -1650:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** { - 2369 .loc 1 1650 0 discriminator 3 - 2370 0048 032B cmp r3, #3 - 2371 004a 18D0 beq .L183 -1650:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** { - 2372 .loc 1 1650 0 discriminator 4 - 2373 004c 042B cmp r3, #4 - 2374 004e 16D0 beq .L183 -1650:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** { - 2375 .loc 1 1650 0 discriminator 5 - 2376 0050 052B cmp r3, #5 - 2377 0052 14D0 beq .L183 -1650:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** { - 2378 .loc 1 1650 0 discriminator 6 - ARM GAS /tmp/ccEKYEFi.s page 86 - - - 2379 0054 062B cmp r3, #6 - 2380 0056 12D0 beq .L183 -1650:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** { - 2381 .loc 1 1650 0 discriminator 7 - 2382 0058 072B cmp r3, #7 - 2383 005a 10D0 beq .L183 -1654:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** { - 2384 .loc 1 1654 0 is_stmt 1 - 2385 005c 2268 ldr r2, [r4] - 2386 005e 5069 ldr r0, [r2, #20] - 2387 0060 0723 movs r3, #7 - 2388 0062 0340 ands r3, r0 - 2389 0064 8868 ldr r0, [r1, #8] - 2390 0066 9842 cmp r0, r3 - 2391 0068 09D0 beq .L183 -1658:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** - 2392 .loc 1 1658 0 - 2393 006a 5069 ldr r0, [r2, #20] - 2394 006c 0723 movs r3, #7 - 2395 006e 9843 bics r0, r3 - 2396 0070 5061 str r0, [r2, #20] -1661:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** } - 2397 .loc 1 1661 0 - 2398 0072 2068 ldr r0, [r4] - 2399 0074 4269 ldr r2, [r0, #20] - 2400 0076 8D68 ldr r5, [r1, #8] - 2401 0078 2B40 ands r3, r5 - 2402 007a 1343 orrs r3, r2 - 2403 007c 4361 str r3, [r0, #20] - 2404 .L183: -1671:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** { - 2405 .loc 1 1671 0 - 2406 007e 0B68 ldr r3, [r1] - 2407 0080 1A00 movs r2, r3 - 2408 0082 103A subs r2, r2, #16 - 2409 0084 022A cmp r2, #2 - 2410 0086 4CD8 bhi .L190 -1676:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** - 2411 .loc 1 1676 0 - 2412 0088 2A4A ldr r2, .L200+4 - 2413 008a 1268 ldr r2, [r2] - 2414 008c 102B cmp r3, #16 - 2415 008e 0ED0 beq .L191 -1676:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** - 2416 .loc 1 1676 0 is_stmt 0 discriminator 1 - 2417 0090 112B cmp r3, #17 - 2418 0092 09D0 beq .L197 -1676:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** - 2419 .loc 1 1676 0 - 2420 0094 8023 movs r3, #128 - 2421 0096 5B04 lsls r3, r3, #17 - 2422 .L185: -1676:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** - 2423 .loc 1 1676 0 discriminator 8 - 2424 0098 1343 orrs r3, r2 - 2425 009a 264A ldr r2, .L200+4 - 2426 009c 1360 str r3, [r2] - ARM GAS /tmp/ccEKYEFi.s page 87 - - -1679:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** { - 2427 .loc 1 1679 0 is_stmt 1 discriminator 8 - 2428 009e 0B68 ldr r3, [r1] - 2429 00a0 102B cmp r3, #16 - 2430 00a2 07D0 beq .L198 -1613:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** __IO uint32_t wait_loop_index = 0U; - 2431 .loc 1 1613 0 - 2432 00a4 0020 movs r0, #0 - 2433 00a6 37E0 b .L184 - 2434 .L197: -1676:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** - 2435 .loc 1 1676 0 - 2436 00a8 8023 movs r3, #128 - 2437 00aa DB03 lsls r3, r3, #15 - 2438 00ac F4E7 b .L185 - 2439 .L191: - 2440 00ae 8023 movs r3, #128 - 2441 00b0 1B04 lsls r3, r3, #16 - 2442 00b2 F1E7 b .L185 - 2443 .L198: -1683:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** while(wait_loop_index != 0U) - 2444 .loc 1 1683 0 - 2445 00b4 204B ldr r3, .L200+8 - 2446 00b6 1868 ldr r0, [r3] - 2447 00b8 2049 ldr r1, .L200+12 - 2448 .LVL193: - 2449 00ba FFF7FEFF bl __aeabi_uidiv - 2450 .LVL194: - 2451 00be 8300 lsls r3, r0, #2 - 2452 00c0 1818 adds r0, r3, r0 - 2453 00c2 4300 lsls r3, r0, #1 - 2454 00c4 0193 str r3, [sp, #4] -1684:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** { - 2455 .loc 1 1684 0 - 2456 00c6 02E0 b .L186 - 2457 .L187: -1686:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** } - 2458 .loc 1 1686 0 - 2459 00c8 019B ldr r3, [sp, #4] - 2460 00ca 013B subs r3, r3, #1 - 2461 00cc 0193 str r3, [sp, #4] - 2462 .L186: -1684:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** { - 2463 .loc 1 1684 0 - 2464 00ce 019B ldr r3, [sp, #4] - 2465 00d0 002B cmp r3, #0 - 2466 00d2 F9D1 bne .L187 -1613:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** __IO uint32_t wait_loop_index = 0U; - 2467 .loc 1 1613 0 - 2468 00d4 0020 movs r0, #0 - 2469 00d6 1FE0 b .L184 - 2470 .LVL195: - 2471 .L182: -1695:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** - 2472 .loc 1 1695 0 - 2473 00d8 9A6A ldr r2, [r3, #40] - 2474 00da 0120 movs r0, #1 - ARM GAS /tmp/ccEKYEFi.s page 88 - - - 2475 00dc 0D68 ldr r5, [r1] - 2476 00de A840 lsls r0, r0, r5 - 2477 00e0 8243 bics r2, r0 - 2478 00e2 9A62 str r2, [r3, #40] -1700:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** { - 2479 .loc 1 1700 0 - 2480 00e4 0B68 ldr r3, [r1] - 2481 00e6 1A00 movs r2, r3 - 2482 00e8 103A subs r2, r2, #16 - 2483 00ea 022A cmp r2, #2 - 2484 00ec 1BD8 bhi .L194 -1705:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** } - 2485 .loc 1 1705 0 - 2486 00ee 114A ldr r2, .L200+4 - 2487 00f0 1268 ldr r2, [r2] - 2488 00f2 102B cmp r3, #16 - 2489 00f4 09D0 beq .L195 -1705:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** } - 2490 .loc 1 1705 0 is_stmt 0 discriminator 1 - 2491 00f6 112B cmp r3, #17 - 2492 00f8 05D0 beq .L199 -1705:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** } - 2493 .loc 1 1705 0 - 2494 00fa 114B ldr r3, .L200+16 - 2495 .L188: -1705:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** } - 2496 .loc 1 1705 0 discriminator 8 - 2497 00fc 1340 ands r3, r2 - 2498 00fe 0D4A ldr r2, .L200+4 - 2499 0100 1360 str r3, [r2] -1613:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** __IO uint32_t wait_loop_index = 0U; - 2500 .loc 1 1613 0 is_stmt 1 discriminator 8 - 2501 0102 0020 movs r0, #0 - 2502 0104 08E0 b .L184 - 2503 .L199: -1705:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** } - 2504 .loc 1 1705 0 - 2505 0106 0F4B ldr r3, .L200+20 - 2506 0108 F8E7 b .L188 - 2507 .L195: - 2508 010a 0F4B ldr r3, .L200+24 - 2509 010c F6E7 b .L188 - 2510 .LVL196: - 2511 .L181: -1717:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** - 2512 .loc 1 1717 0 - 2513 010e 436C ldr r3, [r0, #68] - 2514 0110 2022 movs r2, #32 - 2515 0112 1343 orrs r3, r2 - 2516 0114 4364 str r3, [r0, #68] - 2517 .LVL197: -1719:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** } - 2518 .loc 1 1719 0 - 2519 0116 0120 movs r0, #1 - 2520 .LVL198: - 2521 .L184: -1723:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** - ARM GAS /tmp/ccEKYEFi.s page 89 - - - 2522 .loc 1 1723 0 - 2523 0118 4023 movs r3, #64 - 2524 011a 0022 movs r2, #0 - 2525 011c E254 strb r2, [r4, r3] - 2526 .LVL199: - 2527 .L180: -1727:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** - 2528 .loc 1 1727 0 - 2529 011e 03B0 add sp, sp, #12 - 2530 @ sp needed - 2531 .LVL200: - 2532 0120 30BD pop {r4, r5, pc} - 2533 .LVL201: - 2534 .L190: -1613:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** __IO uint32_t wait_loop_index = 0U; - 2535 .loc 1 1613 0 - 2536 0122 0020 movs r0, #0 - 2537 0124 F8E7 b .L184 - 2538 .L194: - 2539 0126 0020 movs r0, #0 - 2540 0128 F6E7 b .L184 - 2541 .LVL202: - 2542 .L189: -1627:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** - 2543 .loc 1 1627 0 - 2544 012a 0220 movs r0, #2 - 2545 .LVL203: - 2546 012c F7E7 b .L180 - 2547 .L201: - 2548 012e C046 .align 2 - 2549 .L200: - 2550 0130 01100000 .word 4097 - 2551 0134 08270140 .word 1073817352 - 2552 0138 00000000 .word SystemCoreClock - 2553 013c 40420F00 .word 1000000 - 2554 0140 FFFFFFFE .word -16777217 - 2555 0144 FFFFBFFF .word -4194305 - 2556 0148 FFFF7FFF .word -8388609 - 2557 .cfi_endproc - 2558 .LFE55: - 2560 .section .text.HAL_ADC_AnalogWDGConfig,"ax",%progbits - 2561 .align 1 - 2562 .global HAL_ADC_AnalogWDGConfig - 2563 .syntax unified - 2564 .code 16 - 2565 .thumb_func - 2566 .fpu softvfp - 2568 HAL_ADC_AnalogWDGConfig: - 2569 .LFB56: -1745:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** HAL_StatusTypeDef tmp_hal_status = HAL_OK; - 2570 .loc 1 1745 0 - 2571 .cfi_startproc - 2572 @ args = 0, pretend = 0, frame = 0 - 2573 @ frame_needed = 0, uses_anonymous_args = 0 - 2574 .LVL204: - 2575 0000 70B5 push {r4, r5, r6, lr} - 2576 .LCFI20: - ARM GAS /tmp/ccEKYEFi.s page 90 - - - 2577 .cfi_def_cfa_offset 16 - 2578 .cfi_offset 4, -16 - 2579 .cfi_offset 5, -12 - 2580 .cfi_offset 6, -8 - 2581 .cfi_offset 14, -4 - 2582 .LVL205: -1766:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** - 2583 .loc 1 1766 0 - 2584 0002 4023 movs r3, #64 - 2585 0004 C35C ldrb r3, [r0, r3] - 2586 0006 012B cmp r3, #1 - 2587 0008 49D0 beq .L207 -1766:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** - 2588 .loc 1 1766 0 is_stmt 0 discriminator 2 - 2589 000a 4023 movs r3, #64 - 2590 000c 0122 movs r2, #1 - 2591 000e C254 strb r2, [r0, r3] -1773:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** { - 2592 .loc 1 1773 0 is_stmt 1 discriminator 2 - 2593 0010 0368 ldr r3, [r0] - 2594 0012 9A68 ldr r2, [r3, #8] - 2595 0014 5207 lsls r2, r2, #29 - 2596 0016 38D4 bmi .L204 -1780:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** ADC_CFGR1_AWDEN | - 2597 .loc 1 1780 0 - 2598 0018 DA68 ldr r2, [r3, #12] - 2599 001a 224C ldr r4, .L209 - 2600 001c 2240 ands r2, r4 - 2601 001e DA60 str r2, [r3, #12] -1784:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** ADC_CFGR_AWDCH(AnalogWDGConfig->Channel) ); - 2602 .loc 1 1784 0 - 2603 0020 0468 ldr r4, [r0] - 2604 0022 E368 ldr r3, [r4, #12] -1785:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** - 2605 .loc 1 1785 0 - 2606 0024 4A68 ldr r2, [r1, #4] - 2607 0026 9206 lsls r2, r2, #26 -1784:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** ADC_CFGR_AWDCH(AnalogWDGConfig->Channel) ); - 2608 .loc 1 1784 0 - 2609 0028 0D68 ldr r5, [r1] - 2610 002a 2A43 orrs r2, r5 - 2611 002c 1343 orrs r3, r2 - 2612 002e E360 str r3, [r4, #12] -1789:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** tmpAWDLowThresholdShifted = ADC_AWD1THRESHOLD_SHIFT_RESOLUTION(hadc, AnalogWDGConfig->LowThres - 2613 .loc 1 1789 0 - 2614 0030 0468 ldr r4, [r0] - 2615 0032 E368 ldr r3, [r4, #12] - 2616 0034 DB08 lsrs r3, r3, #3 - 2617 0036 0322 movs r2, #3 - 2618 0038 1340 ands r3, r2 - 2619 003a 5B00 lsls r3, r3, #1 - 2620 003c CD68 ldr r5, [r1, #12] - 2621 003e 9D40 lsls r5, r5, r3 - 2622 0040 2B00 movs r3, r5 - 2623 .LVL206: -1790:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** - 2624 .loc 1 1790 0 - ARM GAS /tmp/ccEKYEFi.s page 91 - - - 2625 0042 E568 ldr r5, [r4, #12] - 2626 0044 ED08 lsrs r5, r5, #3 - 2627 0046 2A40 ands r2, r5 - 2628 0048 5200 lsls r2, r2, #1 - 2629 004a 0D69 ldr r5, [r1, #16] - 2630 004c 9540 lsls r5, r5, r2 - 2631 .LVL207: -1793:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** hadc->Instance->TR |= ( ADC_TRX_HIGHTHRESHOLD (tmpAWDHighThresholdShifted) | - 2632 .loc 1 1793 0 - 2633 004e 226A ldr r2, [r4, #32] - 2634 0050 154E ldr r6, .L209+4 - 2635 0052 3240 ands r2, r6 - 2636 0054 2262 str r2, [r4, #32] -1794:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** tmpAWDLowThresholdShifted ); - 2637 .loc 1 1794 0 - 2638 0056 0468 ldr r4, [r0] - 2639 0058 226A ldr r2, [r4, #32] - 2640 005a 1B04 lsls r3, r3, #16 - 2641 .LVL208: - 2642 005c 2B43 orrs r3, r5 - 2643 005e 1343 orrs r3, r2 - 2644 0060 2362 str r3, [r4, #32] -1800:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** - 2645 .loc 1 1800 0 - 2646 0062 0368 ldr r3, [r0] - 2647 0064 8022 movs r2, #128 - 2648 0066 1A60 str r2, [r3] -1803:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** { - 2649 .loc 1 1803 0 - 2650 0068 8B68 ldr r3, [r1, #8] - 2651 006a 012B cmp r3, #1 - 2652 006c 06D0 beq .L208 -1811:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** } - 2653 .loc 1 1811 0 - 2654 006e 0268 ldr r2, [r0] - 2655 0070 5368 ldr r3, [r2, #4] - 2656 0072 8021 movs r1, #128 - 2657 .LVL209: - 2658 0074 8B43 bics r3, r1 - 2659 0076 5360 str r3, [r2, #4] -1746:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** - 2660 .loc 1 1746 0 - 2661 0078 0023 movs r3, #0 - 2662 007a 0BE0 b .L206 - 2663 .LVL210: - 2664 .L208: -1806:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** } - 2665 .loc 1 1806 0 - 2666 007c 0268 ldr r2, [r0] - 2667 007e 5368 ldr r3, [r2, #4] - 2668 0080 8021 movs r1, #128 - 2669 .LVL211: - 2670 0082 0B43 orrs r3, r1 - 2671 0084 5360 str r3, [r2, #4] -1746:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** - 2672 .loc 1 1746 0 - 2673 0086 0023 movs r3, #0 - ARM GAS /tmp/ccEKYEFi.s page 92 - - - 2674 0088 04E0 b .L206 - 2675 .LVL212: - 2676 .L204: -1820:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** - 2677 .loc 1 1820 0 - 2678 008a 436C ldr r3, [r0, #68] - 2679 008c 2022 movs r2, #32 - 2680 008e 1343 orrs r3, r2 - 2681 0090 4364 str r3, [r0, #68] - 2682 .LVL213: -1822:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** } - 2683 .loc 1 1822 0 - 2684 0092 0123 movs r3, #1 - 2685 .LVL214: - 2686 .L206: -1827:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** - 2687 .loc 1 1827 0 - 2688 0094 4022 movs r2, #64 - 2689 0096 0021 movs r1, #0 - 2690 0098 8154 strb r1, [r0, r2] - 2691 .LVL215: - 2692 .L203: -1831:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** - 2693 .loc 1 1831 0 - 2694 009a 1800 movs r0, r3 - 2695 .LVL216: - 2696 @ sp needed - 2697 009c 70BD pop {r4, r5, r6, pc} - 2698 .LVL217: - 2699 .L207: -1766:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** - 2700 .loc 1 1766 0 - 2701 009e 0223 movs r3, #2 - 2702 00a0 FBE7 b .L203 - 2703 .L210: - 2704 00a2 C046 .align 2 - 2705 .L209: - 2706 00a4 FFFF3F83 .word -2092957697 - 2707 00a8 00F000F0 .word -268374016 - 2708 .cfi_endproc - 2709 .LFE56: - 2711 .section .text.HAL_ADC_GetState,"ax",%progbits - 2712 .align 1 - 2713 .global HAL_ADC_GetState - 2714 .syntax unified - 2715 .code 16 - 2716 .thumb_func - 2717 .fpu softvfp - 2719 HAL_ADC_GetState: - 2720 .LFB57: -1867:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** /* Check the parameters */ - 2721 .loc 1 1867 0 - 2722 .cfi_startproc - 2723 @ args = 0, pretend = 0, frame = 0 - 2724 @ frame_needed = 0, uses_anonymous_args = 0 - 2725 @ link register save eliminated. - 2726 .LVL218: - ARM GAS /tmp/ccEKYEFi.s page 93 - - -1872:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** } - 2727 .loc 1 1872 0 - 2728 0000 406C ldr r0, [r0, #68] - 2729 .LVL219: -1873:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** - 2730 .loc 1 1873 0 - 2731 @ sp needed - 2732 0002 7047 bx lr - 2733 .cfi_endproc - 2734 .LFE57: - 2736 .section .text.HAL_ADC_GetError,"ax",%progbits - 2737 .align 1 - 2738 .global HAL_ADC_GetError - 2739 .syntax unified - 2740 .code 16 - 2741 .thumb_func - 2742 .fpu softvfp - 2744 HAL_ADC_GetError: - 2745 .LFB58: -1881:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** return hadc->ErrorCode; - 2746 .loc 1 1881 0 - 2747 .cfi_startproc - 2748 @ args = 0, pretend = 0, frame = 0 - 2749 @ frame_needed = 0, uses_anonymous_args = 0 - 2750 @ link register save eliminated. - 2751 .LVL220: -1882:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** } - 2752 .loc 1 1882 0 - 2753 0000 806C ldr r0, [r0, #72] - 2754 .LVL221: -1883:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c **** - 2755 .loc 1 1883 0 - 2756 @ sp needed - 2757 0002 7047 bx lr - 2758 .cfi_endproc - 2759 .LFE58: - 2761 .text - 2762 .Letext0: - 2763 .file 2 "/home/janhenrik/programme/gcc-arm-none-eabi-7-2018-q2-update/arm-none-eabi/include/machin - 2764 .file 3 "/home/janhenrik/programme/gcc-arm-none-eabi-7-2018-q2-update/arm-none-eabi/include/sys/_s - 2765 .file 4 "Drivers/CMSIS/Device/ST/STM32F0xx/Include/system_stm32f0xx.h" - 2766 .file 5 "Drivers/CMSIS/Device/ST/STM32F0xx/Include/stm32f072xb.h" - 2767 .file 6 "Drivers/CMSIS/Device/ST/STM32F0xx/Include/stm32f0xx.h" - 2768 .file 7 "/home/janhenrik/programme/gcc-arm-none-eabi-7-2018-q2-update/arm-none-eabi/include/sys/lo - 2769 .file 8 "/home/janhenrik/programme/gcc-arm-none-eabi-7-2018-q2-update/arm-none-eabi/include/sys/_t - 2770 .file 9 "/home/janhenrik/programme/gcc-arm-none-eabi-7-2018-q2-update/lib/gcc/arm-none-eabi/7.3.1/ - 2771 .file 10 "/home/janhenrik/programme/gcc-arm-none-eabi-7-2018-q2-update/arm-none-eabi/include/sys/r - 2772 .file 11 "Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_def.h" - 2773 .file 12 "Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_dma.h" - 2774 .file 13 "Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_adc.h" - 2775 .file 14 "Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal.h" - ARM GAS /tmp/ccEKYEFi.s page 94 - - -DEFINED SYMBOLS - *ABS*:0000000000000000 stm32f0xx_hal_adc.c - /tmp/ccEKYEFi.s:16 .text.ADC_ConversionStop:0000000000000000 $t - /tmp/ccEKYEFi.s:22 .text.ADC_ConversionStop:0000000000000000 ADC_ConversionStop - /tmp/ccEKYEFi.s:106 .text.ADC_Disable:0000000000000000 $t - /tmp/ccEKYEFi.s:112 .text.ADC_Disable:0000000000000000 ADC_Disable - /tmp/ccEKYEFi.s:228 .text.ADC_Enable:0000000000000000 $t - /tmp/ccEKYEFi.s:234 .text.ADC_Enable:0000000000000000 ADC_Enable - /tmp/ccEKYEFi.s:371 .text.ADC_Enable:000000000000009c $d - /tmp/ccEKYEFi.s:378 .text.HAL_ADC_MspInit:0000000000000000 $t - /tmp/ccEKYEFi.s:385 .text.HAL_ADC_MspInit:0000000000000000 HAL_ADC_MspInit - /tmp/ccEKYEFi.s:400 .text.HAL_ADC_Init:0000000000000000 $t - /tmp/ccEKYEFi.s:407 .text.HAL_ADC_Init:0000000000000000 HAL_ADC_Init - /tmp/ccEKYEFi.s:703 .text.HAL_ADC_Init:0000000000000170 $d - /tmp/ccEKYEFi.s:710 .text.HAL_ADC_MspDeInit:0000000000000000 $t - /tmp/ccEKYEFi.s:717 .text.HAL_ADC_MspDeInit:0000000000000000 HAL_ADC_MspDeInit - /tmp/ccEKYEFi.s:732 .text.HAL_ADC_DeInit:0000000000000000 $t - /tmp/ccEKYEFi.s:739 .text.HAL_ADC_DeInit:0000000000000000 HAL_ADC_DeInit - /tmp/ccEKYEFi.s:867 .text.HAL_ADC_DeInit:0000000000000094 $d - /tmp/ccEKYEFi.s:875 .text.HAL_ADC_Start:0000000000000000 $t - /tmp/ccEKYEFi.s:882 .text.HAL_ADC_Start:0000000000000000 HAL_ADC_Start - /tmp/ccEKYEFi.s:971 .text.HAL_ADC_Start:000000000000005c $d - /tmp/ccEKYEFi.s:976 .text.HAL_ADC_Stop:0000000000000000 $t - /tmp/ccEKYEFi.s:983 .text.HAL_ADC_Stop:0000000000000000 HAL_ADC_Stop - /tmp/ccEKYEFi.s:1052 .text.HAL_ADC_Stop:0000000000000040 $d - /tmp/ccEKYEFi.s:1057 .text.HAL_ADC_PollForConversion:0000000000000000 $t - /tmp/ccEKYEFi.s:1064 .text.HAL_ADC_PollForConversion:0000000000000000 HAL_ADC_PollForConversion - /tmp/ccEKYEFi.s:1221 .text.HAL_ADC_PollForConversion:00000000000000bc $d - /tmp/ccEKYEFi.s:1226 .text.HAL_ADC_PollForEvent:0000000000000000 $t - /tmp/ccEKYEFi.s:1233 .text.HAL_ADC_PollForEvent:0000000000000000 HAL_ADC_PollForEvent - /tmp/ccEKYEFi.s:1344 .text.HAL_ADC_Start_IT:0000000000000000 $t - /tmp/ccEKYEFi.s:1351 .text.HAL_ADC_Start_IT:0000000000000000 HAL_ADC_Start_IT - /tmp/ccEKYEFi.s:1467 .text.HAL_ADC_Start_IT:0000000000000084 $d - /tmp/ccEKYEFi.s:1472 .text.HAL_ADC_Stop_IT:0000000000000000 $t - /tmp/ccEKYEFi.s:1479 .text.HAL_ADC_Stop_IT:0000000000000000 HAL_ADC_Stop_IT - /tmp/ccEKYEFi.s:1554 .text.HAL_ADC_Stop_IT:000000000000004c $d - /tmp/ccEKYEFi.s:1559 .text.HAL_ADC_Start_DMA:0000000000000000 $t - /tmp/ccEKYEFi.s:1566 .text.HAL_ADC_Start_DMA:0000000000000000 HAL_ADC_Start_DMA - /tmp/ccEKYEFi.s:1695 .text.HAL_ADC_Start_DMA:0000000000000098 $d - /tmp/ccEKYEFi.s:1882 .text.ADC_DMAConvCplt:0000000000000000 ADC_DMAConvCplt - /tmp/ccEKYEFi.s:2008 .text.ADC_DMAHalfConvCplt:0000000000000000 ADC_DMAHalfConvCplt - /tmp/ccEKYEFi.s:2083 .text.ADC_DMAError:0000000000000000 ADC_DMAError - /tmp/ccEKYEFi.s:1703 .text.HAL_ADC_Stop_DMA:0000000000000000 $t - /tmp/ccEKYEFi.s:1710 .text.HAL_ADC_Stop_DMA:0000000000000000 HAL_ADC_Stop_DMA - /tmp/ccEKYEFi.s:1823 .text.HAL_ADC_Stop_DMA:0000000000000078 $d - /tmp/ccEKYEFi.s:1828 .text.HAL_ADC_GetValue:0000000000000000 $t - /tmp/ccEKYEFi.s:1835 .text.HAL_ADC_GetValue:0000000000000000 HAL_ADC_GetValue - /tmp/ccEKYEFi.s:1854 .text.HAL_ADC_ConvCpltCallback:0000000000000000 $t - /tmp/ccEKYEFi.s:1861 .text.HAL_ADC_ConvCpltCallback:0000000000000000 HAL_ADC_ConvCpltCallback - /tmp/ccEKYEFi.s:1876 .text.ADC_DMAConvCplt:0000000000000000 $t - /tmp/ccEKYEFi.s:1975 .text.ADC_DMAConvCplt:000000000000006c $d - /tmp/ccEKYEFi.s:1980 .text.HAL_ADC_ConvHalfCpltCallback:0000000000000000 $t - /tmp/ccEKYEFi.s:1987 .text.HAL_ADC_ConvHalfCpltCallback:0000000000000000 HAL_ADC_ConvHalfCpltCallback - /tmp/ccEKYEFi.s:2002 .text.ADC_DMAHalfConvCplt:0000000000000000 $t - /tmp/ccEKYEFi.s:2033 .text.HAL_ADC_LevelOutOfWindowCallback:0000000000000000 $t - /tmp/ccEKYEFi.s:2040 .text.HAL_ADC_LevelOutOfWindowCallback:0000000000000000 HAL_ADC_LevelOutOfWindowCallback - /tmp/ccEKYEFi.s:2055 .text.HAL_ADC_ErrorCallback:0000000000000000 $t - ARM GAS /tmp/ccEKYEFi.s page 95 - - - /tmp/ccEKYEFi.s:2062 .text.HAL_ADC_ErrorCallback:0000000000000000 HAL_ADC_ErrorCallback - /tmp/ccEKYEFi.s:2077 .text.ADC_DMAError:0000000000000000 $t - /tmp/ccEKYEFi.s:2118 .text.HAL_ADC_IRQHandler:0000000000000000 $t - /tmp/ccEKYEFi.s:2125 .text.HAL_ADC_IRQHandler:0000000000000000 HAL_ADC_IRQHandler - /tmp/ccEKYEFi.s:2295 .text.HAL_ADC_IRQHandler:00000000000000d8 $d - /tmp/ccEKYEFi.s:2300 .text.HAL_ADC_ConfigChannel:0000000000000000 $t - /tmp/ccEKYEFi.s:2307 .text.HAL_ADC_ConfigChannel:0000000000000000 HAL_ADC_ConfigChannel - /tmp/ccEKYEFi.s:2550 .text.HAL_ADC_ConfigChannel:0000000000000130 $d - /tmp/ccEKYEFi.s:2561 .text.HAL_ADC_AnalogWDGConfig:0000000000000000 $t - /tmp/ccEKYEFi.s:2568 .text.HAL_ADC_AnalogWDGConfig:0000000000000000 HAL_ADC_AnalogWDGConfig - /tmp/ccEKYEFi.s:2706 .text.HAL_ADC_AnalogWDGConfig:00000000000000a4 $d - /tmp/ccEKYEFi.s:2712 .text.HAL_ADC_GetState:0000000000000000 $t - /tmp/ccEKYEFi.s:2719 .text.HAL_ADC_GetState:0000000000000000 HAL_ADC_GetState - /tmp/ccEKYEFi.s:2737 .text.HAL_ADC_GetError:0000000000000000 $t - /tmp/ccEKYEFi.s:2744 .text.HAL_ADC_GetError:0000000000000000 HAL_ADC_GetError - -UNDEFINED SYMBOLS -HAL_GetTick -__aeabi_uidiv -SystemCoreClock -HAL_DMA_Start_IT -HAL_DMA_Abort diff --git a/firmware/build/stm32f0xx_hal_adc.o b/firmware/build/stm32f0xx_hal_adc.o deleted file mode 100644 index 241c01b..0000000 Binary files a/firmware/build/stm32f0xx_hal_adc.o and /dev/null differ diff --git a/firmware/build/stm32f0xx_hal_adc_ex.d b/firmware/build/stm32f0xx_hal_adc_ex.d deleted file mode 100644 index a197cee..0000000 --- a/firmware/build/stm32f0xx_hal_adc_ex.d +++ /dev/null @@ -1,87 +0,0 @@ -build/stm32f0xx_hal_adc_ex.o: \ - Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc_ex.c \ - Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal.h \ - Inc/stm32f0xx_hal_conf.h \ - Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_rcc.h \ - Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_def.h \ - Drivers/CMSIS/Device/ST/STM32F0xx/Include/stm32f0xx.h \ - Drivers/CMSIS/Device/ST/STM32F0xx/Include/stm32f072xb.h \ - Drivers/CMSIS/Include/core_cm0.h Drivers/CMSIS/Include/core_cmInstr.h \ - Drivers/CMSIS/Include/cmsis_gcc.h Drivers/CMSIS/Include/core_cmFunc.h \ - Drivers/CMSIS/Device/ST/STM32F0xx/Include/system_stm32f0xx.h \ - Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_rcc_ex.h \ - Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_gpio.h \ - Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_gpio_ex.h \ - Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_dma.h \ - Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_dma_ex.h \ - Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_cortex.h \ - Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_adc.h \ - Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_adc_ex.h \ - Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_flash.h \ - Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_flash_ex.h \ - Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_i2c.h \ - Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_i2c_ex.h \ - Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_pcd.h \ - Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_pcd_ex.h \ - Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_pwr.h \ - Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_pwr_ex.h \ - Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_tim.h \ - Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_tim_ex.h - -Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal.h: - -Inc/stm32f0xx_hal_conf.h: - -Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_rcc.h: - -Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_def.h: - -Drivers/CMSIS/Device/ST/STM32F0xx/Include/stm32f0xx.h: - -Drivers/CMSIS/Device/ST/STM32F0xx/Include/stm32f072xb.h: - -Drivers/CMSIS/Include/core_cm0.h: - -Drivers/CMSIS/Include/core_cmInstr.h: - -Drivers/CMSIS/Include/cmsis_gcc.h: - -Drivers/CMSIS/Include/core_cmFunc.h: - -Drivers/CMSIS/Device/ST/STM32F0xx/Include/system_stm32f0xx.h: - -Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_rcc_ex.h: - -Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_gpio.h: - -Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_gpio_ex.h: - -Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_dma.h: - -Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_dma_ex.h: - -Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_cortex.h: - -Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_adc.h: - -Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_adc_ex.h: - -Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_flash.h: - -Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_flash_ex.h: - -Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_i2c.h: - -Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_i2c_ex.h: - -Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_pcd.h: - -Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_pcd_ex.h: - -Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_pwr.h: - -Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_pwr_ex.h: - -Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_tim.h: - -Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_tim_ex.h: diff --git a/firmware/build/stm32f0xx_hal_adc_ex.lst b/firmware/build/stm32f0xx_hal_adc_ex.lst deleted file mode 100644 index 213a3f6..0000000 --- a/firmware/build/stm32f0xx_hal_adc_ex.lst +++ /dev/null @@ -1,402 +0,0 @@ -ARM GAS /tmp/ccQuzC8J.s page 1 - - - 1 .cpu cortex-m0 - 2 .eabi_attribute 20, 1 - 3 .eabi_attribute 21, 1 - 4 .eabi_attribute 23, 3 - 5 .eabi_attribute 24, 1 - 6 .eabi_attribute 25, 1 - 7 .eabi_attribute 26, 1 - 8 .eabi_attribute 30, 1 - 9 .eabi_attribute 34, 0 - 10 .eabi_attribute 18, 4 - 11 .file "stm32f0xx_hal_adc_ex.c" - 12 .text - 13 .Ltext0: - 14 .cfi_sections .debug_frame - 15 .section .text.HAL_ADCEx_Calibration_Start,"ax",%progbits - 16 .align 1 - 17 .global HAL_ADCEx_Calibration_Start - 18 .syntax unified - 19 .code 16 - 20 .thumb_func - 21 .fpu softvfp - 23 HAL_ADCEx_Calibration_Start: - 24 .LFB37: - 25 .file 1 "Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc_ex.c" - 1:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc_ex.c **** /** - 2:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc_ex.c **** ****************************************************************************** - 3:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc_ex.c **** * @file stm32f0xx_hal_adc_ex.c - 4:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc_ex.c **** * @author MCD Application Team - 5:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc_ex.c **** * @brief This file provides firmware functions to manage the following - 6:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc_ex.c **** * functionalities of the Analog to Digital Convertor (ADC) - 7:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc_ex.c **** * peripheral: - 8:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc_ex.c **** * + Operation functions - 9:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc_ex.c **** * ++ Calibration (ADC automatic self-calibration) - 10:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc_ex.c **** * Other functions (generic functions) are available in file - 11:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc_ex.c **** * "stm32f0xx_hal_adc.c". - 12:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc_ex.c **** * - 13:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc_ex.c **** @verbatim - 14:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc_ex.c **** [..] - 15:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc_ex.c **** (@) Sections "ADC peripheral features" and "How to use this driver" are - 16:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc_ex.c **** available in file of generic functions "stm32l1xx_hal_adc.c". - 17:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc_ex.c **** [..] - 18:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc_ex.c **** @endverbatim - 19:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc_ex.c **** ****************************************************************************** - 20:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc_ex.c **** * @attention - 21:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc_ex.c **** * - 22:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc_ex.c **** *

© COPYRIGHT(c) 2016 STMicroelectronics

- 23:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc_ex.c **** * - 24:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc_ex.c **** * Redistribution and use in source and binary forms, with or without modification, - 25:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc_ex.c **** * are permitted provided that the following conditions are met: - 26:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc_ex.c **** * 1. Redistributions of source code must retain the above copyright notice, - 27:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc_ex.c **** * this list of conditions and the following disclaimer. - 28:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc_ex.c **** * 2. Redistributions in binary form must reproduce the above copyright notice, - 29:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc_ex.c **** * this list of conditions and the following disclaimer in the documentation - 30:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc_ex.c **** * and/or other materials provided with the distribution. - 31:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc_ex.c **** * 3. Neither the name of STMicroelectronics nor the names of its contributors - 32:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc_ex.c **** * may be used to endorse or promote products derived from this software - 33:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc_ex.c **** * without specific prior written permission. - ARM GAS /tmp/ccQuzC8J.s page 2 - - - 34:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc_ex.c **** * - 35:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc_ex.c **** * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" - 36:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc_ex.c **** * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE - 37:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc_ex.c **** * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE - 38:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc_ex.c **** * DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE - 39:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc_ex.c **** * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL - 40:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc_ex.c **** * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR - 41:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc_ex.c **** * SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER - 42:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc_ex.c **** * CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, - 43:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc_ex.c **** * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE - 44:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc_ex.c **** * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. - 45:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc_ex.c **** * - 46:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc_ex.c **** ****************************************************************************** - 47:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc_ex.c **** */ - 48:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc_ex.c **** - 49:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc_ex.c **** /* Includes ------------------------------------------------------------------*/ - 50:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc_ex.c **** #include "stm32f0xx_hal.h" - 51:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc_ex.c **** - 52:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc_ex.c **** /** @addtogroup STM32F0xx_HAL_Driver - 53:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc_ex.c **** * @{ - 54:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc_ex.c **** */ - 55:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc_ex.c **** - 56:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc_ex.c **** /** @defgroup ADCEx ADCEx - 57:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc_ex.c **** * @brief ADC HAL module driver - 58:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc_ex.c **** * @{ - 59:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc_ex.c **** */ - 60:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc_ex.c **** - 61:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc_ex.c **** #ifdef HAL_ADC_MODULE_ENABLED - 62:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc_ex.c **** - 63:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc_ex.c **** /* Private typedef -----------------------------------------------------------*/ - 64:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc_ex.c **** /* Private define ------------------------------------------------------------*/ - 65:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc_ex.c **** /** @defgroup ADCEx_Private_Constants ADCEx Private Constants - 66:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc_ex.c **** * @{ - 67:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc_ex.c **** */ - 68:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc_ex.c **** - 69:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc_ex.c **** /* Fixed timeout values for ADC calibration, enable settling time, disable */ - 70:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc_ex.c **** /* settling time. */ - 71:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc_ex.c **** /* Values defined to be higher than worst cases: low clock frequency, */ - 72:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc_ex.c **** /* maximum prescaler. */ - 73:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc_ex.c **** /* Ex of profile low frequency : Clock source at 0.1 MHz, ADC clock */ - 74:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc_ex.c **** /* prescaler 4. */ - 75:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc_ex.c **** /* Unit: ms */ - 76:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc_ex.c **** #define ADC_DISABLE_TIMEOUT 2 - 77:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc_ex.c **** #define ADC_CALIBRATION_TIMEOUT 2U - 78:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc_ex.c **** /** - 79:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc_ex.c **** * @} - 80:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc_ex.c **** */ - 81:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc_ex.c **** - 82:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc_ex.c **** /* Private macros -------------------------------------------------------------*/ - 83:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc_ex.c **** /* Private variables ---------------------------------------------------------*/ - 84:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc_ex.c **** /* Private function prototypes -----------------------------------------------*/ - 85:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc_ex.c **** /* Private functions ---------------------------------------------------------*/ - 86:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc_ex.c **** - 87:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc_ex.c **** /** @defgroup ADCEx_Exported_Functions ADCEx Exported Functions - 88:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc_ex.c **** * @{ - 89:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc_ex.c **** */ - 90:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc_ex.c **** - ARM GAS /tmp/ccQuzC8J.s page 3 - - - 91:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc_ex.c **** /** @defgroup ADCEx_Exported_Functions_Group1 Extended Initialization/de-initialization functions - 92:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc_ex.c **** * @brief Extended Initialization and Configuration functions - 93:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc_ex.c **** * - 94:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc_ex.c **** @verbatim - 95:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc_ex.c **** =============================================================================== - 96:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc_ex.c **** ##### IO operation functions ##### - 97:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc_ex.c **** =============================================================================== - 98:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc_ex.c **** [..] This section provides functions allowing to: - 99:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc_ex.c **** (+) Perform the ADC calibration. - 100:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc_ex.c **** @endverbatim - 101:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc_ex.c **** * @{ - 102:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc_ex.c **** */ - 103:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc_ex.c **** - 104:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc_ex.c **** /** - 105:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc_ex.c **** * @brief Perform an ADC automatic self-calibration - 106:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc_ex.c **** * Calibration prerequisite: ADC must be disabled (execute this - 107:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc_ex.c **** * function before HAL_ADC_Start() or after HAL_ADC_Stop() ). - 108:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc_ex.c **** * @note Calibration factor can be read after calibration, using function - 109:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc_ex.c **** * HAL_ADC_GetValue() (value on 7 bits: from DR[6;0]). - 110:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc_ex.c **** * @param hadc ADC handle - 111:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc_ex.c **** * @retval HAL status - 112:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc_ex.c **** */ - 113:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc_ex.c **** HAL_StatusTypeDef HAL_ADCEx_Calibration_Start(ADC_HandleTypeDef* hadc) - 114:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc_ex.c **** { - 26 .loc 1 114 0 - 27 .cfi_startproc - 28 @ args = 0, pretend = 0, frame = 0 - 29 @ frame_needed = 0, uses_anonymous_args = 0 - 30 .LVL0: - 31 0000 70B5 push {r4, r5, r6, lr} - 32 .LCFI0: - 33 .cfi_def_cfa_offset 16 - 34 .cfi_offset 4, -16 - 35 .cfi_offset 5, -12 - 36 .cfi_offset 6, -8 - 37 .cfi_offset 14, -4 - 38 0002 0400 movs r4, r0 - 39 .LVL1: - 115:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc_ex.c **** HAL_StatusTypeDef tmp_hal_status = HAL_OK; - 116:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc_ex.c **** uint32_t tickstart = 0U; - 117:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc_ex.c **** uint32_t backup_setting_adc_dma_transfer = 0; /* Note: Variable not declared as volatile because - 118:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc_ex.c **** - 119:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc_ex.c **** /* Check the parameters */ - 120:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc_ex.c **** assert_param(IS_ADC_ALL_INSTANCE(hadc->Instance)); - 121:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc_ex.c **** - 122:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc_ex.c **** /* Process locked */ - 123:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc_ex.c **** __HAL_LOCK(hadc); - 40 .loc 1 123 0 - 41 0004 4023 movs r3, #64 - 42 0006 C35C ldrb r3, [r0, r3] - 43 0008 012B cmp r3, #1 - 44 000a 4CD0 beq .L8 - 45 .loc 1 123 0 is_stmt 0 discriminator 2 - 46 000c 4023 movs r3, #64 - 47 000e 0122 movs r2, #1 - 48 0010 C254 strb r2, [r0, r3] - 124:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc_ex.c **** - ARM GAS /tmp/ccQuzC8J.s page 4 - - - 125:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc_ex.c **** /* Calibration prerequisite: ADC must be disabled. */ - 126:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc_ex.c **** if (ADC_IS_ENABLE(hadc) == RESET) - 49 .loc 1 126 0 is_stmt 1 discriminator 2 - 50 0012 0368 ldr r3, [r0] - 51 0014 9968 ldr r1, [r3, #8] - 52 0016 0232 adds r2, r2, #2 - 53 0018 0A40 ands r2, r1 - 54 001a 012A cmp r2, #1 - 55 001c 05D1 bne .L3 - 56 .loc 1 126 0 is_stmt 0 discriminator 1 - 57 001e 1A68 ldr r2, [r3] - 58 0020 D207 lsls r2, r2, #31 - 59 0022 37D4 bmi .L4 - 60 .loc 1 126 0 discriminator 4 - 61 0024 DA68 ldr r2, [r3, #12] - 62 0026 1204 lsls r2, r2, #16 - 63 0028 34D4 bmi .L4 - 64 .L3: - 127:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc_ex.c **** { - 128:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc_ex.c **** /* Set ADC state */ - 129:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc_ex.c **** ADC_STATE_CLR_SET(hadc->State, - 65 .loc 1 129 0 is_stmt 1 - 66 002a 626C ldr r2, [r4, #68] - 67 002c 1F49 ldr r1, .L10 - 68 002e 0A40 ands r2, r1 - 69 0030 0631 adds r1, r1, #6 - 70 0032 FF31 adds r1, r1, #255 - 71 0034 0A43 orrs r2, r1 - 72 0036 6264 str r2, [r4, #68] - 130:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc_ex.c **** HAL_ADC_STATE_REG_BUSY, - 131:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc_ex.c **** HAL_ADC_STATE_BUSY_INTERNAL); - 132:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc_ex.c **** - 133:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc_ex.c **** /* Disable ADC DMA transfer request during calibration */ - 134:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc_ex.c **** /* Note: Specificity of this STM32 serie: Calibration factor is */ - 135:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc_ex.c **** /* available in data register and also transfered by DMA. */ - 136:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc_ex.c **** /* To not insert ADC calibration factor among ADC conversion data */ - 137:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc_ex.c **** /* in array variable, DMA transfer must be disabled during */ - 138:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc_ex.c **** /* calibration. */ - 139:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc_ex.c **** backup_setting_adc_dma_transfer = READ_BIT(hadc->Instance->CFGR1, ADC_CFGR1_DMAEN | ADC_CFGR1_D - 73 .loc 1 139 0 - 74 0038 DE68 ldr r6, [r3, #12] - 75 003a 0131 adds r1, r1, #1 - 76 003c 0E40 ands r6, r1 - 77 .LVL2: - 140:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc_ex.c **** CLEAR_BIT(hadc->Instance->CFGR1, ADC_CFGR1_DMAEN | ADC_CFGR1_DMACFG); - 78 .loc 1 140 0 - 79 003e DA68 ldr r2, [r3, #12] - 80 0040 8A43 bics r2, r1 - 81 0042 DA60 str r2, [r3, #12] - 141:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc_ex.c **** - 142:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc_ex.c **** /* Start ADC calibration */ - 143:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc_ex.c **** hadc->Instance->CR |= ADC_CR_ADCAL; - 82 .loc 1 143 0 - 83 0044 2268 ldr r2, [r4] - 84 0046 9168 ldr r1, [r2, #8] - 85 0048 8023 movs r3, #128 - 86 004a 1B06 lsls r3, r3, #24 - ARM GAS /tmp/ccQuzC8J.s page 5 - - - 87 004c 0B43 orrs r3, r1 - 88 004e 9360 str r3, [r2, #8] - 144:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc_ex.c **** - 145:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc_ex.c **** tickstart = HAL_GetTick(); - 89 .loc 1 145 0 - 90 0050 FFF7FEFF bl HAL_GetTick - 91 .LVL3: - 92 0054 0500 movs r5, r0 - 93 .LVL4: - 94 .L5: - 146:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc_ex.c **** - 147:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc_ex.c **** /* Wait for calibration completion */ - 148:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc_ex.c **** while(HAL_IS_BIT_SET(hadc->Instance->CR, ADC_CR_ADCAL)) - 95 .loc 1 148 0 - 96 0056 2368 ldr r3, [r4] - 97 0058 9A68 ldr r2, [r3, #8] - 98 005a 002A cmp r2, #0 - 99 005c 0FDA bge .L9 - 149:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc_ex.c **** { - 150:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc_ex.c **** if((HAL_GetTick() - tickstart) > ADC_CALIBRATION_TIMEOUT) - 100 .loc 1 150 0 - 101 005e FFF7FEFF bl HAL_GetTick - 102 .LVL5: - 103 0062 401B subs r0, r0, r5 - 104 0064 0228 cmp r0, #2 - 105 0066 F6D9 bls .L5 - 151:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc_ex.c **** { - 152:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc_ex.c **** /* Update ADC state machine to error */ - 153:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc_ex.c **** ADC_STATE_CLR_SET(hadc->State, - 106 .loc 1 153 0 - 107 0068 636C ldr r3, [r4, #68] - 108 006a 1222 movs r2, #18 - 109 006c 9343 bics r3, r2 - 110 006e 023A subs r2, r2, #2 - 111 0070 1343 orrs r3, r2 - 112 0072 6364 str r3, [r4, #68] - 154:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc_ex.c **** HAL_ADC_STATE_BUSY_INTERNAL, - 155:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc_ex.c **** HAL_ADC_STATE_ERROR_INTERNAL); - 156:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc_ex.c **** - 157:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc_ex.c **** /* Process unlocked */ - 158:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc_ex.c **** __HAL_UNLOCK(hadc); - 113 .loc 1 158 0 - 114 0074 4023 movs r3, #64 - 115 0076 0022 movs r2, #0 - 116 0078 E254 strb r2, [r4, r3] - 159:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc_ex.c **** - 160:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc_ex.c **** return HAL_ERROR; - 117 .loc 1 160 0 - 118 007a 0120 movs r0, #1 - 119 007c 12E0 b .L2 - 120 .L9: - 161:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc_ex.c **** } - 162:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc_ex.c **** } - 163:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc_ex.c **** - 164:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc_ex.c **** /* Restore ADC DMA transfer request after calibration */ - 165:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc_ex.c **** SET_BIT(hadc->Instance->CFGR1, backup_setting_adc_dma_transfer); - 121 .loc 1 165 0 - ARM GAS /tmp/ccQuzC8J.s page 6 - - - 122 007e DA68 ldr r2, [r3, #12] - 123 0080 1643 orrs r6, r2 - 124 .LVL6: - 125 0082 DE60 str r6, [r3, #12] - 166:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc_ex.c **** - 167:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc_ex.c **** /* Set ADC state */ - 168:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc_ex.c **** ADC_STATE_CLR_SET(hadc->State, - 126 .loc 1 168 0 - 127 0084 636C ldr r3, [r4, #68] - 128 0086 0322 movs r2, #3 - 129 0088 9343 bics r3, r2 - 130 008a 023A subs r2, r2, #2 - 131 008c 1343 orrs r3, r2 - 132 008e 6364 str r3, [r4, #68] - 115:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc_ex.c **** uint32_t tickstart = 0U; - 133 .loc 1 115 0 - 134 0090 0020 movs r0, #0 - 135 0092 04E0 b .L7 - 136 .LVL7: - 137 .L4: - 169:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc_ex.c **** HAL_ADC_STATE_BUSY_INTERNAL, - 170:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc_ex.c **** HAL_ADC_STATE_READY); - 171:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc_ex.c **** } - 172:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc_ex.c **** else - 173:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc_ex.c **** { - 174:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc_ex.c **** /* Update ADC state machine to error */ - 175:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc_ex.c **** SET_BIT(hadc->State, HAL_ADC_STATE_ERROR_CONFIG); - 138 .loc 1 175 0 - 139 0094 636C ldr r3, [r4, #68] - 140 0096 2022 movs r2, #32 - 141 0098 1343 orrs r3, r2 - 142 009a 6364 str r3, [r4, #68] - 143 .LVL8: - 176:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc_ex.c **** - 177:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc_ex.c **** tmp_hal_status = HAL_ERROR; - 144 .loc 1 177 0 - 145 009c 0120 movs r0, #1 - 146 .LVL9: - 147 .L7: - 178:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc_ex.c **** } - 179:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc_ex.c **** - 180:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc_ex.c **** /* Process unlocked */ - 181:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc_ex.c **** __HAL_UNLOCK(hadc); - 148 .loc 1 181 0 - 149 009e 4023 movs r3, #64 - 150 00a0 0022 movs r2, #0 - 151 00a2 E254 strb r2, [r4, r3] - 152 .LVL10: - 153 .L2: - 182:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc_ex.c **** - 183:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc_ex.c **** /* Return function status */ - 184:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc_ex.c **** return tmp_hal_status; - 185:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc_ex.c **** } - 154 .loc 1 185 0 - 155 @ sp needed - 156 .LVL11: - 157 00a4 70BD pop {r4, r5, r6, pc} - ARM GAS /tmp/ccQuzC8J.s page 7 - - - 158 .LVL12: - 159 .L8: - 123:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc_ex.c **** - 160 .loc 1 123 0 - 161 00a6 0220 movs r0, #2 - 162 .LVL13: - 163 00a8 FCE7 b .L2 - 164 .L11: - 165 00aa C046 .align 2 - 166 .L10: - 167 00ac FDFEFFFF .word -259 - 168 .cfi_endproc - 169 .LFE37: - 171 .text - 172 .Letext0: - 173 .file 2 "/home/janhenrik/programme/gcc-arm-none-eabi-7-2018-q2-update/arm-none-eabi/include/machin - 174 .file 3 "/home/janhenrik/programme/gcc-arm-none-eabi-7-2018-q2-update/arm-none-eabi/include/sys/_s - 175 .file 4 "Drivers/CMSIS/Device/ST/STM32F0xx/Include/system_stm32f0xx.h" - 176 .file 5 "Drivers/CMSIS/Device/ST/STM32F0xx/Include/stm32f072xb.h" - 177 .file 6 "/home/janhenrik/programme/gcc-arm-none-eabi-7-2018-q2-update/arm-none-eabi/include/sys/lo - 178 .file 7 "/home/janhenrik/programme/gcc-arm-none-eabi-7-2018-q2-update/arm-none-eabi/include/sys/_t - 179 .file 8 "/home/janhenrik/programme/gcc-arm-none-eabi-7-2018-q2-update/lib/gcc/arm-none-eabi/7.3.1/ - 180 .file 9 "/home/janhenrik/programme/gcc-arm-none-eabi-7-2018-q2-update/arm-none-eabi/include/sys/re - 181 .file 10 "Drivers/CMSIS/Device/ST/STM32F0xx/Include/stm32f0xx.h" - 182 .file 11 "Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_def.h" - 183 .file 12 "Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_dma.h" - 184 .file 13 "Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_adc.h" - 185 .file 14 "Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal.h" - ARM GAS /tmp/ccQuzC8J.s page 8 - - -DEFINED SYMBOLS - *ABS*:0000000000000000 stm32f0xx_hal_adc_ex.c - /tmp/ccQuzC8J.s:16 .text.HAL_ADCEx_Calibration_Start:0000000000000000 $t - /tmp/ccQuzC8J.s:23 .text.HAL_ADCEx_Calibration_Start:0000000000000000 HAL_ADCEx_Calibration_Start - /tmp/ccQuzC8J.s:167 .text.HAL_ADCEx_Calibration_Start:00000000000000ac $d - -UNDEFINED SYMBOLS -HAL_GetTick diff --git a/firmware/build/stm32f0xx_hal_adc_ex.o b/firmware/build/stm32f0xx_hal_adc_ex.o deleted file mode 100644 index 7405bf5..0000000 Binary files a/firmware/build/stm32f0xx_hal_adc_ex.o and /dev/null differ diff --git a/firmware/build/stm32f0xx_hal_cortex.d b/firmware/build/stm32f0xx_hal_cortex.d deleted file mode 100644 index ac351cb..0000000 --- a/firmware/build/stm32f0xx_hal_cortex.d +++ /dev/null @@ -1,87 +0,0 @@ -build/stm32f0xx_hal_cortex.o: \ - Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_cortex.c \ - Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal.h \ - Inc/stm32f0xx_hal_conf.h \ - Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_rcc.h \ - Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_def.h \ - Drivers/CMSIS/Device/ST/STM32F0xx/Include/stm32f0xx.h \ - Drivers/CMSIS/Device/ST/STM32F0xx/Include/stm32f072xb.h \ - Drivers/CMSIS/Include/core_cm0.h Drivers/CMSIS/Include/core_cmInstr.h \ - Drivers/CMSIS/Include/cmsis_gcc.h Drivers/CMSIS/Include/core_cmFunc.h \ - Drivers/CMSIS/Device/ST/STM32F0xx/Include/system_stm32f0xx.h \ - Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_rcc_ex.h \ - Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_gpio.h \ - Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_gpio_ex.h \ - Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_dma.h \ - Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_dma_ex.h \ - Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_cortex.h \ - Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_adc.h \ - Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_adc_ex.h \ - Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_flash.h \ - Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_flash_ex.h \ - Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_i2c.h \ - Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_i2c_ex.h \ - Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_pcd.h \ - Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_pcd_ex.h \ - Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_pwr.h \ - Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_pwr_ex.h \ - Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_tim.h \ - Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_tim_ex.h - -Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal.h: - -Inc/stm32f0xx_hal_conf.h: - -Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_rcc.h: - -Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_def.h: - -Drivers/CMSIS/Device/ST/STM32F0xx/Include/stm32f0xx.h: - -Drivers/CMSIS/Device/ST/STM32F0xx/Include/stm32f072xb.h: - -Drivers/CMSIS/Include/core_cm0.h: - -Drivers/CMSIS/Include/core_cmInstr.h: - -Drivers/CMSIS/Include/cmsis_gcc.h: - -Drivers/CMSIS/Include/core_cmFunc.h: - -Drivers/CMSIS/Device/ST/STM32F0xx/Include/system_stm32f0xx.h: - -Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_rcc_ex.h: - -Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_gpio.h: - -Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_gpio_ex.h: - -Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_dma.h: - -Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_dma_ex.h: - -Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_cortex.h: - -Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_adc.h: - -Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_adc_ex.h: - -Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_flash.h: - -Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_flash_ex.h: - -Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_i2c.h: - -Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_i2c_ex.h: - -Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_pcd.h: - -Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_pcd_ex.h: - -Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_pwr.h: - -Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_pwr_ex.h: - -Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_tim.h: - -Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_tim_ex.h: diff --git a/firmware/build/stm32f0xx_hal_cortex.lst b/firmware/build/stm32f0xx_hal_cortex.lst deleted file mode 100644 index c64a3a0..0000000 --- a/firmware/build/stm32f0xx_hal_cortex.lst +++ /dev/null @@ -1,2349 +0,0 @@ -ARM GAS /tmp/cc8pPmIp.s page 1 - - - 1 .cpu cortex-m0 - 2 .eabi_attribute 20, 1 - 3 .eabi_attribute 21, 1 - 4 .eabi_attribute 23, 3 - 5 .eabi_attribute 24, 1 - 6 .eabi_attribute 25, 1 - 7 .eabi_attribute 26, 1 - 8 .eabi_attribute 30, 1 - 9 .eabi_attribute 34, 0 - 10 .eabi_attribute 18, 4 - 11 .file "stm32f0xx_hal_cortex.c" - 12 .text - 13 .Ltext0: - 14 .cfi_sections .debug_frame - 15 .section .text.HAL_NVIC_SetPriority,"ax",%progbits - 16 .align 1 - 17 .global HAL_NVIC_SetPriority - 18 .syntax unified - 19 .code 16 - 20 .thumb_func - 21 .fpu softvfp - 23 HAL_NVIC_SetPriority: - 24 .LFB37: - 25 .file 1 "Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_cortex.c" - 1:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_cortex.c **** /** - 2:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_cortex.c **** ****************************************************************************** - 3:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_cortex.c **** * @file stm32f0xx_hal_cortex.c - 4:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_cortex.c **** * @author MCD Application Team - 5:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_cortex.c **** * @brief CORTEX HAL module driver. - 6:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_cortex.c **** * This file provides firmware functions to manage the following - 7:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_cortex.c **** * functionalities of the CORTEX: - 8:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_cortex.c **** * + Initialization and de-initialization functions - 9:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_cortex.c **** * + Peripheral Control functions - 10:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_cortex.c **** * - 11:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_cortex.c **** * @verbatim - 12:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_cortex.c **** ============================================================================== - 13:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_cortex.c **** ##### How to use this driver ##### - 14:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_cortex.c **** ============================================================================== - 15:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_cortex.c **** - 16:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_cortex.c **** [..] - 17:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_cortex.c **** *** How to configure Interrupts using CORTEX HAL driver *** - 18:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_cortex.c **** =========================================================== - 19:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_cortex.c **** [..] - 20:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_cortex.c **** This section provides functions allowing to configure the NVIC interrupts (IRQ). - 21:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_cortex.c **** The Cortex-M0 exceptions are managed by CMSIS functions. - 22:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_cortex.c **** (#) Enable and Configure the priority of the selected IRQ Channels. - 23:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_cortex.c **** The priority can be 0..3. - 24:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_cortex.c **** - 25:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_cortex.c **** -@- Lower priority values gives higher priority. - 26:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_cortex.c **** -@- Priority Order: - 27:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_cortex.c **** (#@) Lowest priority. - 28:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_cortex.c **** (#@) Lowest hardware priority (IRQn position). - 29:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_cortex.c **** - 30:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_cortex.c **** (#) Configure the priority of the selected IRQ Channels using HAL_NVIC_SetPriority() - 31:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_cortex.c **** - 32:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_cortex.c **** (#) Enable the selected IRQ Channels using HAL_NVIC_EnableIRQ() - 33:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_cortex.c **** - ARM GAS /tmp/cc8pPmIp.s page 2 - - - 34:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_cortex.c **** -@- Negative value of IRQn_Type are not allowed. - 35:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_cortex.c **** - 36:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_cortex.c **** - 37:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_cortex.c **** [..] - 38:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_cortex.c **** *** How to configure Systick using CORTEX HAL driver *** - 39:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_cortex.c **** ======================================================== - 40:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_cortex.c **** [..] - 41:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_cortex.c **** Setup SysTick Timer for time base. - 42:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_cortex.c **** - 43:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_cortex.c **** (+) The HAL_SYSTICK_Config()function calls the SysTick_Config() function which - 44:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_cortex.c **** is a CMSIS function that: - 45:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_cortex.c **** (++) Configures the SysTick Reload register with value passed as function parameter. - 46:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_cortex.c **** (++) Configures the SysTick IRQ priority to the lowest value (0x03). - 47:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_cortex.c **** (++) Resets the SysTick Counter register. - 48:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_cortex.c **** (++) Configures the SysTick Counter clock source to be Core Clock Source (HCLK). - 49:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_cortex.c **** (++) Enables the SysTick Interrupt. - 50:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_cortex.c **** (++) Starts the SysTick Counter. - 51:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_cortex.c **** - 52:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_cortex.c **** (+) You can change the SysTick Clock source to be HCLK_Div8 by calling the macro - 53:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_cortex.c **** HAL_SYSTICK_CLKSourceConfig(SYSTICK_CLKSOURCE_HCLK_DIV8) just after the - 54:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_cortex.c **** HAL_SYSTICK_Config() function call. The HAL_SYSTICK_CLKSourceConfig() macro is defined - 55:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_cortex.c **** inside the stm32f0xx_hal_cortex.h file. - 56:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_cortex.c **** - 57:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_cortex.c **** (+) You can change the SysTick IRQ priority by calling the - 58:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_cortex.c **** HAL_NVIC_SetPriority(SysTick_IRQn,...) function just after the HAL_SYSTICK_Config() function - 59:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_cortex.c **** call. The HAL_NVIC_SetPriority() call the NVIC_SetPriority() function which is a CMSIS funct - 60:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_cortex.c **** - 61:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_cortex.c **** (+) To adjust the SysTick time base, use the following formula: - 62:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_cortex.c **** - 63:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_cortex.c **** Reload Value = SysTick Counter Clock (Hz) x Desired Time base (s) - 64:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_cortex.c **** (++) Reload Value is the parameter to be passed for HAL_SYSTICK_Config() function - 65:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_cortex.c **** (++) Reload Value should not exceed 0xFFFFFF - 66:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_cortex.c **** - 67:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_cortex.c **** @endverbatim - 68:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_cortex.c **** ****************************************************************************** - 69:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_cortex.c **** * @attention - 70:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_cortex.c **** * - 71:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_cortex.c **** *

© COPYRIGHT(c) 2016 STMicroelectronics

- 72:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_cortex.c **** * - 73:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_cortex.c **** * Redistribution and use in source and binary forms, with or without modification, - 74:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_cortex.c **** * are permitted provided that the following conditions are met: - 75:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_cortex.c **** * 1. Redistributions of source code must retain the above copyright notice, - 76:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_cortex.c **** * this list of conditions and the following disclaimer. - 77:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_cortex.c **** * 2. Redistributions in binary form must reproduce the above copyright notice, - 78:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_cortex.c **** * this list of conditions and the following disclaimer in the documentation - 79:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_cortex.c **** * and/or other materials provided with the distribution. - 80:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_cortex.c **** * 3. Neither the name of STMicroelectronics nor the names of its contributors - 81:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_cortex.c **** * may be used to endorse or promote products derived from this software - 82:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_cortex.c **** * without specific prior written permission. - 83:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_cortex.c **** * - 84:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_cortex.c **** * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" - 85:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_cortex.c **** * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE - 86:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_cortex.c **** * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE - 87:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_cortex.c **** * DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE - 88:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_cortex.c **** * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL - 89:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_cortex.c **** * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR - 90:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_cortex.c **** * SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER - ARM GAS /tmp/cc8pPmIp.s page 3 - - - 91:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_cortex.c **** * CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, - 92:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_cortex.c **** * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE - 93:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_cortex.c **** * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. - 94:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_cortex.c **** * - 95:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_cortex.c **** ****************************************************************************** - 96:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_cortex.c **** */ - 97:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_cortex.c **** - 98:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_cortex.c **** /* Includes ------------------------------------------------------------------*/ - 99:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_cortex.c **** #include "stm32f0xx_hal.h" - 100:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_cortex.c **** - 101:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_cortex.c **** /** @addtogroup STM32F0xx_HAL_Driver - 102:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_cortex.c **** * @{ - 103:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_cortex.c **** */ - 104:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_cortex.c **** - 105:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_cortex.c **** /** @defgroup CORTEX CORTEX - 106:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_cortex.c **** * @brief CORTEX CORTEX HAL module driver - 107:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_cortex.c **** * @{ - 108:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_cortex.c **** */ - 109:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_cortex.c **** - 110:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_cortex.c **** #ifdef HAL_CORTEX_MODULE_ENABLED - 111:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_cortex.c **** - 112:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_cortex.c **** /* Private typedef -----------------------------------------------------------*/ - 113:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_cortex.c **** /* Private define ------------------------------------------------------------*/ - 114:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_cortex.c **** /* Private macro -------------------------------------------------------------*/ - 115:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_cortex.c **** /* Private variables ---------------------------------------------------------*/ - 116:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_cortex.c **** /* Private function prototypes -----------------------------------------------*/ - 117:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_cortex.c **** /* Exported functions ---------------------------------------------------------*/ - 118:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_cortex.c **** - 119:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_cortex.c **** /** @defgroup CORTEX_Exported_Functions CORTEX Exported Functions - 120:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_cortex.c **** * @{ - 121:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_cortex.c **** */ - 122:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_cortex.c **** - 123:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_cortex.c **** - 124:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_cortex.c **** /** @defgroup CORTEX_Exported_Functions_Group1 Initialization and de-initialization functions - 125:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_cortex.c **** * @brief Initialization and Configuration functions - 126:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_cortex.c **** * - 127:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_cortex.c **** @verbatim - 128:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_cortex.c **** ============================================================================== - 129:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_cortex.c **** ##### Initialization and de-initialization functions ##### - 130:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_cortex.c **** ============================================================================== - 131:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_cortex.c **** [..] - 132:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_cortex.c **** This section provides the CORTEX HAL driver functions allowing to configure Interrupts - 133:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_cortex.c **** Systick functionalities - 134:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_cortex.c **** - 135:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_cortex.c **** @endverbatim - 136:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_cortex.c **** * @{ - 137:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_cortex.c **** */ - 138:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_cortex.c **** - 139:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_cortex.c **** /** - 140:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_cortex.c **** * @brief Sets the priority of an interrupt. - 141:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_cortex.c **** * @param IRQn External interrupt number . - 142:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_cortex.c **** * This parameter can be an enumerator of IRQn_Type enumeration - 143:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_cortex.c **** * (For the complete STM32 Devices IRQ Channels list, please refer to stm32f0xx.h file) - 144:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_cortex.c **** * @param PreemptPriority The preemption priority for the IRQn channel. - 145:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_cortex.c **** * This parameter can be a value between 0 and 3. - 146:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_cortex.c **** * A lower priority value indicates a higher priority - 147:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_cortex.c **** * @param SubPriority the subpriority level for the IRQ channel. - ARM GAS /tmp/cc8pPmIp.s page 4 - - - 148:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_cortex.c **** * with stm32f0xx devices, this parameter is a dummy value and it is ignored, because - 149:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_cortex.c **** * no subpriority supported in Cortex M0 based products. - 150:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_cortex.c **** * @retval None - 151:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_cortex.c **** */ - 152:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_cortex.c **** void HAL_NVIC_SetPriority(IRQn_Type IRQn, uint32_t PreemptPriority, uint32_t SubPriority) - 153:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_cortex.c **** { - 26 .loc 1 153 0 - 27 .cfi_startproc - 28 @ args = 0, pretend = 0, frame = 0 - 29 @ frame_needed = 0, uses_anonymous_args = 0 - 30 .LVL0: - 31 0000 70B5 push {r4, r5, r6, lr} - 32 .LCFI0: - 33 .cfi_def_cfa_offset 16 - 34 .cfi_offset 4, -16 - 35 .cfi_offset 5, -12 - 36 .cfi_offset 6, -8 - 37 .cfi_offset 14, -4 - 38 .LVL1: - 39 .LBB26: - 40 .LBB27: - 41 .file 2 "Drivers/CMSIS/Include/core_cm0.h" - 1:Drivers/CMSIS/Include/core_cm0.h **** /**************************************************************************//** - 2:Drivers/CMSIS/Include/core_cm0.h **** * @file core_cm0.h - 3:Drivers/CMSIS/Include/core_cm0.h **** * @brief CMSIS Cortex-M0 Core Peripheral Access Layer Header File - 4:Drivers/CMSIS/Include/core_cm0.h **** * @version V4.30 - 5:Drivers/CMSIS/Include/core_cm0.h **** * @date 20. October 2015 - 6:Drivers/CMSIS/Include/core_cm0.h **** ******************************************************************************/ - 7:Drivers/CMSIS/Include/core_cm0.h **** /* Copyright (c) 2009 - 2015 ARM LIMITED - 8:Drivers/CMSIS/Include/core_cm0.h **** - 9:Drivers/CMSIS/Include/core_cm0.h **** All rights reserved. - 10:Drivers/CMSIS/Include/core_cm0.h **** Redistribution and use in source and binary forms, with or without - 11:Drivers/CMSIS/Include/core_cm0.h **** modification, are permitted provided that the following conditions are met: - 12:Drivers/CMSIS/Include/core_cm0.h **** - Redistributions of source code must retain the above copyright - 13:Drivers/CMSIS/Include/core_cm0.h **** notice, this list of conditions and the following disclaimer. - 14:Drivers/CMSIS/Include/core_cm0.h **** - Redistributions in binary form must reproduce the above copyright - 15:Drivers/CMSIS/Include/core_cm0.h **** notice, this list of conditions and the following disclaimer in the - 16:Drivers/CMSIS/Include/core_cm0.h **** documentation and/or other materials provided with the distribution. - 17:Drivers/CMSIS/Include/core_cm0.h **** - Neither the name of ARM nor the names of its contributors may be used - 18:Drivers/CMSIS/Include/core_cm0.h **** to endorse or promote products derived from this software without - 19:Drivers/CMSIS/Include/core_cm0.h **** specific prior written permission. - 20:Drivers/CMSIS/Include/core_cm0.h **** * - 21:Drivers/CMSIS/Include/core_cm0.h **** THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" - 22:Drivers/CMSIS/Include/core_cm0.h **** AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE - 23:Drivers/CMSIS/Include/core_cm0.h **** IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE - 24:Drivers/CMSIS/Include/core_cm0.h **** ARE DISCLAIMED. IN NO EVENT SHALL COPYRIGHT HOLDERS AND CONTRIBUTORS BE - 25:Drivers/CMSIS/Include/core_cm0.h **** LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR - 26:Drivers/CMSIS/Include/core_cm0.h **** CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF - 27:Drivers/CMSIS/Include/core_cm0.h **** SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS - 28:Drivers/CMSIS/Include/core_cm0.h **** INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN - 29:Drivers/CMSIS/Include/core_cm0.h **** CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) - 30:Drivers/CMSIS/Include/core_cm0.h **** ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE - 31:Drivers/CMSIS/Include/core_cm0.h **** POSSIBILITY OF SUCH DAMAGE. - 32:Drivers/CMSIS/Include/core_cm0.h **** ---------------------------------------------------------------------------*/ - 33:Drivers/CMSIS/Include/core_cm0.h **** - 34:Drivers/CMSIS/Include/core_cm0.h **** - 35:Drivers/CMSIS/Include/core_cm0.h **** #if defined ( __ICCARM__ ) - ARM GAS /tmp/cc8pPmIp.s page 5 - - - 36:Drivers/CMSIS/Include/core_cm0.h **** #pragma system_include /* treat file as system include file for MISRA check */ - 37:Drivers/CMSIS/Include/core_cm0.h **** #elif defined(__ARMCC_VERSION) && (__ARMCC_VERSION >= 6010050) - 38:Drivers/CMSIS/Include/core_cm0.h **** #pragma clang system_header /* treat file as system include file */ - 39:Drivers/CMSIS/Include/core_cm0.h **** #endif - 40:Drivers/CMSIS/Include/core_cm0.h **** - 41:Drivers/CMSIS/Include/core_cm0.h **** #ifndef __CORE_CM0_H_GENERIC - 42:Drivers/CMSIS/Include/core_cm0.h **** #define __CORE_CM0_H_GENERIC - 43:Drivers/CMSIS/Include/core_cm0.h **** - 44:Drivers/CMSIS/Include/core_cm0.h **** #include - 45:Drivers/CMSIS/Include/core_cm0.h **** - 46:Drivers/CMSIS/Include/core_cm0.h **** #ifdef __cplusplus - 47:Drivers/CMSIS/Include/core_cm0.h **** extern "C" { - 48:Drivers/CMSIS/Include/core_cm0.h **** #endif - 49:Drivers/CMSIS/Include/core_cm0.h **** - 50:Drivers/CMSIS/Include/core_cm0.h **** /** - 51:Drivers/CMSIS/Include/core_cm0.h **** \page CMSIS_MISRA_Exceptions MISRA-C:2004 Compliance Exceptions - 52:Drivers/CMSIS/Include/core_cm0.h **** CMSIS violates the following MISRA-C:2004 rules: - 53:Drivers/CMSIS/Include/core_cm0.h **** - 54:Drivers/CMSIS/Include/core_cm0.h **** \li Required Rule 8.5, object/function definition in header file.
- 55:Drivers/CMSIS/Include/core_cm0.h **** Function definitions in header files are used to allow 'inlining'. - 56:Drivers/CMSIS/Include/core_cm0.h **** - 57:Drivers/CMSIS/Include/core_cm0.h **** \li Required Rule 18.4, declaration of union type or object of union type: '{...}'.
- 58:Drivers/CMSIS/Include/core_cm0.h **** Unions are used for effective representation of core registers. - 59:Drivers/CMSIS/Include/core_cm0.h **** - 60:Drivers/CMSIS/Include/core_cm0.h **** \li Advisory Rule 19.7, Function-like macro defined.
- 61:Drivers/CMSIS/Include/core_cm0.h **** Function-like macros are used to allow more efficient code. - 62:Drivers/CMSIS/Include/core_cm0.h **** */ - 63:Drivers/CMSIS/Include/core_cm0.h **** - 64:Drivers/CMSIS/Include/core_cm0.h **** - 65:Drivers/CMSIS/Include/core_cm0.h **** /******************************************************************************* - 66:Drivers/CMSIS/Include/core_cm0.h **** * CMSIS definitions - 67:Drivers/CMSIS/Include/core_cm0.h **** ******************************************************************************/ - 68:Drivers/CMSIS/Include/core_cm0.h **** /** - 69:Drivers/CMSIS/Include/core_cm0.h **** \ingroup Cortex_M0 - 70:Drivers/CMSIS/Include/core_cm0.h **** @{ - 71:Drivers/CMSIS/Include/core_cm0.h **** */ - 72:Drivers/CMSIS/Include/core_cm0.h **** - 73:Drivers/CMSIS/Include/core_cm0.h **** /* CMSIS CM0 definitions */ - 74:Drivers/CMSIS/Include/core_cm0.h **** #define __CM0_CMSIS_VERSION_MAIN (0x04U) /*!< [31:16] CMSIS H - 75:Drivers/CMSIS/Include/core_cm0.h **** #define __CM0_CMSIS_VERSION_SUB (0x1EU) /*!< [15:0] CMSIS H - 76:Drivers/CMSIS/Include/core_cm0.h **** #define __CM0_CMSIS_VERSION ((__CM0_CMSIS_VERSION_MAIN << 16U) | \ - 77:Drivers/CMSIS/Include/core_cm0.h **** __CM0_CMSIS_VERSION_SUB ) /*!< CMSIS HAL versi - 78:Drivers/CMSIS/Include/core_cm0.h **** - 79:Drivers/CMSIS/Include/core_cm0.h **** #define __CORTEX_M (0x00U) /*!< Cortex-M Core * - 80:Drivers/CMSIS/Include/core_cm0.h **** - 81:Drivers/CMSIS/Include/core_cm0.h **** - 82:Drivers/CMSIS/Include/core_cm0.h **** #if defined ( __CC_ARM ) - 83:Drivers/CMSIS/Include/core_cm0.h **** #define __ASM __asm /*!< asm keyword for ARM Comp - 84:Drivers/CMSIS/Include/core_cm0.h **** #define __INLINE __inline /*!< inline keyword for ARM C - 85:Drivers/CMSIS/Include/core_cm0.h **** #define __STATIC_INLINE static __inline - 86:Drivers/CMSIS/Include/core_cm0.h **** - 87:Drivers/CMSIS/Include/core_cm0.h **** #elif defined(__ARMCC_VERSION) && (__ARMCC_VERSION >= 6010050) - 88:Drivers/CMSIS/Include/core_cm0.h **** #define __ASM __asm /*!< asm keyword for ARM Comp - 89:Drivers/CMSIS/Include/core_cm0.h **** #define __INLINE __inline /*!< inline keyword for ARM C - 90:Drivers/CMSIS/Include/core_cm0.h **** #define __STATIC_INLINE static __inline - 91:Drivers/CMSIS/Include/core_cm0.h **** - 92:Drivers/CMSIS/Include/core_cm0.h **** #elif defined ( __GNUC__ ) - ARM GAS /tmp/cc8pPmIp.s page 6 - - - 93:Drivers/CMSIS/Include/core_cm0.h **** #define __ASM __asm /*!< asm keyword for GNU Comp - 94:Drivers/CMSIS/Include/core_cm0.h **** #define __INLINE inline /*!< inline keyword for GNU C - 95:Drivers/CMSIS/Include/core_cm0.h **** #define __STATIC_INLINE static inline - 96:Drivers/CMSIS/Include/core_cm0.h **** - 97:Drivers/CMSIS/Include/core_cm0.h **** #elif defined ( __ICCARM__ ) - 98:Drivers/CMSIS/Include/core_cm0.h **** #define __ASM __asm /*!< asm keyword for IAR Comp - 99:Drivers/CMSIS/Include/core_cm0.h **** #define __INLINE inline /*!< inline keyword for IAR C - 100:Drivers/CMSIS/Include/core_cm0.h **** #define __STATIC_INLINE static inline - 101:Drivers/CMSIS/Include/core_cm0.h **** - 102:Drivers/CMSIS/Include/core_cm0.h **** #elif defined ( __TMS470__ ) - 103:Drivers/CMSIS/Include/core_cm0.h **** #define __ASM __asm /*!< asm keyword for TI CCS C - 104:Drivers/CMSIS/Include/core_cm0.h **** #define __STATIC_INLINE static inline - 105:Drivers/CMSIS/Include/core_cm0.h **** - 106:Drivers/CMSIS/Include/core_cm0.h **** #elif defined ( __TASKING__ ) - 107:Drivers/CMSIS/Include/core_cm0.h **** #define __ASM __asm /*!< asm keyword for TASKING - 108:Drivers/CMSIS/Include/core_cm0.h **** #define __INLINE inline /*!< inline keyword for TASKI - 109:Drivers/CMSIS/Include/core_cm0.h **** #define __STATIC_INLINE static inline - 110:Drivers/CMSIS/Include/core_cm0.h **** - 111:Drivers/CMSIS/Include/core_cm0.h **** #elif defined ( __CSMC__ ) - 112:Drivers/CMSIS/Include/core_cm0.h **** #define __packed - 113:Drivers/CMSIS/Include/core_cm0.h **** #define __ASM _asm /*!< asm keyword for COSMIC Co - 114:Drivers/CMSIS/Include/core_cm0.h **** #define __INLINE inline /*!< inline keyword for COSMIC - 115:Drivers/CMSIS/Include/core_cm0.h **** #define __STATIC_INLINE static inline - 116:Drivers/CMSIS/Include/core_cm0.h **** - 117:Drivers/CMSIS/Include/core_cm0.h **** #else - 118:Drivers/CMSIS/Include/core_cm0.h **** #error Unknown compiler - 119:Drivers/CMSIS/Include/core_cm0.h **** #endif - 120:Drivers/CMSIS/Include/core_cm0.h **** - 121:Drivers/CMSIS/Include/core_cm0.h **** /** __FPU_USED indicates whether an FPU is used or not. - 122:Drivers/CMSIS/Include/core_cm0.h **** This core does not support an FPU at all - 123:Drivers/CMSIS/Include/core_cm0.h **** */ - 124:Drivers/CMSIS/Include/core_cm0.h **** #define __FPU_USED 0U - 125:Drivers/CMSIS/Include/core_cm0.h **** - 126:Drivers/CMSIS/Include/core_cm0.h **** #if defined ( __CC_ARM ) - 127:Drivers/CMSIS/Include/core_cm0.h **** #if defined __TARGET_FPU_VFP - 128:Drivers/CMSIS/Include/core_cm0.h **** #error "Compiler generates FPU instructions for a device without an FPU (check __FPU_PRESENT)" - 129:Drivers/CMSIS/Include/core_cm0.h **** #endif - 130:Drivers/CMSIS/Include/core_cm0.h **** - 131:Drivers/CMSIS/Include/core_cm0.h **** #elif defined(__ARMCC_VERSION) && (__ARMCC_VERSION >= 6010050) - 132:Drivers/CMSIS/Include/core_cm0.h **** #if defined __ARM_PCS_VFP - 133:Drivers/CMSIS/Include/core_cm0.h **** #error "Compiler generates FPU instructions for a device without an FPU (check __FPU_PRESENT)" - 134:Drivers/CMSIS/Include/core_cm0.h **** #endif - 135:Drivers/CMSIS/Include/core_cm0.h **** - 136:Drivers/CMSIS/Include/core_cm0.h **** #elif defined ( __GNUC__ ) - 137:Drivers/CMSIS/Include/core_cm0.h **** #if defined (__VFP_FP__) && !defined(__SOFTFP__) - 138:Drivers/CMSIS/Include/core_cm0.h **** #error "Compiler generates FPU instructions for a device without an FPU (check __FPU_PRESENT)" - 139:Drivers/CMSIS/Include/core_cm0.h **** #endif - 140:Drivers/CMSIS/Include/core_cm0.h **** - 141:Drivers/CMSIS/Include/core_cm0.h **** #elif defined ( __ICCARM__ ) - 142:Drivers/CMSIS/Include/core_cm0.h **** #if defined __ARMVFP__ - 143:Drivers/CMSIS/Include/core_cm0.h **** #error "Compiler generates FPU instructions for a device without an FPU (check __FPU_PRESENT)" - 144:Drivers/CMSIS/Include/core_cm0.h **** #endif - 145:Drivers/CMSIS/Include/core_cm0.h **** - 146:Drivers/CMSIS/Include/core_cm0.h **** #elif defined ( __TMS470__ ) - 147:Drivers/CMSIS/Include/core_cm0.h **** #if defined __TI_VFP_SUPPORT__ - 148:Drivers/CMSIS/Include/core_cm0.h **** #error "Compiler generates FPU instructions for a device without an FPU (check __FPU_PRESENT)" - 149:Drivers/CMSIS/Include/core_cm0.h **** #endif - ARM GAS /tmp/cc8pPmIp.s page 7 - - - 150:Drivers/CMSIS/Include/core_cm0.h **** - 151:Drivers/CMSIS/Include/core_cm0.h **** #elif defined ( __TASKING__ ) - 152:Drivers/CMSIS/Include/core_cm0.h **** #if defined __FPU_VFP__ - 153:Drivers/CMSIS/Include/core_cm0.h **** #error "Compiler generates FPU instructions for a device without an FPU (check __FPU_PRESENT)" - 154:Drivers/CMSIS/Include/core_cm0.h **** #endif - 155:Drivers/CMSIS/Include/core_cm0.h **** - 156:Drivers/CMSIS/Include/core_cm0.h **** #elif defined ( __CSMC__ ) - 157:Drivers/CMSIS/Include/core_cm0.h **** #if ( __CSMC__ & 0x400U) - 158:Drivers/CMSIS/Include/core_cm0.h **** #error "Compiler generates FPU instructions for a device without an FPU (check __FPU_PRESENT)" - 159:Drivers/CMSIS/Include/core_cm0.h **** #endif - 160:Drivers/CMSIS/Include/core_cm0.h **** - 161:Drivers/CMSIS/Include/core_cm0.h **** #endif - 162:Drivers/CMSIS/Include/core_cm0.h **** - 163:Drivers/CMSIS/Include/core_cm0.h **** #include "core_cmInstr.h" /* Core Instruction Access */ - 164:Drivers/CMSIS/Include/core_cm0.h **** #include "core_cmFunc.h" /* Core Function Access */ - 165:Drivers/CMSIS/Include/core_cm0.h **** - 166:Drivers/CMSIS/Include/core_cm0.h **** #ifdef __cplusplus - 167:Drivers/CMSIS/Include/core_cm0.h **** } - 168:Drivers/CMSIS/Include/core_cm0.h **** #endif - 169:Drivers/CMSIS/Include/core_cm0.h **** - 170:Drivers/CMSIS/Include/core_cm0.h **** #endif /* __CORE_CM0_H_GENERIC */ - 171:Drivers/CMSIS/Include/core_cm0.h **** - 172:Drivers/CMSIS/Include/core_cm0.h **** #ifndef __CMSIS_GENERIC - 173:Drivers/CMSIS/Include/core_cm0.h **** - 174:Drivers/CMSIS/Include/core_cm0.h **** #ifndef __CORE_CM0_H_DEPENDANT - 175:Drivers/CMSIS/Include/core_cm0.h **** #define __CORE_CM0_H_DEPENDANT - 176:Drivers/CMSIS/Include/core_cm0.h **** - 177:Drivers/CMSIS/Include/core_cm0.h **** #ifdef __cplusplus - 178:Drivers/CMSIS/Include/core_cm0.h **** extern "C" { - 179:Drivers/CMSIS/Include/core_cm0.h **** #endif - 180:Drivers/CMSIS/Include/core_cm0.h **** - 181:Drivers/CMSIS/Include/core_cm0.h **** /* check device defines and use defaults */ - 182:Drivers/CMSIS/Include/core_cm0.h **** #if defined __CHECK_DEVICE_DEFINES - 183:Drivers/CMSIS/Include/core_cm0.h **** #ifndef __CM0_REV - 184:Drivers/CMSIS/Include/core_cm0.h **** #define __CM0_REV 0x0000U - 185:Drivers/CMSIS/Include/core_cm0.h **** #warning "__CM0_REV not defined in device header file; using default!" - 186:Drivers/CMSIS/Include/core_cm0.h **** #endif - 187:Drivers/CMSIS/Include/core_cm0.h **** - 188:Drivers/CMSIS/Include/core_cm0.h **** #ifndef __NVIC_PRIO_BITS - 189:Drivers/CMSIS/Include/core_cm0.h **** #define __NVIC_PRIO_BITS 2U - 190:Drivers/CMSIS/Include/core_cm0.h **** #warning "__NVIC_PRIO_BITS not defined in device header file; using default!" - 191:Drivers/CMSIS/Include/core_cm0.h **** #endif - 192:Drivers/CMSIS/Include/core_cm0.h **** - 193:Drivers/CMSIS/Include/core_cm0.h **** #ifndef __Vendor_SysTickConfig - 194:Drivers/CMSIS/Include/core_cm0.h **** #define __Vendor_SysTickConfig 0U - 195:Drivers/CMSIS/Include/core_cm0.h **** #warning "__Vendor_SysTickConfig not defined in device header file; using default!" - 196:Drivers/CMSIS/Include/core_cm0.h **** #endif - 197:Drivers/CMSIS/Include/core_cm0.h **** #endif - 198:Drivers/CMSIS/Include/core_cm0.h **** - 199:Drivers/CMSIS/Include/core_cm0.h **** /* IO definitions (access restrictions to peripheral registers) */ - 200:Drivers/CMSIS/Include/core_cm0.h **** /** - 201:Drivers/CMSIS/Include/core_cm0.h **** \defgroup CMSIS_glob_defs CMSIS Global Defines - 202:Drivers/CMSIS/Include/core_cm0.h **** - 203:Drivers/CMSIS/Include/core_cm0.h **** IO Type Qualifiers are used - 204:Drivers/CMSIS/Include/core_cm0.h **** \li to specify the access to peripheral variables. - 205:Drivers/CMSIS/Include/core_cm0.h **** \li for automatic generation of peripheral register debug information. - 206:Drivers/CMSIS/Include/core_cm0.h **** */ - ARM GAS /tmp/cc8pPmIp.s page 8 - - - 207:Drivers/CMSIS/Include/core_cm0.h **** #ifdef __cplusplus - 208:Drivers/CMSIS/Include/core_cm0.h **** #define __I volatile /*!< Defines 'read only' permissions */ - 209:Drivers/CMSIS/Include/core_cm0.h **** #else - 210:Drivers/CMSIS/Include/core_cm0.h **** #define __I volatile const /*!< Defines 'read only' permissions */ - 211:Drivers/CMSIS/Include/core_cm0.h **** #endif - 212:Drivers/CMSIS/Include/core_cm0.h **** #define __O volatile /*!< Defines 'write only' permissions */ - 213:Drivers/CMSIS/Include/core_cm0.h **** #define __IO volatile /*!< Defines 'read / write' permissions */ - 214:Drivers/CMSIS/Include/core_cm0.h **** - 215:Drivers/CMSIS/Include/core_cm0.h **** /* following defines should be used for structure members */ - 216:Drivers/CMSIS/Include/core_cm0.h **** #define __IM volatile const /*! Defines 'read only' structure member permissions */ - 217:Drivers/CMSIS/Include/core_cm0.h **** #define __OM volatile /*! Defines 'write only' structure member permissions */ - 218:Drivers/CMSIS/Include/core_cm0.h **** #define __IOM volatile /*! Defines 'read / write' structure member permissions */ - 219:Drivers/CMSIS/Include/core_cm0.h **** - 220:Drivers/CMSIS/Include/core_cm0.h **** /*@} end of group Cortex_M0 */ - 221:Drivers/CMSIS/Include/core_cm0.h **** - 222:Drivers/CMSIS/Include/core_cm0.h **** - 223:Drivers/CMSIS/Include/core_cm0.h **** - 224:Drivers/CMSIS/Include/core_cm0.h **** /******************************************************************************* - 225:Drivers/CMSIS/Include/core_cm0.h **** * Register Abstraction - 226:Drivers/CMSIS/Include/core_cm0.h **** Core Register contain: - 227:Drivers/CMSIS/Include/core_cm0.h **** - Core Register - 228:Drivers/CMSIS/Include/core_cm0.h **** - Core NVIC Register - 229:Drivers/CMSIS/Include/core_cm0.h **** - Core SCB Register - 230:Drivers/CMSIS/Include/core_cm0.h **** - Core SysTick Register - 231:Drivers/CMSIS/Include/core_cm0.h **** ******************************************************************************/ - 232:Drivers/CMSIS/Include/core_cm0.h **** /** - 233:Drivers/CMSIS/Include/core_cm0.h **** \defgroup CMSIS_core_register Defines and Type Definitions - 234:Drivers/CMSIS/Include/core_cm0.h **** \brief Type definitions and defines for Cortex-M processor based devices. - 235:Drivers/CMSIS/Include/core_cm0.h **** */ - 236:Drivers/CMSIS/Include/core_cm0.h **** - 237:Drivers/CMSIS/Include/core_cm0.h **** /** - 238:Drivers/CMSIS/Include/core_cm0.h **** \ingroup CMSIS_core_register - 239:Drivers/CMSIS/Include/core_cm0.h **** \defgroup CMSIS_CORE Status and Control Registers - 240:Drivers/CMSIS/Include/core_cm0.h **** \brief Core Register type definitions. - 241:Drivers/CMSIS/Include/core_cm0.h **** @{ - 242:Drivers/CMSIS/Include/core_cm0.h **** */ - 243:Drivers/CMSIS/Include/core_cm0.h **** - 244:Drivers/CMSIS/Include/core_cm0.h **** /** - 245:Drivers/CMSIS/Include/core_cm0.h **** \brief Union type to access the Application Program Status Register (APSR). - 246:Drivers/CMSIS/Include/core_cm0.h **** */ - 247:Drivers/CMSIS/Include/core_cm0.h **** typedef union - 248:Drivers/CMSIS/Include/core_cm0.h **** { - 249:Drivers/CMSIS/Include/core_cm0.h **** struct - 250:Drivers/CMSIS/Include/core_cm0.h **** { - 251:Drivers/CMSIS/Include/core_cm0.h **** uint32_t _reserved0:28; /*!< bit: 0..27 Reserved */ - 252:Drivers/CMSIS/Include/core_cm0.h **** uint32_t V:1; /*!< bit: 28 Overflow condition code flag */ - 253:Drivers/CMSIS/Include/core_cm0.h **** uint32_t C:1; /*!< bit: 29 Carry condition code flag */ - 254:Drivers/CMSIS/Include/core_cm0.h **** uint32_t Z:1; /*!< bit: 30 Zero condition code flag */ - 255:Drivers/CMSIS/Include/core_cm0.h **** uint32_t N:1; /*!< bit: 31 Negative condition code flag */ - 256:Drivers/CMSIS/Include/core_cm0.h **** } b; /*!< Structure used for bit access */ - 257:Drivers/CMSIS/Include/core_cm0.h **** uint32_t w; /*!< Type used for word access */ - 258:Drivers/CMSIS/Include/core_cm0.h **** } APSR_Type; - 259:Drivers/CMSIS/Include/core_cm0.h **** - 260:Drivers/CMSIS/Include/core_cm0.h **** /* APSR Register Definitions */ - 261:Drivers/CMSIS/Include/core_cm0.h **** #define APSR_N_Pos 31U /*!< APSR - 262:Drivers/CMSIS/Include/core_cm0.h **** #define APSR_N_Msk (1UL << APSR_N_Pos) /*!< APSR - 263:Drivers/CMSIS/Include/core_cm0.h **** - ARM GAS /tmp/cc8pPmIp.s page 9 - - - 264:Drivers/CMSIS/Include/core_cm0.h **** #define APSR_Z_Pos 30U /*!< APSR - 265:Drivers/CMSIS/Include/core_cm0.h **** #define APSR_Z_Msk (1UL << APSR_Z_Pos) /*!< APSR - 266:Drivers/CMSIS/Include/core_cm0.h **** - 267:Drivers/CMSIS/Include/core_cm0.h **** #define APSR_C_Pos 29U /*!< APSR - 268:Drivers/CMSIS/Include/core_cm0.h **** #define APSR_C_Msk (1UL << APSR_C_Pos) /*!< APSR - 269:Drivers/CMSIS/Include/core_cm0.h **** - 270:Drivers/CMSIS/Include/core_cm0.h **** #define APSR_V_Pos 28U /*!< APSR - 271:Drivers/CMSIS/Include/core_cm0.h **** #define APSR_V_Msk (1UL << APSR_V_Pos) /*!< APSR - 272:Drivers/CMSIS/Include/core_cm0.h **** - 273:Drivers/CMSIS/Include/core_cm0.h **** - 274:Drivers/CMSIS/Include/core_cm0.h **** /** - 275:Drivers/CMSIS/Include/core_cm0.h **** \brief Union type to access the Interrupt Program Status Register (IPSR). - 276:Drivers/CMSIS/Include/core_cm0.h **** */ - 277:Drivers/CMSIS/Include/core_cm0.h **** typedef union - 278:Drivers/CMSIS/Include/core_cm0.h **** { - 279:Drivers/CMSIS/Include/core_cm0.h **** struct - 280:Drivers/CMSIS/Include/core_cm0.h **** { - 281:Drivers/CMSIS/Include/core_cm0.h **** uint32_t ISR:9; /*!< bit: 0.. 8 Exception number */ - 282:Drivers/CMSIS/Include/core_cm0.h **** uint32_t _reserved0:23; /*!< bit: 9..31 Reserved */ - 283:Drivers/CMSIS/Include/core_cm0.h **** } b; /*!< Structure used for bit access */ - 284:Drivers/CMSIS/Include/core_cm0.h **** uint32_t w; /*!< Type used for word access */ - 285:Drivers/CMSIS/Include/core_cm0.h **** } IPSR_Type; - 286:Drivers/CMSIS/Include/core_cm0.h **** - 287:Drivers/CMSIS/Include/core_cm0.h **** /* IPSR Register Definitions */ - 288:Drivers/CMSIS/Include/core_cm0.h **** #define IPSR_ISR_Pos 0U /*!< IPSR - 289:Drivers/CMSIS/Include/core_cm0.h **** #define IPSR_ISR_Msk (0x1FFUL /*<< IPSR_ISR_Pos*/) /*!< IPSR - 290:Drivers/CMSIS/Include/core_cm0.h **** - 291:Drivers/CMSIS/Include/core_cm0.h **** - 292:Drivers/CMSIS/Include/core_cm0.h **** /** - 293:Drivers/CMSIS/Include/core_cm0.h **** \brief Union type to access the Special-Purpose Program Status Registers (xPSR). - 294:Drivers/CMSIS/Include/core_cm0.h **** */ - 295:Drivers/CMSIS/Include/core_cm0.h **** typedef union - 296:Drivers/CMSIS/Include/core_cm0.h **** { - 297:Drivers/CMSIS/Include/core_cm0.h **** struct - 298:Drivers/CMSIS/Include/core_cm0.h **** { - 299:Drivers/CMSIS/Include/core_cm0.h **** uint32_t ISR:9; /*!< bit: 0.. 8 Exception number */ - 300:Drivers/CMSIS/Include/core_cm0.h **** uint32_t _reserved0:15; /*!< bit: 9..23 Reserved */ - 301:Drivers/CMSIS/Include/core_cm0.h **** uint32_t T:1; /*!< bit: 24 Thumb bit (read 0) */ - 302:Drivers/CMSIS/Include/core_cm0.h **** uint32_t _reserved1:3; /*!< bit: 25..27 Reserved */ - 303:Drivers/CMSIS/Include/core_cm0.h **** uint32_t V:1; /*!< bit: 28 Overflow condition code flag */ - 304:Drivers/CMSIS/Include/core_cm0.h **** uint32_t C:1; /*!< bit: 29 Carry condition code flag */ - 305:Drivers/CMSIS/Include/core_cm0.h **** uint32_t Z:1; /*!< bit: 30 Zero condition code flag */ - 306:Drivers/CMSIS/Include/core_cm0.h **** uint32_t N:1; /*!< bit: 31 Negative condition code flag */ - 307:Drivers/CMSIS/Include/core_cm0.h **** } b; /*!< Structure used for bit access */ - 308:Drivers/CMSIS/Include/core_cm0.h **** uint32_t w; /*!< Type used for word access */ - 309:Drivers/CMSIS/Include/core_cm0.h **** } xPSR_Type; - 310:Drivers/CMSIS/Include/core_cm0.h **** - 311:Drivers/CMSIS/Include/core_cm0.h **** /* xPSR Register Definitions */ - 312:Drivers/CMSIS/Include/core_cm0.h **** #define xPSR_N_Pos 31U /*!< xPSR - 313:Drivers/CMSIS/Include/core_cm0.h **** #define xPSR_N_Msk (1UL << xPSR_N_Pos) /*!< xPSR - 314:Drivers/CMSIS/Include/core_cm0.h **** - 315:Drivers/CMSIS/Include/core_cm0.h **** #define xPSR_Z_Pos 30U /*!< xPSR - 316:Drivers/CMSIS/Include/core_cm0.h **** #define xPSR_Z_Msk (1UL << xPSR_Z_Pos) /*!< xPSR - 317:Drivers/CMSIS/Include/core_cm0.h **** - 318:Drivers/CMSIS/Include/core_cm0.h **** #define xPSR_C_Pos 29U /*!< xPSR - 319:Drivers/CMSIS/Include/core_cm0.h **** #define xPSR_C_Msk (1UL << xPSR_C_Pos) /*!< xPSR - 320:Drivers/CMSIS/Include/core_cm0.h **** - ARM GAS /tmp/cc8pPmIp.s page 10 - - - 321:Drivers/CMSIS/Include/core_cm0.h **** #define xPSR_V_Pos 28U /*!< xPSR - 322:Drivers/CMSIS/Include/core_cm0.h **** #define xPSR_V_Msk (1UL << xPSR_V_Pos) /*!< xPSR - 323:Drivers/CMSIS/Include/core_cm0.h **** - 324:Drivers/CMSIS/Include/core_cm0.h **** #define xPSR_T_Pos 24U /*!< xPSR - 325:Drivers/CMSIS/Include/core_cm0.h **** #define xPSR_T_Msk (1UL << xPSR_T_Pos) /*!< xPSR - 326:Drivers/CMSIS/Include/core_cm0.h **** - 327:Drivers/CMSIS/Include/core_cm0.h **** #define xPSR_ISR_Pos 0U /*!< xPSR - 328:Drivers/CMSIS/Include/core_cm0.h **** #define xPSR_ISR_Msk (0x1FFUL /*<< xPSR_ISR_Pos*/) /*!< xPSR - 329:Drivers/CMSIS/Include/core_cm0.h **** - 330:Drivers/CMSIS/Include/core_cm0.h **** - 331:Drivers/CMSIS/Include/core_cm0.h **** /** - 332:Drivers/CMSIS/Include/core_cm0.h **** \brief Union type to access the Control Registers (CONTROL). - 333:Drivers/CMSIS/Include/core_cm0.h **** */ - 334:Drivers/CMSIS/Include/core_cm0.h **** typedef union - 335:Drivers/CMSIS/Include/core_cm0.h **** { - 336:Drivers/CMSIS/Include/core_cm0.h **** struct - 337:Drivers/CMSIS/Include/core_cm0.h **** { - 338:Drivers/CMSIS/Include/core_cm0.h **** uint32_t _reserved0:1; /*!< bit: 0 Reserved */ - 339:Drivers/CMSIS/Include/core_cm0.h **** uint32_t SPSEL:1; /*!< bit: 1 Stack to be used */ - 340:Drivers/CMSIS/Include/core_cm0.h **** uint32_t _reserved1:30; /*!< bit: 2..31 Reserved */ - 341:Drivers/CMSIS/Include/core_cm0.h **** } b; /*!< Structure used for bit access */ - 342:Drivers/CMSIS/Include/core_cm0.h **** uint32_t w; /*!< Type used for word access */ - 343:Drivers/CMSIS/Include/core_cm0.h **** } CONTROL_Type; - 344:Drivers/CMSIS/Include/core_cm0.h **** - 345:Drivers/CMSIS/Include/core_cm0.h **** /* CONTROL Register Definitions */ - 346:Drivers/CMSIS/Include/core_cm0.h **** #define CONTROL_SPSEL_Pos 1U /*!< CONT - 347:Drivers/CMSIS/Include/core_cm0.h **** #define CONTROL_SPSEL_Msk (1UL << CONTROL_SPSEL_Pos) /*!< CONT - 348:Drivers/CMSIS/Include/core_cm0.h **** - 349:Drivers/CMSIS/Include/core_cm0.h **** /*@} end of group CMSIS_CORE */ - 350:Drivers/CMSIS/Include/core_cm0.h **** - 351:Drivers/CMSIS/Include/core_cm0.h **** - 352:Drivers/CMSIS/Include/core_cm0.h **** /** - 353:Drivers/CMSIS/Include/core_cm0.h **** \ingroup CMSIS_core_register - 354:Drivers/CMSIS/Include/core_cm0.h **** \defgroup CMSIS_NVIC Nested Vectored Interrupt Controller (NVIC) - 355:Drivers/CMSIS/Include/core_cm0.h **** \brief Type definitions for the NVIC Registers - 356:Drivers/CMSIS/Include/core_cm0.h **** @{ - 357:Drivers/CMSIS/Include/core_cm0.h **** */ - 358:Drivers/CMSIS/Include/core_cm0.h **** - 359:Drivers/CMSIS/Include/core_cm0.h **** /** - 360:Drivers/CMSIS/Include/core_cm0.h **** \brief Structure type to access the Nested Vectored Interrupt Controller (NVIC). - 361:Drivers/CMSIS/Include/core_cm0.h **** */ - 362:Drivers/CMSIS/Include/core_cm0.h **** typedef struct - 363:Drivers/CMSIS/Include/core_cm0.h **** { - 364:Drivers/CMSIS/Include/core_cm0.h **** __IOM uint32_t ISER[1U]; /*!< Offset: 0x000 (R/W) Interrupt Set Enable Register */ - 365:Drivers/CMSIS/Include/core_cm0.h **** uint32_t RESERVED0[31U]; - 366:Drivers/CMSIS/Include/core_cm0.h **** __IOM uint32_t ICER[1U]; /*!< Offset: 0x080 (R/W) Interrupt Clear Enable Register - 367:Drivers/CMSIS/Include/core_cm0.h **** uint32_t RSERVED1[31U]; - 368:Drivers/CMSIS/Include/core_cm0.h **** __IOM uint32_t ISPR[1U]; /*!< Offset: 0x100 (R/W) Interrupt Set Pending Register * - 369:Drivers/CMSIS/Include/core_cm0.h **** uint32_t RESERVED2[31U]; - 370:Drivers/CMSIS/Include/core_cm0.h **** __IOM uint32_t ICPR[1U]; /*!< Offset: 0x180 (R/W) Interrupt Clear Pending Register - 371:Drivers/CMSIS/Include/core_cm0.h **** uint32_t RESERVED3[31U]; - 372:Drivers/CMSIS/Include/core_cm0.h **** uint32_t RESERVED4[64U]; - 373:Drivers/CMSIS/Include/core_cm0.h **** __IOM uint32_t IP[8U]; /*!< Offset: 0x300 (R/W) Interrupt Priority Register */ - 374:Drivers/CMSIS/Include/core_cm0.h **** } NVIC_Type; - 375:Drivers/CMSIS/Include/core_cm0.h **** - 376:Drivers/CMSIS/Include/core_cm0.h **** /*@} end of group CMSIS_NVIC */ - 377:Drivers/CMSIS/Include/core_cm0.h **** - ARM GAS /tmp/cc8pPmIp.s page 11 - - - 378:Drivers/CMSIS/Include/core_cm0.h **** - 379:Drivers/CMSIS/Include/core_cm0.h **** /** - 380:Drivers/CMSIS/Include/core_cm0.h **** \ingroup CMSIS_core_register - 381:Drivers/CMSIS/Include/core_cm0.h **** \defgroup CMSIS_SCB System Control Block (SCB) - 382:Drivers/CMSIS/Include/core_cm0.h **** \brief Type definitions for the System Control Block Registers - 383:Drivers/CMSIS/Include/core_cm0.h **** @{ - 384:Drivers/CMSIS/Include/core_cm0.h **** */ - 385:Drivers/CMSIS/Include/core_cm0.h **** - 386:Drivers/CMSIS/Include/core_cm0.h **** /** - 387:Drivers/CMSIS/Include/core_cm0.h **** \brief Structure type to access the System Control Block (SCB). - 388:Drivers/CMSIS/Include/core_cm0.h **** */ - 389:Drivers/CMSIS/Include/core_cm0.h **** typedef struct - 390:Drivers/CMSIS/Include/core_cm0.h **** { - 391:Drivers/CMSIS/Include/core_cm0.h **** __IM uint32_t CPUID; /*!< Offset: 0x000 (R/ ) CPUID Base Register */ - 392:Drivers/CMSIS/Include/core_cm0.h **** __IOM uint32_t ICSR; /*!< Offset: 0x004 (R/W) Interrupt Control and State Regi - 393:Drivers/CMSIS/Include/core_cm0.h **** uint32_t RESERVED0; - 394:Drivers/CMSIS/Include/core_cm0.h **** __IOM uint32_t AIRCR; /*!< Offset: 0x00C (R/W) Application Interrupt and Reset - 395:Drivers/CMSIS/Include/core_cm0.h **** __IOM uint32_t SCR; /*!< Offset: 0x010 (R/W) System Control Register */ - 396:Drivers/CMSIS/Include/core_cm0.h **** __IOM uint32_t CCR; /*!< Offset: 0x014 (R/W) Configuration Control Register * - 397:Drivers/CMSIS/Include/core_cm0.h **** uint32_t RESERVED1; - 398:Drivers/CMSIS/Include/core_cm0.h **** __IOM uint32_t SHP[2U]; /*!< Offset: 0x01C (R/W) System Handlers Priority Registe - 399:Drivers/CMSIS/Include/core_cm0.h **** __IOM uint32_t SHCSR; /*!< Offset: 0x024 (R/W) System Handler Control and State - 400:Drivers/CMSIS/Include/core_cm0.h **** } SCB_Type; - 401:Drivers/CMSIS/Include/core_cm0.h **** - 402:Drivers/CMSIS/Include/core_cm0.h **** /* SCB CPUID Register Definitions */ - 403:Drivers/CMSIS/Include/core_cm0.h **** #define SCB_CPUID_IMPLEMENTER_Pos 24U /*!< SCB - 404:Drivers/CMSIS/Include/core_cm0.h **** #define SCB_CPUID_IMPLEMENTER_Msk (0xFFUL << SCB_CPUID_IMPLEMENTER_Pos) /*!< SCB - 405:Drivers/CMSIS/Include/core_cm0.h **** - 406:Drivers/CMSIS/Include/core_cm0.h **** #define SCB_CPUID_VARIANT_Pos 20U /*!< SCB - 407:Drivers/CMSIS/Include/core_cm0.h **** #define SCB_CPUID_VARIANT_Msk (0xFUL << SCB_CPUID_VARIANT_Pos) /*!< SCB - 408:Drivers/CMSIS/Include/core_cm0.h **** - 409:Drivers/CMSIS/Include/core_cm0.h **** #define SCB_CPUID_ARCHITECTURE_Pos 16U /*!< SCB - 410:Drivers/CMSIS/Include/core_cm0.h **** #define SCB_CPUID_ARCHITECTURE_Msk (0xFUL << SCB_CPUID_ARCHITECTURE_Pos) /*!< SCB - 411:Drivers/CMSIS/Include/core_cm0.h **** - 412:Drivers/CMSIS/Include/core_cm0.h **** #define SCB_CPUID_PARTNO_Pos 4U /*!< SCB - 413:Drivers/CMSIS/Include/core_cm0.h **** #define SCB_CPUID_PARTNO_Msk (0xFFFUL << SCB_CPUID_PARTNO_Pos) /*!< SCB - 414:Drivers/CMSIS/Include/core_cm0.h **** - 415:Drivers/CMSIS/Include/core_cm0.h **** #define SCB_CPUID_REVISION_Pos 0U /*!< SCB - 416:Drivers/CMSIS/Include/core_cm0.h **** #define SCB_CPUID_REVISION_Msk (0xFUL /*<< SCB_CPUID_REVISION_Pos*/) /*!< SCB - 417:Drivers/CMSIS/Include/core_cm0.h **** - 418:Drivers/CMSIS/Include/core_cm0.h **** /* SCB Interrupt Control State Register Definitions */ - 419:Drivers/CMSIS/Include/core_cm0.h **** #define SCB_ICSR_NMIPENDSET_Pos 31U /*!< SCB - 420:Drivers/CMSIS/Include/core_cm0.h **** #define SCB_ICSR_NMIPENDSET_Msk (1UL << SCB_ICSR_NMIPENDSET_Pos) /*!< SCB - 421:Drivers/CMSIS/Include/core_cm0.h **** - 422:Drivers/CMSIS/Include/core_cm0.h **** #define SCB_ICSR_PENDSVSET_Pos 28U /*!< SCB - 423:Drivers/CMSIS/Include/core_cm0.h **** #define SCB_ICSR_PENDSVSET_Msk (1UL << SCB_ICSR_PENDSVSET_Pos) /*!< SCB - 424:Drivers/CMSIS/Include/core_cm0.h **** - 425:Drivers/CMSIS/Include/core_cm0.h **** #define SCB_ICSR_PENDSVCLR_Pos 27U /*!< SCB - 426:Drivers/CMSIS/Include/core_cm0.h **** #define SCB_ICSR_PENDSVCLR_Msk (1UL << SCB_ICSR_PENDSVCLR_Pos) /*!< SCB - 427:Drivers/CMSIS/Include/core_cm0.h **** - 428:Drivers/CMSIS/Include/core_cm0.h **** #define SCB_ICSR_PENDSTSET_Pos 26U /*!< SCB - 429:Drivers/CMSIS/Include/core_cm0.h **** #define SCB_ICSR_PENDSTSET_Msk (1UL << SCB_ICSR_PENDSTSET_Pos) /*!< SCB - 430:Drivers/CMSIS/Include/core_cm0.h **** - 431:Drivers/CMSIS/Include/core_cm0.h **** #define SCB_ICSR_PENDSTCLR_Pos 25U /*!< SCB - 432:Drivers/CMSIS/Include/core_cm0.h **** #define SCB_ICSR_PENDSTCLR_Msk (1UL << SCB_ICSR_PENDSTCLR_Pos) /*!< SCB - 433:Drivers/CMSIS/Include/core_cm0.h **** - 434:Drivers/CMSIS/Include/core_cm0.h **** #define SCB_ICSR_ISRPREEMPT_Pos 23U /*!< SCB - ARM GAS /tmp/cc8pPmIp.s page 12 - - - 435:Drivers/CMSIS/Include/core_cm0.h **** #define SCB_ICSR_ISRPREEMPT_Msk (1UL << SCB_ICSR_ISRPREEMPT_Pos) /*!< SCB - 436:Drivers/CMSIS/Include/core_cm0.h **** - 437:Drivers/CMSIS/Include/core_cm0.h **** #define SCB_ICSR_ISRPENDING_Pos 22U /*!< SCB - 438:Drivers/CMSIS/Include/core_cm0.h **** #define SCB_ICSR_ISRPENDING_Msk (1UL << SCB_ICSR_ISRPENDING_Pos) /*!< SCB - 439:Drivers/CMSIS/Include/core_cm0.h **** - 440:Drivers/CMSIS/Include/core_cm0.h **** #define SCB_ICSR_VECTPENDING_Pos 12U /*!< SCB - 441:Drivers/CMSIS/Include/core_cm0.h **** #define SCB_ICSR_VECTPENDING_Msk (0x1FFUL << SCB_ICSR_VECTPENDING_Pos) /*!< SCB - 442:Drivers/CMSIS/Include/core_cm0.h **** - 443:Drivers/CMSIS/Include/core_cm0.h **** #define SCB_ICSR_VECTACTIVE_Pos 0U /*!< SCB - 444:Drivers/CMSIS/Include/core_cm0.h **** #define SCB_ICSR_VECTACTIVE_Msk (0x1FFUL /*<< SCB_ICSR_VECTACTIVE_Pos*/) /*!< SCB - 445:Drivers/CMSIS/Include/core_cm0.h **** - 446:Drivers/CMSIS/Include/core_cm0.h **** /* SCB Application Interrupt and Reset Control Register Definitions */ - 447:Drivers/CMSIS/Include/core_cm0.h **** #define SCB_AIRCR_VECTKEY_Pos 16U /*!< SCB - 448:Drivers/CMSIS/Include/core_cm0.h **** #define SCB_AIRCR_VECTKEY_Msk (0xFFFFUL << SCB_AIRCR_VECTKEY_Pos) /*!< SCB - 449:Drivers/CMSIS/Include/core_cm0.h **** - 450:Drivers/CMSIS/Include/core_cm0.h **** #define SCB_AIRCR_VECTKEYSTAT_Pos 16U /*!< SCB - 451:Drivers/CMSIS/Include/core_cm0.h **** #define SCB_AIRCR_VECTKEYSTAT_Msk (0xFFFFUL << SCB_AIRCR_VECTKEYSTAT_Pos) /*!< SCB - 452:Drivers/CMSIS/Include/core_cm0.h **** - 453:Drivers/CMSIS/Include/core_cm0.h **** #define SCB_AIRCR_ENDIANESS_Pos 15U /*!< SCB - 454:Drivers/CMSIS/Include/core_cm0.h **** #define SCB_AIRCR_ENDIANESS_Msk (1UL << SCB_AIRCR_ENDIANESS_Pos) /*!< SCB - 455:Drivers/CMSIS/Include/core_cm0.h **** - 456:Drivers/CMSIS/Include/core_cm0.h **** #define SCB_AIRCR_SYSRESETREQ_Pos 2U /*!< SCB - 457:Drivers/CMSIS/Include/core_cm0.h **** #define SCB_AIRCR_SYSRESETREQ_Msk (1UL << SCB_AIRCR_SYSRESETREQ_Pos) /*!< SCB - 458:Drivers/CMSIS/Include/core_cm0.h **** - 459:Drivers/CMSIS/Include/core_cm0.h **** #define SCB_AIRCR_VECTCLRACTIVE_Pos 1U /*!< SCB - 460:Drivers/CMSIS/Include/core_cm0.h **** #define SCB_AIRCR_VECTCLRACTIVE_Msk (1UL << SCB_AIRCR_VECTCLRACTIVE_Pos) /*!< SCB - 461:Drivers/CMSIS/Include/core_cm0.h **** - 462:Drivers/CMSIS/Include/core_cm0.h **** /* SCB System Control Register Definitions */ - 463:Drivers/CMSIS/Include/core_cm0.h **** #define SCB_SCR_SEVONPEND_Pos 4U /*!< SCB - 464:Drivers/CMSIS/Include/core_cm0.h **** #define SCB_SCR_SEVONPEND_Msk (1UL << SCB_SCR_SEVONPEND_Pos) /*!< SCB - 465:Drivers/CMSIS/Include/core_cm0.h **** - 466:Drivers/CMSIS/Include/core_cm0.h **** #define SCB_SCR_SLEEPDEEP_Pos 2U /*!< SCB - 467:Drivers/CMSIS/Include/core_cm0.h **** #define SCB_SCR_SLEEPDEEP_Msk (1UL << SCB_SCR_SLEEPDEEP_Pos) /*!< SCB - 468:Drivers/CMSIS/Include/core_cm0.h **** - 469:Drivers/CMSIS/Include/core_cm0.h **** #define SCB_SCR_SLEEPONEXIT_Pos 1U /*!< SCB - 470:Drivers/CMSIS/Include/core_cm0.h **** #define SCB_SCR_SLEEPONEXIT_Msk (1UL << SCB_SCR_SLEEPONEXIT_Pos) /*!< SCB - 471:Drivers/CMSIS/Include/core_cm0.h **** - 472:Drivers/CMSIS/Include/core_cm0.h **** /* SCB Configuration Control Register Definitions */ - 473:Drivers/CMSIS/Include/core_cm0.h **** #define SCB_CCR_STKALIGN_Pos 9U /*!< SCB - 474:Drivers/CMSIS/Include/core_cm0.h **** #define SCB_CCR_STKALIGN_Msk (1UL << SCB_CCR_STKALIGN_Pos) /*!< SCB - 475:Drivers/CMSIS/Include/core_cm0.h **** - 476:Drivers/CMSIS/Include/core_cm0.h **** #define SCB_CCR_UNALIGN_TRP_Pos 3U /*!< SCB - 477:Drivers/CMSIS/Include/core_cm0.h **** #define SCB_CCR_UNALIGN_TRP_Msk (1UL << SCB_CCR_UNALIGN_TRP_Pos) /*!< SCB - 478:Drivers/CMSIS/Include/core_cm0.h **** - 479:Drivers/CMSIS/Include/core_cm0.h **** /* SCB System Handler Control and State Register Definitions */ - 480:Drivers/CMSIS/Include/core_cm0.h **** #define SCB_SHCSR_SVCALLPENDED_Pos 15U /*!< SCB - 481:Drivers/CMSIS/Include/core_cm0.h **** #define SCB_SHCSR_SVCALLPENDED_Msk (1UL << SCB_SHCSR_SVCALLPENDED_Pos) /*!< SCB - 482:Drivers/CMSIS/Include/core_cm0.h **** - 483:Drivers/CMSIS/Include/core_cm0.h **** /*@} end of group CMSIS_SCB */ - 484:Drivers/CMSIS/Include/core_cm0.h **** - 485:Drivers/CMSIS/Include/core_cm0.h **** - 486:Drivers/CMSIS/Include/core_cm0.h **** /** - 487:Drivers/CMSIS/Include/core_cm0.h **** \ingroup CMSIS_core_register - 488:Drivers/CMSIS/Include/core_cm0.h **** \defgroup CMSIS_SysTick System Tick Timer (SysTick) - 489:Drivers/CMSIS/Include/core_cm0.h **** \brief Type definitions for the System Timer Registers. - 490:Drivers/CMSIS/Include/core_cm0.h **** @{ - 491:Drivers/CMSIS/Include/core_cm0.h **** */ - ARM GAS /tmp/cc8pPmIp.s page 13 - - - 492:Drivers/CMSIS/Include/core_cm0.h **** - 493:Drivers/CMSIS/Include/core_cm0.h **** /** - 494:Drivers/CMSIS/Include/core_cm0.h **** \brief Structure type to access the System Timer (SysTick). - 495:Drivers/CMSIS/Include/core_cm0.h **** */ - 496:Drivers/CMSIS/Include/core_cm0.h **** typedef struct - 497:Drivers/CMSIS/Include/core_cm0.h **** { - 498:Drivers/CMSIS/Include/core_cm0.h **** __IOM uint32_t CTRL; /*!< Offset: 0x000 (R/W) SysTick Control and Status Regis - 499:Drivers/CMSIS/Include/core_cm0.h **** __IOM uint32_t LOAD; /*!< Offset: 0x004 (R/W) SysTick Reload Value Register */ - 500:Drivers/CMSIS/Include/core_cm0.h **** __IOM uint32_t VAL; /*!< Offset: 0x008 (R/W) SysTick Current Value Register * - 501:Drivers/CMSIS/Include/core_cm0.h **** __IM uint32_t CALIB; /*!< Offset: 0x00C (R/ ) SysTick Calibration Register */ - 502:Drivers/CMSIS/Include/core_cm0.h **** } SysTick_Type; - 503:Drivers/CMSIS/Include/core_cm0.h **** - 504:Drivers/CMSIS/Include/core_cm0.h **** /* SysTick Control / Status Register Definitions */ - 505:Drivers/CMSIS/Include/core_cm0.h **** #define SysTick_CTRL_COUNTFLAG_Pos 16U /*!< SysT - 506:Drivers/CMSIS/Include/core_cm0.h **** #define SysTick_CTRL_COUNTFLAG_Msk (1UL << SysTick_CTRL_COUNTFLAG_Pos) /*!< SysT - 507:Drivers/CMSIS/Include/core_cm0.h **** - 508:Drivers/CMSIS/Include/core_cm0.h **** #define SysTick_CTRL_CLKSOURCE_Pos 2U /*!< SysT - 509:Drivers/CMSIS/Include/core_cm0.h **** #define SysTick_CTRL_CLKSOURCE_Msk (1UL << SysTick_CTRL_CLKSOURCE_Pos) /*!< SysT - 510:Drivers/CMSIS/Include/core_cm0.h **** - 511:Drivers/CMSIS/Include/core_cm0.h **** #define SysTick_CTRL_TICKINT_Pos 1U /*!< SysT - 512:Drivers/CMSIS/Include/core_cm0.h **** #define SysTick_CTRL_TICKINT_Msk (1UL << SysTick_CTRL_TICKINT_Pos) /*!< SysT - 513:Drivers/CMSIS/Include/core_cm0.h **** - 514:Drivers/CMSIS/Include/core_cm0.h **** #define SysTick_CTRL_ENABLE_Pos 0U /*!< SysT - 515:Drivers/CMSIS/Include/core_cm0.h **** #define SysTick_CTRL_ENABLE_Msk (1UL /*<< SysTick_CTRL_ENABLE_Pos*/) /*!< SysT - 516:Drivers/CMSIS/Include/core_cm0.h **** - 517:Drivers/CMSIS/Include/core_cm0.h **** /* SysTick Reload Register Definitions */ - 518:Drivers/CMSIS/Include/core_cm0.h **** #define SysTick_LOAD_RELOAD_Pos 0U /*!< SysT - 519:Drivers/CMSIS/Include/core_cm0.h **** #define SysTick_LOAD_RELOAD_Msk (0xFFFFFFUL /*<< SysTick_LOAD_RELOAD_Pos*/) /*!< SysT - 520:Drivers/CMSIS/Include/core_cm0.h **** - 521:Drivers/CMSIS/Include/core_cm0.h **** /* SysTick Current Register Definitions */ - 522:Drivers/CMSIS/Include/core_cm0.h **** #define SysTick_VAL_CURRENT_Pos 0U /*!< SysT - 523:Drivers/CMSIS/Include/core_cm0.h **** #define SysTick_VAL_CURRENT_Msk (0xFFFFFFUL /*<< SysTick_VAL_CURRENT_Pos*/) /*!< SysT - 524:Drivers/CMSIS/Include/core_cm0.h **** - 525:Drivers/CMSIS/Include/core_cm0.h **** /* SysTick Calibration Register Definitions */ - 526:Drivers/CMSIS/Include/core_cm0.h **** #define SysTick_CALIB_NOREF_Pos 31U /*!< SysT - 527:Drivers/CMSIS/Include/core_cm0.h **** #define SysTick_CALIB_NOREF_Msk (1UL << SysTick_CALIB_NOREF_Pos) /*!< SysT - 528:Drivers/CMSIS/Include/core_cm0.h **** - 529:Drivers/CMSIS/Include/core_cm0.h **** #define SysTick_CALIB_SKEW_Pos 30U /*!< SysT - 530:Drivers/CMSIS/Include/core_cm0.h **** #define SysTick_CALIB_SKEW_Msk (1UL << SysTick_CALIB_SKEW_Pos) /*!< SysT - 531:Drivers/CMSIS/Include/core_cm0.h **** - 532:Drivers/CMSIS/Include/core_cm0.h **** #define SysTick_CALIB_TENMS_Pos 0U /*!< SysT - 533:Drivers/CMSIS/Include/core_cm0.h **** #define SysTick_CALIB_TENMS_Msk (0xFFFFFFUL /*<< SysTick_CALIB_TENMS_Pos*/) /*!< SysT - 534:Drivers/CMSIS/Include/core_cm0.h **** - 535:Drivers/CMSIS/Include/core_cm0.h **** /*@} end of group CMSIS_SysTick */ - 536:Drivers/CMSIS/Include/core_cm0.h **** - 537:Drivers/CMSIS/Include/core_cm0.h **** - 538:Drivers/CMSIS/Include/core_cm0.h **** /** - 539:Drivers/CMSIS/Include/core_cm0.h **** \ingroup CMSIS_core_register - 540:Drivers/CMSIS/Include/core_cm0.h **** \defgroup CMSIS_CoreDebug Core Debug Registers (CoreDebug) - 541:Drivers/CMSIS/Include/core_cm0.h **** \brief Cortex-M0 Core Debug Registers (DCB registers, SHCSR, and DFSR) are only accessible ove - 542:Drivers/CMSIS/Include/core_cm0.h **** Therefore they are not covered by the Cortex-M0 header file. - 543:Drivers/CMSIS/Include/core_cm0.h **** @{ - 544:Drivers/CMSIS/Include/core_cm0.h **** */ - 545:Drivers/CMSIS/Include/core_cm0.h **** /*@} end of group CMSIS_CoreDebug */ - 546:Drivers/CMSIS/Include/core_cm0.h **** - 547:Drivers/CMSIS/Include/core_cm0.h **** - 548:Drivers/CMSIS/Include/core_cm0.h **** /** - ARM GAS /tmp/cc8pPmIp.s page 14 - - - 549:Drivers/CMSIS/Include/core_cm0.h **** \ingroup CMSIS_core_register - 550:Drivers/CMSIS/Include/core_cm0.h **** \defgroup CMSIS_core_bitfield Core register bit field macros - 551:Drivers/CMSIS/Include/core_cm0.h **** \brief Macros for use with bit field definitions (xxx_Pos, xxx_Msk). - 552:Drivers/CMSIS/Include/core_cm0.h **** @{ - 553:Drivers/CMSIS/Include/core_cm0.h **** */ - 554:Drivers/CMSIS/Include/core_cm0.h **** - 555:Drivers/CMSIS/Include/core_cm0.h **** /** - 556:Drivers/CMSIS/Include/core_cm0.h **** \brief Mask and shift a bit field value for use in a register bit range. - 557:Drivers/CMSIS/Include/core_cm0.h **** \param[in] field Name of the register bit field. - 558:Drivers/CMSIS/Include/core_cm0.h **** \param[in] value Value of the bit field. - 559:Drivers/CMSIS/Include/core_cm0.h **** \return Masked and shifted value. - 560:Drivers/CMSIS/Include/core_cm0.h **** */ - 561:Drivers/CMSIS/Include/core_cm0.h **** #define _VAL2FLD(field, value) ((value << field ## _Pos) & field ## _Msk) - 562:Drivers/CMSIS/Include/core_cm0.h **** - 563:Drivers/CMSIS/Include/core_cm0.h **** /** - 564:Drivers/CMSIS/Include/core_cm0.h **** \brief Mask and shift a register value to extract a bit filed value. - 565:Drivers/CMSIS/Include/core_cm0.h **** \param[in] field Name of the register bit field. - 566:Drivers/CMSIS/Include/core_cm0.h **** \param[in] value Value of register. - 567:Drivers/CMSIS/Include/core_cm0.h **** \return Masked and shifted bit field value. - 568:Drivers/CMSIS/Include/core_cm0.h **** */ - 569:Drivers/CMSIS/Include/core_cm0.h **** #define _FLD2VAL(field, value) ((value & field ## _Msk) >> field ## _Pos) - 570:Drivers/CMSIS/Include/core_cm0.h **** - 571:Drivers/CMSIS/Include/core_cm0.h **** /*@} end of group CMSIS_core_bitfield */ - 572:Drivers/CMSIS/Include/core_cm0.h **** - 573:Drivers/CMSIS/Include/core_cm0.h **** - 574:Drivers/CMSIS/Include/core_cm0.h **** /** - 575:Drivers/CMSIS/Include/core_cm0.h **** \ingroup CMSIS_core_register - 576:Drivers/CMSIS/Include/core_cm0.h **** \defgroup CMSIS_core_base Core Definitions - 577:Drivers/CMSIS/Include/core_cm0.h **** \brief Definitions for base addresses, unions, and structures. - 578:Drivers/CMSIS/Include/core_cm0.h **** @{ - 579:Drivers/CMSIS/Include/core_cm0.h **** */ - 580:Drivers/CMSIS/Include/core_cm0.h **** - 581:Drivers/CMSIS/Include/core_cm0.h **** /* Memory mapping of Cortex-M0 Hardware */ - 582:Drivers/CMSIS/Include/core_cm0.h **** #define SCS_BASE (0xE000E000UL) /*!< System Control Space Bas - 583:Drivers/CMSIS/Include/core_cm0.h **** #define SysTick_BASE (SCS_BASE + 0x0010UL) /*!< SysTick Base Address */ - 584:Drivers/CMSIS/Include/core_cm0.h **** #define NVIC_BASE (SCS_BASE + 0x0100UL) /*!< NVIC Base Address */ - 585:Drivers/CMSIS/Include/core_cm0.h **** #define SCB_BASE (SCS_BASE + 0x0D00UL) /*!< System Control Block Bas - 586:Drivers/CMSIS/Include/core_cm0.h **** - 587:Drivers/CMSIS/Include/core_cm0.h **** #define SCB ((SCB_Type *) SCB_BASE ) /*!< SCB configuration struct - 588:Drivers/CMSIS/Include/core_cm0.h **** #define SysTick ((SysTick_Type *) SysTick_BASE ) /*!< SysTick configuration st - 589:Drivers/CMSIS/Include/core_cm0.h **** #define NVIC ((NVIC_Type *) NVIC_BASE ) /*!< NVIC configuration struc - 590:Drivers/CMSIS/Include/core_cm0.h **** - 591:Drivers/CMSIS/Include/core_cm0.h **** - 592:Drivers/CMSIS/Include/core_cm0.h **** /*@} */ - 593:Drivers/CMSIS/Include/core_cm0.h **** - 594:Drivers/CMSIS/Include/core_cm0.h **** - 595:Drivers/CMSIS/Include/core_cm0.h **** - 596:Drivers/CMSIS/Include/core_cm0.h **** /******************************************************************************* - 597:Drivers/CMSIS/Include/core_cm0.h **** * Hardware Abstraction Layer - 598:Drivers/CMSIS/Include/core_cm0.h **** Core Function Interface contains: - 599:Drivers/CMSIS/Include/core_cm0.h **** - Core NVIC Functions - 600:Drivers/CMSIS/Include/core_cm0.h **** - Core SysTick Functions - 601:Drivers/CMSIS/Include/core_cm0.h **** - Core Register Access Functions - 602:Drivers/CMSIS/Include/core_cm0.h **** ******************************************************************************/ - 603:Drivers/CMSIS/Include/core_cm0.h **** /** - 604:Drivers/CMSIS/Include/core_cm0.h **** \defgroup CMSIS_Core_FunctionInterface Functions and Instructions Reference - 605:Drivers/CMSIS/Include/core_cm0.h **** */ - ARM GAS /tmp/cc8pPmIp.s page 15 - - - 606:Drivers/CMSIS/Include/core_cm0.h **** - 607:Drivers/CMSIS/Include/core_cm0.h **** - 608:Drivers/CMSIS/Include/core_cm0.h **** - 609:Drivers/CMSIS/Include/core_cm0.h **** /* ########################## NVIC functions #################################### */ - 610:Drivers/CMSIS/Include/core_cm0.h **** /** - 611:Drivers/CMSIS/Include/core_cm0.h **** \ingroup CMSIS_Core_FunctionInterface - 612:Drivers/CMSIS/Include/core_cm0.h **** \defgroup CMSIS_Core_NVICFunctions NVIC Functions - 613:Drivers/CMSIS/Include/core_cm0.h **** \brief Functions that manage interrupts and exceptions via the NVIC. - 614:Drivers/CMSIS/Include/core_cm0.h **** @{ - 615:Drivers/CMSIS/Include/core_cm0.h **** */ - 616:Drivers/CMSIS/Include/core_cm0.h **** - 617:Drivers/CMSIS/Include/core_cm0.h **** /* Interrupt Priorities are WORD accessible only under ARMv6M */ - 618:Drivers/CMSIS/Include/core_cm0.h **** /* The following MACROS handle generation of the register offset and byte masks */ - 619:Drivers/CMSIS/Include/core_cm0.h **** #define _BIT_SHIFT(IRQn) ( ((((uint32_t)(int32_t)(IRQn)) ) & 0x03UL) * 8UL) - 620:Drivers/CMSIS/Include/core_cm0.h **** #define _SHP_IDX(IRQn) ( (((((uint32_t)(int32_t)(IRQn)) & 0x0FUL)-8UL) >> 2UL) ) - 621:Drivers/CMSIS/Include/core_cm0.h **** #define _IP_IDX(IRQn) ( (((uint32_t)(int32_t)(IRQn)) >> 2UL) ) - 622:Drivers/CMSIS/Include/core_cm0.h **** - 623:Drivers/CMSIS/Include/core_cm0.h **** - 624:Drivers/CMSIS/Include/core_cm0.h **** /** - 625:Drivers/CMSIS/Include/core_cm0.h **** \brief Enable External Interrupt - 626:Drivers/CMSIS/Include/core_cm0.h **** \details Enables a device-specific interrupt in the NVIC interrupt controller. - 627:Drivers/CMSIS/Include/core_cm0.h **** \param [in] IRQn External interrupt number. Value cannot be negative. - 628:Drivers/CMSIS/Include/core_cm0.h **** */ - 629:Drivers/CMSIS/Include/core_cm0.h **** __STATIC_INLINE void NVIC_EnableIRQ(IRQn_Type IRQn) - 630:Drivers/CMSIS/Include/core_cm0.h **** { - 631:Drivers/CMSIS/Include/core_cm0.h **** NVIC->ISER[0U] = (uint32_t)(1UL << (((uint32_t)(int32_t)IRQn) & 0x1FUL)); - 632:Drivers/CMSIS/Include/core_cm0.h **** } - 633:Drivers/CMSIS/Include/core_cm0.h **** - 634:Drivers/CMSIS/Include/core_cm0.h **** - 635:Drivers/CMSIS/Include/core_cm0.h **** /** - 636:Drivers/CMSIS/Include/core_cm0.h **** \brief Disable External Interrupt - 637:Drivers/CMSIS/Include/core_cm0.h **** \details Disables a device-specific interrupt in the NVIC interrupt controller. - 638:Drivers/CMSIS/Include/core_cm0.h **** \param [in] IRQn External interrupt number. Value cannot be negative. - 639:Drivers/CMSIS/Include/core_cm0.h **** */ - 640:Drivers/CMSIS/Include/core_cm0.h **** __STATIC_INLINE void NVIC_DisableIRQ(IRQn_Type IRQn) - 641:Drivers/CMSIS/Include/core_cm0.h **** { - 642:Drivers/CMSIS/Include/core_cm0.h **** NVIC->ICER[0U] = (uint32_t)(1UL << (((uint32_t)(int32_t)IRQn) & 0x1FUL)); - 643:Drivers/CMSIS/Include/core_cm0.h **** } - 644:Drivers/CMSIS/Include/core_cm0.h **** - 645:Drivers/CMSIS/Include/core_cm0.h **** - 646:Drivers/CMSIS/Include/core_cm0.h **** /** - 647:Drivers/CMSIS/Include/core_cm0.h **** \brief Get Pending Interrupt - 648:Drivers/CMSIS/Include/core_cm0.h **** \details Reads the pending register in the NVIC and returns the pending bit for the specified int - 649:Drivers/CMSIS/Include/core_cm0.h **** \param [in] IRQn Interrupt number. - 650:Drivers/CMSIS/Include/core_cm0.h **** \return 0 Interrupt status is not pending. - 651:Drivers/CMSIS/Include/core_cm0.h **** \return 1 Interrupt status is pending. - 652:Drivers/CMSIS/Include/core_cm0.h **** */ - 653:Drivers/CMSIS/Include/core_cm0.h **** __STATIC_INLINE uint32_t NVIC_GetPendingIRQ(IRQn_Type IRQn) - 654:Drivers/CMSIS/Include/core_cm0.h **** { - 655:Drivers/CMSIS/Include/core_cm0.h **** return((uint32_t)(((NVIC->ISPR[0U] & (1UL << (((uint32_t)(int32_t)IRQn) & 0x1FUL))) != 0UL) ? 1UL - 656:Drivers/CMSIS/Include/core_cm0.h **** } - 657:Drivers/CMSIS/Include/core_cm0.h **** - 658:Drivers/CMSIS/Include/core_cm0.h **** - 659:Drivers/CMSIS/Include/core_cm0.h **** /** - 660:Drivers/CMSIS/Include/core_cm0.h **** \brief Set Pending Interrupt - 661:Drivers/CMSIS/Include/core_cm0.h **** \details Sets the pending bit of an external interrupt. - 662:Drivers/CMSIS/Include/core_cm0.h **** \param [in] IRQn Interrupt number. Value cannot be negative. - ARM GAS /tmp/cc8pPmIp.s page 16 - - - 663:Drivers/CMSIS/Include/core_cm0.h **** */ - 664:Drivers/CMSIS/Include/core_cm0.h **** __STATIC_INLINE void NVIC_SetPendingIRQ(IRQn_Type IRQn) - 665:Drivers/CMSIS/Include/core_cm0.h **** { - 666:Drivers/CMSIS/Include/core_cm0.h **** NVIC->ISPR[0U] = (uint32_t)(1UL << (((uint32_t)(int32_t)IRQn) & 0x1FUL)); - 667:Drivers/CMSIS/Include/core_cm0.h **** } - 668:Drivers/CMSIS/Include/core_cm0.h **** - 669:Drivers/CMSIS/Include/core_cm0.h **** - 670:Drivers/CMSIS/Include/core_cm0.h **** /** - 671:Drivers/CMSIS/Include/core_cm0.h **** \brief Clear Pending Interrupt - 672:Drivers/CMSIS/Include/core_cm0.h **** \details Clears the pending bit of an external interrupt. - 673:Drivers/CMSIS/Include/core_cm0.h **** \param [in] IRQn External interrupt number. Value cannot be negative. - 674:Drivers/CMSIS/Include/core_cm0.h **** */ - 675:Drivers/CMSIS/Include/core_cm0.h **** __STATIC_INLINE void NVIC_ClearPendingIRQ(IRQn_Type IRQn) - 676:Drivers/CMSIS/Include/core_cm0.h **** { - 677:Drivers/CMSIS/Include/core_cm0.h **** NVIC->ICPR[0U] = (uint32_t)(1UL << (((uint32_t)(int32_t)IRQn) & 0x1FUL)); - 678:Drivers/CMSIS/Include/core_cm0.h **** } - 679:Drivers/CMSIS/Include/core_cm0.h **** - 680:Drivers/CMSIS/Include/core_cm0.h **** - 681:Drivers/CMSIS/Include/core_cm0.h **** /** - 682:Drivers/CMSIS/Include/core_cm0.h **** \brief Set Interrupt Priority - 683:Drivers/CMSIS/Include/core_cm0.h **** \details Sets the priority of an interrupt. - 684:Drivers/CMSIS/Include/core_cm0.h **** \note The priority cannot be set for every core interrupt. - 685:Drivers/CMSIS/Include/core_cm0.h **** \param [in] IRQn Interrupt number. - 686:Drivers/CMSIS/Include/core_cm0.h **** \param [in] priority Priority to set. - 687:Drivers/CMSIS/Include/core_cm0.h **** */ - 688:Drivers/CMSIS/Include/core_cm0.h **** __STATIC_INLINE void NVIC_SetPriority(IRQn_Type IRQn, uint32_t priority) - 689:Drivers/CMSIS/Include/core_cm0.h **** { - 690:Drivers/CMSIS/Include/core_cm0.h **** if ((int32_t)(IRQn) < 0) - 42 .loc 2 690 0 - 43 0002 0028 cmp r0, #0 - 44 0004 11DB blt .L4 - 691:Drivers/CMSIS/Include/core_cm0.h **** { - 692:Drivers/CMSIS/Include/core_cm0.h **** SCB->SHP[_SHP_IDX(IRQn)] = ((uint32_t)(SCB->SHP[_SHP_IDX(IRQn)] & ~(0xFFUL << _BIT_SHIFT(IRQn)) - 693:Drivers/CMSIS/Include/core_cm0.h **** (((priority << (8U - __NVIC_PRIO_BITS)) & (uint32_t)0xFFUL) << _BIT_SHIFT(IRQn))); - 694:Drivers/CMSIS/Include/core_cm0.h **** } - 695:Drivers/CMSIS/Include/core_cm0.h **** else - 696:Drivers/CMSIS/Include/core_cm0.h **** { - 697:Drivers/CMSIS/Include/core_cm0.h **** NVIC->IP[_IP_IDX(IRQn)] = ((uint32_t)(NVIC->IP[_IP_IDX(IRQn)] & ~(0xFFUL << _BIT_SHIFT(IRQn)) - 45 .loc 2 697 0 - 46 0006 8408 lsrs r4, r0, #2 - 47 0008 134D ldr r5, .L5 - 48 000a C034 adds r4, r4, #192 - 49 000c A400 lsls r4, r4, #2 - 50 000e 6259 ldr r2, [r4, r5] - 51 .LVL2: - 52 0010 0323 movs r3, #3 - 53 0012 1840 ands r0, r3 - 54 .LVL3: - 55 0014 C000 lsls r0, r0, #3 - 56 0016 FC33 adds r3, r3, #252 - 57 0018 1E00 movs r6, r3 - 58 001a 8640 lsls r6, r6, r0 - 59 001c B243 bics r2, r6 - 698:Drivers/CMSIS/Include/core_cm0.h **** (((priority << (8U - __NVIC_PRIO_BITS)) & (uint32_t)0xFFUL) << _BIT_SHIFT(IRQn))); - 60 .loc 2 698 0 - 61 001e 8901 lsls r1, r1, #6 - 62 .LVL4: - ARM GAS /tmp/cc8pPmIp.s page 17 - - - 63 0020 0B40 ands r3, r1 - 64 0022 8340 lsls r3, r3, r0 - 697:Drivers/CMSIS/Include/core_cm0.h **** (((priority << (8U - __NVIC_PRIO_BITS)) & (uint32_t)0xFFUL) << _BIT_SHIFT(IRQn))); - 65 .loc 2 697 0 - 66 0024 1343 orrs r3, r2 - 67 0026 6351 str r3, [r4, r5] - 68 .LVL5: - 69 .L1: - 70 .LBE27: - 71 .LBE26: - 154:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_cortex.c **** /* Check the parameters */ - 155:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_cortex.c **** assert_param(IS_NVIC_PREEMPTION_PRIORITY(PreemptPriority)); - 156:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_cortex.c **** NVIC_SetPriority(IRQn,PreemptPriority); - 157:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_cortex.c **** } - 72 .loc 1 157 0 - 73 @ sp needed - 74 0028 70BD pop {r4, r5, r6, pc} - 75 .LVL6: - 76 .L4: - 77 .LBB29: - 78 .LBB28: - 692:Drivers/CMSIS/Include/core_cm0.h **** (((priority << (8U - __NVIC_PRIO_BITS)) & (uint32_t)0xFFUL) << _BIT_SHIFT(IRQn))); - 79 .loc 2 692 0 - 80 002a C0B2 uxtb r0, r0 - 81 002c 0F22 movs r2, #15 - 82 .LVL7: - 83 002e 0240 ands r2, r0 - 84 0030 083A subs r2, r2, #8 - 85 0032 9208 lsrs r2, r2, #2 - 86 0034 0632 adds r2, r2, #6 - 87 0036 9200 lsls r2, r2, #2 - 88 0038 084B ldr r3, .L5+4 - 89 003a D318 adds r3, r2, r3 - 90 003c 5D68 ldr r5, [r3, #4] - 91 003e 0324 movs r4, #3 - 92 0040 2040 ands r0, r4 - 93 .LVL8: - 94 0042 C000 lsls r0, r0, #3 - 95 0044 FF22 movs r2, #255 - 96 0046 1400 movs r4, r2 - 97 0048 8440 lsls r4, r4, r0 - 98 004a A543 bics r5, r4 - 693:Drivers/CMSIS/Include/core_cm0.h **** } - 99 .loc 2 693 0 - 100 004c 8901 lsls r1, r1, #6 - 101 .LVL9: - 102 004e 0A40 ands r2, r1 - 103 0050 8240 lsls r2, r2, r0 - 692:Drivers/CMSIS/Include/core_cm0.h **** (((priority << (8U - __NVIC_PRIO_BITS)) & (uint32_t)0xFFUL) << _BIT_SHIFT(IRQn))); - 104 .loc 2 692 0 - 105 0052 2A43 orrs r2, r5 - 106 0054 5A60 str r2, [r3, #4] - 107 0056 E7E7 b .L1 - 108 .L6: - 109 .align 2 - 110 .L5: - 111 0058 00E100E0 .word -536813312 - ARM GAS /tmp/cc8pPmIp.s page 18 - - - 112 005c 00ED00E0 .word -536810240 - 113 .LBE28: - 114 .LBE29: - 115 .cfi_endproc - 116 .LFE37: - 118 .section .text.HAL_NVIC_EnableIRQ,"ax",%progbits - 119 .align 1 - 120 .global HAL_NVIC_EnableIRQ - 121 .syntax unified - 122 .code 16 - 123 .thumb_func - 124 .fpu softvfp - 126 HAL_NVIC_EnableIRQ: - 127 .LFB38: - 158:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_cortex.c **** - 159:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_cortex.c **** /** - 160:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_cortex.c **** * @brief Enables a device specific interrupt in the NVIC interrupt controller. - 161:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_cortex.c **** * @note To configure interrupts priority correctly, the NVIC_PriorityGroupConfig() - 162:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_cortex.c **** * function should be called before. - 163:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_cortex.c **** * @param IRQn External interrupt number. - 164:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_cortex.c **** * This parameter can be an enumerator of IRQn_Type enumeration - 165:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_cortex.c **** * (For the complete STM32 Devices IRQ Channels list, please refer to the appropriate CMSI - 166:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_cortex.c **** * @retval None - 167:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_cortex.c **** */ - 168:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_cortex.c **** void HAL_NVIC_EnableIRQ(IRQn_Type IRQn) - 169:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_cortex.c **** { - 128 .loc 1 169 0 - 129 .cfi_startproc - 130 @ args = 0, pretend = 0, frame = 0 - 131 @ frame_needed = 0, uses_anonymous_args = 0 - 132 @ link register save eliminated. - 133 .LVL10: - 134 .LBB30: - 135 .LBB31: - 631:Drivers/CMSIS/Include/core_cm0.h **** } - 136 .loc 2 631 0 - 137 0000 1F23 movs r3, #31 - 138 0002 1840 ands r0, r3 - 139 .LVL11: - 140 0004 1E3B subs r3, r3, #30 - 141 0006 8340 lsls r3, r3, r0 - 142 0008 014A ldr r2, .L8 - 143 000a 1360 str r3, [r2] - 144 .LVL12: - 145 .LBE31: - 146 .LBE30: - 170:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_cortex.c **** /* Check the parameters */ - 171:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_cortex.c **** assert_param(IS_NVIC_DEVICE_IRQ(IRQn)); - 172:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_cortex.c **** - 173:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_cortex.c **** /* Enable interrupt */ - 174:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_cortex.c **** NVIC_EnableIRQ(IRQn); - 175:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_cortex.c **** } - 147 .loc 1 175 0 - 148 @ sp needed - 149 000c 7047 bx lr - 150 .L9: - 151 000e C046 .align 2 - ARM GAS /tmp/cc8pPmIp.s page 19 - - - 152 .L8: - 153 0010 00E100E0 .word -536813312 - 154 .cfi_endproc - 155 .LFE38: - 157 .section .text.HAL_NVIC_DisableIRQ,"ax",%progbits - 158 .align 1 - 159 .global HAL_NVIC_DisableIRQ - 160 .syntax unified - 161 .code 16 - 162 .thumb_func - 163 .fpu softvfp - 165 HAL_NVIC_DisableIRQ: - 166 .LFB39: - 176:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_cortex.c **** - 177:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_cortex.c **** /** - 178:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_cortex.c **** * @brief Disables a device specific interrupt in the NVIC interrupt controller. - 179:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_cortex.c **** * @param IRQn External interrupt number. - 180:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_cortex.c **** * This parameter can be an enumerator of IRQn_Type enumeration - 181:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_cortex.c **** * (For the complete STM32 Devices IRQ Channels list, please refer to the appropriate CMSI - 182:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_cortex.c **** * @retval None - 183:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_cortex.c **** */ - 184:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_cortex.c **** void HAL_NVIC_DisableIRQ(IRQn_Type IRQn) - 185:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_cortex.c **** { - 167 .loc 1 185 0 - 168 .cfi_startproc - 169 @ args = 0, pretend = 0, frame = 0 - 170 @ frame_needed = 0, uses_anonymous_args = 0 - 171 @ link register save eliminated. - 172 .LVL13: - 173 .LBB32: - 174 .LBB33: - 642:Drivers/CMSIS/Include/core_cm0.h **** } - 175 .loc 2 642 0 - 176 0000 1F23 movs r3, #31 - 177 0002 1840 ands r0, r3 - 178 .LVL14: - 179 0004 1E3B subs r3, r3, #30 - 180 0006 8340 lsls r3, r3, r0 - 181 0008 0149 ldr r1, .L11 - 182 000a 8022 movs r2, #128 - 183 000c 8B50 str r3, [r1, r2] - 184 .LVL15: - 185 .LBE33: - 186 .LBE32: - 186:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_cortex.c **** /* Check the parameters */ - 187:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_cortex.c **** assert_param(IS_NVIC_DEVICE_IRQ(IRQn)); - 188:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_cortex.c **** - 189:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_cortex.c **** /* Disable interrupt */ - 190:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_cortex.c **** NVIC_DisableIRQ(IRQn); - 191:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_cortex.c **** } - 187 .loc 1 191 0 - 188 @ sp needed - 189 000e 7047 bx lr - 190 .L12: - 191 .align 2 - 192 .L11: - 193 0010 00E100E0 .word -536813312 - ARM GAS /tmp/cc8pPmIp.s page 20 - - - 194 .cfi_endproc - 195 .LFE39: - 197 .section .text.HAL_NVIC_SystemReset,"ax",%progbits - 198 .align 1 - 199 .global HAL_NVIC_SystemReset - 200 .syntax unified - 201 .code 16 - 202 .thumb_func - 203 .fpu softvfp - 205 HAL_NVIC_SystemReset: - 206 .LFB40: - 192:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_cortex.c **** - 193:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_cortex.c **** /** - 194:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_cortex.c **** * @brief Initiates a system reset request to reset the MCU. - 195:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_cortex.c **** * @retval None - 196:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_cortex.c **** */ - 197:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_cortex.c **** void HAL_NVIC_SystemReset(void) - 198:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_cortex.c **** { - 207 .loc 1 198 0 - 208 .cfi_startproc - 209 @ Volatile: function does not return. - 210 @ args = 0, pretend = 0, frame = 0 - 211 @ frame_needed = 0, uses_anonymous_args = 0 - 212 @ link register save eliminated. - 213 .LBB42: - 214 .LBB43: - 215 .LBB44: - 216 .LBB45: - 217 .file 3 "Drivers/CMSIS/Include/cmsis_gcc.h" - 1:Drivers/CMSIS/Include/cmsis_gcc.h **** /**************************************************************************//** - 2:Drivers/CMSIS/Include/cmsis_gcc.h **** * @file cmsis_gcc.h - 3:Drivers/CMSIS/Include/cmsis_gcc.h **** * @brief CMSIS Cortex-M Core Function/Instruction Header File - 4:Drivers/CMSIS/Include/cmsis_gcc.h **** * @version V4.30 - 5:Drivers/CMSIS/Include/cmsis_gcc.h **** * @date 20. October 2015 - 6:Drivers/CMSIS/Include/cmsis_gcc.h **** ******************************************************************************/ - 7:Drivers/CMSIS/Include/cmsis_gcc.h **** /* Copyright (c) 2009 - 2015 ARM LIMITED - 8:Drivers/CMSIS/Include/cmsis_gcc.h **** - 9:Drivers/CMSIS/Include/cmsis_gcc.h **** All rights reserved. - 10:Drivers/CMSIS/Include/cmsis_gcc.h **** Redistribution and use in source and binary forms, with or without - 11:Drivers/CMSIS/Include/cmsis_gcc.h **** modification, are permitted provided that the following conditions are met: - 12:Drivers/CMSIS/Include/cmsis_gcc.h **** - Redistributions of source code must retain the above copyright - 13:Drivers/CMSIS/Include/cmsis_gcc.h **** notice, this list of conditions and the following disclaimer. - 14:Drivers/CMSIS/Include/cmsis_gcc.h **** - Redistributions in binary form must reproduce the above copyright - 15:Drivers/CMSIS/Include/cmsis_gcc.h **** notice, this list of conditions and the following disclaimer in the - 16:Drivers/CMSIS/Include/cmsis_gcc.h **** documentation and/or other materials provided with the distribution. - 17:Drivers/CMSIS/Include/cmsis_gcc.h **** - Neither the name of ARM nor the names of its contributors may be used - 18:Drivers/CMSIS/Include/cmsis_gcc.h **** to endorse or promote products derived from this software without - 19:Drivers/CMSIS/Include/cmsis_gcc.h **** specific prior written permission. - 20:Drivers/CMSIS/Include/cmsis_gcc.h **** * - 21:Drivers/CMSIS/Include/cmsis_gcc.h **** THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" - 22:Drivers/CMSIS/Include/cmsis_gcc.h **** AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE - 23:Drivers/CMSIS/Include/cmsis_gcc.h **** IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE - 24:Drivers/CMSIS/Include/cmsis_gcc.h **** ARE DISCLAIMED. IN NO EVENT SHALL COPYRIGHT HOLDERS AND CONTRIBUTORS BE - 25:Drivers/CMSIS/Include/cmsis_gcc.h **** LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR - 26:Drivers/CMSIS/Include/cmsis_gcc.h **** CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF - 27:Drivers/CMSIS/Include/cmsis_gcc.h **** SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS - 28:Drivers/CMSIS/Include/cmsis_gcc.h **** INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN - ARM GAS /tmp/cc8pPmIp.s page 21 - - - 29:Drivers/CMSIS/Include/cmsis_gcc.h **** CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) - 30:Drivers/CMSIS/Include/cmsis_gcc.h **** ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE - 31:Drivers/CMSIS/Include/cmsis_gcc.h **** POSSIBILITY OF SUCH DAMAGE. - 32:Drivers/CMSIS/Include/cmsis_gcc.h **** ---------------------------------------------------------------------------*/ - 33:Drivers/CMSIS/Include/cmsis_gcc.h **** - 34:Drivers/CMSIS/Include/cmsis_gcc.h **** - 35:Drivers/CMSIS/Include/cmsis_gcc.h **** #ifndef __CMSIS_GCC_H - 36:Drivers/CMSIS/Include/cmsis_gcc.h **** #define __CMSIS_GCC_H - 37:Drivers/CMSIS/Include/cmsis_gcc.h **** - 38:Drivers/CMSIS/Include/cmsis_gcc.h **** /* ignore some GCC warnings */ - 39:Drivers/CMSIS/Include/cmsis_gcc.h **** #if defined ( __GNUC__ ) - 40:Drivers/CMSIS/Include/cmsis_gcc.h **** #pragma GCC diagnostic push - 41:Drivers/CMSIS/Include/cmsis_gcc.h **** #pragma GCC diagnostic ignored "-Wsign-conversion" - 42:Drivers/CMSIS/Include/cmsis_gcc.h **** #pragma GCC diagnostic ignored "-Wconversion" - 43:Drivers/CMSIS/Include/cmsis_gcc.h **** #pragma GCC diagnostic ignored "-Wunused-parameter" - 44:Drivers/CMSIS/Include/cmsis_gcc.h **** #endif - 45:Drivers/CMSIS/Include/cmsis_gcc.h **** - 46:Drivers/CMSIS/Include/cmsis_gcc.h **** - 47:Drivers/CMSIS/Include/cmsis_gcc.h **** /* ########################### Core Function Access ########################### */ - 48:Drivers/CMSIS/Include/cmsis_gcc.h **** /** \ingroup CMSIS_Core_FunctionInterface - 49:Drivers/CMSIS/Include/cmsis_gcc.h **** \defgroup CMSIS_Core_RegAccFunctions CMSIS Core Register Access Functions - 50:Drivers/CMSIS/Include/cmsis_gcc.h **** @{ - 51:Drivers/CMSIS/Include/cmsis_gcc.h **** */ - 52:Drivers/CMSIS/Include/cmsis_gcc.h **** - 53:Drivers/CMSIS/Include/cmsis_gcc.h **** /** - 54:Drivers/CMSIS/Include/cmsis_gcc.h **** \brief Enable IRQ Interrupts - 55:Drivers/CMSIS/Include/cmsis_gcc.h **** \details Enables IRQ interrupts by clearing the I-bit in the CPSR. - 56:Drivers/CMSIS/Include/cmsis_gcc.h **** Can only be executed in Privileged modes. - 57:Drivers/CMSIS/Include/cmsis_gcc.h **** */ - 58:Drivers/CMSIS/Include/cmsis_gcc.h **** __attribute__( ( always_inline ) ) __STATIC_INLINE void __enable_irq(void) - 59:Drivers/CMSIS/Include/cmsis_gcc.h **** { - 60:Drivers/CMSIS/Include/cmsis_gcc.h **** __ASM volatile ("cpsie i" : : : "memory"); - 61:Drivers/CMSIS/Include/cmsis_gcc.h **** } - 62:Drivers/CMSIS/Include/cmsis_gcc.h **** - 63:Drivers/CMSIS/Include/cmsis_gcc.h **** - 64:Drivers/CMSIS/Include/cmsis_gcc.h **** /** - 65:Drivers/CMSIS/Include/cmsis_gcc.h **** \brief Disable IRQ Interrupts - 66:Drivers/CMSIS/Include/cmsis_gcc.h **** \details Disables IRQ interrupts by setting the I-bit in the CPSR. - 67:Drivers/CMSIS/Include/cmsis_gcc.h **** Can only be executed in Privileged modes. - 68:Drivers/CMSIS/Include/cmsis_gcc.h **** */ - 69:Drivers/CMSIS/Include/cmsis_gcc.h **** __attribute__( ( always_inline ) ) __STATIC_INLINE void __disable_irq(void) - 70:Drivers/CMSIS/Include/cmsis_gcc.h **** { - 71:Drivers/CMSIS/Include/cmsis_gcc.h **** __ASM volatile ("cpsid i" : : : "memory"); - 72:Drivers/CMSIS/Include/cmsis_gcc.h **** } - 73:Drivers/CMSIS/Include/cmsis_gcc.h **** - 74:Drivers/CMSIS/Include/cmsis_gcc.h **** - 75:Drivers/CMSIS/Include/cmsis_gcc.h **** /** - 76:Drivers/CMSIS/Include/cmsis_gcc.h **** \brief Get Control Register - 77:Drivers/CMSIS/Include/cmsis_gcc.h **** \details Returns the content of the Control Register. - 78:Drivers/CMSIS/Include/cmsis_gcc.h **** \return Control Register value - 79:Drivers/CMSIS/Include/cmsis_gcc.h **** */ - 80:Drivers/CMSIS/Include/cmsis_gcc.h **** __attribute__( ( always_inline ) ) __STATIC_INLINE uint32_t __get_CONTROL(void) - 81:Drivers/CMSIS/Include/cmsis_gcc.h **** { - 82:Drivers/CMSIS/Include/cmsis_gcc.h **** uint32_t result; - 83:Drivers/CMSIS/Include/cmsis_gcc.h **** - 84:Drivers/CMSIS/Include/cmsis_gcc.h **** __ASM volatile ("MRS %0, control" : "=r" (result) ); - 85:Drivers/CMSIS/Include/cmsis_gcc.h **** return(result); - ARM GAS /tmp/cc8pPmIp.s page 22 - - - 86:Drivers/CMSIS/Include/cmsis_gcc.h **** } - 87:Drivers/CMSIS/Include/cmsis_gcc.h **** - 88:Drivers/CMSIS/Include/cmsis_gcc.h **** - 89:Drivers/CMSIS/Include/cmsis_gcc.h **** /** - 90:Drivers/CMSIS/Include/cmsis_gcc.h **** \brief Set Control Register - 91:Drivers/CMSIS/Include/cmsis_gcc.h **** \details Writes the given value to the Control Register. - 92:Drivers/CMSIS/Include/cmsis_gcc.h **** \param [in] control Control Register value to set - 93:Drivers/CMSIS/Include/cmsis_gcc.h **** */ - 94:Drivers/CMSIS/Include/cmsis_gcc.h **** __attribute__( ( always_inline ) ) __STATIC_INLINE void __set_CONTROL(uint32_t control) - 95:Drivers/CMSIS/Include/cmsis_gcc.h **** { - 96:Drivers/CMSIS/Include/cmsis_gcc.h **** __ASM volatile ("MSR control, %0" : : "r" (control) : "memory"); - 97:Drivers/CMSIS/Include/cmsis_gcc.h **** } - 98:Drivers/CMSIS/Include/cmsis_gcc.h **** - 99:Drivers/CMSIS/Include/cmsis_gcc.h **** - 100:Drivers/CMSIS/Include/cmsis_gcc.h **** /** - 101:Drivers/CMSIS/Include/cmsis_gcc.h **** \brief Get IPSR Register - 102:Drivers/CMSIS/Include/cmsis_gcc.h **** \details Returns the content of the IPSR Register. - 103:Drivers/CMSIS/Include/cmsis_gcc.h **** \return IPSR Register value - 104:Drivers/CMSIS/Include/cmsis_gcc.h **** */ - 105:Drivers/CMSIS/Include/cmsis_gcc.h **** __attribute__( ( always_inline ) ) __STATIC_INLINE uint32_t __get_IPSR(void) - 106:Drivers/CMSIS/Include/cmsis_gcc.h **** { - 107:Drivers/CMSIS/Include/cmsis_gcc.h **** uint32_t result; - 108:Drivers/CMSIS/Include/cmsis_gcc.h **** - 109:Drivers/CMSIS/Include/cmsis_gcc.h **** __ASM volatile ("MRS %0, ipsr" : "=r" (result) ); - 110:Drivers/CMSIS/Include/cmsis_gcc.h **** return(result); - 111:Drivers/CMSIS/Include/cmsis_gcc.h **** } - 112:Drivers/CMSIS/Include/cmsis_gcc.h **** - 113:Drivers/CMSIS/Include/cmsis_gcc.h **** - 114:Drivers/CMSIS/Include/cmsis_gcc.h **** /** - 115:Drivers/CMSIS/Include/cmsis_gcc.h **** \brief Get APSR Register - 116:Drivers/CMSIS/Include/cmsis_gcc.h **** \details Returns the content of the APSR Register. - 117:Drivers/CMSIS/Include/cmsis_gcc.h **** \return APSR Register value - 118:Drivers/CMSIS/Include/cmsis_gcc.h **** */ - 119:Drivers/CMSIS/Include/cmsis_gcc.h **** __attribute__( ( always_inline ) ) __STATIC_INLINE uint32_t __get_APSR(void) - 120:Drivers/CMSIS/Include/cmsis_gcc.h **** { - 121:Drivers/CMSIS/Include/cmsis_gcc.h **** uint32_t result; - 122:Drivers/CMSIS/Include/cmsis_gcc.h **** - 123:Drivers/CMSIS/Include/cmsis_gcc.h **** __ASM volatile ("MRS %0, apsr" : "=r" (result) ); - 124:Drivers/CMSIS/Include/cmsis_gcc.h **** return(result); - 125:Drivers/CMSIS/Include/cmsis_gcc.h **** } - 126:Drivers/CMSIS/Include/cmsis_gcc.h **** - 127:Drivers/CMSIS/Include/cmsis_gcc.h **** - 128:Drivers/CMSIS/Include/cmsis_gcc.h **** /** - 129:Drivers/CMSIS/Include/cmsis_gcc.h **** \brief Get xPSR Register - 130:Drivers/CMSIS/Include/cmsis_gcc.h **** \details Returns the content of the xPSR Register. - 131:Drivers/CMSIS/Include/cmsis_gcc.h **** - 132:Drivers/CMSIS/Include/cmsis_gcc.h **** \return xPSR Register value - 133:Drivers/CMSIS/Include/cmsis_gcc.h **** */ - 134:Drivers/CMSIS/Include/cmsis_gcc.h **** __attribute__( ( always_inline ) ) __STATIC_INLINE uint32_t __get_xPSR(void) - 135:Drivers/CMSIS/Include/cmsis_gcc.h **** { - 136:Drivers/CMSIS/Include/cmsis_gcc.h **** uint32_t result; - 137:Drivers/CMSIS/Include/cmsis_gcc.h **** - 138:Drivers/CMSIS/Include/cmsis_gcc.h **** __ASM volatile ("MRS %0, xpsr" : "=r" (result) ); - 139:Drivers/CMSIS/Include/cmsis_gcc.h **** return(result); - 140:Drivers/CMSIS/Include/cmsis_gcc.h **** } - 141:Drivers/CMSIS/Include/cmsis_gcc.h **** - 142:Drivers/CMSIS/Include/cmsis_gcc.h **** - ARM GAS /tmp/cc8pPmIp.s page 23 - - - 143:Drivers/CMSIS/Include/cmsis_gcc.h **** /** - 144:Drivers/CMSIS/Include/cmsis_gcc.h **** \brief Get Process Stack Pointer - 145:Drivers/CMSIS/Include/cmsis_gcc.h **** \details Returns the current value of the Process Stack Pointer (PSP). - 146:Drivers/CMSIS/Include/cmsis_gcc.h **** \return PSP Register value - 147:Drivers/CMSIS/Include/cmsis_gcc.h **** */ - 148:Drivers/CMSIS/Include/cmsis_gcc.h **** __attribute__( ( always_inline ) ) __STATIC_INLINE uint32_t __get_PSP(void) - 149:Drivers/CMSIS/Include/cmsis_gcc.h **** { - 150:Drivers/CMSIS/Include/cmsis_gcc.h **** register uint32_t result; - 151:Drivers/CMSIS/Include/cmsis_gcc.h **** - 152:Drivers/CMSIS/Include/cmsis_gcc.h **** __ASM volatile ("MRS %0, psp\n" : "=r" (result) ); - 153:Drivers/CMSIS/Include/cmsis_gcc.h **** return(result); - 154:Drivers/CMSIS/Include/cmsis_gcc.h **** } - 155:Drivers/CMSIS/Include/cmsis_gcc.h **** - 156:Drivers/CMSIS/Include/cmsis_gcc.h **** - 157:Drivers/CMSIS/Include/cmsis_gcc.h **** /** - 158:Drivers/CMSIS/Include/cmsis_gcc.h **** \brief Set Process Stack Pointer - 159:Drivers/CMSIS/Include/cmsis_gcc.h **** \details Assigns the given value to the Process Stack Pointer (PSP). - 160:Drivers/CMSIS/Include/cmsis_gcc.h **** \param [in] topOfProcStack Process Stack Pointer value to set - 161:Drivers/CMSIS/Include/cmsis_gcc.h **** */ - 162:Drivers/CMSIS/Include/cmsis_gcc.h **** __attribute__( ( always_inline ) ) __STATIC_INLINE void __set_PSP(uint32_t topOfProcStack) - 163:Drivers/CMSIS/Include/cmsis_gcc.h **** { - 164:Drivers/CMSIS/Include/cmsis_gcc.h **** __ASM volatile ("MSR psp, %0\n" : : "r" (topOfProcStack) : "sp"); - 165:Drivers/CMSIS/Include/cmsis_gcc.h **** } - 166:Drivers/CMSIS/Include/cmsis_gcc.h **** - 167:Drivers/CMSIS/Include/cmsis_gcc.h **** - 168:Drivers/CMSIS/Include/cmsis_gcc.h **** /** - 169:Drivers/CMSIS/Include/cmsis_gcc.h **** \brief Get Main Stack Pointer - 170:Drivers/CMSIS/Include/cmsis_gcc.h **** \details Returns the current value of the Main Stack Pointer (MSP). - 171:Drivers/CMSIS/Include/cmsis_gcc.h **** \return MSP Register value - 172:Drivers/CMSIS/Include/cmsis_gcc.h **** */ - 173:Drivers/CMSIS/Include/cmsis_gcc.h **** __attribute__( ( always_inline ) ) __STATIC_INLINE uint32_t __get_MSP(void) - 174:Drivers/CMSIS/Include/cmsis_gcc.h **** { - 175:Drivers/CMSIS/Include/cmsis_gcc.h **** register uint32_t result; - 176:Drivers/CMSIS/Include/cmsis_gcc.h **** - 177:Drivers/CMSIS/Include/cmsis_gcc.h **** __ASM volatile ("MRS %0, msp\n" : "=r" (result) ); - 178:Drivers/CMSIS/Include/cmsis_gcc.h **** return(result); - 179:Drivers/CMSIS/Include/cmsis_gcc.h **** } - 180:Drivers/CMSIS/Include/cmsis_gcc.h **** - 181:Drivers/CMSIS/Include/cmsis_gcc.h **** - 182:Drivers/CMSIS/Include/cmsis_gcc.h **** /** - 183:Drivers/CMSIS/Include/cmsis_gcc.h **** \brief Set Main Stack Pointer - 184:Drivers/CMSIS/Include/cmsis_gcc.h **** \details Assigns the given value to the Main Stack Pointer (MSP). - 185:Drivers/CMSIS/Include/cmsis_gcc.h **** - 186:Drivers/CMSIS/Include/cmsis_gcc.h **** \param [in] topOfMainStack Main Stack Pointer value to set - 187:Drivers/CMSIS/Include/cmsis_gcc.h **** */ - 188:Drivers/CMSIS/Include/cmsis_gcc.h **** __attribute__( ( always_inline ) ) __STATIC_INLINE void __set_MSP(uint32_t topOfMainStack) - 189:Drivers/CMSIS/Include/cmsis_gcc.h **** { - 190:Drivers/CMSIS/Include/cmsis_gcc.h **** __ASM volatile ("MSR msp, %0\n" : : "r" (topOfMainStack) : "sp"); - 191:Drivers/CMSIS/Include/cmsis_gcc.h **** } - 192:Drivers/CMSIS/Include/cmsis_gcc.h **** - 193:Drivers/CMSIS/Include/cmsis_gcc.h **** - 194:Drivers/CMSIS/Include/cmsis_gcc.h **** /** - 195:Drivers/CMSIS/Include/cmsis_gcc.h **** \brief Get Priority Mask - 196:Drivers/CMSIS/Include/cmsis_gcc.h **** \details Returns the current state of the priority mask bit from the Priority Mask Register. - 197:Drivers/CMSIS/Include/cmsis_gcc.h **** \return Priority Mask value - 198:Drivers/CMSIS/Include/cmsis_gcc.h **** */ - 199:Drivers/CMSIS/Include/cmsis_gcc.h **** __attribute__( ( always_inline ) ) __STATIC_INLINE uint32_t __get_PRIMASK(void) - ARM GAS /tmp/cc8pPmIp.s page 24 - - - 200:Drivers/CMSIS/Include/cmsis_gcc.h **** { - 201:Drivers/CMSIS/Include/cmsis_gcc.h **** uint32_t result; - 202:Drivers/CMSIS/Include/cmsis_gcc.h **** - 203:Drivers/CMSIS/Include/cmsis_gcc.h **** __ASM volatile ("MRS %0, primask" : "=r" (result) ); - 204:Drivers/CMSIS/Include/cmsis_gcc.h **** return(result); - 205:Drivers/CMSIS/Include/cmsis_gcc.h **** } - 206:Drivers/CMSIS/Include/cmsis_gcc.h **** - 207:Drivers/CMSIS/Include/cmsis_gcc.h **** - 208:Drivers/CMSIS/Include/cmsis_gcc.h **** /** - 209:Drivers/CMSIS/Include/cmsis_gcc.h **** \brief Set Priority Mask - 210:Drivers/CMSIS/Include/cmsis_gcc.h **** \details Assigns the given value to the Priority Mask Register. - 211:Drivers/CMSIS/Include/cmsis_gcc.h **** \param [in] priMask Priority Mask - 212:Drivers/CMSIS/Include/cmsis_gcc.h **** */ - 213:Drivers/CMSIS/Include/cmsis_gcc.h **** __attribute__( ( always_inline ) ) __STATIC_INLINE void __set_PRIMASK(uint32_t priMask) - 214:Drivers/CMSIS/Include/cmsis_gcc.h **** { - 215:Drivers/CMSIS/Include/cmsis_gcc.h **** __ASM volatile ("MSR primask, %0" : : "r" (priMask) : "memory"); - 216:Drivers/CMSIS/Include/cmsis_gcc.h **** } - 217:Drivers/CMSIS/Include/cmsis_gcc.h **** - 218:Drivers/CMSIS/Include/cmsis_gcc.h **** - 219:Drivers/CMSIS/Include/cmsis_gcc.h **** #if (__CORTEX_M >= 0x03U) - 220:Drivers/CMSIS/Include/cmsis_gcc.h **** - 221:Drivers/CMSIS/Include/cmsis_gcc.h **** /** - 222:Drivers/CMSIS/Include/cmsis_gcc.h **** \brief Enable FIQ - 223:Drivers/CMSIS/Include/cmsis_gcc.h **** \details Enables FIQ interrupts by clearing the F-bit in the CPSR. - 224:Drivers/CMSIS/Include/cmsis_gcc.h **** Can only be executed in Privileged modes. - 225:Drivers/CMSIS/Include/cmsis_gcc.h **** */ - 226:Drivers/CMSIS/Include/cmsis_gcc.h **** __attribute__( ( always_inline ) ) __STATIC_INLINE void __enable_fault_irq(void) - 227:Drivers/CMSIS/Include/cmsis_gcc.h **** { - 228:Drivers/CMSIS/Include/cmsis_gcc.h **** __ASM volatile ("cpsie f" : : : "memory"); - 229:Drivers/CMSIS/Include/cmsis_gcc.h **** } - 230:Drivers/CMSIS/Include/cmsis_gcc.h **** - 231:Drivers/CMSIS/Include/cmsis_gcc.h **** - 232:Drivers/CMSIS/Include/cmsis_gcc.h **** /** - 233:Drivers/CMSIS/Include/cmsis_gcc.h **** \brief Disable FIQ - 234:Drivers/CMSIS/Include/cmsis_gcc.h **** \details Disables FIQ interrupts by setting the F-bit in the CPSR. - 235:Drivers/CMSIS/Include/cmsis_gcc.h **** Can only be executed in Privileged modes. - 236:Drivers/CMSIS/Include/cmsis_gcc.h **** */ - 237:Drivers/CMSIS/Include/cmsis_gcc.h **** __attribute__( ( always_inline ) ) __STATIC_INLINE void __disable_fault_irq(void) - 238:Drivers/CMSIS/Include/cmsis_gcc.h **** { - 239:Drivers/CMSIS/Include/cmsis_gcc.h **** __ASM volatile ("cpsid f" : : : "memory"); - 240:Drivers/CMSIS/Include/cmsis_gcc.h **** } - 241:Drivers/CMSIS/Include/cmsis_gcc.h **** - 242:Drivers/CMSIS/Include/cmsis_gcc.h **** - 243:Drivers/CMSIS/Include/cmsis_gcc.h **** /** - 244:Drivers/CMSIS/Include/cmsis_gcc.h **** \brief Get Base Priority - 245:Drivers/CMSIS/Include/cmsis_gcc.h **** \details Returns the current value of the Base Priority register. - 246:Drivers/CMSIS/Include/cmsis_gcc.h **** \return Base Priority register value - 247:Drivers/CMSIS/Include/cmsis_gcc.h **** */ - 248:Drivers/CMSIS/Include/cmsis_gcc.h **** __attribute__( ( always_inline ) ) __STATIC_INLINE uint32_t __get_BASEPRI(void) - 249:Drivers/CMSIS/Include/cmsis_gcc.h **** { - 250:Drivers/CMSIS/Include/cmsis_gcc.h **** uint32_t result; - 251:Drivers/CMSIS/Include/cmsis_gcc.h **** - 252:Drivers/CMSIS/Include/cmsis_gcc.h **** __ASM volatile ("MRS %0, basepri" : "=r" (result) ); - 253:Drivers/CMSIS/Include/cmsis_gcc.h **** return(result); - 254:Drivers/CMSIS/Include/cmsis_gcc.h **** } - 255:Drivers/CMSIS/Include/cmsis_gcc.h **** - 256:Drivers/CMSIS/Include/cmsis_gcc.h **** - ARM GAS /tmp/cc8pPmIp.s page 25 - - - 257:Drivers/CMSIS/Include/cmsis_gcc.h **** /** - 258:Drivers/CMSIS/Include/cmsis_gcc.h **** \brief Set Base Priority - 259:Drivers/CMSIS/Include/cmsis_gcc.h **** \details Assigns the given value to the Base Priority register. - 260:Drivers/CMSIS/Include/cmsis_gcc.h **** \param [in] basePri Base Priority value to set - 261:Drivers/CMSIS/Include/cmsis_gcc.h **** */ - 262:Drivers/CMSIS/Include/cmsis_gcc.h **** __attribute__( ( always_inline ) ) __STATIC_INLINE void __set_BASEPRI(uint32_t value) - 263:Drivers/CMSIS/Include/cmsis_gcc.h **** { - 264:Drivers/CMSIS/Include/cmsis_gcc.h **** __ASM volatile ("MSR basepri, %0" : : "r" (value) : "memory"); - 265:Drivers/CMSIS/Include/cmsis_gcc.h **** } - 266:Drivers/CMSIS/Include/cmsis_gcc.h **** - 267:Drivers/CMSIS/Include/cmsis_gcc.h **** - 268:Drivers/CMSIS/Include/cmsis_gcc.h **** /** - 269:Drivers/CMSIS/Include/cmsis_gcc.h **** \brief Set Base Priority with condition - 270:Drivers/CMSIS/Include/cmsis_gcc.h **** \details Assigns the given value to the Base Priority register only if BASEPRI masking is disable - 271:Drivers/CMSIS/Include/cmsis_gcc.h **** or the new value increases the BASEPRI priority level. - 272:Drivers/CMSIS/Include/cmsis_gcc.h **** \param [in] basePri Base Priority value to set - 273:Drivers/CMSIS/Include/cmsis_gcc.h **** */ - 274:Drivers/CMSIS/Include/cmsis_gcc.h **** __attribute__( ( always_inline ) ) __STATIC_INLINE void __set_BASEPRI_MAX(uint32_t value) - 275:Drivers/CMSIS/Include/cmsis_gcc.h **** { - 276:Drivers/CMSIS/Include/cmsis_gcc.h **** __ASM volatile ("MSR basepri_max, %0" : : "r" (value) : "memory"); - 277:Drivers/CMSIS/Include/cmsis_gcc.h **** } - 278:Drivers/CMSIS/Include/cmsis_gcc.h **** - 279:Drivers/CMSIS/Include/cmsis_gcc.h **** - 280:Drivers/CMSIS/Include/cmsis_gcc.h **** /** - 281:Drivers/CMSIS/Include/cmsis_gcc.h **** \brief Get Fault Mask - 282:Drivers/CMSIS/Include/cmsis_gcc.h **** \details Returns the current value of the Fault Mask register. - 283:Drivers/CMSIS/Include/cmsis_gcc.h **** \return Fault Mask register value - 284:Drivers/CMSIS/Include/cmsis_gcc.h **** */ - 285:Drivers/CMSIS/Include/cmsis_gcc.h **** __attribute__( ( always_inline ) ) __STATIC_INLINE uint32_t __get_FAULTMASK(void) - 286:Drivers/CMSIS/Include/cmsis_gcc.h **** { - 287:Drivers/CMSIS/Include/cmsis_gcc.h **** uint32_t result; - 288:Drivers/CMSIS/Include/cmsis_gcc.h **** - 289:Drivers/CMSIS/Include/cmsis_gcc.h **** __ASM volatile ("MRS %0, faultmask" : "=r" (result) ); - 290:Drivers/CMSIS/Include/cmsis_gcc.h **** return(result); - 291:Drivers/CMSIS/Include/cmsis_gcc.h **** } - 292:Drivers/CMSIS/Include/cmsis_gcc.h **** - 293:Drivers/CMSIS/Include/cmsis_gcc.h **** - 294:Drivers/CMSIS/Include/cmsis_gcc.h **** /** - 295:Drivers/CMSIS/Include/cmsis_gcc.h **** \brief Set Fault Mask - 296:Drivers/CMSIS/Include/cmsis_gcc.h **** \details Assigns the given value to the Fault Mask register. - 297:Drivers/CMSIS/Include/cmsis_gcc.h **** \param [in] faultMask Fault Mask value to set - 298:Drivers/CMSIS/Include/cmsis_gcc.h **** */ - 299:Drivers/CMSIS/Include/cmsis_gcc.h **** __attribute__( ( always_inline ) ) __STATIC_INLINE void __set_FAULTMASK(uint32_t faultMask) - 300:Drivers/CMSIS/Include/cmsis_gcc.h **** { - 301:Drivers/CMSIS/Include/cmsis_gcc.h **** __ASM volatile ("MSR faultmask, %0" : : "r" (faultMask) : "memory"); - 302:Drivers/CMSIS/Include/cmsis_gcc.h **** } - 303:Drivers/CMSIS/Include/cmsis_gcc.h **** - 304:Drivers/CMSIS/Include/cmsis_gcc.h **** #endif /* (__CORTEX_M >= 0x03U) */ - 305:Drivers/CMSIS/Include/cmsis_gcc.h **** - 306:Drivers/CMSIS/Include/cmsis_gcc.h **** - 307:Drivers/CMSIS/Include/cmsis_gcc.h **** #if (__CORTEX_M == 0x04U) || (__CORTEX_M == 0x07U) - 308:Drivers/CMSIS/Include/cmsis_gcc.h **** - 309:Drivers/CMSIS/Include/cmsis_gcc.h **** /** - 310:Drivers/CMSIS/Include/cmsis_gcc.h **** \brief Get FPSCR - 311:Drivers/CMSIS/Include/cmsis_gcc.h **** \details Returns the current value of the Floating Point Status/Control register. - 312:Drivers/CMSIS/Include/cmsis_gcc.h **** \return Floating Point Status/Control register value - 313:Drivers/CMSIS/Include/cmsis_gcc.h **** */ - ARM GAS /tmp/cc8pPmIp.s page 26 - - - 314:Drivers/CMSIS/Include/cmsis_gcc.h **** __attribute__( ( always_inline ) ) __STATIC_INLINE uint32_t __get_FPSCR(void) - 315:Drivers/CMSIS/Include/cmsis_gcc.h **** { - 316:Drivers/CMSIS/Include/cmsis_gcc.h **** #if (__FPU_PRESENT == 1U) && (__FPU_USED == 1U) - 317:Drivers/CMSIS/Include/cmsis_gcc.h **** uint32_t result; - 318:Drivers/CMSIS/Include/cmsis_gcc.h **** - 319:Drivers/CMSIS/Include/cmsis_gcc.h **** /* Empty asm statement works as a scheduling barrier */ - 320:Drivers/CMSIS/Include/cmsis_gcc.h **** __ASM volatile (""); - 321:Drivers/CMSIS/Include/cmsis_gcc.h **** __ASM volatile ("VMRS %0, fpscr" : "=r" (result) ); - 322:Drivers/CMSIS/Include/cmsis_gcc.h **** __ASM volatile (""); - 323:Drivers/CMSIS/Include/cmsis_gcc.h **** return(result); - 324:Drivers/CMSIS/Include/cmsis_gcc.h **** #else - 325:Drivers/CMSIS/Include/cmsis_gcc.h **** return(0); - 326:Drivers/CMSIS/Include/cmsis_gcc.h **** #endif - 327:Drivers/CMSIS/Include/cmsis_gcc.h **** } - 328:Drivers/CMSIS/Include/cmsis_gcc.h **** - 329:Drivers/CMSIS/Include/cmsis_gcc.h **** - 330:Drivers/CMSIS/Include/cmsis_gcc.h **** /** - 331:Drivers/CMSIS/Include/cmsis_gcc.h **** \brief Set FPSCR - 332:Drivers/CMSIS/Include/cmsis_gcc.h **** \details Assigns the given value to the Floating Point Status/Control register. - 333:Drivers/CMSIS/Include/cmsis_gcc.h **** \param [in] fpscr Floating Point Status/Control value to set - 334:Drivers/CMSIS/Include/cmsis_gcc.h **** */ - 335:Drivers/CMSIS/Include/cmsis_gcc.h **** __attribute__( ( always_inline ) ) __STATIC_INLINE void __set_FPSCR(uint32_t fpscr) - 336:Drivers/CMSIS/Include/cmsis_gcc.h **** { - 337:Drivers/CMSIS/Include/cmsis_gcc.h **** #if (__FPU_PRESENT == 1U) && (__FPU_USED == 1U) - 338:Drivers/CMSIS/Include/cmsis_gcc.h **** /* Empty asm statement works as a scheduling barrier */ - 339:Drivers/CMSIS/Include/cmsis_gcc.h **** __ASM volatile (""); - 340:Drivers/CMSIS/Include/cmsis_gcc.h **** __ASM volatile ("VMSR fpscr, %0" : : "r" (fpscr) : "vfpcc"); - 341:Drivers/CMSIS/Include/cmsis_gcc.h **** __ASM volatile (""); - 342:Drivers/CMSIS/Include/cmsis_gcc.h **** #endif - 343:Drivers/CMSIS/Include/cmsis_gcc.h **** } - 344:Drivers/CMSIS/Include/cmsis_gcc.h **** - 345:Drivers/CMSIS/Include/cmsis_gcc.h **** #endif /* (__CORTEX_M == 0x04U) || (__CORTEX_M == 0x07U) */ - 346:Drivers/CMSIS/Include/cmsis_gcc.h **** - 347:Drivers/CMSIS/Include/cmsis_gcc.h **** - 348:Drivers/CMSIS/Include/cmsis_gcc.h **** - 349:Drivers/CMSIS/Include/cmsis_gcc.h **** /*@} end of CMSIS_Core_RegAccFunctions */ - 350:Drivers/CMSIS/Include/cmsis_gcc.h **** - 351:Drivers/CMSIS/Include/cmsis_gcc.h **** - 352:Drivers/CMSIS/Include/cmsis_gcc.h **** /* ########################## Core Instruction Access ######################### */ - 353:Drivers/CMSIS/Include/cmsis_gcc.h **** /** \defgroup CMSIS_Core_InstructionInterface CMSIS Core Instruction Interface - 354:Drivers/CMSIS/Include/cmsis_gcc.h **** Access to dedicated instructions - 355:Drivers/CMSIS/Include/cmsis_gcc.h **** @{ - 356:Drivers/CMSIS/Include/cmsis_gcc.h **** */ - 357:Drivers/CMSIS/Include/cmsis_gcc.h **** - 358:Drivers/CMSIS/Include/cmsis_gcc.h **** /* Define macros for porting to both thumb1 and thumb2. - 359:Drivers/CMSIS/Include/cmsis_gcc.h **** * For thumb1, use low register (r0-r7), specified by constraint "l" - 360:Drivers/CMSIS/Include/cmsis_gcc.h **** * Otherwise, use general registers, specified by constraint "r" */ - 361:Drivers/CMSIS/Include/cmsis_gcc.h **** #if defined (__thumb__) && !defined (__thumb2__) - 362:Drivers/CMSIS/Include/cmsis_gcc.h **** #define __CMSIS_GCC_OUT_REG(r) "=l" (r) - 363:Drivers/CMSIS/Include/cmsis_gcc.h **** #define __CMSIS_GCC_USE_REG(r) "l" (r) - 364:Drivers/CMSIS/Include/cmsis_gcc.h **** #else - 365:Drivers/CMSIS/Include/cmsis_gcc.h **** #define __CMSIS_GCC_OUT_REG(r) "=r" (r) - 366:Drivers/CMSIS/Include/cmsis_gcc.h **** #define __CMSIS_GCC_USE_REG(r) "r" (r) - 367:Drivers/CMSIS/Include/cmsis_gcc.h **** #endif - 368:Drivers/CMSIS/Include/cmsis_gcc.h **** - 369:Drivers/CMSIS/Include/cmsis_gcc.h **** /** - 370:Drivers/CMSIS/Include/cmsis_gcc.h **** \brief No Operation - ARM GAS /tmp/cc8pPmIp.s page 27 - - - 371:Drivers/CMSIS/Include/cmsis_gcc.h **** \details No Operation does nothing. This instruction can be used for code alignment purposes. - 372:Drivers/CMSIS/Include/cmsis_gcc.h **** */ - 373:Drivers/CMSIS/Include/cmsis_gcc.h **** __attribute__((always_inline)) __STATIC_INLINE void __NOP(void) - 374:Drivers/CMSIS/Include/cmsis_gcc.h **** { - 375:Drivers/CMSIS/Include/cmsis_gcc.h **** __ASM volatile ("nop"); - 376:Drivers/CMSIS/Include/cmsis_gcc.h **** } - 377:Drivers/CMSIS/Include/cmsis_gcc.h **** - 378:Drivers/CMSIS/Include/cmsis_gcc.h **** - 379:Drivers/CMSIS/Include/cmsis_gcc.h **** /** - 380:Drivers/CMSIS/Include/cmsis_gcc.h **** \brief Wait For Interrupt - 381:Drivers/CMSIS/Include/cmsis_gcc.h **** \details Wait For Interrupt is a hint instruction that suspends execution until one of a number o - 382:Drivers/CMSIS/Include/cmsis_gcc.h **** */ - 383:Drivers/CMSIS/Include/cmsis_gcc.h **** __attribute__((always_inline)) __STATIC_INLINE void __WFI(void) - 384:Drivers/CMSIS/Include/cmsis_gcc.h **** { - 385:Drivers/CMSIS/Include/cmsis_gcc.h **** __ASM volatile ("wfi"); - 386:Drivers/CMSIS/Include/cmsis_gcc.h **** } - 387:Drivers/CMSIS/Include/cmsis_gcc.h **** - 388:Drivers/CMSIS/Include/cmsis_gcc.h **** - 389:Drivers/CMSIS/Include/cmsis_gcc.h **** /** - 390:Drivers/CMSIS/Include/cmsis_gcc.h **** \brief Wait For Event - 391:Drivers/CMSIS/Include/cmsis_gcc.h **** \details Wait For Event is a hint instruction that permits the processor to enter - 392:Drivers/CMSIS/Include/cmsis_gcc.h **** a low-power state until one of a number of events occurs. - 393:Drivers/CMSIS/Include/cmsis_gcc.h **** */ - 394:Drivers/CMSIS/Include/cmsis_gcc.h **** __attribute__((always_inline)) __STATIC_INLINE void __WFE(void) - 395:Drivers/CMSIS/Include/cmsis_gcc.h **** { - 396:Drivers/CMSIS/Include/cmsis_gcc.h **** __ASM volatile ("wfe"); - 397:Drivers/CMSIS/Include/cmsis_gcc.h **** } - 398:Drivers/CMSIS/Include/cmsis_gcc.h **** - 399:Drivers/CMSIS/Include/cmsis_gcc.h **** - 400:Drivers/CMSIS/Include/cmsis_gcc.h **** /** - 401:Drivers/CMSIS/Include/cmsis_gcc.h **** \brief Send Event - 402:Drivers/CMSIS/Include/cmsis_gcc.h **** \details Send Event is a hint instruction. It causes an event to be signaled to the CPU. - 403:Drivers/CMSIS/Include/cmsis_gcc.h **** */ - 404:Drivers/CMSIS/Include/cmsis_gcc.h **** __attribute__((always_inline)) __STATIC_INLINE void __SEV(void) - 405:Drivers/CMSIS/Include/cmsis_gcc.h **** { - 406:Drivers/CMSIS/Include/cmsis_gcc.h **** __ASM volatile ("sev"); - 407:Drivers/CMSIS/Include/cmsis_gcc.h **** } - 408:Drivers/CMSIS/Include/cmsis_gcc.h **** - 409:Drivers/CMSIS/Include/cmsis_gcc.h **** - 410:Drivers/CMSIS/Include/cmsis_gcc.h **** /** - 411:Drivers/CMSIS/Include/cmsis_gcc.h **** \brief Instruction Synchronization Barrier - 412:Drivers/CMSIS/Include/cmsis_gcc.h **** \details Instruction Synchronization Barrier flushes the pipeline in the processor, - 413:Drivers/CMSIS/Include/cmsis_gcc.h **** so that all instructions following the ISB are fetched from cache or memory, - 414:Drivers/CMSIS/Include/cmsis_gcc.h **** after the instruction has been completed. - 415:Drivers/CMSIS/Include/cmsis_gcc.h **** */ - 416:Drivers/CMSIS/Include/cmsis_gcc.h **** __attribute__((always_inline)) __STATIC_INLINE void __ISB(void) - 417:Drivers/CMSIS/Include/cmsis_gcc.h **** { - 418:Drivers/CMSIS/Include/cmsis_gcc.h **** __ASM volatile ("isb 0xF":::"memory"); - 419:Drivers/CMSIS/Include/cmsis_gcc.h **** } - 420:Drivers/CMSIS/Include/cmsis_gcc.h **** - 421:Drivers/CMSIS/Include/cmsis_gcc.h **** - 422:Drivers/CMSIS/Include/cmsis_gcc.h **** /** - 423:Drivers/CMSIS/Include/cmsis_gcc.h **** \brief Data Synchronization Barrier - 424:Drivers/CMSIS/Include/cmsis_gcc.h **** \details Acts as a special kind of Data Memory Barrier. - 425:Drivers/CMSIS/Include/cmsis_gcc.h **** It completes when all explicit memory accesses before this instruction complete. - 426:Drivers/CMSIS/Include/cmsis_gcc.h **** */ - 427:Drivers/CMSIS/Include/cmsis_gcc.h **** __attribute__((always_inline)) __STATIC_INLINE void __DSB(void) - ARM GAS /tmp/cc8pPmIp.s page 28 - - - 428:Drivers/CMSIS/Include/cmsis_gcc.h **** { - 429:Drivers/CMSIS/Include/cmsis_gcc.h **** __ASM volatile ("dsb 0xF":::"memory"); - 218 .loc 3 429 0 - 219 .syntax divided - 220 @ 429 "Drivers/CMSIS/Include/cmsis_gcc.h" 1 - 221 0000 BFF34F8F dsb 0xF - 222 @ 0 "" 2 - 223 .thumb - 224 .syntax unified - 225 .LBE45: - 226 .LBE44: - 699:Drivers/CMSIS/Include/core_cm0.h **** } - 700:Drivers/CMSIS/Include/core_cm0.h **** } - 701:Drivers/CMSIS/Include/core_cm0.h **** - 702:Drivers/CMSIS/Include/core_cm0.h **** - 703:Drivers/CMSIS/Include/core_cm0.h **** /** - 704:Drivers/CMSIS/Include/core_cm0.h **** \brief Get Interrupt Priority - 705:Drivers/CMSIS/Include/core_cm0.h **** \details Reads the priority of an interrupt. - 706:Drivers/CMSIS/Include/core_cm0.h **** The interrupt number can be positive to specify an external (device specific) interrupt, - 707:Drivers/CMSIS/Include/core_cm0.h **** or negative to specify an internal (core) interrupt. - 708:Drivers/CMSIS/Include/core_cm0.h **** \param [in] IRQn Interrupt number. - 709:Drivers/CMSIS/Include/core_cm0.h **** \return Interrupt Priority. - 710:Drivers/CMSIS/Include/core_cm0.h **** Value is aligned automatically to the implemented priority bits of the microc - 711:Drivers/CMSIS/Include/core_cm0.h **** */ - 712:Drivers/CMSIS/Include/core_cm0.h **** __STATIC_INLINE uint32_t NVIC_GetPriority(IRQn_Type IRQn) - 713:Drivers/CMSIS/Include/core_cm0.h **** { - 714:Drivers/CMSIS/Include/core_cm0.h **** - 715:Drivers/CMSIS/Include/core_cm0.h **** if ((int32_t)(IRQn) < 0) - 716:Drivers/CMSIS/Include/core_cm0.h **** { - 717:Drivers/CMSIS/Include/core_cm0.h **** return((uint32_t)(((SCB->SHP[_SHP_IDX(IRQn)] >> _BIT_SHIFT(IRQn) ) & (uint32_t)0xFFUL) >> (8U - - 718:Drivers/CMSIS/Include/core_cm0.h **** } - 719:Drivers/CMSIS/Include/core_cm0.h **** else - 720:Drivers/CMSIS/Include/core_cm0.h **** { - 721:Drivers/CMSIS/Include/core_cm0.h **** return((uint32_t)(((NVIC->IP[ _IP_IDX(IRQn)] >> _BIT_SHIFT(IRQn) ) & (uint32_t)0xFFUL) >> (8U - - 722:Drivers/CMSIS/Include/core_cm0.h **** } - 723:Drivers/CMSIS/Include/core_cm0.h **** } - 724:Drivers/CMSIS/Include/core_cm0.h **** - 725:Drivers/CMSIS/Include/core_cm0.h **** - 726:Drivers/CMSIS/Include/core_cm0.h **** /** - 727:Drivers/CMSIS/Include/core_cm0.h **** \brief System Reset - 728:Drivers/CMSIS/Include/core_cm0.h **** \details Initiates a system reset request to reset the MCU. - 729:Drivers/CMSIS/Include/core_cm0.h **** */ - 730:Drivers/CMSIS/Include/core_cm0.h **** __STATIC_INLINE void NVIC_SystemReset(void) - 731:Drivers/CMSIS/Include/core_cm0.h **** { - 732:Drivers/CMSIS/Include/core_cm0.h **** __DSB(); /* Ensure all outstanding memor - 733:Drivers/CMSIS/Include/core_cm0.h **** buffered write are completed - 734:Drivers/CMSIS/Include/core_cm0.h **** SCB->AIRCR = ((0x5FAUL << SCB_AIRCR_VECTKEY_Pos) | - 227 .loc 2 734 0 - 228 0004 034B ldr r3, .L15 - 229 0006 044A ldr r2, .L15+4 - 230 0008 DA60 str r2, [r3, #12] - 231 .LBB46: - 232 .LBB47: - 233 .loc 3 429 0 - 234 .syntax divided - 235 @ 429 "Drivers/CMSIS/Include/cmsis_gcc.h" 1 - 236 000a BFF34F8F dsb 0xF - ARM GAS /tmp/cc8pPmIp.s page 29 - - - 237 @ 0 "" 2 - 238 .thumb - 239 .syntax unified - 240 .L14: - 241 .LBE47: - 242 .LBE46: - 243 .LBB48: - 244 .LBB49: - 375:Drivers/CMSIS/Include/cmsis_gcc.h **** } - 245 .loc 3 375 0 - 246 .syntax divided - 247 @ 375 "Drivers/CMSIS/Include/cmsis_gcc.h" 1 - 248 000e C046 nop - 249 @ 0 "" 2 - 250 .thumb - 251 .syntax unified - 252 0010 FDE7 b .L14 - 253 .L16: - 254 0012 C046 .align 2 - 255 .L15: - 256 0014 00ED00E0 .word -536810240 - 257 0018 0400FA05 .word 100270084 - 258 .LBE49: - 259 .LBE48: - 260 .LBE43: - 261 .LBE42: - 262 .cfi_endproc - 263 .LFE40: - 265 .section .text.HAL_SYSTICK_Config,"ax",%progbits - 266 .align 1 - 267 .global HAL_SYSTICK_Config - 268 .syntax unified - 269 .code 16 - 270 .thumb_func - 271 .fpu softvfp - 273 HAL_SYSTICK_Config: - 274 .LFB41: - 199:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_cortex.c **** /* System Reset */ - 200:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_cortex.c **** NVIC_SystemReset(); - 201:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_cortex.c **** } - 202:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_cortex.c **** - 203:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_cortex.c **** /** - 204:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_cortex.c **** * @brief Initializes the System Timer and its interrupt, and starts the System Tick Timer. - 205:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_cortex.c **** * Counter is in free running mode to generate periodic interrupts. - 206:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_cortex.c **** * @param TicksNumb Specifies the ticks Number of ticks between two interrupts. - 207:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_cortex.c **** * @retval status: - 0 Function succeeded. - 208:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_cortex.c **** * - 1 Function failed. - 209:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_cortex.c **** */ - 210:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_cortex.c **** uint32_t HAL_SYSTICK_Config(uint32_t TicksNumb) - 211:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_cortex.c **** { - 275 .loc 1 211 0 - 276 .cfi_startproc - 277 @ args = 0, pretend = 0, frame = 0 - 278 @ frame_needed = 0, uses_anonymous_args = 0 - 279 @ link register save eliminated. - 280 .LVL16: - 281 .LBB50: - ARM GAS /tmp/cc8pPmIp.s page 30 - - - 282 .LBB51: - 735:Drivers/CMSIS/Include/core_cm0.h **** SCB_AIRCR_SYSRESETREQ_Msk); - 736:Drivers/CMSIS/Include/core_cm0.h **** __DSB(); /* Ensure completion of memory - 737:Drivers/CMSIS/Include/core_cm0.h **** - 738:Drivers/CMSIS/Include/core_cm0.h **** for(;;) /* wait until reset */ - 739:Drivers/CMSIS/Include/core_cm0.h **** { - 740:Drivers/CMSIS/Include/core_cm0.h **** __NOP(); - 741:Drivers/CMSIS/Include/core_cm0.h **** } - 742:Drivers/CMSIS/Include/core_cm0.h **** } - 743:Drivers/CMSIS/Include/core_cm0.h **** - 744:Drivers/CMSIS/Include/core_cm0.h **** /*@} end of CMSIS_Core_NVICFunctions */ - 745:Drivers/CMSIS/Include/core_cm0.h **** - 746:Drivers/CMSIS/Include/core_cm0.h **** - 747:Drivers/CMSIS/Include/core_cm0.h **** - 748:Drivers/CMSIS/Include/core_cm0.h **** /* ################################## SysTick function ######################################## - 749:Drivers/CMSIS/Include/core_cm0.h **** /** - 750:Drivers/CMSIS/Include/core_cm0.h **** \ingroup CMSIS_Core_FunctionInterface - 751:Drivers/CMSIS/Include/core_cm0.h **** \defgroup CMSIS_Core_SysTickFunctions SysTick Functions - 752:Drivers/CMSIS/Include/core_cm0.h **** \brief Functions that configure the System. - 753:Drivers/CMSIS/Include/core_cm0.h **** @{ - 754:Drivers/CMSIS/Include/core_cm0.h **** */ - 755:Drivers/CMSIS/Include/core_cm0.h **** - 756:Drivers/CMSIS/Include/core_cm0.h **** #if (__Vendor_SysTickConfig == 0U) - 757:Drivers/CMSIS/Include/core_cm0.h **** - 758:Drivers/CMSIS/Include/core_cm0.h **** /** - 759:Drivers/CMSIS/Include/core_cm0.h **** \brief System Tick Configuration - 760:Drivers/CMSIS/Include/core_cm0.h **** \details Initializes the System Timer and its interrupt, and starts the System Tick Timer. - 761:Drivers/CMSIS/Include/core_cm0.h **** Counter is in free running mode to generate periodic interrupts. - 762:Drivers/CMSIS/Include/core_cm0.h **** \param [in] ticks Number of ticks between two interrupts. - 763:Drivers/CMSIS/Include/core_cm0.h **** \return 0 Function succeeded. - 764:Drivers/CMSIS/Include/core_cm0.h **** \return 1 Function failed. - 765:Drivers/CMSIS/Include/core_cm0.h **** \note When the variable __Vendor_SysTickConfig is set to 1, then the - 766:Drivers/CMSIS/Include/core_cm0.h **** function SysTick_Config is not included. In this case, the file device. - 767:Drivers/CMSIS/Include/core_cm0.h **** must contain a vendor-specific implementation of this function. - 768:Drivers/CMSIS/Include/core_cm0.h **** */ - 769:Drivers/CMSIS/Include/core_cm0.h **** __STATIC_INLINE uint32_t SysTick_Config(uint32_t ticks) - 770:Drivers/CMSIS/Include/core_cm0.h **** { - 771:Drivers/CMSIS/Include/core_cm0.h **** if ((ticks - 1UL) > SysTick_LOAD_RELOAD_Msk) - 283 .loc 2 771 0 - 284 0000 0138 subs r0, r0, #1 - 285 .LVL17: - 286 0002 0A4B ldr r3, .L20 - 287 0004 9842 cmp r0, r3 - 288 0006 0FD8 bhi .L19 - 772:Drivers/CMSIS/Include/core_cm0.h **** { - 773:Drivers/CMSIS/Include/core_cm0.h **** return (1UL); /* Reload value impossible */ - 774:Drivers/CMSIS/Include/core_cm0.h **** } - 775:Drivers/CMSIS/Include/core_cm0.h **** - 776:Drivers/CMSIS/Include/core_cm0.h **** SysTick->LOAD = (uint32_t)(ticks - 1UL); /* set reload register */ - 289 .loc 2 776 0 - 290 0008 094A ldr r2, .L20+4 - 291 000a 5060 str r0, [r2, #4] - 292 .LVL18: - 293 .LBB52: - 294 .LBB53: - 692:Drivers/CMSIS/Include/core_cm0.h **** (((priority << (8U - __NVIC_PRIO_BITS)) & (uint32_t)0xFFUL) << _BIT_SHIFT(IRQn))); - 295 .loc 2 692 0 - ARM GAS /tmp/cc8pPmIp.s page 31 - - - 296 000c 0948 ldr r0, .L20+8 - 297 .LVL19: - 298 000e 036A ldr r3, [r0, #32] - 299 0010 1B02 lsls r3, r3, #8 - 300 0012 1B0A lsrs r3, r3, #8 - 301 0014 C021 movs r1, #192 - 302 0016 0906 lsls r1, r1, #24 - 303 0018 0B43 orrs r3, r1 - 304 001a 0362 str r3, [r0, #32] - 305 .LVL20: - 306 .LBE53: - 307 .LBE52: - 777:Drivers/CMSIS/Include/core_cm0.h **** NVIC_SetPriority (SysTick_IRQn, (1UL << __NVIC_PRIO_BITS) - 1UL); /* set Priority for Systick Int - 778:Drivers/CMSIS/Include/core_cm0.h **** SysTick->VAL = 0UL; /* Load the SysTick Counter Val - 308 .loc 2 778 0 - 309 001c 0023 movs r3, #0 - 310 001e 9360 str r3, [r2, #8] - 779:Drivers/CMSIS/Include/core_cm0.h **** SysTick->CTRL = SysTick_CTRL_CLKSOURCE_Msk | - 311 .loc 2 779 0 - 312 0020 0733 adds r3, r3, #7 - 313 0022 1360 str r3, [r2] - 780:Drivers/CMSIS/Include/core_cm0.h **** SysTick_CTRL_TICKINT_Msk | - 781:Drivers/CMSIS/Include/core_cm0.h **** SysTick_CTRL_ENABLE_Msk; /* Enable SysTick IRQ and SysTi - 782:Drivers/CMSIS/Include/core_cm0.h **** return (0UL); /* Function successful */ - 314 .loc 2 782 0 - 315 0024 0020 movs r0, #0 - 316 .LVL21: - 317 .L17: - 318 .LBE51: - 319 .LBE50: - 212:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_cortex.c **** return SysTick_Config(TicksNumb); - 213:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_cortex.c **** } - 320 .loc 1 213 0 - 321 @ sp needed - 322 0026 7047 bx lr - 323 .LVL22: - 324 .L19: - 325 .LBB55: - 326 .LBB54: - 773:Drivers/CMSIS/Include/core_cm0.h **** } - 327 .loc 2 773 0 - 328 0028 0120 movs r0, #1 - 329 .LVL23: - 330 .LBE54: - 331 .LBE55: - 212:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_cortex.c **** return SysTick_Config(TicksNumb); - 332 .loc 1 212 0 - 333 002a FCE7 b .L17 - 334 .L21: - 335 .align 2 - 336 .L20: - 337 002c FFFFFF00 .word 16777215 - 338 0030 10E000E0 .word -536813552 - 339 0034 00ED00E0 .word -536810240 - 340 .cfi_endproc - 341 .LFE41: - 343 .section .text.HAL_NVIC_GetPriority,"ax",%progbits - ARM GAS /tmp/cc8pPmIp.s page 32 - - - 344 .align 1 - 345 .global HAL_NVIC_GetPriority - 346 .syntax unified - 347 .code 16 - 348 .thumb_func - 349 .fpu softvfp - 351 HAL_NVIC_GetPriority: - 352 .LFB42: - 214:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_cortex.c **** /** - 215:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_cortex.c **** * @} - 216:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_cortex.c **** */ - 217:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_cortex.c **** - 218:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_cortex.c **** /** @defgroup CORTEX_Exported_Functions_Group2 Peripheral Control functions - 219:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_cortex.c **** * @brief Cortex control functions - 220:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_cortex.c **** * - 221:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_cortex.c **** @verbatim - 222:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_cortex.c **** ============================================================================== - 223:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_cortex.c **** ##### Peripheral Control functions ##### - 224:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_cortex.c **** ============================================================================== - 225:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_cortex.c **** [..] - 226:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_cortex.c **** This subsection provides a set of functions allowing to control the CORTEX - 227:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_cortex.c **** (NVIC, SYSTICK) functionalities. - 228:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_cortex.c **** - 229:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_cortex.c **** - 230:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_cortex.c **** @endverbatim - 231:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_cortex.c **** * @{ - 232:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_cortex.c **** */ - 233:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_cortex.c **** - 234:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_cortex.c **** - 235:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_cortex.c **** /** - 236:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_cortex.c **** * @brief Gets the priority of an interrupt. - 237:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_cortex.c **** * @param IRQn External interrupt number. - 238:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_cortex.c **** * This parameter can be an enumerator of IRQn_Type enumeration - 239:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_cortex.c **** * (For the complete STM32 Devices IRQ Channels list, please refer to the appropriate CMSI - 240:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_cortex.c **** * @retval None - 241:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_cortex.c **** */ - 242:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_cortex.c **** uint32_t HAL_NVIC_GetPriority(IRQn_Type IRQn) - 243:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_cortex.c **** { - 353 .loc 1 243 0 - 354 .cfi_startproc - 355 @ args = 0, pretend = 0, frame = 0 - 356 @ frame_needed = 0, uses_anonymous_args = 0 - 357 @ link register save eliminated. - 358 .LVL24: - 359 .LBB58: - 360 .LBB59: - 715:Drivers/CMSIS/Include/core_cm0.h **** { - 361 .loc 2 715 0 - 362 0000 0028 cmp r0, #0 - 363 0002 0CDB blt .L25 - 721:Drivers/CMSIS/Include/core_cm0.h **** } - 364 .loc 2 721 0 - 365 0004 8308 lsrs r3, r0, #2 - 366 0006 C033 adds r3, r3, #192 - 367 0008 9B00 lsls r3, r3, #2 - 368 000a 0E4A ldr r2, .L26 - 369 000c 9B58 ldr r3, [r3, r2] - ARM GAS /tmp/cc8pPmIp.s page 33 - - - 370 000e 0322 movs r2, #3 - 371 0010 1040 ands r0, r2 - 372 .LVL25: - 373 0012 C000 lsls r0, r0, #3 - 374 0014 C340 lsrs r3, r3, r0 - 375 0016 9809 lsrs r0, r3, #6 - 376 0018 0323 movs r3, #3 - 377 001a 1840 ands r0, r3 - 378 .LVL26: - 379 .L22: - 380 .LBE59: - 381 .LBE58: - 244:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_cortex.c **** /* Get priority for Cortex-M system or device specific interrupts */ - 245:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_cortex.c **** return NVIC_GetPriority(IRQn); - 246:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_cortex.c **** } - 382 .loc 1 246 0 - 383 @ sp needed - 384 001c 7047 bx lr - 385 .LVL27: - 386 .L25: - 387 .LBB61: - 388 .LBB60: - 717:Drivers/CMSIS/Include/core_cm0.h **** } - 389 .loc 2 717 0 - 390 001e C0B2 uxtb r0, r0 - 391 0020 0F23 movs r3, #15 - 392 0022 0340 ands r3, r0 - 393 0024 083B subs r3, r3, #8 - 394 0026 9B08 lsrs r3, r3, #2 - 395 0028 0633 adds r3, r3, #6 - 396 002a 9B00 lsls r3, r3, #2 - 397 002c 064A ldr r2, .L26+4 - 398 002e 9446 mov ip, r2 - 399 0030 6344 add r3, r3, ip - 400 0032 5B68 ldr r3, [r3, #4] - 401 0034 0322 movs r2, #3 - 402 0036 1040 ands r0, r2 - 403 .LVL28: - 404 0038 C000 lsls r0, r0, #3 - 405 003a C340 lsrs r3, r3, r0 - 406 003c 9B09 lsrs r3, r3, #6 - 407 003e 0320 movs r0, #3 - 408 0040 1840 ands r0, r3 - 409 0042 EBE7 b .L22 - 410 .L27: - 411 .align 2 - 412 .L26: - 413 0044 00E100E0 .word -536813312 - 414 0048 00ED00E0 .word -536810240 - 415 .LBE60: - 416 .LBE61: - 417 .cfi_endproc - 418 .LFE42: - 420 .section .text.HAL_NVIC_SetPendingIRQ,"ax",%progbits - 421 .align 1 - 422 .global HAL_NVIC_SetPendingIRQ - 423 .syntax unified - ARM GAS /tmp/cc8pPmIp.s page 34 - - - 424 .code 16 - 425 .thumb_func - 426 .fpu softvfp - 428 HAL_NVIC_SetPendingIRQ: - 429 .LFB43: - 247:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_cortex.c **** - 248:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_cortex.c **** /** - 249:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_cortex.c **** * @brief Sets Pending bit of an external interrupt. - 250:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_cortex.c **** * @param IRQn External interrupt number - 251:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_cortex.c **** * This parameter can be an enumerator of IRQn_Type enumeration - 252:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_cortex.c **** * (For the complete STM32 Devices IRQ Channels list, please refer to the appropriate CMSI - 253:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_cortex.c **** * @retval None - 254:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_cortex.c **** */ - 255:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_cortex.c **** void HAL_NVIC_SetPendingIRQ(IRQn_Type IRQn) - 256:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_cortex.c **** { - 430 .loc 1 256 0 - 431 .cfi_startproc - 432 @ args = 0, pretend = 0, frame = 0 - 433 @ frame_needed = 0, uses_anonymous_args = 0 - 434 @ link register save eliminated. - 435 .LVL29: - 436 .LBB62: - 437 .LBB63: - 666:Drivers/CMSIS/Include/core_cm0.h **** } - 438 .loc 2 666 0 - 439 0000 1F23 movs r3, #31 - 440 0002 1840 ands r0, r3 - 441 .LVL30: - 442 0004 1E3B subs r3, r3, #30 - 443 0006 8340 lsls r3, r3, r0 - 444 0008 0249 ldr r1, .L29 - 445 000a 8022 movs r2, #128 - 446 000c 5200 lsls r2, r2, #1 - 447 000e 8B50 str r3, [r1, r2] - 448 .LVL31: - 449 .LBE63: - 450 .LBE62: - 257:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_cortex.c **** /* Check the parameters */ - 258:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_cortex.c **** assert_param(IS_NVIC_DEVICE_IRQ(IRQn)); - 259:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_cortex.c **** - 260:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_cortex.c **** /* Set interrupt pending */ - 261:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_cortex.c **** NVIC_SetPendingIRQ(IRQn); - 262:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_cortex.c **** } - 451 .loc 1 262 0 - 452 @ sp needed - 453 0010 7047 bx lr - 454 .L30: - 455 0012 C046 .align 2 - 456 .L29: - 457 0014 00E100E0 .word -536813312 - 458 .cfi_endproc - 459 .LFE43: - 461 .section .text.HAL_NVIC_GetPendingIRQ,"ax",%progbits - 462 .align 1 - 463 .global HAL_NVIC_GetPendingIRQ - 464 .syntax unified - 465 .code 16 - ARM GAS /tmp/cc8pPmIp.s page 35 - - - 466 .thumb_func - 467 .fpu softvfp - 469 HAL_NVIC_GetPendingIRQ: - 470 .LFB44: - 263:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_cortex.c **** - 264:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_cortex.c **** /** - 265:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_cortex.c **** * @brief Gets Pending Interrupt (reads the pending register in the NVIC - 266:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_cortex.c **** * and returns the pending bit for the specified interrupt). - 267:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_cortex.c **** * @param IRQn External interrupt number. - 268:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_cortex.c **** * This parameter can be an enumerator of IRQn_Type enumeration - 269:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_cortex.c **** * (For the complete STM32 Devices IRQ Channels list, please refer to the appropriate CMSI - 270:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_cortex.c **** * @retval status: - 0 Interrupt status is not pending. - 271:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_cortex.c **** * - 1 Interrupt status is pending. - 272:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_cortex.c **** */ - 273:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_cortex.c **** uint32_t HAL_NVIC_GetPendingIRQ(IRQn_Type IRQn) - 274:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_cortex.c **** { - 471 .loc 1 274 0 - 472 .cfi_startproc - 473 @ args = 0, pretend = 0, frame = 0 - 474 @ frame_needed = 0, uses_anonymous_args = 0 - 475 @ link register save eliminated. - 476 .LVL32: - 477 .LBB64: - 478 .LBB65: - 655:Drivers/CMSIS/Include/core_cm0.h **** } - 479 .loc 2 655 0 - 480 0000 044A ldr r2, .L32 - 481 0002 8023 movs r3, #128 - 482 0004 5B00 lsls r3, r3, #1 - 483 0006 D358 ldr r3, [r2, r3] - 484 0008 1F22 movs r2, #31 - 485 000a 1040 ands r0, r2 - 486 .LVL33: - 487 000c C340 lsrs r3, r3, r0 - 488 000e 0120 movs r0, #1 - 489 0010 1840 ands r0, r3 - 490 .LVL34: - 491 .LBE65: - 492 .LBE64: - 275:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_cortex.c **** /* Check the parameters */ - 276:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_cortex.c **** assert_param(IS_NVIC_DEVICE_IRQ(IRQn)); - 277:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_cortex.c **** - 278:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_cortex.c **** /* Return 1 if pending else 0 */ - 279:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_cortex.c **** return NVIC_GetPendingIRQ(IRQn); - 280:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_cortex.c **** } - 493 .loc 1 280 0 - 494 @ sp needed - 495 0012 7047 bx lr - 496 .L33: - 497 .align 2 - 498 .L32: - 499 0014 00E100E0 .word -536813312 - 500 .cfi_endproc - 501 .LFE44: - 503 .section .text.HAL_NVIC_ClearPendingIRQ,"ax",%progbits - 504 .align 1 - 505 .global HAL_NVIC_ClearPendingIRQ - ARM GAS /tmp/cc8pPmIp.s page 36 - - - 506 .syntax unified - 507 .code 16 - 508 .thumb_func - 509 .fpu softvfp - 511 HAL_NVIC_ClearPendingIRQ: - 512 .LFB45: - 281:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_cortex.c **** - 282:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_cortex.c **** /** - 283:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_cortex.c **** * @brief Clears the pending bit of an external interrupt. - 284:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_cortex.c **** * @param IRQn External interrupt number. - 285:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_cortex.c **** * This parameter can be an enumerator of IRQn_Type enumeration - 286:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_cortex.c **** * (For the complete STM32 Devices IRQ Channels list, please refer to the appropriate CMSI - 287:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_cortex.c **** * @retval None - 288:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_cortex.c **** */ - 289:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_cortex.c **** void HAL_NVIC_ClearPendingIRQ(IRQn_Type IRQn) - 290:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_cortex.c **** { - 513 .loc 1 290 0 - 514 .cfi_startproc - 515 @ args = 0, pretend = 0, frame = 0 - 516 @ frame_needed = 0, uses_anonymous_args = 0 - 517 @ link register save eliminated. - 518 .LVL35: - 519 .LBB66: - 520 .LBB67: - 677:Drivers/CMSIS/Include/core_cm0.h **** } - 521 .loc 2 677 0 - 522 0000 1F23 movs r3, #31 - 523 0002 1840 ands r0, r3 - 524 .LVL36: - 525 0004 1E3B subs r3, r3, #30 - 526 0006 8340 lsls r3, r3, r0 - 527 0008 0249 ldr r1, .L35 - 528 000a C022 movs r2, #192 - 529 000c 5200 lsls r2, r2, #1 - 530 000e 8B50 str r3, [r1, r2] - 531 .LVL37: - 532 .LBE67: - 533 .LBE66: - 291:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_cortex.c **** /* Check the parameters */ - 292:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_cortex.c **** assert_param(IS_NVIC_DEVICE_IRQ(IRQn)); - 293:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_cortex.c **** - 294:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_cortex.c **** /* Clear pending interrupt */ - 295:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_cortex.c **** NVIC_ClearPendingIRQ(IRQn); - 296:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_cortex.c **** } - 534 .loc 1 296 0 - 535 @ sp needed - 536 0010 7047 bx lr - 537 .L36: - 538 0012 C046 .align 2 - 539 .L35: - 540 0014 00E100E0 .word -536813312 - 541 .cfi_endproc - 542 .LFE45: - 544 .section .text.HAL_SYSTICK_CLKSourceConfig,"ax",%progbits - 545 .align 1 - 546 .global HAL_SYSTICK_CLKSourceConfig - 547 .syntax unified - ARM GAS /tmp/cc8pPmIp.s page 37 - - - 548 .code 16 - 549 .thumb_func - 550 .fpu softvfp - 552 HAL_SYSTICK_CLKSourceConfig: - 553 .LFB46: - 297:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_cortex.c **** - 298:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_cortex.c **** /** - 299:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_cortex.c **** * @brief Configures the SysTick clock source. - 300:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_cortex.c **** * @param CLKSource specifies the SysTick clock source. - 301:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_cortex.c **** * This parameter can be one of the following values: - 302:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_cortex.c **** * @arg SYSTICK_CLKSOURCE_HCLK_DIV8: AHB clock divided by 8 selected as SysTick clock - 303:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_cortex.c **** * @arg SYSTICK_CLKSOURCE_HCLK: AHB clock selected as SysTick clock source. - 304:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_cortex.c **** * @retval None - 305:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_cortex.c **** */ - 306:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_cortex.c **** void HAL_SYSTICK_CLKSourceConfig(uint32_t CLKSource) - 307:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_cortex.c **** { - 554 .loc 1 307 0 - 555 .cfi_startproc - 556 @ args = 0, pretend = 0, frame = 0 - 557 @ frame_needed = 0, uses_anonymous_args = 0 - 558 @ link register save eliminated. - 559 .LVL38: - 308:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_cortex.c **** /* Check the parameters */ - 309:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_cortex.c **** assert_param(IS_SYSTICK_CLK_SOURCE(CLKSource)); - 310:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_cortex.c **** if (CLKSource == SYSTICK_CLKSOURCE_HCLK) - 560 .loc 1 310 0 - 561 0000 0428 cmp r0, #4 - 562 0002 05D0 beq .L40 - 311:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_cortex.c **** { - 312:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_cortex.c **** SysTick->CTRL |= SYSTICK_CLKSOURCE_HCLK; - 313:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_cortex.c **** } - 314:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_cortex.c **** else - 315:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_cortex.c **** { - 316:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_cortex.c **** SysTick->CTRL &= ~SYSTICK_CLKSOURCE_HCLK; - 563 .loc 1 316 0 - 564 0004 054A ldr r2, .L41 - 565 0006 1368 ldr r3, [r2] - 566 0008 0421 movs r1, #4 - 567 000a 8B43 bics r3, r1 - 568 000c 1360 str r3, [r2] - 569 .L37: - 317:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_cortex.c **** } - 318:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_cortex.c **** } - 570 .loc 1 318 0 - 571 @ sp needed - 572 000e 7047 bx lr - 573 .L40: - 312:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_cortex.c **** } - 574 .loc 1 312 0 - 575 0010 024A ldr r2, .L41 - 576 0012 1368 ldr r3, [r2] - 577 0014 0421 movs r1, #4 - 578 0016 0B43 orrs r3, r1 - 579 0018 1360 str r3, [r2] - 580 001a F8E7 b .L37 - 581 .L42: - 582 .align 2 - ARM GAS /tmp/cc8pPmIp.s page 38 - - - 583 .L41: - 584 001c 10E000E0 .word -536813552 - 585 .cfi_endproc - 586 .LFE46: - 588 .section .text.HAL_SYSTICK_Callback,"ax",%progbits - 589 .align 1 - 590 .weak HAL_SYSTICK_Callback - 591 .syntax unified - 592 .code 16 - 593 .thumb_func - 594 .fpu softvfp - 596 HAL_SYSTICK_Callback: - 597 .LFB48: - 319:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_cortex.c **** - 320:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_cortex.c **** /** - 321:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_cortex.c **** * @brief This function handles SYSTICK interrupt request. - 322:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_cortex.c **** * @retval None - 323:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_cortex.c **** */ - 324:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_cortex.c **** void HAL_SYSTICK_IRQHandler(void) - 325:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_cortex.c **** { - 326:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_cortex.c **** HAL_SYSTICK_Callback(); - 327:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_cortex.c **** } - 328:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_cortex.c **** - 329:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_cortex.c **** /** - 330:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_cortex.c **** * @brief SYSTICK callback. - 331:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_cortex.c **** * @retval None - 332:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_cortex.c **** */ - 333:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_cortex.c **** __weak void HAL_SYSTICK_Callback(void) - 334:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_cortex.c **** { - 598 .loc 1 334 0 - 599 .cfi_startproc - 600 @ args = 0, pretend = 0, frame = 0 - 601 @ frame_needed = 0, uses_anonymous_args = 0 - 602 @ link register save eliminated. - 335:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_cortex.c **** /* NOTE : This function Should not be modified, when the callback is needed, - 336:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_cortex.c **** the HAL_SYSTICK_Callback could be implemented in the user file - 337:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_cortex.c **** */ - 338:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_cortex.c **** } - 603 .loc 1 338 0 - 604 @ sp needed - 605 0000 7047 bx lr - 606 .cfi_endproc - 607 .LFE48: - 609 .section .text.HAL_SYSTICK_IRQHandler,"ax",%progbits - 610 .align 1 - 611 .global HAL_SYSTICK_IRQHandler - 612 .syntax unified - 613 .code 16 - 614 .thumb_func - 615 .fpu softvfp - 617 HAL_SYSTICK_IRQHandler: - 618 .LFB47: - 325:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_cortex.c **** HAL_SYSTICK_Callback(); - 619 .loc 1 325 0 - 620 .cfi_startproc - 621 @ args = 0, pretend = 0, frame = 0 - 622 @ frame_needed = 0, uses_anonymous_args = 0 - ARM GAS /tmp/cc8pPmIp.s page 39 - - - 623 0000 10B5 push {r4, lr} - 624 .LCFI1: - 625 .cfi_def_cfa_offset 8 - 626 .cfi_offset 4, -8 - 627 .cfi_offset 14, -4 - 326:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_cortex.c **** } - 628 .loc 1 326 0 - 629 0002 FFF7FEFF bl HAL_SYSTICK_Callback - 630 .LVL39: - 327:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_cortex.c **** - 631 .loc 1 327 0 - 632 @ sp needed - 633 0006 10BD pop {r4, pc} - 634 .cfi_endproc - 635 .LFE47: - 637 .text - 638 .Letext0: - 639 .file 4 "Drivers/CMSIS/Device/ST/STM32F0xx/Include/stm32f072xb.h" - 640 .file 5 "/home/janhenrik/programme/gcc-arm-none-eabi-7-2018-q2-update/arm-none-eabi/include/machin - 641 .file 6 "/home/janhenrik/programme/gcc-arm-none-eabi-7-2018-q2-update/arm-none-eabi/include/sys/_s - 642 .file 7 "Drivers/CMSIS/Device/ST/STM32F0xx/Include/system_stm32f0xx.h" - 643 .file 8 "/home/janhenrik/programme/gcc-arm-none-eabi-7-2018-q2-update/arm-none-eabi/include/sys/lo - 644 .file 9 "/home/janhenrik/programme/gcc-arm-none-eabi-7-2018-q2-update/arm-none-eabi/include/sys/_t - 645 .file 10 "/home/janhenrik/programme/gcc-arm-none-eabi-7-2018-q2-update/lib/gcc/arm-none-eabi/7.3.1 - 646 .file 11 "/home/janhenrik/programme/gcc-arm-none-eabi-7-2018-q2-update/arm-none-eabi/include/sys/r - ARM GAS /tmp/cc8pPmIp.s page 40 - - -DEFINED SYMBOLS - *ABS*:0000000000000000 stm32f0xx_hal_cortex.c - /tmp/cc8pPmIp.s:16 .text.HAL_NVIC_SetPriority:0000000000000000 $t - /tmp/cc8pPmIp.s:23 .text.HAL_NVIC_SetPriority:0000000000000000 HAL_NVIC_SetPriority - /tmp/cc8pPmIp.s:111 .text.HAL_NVIC_SetPriority:0000000000000058 $d - /tmp/cc8pPmIp.s:119 .text.HAL_NVIC_EnableIRQ:0000000000000000 $t - /tmp/cc8pPmIp.s:126 .text.HAL_NVIC_EnableIRQ:0000000000000000 HAL_NVIC_EnableIRQ - /tmp/cc8pPmIp.s:153 .text.HAL_NVIC_EnableIRQ:0000000000000010 $d - /tmp/cc8pPmIp.s:158 .text.HAL_NVIC_DisableIRQ:0000000000000000 $t - /tmp/cc8pPmIp.s:165 .text.HAL_NVIC_DisableIRQ:0000000000000000 HAL_NVIC_DisableIRQ - /tmp/cc8pPmIp.s:193 .text.HAL_NVIC_DisableIRQ:0000000000000010 $d - /tmp/cc8pPmIp.s:198 .text.HAL_NVIC_SystemReset:0000000000000000 $t - /tmp/cc8pPmIp.s:205 .text.HAL_NVIC_SystemReset:0000000000000000 HAL_NVIC_SystemReset - /tmp/cc8pPmIp.s:256 .text.HAL_NVIC_SystemReset:0000000000000014 $d - /tmp/cc8pPmIp.s:266 .text.HAL_SYSTICK_Config:0000000000000000 $t - /tmp/cc8pPmIp.s:273 .text.HAL_SYSTICK_Config:0000000000000000 HAL_SYSTICK_Config - /tmp/cc8pPmIp.s:337 .text.HAL_SYSTICK_Config:000000000000002c $d - /tmp/cc8pPmIp.s:344 .text.HAL_NVIC_GetPriority:0000000000000000 $t - /tmp/cc8pPmIp.s:351 .text.HAL_NVIC_GetPriority:0000000000000000 HAL_NVIC_GetPriority - /tmp/cc8pPmIp.s:413 .text.HAL_NVIC_GetPriority:0000000000000044 $d - /tmp/cc8pPmIp.s:421 .text.HAL_NVIC_SetPendingIRQ:0000000000000000 $t - /tmp/cc8pPmIp.s:428 .text.HAL_NVIC_SetPendingIRQ:0000000000000000 HAL_NVIC_SetPendingIRQ - /tmp/cc8pPmIp.s:457 .text.HAL_NVIC_SetPendingIRQ:0000000000000014 $d - /tmp/cc8pPmIp.s:462 .text.HAL_NVIC_GetPendingIRQ:0000000000000000 $t - /tmp/cc8pPmIp.s:469 .text.HAL_NVIC_GetPendingIRQ:0000000000000000 HAL_NVIC_GetPendingIRQ - /tmp/cc8pPmIp.s:499 .text.HAL_NVIC_GetPendingIRQ:0000000000000014 $d - /tmp/cc8pPmIp.s:504 .text.HAL_NVIC_ClearPendingIRQ:0000000000000000 $t - /tmp/cc8pPmIp.s:511 .text.HAL_NVIC_ClearPendingIRQ:0000000000000000 HAL_NVIC_ClearPendingIRQ - /tmp/cc8pPmIp.s:540 .text.HAL_NVIC_ClearPendingIRQ:0000000000000014 $d - /tmp/cc8pPmIp.s:545 .text.HAL_SYSTICK_CLKSourceConfig:0000000000000000 $t - /tmp/cc8pPmIp.s:552 .text.HAL_SYSTICK_CLKSourceConfig:0000000000000000 HAL_SYSTICK_CLKSourceConfig - /tmp/cc8pPmIp.s:584 .text.HAL_SYSTICK_CLKSourceConfig:000000000000001c $d - /tmp/cc8pPmIp.s:589 .text.HAL_SYSTICK_Callback:0000000000000000 $t - /tmp/cc8pPmIp.s:596 .text.HAL_SYSTICK_Callback:0000000000000000 HAL_SYSTICK_Callback - /tmp/cc8pPmIp.s:610 .text.HAL_SYSTICK_IRQHandler:0000000000000000 $t - /tmp/cc8pPmIp.s:617 .text.HAL_SYSTICK_IRQHandler:0000000000000000 HAL_SYSTICK_IRQHandler - -NO UNDEFINED SYMBOLS diff --git a/firmware/build/stm32f0xx_hal_cortex.o b/firmware/build/stm32f0xx_hal_cortex.o deleted file mode 100644 index 3c11a9f..0000000 Binary files a/firmware/build/stm32f0xx_hal_cortex.o and /dev/null differ diff --git a/firmware/build/stm32f0xx_hal_dma.d b/firmware/build/stm32f0xx_hal_dma.d deleted file mode 100644 index 59be39f..0000000 --- a/firmware/build/stm32f0xx_hal_dma.d +++ /dev/null @@ -1,87 +0,0 @@ -build/stm32f0xx_hal_dma.o: \ - Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_dma.c \ - Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal.h \ - Inc/stm32f0xx_hal_conf.h \ - Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_rcc.h \ - Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_def.h \ - Drivers/CMSIS/Device/ST/STM32F0xx/Include/stm32f0xx.h \ - Drivers/CMSIS/Device/ST/STM32F0xx/Include/stm32f072xb.h \ - Drivers/CMSIS/Include/core_cm0.h Drivers/CMSIS/Include/core_cmInstr.h \ - Drivers/CMSIS/Include/cmsis_gcc.h Drivers/CMSIS/Include/core_cmFunc.h \ - Drivers/CMSIS/Device/ST/STM32F0xx/Include/system_stm32f0xx.h \ - Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_rcc_ex.h \ - Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_gpio.h \ - Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_gpio_ex.h \ - Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_dma.h \ - Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_dma_ex.h \ - Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_cortex.h \ - Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_adc.h \ - Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_adc_ex.h \ - Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_flash.h \ - Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_flash_ex.h \ - Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_i2c.h \ - Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_i2c_ex.h \ - Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_pcd.h \ - Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_pcd_ex.h \ - Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_pwr.h \ - Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_pwr_ex.h \ - Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_tim.h \ - Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_tim_ex.h - -Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal.h: - -Inc/stm32f0xx_hal_conf.h: - -Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_rcc.h: - -Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_def.h: - -Drivers/CMSIS/Device/ST/STM32F0xx/Include/stm32f0xx.h: - -Drivers/CMSIS/Device/ST/STM32F0xx/Include/stm32f072xb.h: - -Drivers/CMSIS/Include/core_cm0.h: - -Drivers/CMSIS/Include/core_cmInstr.h: - -Drivers/CMSIS/Include/cmsis_gcc.h: - -Drivers/CMSIS/Include/core_cmFunc.h: - -Drivers/CMSIS/Device/ST/STM32F0xx/Include/system_stm32f0xx.h: - -Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_rcc_ex.h: - -Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_gpio.h: - -Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_gpio_ex.h: - -Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_dma.h: - -Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_dma_ex.h: - -Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_cortex.h: - -Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_adc.h: - -Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_adc_ex.h: - -Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_flash.h: - -Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_flash_ex.h: - -Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_i2c.h: - -Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_i2c_ex.h: - -Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_pcd.h: - -Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_pcd_ex.h: - -Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_pwr.h: - -Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_pwr_ex.h: - -Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_tim.h: - -Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_tim_ex.h: diff --git a/firmware/build/stm32f0xx_hal_dma.lst b/firmware/build/stm32f0xx_hal_dma.lst deleted file mode 100644 index fd09b1d..0000000 --- a/firmware/build/stm32f0xx_hal_dma.lst +++ /dev/null @@ -1,2487 +0,0 @@ -ARM GAS /tmp/cc3uJEB3.s page 1 - - - 1 .cpu cortex-m0 - 2 .eabi_attribute 20, 1 - 3 .eabi_attribute 21, 1 - 4 .eabi_attribute 23, 3 - 5 .eabi_attribute 24, 1 - 6 .eabi_attribute 25, 1 - 7 .eabi_attribute 26, 1 - 8 .eabi_attribute 30, 1 - 9 .eabi_attribute 34, 0 - 10 .eabi_attribute 18, 4 - 11 .file "stm32f0xx_hal_dma.c" - 12 .text - 13 .Ltext0: - 14 .cfi_sections .debug_frame - 15 .section .text.DMA_SetConfig,"ax",%progbits - 16 .align 1 - 17 .syntax unified - 18 .code 16 - 19 .thumb_func - 20 .fpu softvfp - 22 DMA_SetConfig: - 23 .LFB49: - 24 .file 1 "Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_dma.c" - 1:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_dma.c **** /** - 2:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_dma.c **** ****************************************************************************** - 3:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_dma.c **** * @file stm32f0xx_hal_dma.c - 4:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_dma.c **** * @author MCD Application Team - 5:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_dma.c **** * @brief DMA HAL module driver. - 6:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_dma.c **** * - 7:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_dma.c **** * This file provides firmware functions to manage the following - 8:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_dma.c **** * functionalities of the Direct Memory Access (DMA) peripheral: - 9:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_dma.c **** * + Initialization and de-initialization functions - 10:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_dma.c **** * + IO operation functions - 11:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_dma.c **** * + Peripheral State and errors functions - 12:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_dma.c **** @verbatim - 13:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_dma.c **** ============================================================================== - 14:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_dma.c **** ##### How to use this driver ##### - 15:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_dma.c **** ============================================================================== - 16:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_dma.c **** [..] - 17:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_dma.c **** (#) Enable and configure the peripheral to be connected to the DMA Channel - 18:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_dma.c **** (except for internal SRAM / FLASH memories: no initialization is - 19:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_dma.c **** necessary). Please refer to Reference manual for connection between peripherals - 20:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_dma.c **** and DMA requests . - 21:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_dma.c **** - 22:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_dma.c **** (#) For a given Channel, program the required configuration through the following parameters: - 23:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_dma.c **** Transfer Direction, Source and Destination data formats, - 24:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_dma.c **** Circular or Normal mode, Channel Priority level, Source and Destination Increment mode, - 25:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_dma.c **** using HAL_DMA_Init() function. - 26:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_dma.c **** - 27:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_dma.c **** (#) Use HAL_DMA_GetState() function to return the DMA state and HAL_DMA_GetError() in case of er - 28:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_dma.c **** detection. - 29:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_dma.c **** - 30:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_dma.c **** (#) Use HAL_DMA_Abort() function to abort the current transfer - 31:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_dma.c **** - 32:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_dma.c **** -@- In Memory-to-Memory transfer mode, Circular mode is not allowed. - 33:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_dma.c **** *** Polling mode IO operation *** - 34:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_dma.c **** ================================= - ARM GAS /tmp/cc3uJEB3.s page 2 - - - 35:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_dma.c **** [..] - 36:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_dma.c **** (+) Use HAL_DMA_Start() to start DMA transfer after the configuration of Source - 37:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_dma.c **** address and destination address and the Length of data to be transferred - 38:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_dma.c **** (+) Use HAL_DMA_PollForTransfer() to poll for the end of current transfer, in this - 39:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_dma.c **** case a fixed Timeout can be configured by User depending from his application. - 40:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_dma.c **** - 41:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_dma.c **** *** Interrupt mode IO operation *** - 42:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_dma.c **** =================================== - 43:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_dma.c **** [..] - 44:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_dma.c **** (+) Configure the DMA interrupt priority using HAL_NVIC_SetPriority() - 45:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_dma.c **** (+) Enable the DMA IRQ handler using HAL_NVIC_EnableIRQ() - 46:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_dma.c **** (+) Use HAL_DMA_Start_IT() to start DMA transfer after the configuration of - 47:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_dma.c **** Source address and destination address and the Length of data to be transferred. - 48:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_dma.c **** In this case the DMA interrupt is configured - 49:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_dma.c **** (+) Use HAL_DMA_Channel_IRQHandler() called under DMA_IRQHandler() Interrupt subroutine - 50:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_dma.c **** (+) At the end of data transfer HAL_DMA_IRQHandler() function is executed and user can - 51:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_dma.c **** add his own function by customization of function pointer XferCpltCallback and - 52:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_dma.c **** XferErrorCallback (i.e a member of DMA handle structure). - 53:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_dma.c **** - 54:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_dma.c **** *** DMA HAL driver macros list *** - 55:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_dma.c **** ============================================= - 56:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_dma.c **** [..] - 57:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_dma.c **** Below the list of most used macros in DMA HAL driver. - 58:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_dma.c **** - 59:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_dma.c **** [..] - 60:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_dma.c **** (@) You can refer to the DMA HAL driver header file for more useful macros - 61:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_dma.c **** - 62:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_dma.c **** @endverbatim - 63:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_dma.c **** ****************************************************************************** - 64:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_dma.c **** * @attention - 65:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_dma.c **** * - 66:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_dma.c **** *

© COPYRIGHT(c) 2016 STMicroelectronics

- 67:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_dma.c **** * - 68:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_dma.c **** * Redistribution and use in source and binary forms, with or without modification, - 69:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_dma.c **** * are permitted provided that the following conditions are met: - 70:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_dma.c **** * 1. Redistributions of source code must retain the above copyright notice, - 71:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_dma.c **** * this list of conditions and the following disclaimer. - 72:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_dma.c **** * 2. Redistributions in binary form must reproduce the above copyright notice, - 73:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_dma.c **** * this list of conditions and the following disclaimer in the documentation - 74:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_dma.c **** * and/or other materials provided with the distribution. - 75:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_dma.c **** * 3. Neither the name of STMicroelectronics nor the names of its contributors - 76:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_dma.c **** * may be used to endorse or promote products derived from this software - 77:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_dma.c **** * without specific prior written permission. - 78:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_dma.c **** * - 79:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_dma.c **** * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" - 80:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_dma.c **** * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE - 81:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_dma.c **** * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE - 82:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_dma.c **** * DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE - 83:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_dma.c **** * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL - 84:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_dma.c **** * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR - 85:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_dma.c **** * SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER - 86:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_dma.c **** * CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, - 87:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_dma.c **** * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE - 88:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_dma.c **** * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. - 89:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_dma.c **** * - 90:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_dma.c **** ****************************************************************************** - 91:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_dma.c **** */ - ARM GAS /tmp/cc3uJEB3.s page 3 - - - 92:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_dma.c **** - 93:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_dma.c **** /* Includes ------------------------------------------------------------------*/ - 94:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_dma.c **** #include "stm32f0xx_hal.h" - 95:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_dma.c **** - 96:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_dma.c **** /** @addtogroup STM32F0xx_HAL_Driver - 97:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_dma.c **** * @{ - 98:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_dma.c **** */ - 99:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_dma.c **** - 100:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_dma.c **** - 101:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_dma.c **** /** @defgroup DMA DMA - 102:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_dma.c **** * @brief DMA HAL module driver - 103:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_dma.c **** * @{ - 104:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_dma.c **** */ - 105:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_dma.c **** - 106:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_dma.c **** #ifdef HAL_DMA_MODULE_ENABLED - 107:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_dma.c **** - 108:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_dma.c **** /* Private typedef -----------------------------------------------------------*/ - 109:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_dma.c **** /* Private define ------------------------------------------------------------*/ - 110:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_dma.c **** /* Private macro -------------------------------------------------------------*/ - 111:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_dma.c **** /* Private variables ---------------------------------------------------------*/ - 112:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_dma.c **** /* Private function prototypes -----------------------------------------------*/ - 113:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_dma.c **** /** @defgroup DMA_Private_Functions DMA Private Functions - 114:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_dma.c **** * @{ - 115:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_dma.c **** */ - 116:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_dma.c **** static void DMA_SetConfig(DMA_HandleTypeDef *hdma, uint32_t SrcAddress, uint32_t DstAddress, uint32 - 117:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_dma.c **** static void DMA_CalcBaseAndBitshift(DMA_HandleTypeDef *hdma); - 118:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_dma.c **** /** - 119:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_dma.c **** * @} - 120:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_dma.c **** */ - 121:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_dma.c **** - 122:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_dma.c **** /* Exported functions ---------------------------------------------------------*/ - 123:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_dma.c **** - 124:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_dma.c **** /** @defgroup DMA_Exported_Functions DMA Exported Functions - 125:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_dma.c **** * @{ - 126:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_dma.c **** */ - 127:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_dma.c **** - 128:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_dma.c **** /** @defgroup DMA_Exported_Functions_Group1 Initialization and de-initialization functions - 129:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_dma.c **** * @brief Initialization and de-initialization functions - 130:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_dma.c **** * - 131:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_dma.c **** @verbatim - 132:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_dma.c **** =============================================================================== - 133:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_dma.c **** ##### Initialization and de-initialization functions ##### - 134:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_dma.c **** =============================================================================== - 135:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_dma.c **** [..] - 136:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_dma.c **** This section provides functions allowing to initialize the DMA Channel source - 137:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_dma.c **** and destination addresses, incrementation and data sizes, transfer direction, - 138:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_dma.c **** circular/normal mode selection, memory-to-memory mode selection and Channel priority value. - 139:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_dma.c **** [..] - 140:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_dma.c **** The HAL_DMA_Init() function follows the DMA configuration procedures as described in - 141:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_dma.c **** reference manual. - 142:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_dma.c **** - 143:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_dma.c **** @endverbatim - 144:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_dma.c **** * @{ - 145:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_dma.c **** */ - 146:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_dma.c **** - 147:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_dma.c **** /** - 148:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_dma.c **** * @brief Initialize the DMA according to the specified - ARM GAS /tmp/cc3uJEB3.s page 4 - - - 149:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_dma.c **** * parameters in the DMA_InitTypeDef and initialize the associated handle. - 150:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_dma.c **** * @param hdma Pointer to a DMA_HandleTypeDef structure that contains - 151:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_dma.c **** * the configuration information for the specified DMA Channel. - 152:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_dma.c **** * @retval HAL status - 153:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_dma.c **** */ - 154:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_dma.c **** HAL_StatusTypeDef HAL_DMA_Init(DMA_HandleTypeDef *hdma) - 155:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_dma.c **** { - 156:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_dma.c **** uint32_t tmp = 0U; - 157:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_dma.c **** - 158:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_dma.c **** /* Check the DMA handle allocation */ - 159:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_dma.c **** if(NULL == hdma) - 160:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_dma.c **** { - 161:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_dma.c **** return HAL_ERROR; - 162:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_dma.c **** } - 163:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_dma.c **** - 164:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_dma.c **** /* Check the parameters */ - 165:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_dma.c **** assert_param(IS_DMA_ALL_INSTANCE(hdma->Instance)); - 166:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_dma.c **** assert_param(IS_DMA_DIRECTION(hdma->Init.Direction)); - 167:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_dma.c **** assert_param(IS_DMA_PERIPHERAL_INC_STATE(hdma->Init.PeriphInc)); - 168:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_dma.c **** assert_param(IS_DMA_MEMORY_INC_STATE(hdma->Init.MemInc)); - 169:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_dma.c **** assert_param(IS_DMA_PERIPHERAL_DATA_SIZE(hdma->Init.PeriphDataAlignment)); - 170:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_dma.c **** assert_param(IS_DMA_MEMORY_DATA_SIZE(hdma->Init.MemDataAlignment)); - 171:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_dma.c **** assert_param(IS_DMA_MODE(hdma->Init.Mode)); - 172:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_dma.c **** assert_param(IS_DMA_PRIORITY(hdma->Init.Priority)); - 173:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_dma.c **** - 174:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_dma.c **** /* Change DMA peripheral state */ - 175:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_dma.c **** hdma->State = HAL_DMA_STATE_BUSY; - 176:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_dma.c **** - 177:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_dma.c **** /* Get the CR register value */ - 178:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_dma.c **** tmp = hdma->Instance->CCR; - 179:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_dma.c **** - 180:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_dma.c **** /* Clear PL, MSIZE, PSIZE, MINC, PINC, CIRC, DIR bits */ - 181:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_dma.c **** tmp &= ((uint32_t)~(DMA_CCR_PL | DMA_CCR_MSIZE | DMA_CCR_PSIZE | \ - 182:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_dma.c **** DMA_CCR_MINC | DMA_CCR_PINC | DMA_CCR_CIRC | \ - 183:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_dma.c **** DMA_CCR_DIR)); - 184:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_dma.c **** - 185:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_dma.c **** /* Prepare the DMA Channel configuration */ - 186:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_dma.c **** tmp |= hdma->Init.Direction | - 187:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_dma.c **** hdma->Init.PeriphInc | hdma->Init.MemInc | - 188:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_dma.c **** hdma->Init.PeriphDataAlignment | hdma->Init.MemDataAlignment | - 189:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_dma.c **** hdma->Init.Mode | hdma->Init.Priority; - 190:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_dma.c **** - 191:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_dma.c **** /* Write to DMA Channel CR register */ - 192:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_dma.c **** hdma->Instance->CCR = tmp; - 193:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_dma.c **** - 194:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_dma.c **** /* Initialize DmaBaseAddress and ChannelIndex parameters used - 195:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_dma.c **** by HAL_DMA_IRQHandler() and HAL_DMA_PollForTransfer() */ - 196:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_dma.c **** DMA_CalcBaseAndBitshift(hdma); - 197:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_dma.c **** - 198:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_dma.c **** /* Clean callbacks */ - 199:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_dma.c **** hdma->XferCpltCallback = NULL; - 200:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_dma.c **** hdma->XferHalfCpltCallback = NULL; - 201:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_dma.c **** hdma->XferErrorCallback = NULL; - 202:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_dma.c **** hdma->XferAbortCallback = NULL; - 203:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_dma.c **** - 204:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_dma.c **** /* Initialise the error code */ - 205:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_dma.c **** hdma->ErrorCode = HAL_DMA_ERROR_NONE; - ARM GAS /tmp/cc3uJEB3.s page 5 - - - 206:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_dma.c **** - 207:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_dma.c **** /* Initialize the DMA state*/ - 208:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_dma.c **** hdma->State = HAL_DMA_STATE_READY; - 209:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_dma.c **** - 210:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_dma.c **** /* Allocate lock resource and initialize it */ - 211:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_dma.c **** hdma->Lock = HAL_UNLOCKED; - 212:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_dma.c **** - 213:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_dma.c **** return HAL_OK; - 214:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_dma.c **** } - 215:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_dma.c **** - 216:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_dma.c **** /** - 217:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_dma.c **** * @brief DeInitialize the DMA peripheral - 218:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_dma.c **** * @param hdma pointer to a DMA_HandleTypeDef structure that contains - 219:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_dma.c **** * the configuration information for the specified DMA Channel. - 220:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_dma.c **** * @retval HAL status - 221:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_dma.c **** */ - 222:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_dma.c **** HAL_StatusTypeDef HAL_DMA_DeInit(DMA_HandleTypeDef *hdma) - 223:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_dma.c **** { - 224:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_dma.c **** /* Check the DMA handle allocation */ - 225:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_dma.c **** if(NULL == hdma) - 226:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_dma.c **** { - 227:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_dma.c **** return HAL_ERROR; - 228:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_dma.c **** } - 229:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_dma.c **** - 230:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_dma.c **** /* Check the parameters */ - 231:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_dma.c **** assert_param(IS_DMA_ALL_INSTANCE(hdma->Instance)); - 232:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_dma.c **** - 233:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_dma.c **** /* Disable the selected DMA Channelx */ - 234:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_dma.c **** hdma->Instance->CCR &= ~DMA_CCR_EN; - 235:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_dma.c **** - 236:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_dma.c **** /* Reset DMA Channel control register */ - 237:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_dma.c **** hdma->Instance->CCR = 0U; - 238:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_dma.c **** - 239:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_dma.c **** /* Reset DMA Channel Number of Data to Transfer register */ - 240:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_dma.c **** hdma->Instance->CNDTR = 0U; - 241:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_dma.c **** - 242:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_dma.c **** /* Reset DMA Channel peripheral address register */ - 243:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_dma.c **** hdma->Instance->CPAR = 0U; - 244:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_dma.c **** - 245:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_dma.c **** /* Reset DMA Channel memory address register */ - 246:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_dma.c **** hdma->Instance->CMAR = 0U; - 247:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_dma.c **** - 248:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_dma.c **** /* Get DMA Base Address */ - 249:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_dma.c **** DMA_CalcBaseAndBitshift(hdma); - 250:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_dma.c **** - 251:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_dma.c **** /* Clear all flags */ - 252:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_dma.c **** hdma->DmaBaseAddress->IFCR = DMA_FLAG_GL1 << hdma->ChannelIndex; - 253:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_dma.c **** - 254:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_dma.c **** /* Initialize the error code */ - 255:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_dma.c **** hdma->ErrorCode = HAL_DMA_ERROR_NONE; - 256:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_dma.c **** - 257:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_dma.c **** /* Initialize the DMA state */ - 258:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_dma.c **** hdma->State = HAL_DMA_STATE_RESET; - 259:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_dma.c **** - 260:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_dma.c **** /* Release Lock */ - 261:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_dma.c **** __HAL_UNLOCK(hdma); - 262:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_dma.c **** - ARM GAS /tmp/cc3uJEB3.s page 6 - - - 263:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_dma.c **** return HAL_OK; - 264:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_dma.c **** } - 265:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_dma.c **** - 266:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_dma.c **** /** - 267:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_dma.c **** * @} - 268:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_dma.c **** */ - 269:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_dma.c **** - 270:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_dma.c **** /** @defgroup DMA_Exported_Functions_Group2 Input and Output operation functions - 271:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_dma.c **** * @brief I/O operation functions - 272:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_dma.c **** * - 273:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_dma.c **** @verbatim - 274:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_dma.c **** =============================================================================== - 275:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_dma.c **** ##### IO operation functions ##### - 276:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_dma.c **** =============================================================================== - 277:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_dma.c **** [..] This section provides functions allowing to: - 278:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_dma.c **** (+) Configure the source, destination address and data length and Start DMA transfer - 279:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_dma.c **** (+) Configure the source, destination address and data length and - 280:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_dma.c **** Start DMA transfer with interrupt - 281:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_dma.c **** (+) Abort DMA transfer - 282:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_dma.c **** (+) Poll for transfer complete - 283:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_dma.c **** (+) Handle DMA interrupt request - 284:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_dma.c **** - 285:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_dma.c **** @endverbatim - 286:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_dma.c **** * @{ - 287:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_dma.c **** */ - 288:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_dma.c **** - 289:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_dma.c **** /** - 290:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_dma.c **** * @brief Start the DMA Transfer. - 291:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_dma.c **** * @param hdma pointer to a DMA_HandleTypeDef structure that contains - 292:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_dma.c **** * the configuration information for the specified DMA Channel. - 293:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_dma.c **** * @param SrcAddress The source memory Buffer address - 294:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_dma.c **** * @param DstAddress The destination memory Buffer address - 295:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_dma.c **** * @param DataLength The length of data to be transferred from source to destination - 296:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_dma.c **** * @retval HAL status - 297:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_dma.c **** */ - 298:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_dma.c **** HAL_StatusTypeDef HAL_DMA_Start(DMA_HandleTypeDef *hdma, uint32_t SrcAddress, uint32_t DstAddress, - 299:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_dma.c **** { - 300:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_dma.c **** HAL_StatusTypeDef status = HAL_OK; - 301:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_dma.c **** - 302:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_dma.c **** /* Check the parameters */ - 303:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_dma.c **** assert_param(IS_DMA_BUFFER_SIZE(DataLength)); - 304:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_dma.c **** - 305:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_dma.c **** /* Process locked */ - 306:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_dma.c **** __HAL_LOCK(hdma); - 307:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_dma.c **** - 308:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_dma.c **** if(HAL_DMA_STATE_READY == hdma->State) - 309:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_dma.c **** { - 310:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_dma.c **** /* Change DMA peripheral state */ - 311:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_dma.c **** hdma->State = HAL_DMA_STATE_BUSY; - 312:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_dma.c **** - 313:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_dma.c **** hdma->ErrorCode = HAL_DMA_ERROR_NONE; - 314:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_dma.c **** - 315:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_dma.c **** /* Disable the peripheral */ - 316:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_dma.c **** hdma->Instance->CCR &= ~DMA_CCR_EN; - 317:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_dma.c **** - 318:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_dma.c **** /* Configure the source, destination address and the data length */ - 319:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_dma.c **** DMA_SetConfig(hdma, SrcAddress, DstAddress, DataLength); - ARM GAS /tmp/cc3uJEB3.s page 7 - - - 320:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_dma.c **** - 321:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_dma.c **** /* Enable the Peripheral */ - 322:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_dma.c **** hdma->Instance->CCR |= DMA_CCR_EN; - 323:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_dma.c **** } - 324:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_dma.c **** else - 325:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_dma.c **** { - 326:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_dma.c **** /* Process Unlocked */ - 327:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_dma.c **** __HAL_UNLOCK(hdma); - 328:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_dma.c **** - 329:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_dma.c **** /* Remain BUSY */ - 330:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_dma.c **** status = HAL_BUSY; - 331:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_dma.c **** } - 332:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_dma.c **** - 333:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_dma.c **** return status; - 334:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_dma.c **** } - 335:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_dma.c **** - 336:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_dma.c **** /** - 337:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_dma.c **** * @brief Start the DMA Transfer with interrupt enabled. - 338:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_dma.c **** * @param hdma pointer to a DMA_HandleTypeDef structure that contains - 339:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_dma.c **** * the configuration information for the specified DMA Channel. - 340:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_dma.c **** * @param SrcAddress The source memory Buffer address - 341:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_dma.c **** * @param DstAddress The destination memory Buffer address - 342:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_dma.c **** * @param DataLength The length of data to be transferred from source to destination - 343:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_dma.c **** * @retval HAL status - 344:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_dma.c **** */ - 345:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_dma.c **** HAL_StatusTypeDef HAL_DMA_Start_IT(DMA_HandleTypeDef *hdma, uint32_t SrcAddress, uint32_t DstAddres - 346:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_dma.c **** { - 347:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_dma.c **** HAL_StatusTypeDef status = HAL_OK; - 348:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_dma.c **** - 349:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_dma.c **** /* Check the parameters */ - 350:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_dma.c **** assert_param(IS_DMA_BUFFER_SIZE(DataLength)); - 351:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_dma.c **** - 352:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_dma.c **** /* Process locked */ - 353:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_dma.c **** __HAL_LOCK(hdma); - 354:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_dma.c **** - 355:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_dma.c **** if(HAL_DMA_STATE_READY == hdma->State) - 356:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_dma.c **** { - 357:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_dma.c **** /* Change DMA peripheral state */ - 358:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_dma.c **** hdma->State = HAL_DMA_STATE_BUSY; - 359:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_dma.c **** - 360:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_dma.c **** hdma->ErrorCode = HAL_DMA_ERROR_NONE; - 361:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_dma.c **** - 362:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_dma.c **** /* Disable the peripheral */ - 363:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_dma.c **** hdma->Instance->CCR &= ~DMA_CCR_EN; - 364:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_dma.c **** - 365:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_dma.c **** /* Configure the source, destination address and the data length */ - 366:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_dma.c **** DMA_SetConfig(hdma, SrcAddress, DstAddress, DataLength); - 367:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_dma.c **** - 368:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_dma.c **** /* Enable the transfer complete, & transfer error interrupts */ - 369:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_dma.c **** /* Half transfer interrupt is optional: enable it only if associated callback is available */ - 370:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_dma.c **** if(NULL != hdma->XferHalfCpltCallback ) - 371:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_dma.c **** { - 372:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_dma.c **** hdma->Instance->CCR |= (DMA_IT_TC | DMA_IT_HT | DMA_IT_TE); - 373:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_dma.c **** } - 374:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_dma.c **** else - 375:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_dma.c **** { - 376:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_dma.c **** hdma->Instance->CCR |= (DMA_IT_TC | DMA_IT_TE); - ARM GAS /tmp/cc3uJEB3.s page 8 - - - 377:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_dma.c **** hdma->Instance->CCR &= ~DMA_IT_HT; - 378:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_dma.c **** } - 379:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_dma.c **** - 380:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_dma.c **** /* Enable the Peripheral */ - 381:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_dma.c **** hdma->Instance->CCR |= DMA_CCR_EN; - 382:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_dma.c **** } - 383:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_dma.c **** else - 384:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_dma.c **** { - 385:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_dma.c **** /* Process Unlocked */ - 386:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_dma.c **** __HAL_UNLOCK(hdma); - 387:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_dma.c **** - 388:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_dma.c **** /* Remain BUSY */ - 389:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_dma.c **** status = HAL_BUSY; - 390:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_dma.c **** } - 391:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_dma.c **** - 392:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_dma.c **** return status; - 393:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_dma.c **** } - 394:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_dma.c **** - 395:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_dma.c **** /** - 396:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_dma.c **** * @brief Abort the DMA Transfer. - 397:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_dma.c **** * @param hdma pointer to a DMA_HandleTypeDef structure that contains - 398:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_dma.c **** * the configuration information for the specified DMA Channel. - 399:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_dma.c **** * @retval HAL status - 400:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_dma.c **** */ - 401:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_dma.c **** HAL_StatusTypeDef HAL_DMA_Abort(DMA_HandleTypeDef *hdma) - 402:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_dma.c **** { - 403:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_dma.c **** /* Disable DMA IT */ - 404:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_dma.c **** hdma->Instance->CCR &= ~(DMA_IT_TC | DMA_IT_HT | DMA_IT_TE); - 405:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_dma.c **** - 406:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_dma.c **** /* Disable the channel */ - 407:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_dma.c **** hdma->Instance->CCR &= ~DMA_CCR_EN; - 408:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_dma.c **** - 409:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_dma.c **** /* Clear all flags */ - 410:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_dma.c **** hdma->DmaBaseAddress->IFCR = (DMA_FLAG_GL1 << hdma->ChannelIndex); - 411:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_dma.c **** - 412:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_dma.c **** /* Change the DMA state*/ - 413:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_dma.c **** hdma->State = HAL_DMA_STATE_READY; - 414:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_dma.c **** - 415:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_dma.c **** /* Process Unlocked */ - 416:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_dma.c **** __HAL_UNLOCK(hdma); - 417:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_dma.c **** - 418:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_dma.c **** return HAL_OK; - 419:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_dma.c **** } - 420:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_dma.c **** - 421:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_dma.c **** /** - 422:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_dma.c **** * @brief Abort the DMA Transfer in Interrupt mode. - 423:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_dma.c **** * @param hdma pointer to a DMA_HandleTypeDef structure that contains - 424:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_dma.c **** * the configuration information for the specified DMA Stream. - 425:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_dma.c **** * @retval HAL status - 426:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_dma.c **** */ - 427:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_dma.c **** HAL_StatusTypeDef HAL_DMA_Abort_IT(DMA_HandleTypeDef *hdma) - 428:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_dma.c **** { - 429:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_dma.c **** HAL_StatusTypeDef status = HAL_OK; - 430:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_dma.c **** - 431:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_dma.c **** if(HAL_DMA_STATE_BUSY != hdma->State) - 432:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_dma.c **** { - 433:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_dma.c **** /* no transfer ongoing */ - ARM GAS /tmp/cc3uJEB3.s page 9 - - - 434:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_dma.c **** hdma->ErrorCode = HAL_DMA_ERROR_NO_XFER; - 435:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_dma.c **** - 436:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_dma.c **** status = HAL_ERROR; - 437:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_dma.c **** } - 438:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_dma.c **** else - 439:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_dma.c **** { - 440:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_dma.c **** - 441:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_dma.c **** /* Disable DMA IT */ - 442:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_dma.c **** hdma->Instance->CCR &= ~(DMA_IT_TC | DMA_IT_HT | DMA_IT_TE); - 443:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_dma.c **** - 444:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_dma.c **** /* Disable the channel */ - 445:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_dma.c **** hdma->Instance->CCR &= ~DMA_CCR_EN; - 446:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_dma.c **** - 447:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_dma.c **** /* Clear all flags */ - 448:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_dma.c **** hdma->DmaBaseAddress->IFCR = DMA_FLAG_GL1 << hdma->ChannelIndex; - 449:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_dma.c **** - 450:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_dma.c **** /* Change the DMA state */ - 451:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_dma.c **** hdma->State = HAL_DMA_STATE_READY; - 452:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_dma.c **** - 453:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_dma.c **** /* Process Unlocked */ - 454:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_dma.c **** __HAL_UNLOCK(hdma); - 455:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_dma.c **** - 456:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_dma.c **** /* Call User Abort callback */ - 457:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_dma.c **** if(hdma->XferAbortCallback != NULL) - 458:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_dma.c **** { - 459:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_dma.c **** hdma->XferAbortCallback(hdma); - 460:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_dma.c **** } - 461:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_dma.c **** } - 462:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_dma.c **** return status; - 463:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_dma.c **** } - 464:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_dma.c **** - 465:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_dma.c **** /** - 466:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_dma.c **** * @brief Polling for transfer complete. - 467:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_dma.c **** * @param hdma pointer to a DMA_HandleTypeDef structure that contains - 468:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_dma.c **** * the configuration information for the specified DMA Channel. - 469:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_dma.c **** * @param CompleteLevel Specifies the DMA level complete. - 470:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_dma.c **** * @param Timeout Timeout duration. - 471:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_dma.c **** * @retval HAL status - 472:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_dma.c **** */ - 473:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_dma.c **** HAL_StatusTypeDef HAL_DMA_PollForTransfer(DMA_HandleTypeDef *hdma, uint32_t CompleteLevel, uint32_t - 474:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_dma.c **** { - 475:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_dma.c **** uint32_t temp; - 476:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_dma.c **** uint32_t tickstart = 0U; - 477:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_dma.c **** - 478:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_dma.c **** if(HAL_DMA_STATE_BUSY != hdma->State) - 479:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_dma.c **** { - 480:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_dma.c **** /* no transfer ongoing */ - 481:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_dma.c **** hdma->ErrorCode = HAL_DMA_ERROR_NO_XFER; - 482:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_dma.c **** __HAL_UNLOCK(hdma); - 483:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_dma.c **** return HAL_ERROR; - 484:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_dma.c **** } - 485:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_dma.c **** - 486:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_dma.c **** /* Polling mode not supported in circular mode */ - 487:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_dma.c **** if (RESET != (hdma->Instance->CCR & DMA_CCR_CIRC)) - 488:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_dma.c **** { - 489:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_dma.c **** hdma->ErrorCode = HAL_DMA_ERROR_NOT_SUPPORTED; - 490:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_dma.c **** return HAL_ERROR; - ARM GAS /tmp/cc3uJEB3.s page 10 - - - 491:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_dma.c **** } - 492:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_dma.c **** - 493:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_dma.c **** /* Get the level transfer complete flag */ - 494:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_dma.c **** if(HAL_DMA_FULL_TRANSFER == CompleteLevel) - 495:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_dma.c **** { - 496:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_dma.c **** /* Transfer Complete flag */ - 497:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_dma.c **** temp = DMA_FLAG_TC1 << hdma->ChannelIndex; - 498:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_dma.c **** } - 499:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_dma.c **** else - 500:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_dma.c **** { - 501:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_dma.c **** /* Half Transfer Complete flag */ - 502:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_dma.c **** temp = DMA_FLAG_HT1 << hdma->ChannelIndex; - 503:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_dma.c **** } - 504:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_dma.c **** - 505:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_dma.c **** /* Get tick */ - 506:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_dma.c **** tickstart = HAL_GetTick(); - 507:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_dma.c **** - 508:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_dma.c **** while(RESET == (hdma->DmaBaseAddress->ISR & temp)) - 509:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_dma.c **** { - 510:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_dma.c **** if(RESET != (hdma->DmaBaseAddress->ISR & (DMA_FLAG_TE1 << hdma->ChannelIndex))) - 511:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_dma.c **** { - 512:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_dma.c **** /* When a DMA transfer error occurs */ - 513:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_dma.c **** /* A hardware clear of its EN bits is performed */ - 514:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_dma.c **** /* Clear all flags */ - 515:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_dma.c **** hdma->DmaBaseAddress->IFCR = DMA_FLAG_GL1 << hdma->ChannelIndex; - 516:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_dma.c **** - 517:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_dma.c **** /* Update error code */ - 518:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_dma.c **** hdma->ErrorCode = HAL_DMA_ERROR_TE; - 519:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_dma.c **** - 520:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_dma.c **** /* Change the DMA state */ - 521:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_dma.c **** hdma->State= HAL_DMA_STATE_READY; - 522:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_dma.c **** - 523:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_dma.c **** /* Process Unlocked */ - 524:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_dma.c **** __HAL_UNLOCK(hdma); - 525:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_dma.c **** - 526:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_dma.c **** return HAL_ERROR; - 527:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_dma.c **** } - 528:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_dma.c **** /* Check for the Timeout */ - 529:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_dma.c **** if(Timeout != HAL_MAX_DELAY) - 530:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_dma.c **** { - 531:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_dma.c **** if((Timeout == 0U) || ((HAL_GetTick() - tickstart) > Timeout)) - 532:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_dma.c **** { - 533:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_dma.c **** /* Update error code */ - 534:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_dma.c **** hdma->ErrorCode = HAL_DMA_ERROR_TIMEOUT; - 535:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_dma.c **** - 536:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_dma.c **** /* Change the DMA state */ - 537:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_dma.c **** hdma->State = HAL_DMA_STATE_READY; - 538:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_dma.c **** - 539:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_dma.c **** /* Process Unlocked */ - 540:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_dma.c **** __HAL_UNLOCK(hdma); - 541:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_dma.c **** - 542:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_dma.c **** return HAL_ERROR; - 543:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_dma.c **** } - 544:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_dma.c **** } - 545:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_dma.c **** } - 546:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_dma.c **** - 547:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_dma.c **** if(HAL_DMA_FULL_TRANSFER == CompleteLevel) - ARM GAS /tmp/cc3uJEB3.s page 11 - - - 548:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_dma.c **** { - 549:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_dma.c **** /* Clear the transfer complete flag */ - 550:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_dma.c **** hdma->DmaBaseAddress->IFCR = DMA_FLAG_TC1 << hdma->ChannelIndex; - 551:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_dma.c **** - 552:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_dma.c **** /* The selected Channelx EN bit is cleared (DMA is disabled and - 553:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_dma.c **** all transfers are complete) */ - 554:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_dma.c **** hdma->State = HAL_DMA_STATE_READY; - 555:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_dma.c **** } - 556:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_dma.c **** else - 557:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_dma.c **** { - 558:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_dma.c **** /* Clear the half transfer complete flag */ - 559:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_dma.c **** hdma->DmaBaseAddress->IFCR = DMA_FLAG_HT1 << hdma->ChannelIndex; - 560:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_dma.c **** } - 561:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_dma.c **** - 562:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_dma.c **** /* Process unlocked */ - 563:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_dma.c **** __HAL_UNLOCK(hdma); - 564:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_dma.c **** - 565:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_dma.c **** return HAL_OK; - 566:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_dma.c **** } - 567:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_dma.c **** - 568:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_dma.c **** /** - 569:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_dma.c **** * @brief Handle DMA interrupt request. - 570:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_dma.c **** * @param hdma pointer to a DMA_HandleTypeDef structure that contains - 571:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_dma.c **** * the configuration information for the specified DMA Channel. - 572:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_dma.c **** * @retval None - 573:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_dma.c **** */ - 574:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_dma.c **** void HAL_DMA_IRQHandler(DMA_HandleTypeDef *hdma) - 575:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_dma.c **** { - 576:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_dma.c **** uint32_t flag_it = hdma->DmaBaseAddress->ISR; - 577:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_dma.c **** uint32_t source_it = hdma->Instance->CCR; - 578:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_dma.c **** - 579:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_dma.c **** /* Half Transfer Complete Interrupt management ******************************/ - 580:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_dma.c **** if ((RESET != (flag_it & (DMA_FLAG_HT1 << hdma->ChannelIndex))) && (RESET != (source_it & DMA_IT_ - 581:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_dma.c **** { - 582:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_dma.c **** /* Disable the half transfer interrupt if the DMA mode is not CIRCULAR */ - 583:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_dma.c **** if((hdma->Instance->CCR & DMA_CCR_CIRC) == 0U) - 584:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_dma.c **** { - 585:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_dma.c **** /* Disable the half transfer interrupt */ - 586:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_dma.c **** hdma->Instance->CCR &= ~DMA_IT_HT; - 587:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_dma.c **** } - 588:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_dma.c **** - 589:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_dma.c **** /* Clear the half transfer complete flag */ - 590:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_dma.c **** hdma->DmaBaseAddress->IFCR = DMA_FLAG_HT1 << hdma->ChannelIndex; - 591:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_dma.c **** - 592:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_dma.c **** /* DMA peripheral state is not updated in Half Transfer */ - 593:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_dma.c **** /* State is updated only in Transfer Complete case */ - 594:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_dma.c **** - 595:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_dma.c **** if(hdma->XferHalfCpltCallback != NULL) - 596:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_dma.c **** { - 597:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_dma.c **** /* Half transfer callback */ - 598:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_dma.c **** hdma->XferHalfCpltCallback(hdma); - 599:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_dma.c **** } - 600:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_dma.c **** } - 601:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_dma.c **** - 602:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_dma.c **** /* Transfer Complete Interrupt management ***********************************/ - 603:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_dma.c **** else if ((RESET != (flag_it & (DMA_FLAG_TC1 << hdma->ChannelIndex))) && (RESET != (source_it & DM - 604:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_dma.c **** { - ARM GAS /tmp/cc3uJEB3.s page 12 - - - 605:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_dma.c **** if((hdma->Instance->CCR & DMA_CCR_CIRC) == 0U) - 606:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_dma.c **** { - 607:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_dma.c **** /* Disable the transfer complete & transfer error interrupts */ - 608:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_dma.c **** /* if the DMA mode is not CIRCULAR */ - 609:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_dma.c **** hdma->Instance->CCR &= ~(DMA_IT_TC | DMA_IT_TE); - 610:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_dma.c **** - 611:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_dma.c **** /* Change the DMA state */ - 612:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_dma.c **** hdma->State = HAL_DMA_STATE_READY; - 613:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_dma.c **** } - 614:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_dma.c **** - 615:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_dma.c **** /* Clear the transfer complete flag */ - 616:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_dma.c **** hdma->DmaBaseAddress->IFCR = DMA_FLAG_TC1 << hdma->ChannelIndex; - 617:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_dma.c **** - 618:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_dma.c **** /* Process Unlocked */ - 619:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_dma.c **** __HAL_UNLOCK(hdma); - 620:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_dma.c **** - 621:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_dma.c **** if(hdma->XferCpltCallback != NULL) - 622:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_dma.c **** { - 623:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_dma.c **** /* Transfer complete callback */ - 624:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_dma.c **** hdma->XferCpltCallback(hdma); - 625:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_dma.c **** } - 626:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_dma.c **** } - 627:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_dma.c **** - 628:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_dma.c **** /* Transfer Error Interrupt management ***************************************/ - 629:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_dma.c **** else if (( RESET != (flag_it & (DMA_FLAG_TE1 << hdma->ChannelIndex))) && (RESET != (source_it & D - 630:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_dma.c **** { - 631:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_dma.c **** /* When a DMA transfer error occurs */ - 632:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_dma.c **** /* A hardware clear of its EN bits is performed */ - 633:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_dma.c **** /* Then, disable all DMA interrupts */ - 634:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_dma.c **** hdma->Instance->CCR &= ~(DMA_IT_TC | DMA_IT_HT | DMA_IT_TE); - 635:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_dma.c **** - 636:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_dma.c **** /* Clear all flags */ - 637:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_dma.c **** hdma->DmaBaseAddress->IFCR = DMA_FLAG_GL1 << hdma->ChannelIndex; - 638:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_dma.c **** - 639:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_dma.c **** /* Update error code */ - 640:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_dma.c **** hdma->ErrorCode = HAL_DMA_ERROR_TE; - 641:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_dma.c **** - 642:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_dma.c **** /* Change the DMA state */ - 643:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_dma.c **** hdma->State = HAL_DMA_STATE_READY; - 644:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_dma.c **** - 645:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_dma.c **** /* Process Unlocked */ - 646:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_dma.c **** __HAL_UNLOCK(hdma); - 647:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_dma.c **** - 648:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_dma.c **** if(hdma->XferErrorCallback != NULL) - 649:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_dma.c **** { - 650:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_dma.c **** /* Transfer error callback */ - 651:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_dma.c **** hdma->XferErrorCallback(hdma); - 652:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_dma.c **** } - 653:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_dma.c **** } - 654:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_dma.c **** } - 655:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_dma.c **** - 656:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_dma.c **** /** - 657:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_dma.c **** * @brief Register callbacks - 658:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_dma.c **** * @param hdma pointer to a DMA_HandleTypeDef structure that contains - 659:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_dma.c **** * the configuration information for the specified DMA Stream. - 660:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_dma.c **** * @param CallbackID User Callback identifer - 661:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_dma.c **** * a HAL_DMA_CallbackIDTypeDef ENUM as parameter. - ARM GAS /tmp/cc3uJEB3.s page 13 - - - 662:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_dma.c **** * @param pCallback pointer to private callback function which has pointer to - 663:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_dma.c **** * a DMA_HandleTypeDef structure as parameter. - 664:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_dma.c **** * @retval HAL status - 665:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_dma.c **** */ - 666:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_dma.c **** HAL_StatusTypeDef HAL_DMA_RegisterCallback(DMA_HandleTypeDef *hdma, HAL_DMA_CallbackIDTypeDef Callb - 667:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_dma.c **** { - 668:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_dma.c **** HAL_StatusTypeDef status = HAL_OK; - 669:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_dma.c **** - 670:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_dma.c **** /* Process locked */ - 671:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_dma.c **** __HAL_LOCK(hdma); - 672:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_dma.c **** - 673:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_dma.c **** if(HAL_DMA_STATE_READY == hdma->State) - 674:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_dma.c **** { - 675:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_dma.c **** switch (CallbackID) - 676:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_dma.c **** { - 677:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_dma.c **** case HAL_DMA_XFER_CPLT_CB_ID: - 678:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_dma.c **** hdma->XferCpltCallback = pCallback; - 679:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_dma.c **** break; - 680:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_dma.c **** - 681:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_dma.c **** case HAL_DMA_XFER_HALFCPLT_CB_ID: - 682:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_dma.c **** hdma->XferHalfCpltCallback = pCallback; - 683:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_dma.c **** break; - 684:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_dma.c **** - 685:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_dma.c **** case HAL_DMA_XFER_ERROR_CB_ID: - 686:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_dma.c **** hdma->XferErrorCallback = pCallback; - 687:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_dma.c **** break; - 688:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_dma.c **** - 689:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_dma.c **** case HAL_DMA_XFER_ABORT_CB_ID: - 690:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_dma.c **** hdma->XferAbortCallback = pCallback; - 691:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_dma.c **** break; - 692:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_dma.c **** - 693:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_dma.c **** default: - 694:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_dma.c **** status = HAL_ERROR; - 695:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_dma.c **** break; - 696:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_dma.c **** } - 697:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_dma.c **** } - 698:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_dma.c **** else - 699:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_dma.c **** { - 700:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_dma.c **** status = HAL_ERROR; - 701:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_dma.c **** } - 702:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_dma.c **** - 703:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_dma.c **** /* Release Lock */ - 704:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_dma.c **** __HAL_UNLOCK(hdma); - 705:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_dma.c **** - 706:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_dma.c **** return status; - 707:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_dma.c **** } - 708:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_dma.c **** - 709:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_dma.c **** /** - 710:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_dma.c **** * @brief UnRegister callbacks - 711:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_dma.c **** * @param hdma pointer to a DMA_HandleTypeDef structure that contains - 712:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_dma.c **** * the configuration information for the specified DMA Stream. - 713:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_dma.c **** * @param CallbackID User Callback identifer - 714:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_dma.c **** * a HAL_DMA_CallbackIDTypeDef ENUM as parameter. - 715:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_dma.c **** * @retval HAL status - 716:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_dma.c **** */ - 717:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_dma.c **** HAL_StatusTypeDef HAL_DMA_UnRegisterCallback(DMA_HandleTypeDef *hdma, HAL_DMA_CallbackIDTypeDef Cal - 718:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_dma.c **** { - ARM GAS /tmp/cc3uJEB3.s page 14 - - - 719:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_dma.c **** HAL_StatusTypeDef status = HAL_OK; - 720:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_dma.c **** - 721:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_dma.c **** /* Process locked */ - 722:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_dma.c **** __HAL_LOCK(hdma); - 723:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_dma.c **** - 724:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_dma.c **** if(HAL_DMA_STATE_READY == hdma->State) - 725:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_dma.c **** { - 726:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_dma.c **** switch (CallbackID) - 727:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_dma.c **** { - 728:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_dma.c **** case HAL_DMA_XFER_CPLT_CB_ID: - 729:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_dma.c **** hdma->XferCpltCallback = NULL; - 730:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_dma.c **** break; - 731:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_dma.c **** - 732:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_dma.c **** case HAL_DMA_XFER_HALFCPLT_CB_ID: - 733:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_dma.c **** hdma->XferHalfCpltCallback = NULL; - 734:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_dma.c **** break; - 735:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_dma.c **** - 736:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_dma.c **** case HAL_DMA_XFER_ERROR_CB_ID: - 737:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_dma.c **** hdma->XferErrorCallback = NULL; - 738:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_dma.c **** break; - 739:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_dma.c **** - 740:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_dma.c **** case HAL_DMA_XFER_ABORT_CB_ID: - 741:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_dma.c **** hdma->XferAbortCallback = NULL; - 742:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_dma.c **** break; - 743:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_dma.c **** - 744:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_dma.c **** case HAL_DMA_XFER_ALL_CB_ID: - 745:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_dma.c **** hdma->XferCpltCallback = NULL; - 746:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_dma.c **** hdma->XferHalfCpltCallback = NULL; - 747:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_dma.c **** hdma->XferErrorCallback = NULL; - 748:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_dma.c **** hdma->XferAbortCallback = NULL; - 749:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_dma.c **** break; - 750:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_dma.c **** - 751:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_dma.c **** default: - 752:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_dma.c **** status = HAL_ERROR; - 753:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_dma.c **** break; - 754:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_dma.c **** } - 755:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_dma.c **** } - 756:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_dma.c **** else - 757:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_dma.c **** { - 758:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_dma.c **** status = HAL_ERROR; - 759:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_dma.c **** } - 760:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_dma.c **** - 761:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_dma.c **** /* Release Lock */ - 762:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_dma.c **** __HAL_UNLOCK(hdma); - 763:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_dma.c **** - 764:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_dma.c **** return status; - 765:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_dma.c **** } - 766:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_dma.c **** - 767:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_dma.c **** /** - 768:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_dma.c **** * @} - 769:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_dma.c **** */ - 770:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_dma.c **** - 771:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_dma.c **** /** @defgroup DMA_Exported_Functions_Group3 Peripheral State functions - 772:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_dma.c **** * @brief Peripheral State functions - 773:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_dma.c **** * - 774:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_dma.c **** @verbatim - 775:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_dma.c **** =============================================================================== - ARM GAS /tmp/cc3uJEB3.s page 15 - - - 776:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_dma.c **** ##### State and Errors functions ##### - 777:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_dma.c **** =============================================================================== - 778:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_dma.c **** [..] - 779:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_dma.c **** This subsection provides functions allowing to - 780:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_dma.c **** (+) Check the DMA state - 781:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_dma.c **** (+) Get error code - 782:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_dma.c **** - 783:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_dma.c **** @endverbatim - 784:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_dma.c **** * @{ - 785:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_dma.c **** */ - 786:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_dma.c **** - 787:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_dma.c **** /** - 788:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_dma.c **** * @brief Returns the DMA state. - 789:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_dma.c **** * @param hdma pointer to a DMA_HandleTypeDef structure that contains - 790:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_dma.c **** * the configuration information for the specified DMA Channel. - 791:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_dma.c **** * @retval HAL state - 792:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_dma.c **** */ - 793:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_dma.c **** HAL_DMA_StateTypeDef HAL_DMA_GetState(DMA_HandleTypeDef *hdma) - 794:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_dma.c **** { - 795:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_dma.c **** return hdma->State; - 796:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_dma.c **** } - 797:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_dma.c **** - 798:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_dma.c **** /** - 799:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_dma.c **** * @brief Return the DMA error code - 800:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_dma.c **** * @param hdma pointer to a DMA_HandleTypeDef structure that contains - 801:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_dma.c **** * the configuration information for the specified DMA Channel. - 802:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_dma.c **** * @retval DMA Error Code - 803:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_dma.c **** */ - 804:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_dma.c **** uint32_t HAL_DMA_GetError(DMA_HandleTypeDef *hdma) - 805:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_dma.c **** { - 806:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_dma.c **** return hdma->ErrorCode; - 807:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_dma.c **** } - 808:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_dma.c **** - 809:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_dma.c **** /** - 810:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_dma.c **** * @} - 811:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_dma.c **** */ - 812:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_dma.c **** - 813:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_dma.c **** /** - 814:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_dma.c **** * @} - 815:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_dma.c **** */ - 816:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_dma.c **** - 817:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_dma.c **** /** @addtogroup DMA_Private_Functions - 818:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_dma.c **** * @{ - 819:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_dma.c **** */ - 820:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_dma.c **** - 821:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_dma.c **** /** - 822:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_dma.c **** * @brief Set the DMA Transfer parameters. - 823:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_dma.c **** * @param hdma pointer to a DMA_HandleTypeDef structure that contains - 824:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_dma.c **** * the configuration information for the specified DMA Channel. - 825:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_dma.c **** * @param SrcAddress The source memory Buffer address - 826:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_dma.c **** * @param DstAddress The destination memory Buffer address - 827:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_dma.c **** * @param DataLength The length of data to be transferred from source to destination - 828:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_dma.c **** * @retval HAL status - 829:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_dma.c **** */ - 830:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_dma.c **** static void DMA_SetConfig(DMA_HandleTypeDef *hdma, uint32_t SrcAddress, uint32_t DstAddress, uint32 - 831:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_dma.c **** { - 25 .loc 1 831 0 - ARM GAS /tmp/cc3uJEB3.s page 16 - - - 26 .cfi_startproc - 27 @ args = 0, pretend = 0, frame = 0 - 28 @ frame_needed = 0, uses_anonymous_args = 0 - 29 .LVL0: - 30 0000 70B5 push {r4, r5, r6, lr} - 31 .LCFI0: - 32 .cfi_def_cfa_offset 16 - 33 .cfi_offset 4, -16 - 34 .cfi_offset 5, -12 - 35 .cfi_offset 6, -8 - 36 .cfi_offset 14, -4 - 832:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_dma.c **** /* Clear all flags */ - 833:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_dma.c **** hdma->DmaBaseAddress->IFCR = (DMA_FLAG_GL1 << hdma->ChannelIndex); - 37 .loc 1 833 0 - 38 0002 C56B ldr r5, [r0, #60] - 39 0004 0124 movs r4, #1 - 40 0006 066C ldr r6, [r0, #64] - 41 0008 B440 lsls r4, r4, r6 - 42 000a 6C60 str r4, [r5, #4] - 834:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_dma.c **** - 835:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_dma.c **** /* Configure DMA Channel data length */ - 836:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_dma.c **** hdma->Instance->CNDTR = DataLength; - 43 .loc 1 836 0 - 44 000c 0468 ldr r4, [r0] - 45 000e 6360 str r3, [r4, #4] - 837:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_dma.c **** - 838:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_dma.c **** /* Memory to Peripheral */ - 839:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_dma.c **** if((hdma->Init.Direction) == DMA_MEMORY_TO_PERIPH) - 46 .loc 1 839 0 - 47 0010 4368 ldr r3, [r0, #4] - 48 .LVL1: - 49 0012 102B cmp r3, #16 - 50 0014 04D0 beq .L4 - 840:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_dma.c **** { - 841:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_dma.c **** /* Configure DMA Channel destination address */ - 842:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_dma.c **** hdma->Instance->CPAR = DstAddress; - 843:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_dma.c **** - 844:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_dma.c **** /* Configure DMA Channel source address */ - 845:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_dma.c **** hdma->Instance->CMAR = SrcAddress; - 846:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_dma.c **** } - 847:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_dma.c **** /* Peripheral to Memory */ - 848:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_dma.c **** else - 849:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_dma.c **** { - 850:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_dma.c **** /* Configure DMA Channel source address */ - 851:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_dma.c **** hdma->Instance->CPAR = SrcAddress; - 51 .loc 1 851 0 - 52 0016 0368 ldr r3, [r0] - 53 0018 9960 str r1, [r3, #8] - 54 .LVL2: - 852:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_dma.c **** - 853:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_dma.c **** /* Configure DMA Channel destination address */ - 854:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_dma.c **** hdma->Instance->CMAR = DstAddress; - 55 .loc 1 854 0 - 56 001a 0368 ldr r3, [r0] - 57 001c DA60 str r2, [r3, #12] - 58 .L1: - 855:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_dma.c **** } - ARM GAS /tmp/cc3uJEB3.s page 17 - - - 856:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_dma.c **** } - 59 .loc 1 856 0 - 60 @ sp needed - 61 001e 70BD pop {r4, r5, r6, pc} - 62 .LVL3: - 63 .L4: - 842:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_dma.c **** - 64 .loc 1 842 0 - 65 0020 0368 ldr r3, [r0] - 66 0022 9A60 str r2, [r3, #8] - 67 .LVL4: - 845:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_dma.c **** } - 68 .loc 1 845 0 - 69 0024 0368 ldr r3, [r0] - 70 0026 D960 str r1, [r3, #12] - 71 0028 F9E7 b .L1 - 72 .cfi_endproc - 73 .LFE49: - 75 .global __aeabi_uidiv - 76 .section .text.DMA_CalcBaseAndBitshift,"ax",%progbits - 77 .align 1 - 78 .syntax unified - 79 .code 16 - 80 .thumb_func - 81 .fpu softvfp - 83 DMA_CalcBaseAndBitshift: - 84 .LFB50: - 857:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_dma.c **** - 858:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_dma.c **** /** - 859:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_dma.c **** * @brief set the DMA base address and channel index depending on DMA instance - 860:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_dma.c **** * @param hdma pointer to a DMA_HandleTypeDef structure that contains - 861:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_dma.c **** * the configuration information for the specified DMA Stream. - 862:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_dma.c **** * @retval None - 863:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_dma.c **** */ - 864:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_dma.c **** static void DMA_CalcBaseAndBitshift(DMA_HandleTypeDef *hdma) - 865:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_dma.c **** { - 85 .loc 1 865 0 - 86 .cfi_startproc - 87 @ args = 0, pretend = 0, frame = 0 - 88 @ frame_needed = 0, uses_anonymous_args = 0 - 89 .LVL5: - 90 0000 10B5 push {r4, lr} - 91 .LCFI1: - 92 .cfi_def_cfa_offset 8 - 93 .cfi_offset 4, -8 - 94 .cfi_offset 14, -4 - 95 0002 0400 movs r4, r0 - 866:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_dma.c **** #if defined (DMA2) - 867:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_dma.c **** /* calculation of the channel index */ - 868:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_dma.c **** if ((uint32_t)(hdma->Instance) < (uint32_t)(DMA2_Channel1)) - 869:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_dma.c **** { - 870:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_dma.c **** /* DMA1 */ - 871:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_dma.c **** hdma->ChannelIndex = (((uint32_t)hdma->Instance - (uint32_t)DMA1_Channel1) / ((uint32_t)DMA1_Ch - 872:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_dma.c **** hdma->DmaBaseAddress = DMA1; - 873:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_dma.c **** } - 874:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_dma.c **** else - 875:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_dma.c **** { - ARM GAS /tmp/cc3uJEB3.s page 18 - - - 876:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_dma.c **** /* DMA2 */ - 877:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_dma.c **** hdma->ChannelIndex = (((uint32_t)hdma->Instance - (uint32_t)DMA2_Channel1) / ((uint32_t)DMA2_Ch - 878:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_dma.c **** hdma->DmaBaseAddress = DMA2; - 879:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_dma.c **** } - 880:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_dma.c **** #else - 881:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_dma.c **** /* calculation of the channel index */ - 882:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_dma.c **** /* DMA1 */ - 883:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_dma.c **** hdma->ChannelIndex = (((uint32_t)hdma->Instance - (uint32_t)DMA1_Channel1) / ((uint32_t)DMA1_Chan - 96 .loc 1 883 0 - 97 0004 0368 ldr r3, [r0] - 98 0006 064A ldr r2, .L6 - 99 0008 9446 mov ip, r2 - 100 000a 6344 add r3, r3, ip - 101 000c 1800 movs r0, r3 - 102 .LVL6: - 103 000e 1421 movs r1, #20 - 104 0010 FFF7FEFF bl __aeabi_uidiv - 105 .LVL7: - 106 0014 8000 lsls r0, r0, #2 - 107 0016 2064 str r0, [r4, #64] - 884:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_dma.c **** hdma->DmaBaseAddress = DMA1; - 108 .loc 1 884 0 - 109 0018 024B ldr r3, .L6+4 - 110 001a E363 str r3, [r4, #60] - 885:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_dma.c **** #endif - 886:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_dma.c **** } - 111 .loc 1 886 0 - 112 @ sp needed - 113 .LVL8: - 114 001c 10BD pop {r4, pc} - 115 .L7: - 116 001e C046 .align 2 - 117 .L6: - 118 0020 F8FFFDBF .word -1073872904 - 119 0024 00000240 .word 1073872896 - 120 .cfi_endproc - 121 .LFE50: - 123 .section .text.HAL_DMA_Init,"ax",%progbits - 124 .align 1 - 125 .global HAL_DMA_Init - 126 .syntax unified - 127 .code 16 - 128 .thumb_func - 129 .fpu softvfp - 131 HAL_DMA_Init: - 132 .LFB37: - 155:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_dma.c **** uint32_t tmp = 0U; - 133 .loc 1 155 0 - 134 .cfi_startproc - 135 @ args = 0, pretend = 0, frame = 0 - 136 @ frame_needed = 0, uses_anonymous_args = 0 - 137 .LVL9: - 138 0000 70B5 push {r4, r5, r6, lr} - 139 .LCFI2: - 140 .cfi_def_cfa_offset 16 - 141 .cfi_offset 4, -16 - 142 .cfi_offset 5, -12 - ARM GAS /tmp/cc3uJEB3.s page 19 - - - 143 .cfi_offset 6, -8 - 144 .cfi_offset 14, -4 - 145 0002 041E subs r4, r0, #0 - 146 .LVL10: - 159:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_dma.c **** { - 147 .loc 1 159 0 - 148 0004 24D0 beq .L10 - 175:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_dma.c **** - 149 .loc 1 175 0 - 150 0006 2125 movs r5, #33 - 151 0008 0223 movs r3, #2 - 152 000a 4355 strb r3, [r0, r5] - 178:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_dma.c **** - 153 .loc 1 178 0 - 154 000c 0168 ldr r1, [r0] - 155 000e 0B68 ldr r3, [r1] - 156 .LVL11: - 181:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_dma.c **** DMA_CCR_MINC | DMA_CCR_PINC | DMA_CCR_CIRC | \ - 157 .loc 1 181 0 - 158 0010 104A ldr r2, .L11 - 159 0012 1A40 ands r2, r3 - 160 .LVL12: - 186:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_dma.c **** hdma->Init.PeriphInc | hdma->Init.MemInc | - 161 .loc 1 186 0 - 162 0014 4368 ldr r3, [r0, #4] - 163 0016 8068 ldr r0, [r0, #8] - 164 .LVL13: - 165 0018 0343 orrs r3, r0 - 187:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_dma.c **** hdma->Init.PeriphDataAlignment | hdma->Init.MemDataAlignment | - 166 .loc 1 187 0 - 167 001a E068 ldr r0, [r4, #12] - 168 001c 0343 orrs r3, r0 - 169 001e 2069 ldr r0, [r4, #16] - 170 0020 0343 orrs r3, r0 - 188:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_dma.c **** hdma->Init.Mode | hdma->Init.Priority; - 171 .loc 1 188 0 - 172 0022 6069 ldr r0, [r4, #20] - 173 0024 0343 orrs r3, r0 - 174 0026 A069 ldr r0, [r4, #24] - 175 0028 0343 orrs r3, r0 - 189:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_dma.c **** - 176 .loc 1 189 0 - 177 002a E069 ldr r0, [r4, #28] - 178 002c 0343 orrs r3, r0 - 186:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_dma.c **** hdma->Init.PeriphInc | hdma->Init.MemInc | - 179 .loc 1 186 0 - 180 002e 1343 orrs r3, r2 - 181 .LVL14: - 192:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_dma.c **** - 182 .loc 1 192 0 - 183 0030 0B60 str r3, [r1] - 196:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_dma.c **** - 184 .loc 1 196 0 - 185 0032 2000 movs r0, r4 - 186 0034 FFF7FEFF bl DMA_CalcBaseAndBitshift - 187 .LVL15: - 199:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_dma.c **** hdma->XferHalfCpltCallback = NULL; - ARM GAS /tmp/cc3uJEB3.s page 20 - - - 188 .loc 1 199 0 - 189 0038 0023 movs r3, #0 - 190 003a A362 str r3, [r4, #40] - 200:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_dma.c **** hdma->XferErrorCallback = NULL; - 191 .loc 1 200 0 - 192 003c E362 str r3, [r4, #44] - 201:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_dma.c **** hdma->XferAbortCallback = NULL; - 193 .loc 1 201 0 - 194 003e 2363 str r3, [r4, #48] - 202:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_dma.c **** - 195 .loc 1 202 0 - 196 0040 6363 str r3, [r4, #52] - 205:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_dma.c **** - 197 .loc 1 205 0 - 198 0042 A363 str r3, [r4, #56] - 208:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_dma.c **** - 199 .loc 1 208 0 - 200 0044 0122 movs r2, #1 - 201 0046 6255 strb r2, [r4, r5] - 211:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_dma.c **** - 202 .loc 1 211 0 - 203 0048 1F32 adds r2, r2, #31 - 204 004a A354 strb r3, [r4, r2] - 213:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_dma.c **** } - 205 .loc 1 213 0 - 206 004c 0020 movs r0, #0 - 207 .L9: - 214:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_dma.c **** - 208 .loc 1 214 0 - 209 @ sp needed - 210 .LVL16: - 211 004e 70BD pop {r4, r5, r6, pc} - 212 .LVL17: - 213 .L10: - 161:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_dma.c **** } - 214 .loc 1 161 0 - 215 0050 0120 movs r0, #1 - 216 .LVL18: - 217 0052 FCE7 b .L9 - 218 .L12: - 219 .align 2 - 220 .L11: - 221 0054 0FC0FFFF .word -16369 - 222 .cfi_endproc - 223 .LFE37: - 225 .section .text.HAL_DMA_DeInit,"ax",%progbits - 226 .align 1 - 227 .global HAL_DMA_DeInit - 228 .syntax unified - 229 .code 16 - 230 .thumb_func - 231 .fpu softvfp - 233 HAL_DMA_DeInit: - 234 .LFB38: - 223:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_dma.c **** /* Check the DMA handle allocation */ - 235 .loc 1 223 0 - 236 .cfi_startproc - ARM GAS /tmp/cc3uJEB3.s page 21 - - - 237 @ args = 0, pretend = 0, frame = 0 - 238 @ frame_needed = 0, uses_anonymous_args = 0 - 239 .LVL19: - 240 0000 70B5 push {r4, r5, r6, lr} - 241 .LCFI3: - 242 .cfi_def_cfa_offset 16 - 243 .cfi_offset 4, -16 - 244 .cfi_offset 5, -12 - 245 .cfi_offset 6, -8 - 246 .cfi_offset 14, -4 - 247 0002 041E subs r4, r0, #0 - 225:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_dma.c **** { - 248 .loc 1 225 0 - 249 0004 1AD0 beq .L15 - 234:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_dma.c **** - 250 .loc 1 234 0 - 251 0006 0268 ldr r2, [r0] - 252 0008 1368 ldr r3, [r2] - 253 000a 0126 movs r6, #1 - 254 000c B343 bics r3, r6 - 255 000e 1360 str r3, [r2] - 237:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_dma.c **** - 256 .loc 1 237 0 - 257 0010 0368 ldr r3, [r0] - 258 0012 0025 movs r5, #0 - 259 0014 1D60 str r5, [r3] - 240:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_dma.c **** - 260 .loc 1 240 0 - 261 0016 0368 ldr r3, [r0] - 262 0018 5D60 str r5, [r3, #4] - 243:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_dma.c **** - 263 .loc 1 243 0 - 264 001a 0368 ldr r3, [r0] - 265 001c 9D60 str r5, [r3, #8] - 246:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_dma.c **** - 266 .loc 1 246 0 - 267 001e 0368 ldr r3, [r0] - 268 0020 DD60 str r5, [r3, #12] - 249:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_dma.c **** - 269 .loc 1 249 0 - 270 0022 FFF7FEFF bl DMA_CalcBaseAndBitshift - 271 .LVL20: - 252:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_dma.c **** - 272 .loc 1 252 0 - 273 0026 E36B ldr r3, [r4, #60] - 274 0028 226C ldr r2, [r4, #64] - 275 002a 9640 lsls r6, r6, r2 - 276 002c 5E60 str r6, [r3, #4] - 255:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_dma.c **** - 277 .loc 1 255 0 - 278 002e A563 str r5, [r4, #56] - 258:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_dma.c **** - 279 .loc 1 258 0 - 280 0030 2123 movs r3, #33 - 281 0032 E554 strb r5, [r4, r3] - 261:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_dma.c **** - 282 .loc 1 261 0 - ARM GAS /tmp/cc3uJEB3.s page 22 - - - 283 0034 013B subs r3, r3, #1 - 284 0036 E554 strb r5, [r4, r3] - 263:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_dma.c **** } - 285 .loc 1 263 0 - 286 0038 0020 movs r0, #0 - 287 .L14: - 264:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_dma.c **** - 288 .loc 1 264 0 - 289 @ sp needed - 290 .LVL21: - 291 003a 70BD pop {r4, r5, r6, pc} - 292 .LVL22: - 293 .L15: - 227:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_dma.c **** } - 294 .loc 1 227 0 - 295 003c 0120 movs r0, #1 - 296 .LVL23: - 297 003e FCE7 b .L14 - 298 .cfi_endproc - 299 .LFE38: - 301 .section .text.HAL_DMA_Start,"ax",%progbits - 302 .align 1 - 303 .global HAL_DMA_Start - 304 .syntax unified - 305 .code 16 - 306 .thumb_func - 307 .fpu softvfp - 309 HAL_DMA_Start: - 310 .LFB39: - 299:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_dma.c **** HAL_StatusTypeDef status = HAL_OK; - 311 .loc 1 299 0 - 312 .cfi_startproc - 313 @ args = 0, pretend = 0, frame = 0 - 314 @ frame_needed = 0, uses_anonymous_args = 0 - 315 .LVL24: - 316 0000 70B5 push {r4, r5, r6, lr} - 317 .LCFI4: - 318 .cfi_def_cfa_offset 16 - 319 .cfi_offset 4, -16 - 320 .cfi_offset 5, -12 - 321 .cfi_offset 6, -8 - 322 .cfi_offset 14, -4 - 323 0002 0400 movs r4, r0 - 324 .LVL25: - 306:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_dma.c **** - 325 .loc 1 306 0 - 326 0004 2020 movs r0, #32 - 327 .LVL26: - 328 0006 205C ldrb r0, [r4, r0] - 329 0008 0128 cmp r0, #1 - 330 000a 1ED0 beq .L19 - 306:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_dma.c **** - 331 .loc 1 306 0 is_stmt 0 discriminator 2 - 332 000c 2020 movs r0, #32 - 333 000e 0125 movs r5, #1 - 334 0010 2554 strb r5, [r4, r0] - 308:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_dma.c **** { - ARM GAS /tmp/cc3uJEB3.s page 23 - - - 335 .loc 1 308 0 is_stmt 1 discriminator 2 - 336 0012 0130 adds r0, r0, #1 - 337 0014 205C ldrb r0, [r4, r0] - 338 0016 0128 cmp r0, #1 - 339 0018 04D0 beq .L20 - 327:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_dma.c **** - 340 .loc 1 327 0 - 341 001a 2023 movs r3, #32 - 342 .LVL27: - 343 001c 0022 movs r2, #0 - 344 .LVL28: - 345 001e E254 strb r2, [r4, r3] - 346 .LVL29: - 330:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_dma.c **** } - 347 .loc 1 330 0 - 348 0020 0220 movs r0, #2 - 349 .LVL30: - 350 .L17: - 334:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_dma.c **** - 351 .loc 1 334 0 - 352 @ sp needed - 353 .LVL31: - 354 0022 70BD pop {r4, r5, r6, pc} - 355 .LVL32: - 356 .L20: - 311:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_dma.c **** - 357 .loc 1 311 0 - 358 0024 2030 adds r0, r0, #32 - 359 0026 0135 adds r5, r5, #1 - 360 0028 2554 strb r5, [r4, r0] - 313:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_dma.c **** - 361 .loc 1 313 0 - 362 002a 0020 movs r0, #0 - 363 002c A063 str r0, [r4, #56] - 316:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_dma.c **** - 364 .loc 1 316 0 - 365 002e 2668 ldr r6, [r4] - 366 0030 3068 ldr r0, [r6] - 367 0032 013D subs r5, r5, #1 - 368 0034 A843 bics r0, r5 - 369 0036 3060 str r0, [r6] - 319:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_dma.c **** - 370 .loc 1 319 0 - 371 0038 2000 movs r0, r4 - 372 003a FFF7FEFF bl DMA_SetConfig - 373 .LVL33: - 322:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_dma.c **** } - 374 .loc 1 322 0 - 375 003e 2268 ldr r2, [r4] - 376 0040 1368 ldr r3, [r2] - 377 0042 2B43 orrs r3, r5 - 378 0044 1360 str r3, [r2] - 300:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_dma.c **** - 379 .loc 1 300 0 - 380 0046 0020 movs r0, #0 - 381 0048 EBE7 b .L17 - 382 .LVL34: - ARM GAS /tmp/cc3uJEB3.s page 24 - - - 383 .L19: - 306:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_dma.c **** - 384 .loc 1 306 0 - 385 004a 0220 movs r0, #2 - 386 004c E9E7 b .L17 - 387 .cfi_endproc - 388 .LFE39: - 390 .section .text.HAL_DMA_Start_IT,"ax",%progbits - 391 .align 1 - 392 .global HAL_DMA_Start_IT - 393 .syntax unified - 394 .code 16 - 395 .thumb_func - 396 .fpu softvfp - 398 HAL_DMA_Start_IT: - 399 .LFB40: - 346:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_dma.c **** HAL_StatusTypeDef status = HAL_OK; - 400 .loc 1 346 0 - 401 .cfi_startproc - 402 @ args = 0, pretend = 0, frame = 0 - 403 @ frame_needed = 0, uses_anonymous_args = 0 - 404 .LVL35: - 405 0000 70B5 push {r4, r5, r6, lr} - 406 .LCFI5: - 407 .cfi_def_cfa_offset 16 - 408 .cfi_offset 4, -16 - 409 .cfi_offset 5, -12 - 410 .cfi_offset 6, -8 - 411 .cfi_offset 14, -4 - 412 0002 0400 movs r4, r0 - 413 .LVL36: - 353:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_dma.c **** - 414 .loc 1 353 0 - 415 0004 2020 movs r0, #32 - 416 .LVL37: - 417 0006 205C ldrb r0, [r4, r0] - 418 0008 0128 cmp r0, #1 - 419 000a 32D0 beq .L26 - 353:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_dma.c **** - 420 .loc 1 353 0 is_stmt 0 discriminator 2 - 421 000c 2020 movs r0, #32 - 422 000e 0125 movs r5, #1 - 423 0010 2554 strb r5, [r4, r0] - 355:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_dma.c **** { - 424 .loc 1 355 0 is_stmt 1 discriminator 2 - 425 0012 0130 adds r0, r0, #1 - 426 0014 205C ldrb r0, [r4, r0] - 427 0016 0128 cmp r0, #1 - 428 0018 04D0 beq .L27 - 386:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_dma.c **** - 429 .loc 1 386 0 - 430 001a 2023 movs r3, #32 - 431 .LVL38: - 432 001c 0022 movs r2, #0 - 433 .LVL39: - 434 001e E254 strb r2, [r4, r3] - 435 .LVL40: - ARM GAS /tmp/cc3uJEB3.s page 25 - - - 389:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_dma.c **** } - 436 .loc 1 389 0 - 437 0020 0220 movs r0, #2 - 438 .LVL41: - 439 .L22: - 393:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_dma.c **** - 440 .loc 1 393 0 - 441 @ sp needed - 442 .LVL42: - 443 0022 70BD pop {r4, r5, r6, pc} - 444 .LVL43: - 445 .L27: - 358:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_dma.c **** - 446 .loc 1 358 0 - 447 0024 2030 adds r0, r0, #32 - 448 0026 0135 adds r5, r5, #1 - 449 0028 2554 strb r5, [r4, r0] - 360:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_dma.c **** - 450 .loc 1 360 0 - 451 002a 0020 movs r0, #0 - 452 002c A063 str r0, [r4, #56] - 363:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_dma.c **** - 453 .loc 1 363 0 - 454 002e 2568 ldr r5, [r4] - 455 0030 2868 ldr r0, [r5] - 456 0032 0126 movs r6, #1 - 457 0034 B043 bics r0, r6 - 458 0036 2860 str r0, [r5] - 366:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_dma.c **** - 459 .loc 1 366 0 - 460 0038 2000 movs r0, r4 - 461 003a FFF7FEFF bl DMA_SetConfig - 462 .LVL44: - 370:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_dma.c **** { - 463 .loc 1 370 0 - 464 003e E36A ldr r3, [r4, #44] - 465 0040 002B cmp r3, #0 - 466 0042 0BD0 beq .L24 - 372:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_dma.c **** } - 467 .loc 1 372 0 - 468 0044 2268 ldr r2, [r4] - 469 0046 1368 ldr r3, [r2] - 470 0048 0E21 movs r1, #14 - 471 004a 0B43 orrs r3, r1 - 472 004c 1360 str r3, [r2] - 473 .L25: - 381:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_dma.c **** } - 474 .loc 1 381 0 - 475 004e 2268 ldr r2, [r4] - 476 0050 1368 ldr r3, [r2] - 477 0052 0121 movs r1, #1 - 478 0054 0B43 orrs r3, r1 - 479 0056 1360 str r3, [r2] - 347:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_dma.c **** - 480 .loc 1 347 0 - 481 0058 0020 movs r0, #0 - 482 005a E2E7 b .L22 - ARM GAS /tmp/cc3uJEB3.s page 26 - - - 483 .L24: - 376:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_dma.c **** hdma->Instance->CCR &= ~DMA_IT_HT; - 484 .loc 1 376 0 - 485 005c 2268 ldr r2, [r4] - 486 005e 1368 ldr r3, [r2] - 487 0060 0A21 movs r1, #10 - 488 0062 0B43 orrs r3, r1 - 489 0064 1360 str r3, [r2] - 377:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_dma.c **** } - 490 .loc 1 377 0 - 491 0066 2268 ldr r2, [r4] - 492 0068 1368 ldr r3, [r2] - 493 006a 0639 subs r1, r1, #6 - 494 006c 8B43 bics r3, r1 - 495 006e 1360 str r3, [r2] - 496 0070 EDE7 b .L25 - 497 .LVL45: - 498 .L26: - 353:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_dma.c **** - 499 .loc 1 353 0 - 500 0072 0220 movs r0, #2 - 501 0074 D5E7 b .L22 - 502 .cfi_endproc - 503 .LFE40: - 505 .section .text.HAL_DMA_Abort,"ax",%progbits - 506 .align 1 - 507 .global HAL_DMA_Abort - 508 .syntax unified - 509 .code 16 - 510 .thumb_func - 511 .fpu softvfp - 513 HAL_DMA_Abort: - 514 .LFB41: - 402:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_dma.c **** /* Disable DMA IT */ - 515 .loc 1 402 0 - 516 .cfi_startproc - 517 @ args = 0, pretend = 0, frame = 0 - 518 @ frame_needed = 0, uses_anonymous_args = 0 - 519 .LVL46: - 520 0000 10B5 push {r4, lr} - 521 .LCFI6: - 522 .cfi_def_cfa_offset 8 - 523 .cfi_offset 4, -8 - 524 .cfi_offset 14, -4 - 404:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_dma.c **** - 525 .loc 1 404 0 - 526 0002 0268 ldr r2, [r0] - 527 0004 1368 ldr r3, [r2] - 528 0006 0E21 movs r1, #14 - 529 0008 8B43 bics r3, r1 - 530 000a 1360 str r3, [r2] - 407:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_dma.c **** - 531 .loc 1 407 0 - 532 000c 0168 ldr r1, [r0] - 533 000e 0A68 ldr r2, [r1] - 534 0010 0123 movs r3, #1 - 535 0012 9A43 bics r2, r3 - ARM GAS /tmp/cc3uJEB3.s page 27 - - - 536 0014 0A60 str r2, [r1] - 410:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_dma.c **** - 537 .loc 1 410 0 - 538 0016 C26B ldr r2, [r0, #60] - 539 0018 1900 movs r1, r3 - 540 001a 046C ldr r4, [r0, #64] - 541 001c A140 lsls r1, r1, r4 - 542 001e 5160 str r1, [r2, #4] - 413:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_dma.c **** - 543 .loc 1 413 0 - 544 0020 2122 movs r2, #33 - 545 0022 8354 strb r3, [r0, r2] - 416:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_dma.c **** - 546 .loc 1 416 0 - 547 0024 1F33 adds r3, r3, #31 - 548 0026 0022 movs r2, #0 - 549 0028 C254 strb r2, [r0, r3] - 419:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_dma.c **** - 550 .loc 1 419 0 - 551 002a 0020 movs r0, #0 - 552 .LVL47: - 553 @ sp needed - 554 002c 10BD pop {r4, pc} - 555 .cfi_endproc - 556 .LFE41: - 558 .section .text.HAL_DMA_Abort_IT,"ax",%progbits - 559 .align 1 - 560 .global HAL_DMA_Abort_IT - 561 .syntax unified - 562 .code 16 - 563 .thumb_func - 564 .fpu softvfp - 566 HAL_DMA_Abort_IT: - 567 .LFB42: - 428:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_dma.c **** HAL_StatusTypeDef status = HAL_OK; - 568 .loc 1 428 0 - 569 .cfi_startproc - 570 @ args = 0, pretend = 0, frame = 0 - 571 @ frame_needed = 0, uses_anonymous_args = 0 - 572 .LVL48: - 573 0000 10B5 push {r4, lr} - 574 .LCFI7: - 575 .cfi_def_cfa_offset 8 - 576 .cfi_offset 4, -8 - 577 .cfi_offset 14, -4 - 578 .LVL49: - 431:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_dma.c **** { - 579 .loc 1 431 0 - 580 0002 2123 movs r3, #33 - 581 0004 C35C ldrb r3, [r0, r3] - 582 0006 022B cmp r3, #2 - 583 0008 03D0 beq .L30 - 434:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_dma.c **** - 584 .loc 1 434 0 - 585 000a 0423 movs r3, #4 - 586 000c 8363 str r3, [r0, #56] - 587 .LVL50: - ARM GAS /tmp/cc3uJEB3.s page 28 - - - 436:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_dma.c **** } - 588 .loc 1 436 0 - 589 000e 0120 movs r0, #1 - 590 .LVL51: - 591 .L31: - 463:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_dma.c **** - 592 .loc 1 463 0 - 593 @ sp needed - 594 0010 10BD pop {r4, pc} - 595 .LVL52: - 596 .L30: - 442:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_dma.c **** - 597 .loc 1 442 0 - 598 0012 0268 ldr r2, [r0] - 599 0014 1368 ldr r3, [r2] - 600 0016 0E21 movs r1, #14 - 601 0018 8B43 bics r3, r1 - 602 001a 1360 str r3, [r2] - 445:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_dma.c **** - 603 .loc 1 445 0 - 604 001c 0168 ldr r1, [r0] - 605 001e 0A68 ldr r2, [r1] - 606 0020 0123 movs r3, #1 - 607 0022 9A43 bics r2, r3 - 608 0024 0A60 str r2, [r1] - 448:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_dma.c **** - 609 .loc 1 448 0 - 610 0026 C26B ldr r2, [r0, #60] - 611 0028 1900 movs r1, r3 - 612 002a 046C ldr r4, [r0, #64] - 613 002c A140 lsls r1, r1, r4 - 614 002e 5160 str r1, [r2, #4] - 451:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_dma.c **** - 615 .loc 1 451 0 - 616 0030 2122 movs r2, #33 - 617 0032 8354 strb r3, [r0, r2] - 454:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_dma.c **** - 618 .loc 1 454 0 - 619 0034 1F33 adds r3, r3, #31 - 620 0036 0022 movs r2, #0 - 621 0038 C254 strb r2, [r0, r3] - 457:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_dma.c **** { - 622 .loc 1 457 0 - 623 003a 436B ldr r3, [r0, #52] - 624 003c 002B cmp r3, #0 - 625 003e 02D0 beq .L32 - 459:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_dma.c **** } - 626 .loc 1 459 0 - 627 0040 9847 blx r3 - 628 .LVL53: - 429:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_dma.c **** - 629 .loc 1 429 0 - 630 0042 0020 movs r0, #0 - 631 0044 E4E7 b .L31 - 632 .LVL54: - 633 .L32: - 634 0046 0020 movs r0, #0 - ARM GAS /tmp/cc3uJEB3.s page 29 - - - 635 .LVL55: - 636 0048 E2E7 b .L31 - 637 .cfi_endproc - 638 .LFE42: - 640 .section .text.HAL_DMA_PollForTransfer,"ax",%progbits - 641 .align 1 - 642 .global HAL_DMA_PollForTransfer - 643 .syntax unified - 644 .code 16 - 645 .thumb_func - 646 .fpu softvfp - 648 HAL_DMA_PollForTransfer: - 649 .LFB43: - 474:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_dma.c **** uint32_t temp; - 650 .loc 1 474 0 - 651 .cfi_startproc - 652 @ args = 0, pretend = 0, frame = 8 - 653 @ frame_needed = 0, uses_anonymous_args = 0 - 654 .LVL56: - 655 0000 F0B5 push {r4, r5, r6, r7, lr} - 656 .LCFI8: - 657 .cfi_def_cfa_offset 20 - 658 .cfi_offset 4, -20 - 659 .cfi_offset 5, -16 - 660 .cfi_offset 6, -12 - 661 .cfi_offset 7, -8 - 662 .cfi_offset 14, -4 - 663 0002 83B0 sub sp, sp, #12 - 664 .LCFI9: - 665 .cfi_def_cfa_offset 32 - 666 0004 0400 movs r4, r0 - 667 0006 0D00 movs r5, r1 - 668 0008 1700 movs r7, r2 - 669 .LVL57: - 478:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_dma.c **** { - 670 .loc 1 478 0 - 671 000a 2123 movs r3, #33 - 672 000c C35C ldrb r3, [r0, r3] - 673 000e 022B cmp r3, #2 - 674 0010 07D0 beq .L34 - 481:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_dma.c **** __HAL_UNLOCK(hdma); - 675 .loc 1 481 0 - 676 0012 0423 movs r3, #4 - 677 0014 8363 str r3, [r0, #56] - 482:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_dma.c **** return HAL_ERROR; - 678 .loc 1 482 0 - 679 0016 1C33 adds r3, r3, #28 - 680 0018 0022 movs r2, #0 - 681 .LVL58: - 682 001a C254 strb r2, [r0, r3] - 483:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_dma.c **** } - 683 .loc 1 483 0 - 684 001c 0120 movs r0, #1 - 685 .LVL59: - 686 .L35: - 566:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_dma.c **** - 687 .loc 1 566 0 - ARM GAS /tmp/cc3uJEB3.s page 30 - - - 688 001e 03B0 add sp, sp, #12 - 689 @ sp needed - 690 .LVL60: - 691 .LVL61: - 692 .LVL62: - 693 0020 F0BD pop {r4, r5, r6, r7, pc} - 694 .LVL63: - 695 .L34: - 487:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_dma.c **** { - 696 .loc 1 487 0 - 697 0022 0368 ldr r3, [r0] - 698 0024 1B68 ldr r3, [r3] - 699 0026 9B06 lsls r3, r3, #26 - 700 0028 24D4 bmi .L46 - 494:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_dma.c **** { - 701 .loc 1 494 0 - 702 002a 0029 cmp r1, #0 - 703 002c 27D1 bne .L37 - 497:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_dma.c **** } - 704 .loc 1 497 0 - 705 002e 0226 movs r6, #2 - 706 0030 036C ldr r3, [r0, #64] - 707 0032 9E40 lsls r6, r6, r3 - 708 .LVL64: - 709 .L38: - 506:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_dma.c **** - 710 .loc 1 506 0 - 711 0034 FFF7FEFF bl HAL_GetTick - 712 .LVL65: - 713 0038 0190 str r0, [sp, #4] - 714 .LVL66: - 715 .L41: - 508:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_dma.c **** { - 716 .loc 1 508 0 - 717 003a E26B ldr r2, [r4, #60] - 718 003c 1368 ldr r3, [r2] - 719 003e 1E42 tst r6, r3 - 720 0040 2DD1 bne .L47 - 510:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_dma.c **** { - 721 .loc 1 510 0 - 722 0042 1068 ldr r0, [r2] - 723 0044 216C ldr r1, [r4, #64] - 724 0046 0823 movs r3, #8 - 725 0048 8B40 lsls r3, r3, r1 - 726 004a 0342 tst r3, r0 - 727 004c 1BD1 bne .L48 - 529:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_dma.c **** { - 728 .loc 1 529 0 - 729 004e 7B1C adds r3, r7, #1 - 730 0050 F3D0 beq .L41 - 531:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_dma.c **** { - 731 .loc 1 531 0 - 732 0052 002F cmp r7, #0 - 733 0054 05D0 beq .L42 - 531:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_dma.c **** { - 734 .loc 1 531 0 is_stmt 0 discriminator 1 - 735 0056 FFF7FEFF bl HAL_GetTick - ARM GAS /tmp/cc3uJEB3.s page 31 - - - 736 .LVL67: - 737 005a 019B ldr r3, [sp, #4] - 738 005c C01A subs r0, r0, r3 - 739 005e B842 cmp r0, r7 - 740 0060 EBD9 bls .L41 - 741 .L42: - 534:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_dma.c **** - 742 .loc 1 534 0 is_stmt 1 - 743 0062 2023 movs r3, #32 - 744 0064 A363 str r3, [r4, #56] - 537:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_dma.c **** - 745 .loc 1 537 0 - 746 0066 2122 movs r2, #33 - 747 0068 0121 movs r1, #1 - 748 006a A154 strb r1, [r4, r2] - 540:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_dma.c **** - 749 .loc 1 540 0 - 750 006c 0022 movs r2, #0 - 751 006e E254 strb r2, [r4, r3] - 542:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_dma.c **** } - 752 .loc 1 542 0 - 753 0070 0120 movs r0, #1 - 754 0072 D4E7 b .L35 - 755 .LVL68: - 756 .L46: - 489:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_dma.c **** return HAL_ERROR; - 757 .loc 1 489 0 - 758 0074 8023 movs r3, #128 - 759 0076 5B00 lsls r3, r3, #1 - 760 0078 8363 str r3, [r0, #56] - 490:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_dma.c **** } - 761 .loc 1 490 0 - 762 007a 0120 movs r0, #1 - 763 .LVL69: - 764 007c CFE7 b .L35 - 765 .LVL70: - 766 .L37: - 502:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_dma.c **** } - 767 .loc 1 502 0 - 768 007e 0426 movs r6, #4 - 769 0080 036C ldr r3, [r0, #64] - 770 0082 9E40 lsls r6, r6, r3 - 771 .LVL71: - 772 0084 D6E7 b .L38 - 773 .LVL72: - 774 .L48: - 515:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_dma.c **** - 775 .loc 1 515 0 - 776 0086 0123 movs r3, #1 - 777 0088 1800 movs r0, r3 - 778 008a 8840 lsls r0, r0, r1 - 779 008c 5060 str r0, [r2, #4] - 518:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_dma.c **** - 780 .loc 1 518 0 - 781 008e A363 str r3, [r4, #56] - 521:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_dma.c **** - 782 .loc 1 521 0 - ARM GAS /tmp/cc3uJEB3.s page 32 - - - 783 0090 2122 movs r2, #33 - 784 0092 A354 strb r3, [r4, r2] - 524:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_dma.c **** - 785 .loc 1 524 0 - 786 0094 1F33 adds r3, r3, #31 - 787 0096 0022 movs r2, #0 - 788 0098 E254 strb r2, [r4, r3] - 526:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_dma.c **** } - 789 .loc 1 526 0 - 790 009a 0120 movs r0, #1 - 791 009c BFE7 b .L35 - 792 .L47: - 547:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_dma.c **** { - 793 .loc 1 547 0 - 794 009e 002D cmp r5, #0 - 795 00a0 0BD1 bne .L44 - 550:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_dma.c **** - 796 .loc 1 550 0 - 797 00a2 0223 movs r3, #2 - 798 00a4 216C ldr r1, [r4, #64] - 799 00a6 8B40 lsls r3, r3, r1 - 800 00a8 5360 str r3, [r2, #4] - 554:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_dma.c **** } - 801 .loc 1 554 0 - 802 00aa 2123 movs r3, #33 - 803 00ac 0122 movs r2, #1 - 804 00ae E254 strb r2, [r4, r3] - 805 .L45: - 563:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_dma.c **** - 806 .loc 1 563 0 - 807 00b0 2023 movs r3, #32 - 808 00b2 0022 movs r2, #0 - 809 00b4 E254 strb r2, [r4, r3] - 565:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_dma.c **** } - 810 .loc 1 565 0 - 811 00b6 0020 movs r0, #0 - 812 00b8 B1E7 b .L35 - 813 .L44: - 559:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_dma.c **** } - 814 .loc 1 559 0 - 815 00ba 0423 movs r3, #4 - 816 00bc 216C ldr r1, [r4, #64] - 817 00be 8B40 lsls r3, r3, r1 - 818 00c0 5360 str r3, [r2, #4] - 819 00c2 F5E7 b .L45 - 820 .cfi_endproc - 821 .LFE43: - 823 .section .text.HAL_DMA_IRQHandler,"ax",%progbits - 824 .align 1 - 825 .global HAL_DMA_IRQHandler - 826 .syntax unified - 827 .code 16 - 828 .thumb_func - 829 .fpu softvfp - 831 HAL_DMA_IRQHandler: - 832 .LFB44: - 575:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_dma.c **** uint32_t flag_it = hdma->DmaBaseAddress->ISR; - ARM GAS /tmp/cc3uJEB3.s page 33 - - - 833 .loc 1 575 0 - 834 .cfi_startproc - 835 @ args = 0, pretend = 0, frame = 0 - 836 @ frame_needed = 0, uses_anonymous_args = 0 - 837 .LVL73: - 838 0000 70B5 push {r4, r5, r6, lr} - 839 .LCFI10: - 840 .cfi_def_cfa_offset 16 - 841 .cfi_offset 4, -16 - 842 .cfi_offset 5, -12 - 843 .cfi_offset 6, -8 - 844 .cfi_offset 14, -4 - 576:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_dma.c **** uint32_t source_it = hdma->Instance->CCR; - 845 .loc 1 576 0 - 846 0002 C36B ldr r3, [r0, #60] - 847 0004 1A68 ldr r2, [r3] - 848 .LVL74: - 577:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_dma.c **** - 849 .loc 1 577 0 - 850 0006 0468 ldr r4, [r0] - 851 0008 2568 ldr r5, [r4] - 852 .LVL75: - 580:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_dma.c **** { - 853 .loc 1 580 0 - 854 000a 016C ldr r1, [r0, #64] - 855 000c 0423 movs r3, #4 - 856 000e 8B40 lsls r3, r3, r1 - 857 0010 1A42 tst r2, r3 - 858 0012 12D0 beq .L50 - 580:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_dma.c **** { - 859 .loc 1 580 0 is_stmt 0 discriminator 1 - 860 0014 6B07 lsls r3, r5, #29 - 861 0016 10D5 bpl .L50 - 583:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_dma.c **** { - 862 .loc 1 583 0 is_stmt 1 - 863 0018 2368 ldr r3, [r4] - 864 001a 9B06 lsls r3, r3, #26 - 865 001c 03D4 bmi .L51 - 586:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_dma.c **** } - 866 .loc 1 586 0 - 867 001e 2368 ldr r3, [r4] - 868 0020 0422 movs r2, #4 - 869 .LVL76: - 870 0022 9343 bics r3, r2 - 871 0024 2360 str r3, [r4] - 872 .L51: - 590:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_dma.c **** - 873 .loc 1 590 0 - 874 0026 C26B ldr r2, [r0, #60] - 875 0028 0423 movs r3, #4 - 876 002a 016C ldr r1, [r0, #64] - 877 002c 8B40 lsls r3, r3, r1 - 878 002e 5360 str r3, [r2, #4] - 595:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_dma.c **** { - 879 .loc 1 595 0 - 880 0030 C36A ldr r3, [r0, #44] - 881 0032 002B cmp r3, #0 - ARM GAS /tmp/cc3uJEB3.s page 34 - - - 882 0034 00D0 beq .L49 - 598:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_dma.c **** } - 883 .loc 1 598 0 - 884 0036 9847 blx r3 - 885 .LVL77: - 886 .L49: - 654:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_dma.c **** - 887 .loc 1 654 0 - 888 @ sp needed - 889 .LVL78: - 890 0038 70BD pop {r4, r5, r6, pc} - 891 .LVL79: - 892 .L50: - 603:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_dma.c **** { - 893 .loc 1 603 0 - 894 003a 0223 movs r3, #2 - 895 003c 8B40 lsls r3, r3, r1 - 896 003e 1A42 tst r2, r3 - 897 0040 18D0 beq .L53 - 603:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_dma.c **** { - 898 .loc 1 603 0 is_stmt 0 discriminator 1 - 899 0042 AB07 lsls r3, r5, #30 - 900 0044 16D5 bpl .L53 - 605:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_dma.c **** { - 901 .loc 1 605 0 is_stmt 1 - 902 0046 2368 ldr r3, [r4] - 903 0048 9B06 lsls r3, r3, #26 - 904 004a 06D4 bmi .L54 - 609:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_dma.c **** - 905 .loc 1 609 0 - 906 004c 2368 ldr r3, [r4] - 907 004e 0A22 movs r2, #10 - 908 .LVL80: - 909 0050 9343 bics r3, r2 - 910 0052 2360 str r3, [r4] - 612:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_dma.c **** } - 911 .loc 1 612 0 - 912 0054 2123 movs r3, #33 - 913 0056 093A subs r2, r2, #9 - 914 0058 C254 strb r2, [r0, r3] - 915 .L54: - 616:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_dma.c **** - 916 .loc 1 616 0 - 917 005a C26B ldr r2, [r0, #60] - 918 005c 0223 movs r3, #2 - 919 005e 016C ldr r1, [r0, #64] - 920 0060 8B40 lsls r3, r3, r1 - 921 0062 5360 str r3, [r2, #4] - 619:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_dma.c **** - 922 .loc 1 619 0 - 923 0064 2023 movs r3, #32 - 924 0066 0022 movs r2, #0 - 925 0068 C254 strb r2, [r0, r3] - 621:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_dma.c **** { - 926 .loc 1 621 0 - 927 006a 836A ldr r3, [r0, #40] - 928 006c 002B cmp r3, #0 - ARM GAS /tmp/cc3uJEB3.s page 35 - - - 929 006e E3D0 beq .L49 - 624:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_dma.c **** } - 930 .loc 1 624 0 - 931 0070 9847 blx r3 - 932 .LVL81: - 933 0072 E1E7 b .L49 - 934 .LVL82: - 935 .L53: - 629:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_dma.c **** { - 936 .loc 1 629 0 - 937 0074 0823 movs r3, #8 - 938 0076 8B40 lsls r3, r3, r1 - 939 0078 1A42 tst r2, r3 - 940 007a DDD0 beq .L49 - 629:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_dma.c **** { - 941 .loc 1 629 0 is_stmt 0 discriminator 1 - 942 007c 2B07 lsls r3, r5, #28 - 943 007e DBD5 bpl .L49 - 634:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_dma.c **** - 944 .loc 1 634 0 is_stmt 1 - 945 0080 2368 ldr r3, [r4] - 946 0082 0E22 movs r2, #14 - 947 .LVL83: - 948 0084 9343 bics r3, r2 - 949 0086 2360 str r3, [r4] - 637:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_dma.c **** - 950 .loc 1 637 0 - 951 0088 C26B ldr r2, [r0, #60] - 952 008a 0123 movs r3, #1 - 953 008c 1900 movs r1, r3 - 954 008e 046C ldr r4, [r0, #64] - 955 0090 A140 lsls r1, r1, r4 - 956 0092 5160 str r1, [r2, #4] - 640:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_dma.c **** - 957 .loc 1 640 0 - 958 0094 8363 str r3, [r0, #56] - 643:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_dma.c **** - 959 .loc 1 643 0 - 960 0096 2122 movs r2, #33 - 961 0098 8354 strb r3, [r0, r2] - 646:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_dma.c **** - 962 .loc 1 646 0 - 963 009a 1F33 adds r3, r3, #31 - 964 009c 0022 movs r2, #0 - 965 009e C254 strb r2, [r0, r3] - 648:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_dma.c **** { - 966 .loc 1 648 0 - 967 00a0 036B ldr r3, [r0, #48] - 968 00a2 002B cmp r3, #0 - 969 00a4 C8D0 beq .L49 - 651:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_dma.c **** } - 970 .loc 1 651 0 - 971 00a6 9847 blx r3 - 972 .LVL84: - 654:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_dma.c **** - 973 .loc 1 654 0 - 974 00a8 C6E7 b .L49 - ARM GAS /tmp/cc3uJEB3.s page 36 - - - 975 .cfi_endproc - 976 .LFE44: - 978 .section .text.HAL_DMA_RegisterCallback,"ax",%progbits - 979 .align 1 - 980 .global HAL_DMA_RegisterCallback - 981 .syntax unified - 982 .code 16 - 983 .thumb_func - 984 .fpu softvfp - 986 HAL_DMA_RegisterCallback: - 987 .LFB45: - 667:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_dma.c **** HAL_StatusTypeDef status = HAL_OK; - 988 .loc 1 667 0 - 989 .cfi_startproc - 990 @ args = 0, pretend = 0, frame = 0 - 991 @ frame_needed = 0, uses_anonymous_args = 0 - 992 .LVL85: - 993 0000 10B5 push {r4, lr} - 994 .LCFI11: - 995 .cfi_def_cfa_offset 8 - 996 .cfi_offset 4, -8 - 997 .cfi_offset 14, -4 - 998 .LVL86: - 671:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_dma.c **** - 999 .loc 1 671 0 - 1000 0002 2023 movs r3, #32 - 1001 0004 C35C ldrb r3, [r0, r3] - 1002 0006 012B cmp r3, #1 - 1003 0008 22D0 beq .L62 - 671:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_dma.c **** - 1004 .loc 1 671 0 is_stmt 0 discriminator 2 - 1005 000a 2023 movs r3, #32 - 1006 000c 0124 movs r4, #1 - 1007 000e C454 strb r4, [r0, r3] - 673:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_dma.c **** { - 1008 .loc 1 673 0 is_stmt 1 discriminator 2 - 1009 0010 0133 adds r3, r3, #1 - 1010 0012 C35C ldrb r3, [r0, r3] - 1011 0014 012B cmp r3, #1 - 1012 0016 05D0 beq .L66 - 700:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_dma.c **** } - 1013 .loc 1 700 0 - 1014 0018 0123 movs r3, #1 - 1015 .L57: - 1016 .LVL87: - 704:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_dma.c **** - 1017 .loc 1 704 0 - 1018 001a 2022 movs r2, #32 - 1019 .LVL88: - 1020 001c 0021 movs r1, #0 - 1021 .LVL89: - 1022 001e 8154 strb r1, [r0, r2] - 1023 .LVL90: - 1024 .L56: - 707:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_dma.c **** - 1025 .loc 1 707 0 - 1026 0020 1800 movs r0, r3 - ARM GAS /tmp/cc3uJEB3.s page 37 - - - 1027 .LVL91: - 1028 @ sp needed - 1029 0022 10BD pop {r4, pc} - 1030 .LVL92: - 1031 .L66: - 675:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_dma.c **** { - 1032 .loc 1 675 0 - 1033 0024 0129 cmp r1, #1 - 1034 0026 0AD0 beq .L58 - 1035 0028 0029 cmp r1, #0 - 1036 002a 05D0 beq .L59 - 1037 002c 0229 cmp r1, #2 - 1038 002e 09D0 beq .L60 - 1039 0030 0329 cmp r1, #3 - 1040 0032 0AD0 beq .L61 - 694:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_dma.c **** break; - 1041 .loc 1 694 0 - 1042 0034 0123 movs r3, #1 - 1043 0036 F0E7 b .L57 - 1044 .L59: - 678:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_dma.c **** break; - 1045 .loc 1 678 0 - 1046 0038 8262 str r2, [r0, #40] - 668:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_dma.c **** - 1047 .loc 1 668 0 - 1048 003a 0023 movs r3, #0 - 679:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_dma.c **** - 1049 .loc 1 679 0 - 1050 003c EDE7 b .L57 - 1051 .L58: - 682:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_dma.c **** break; - 1052 .loc 1 682 0 - 1053 003e C262 str r2, [r0, #44] - 668:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_dma.c **** - 1054 .loc 1 668 0 - 1055 0040 0023 movs r3, #0 - 683:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_dma.c **** - 1056 .loc 1 683 0 - 1057 0042 EAE7 b .L57 - 1058 .L60: - 686:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_dma.c **** break; - 1059 .loc 1 686 0 - 1060 0044 0263 str r2, [r0, #48] - 668:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_dma.c **** - 1061 .loc 1 668 0 - 1062 0046 0023 movs r3, #0 - 687:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_dma.c **** - 1063 .loc 1 687 0 - 1064 0048 E7E7 b .L57 - 1065 .L61: - 690:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_dma.c **** break; - 1066 .loc 1 690 0 - 1067 004a 4263 str r2, [r0, #52] - 668:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_dma.c **** - 1068 .loc 1 668 0 - 1069 004c 0023 movs r3, #0 - 691:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_dma.c **** - ARM GAS /tmp/cc3uJEB3.s page 38 - - - 1070 .loc 1 691 0 - 1071 004e E4E7 b .L57 - 1072 .L62: - 671:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_dma.c **** - 1073 .loc 1 671 0 - 1074 0050 0223 movs r3, #2 - 1075 0052 E5E7 b .L56 - 1076 .cfi_endproc - 1077 .LFE45: - 1079 .section .text.HAL_DMA_UnRegisterCallback,"ax",%progbits - 1080 .align 1 - 1081 .global HAL_DMA_UnRegisterCallback - 1082 .syntax unified - 1083 .code 16 - 1084 .thumb_func - 1085 .fpu softvfp - 1087 HAL_DMA_UnRegisterCallback: - 1088 .LFB46: - 718:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_dma.c **** HAL_StatusTypeDef status = HAL_OK; - 1089 .loc 1 718 0 - 1090 .cfi_startproc - 1091 @ args = 0, pretend = 0, frame = 0 - 1092 @ frame_needed = 0, uses_anonymous_args = 0 - 1093 @ link register save eliminated. - 1094 .LVL93: - 722:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_dma.c **** - 1095 .loc 1 722 0 - 1096 0000 2023 movs r3, #32 - 1097 0002 C35C ldrb r3, [r0, r3] - 1098 0004 012B cmp r3, #1 - 1099 0006 26D0 beq .L76 - 722:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_dma.c **** - 1100 .loc 1 722 0 is_stmt 0 discriminator 2 - 1101 0008 2023 movs r3, #32 - 1102 000a 0122 movs r2, #1 - 1103 000c C254 strb r2, [r0, r3] - 724:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_dma.c **** { - 1104 .loc 1 724 0 is_stmt 1 discriminator 2 - 1105 000e 0133 adds r3, r3, #1 - 1106 0010 C35C ldrb r3, [r0, r3] - 1107 0012 012B cmp r3, #1 - 1108 0014 05D0 beq .L79 - 758:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_dma.c **** } - 1109 .loc 1 758 0 - 1110 0016 0123 movs r3, #1 - 1111 .LVL94: - 1112 .L69: - 762:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_dma.c **** - 1113 .loc 1 762 0 - 1114 0018 2022 movs r2, #32 - 1115 001a 0021 movs r1, #0 - 1116 001c 8154 strb r1, [r0, r2] - 1117 .LVL95: - 1118 .L68: - 765:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_dma.c **** - 1119 .loc 1 765 0 - 1120 001e 1800 movs r0, r3 - ARM GAS /tmp/cc3uJEB3.s page 39 - - - 1121 .LVL96: - 1122 @ sp needed - 1123 0020 7047 bx lr - 1124 .LVL97: - 1125 .L79: - 726:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_dma.c **** { - 1126 .loc 1 726 0 - 1127 0022 0429 cmp r1, #4 - 1128 0024 15D8 bhi .L78 - 1129 0026 8900 lsls r1, r1, #2 - 1130 .LVL98: - 1131 0028 0C4B ldr r3, .L80 - 1132 002a 5B58 ldr r3, [r3, r1] - 1133 002c 9F46 mov pc, r3 - 1134 .section .rodata.HAL_DMA_UnRegisterCallback,"a",%progbits - 1135 .align 2 - 1136 .L71: - 1137 0000 2E000000 .word .L70 - 1138 0004 34000000 .word .L72 - 1139 0008 3A000000 .word .L73 - 1140 000c 40000000 .word .L74 - 1141 0010 46000000 .word .L75 - 1142 .section .text.HAL_DMA_UnRegisterCallback - 1143 .L70: - 729:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_dma.c **** break; - 1144 .loc 1 729 0 - 1145 002e 0023 movs r3, #0 - 1146 0030 8362 str r3, [r0, #40] - 730:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_dma.c **** - 1147 .loc 1 730 0 - 1148 0032 F1E7 b .L69 - 1149 .L72: - 733:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_dma.c **** break; - 1150 .loc 1 733 0 - 1151 0034 0023 movs r3, #0 - 1152 0036 C362 str r3, [r0, #44] - 734:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_dma.c **** - 1153 .loc 1 734 0 - 1154 0038 EEE7 b .L69 - 1155 .L73: - 737:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_dma.c **** break; - 1156 .loc 1 737 0 - 1157 003a 0023 movs r3, #0 - 1158 003c 0363 str r3, [r0, #48] - 738:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_dma.c **** - 1159 .loc 1 738 0 - 1160 003e EBE7 b .L69 - 1161 .L74: - 741:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_dma.c **** break; - 1162 .loc 1 741 0 - 1163 0040 0023 movs r3, #0 - 1164 0042 4363 str r3, [r0, #52] - 742:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_dma.c **** - 1165 .loc 1 742 0 - 1166 0044 E8E7 b .L69 - 1167 .L75: - 745:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_dma.c **** hdma->XferHalfCpltCallback = NULL; - ARM GAS /tmp/cc3uJEB3.s page 40 - - - 1168 .loc 1 745 0 - 1169 0046 0023 movs r3, #0 - 1170 0048 8362 str r3, [r0, #40] - 746:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_dma.c **** hdma->XferErrorCallback = NULL; - 1171 .loc 1 746 0 - 1172 004a C362 str r3, [r0, #44] - 747:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_dma.c **** hdma->XferAbortCallback = NULL; - 1173 .loc 1 747 0 - 1174 004c 0363 str r3, [r0, #48] - 748:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_dma.c **** break; - 1175 .loc 1 748 0 - 1176 004e 4363 str r3, [r0, #52] - 749:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_dma.c **** - 1177 .loc 1 749 0 - 1178 0050 E2E7 b .L69 - 1179 .LVL99: - 1180 .L78: - 752:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_dma.c **** break; - 1181 .loc 1 752 0 - 1182 0052 0123 movs r3, #1 - 1183 0054 E0E7 b .L69 - 1184 .L76: - 722:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_dma.c **** - 1185 .loc 1 722 0 - 1186 0056 0223 movs r3, #2 - 1187 0058 E1E7 b .L68 - 1188 .L81: - 1189 005a C046 .align 2 - 1190 .L80: - 1191 005c 00000000 .word .L71 - 1192 .cfi_endproc - 1193 .LFE46: - 1195 .section .text.HAL_DMA_GetState,"ax",%progbits - 1196 .align 1 - 1197 .global HAL_DMA_GetState - 1198 .syntax unified - 1199 .code 16 - 1200 .thumb_func - 1201 .fpu softvfp - 1203 HAL_DMA_GetState: - 1204 .LFB47: - 794:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_dma.c **** return hdma->State; - 1205 .loc 1 794 0 - 1206 .cfi_startproc - 1207 @ args = 0, pretend = 0, frame = 0 - 1208 @ frame_needed = 0, uses_anonymous_args = 0 - 1209 @ link register save eliminated. - 1210 .LVL100: - 795:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_dma.c **** } - 1211 .loc 1 795 0 - 1212 0000 2123 movs r3, #33 - 1213 0002 C05C ldrb r0, [r0, r3] - 1214 .LVL101: - 1215 0004 C0B2 uxtb r0, r0 - 796:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_dma.c **** - 1216 .loc 1 796 0 - 1217 @ sp needed - ARM GAS /tmp/cc3uJEB3.s page 41 - - - 1218 0006 7047 bx lr - 1219 .cfi_endproc - 1220 .LFE47: - 1222 .section .text.HAL_DMA_GetError,"ax",%progbits - 1223 .align 1 - 1224 .global HAL_DMA_GetError - 1225 .syntax unified - 1226 .code 16 - 1227 .thumb_func - 1228 .fpu softvfp - 1230 HAL_DMA_GetError: - 1231 .LFB48: - 805:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_dma.c **** return hdma->ErrorCode; - 1232 .loc 1 805 0 - 1233 .cfi_startproc - 1234 @ args = 0, pretend = 0, frame = 0 - 1235 @ frame_needed = 0, uses_anonymous_args = 0 - 1236 @ link register save eliminated. - 1237 .LVL102: - 806:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_dma.c **** } - 1238 .loc 1 806 0 - 1239 0000 806B ldr r0, [r0, #56] - 1240 .LVL103: - 807:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_dma.c **** - 1241 .loc 1 807 0 - 1242 @ sp needed - 1243 0002 7047 bx lr - 1244 .cfi_endproc - 1245 .LFE48: - 1247 .text - 1248 .Letext0: - 1249 .file 2 "/home/janhenrik/programme/gcc-arm-none-eabi-7-2018-q2-update/arm-none-eabi/include/machin - 1250 .file 3 "/home/janhenrik/programme/gcc-arm-none-eabi-7-2018-q2-update/arm-none-eabi/include/sys/_s - 1251 .file 4 "Drivers/CMSIS/Device/ST/STM32F0xx/Include/system_stm32f0xx.h" - 1252 .file 5 "Drivers/CMSIS/Device/ST/STM32F0xx/Include/stm32f072xb.h" - 1253 .file 6 "/home/janhenrik/programme/gcc-arm-none-eabi-7-2018-q2-update/arm-none-eabi/include/sys/lo - 1254 .file 7 "/home/janhenrik/programme/gcc-arm-none-eabi-7-2018-q2-update/arm-none-eabi/include/sys/_t - 1255 .file 8 "/home/janhenrik/programme/gcc-arm-none-eabi-7-2018-q2-update/lib/gcc/arm-none-eabi/7.3.1/ - 1256 .file 9 "/home/janhenrik/programme/gcc-arm-none-eabi-7-2018-q2-update/arm-none-eabi/include/sys/re - 1257 .file 10 "Drivers/CMSIS/Device/ST/STM32F0xx/Include/stm32f0xx.h" - 1258 .file 11 "Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_def.h" - 1259 .file 12 "Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_dma.h" - 1260 .file 13 "Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal.h" - ARM GAS /tmp/cc3uJEB3.s page 42 - - -DEFINED SYMBOLS - *ABS*:0000000000000000 stm32f0xx_hal_dma.c - /tmp/cc3uJEB3.s:16 .text.DMA_SetConfig:0000000000000000 $t - /tmp/cc3uJEB3.s:22 .text.DMA_SetConfig:0000000000000000 DMA_SetConfig - /tmp/cc3uJEB3.s:77 .text.DMA_CalcBaseAndBitshift:0000000000000000 $t - /tmp/cc3uJEB3.s:83 .text.DMA_CalcBaseAndBitshift:0000000000000000 DMA_CalcBaseAndBitshift - /tmp/cc3uJEB3.s:118 .text.DMA_CalcBaseAndBitshift:0000000000000020 $d - /tmp/cc3uJEB3.s:124 .text.HAL_DMA_Init:0000000000000000 $t - /tmp/cc3uJEB3.s:131 .text.HAL_DMA_Init:0000000000000000 HAL_DMA_Init - /tmp/cc3uJEB3.s:221 .text.HAL_DMA_Init:0000000000000054 $d - /tmp/cc3uJEB3.s:226 .text.HAL_DMA_DeInit:0000000000000000 $t - /tmp/cc3uJEB3.s:233 .text.HAL_DMA_DeInit:0000000000000000 HAL_DMA_DeInit - /tmp/cc3uJEB3.s:302 .text.HAL_DMA_Start:0000000000000000 $t - /tmp/cc3uJEB3.s:309 .text.HAL_DMA_Start:0000000000000000 HAL_DMA_Start - /tmp/cc3uJEB3.s:391 .text.HAL_DMA_Start_IT:0000000000000000 $t - /tmp/cc3uJEB3.s:398 .text.HAL_DMA_Start_IT:0000000000000000 HAL_DMA_Start_IT - /tmp/cc3uJEB3.s:506 .text.HAL_DMA_Abort:0000000000000000 $t - /tmp/cc3uJEB3.s:513 .text.HAL_DMA_Abort:0000000000000000 HAL_DMA_Abort - /tmp/cc3uJEB3.s:559 .text.HAL_DMA_Abort_IT:0000000000000000 $t - /tmp/cc3uJEB3.s:566 .text.HAL_DMA_Abort_IT:0000000000000000 HAL_DMA_Abort_IT - /tmp/cc3uJEB3.s:641 .text.HAL_DMA_PollForTransfer:0000000000000000 $t - /tmp/cc3uJEB3.s:648 .text.HAL_DMA_PollForTransfer:0000000000000000 HAL_DMA_PollForTransfer - /tmp/cc3uJEB3.s:824 .text.HAL_DMA_IRQHandler:0000000000000000 $t - /tmp/cc3uJEB3.s:831 .text.HAL_DMA_IRQHandler:0000000000000000 HAL_DMA_IRQHandler - /tmp/cc3uJEB3.s:979 .text.HAL_DMA_RegisterCallback:0000000000000000 $t - /tmp/cc3uJEB3.s:986 .text.HAL_DMA_RegisterCallback:0000000000000000 HAL_DMA_RegisterCallback - /tmp/cc3uJEB3.s:1080 .text.HAL_DMA_UnRegisterCallback:0000000000000000 $t - /tmp/cc3uJEB3.s:1087 .text.HAL_DMA_UnRegisterCallback:0000000000000000 HAL_DMA_UnRegisterCallback - /tmp/cc3uJEB3.s:1135 .rodata.HAL_DMA_UnRegisterCallback:0000000000000000 $d - /tmp/cc3uJEB3.s:1191 .text.HAL_DMA_UnRegisterCallback:000000000000005c $d - /tmp/cc3uJEB3.s:1196 .text.HAL_DMA_GetState:0000000000000000 $t - /tmp/cc3uJEB3.s:1203 .text.HAL_DMA_GetState:0000000000000000 HAL_DMA_GetState - /tmp/cc3uJEB3.s:1223 .text.HAL_DMA_GetError:0000000000000000 $t - /tmp/cc3uJEB3.s:1230 .text.HAL_DMA_GetError:0000000000000000 HAL_DMA_GetError - -UNDEFINED SYMBOLS -__aeabi_uidiv -HAL_GetTick diff --git a/firmware/build/stm32f0xx_hal_dma.o b/firmware/build/stm32f0xx_hal_dma.o deleted file mode 100644 index c6c585d..0000000 Binary files a/firmware/build/stm32f0xx_hal_dma.o and /dev/null differ diff --git a/firmware/build/stm32f0xx_hal_flash.d b/firmware/build/stm32f0xx_hal_flash.d deleted file mode 100644 index 4c0033e..0000000 --- a/firmware/build/stm32f0xx_hal_flash.d +++ /dev/null @@ -1,87 +0,0 @@ -build/stm32f0xx_hal_flash.o: \ - Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c \ - Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal.h \ - Inc/stm32f0xx_hal_conf.h \ - Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_rcc.h \ - Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_def.h \ - Drivers/CMSIS/Device/ST/STM32F0xx/Include/stm32f0xx.h \ - Drivers/CMSIS/Device/ST/STM32F0xx/Include/stm32f072xb.h \ - Drivers/CMSIS/Include/core_cm0.h Drivers/CMSIS/Include/core_cmInstr.h \ - Drivers/CMSIS/Include/cmsis_gcc.h Drivers/CMSIS/Include/core_cmFunc.h \ - Drivers/CMSIS/Device/ST/STM32F0xx/Include/system_stm32f0xx.h \ - Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_rcc_ex.h \ - Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_gpio.h \ - Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_gpio_ex.h \ - Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_dma.h \ - Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_dma_ex.h \ - Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_cortex.h \ - Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_adc.h \ - Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_adc_ex.h \ - Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_flash.h \ - Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_flash_ex.h \ - Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_i2c.h \ - Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_i2c_ex.h \ - Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_pcd.h \ - Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_pcd_ex.h \ - Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_pwr.h \ - Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_pwr_ex.h \ - Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_tim.h \ - Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_tim_ex.h - -Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal.h: - -Inc/stm32f0xx_hal_conf.h: - -Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_rcc.h: - -Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_def.h: - -Drivers/CMSIS/Device/ST/STM32F0xx/Include/stm32f0xx.h: - -Drivers/CMSIS/Device/ST/STM32F0xx/Include/stm32f072xb.h: - -Drivers/CMSIS/Include/core_cm0.h: - -Drivers/CMSIS/Include/core_cmInstr.h: - -Drivers/CMSIS/Include/cmsis_gcc.h: - -Drivers/CMSIS/Include/core_cmFunc.h: - -Drivers/CMSIS/Device/ST/STM32F0xx/Include/system_stm32f0xx.h: - -Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_rcc_ex.h: - -Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_gpio.h: - -Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_gpio_ex.h: - -Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_dma.h: - -Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_dma_ex.h: - -Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_cortex.h: - -Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_adc.h: - -Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_adc_ex.h: - -Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_flash.h: - -Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_flash_ex.h: - -Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_i2c.h: - -Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_i2c_ex.h: - -Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_pcd.h: - -Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_pcd_ex.h: - -Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_pwr.h: - -Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_pwr_ex.h: - -Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_tim.h: - -Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_tim_ex.h: diff --git a/firmware/build/stm32f0xx_hal_flash.lst b/firmware/build/stm32f0xx_hal_flash.lst deleted file mode 100644 index 8dd09ff..0000000 --- a/firmware/build/stm32f0xx_hal_flash.lst +++ /dev/null @@ -1,1989 +0,0 @@ -ARM GAS /tmp/ccdvQFDs.s page 1 - - - 1 .cpu cortex-m0 - 2 .eabi_attribute 20, 1 - 3 .eabi_attribute 21, 1 - 4 .eabi_attribute 23, 3 - 5 .eabi_attribute 24, 1 - 6 .eabi_attribute 25, 1 - 7 .eabi_attribute 26, 1 - 8 .eabi_attribute 30, 1 - 9 .eabi_attribute 34, 0 - 10 .eabi_attribute 18, 4 - 11 .file "stm32f0xx_hal_flash.c" - 12 .text - 13 .Ltext0: - 14 .cfi_sections .debug_frame - 15 .section .text.FLASH_Program_HalfWord,"ax",%progbits - 16 .align 1 - 17 .syntax unified - 18 .code 16 - 19 .thumb_func - 20 .fpu softvfp - 22 FLASH_Program_HalfWord: - 23 .LFB48: - 24 .file 1 "Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c" - 1:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** /** - 2:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** ****************************************************************************** - 3:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** * @file stm32f0xx_hal_flash.c - 4:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** * @author MCD Application Team - 5:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** * @brief FLASH HAL module driver. - 6:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** * This file provides firmware functions to manage the following - 7:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** * functionalities of the internal FLASH memory: - 8:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** * + Program operations functions - 9:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** * + Memory Control functions - 10:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** * + Peripheral State functions - 11:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** * - 12:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** @verbatim - 13:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** ============================================================================== - 14:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** ##### FLASH peripheral features ##### - 15:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** ============================================================================== - 16:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** [..] The Flash memory interface manages CPU AHB I-Code and D-Code accesses - 17:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** to the Flash memory. It implements the erase and program Flash memory operations - 18:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** and the read and write protection mechanisms. - 19:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** - 20:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** [..] The Flash memory interface accelerates code execution with a system of instruction - 21:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** prefetch. - 22:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** - 23:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** [..] The FLASH main features are: - 24:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** (+) Flash memory read operations - 25:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** (+) Flash memory program/erase operations - 26:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** (+) Read / write protections - 27:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** (+) Prefetch on I-Code - 28:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** (+) Option Bytes programming - 29:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** - 30:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** - 31:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** ##### How to use this driver ##### - 32:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** ============================================================================== - 33:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** [..] - 34:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** This driver provides functions and macros to configure and program the FLASH - ARM GAS /tmp/ccdvQFDs.s page 2 - - - 35:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** memory of all STM32F0xx devices. - 36:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** - 37:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** (#) FLASH Memory I/O Programming functions: this group includes all needed - 38:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** functions to erase and program the main memory: - 39:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** (++) Lock and Unlock the FLASH interface - 40:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** (++) Erase function: Erase page, erase all pages - 41:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** (++) Program functions: half word, word and doubleword - 42:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** (#) FLASH Option Bytes Programming functions: this group includes all needed - 43:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** functions to manage the Option Bytes: - 44:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** (++) Lock and Unlock the Option Bytes - 45:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** (++) Set/Reset the write protection - 46:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** (++) Set the Read protection Level - 47:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** (++) Program the user Option Bytes - 48:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** (++) Launch the Option Bytes loader - 49:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** (++) Erase Option Bytes - 50:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** (++) Program the data Option Bytes - 51:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** (++) Get the Write protection. - 52:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** (++) Get the user option bytes. - 53:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** - 54:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** (#) Interrupts and flags management functions : this group - 55:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** includes all needed functions to: - 56:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** (++) Handle FLASH interrupts - 57:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** (++) Wait for last FLASH operation according to its status - 58:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** (++) Get error flag status - 59:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** - 60:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** [..] In addition to these function, this driver includes a set of macros allowing - 61:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** to handle the following operations: - 62:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** - 63:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** (+) Set/Get the latency - 64:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** (+) Enable/Disable the prefetch buffer - 65:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** (+) Enable/Disable the FLASH interrupts - 66:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** (+) Monitor the FLASH flags status - 67:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** - 68:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** @endverbatim - 69:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** ****************************************************************************** - 70:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** * @attention - 71:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** * - 72:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** *

© COPYRIGHT(c) 2016 STMicroelectronics

- 73:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** * - 74:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** * Redistribution and use in source and binary forms, with or without modification, - 75:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** * are permitted provided that the following conditions are met: - 76:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** * 1. Redistributions of source code must retain the above copyright notice, - 77:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** * this list of conditions and the following disclaimer. - 78:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** * 2. Redistributions in binary form must reproduce the above copyright notice, - 79:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** * this list of conditions and the following disclaimer in the documentation - 80:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** * and/or other materials provided with the distribution. - 81:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** * 3. Neither the name of STMicroelectronics nor the names of its contributors - 82:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** * may be used to endorse or promote products derived from this software - 83:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** * without specific prior written permission. - 84:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** * - 85:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" - 86:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE - 87:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE - 88:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** * DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE - 89:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL - 90:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR - 91:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** * SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER - ARM GAS /tmp/ccdvQFDs.s page 3 - - - 92:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** * CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, - 93:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE - 94:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. - 95:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** * - 96:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** ****************************************************************************** - 97:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** */ - 98:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** - 99:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** /* Includes ------------------------------------------------------------------*/ - 100:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** #include "stm32f0xx_hal.h" - 101:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** - 102:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** /** @addtogroup STM32F0xx_HAL_Driver - 103:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** * @{ - 104:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** */ - 105:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** - 106:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** #ifdef HAL_FLASH_MODULE_ENABLED - 107:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** - 108:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** /** @defgroup FLASH FLASH - 109:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** * @brief FLASH HAL module driver - 110:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** * @{ - 111:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** */ - 112:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** - 113:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** /* Private typedef -----------------------------------------------------------*/ - 114:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** /* Private define ------------------------------------------------------------*/ - 115:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** /** @defgroup FLASH_Private_Constants FLASH Private Constants - 116:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** * @{ - 117:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** */ - 118:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** /** - 119:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** * @} - 120:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** */ - 121:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** - 122:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** /* Private macro ---------------------------- ---------------------------------*/ - 123:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** /** @defgroup FLASH_Private_Macros FLASH Private Macros - 124:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** * @{ - 125:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** */ - 126:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** - 127:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** /** - 128:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** * @} - 129:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** */ - 130:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** - 131:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** /* Private variables ---------------------------------------------------------*/ - 132:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** /** @defgroup FLASH_Private_Variables FLASH Private Variables - 133:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** * @{ - 134:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** */ - 135:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** /* Variables used for Erase pages under interruption*/ - 136:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** FLASH_ProcessTypeDef pFlash; - 137:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** /** - 138:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** * @} - 139:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** */ - 140:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** - 141:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** /* Private function prototypes -----------------------------------------------*/ - 142:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** /** @defgroup FLASH_Private_Functions FLASH Private Functions - 143:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** * @{ - 144:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** */ - 145:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** static void FLASH_Program_HalfWord(uint32_t Address, uint16_t Data); - 146:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** static void FLASH_SetErrorCode(void); - 147:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** extern void FLASH_PageErase(uint32_t PageAddress); - 148:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** /** - ARM GAS /tmp/ccdvQFDs.s page 4 - - - 149:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** * @} - 150:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** */ - 151:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** - 152:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** /* Exported functions ---------------------------------------------------------*/ - 153:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** /** @defgroup FLASH_Exported_Functions FLASH Exported Functions - 154:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** * @{ - 155:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** */ - 156:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** - 157:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** /** @defgroup FLASH_Exported_Functions_Group1 Programming operation functions - 158:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** * @brief Programming operation functions - 159:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** * - 160:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** @verbatim - 161:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** @endverbatim - 162:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** * @{ - 163:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** */ - 164:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** - 165:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** /** - 166:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** * @brief Program halfword, word or double word at a specified address - 167:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** * @note The function HAL_FLASH_Unlock() should be called before to unlock the FLASH interface - 168:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** * The function HAL_FLASH_Lock() should be called after to lock the FLASH interface - 169:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** * - 170:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** * @note If an erase and a program operations are requested simultaneously, - 171:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** * the erase operation is performed before the program one. - 172:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** * - 173:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** * @note FLASH should be previously erased before new programmation (only exception to this - 174:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** * is when 0x0000 is programmed) - 175:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** * - 176:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** * @param TypeProgram Indicate the way to program at a specified address. - 177:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** * This parameter can be a value of @ref FLASH_Type_Program - 178:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** * @param Address Specifie the address to be programmed. - 179:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** * @param Data Specifie the data to be programmed - 180:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** * - 181:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** * @retval HAL_StatusTypeDef HAL Status - 182:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** */ - 183:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** HAL_StatusTypeDef HAL_FLASH_Program(uint32_t TypeProgram, uint32_t Address, uint64_t Data) - 184:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** { - 185:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** HAL_StatusTypeDef status = HAL_ERROR; - 186:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** uint8_t index = 0U; - 187:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** uint8_t nbiterations = 0U; - 188:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** - 189:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** /* Process Locked */ - 190:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** __HAL_LOCK(&pFlash); - 191:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** - 192:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** /* Check the parameters */ - 193:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** assert_param(IS_FLASH_TYPEPROGRAM(TypeProgram)); - 194:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** assert_param(IS_FLASH_PROGRAM_ADDRESS(Address)); - 195:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** - 196:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** /* Wait for last operation to be completed */ - 197:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** status = FLASH_WaitForLastOperation(FLASH_TIMEOUT_VALUE); - 198:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** - 199:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** if(status == HAL_OK) - 200:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** { - 201:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** if(TypeProgram == FLASH_TYPEPROGRAM_HALFWORD) - 202:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** { - 203:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** /* Program halfword (16-bit) at a specified address. */ - 204:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** nbiterations = 1U; - 205:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** } - ARM GAS /tmp/ccdvQFDs.s page 5 - - - 206:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** else if(TypeProgram == FLASH_TYPEPROGRAM_WORD) - 207:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** { - 208:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** /* Program word (32-bit = 2*16-bit) at a specified address. */ - 209:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** nbiterations = 2U; - 210:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** } - 211:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** else - 212:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** { - 213:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** /* Program double word (64-bit = 4*16-bit) at a specified address. */ - 214:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** nbiterations = 4U; - 215:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** } - 216:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** - 217:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** for (index = 0U; index < nbiterations; index++) - 218:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** { - 219:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** FLASH_Program_HalfWord((Address + (2U*index)), (uint16_t)(Data >> (16U*index))); - 220:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** - 221:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** /* Wait for last operation to be completed */ - 222:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** status = FLASH_WaitForLastOperation(FLASH_TIMEOUT_VALUE); - 223:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** - 224:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** /* If the program operation is completed, disable the PG Bit */ - 225:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** CLEAR_BIT(FLASH->CR, FLASH_CR_PG); - 226:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** /* In case of error, stop programation procedure */ - 227:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** if (status != HAL_OK) - 228:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** { - 229:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** break; - 230:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** } - 231:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** } - 232:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** } - 233:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** - 234:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** /* Process Unlocked */ - 235:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** __HAL_UNLOCK(&pFlash); - 236:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** - 237:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** return status; - 238:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** } - 239:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** - 240:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** /** - 241:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** * @brief Program halfword, word or double word at a specified address with interrupt enabled. - 242:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** * @note The function HAL_FLASH_Unlock() should be called before to unlock the FLASH interface - 243:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** * The function HAL_FLASH_Lock() should be called after to lock the FLASH interface - 244:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** * - 245:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** * @note If an erase and a program operations are requested simultaneously, - 246:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** * the erase operation is performed before the program one. - 247:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** * - 248:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** * @param TypeProgram Indicate the way to program at a specified address. - 249:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** * This parameter can be a value of @ref FLASH_Type_Program - 250:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** * @param Address Specifie the address to be programmed. - 251:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** * @param Data Specifie the data to be programmed - 252:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** * - 253:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** * @retval HAL_StatusTypeDef HAL Status - 254:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** */ - 255:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** HAL_StatusTypeDef HAL_FLASH_Program_IT(uint32_t TypeProgram, uint32_t Address, uint64_t Data) - 256:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** { - 257:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** HAL_StatusTypeDef status = HAL_OK; - 258:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** - 259:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** /* Process Locked */ - 260:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** __HAL_LOCK(&pFlash); - 261:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** - 262:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** /* Check the parameters */ - ARM GAS /tmp/ccdvQFDs.s page 6 - - - 263:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** assert_param(IS_FLASH_TYPEPROGRAM(TypeProgram)); - 264:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** assert_param(IS_FLASH_PROGRAM_ADDRESS(Address)); - 265:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** - 266:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** /* Enable End of FLASH Operation and Error source interrupts */ - 267:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** __HAL_FLASH_ENABLE_IT(FLASH_IT_EOP | FLASH_IT_ERR); - 268:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** - 269:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** pFlash.Address = Address; - 270:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** pFlash.Data = Data; - 271:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** - 272:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** if(TypeProgram == FLASH_TYPEPROGRAM_HALFWORD) - 273:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** { - 274:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** pFlash.ProcedureOnGoing = FLASH_PROC_PROGRAMHALFWORD; - 275:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** /* Program halfword (16-bit) at a specified address. */ - 276:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** pFlash.DataRemaining = 1U; - 277:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** } - 278:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** else if(TypeProgram == FLASH_TYPEPROGRAM_WORD) - 279:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** { - 280:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** pFlash.ProcedureOnGoing = FLASH_PROC_PROGRAMWORD; - 281:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** /* Program word (32-bit : 2*16-bit) at a specified address. */ - 282:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** pFlash.DataRemaining = 2U; - 283:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** } - 284:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** else - 285:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** { - 286:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** pFlash.ProcedureOnGoing = FLASH_PROC_PROGRAMDOUBLEWORD; - 287:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** /* Program double word (64-bit : 4*16-bit) at a specified address. */ - 288:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** pFlash.DataRemaining = 4U; - 289:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** } - 290:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** - 291:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** /* Program halfword (16-bit) at a specified address. */ - 292:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** FLASH_Program_HalfWord(Address, (uint16_t)Data); - 293:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** - 294:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** return status; - 295:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** } - 296:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** - 297:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** /** - 298:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** * @brief This function handles FLASH interrupt request. - 299:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** * @retval None - 300:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** */ - 301:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** void HAL_FLASH_IRQHandler(void) - 302:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** { - 303:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** uint32_t addresstmp = 0U; - 304:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** - 305:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** /* Check FLASH operation error flags */ - 306:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** if(__HAL_FLASH_GET_FLAG(FLASH_FLAG_WRPERR) ||__HAL_FLASH_GET_FLAG(FLASH_FLAG_PGERR)) - 307:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** { - 308:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** /* Return the faulty address */ - 309:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** addresstmp = pFlash.Address; - 310:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** /* Reset address */ - 311:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** pFlash.Address = 0xFFFFFFFFU; - 312:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** - 313:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** /* Save the Error code */ - 314:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** FLASH_SetErrorCode(); - 315:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** - 316:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** /* FLASH error interrupt user callback */ - 317:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** HAL_FLASH_OperationErrorCallback(addresstmp); - 318:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** - 319:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** /* Stop the procedure ongoing */ - ARM GAS /tmp/ccdvQFDs.s page 7 - - - 320:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** pFlash.ProcedureOnGoing = FLASH_PROC_NONE; - 321:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** } - 322:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** - 323:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** /* Check FLASH End of Operation flag */ - 324:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** if(__HAL_FLASH_GET_FLAG(FLASH_FLAG_EOP)) - 325:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** { - 326:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** /* Clear FLASH End of Operation pending bit */ - 327:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** __HAL_FLASH_CLEAR_FLAG(FLASH_FLAG_EOP); - 328:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** - 329:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** /* Process can continue only if no error detected */ - 330:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** if(pFlash.ProcedureOnGoing != FLASH_PROC_NONE) - 331:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** { - 332:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** if(pFlash.ProcedureOnGoing == FLASH_PROC_PAGEERASE) - 333:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** { - 334:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** /* Nb of pages to erased can be decreased */ - 335:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** pFlash.DataRemaining--; - 336:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** - 337:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** /* Check if there are still pages to erase */ - 338:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** if(pFlash.DataRemaining != 0U) - 339:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** { - 340:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** addresstmp = pFlash.Address; - 341:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** /*Indicate user which sector has been erased */ - 342:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** HAL_FLASH_EndOfOperationCallback(addresstmp); - 343:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** - 344:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** /*Increment sector number*/ - 345:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** addresstmp = pFlash.Address + FLASH_PAGE_SIZE; - 346:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** pFlash.Address = addresstmp; - 347:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** - 348:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** /* If the erase operation is completed, disable the PER Bit */ - 349:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** CLEAR_BIT(FLASH->CR, FLASH_CR_PER); - 350:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** - 351:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** FLASH_PageErase(addresstmp); - 352:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** } - 353:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** else - 354:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** { - 355:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** /* No more pages to Erase, user callback can be called. */ - 356:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** /* Reset Sector and stop Erase pages procedure */ - 357:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** pFlash.Address = addresstmp = 0xFFFFFFFFU; - 358:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** pFlash.ProcedureOnGoing = FLASH_PROC_NONE; - 359:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** /* FLASH EOP interrupt user callback */ - 360:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** HAL_FLASH_EndOfOperationCallback(addresstmp); - 361:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** } - 362:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** } - 363:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** else if(pFlash.ProcedureOnGoing == FLASH_PROC_MASSERASE) - 364:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** { - 365:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** /* Operation is completed, disable the MER Bit */ - 366:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** CLEAR_BIT(FLASH->CR, FLASH_CR_MER); - 367:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** - 368:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** /* MassErase ended. Return the selected bank */ - 369:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** /* FLASH EOP interrupt user callback */ - 370:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** HAL_FLASH_EndOfOperationCallback(0); - 371:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** - 372:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** /* Stop Mass Erase procedure*/ - 373:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** pFlash.ProcedureOnGoing = FLASH_PROC_NONE; - 374:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** } - 375:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** else - 376:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** { - ARM GAS /tmp/ccdvQFDs.s page 8 - - - 377:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** /* Nb of 16-bit data to program can be decreased */ - 378:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** pFlash.DataRemaining--; - 379:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** - 380:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** /* Check if there are still 16-bit data to program */ - 381:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** if(pFlash.DataRemaining != 0U) - 382:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** { - 383:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** /* Increment address to 16-bit */ - 384:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** pFlash.Address += 2; - 385:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** addresstmp = pFlash.Address; - 386:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** - 387:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** /* Shift to have next 16-bit data */ - 388:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** pFlash.Data = (pFlash.Data >> 16U); - 389:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** - 390:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** /* Operation is completed, disable the PG Bit */ - 391:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** CLEAR_BIT(FLASH->CR, FLASH_CR_PG); - 392:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** - 393:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** /*Program halfword (16-bit) at a specified address.*/ - 394:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** FLASH_Program_HalfWord(addresstmp, (uint16_t)pFlash.Data); - 395:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** } - 396:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** else - 397:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** { - 398:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** /* Program ended. Return the selected address */ - 399:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** /* FLASH EOP interrupt user callback */ - 400:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** if (pFlash.ProcedureOnGoing == FLASH_PROC_PROGRAMHALFWORD) - 401:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** { - 402:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** HAL_FLASH_EndOfOperationCallback(pFlash.Address); - 403:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** } - 404:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** else if (pFlash.ProcedureOnGoing == FLASH_PROC_PROGRAMWORD) - 405:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** { - 406:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** HAL_FLASH_EndOfOperationCallback(pFlash.Address - 2U); - 407:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** } - 408:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** else - 409:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** { - 410:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** HAL_FLASH_EndOfOperationCallback(pFlash.Address - 6U); - 411:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** } - 412:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** - 413:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** /* Reset Address and stop Program procedure */ - 414:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** pFlash.Address = 0xFFFFFFFFU; - 415:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** pFlash.ProcedureOnGoing = FLASH_PROC_NONE; - 416:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** } - 417:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** } - 418:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** } - 419:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** } - 420:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** - 421:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** - 422:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** if(pFlash.ProcedureOnGoing == FLASH_PROC_NONE) - 423:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** { - 424:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** /* Operation is completed, disable the PG, PER and MER Bits */ - 425:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** CLEAR_BIT(FLASH->CR, (FLASH_CR_PG | FLASH_CR_PER | FLASH_CR_MER)); - 426:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** - 427:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** /* Disable End of FLASH Operation and Error source interrupts */ - 428:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** __HAL_FLASH_DISABLE_IT(FLASH_IT_EOP | FLASH_IT_ERR); - 429:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** - 430:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** /* Process Unlocked */ - 431:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** __HAL_UNLOCK(&pFlash); - 432:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** } - 433:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** } - ARM GAS /tmp/ccdvQFDs.s page 9 - - - 434:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** - 435:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** /** - 436:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** * @brief FLASH end of operation interrupt callback - 437:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** * @param ReturnValue The value saved in this parameter depends on the ongoing procedure - 438:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** * - Mass Erase: No return value expected - 439:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** * - Pages Erase: Address of the page which has been erased - 440:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** * (if 0xFFFFFFFF, it means that all the selected pages have been erased) - 441:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** * - Program: Address which was selected for data program - 442:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** * @retval none - 443:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** */ - 444:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** __weak void HAL_FLASH_EndOfOperationCallback(uint32_t ReturnValue) - 445:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** { - 446:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** /* Prevent unused argument(s) compilation warning */ - 447:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** UNUSED(ReturnValue); - 448:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** - 449:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** /* NOTE : This function Should not be modified, when the callback is needed, - 450:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** the HAL_FLASH_EndOfOperationCallback could be implemented in the user file - 451:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** */ - 452:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** } - 453:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** - 454:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** /** - 455:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** * @brief FLASH operation error interrupt callback - 456:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** * @param ReturnValue The value saved in this parameter depends on the ongoing procedure - 457:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** * - Mass Erase: No return value expected - 458:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** * - Pages Erase: Address of the page which returned an error - 459:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** * - Program: Address which was selected for data program - 460:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** * @retval none - 461:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** */ - 462:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** __weak void HAL_FLASH_OperationErrorCallback(uint32_t ReturnValue) - 463:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** { - 464:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** /* Prevent unused argument(s) compilation warning */ - 465:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** UNUSED(ReturnValue); - 466:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** - 467:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** /* NOTE : This function Should not be modified, when the callback is needed, - 468:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** the HAL_FLASH_OperationErrorCallback could be implemented in the user file - 469:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** */ - 470:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** } - 471:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** - 472:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** /** - 473:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** * @} - 474:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** */ - 475:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** - 476:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** /** @defgroup FLASH_Exported_Functions_Group2 Peripheral Control functions - 477:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** * @brief management functions - 478:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** * - 479:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** @verbatim - 480:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** =============================================================================== - 481:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** ##### Peripheral Control functions ##### - 482:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** =============================================================================== - 483:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** [..] - 484:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** This subsection provides a set of functions allowing to control the FLASH - 485:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** memory operations. - 486:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** - 487:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** @endverbatim - 488:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** * @{ - 489:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** */ - 490:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** - ARM GAS /tmp/ccdvQFDs.s page 10 - - - 491:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** /** - 492:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** * @brief Unlock the FLASH control register access - 493:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** * @retval HAL Status - 494:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** */ - 495:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** HAL_StatusTypeDef HAL_FLASH_Unlock(void) - 496:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** { - 497:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** HAL_StatusTypeDef status = HAL_OK; - 498:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** - 499:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** if(READ_BIT(FLASH->CR, FLASH_CR_LOCK) != RESET) - 500:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** { - 501:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** /* Authorize the FLASH Registers access */ - 502:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** WRITE_REG(FLASH->KEYR, FLASH_KEY1); - 503:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** WRITE_REG(FLASH->KEYR, FLASH_KEY2); - 504:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** - 505:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** /* Verify Flash is unlocked */ - 506:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** if(READ_BIT(FLASH->CR, FLASH_CR_LOCK) != RESET) - 507:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** { - 508:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** status = HAL_ERROR; - 509:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** } - 510:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** } - 511:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** - 512:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** return status; - 513:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** } - 514:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** - 515:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** /** - 516:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** * @brief Locks the FLASH control register access - 517:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** * @retval HAL Status - 518:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** */ - 519:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** HAL_StatusTypeDef HAL_FLASH_Lock(void) - 520:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** { - 521:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** /* Set the LOCK Bit to lock the FLASH Registers access */ - 522:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** SET_BIT(FLASH->CR, FLASH_CR_LOCK); - 523:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** - 524:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** return HAL_OK; - 525:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** } - 526:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** - 527:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** /** - 528:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** * @brief Unlock the FLASH Option Control Registers access. - 529:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** * @retval HAL Status - 530:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** */ - 531:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** HAL_StatusTypeDef HAL_FLASH_OB_Unlock(void) - 532:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** { - 533:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** if (HAL_IS_BIT_CLR(FLASH->CR, FLASH_CR_OPTWRE)) - 534:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** { - 535:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** /* Authorizes the Option Byte register programming */ - 536:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** WRITE_REG(FLASH->OPTKEYR, FLASH_OPTKEY1); - 537:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** WRITE_REG(FLASH->OPTKEYR, FLASH_OPTKEY2); - 538:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** } - 539:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** else - 540:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** { - 541:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** return HAL_ERROR; - 542:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** } - 543:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** - 544:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** return HAL_OK; - 545:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** } - 546:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** - 547:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** /** - ARM GAS /tmp/ccdvQFDs.s page 11 - - - 548:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** * @brief Lock the FLASH Option Control Registers access. - 549:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** * @retval HAL Status - 550:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** */ - 551:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** HAL_StatusTypeDef HAL_FLASH_OB_Lock(void) - 552:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** { - 553:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** /* Clear the OPTWRE Bit to lock the FLASH Option Byte Registers access */ - 554:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** CLEAR_BIT(FLASH->CR, FLASH_CR_OPTWRE); - 555:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** - 556:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** return HAL_OK; - 557:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** } - 558:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** - 559:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** /** - 560:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** * @brief Launch the option byte loading. - 561:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** * @note This function will reset automatically the MCU. - 562:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** * @retval HAL Status - 563:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** */ - 564:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** HAL_StatusTypeDef HAL_FLASH_OB_Launch(void) - 565:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** { - 566:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** /* Set the OBL_Launch bit to launch the option byte loading */ - 567:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** SET_BIT(FLASH->CR, FLASH_CR_OBL_LAUNCH); - 568:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** - 569:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** /* Wait for last operation to be completed */ - 570:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** return(FLASH_WaitForLastOperation(FLASH_TIMEOUT_VALUE)); - 571:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** } - 572:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** - 573:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** /** - 574:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** * @} - 575:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** */ - 576:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** - 577:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** /** @defgroup FLASH_Exported_Functions_Group3 Peripheral errors functions - 578:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** * @brief Peripheral errors functions - 579:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** * - 580:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** @verbatim - 581:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** =============================================================================== - 582:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** ##### Peripheral Errors functions ##### - 583:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** =============================================================================== - 584:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** [..] - 585:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** This subsection permit to get in run-time errors of the FLASH peripheral. - 586:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** - 587:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** @endverbatim - 588:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** * @{ - 589:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** */ - 590:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** - 591:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** /** - 592:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** * @brief Get the specific FLASH error flag. - 593:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** * @retval FLASH_ErrorCode The returned value can be: - 594:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** * @ref FLASH_Error_Codes - 595:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** */ - 596:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** uint32_t HAL_FLASH_GetError(void) - 597:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** { - 598:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** return pFlash.ErrorCode; - 599:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** } - 600:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** - 601:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** /** - 602:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** * @} - 603:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** */ - 604:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** - ARM GAS /tmp/ccdvQFDs.s page 12 - - - 605:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** /** - 606:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** * @} - 607:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** */ - 608:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** - 609:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** /** @addtogroup FLASH_Private_Functions - 610:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** * @{ - 611:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** */ - 612:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** - 613:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** /** - 614:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** * @brief Program a half-word (16-bit) at a specified address. - 615:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** * @param Address specify the address to be programmed. - 616:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** * @param Data specify the data to be programmed. - 617:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** * @retval None - 618:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** */ - 619:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** static void FLASH_Program_HalfWord(uint32_t Address, uint16_t Data) - 620:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** { - 25 .loc 1 620 0 - 26 .cfi_startproc - 27 @ args = 0, pretend = 0, frame = 0 - 28 @ frame_needed = 0, uses_anonymous_args = 0 - 29 .LVL0: - 30 0000 10B5 push {r4, lr} - 31 .LCFI0: - 32 .cfi_def_cfa_offset 8 - 33 .cfi_offset 4, -8 - 34 .cfi_offset 14, -4 - 621:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** /* Clean the error context */ - 622:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** pFlash.ErrorCode = HAL_FLASH_ERROR_NONE; - 35 .loc 1 622 0 - 36 0002 054B ldr r3, .L2 - 37 0004 0022 movs r2, #0 - 38 0006 DA61 str r2, [r3, #28] - 623:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** - 624:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** /* Proceed to program the new data */ - 625:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** SET_BIT(FLASH->CR, FLASH_CR_PG); - 39 .loc 1 625 0 - 40 0008 044A ldr r2, .L2+4 - 41 000a 1369 ldr r3, [r2, #16] - 42 000c 0124 movs r4, #1 - 43 000e 2343 orrs r3, r4 - 44 0010 1361 str r3, [r2, #16] - 626:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** - 627:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** /* Write data in the address */ - 628:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** *(__IO uint16_t*)Address = Data; - 45 .loc 1 628 0 - 46 0012 0180 strh r1, [r0] - 629:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** } - 47 .loc 1 629 0 - 48 @ sp needed - 49 0014 10BD pop {r4, pc} - 50 .L3: - 51 0016 C046 .align 2 - 52 .L2: - 53 0018 00000000 .word pFlash - 54 001c 00200240 .word 1073881088 - 55 .cfi_endproc - 56 .LFE48: - ARM GAS /tmp/ccdvQFDs.s page 13 - - - 58 .section .text.FLASH_SetErrorCode,"ax",%progbits - 59 .align 1 - 60 .syntax unified - 61 .code 16 - 62 .thumb_func - 63 .fpu softvfp - 65 FLASH_SetErrorCode: - 66 .LFB50: - 630:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** - 631:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** /** - 632:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** * @brief Wait for a FLASH operation to complete. - 633:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** * @param Timeout maximum flash operation timeout - 634:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** * @retval HAL Status - 635:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** */ - 636:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** HAL_StatusTypeDef FLASH_WaitForLastOperation(uint32_t Timeout) - 637:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** { - 638:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** /* Wait for the FLASH operation to complete by polling on BUSY flag to be reset. - 639:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** Even if the FLASH operation fails, the BUSY flag will be reset and an error - 640:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** flag will be set */ - 641:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** - 642:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** uint32_t tickstart = HAL_GetTick(); - 643:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** - 644:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** while(__HAL_FLASH_GET_FLAG(FLASH_FLAG_BSY)) - 645:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** { - 646:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** if (Timeout != HAL_MAX_DELAY) - 647:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** { - 648:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** if((Timeout == 0U) || ((HAL_GetTick()-tickstart) > Timeout)) - 649:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** { - 650:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** return HAL_TIMEOUT; - 651:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** } - 652:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** } - 653:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** } - 654:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** - 655:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** /* Check FLASH End of Operation flag */ - 656:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** if (__HAL_FLASH_GET_FLAG(FLASH_FLAG_EOP)) - 657:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** { - 658:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** /* Clear FLASH End of Operation pending bit */ - 659:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** __HAL_FLASH_CLEAR_FLAG(FLASH_FLAG_EOP); - 660:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** } - 661:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** - 662:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** if(__HAL_FLASH_GET_FLAG(FLASH_FLAG_WRPERR) || - 663:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** __HAL_FLASH_GET_FLAG(FLASH_FLAG_PGERR)) - 664:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** { - 665:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** /*Save the error code*/ - 666:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** FLASH_SetErrorCode(); - 667:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** return HAL_ERROR; - 668:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** } - 669:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** - 670:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** /* There is no error flag set */ - 671:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** return HAL_OK; - 672:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** } - 673:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** - 674:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** - 675:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** /** - 676:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** * @brief Set the specific FLASH error flag. - 677:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** * @retval None - 678:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** */ - ARM GAS /tmp/ccdvQFDs.s page 14 - - - 679:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** static void FLASH_SetErrorCode(void) - 680:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** { - 67 .loc 1 680 0 - 68 .cfi_startproc - 69 @ args = 0, pretend = 0, frame = 0 - 70 @ frame_needed = 0, uses_anonymous_args = 0 - 71 @ link register save eliminated. - 72 .LVL1: - 681:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** uint32_t flags = 0U; - 682:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** - 683:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** if(__HAL_FLASH_GET_FLAG(FLASH_FLAG_WRPERR)) - 73 .loc 1 683 0 - 74 0000 0C4B ldr r3, .L8 - 75 0002 DB68 ldr r3, [r3, #12] - 76 0004 DB06 lsls r3, r3, #27 - 77 0006 13D5 bpl .L7 - 684:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** { - 685:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** pFlash.ErrorCode |= HAL_FLASH_ERROR_WRP; - 78 .loc 1 685 0 - 79 0008 0B4A ldr r2, .L8+4 - 80 000a D369 ldr r3, [r2, #28] - 81 000c 0221 movs r1, #2 - 82 000e 0B43 orrs r3, r1 - 83 0010 D361 str r3, [r2, #28] - 84 .LVL2: - 686:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** flags |= FLASH_FLAG_WRPERR; - 85 .loc 1 686 0 - 86 0012 1023 movs r3, #16 - 87 .LVL3: - 88 .L5: - 687:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** } - 688:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** if(__HAL_FLASH_GET_FLAG(FLASH_FLAG_PGERR)) - 89 .loc 1 688 0 - 90 0014 074A ldr r2, .L8 - 91 0016 D268 ldr r2, [r2, #12] - 92 0018 5207 lsls r2, r2, #29 - 93 001a 06D5 bpl .L6 - 689:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** { - 690:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** pFlash.ErrorCode |= HAL_FLASH_ERROR_PROG; - 94 .loc 1 690 0 - 95 001c 0649 ldr r1, .L8+4 - 96 001e CA69 ldr r2, [r1, #28] - 97 0020 0120 movs r0, #1 - 98 0022 0243 orrs r2, r0 - 99 0024 CA61 str r2, [r1, #28] - 691:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** flags |= FLASH_FLAG_PGERR; - 100 .loc 1 691 0 - 101 0026 0422 movs r2, #4 - 102 0028 1343 orrs r3, r2 - 103 .LVL4: - 104 .L6: - 692:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** } - 693:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** /* Clear FLASH error pending bits */ - 694:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** __HAL_FLASH_CLEAR_FLAG(flags); - 105 .loc 1 694 0 - 106 002a 024A ldr r2, .L8 - 107 002c D360 str r3, [r2, #12] - ARM GAS /tmp/ccdvQFDs.s page 15 - - - 695:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** } - 108 .loc 1 695 0 - 109 @ sp needed - 110 002e 7047 bx lr - 111 .LVL5: - 112 .L7: - 681:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** - 113 .loc 1 681 0 - 114 0030 0023 movs r3, #0 - 115 0032 EFE7 b .L5 - 116 .L9: - 117 .align 2 - 118 .L8: - 119 0034 00200240 .word 1073881088 - 120 0038 00000000 .word pFlash - 121 .cfi_endproc - 122 .LFE50: - 124 .section .text.HAL_FLASH_Program_IT,"ax",%progbits - 125 .align 1 - 126 .global HAL_FLASH_Program_IT - 127 .syntax unified - 128 .code 16 - 129 .thumb_func - 130 .fpu softvfp - 132 HAL_FLASH_Program_IT: - 133 .LFB38: - 256:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** HAL_StatusTypeDef status = HAL_OK; - 134 .loc 1 256 0 - 135 .cfi_startproc - 136 @ args = 0, pretend = 0, frame = 0 - 137 @ frame_needed = 0, uses_anonymous_args = 0 - 138 .LVL6: - 139 0000 F8B5 push {r3, r4, r5, r6, r7, lr} - 140 .LCFI1: - 141 .cfi_def_cfa_offset 24 - 142 .cfi_offset 3, -24 - 143 .cfi_offset 4, -20 - 144 .cfi_offset 5, -16 - 145 .cfi_offset 6, -12 - 146 .cfi_offset 7, -8 - 147 .cfi_offset 14, -4 - 148 0002 0C00 movs r4, r1 - 149 .LVL7: - 260:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** - 150 .loc 1 260 0 - 151 0004 1549 ldr r1, .L18 - 152 .LVL8: - 153 0006 097E ldrb r1, [r1, #24] - 154 0008 0129 cmp r1, #1 - 155 000a 25D0 beq .L15 - 260:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** - 156 .loc 1 260 0 is_stmt 0 discriminator 2 - 157 000c 1349 ldr r1, .L18 - 158 000e 0125 movs r5, #1 - 159 0010 0D76 strb r5, [r1, #24] - 267:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** - 160 .loc 1 267 0 is_stmt 1 discriminator 2 - ARM GAS /tmp/ccdvQFDs.s page 16 - - - 161 0012 134E ldr r6, .L18+4 - 162 0014 3769 ldr r7, [r6, #16] - 163 0016 A025 movs r5, #160 - 164 0018 6D01 lsls r5, r5, #5 - 165 001a 3D43 orrs r5, r7 - 166 001c 3561 str r5, [r6, #16] - 269:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** pFlash.Data = Data; - 167 .loc 1 269 0 discriminator 2 - 168 001e 8C60 str r4, [r1, #8] - 270:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** - 169 .loc 1 270 0 discriminator 2 - 170 0020 0A61 str r2, [r1, #16] - 171 0022 4B61 str r3, [r1, #20] - 272:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** { - 172 .loc 1 272 0 discriminator 2 - 173 0024 0128 cmp r0, #1 - 174 0026 0CD0 beq .L16 - 278:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** { - 175 .loc 1 278 0 - 176 0028 0228 cmp r0, #2 - 177 002a 0FD0 beq .L17 - 286:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** /* Program double word (64-bit : 4*16-bit) at a specified address. */ - 178 .loc 1 286 0 - 179 002c 0B49 ldr r1, .L18 - 180 002e 0520 movs r0, #5 - 181 .LVL9: - 182 0030 0870 strb r0, [r1] - 288:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** } - 183 .loc 1 288 0 - 184 0032 0138 subs r0, r0, #1 - 185 0034 4860 str r0, [r1, #4] - 186 .L13: - 292:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** - 187 .loc 1 292 0 - 188 0036 91B2 uxth r1, r2 - 189 0038 2000 movs r0, r4 - 190 003a FFF7FEFF bl FLASH_Program_HalfWord - 191 .LVL10: - 294:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** } - 192 .loc 1 294 0 - 193 003e 0020 movs r0, #0 - 194 .L11: - 295:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** - 195 .loc 1 295 0 - 196 @ sp needed - 197 .LVL11: - 198 0040 F8BD pop {r3, r4, r5, r6, r7, pc} - 199 .LVL12: - 200 .L16: - 274:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** /* Program halfword (16-bit) at a specified address. */ - 201 .loc 1 274 0 - 202 0042 0230 adds r0, r0, #2 - 203 .LVL13: - 204 0044 0870 strb r0, [r1] - 276:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** } - 205 .loc 1 276 0 - 206 0046 0238 subs r0, r0, #2 - ARM GAS /tmp/ccdvQFDs.s page 17 - - - 207 .LVL14: - 208 0048 4860 str r0, [r1, #4] - 209 004a F4E7 b .L13 - 210 .L17: - 280:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** /* Program word (32-bit : 2*16-bit) at a specified address. */ - 211 .loc 1 280 0 - 212 004c 0349 ldr r1, .L18 - 213 004e 0230 adds r0, r0, #2 - 214 .LVL15: - 215 0050 0870 strb r0, [r1] - 282:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** } - 216 .loc 1 282 0 - 217 0052 0238 subs r0, r0, #2 - 218 .LVL16: - 219 0054 4860 str r0, [r1, #4] - 220 0056 EEE7 b .L13 - 221 .L15: - 260:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** - 222 .loc 1 260 0 - 223 0058 0220 movs r0, #2 - 224 .LVL17: - 225 005a F1E7 b .L11 - 226 .L19: - 227 .align 2 - 228 .L18: - 229 005c 00000000 .word pFlash - 230 0060 00200240 .word 1073881088 - 231 .cfi_endproc - 232 .LFE38: - 234 .section .text.HAL_FLASH_EndOfOperationCallback,"ax",%progbits - 235 .align 1 - 236 .weak HAL_FLASH_EndOfOperationCallback - 237 .syntax unified - 238 .code 16 - 239 .thumb_func - 240 .fpu softvfp - 242 HAL_FLASH_EndOfOperationCallback: - 243 .LFB40: - 445:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** /* Prevent unused argument(s) compilation warning */ - 244 .loc 1 445 0 - 245 .cfi_startproc - 246 @ args = 0, pretend = 0, frame = 0 - 247 @ frame_needed = 0, uses_anonymous_args = 0 - 248 @ link register save eliminated. - 249 .LVL18: - 452:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** - 250 .loc 1 452 0 - 251 @ sp needed - 252 0000 7047 bx lr - 253 .cfi_endproc - 254 .LFE40: - 256 .section .text.HAL_FLASH_OperationErrorCallback,"ax",%progbits - 257 .align 1 - 258 .weak HAL_FLASH_OperationErrorCallback - 259 .syntax unified - 260 .code 16 - 261 .thumb_func - ARM GAS /tmp/ccdvQFDs.s page 18 - - - 262 .fpu softvfp - 264 HAL_FLASH_OperationErrorCallback: - 265 .LFB41: - 463:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** /* Prevent unused argument(s) compilation warning */ - 266 .loc 1 463 0 - 267 .cfi_startproc - 268 @ args = 0, pretend = 0, frame = 0 - 269 @ frame_needed = 0, uses_anonymous_args = 0 - 270 @ link register save eliminated. - 271 .LVL19: - 470:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** - 272 .loc 1 470 0 - 273 @ sp needed - 274 0000 7047 bx lr - 275 .cfi_endproc - 276 .LFE41: - 278 .section .text.HAL_FLASH_IRQHandler,"ax",%progbits - 279 .align 1 - 280 .global HAL_FLASH_IRQHandler - 281 .syntax unified - 282 .code 16 - 283 .thumb_func - 284 .fpu softvfp - 286 HAL_FLASH_IRQHandler: - 287 .LFB39: - 302:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** uint32_t addresstmp = 0U; - 288 .loc 1 302 0 - 289 .cfi_startproc - 290 @ args = 0, pretend = 0, frame = 0 - 291 @ frame_needed = 0, uses_anonymous_args = 0 - 292 0000 F8B5 push {r3, r4, r5, r6, r7, lr} - 293 .LCFI2: - 294 .cfi_def_cfa_offset 24 - 295 .cfi_offset 3, -24 - 296 .cfi_offset 4, -20 - 297 .cfi_offset 5, -16 - 298 .cfi_offset 6, -12 - 299 .cfi_offset 7, -8 - 300 .cfi_offset 14, -4 - 301 .LVL20: - 306:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** { - 302 .loc 1 306 0 - 303 0002 514B ldr r3, .L39 - 304 0004 DB68 ldr r3, [r3, #12] - 305 0006 DB06 lsls r3, r3, #27 - 306 0008 03D4 bmi .L23 - 306:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** { - 307 .loc 1 306 0 is_stmt 0 discriminator 1 - 308 000a 4F4B ldr r3, .L39 - 309 000c DB68 ldr r3, [r3, #12] - 310 000e 5B07 lsls r3, r3, #29 - 311 0010 0BD5 bpl .L24 - 312 .L23: - 309:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** /* Reset address */ - 313 .loc 1 309 0 is_stmt 1 - 314 0012 4E4C ldr r4, .L39+4 - 315 0014 A568 ldr r5, [r4, #8] - ARM GAS /tmp/ccdvQFDs.s page 19 - - - 316 .LVL21: - 311:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** - 317 .loc 1 311 0 - 318 0016 0123 movs r3, #1 - 319 0018 5B42 rsbs r3, r3, #0 - 320 001a A360 str r3, [r4, #8] - 314:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** - 321 .loc 1 314 0 - 322 001c FFF7FEFF bl FLASH_SetErrorCode - 323 .LVL22: - 317:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** - 324 .loc 1 317 0 - 325 0020 2800 movs r0, r5 - 326 0022 FFF7FEFF bl HAL_FLASH_OperationErrorCallback - 327 .LVL23: - 320:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** } - 328 .loc 1 320 0 - 329 0026 0023 movs r3, #0 - 330 0028 2370 strb r3, [r4] - 331 .LVL24: - 332 .L24: - 324:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** { - 333 .loc 1 324 0 - 334 002a 474B ldr r3, .L39 - 335 002c DB68 ldr r3, [r3, #12] - 336 002e 9B06 lsls r3, r3, #26 - 337 0030 28D5 bpl .L25 - 327:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** - 338 .loc 1 327 0 - 339 0032 454B ldr r3, .L39 - 340 0034 2022 movs r2, #32 - 341 0036 DA60 str r2, [r3, #12] - 330:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** { - 342 .loc 1 330 0 - 343 0038 444B ldr r3, .L39+4 - 344 003a 1B78 ldrb r3, [r3] - 345 003c 002B cmp r3, #0 - 346 003e 21D0 beq .L25 - 332:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** { - 347 .loc 1 332 0 - 348 0040 424B ldr r3, .L39+4 - 349 0042 1B78 ldrb r3, [r3] - 350 0044 012B cmp r3, #1 - 351 0046 2ED0 beq .L34 - 363:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** { - 352 .loc 1 363 0 - 353 0048 404B ldr r3, .L39+4 - 354 004a 1B78 ldrb r3, [r3] - 355 004c 022B cmp r3, #2 - 356 004e 4CD0 beq .L35 - 378:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** - 357 .loc 1 378 0 - 358 0050 3E4B ldr r3, .L39+4 - 359 0052 5A68 ldr r2, [r3, #4] - 360 0054 013A subs r2, r2, #1 - 361 0056 5A60 str r2, [r3, #4] - 381:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** { - ARM GAS /tmp/ccdvQFDs.s page 20 - - - 362 .loc 1 381 0 - 363 0058 5B68 ldr r3, [r3, #4] - 364 005a 002B cmp r3, #0 - 365 005c 51D1 bne .L36 - 400:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** { - 366 .loc 1 400 0 - 367 005e 3B4B ldr r3, .L39+4 - 368 0060 1B78 ldrb r3, [r3] - 369 0062 032B cmp r3, #3 - 370 0064 65D0 beq .L37 - 404:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** { - 371 .loc 1 404 0 - 372 0066 394B ldr r3, .L39+4 - 373 0068 1B78 ldrb r3, [r3] - 374 006a 042B cmp r3, #4 - 375 006c 66D0 beq .L38 - 410:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** } - 376 .loc 1 410 0 - 377 006e 374B ldr r3, .L39+4 - 378 0070 9868 ldr r0, [r3, #8] - 379 0072 0638 subs r0, r0, #6 - 380 0074 FFF7FEFF bl HAL_FLASH_EndOfOperationCallback - 381 .LVL25: - 382 .L31: - 414:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** pFlash.ProcedureOnGoing = FLASH_PROC_NONE; - 383 .loc 1 414 0 - 384 0078 344B ldr r3, .L39+4 - 385 007a 0122 movs r2, #1 - 386 007c 5242 rsbs r2, r2, #0 - 387 007e 9A60 str r2, [r3, #8] - 415:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** } - 388 .loc 1 415 0 - 389 0080 0022 movs r2, #0 - 390 0082 1A70 strb r2, [r3] - 391 .L25: - 422:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** { - 392 .loc 1 422 0 - 393 0084 314B ldr r3, .L39+4 - 394 0086 1B78 ldrb r3, [r3] - 395 0088 002B cmp r3, #0 - 396 008a 0BD1 bne .L22 - 425:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** - 397 .loc 1 425 0 - 398 008c 2E4B ldr r3, .L39 - 399 008e 1A69 ldr r2, [r3, #16] - 400 0090 0721 movs r1, #7 - 401 0092 8A43 bics r2, r1 - 402 0094 1A61 str r2, [r3, #16] - 428:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** - 403 .loc 1 428 0 - 404 0096 1A69 ldr r2, [r3, #16] - 405 0098 2D49 ldr r1, .L39+8 - 406 009a 0A40 ands r2, r1 - 407 009c 1A61 str r2, [r3, #16] - 431:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** } - 408 .loc 1 431 0 - 409 009e 2B4B ldr r3, .L39+4 - ARM GAS /tmp/ccdvQFDs.s page 21 - - - 410 00a0 0022 movs r2, #0 - 411 00a2 1A76 strb r2, [r3, #24] - 412 .L22: - 433:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** - 413 .loc 1 433 0 - 414 @ sp needed - 415 00a4 F8BD pop {r3, r4, r5, r6, r7, pc} - 416 .L34: - 335:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** - 417 .loc 1 335 0 - 418 00a6 294B ldr r3, .L39+4 - 419 00a8 5A68 ldr r2, [r3, #4] - 420 00aa 013A subs r2, r2, #1 - 421 00ac 5A60 str r2, [r3, #4] - 338:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** { - 422 .loc 1 338 0 - 423 00ae 5B68 ldr r3, [r3, #4] - 424 00b0 002B cmp r3, #0 - 425 00b2 11D0 beq .L27 - 340:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** /*Indicate user which sector has been erased */ - 426 .loc 1 340 0 - 427 00b4 254C ldr r4, .L39+4 - 428 00b6 A068 ldr r0, [r4, #8] - 429 .LVL26: - 342:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** - 430 .loc 1 342 0 - 431 00b8 FFF7FEFF bl HAL_FLASH_EndOfOperationCallback - 432 .LVL27: - 345:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** pFlash.Address = addresstmp; - 433 .loc 1 345 0 - 434 00bc A068 ldr r0, [r4, #8] - 435 00be 8023 movs r3, #128 - 436 00c0 1B01 lsls r3, r3, #4 - 437 00c2 9C46 mov ip, r3 - 438 00c4 6044 add r0, r0, ip - 439 .LVL28: - 346:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** - 440 .loc 1 346 0 - 441 00c6 A060 str r0, [r4, #8] - 349:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** - 442 .loc 1 349 0 - 443 00c8 1F4A ldr r2, .L39 - 444 00ca 1369 ldr r3, [r2, #16] - 445 00cc 0221 movs r1, #2 - 446 00ce 8B43 bics r3, r1 - 447 00d0 1361 str r3, [r2, #16] - 351:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** } - 448 .loc 1 351 0 - 449 00d2 FFF7FEFF bl FLASH_PageErase - 450 .LVL29: - 451 00d6 D5E7 b .L25 - 452 .L27: - 453 .LVL30: - 357:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** pFlash.ProcedureOnGoing = FLASH_PROC_NONE; - 454 .loc 1 357 0 - 455 00d8 1C4B ldr r3, .L39+4 - 456 00da 0120 movs r0, #1 - ARM GAS /tmp/ccdvQFDs.s page 22 - - - 457 00dc 4042 rsbs r0, r0, #0 - 458 00de 9860 str r0, [r3, #8] - 358:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** /* FLASH EOP interrupt user callback */ - 459 .loc 1 358 0 - 460 00e0 0022 movs r2, #0 - 461 00e2 1A70 strb r2, [r3] - 360:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** } - 462 .loc 1 360 0 - 463 00e4 FFF7FEFF bl HAL_FLASH_EndOfOperationCallback - 464 .LVL31: - 465 00e8 CCE7 b .L25 - 466 .LVL32: - 467 .L35: - 366:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** - 468 .loc 1 366 0 - 469 00ea 174A ldr r2, .L39 - 470 00ec 1369 ldr r3, [r2, #16] - 471 00ee 0421 movs r1, #4 - 472 00f0 8B43 bics r3, r1 - 473 00f2 1361 str r3, [r2, #16] - 370:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** - 474 .loc 1 370 0 - 475 00f4 0020 movs r0, #0 - 476 00f6 FFF7FEFF bl HAL_FLASH_EndOfOperationCallback - 477 .LVL33: - 373:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** } - 478 .loc 1 373 0 - 479 00fa 144B ldr r3, .L39+4 - 480 00fc 0022 movs r2, #0 - 481 00fe 1A70 strb r2, [r3] - 482 0100 C0E7 b .L25 - 483 .L36: - 384:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** addresstmp = pFlash.Address; - 484 .loc 1 384 0 - 485 0102 124B ldr r3, .L39+4 - 486 0104 9A68 ldr r2, [r3, #8] - 487 0106 0232 adds r2, r2, #2 - 488 0108 9A60 str r2, [r3, #8] - 385:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** - 489 .loc 1 385 0 - 490 010a 9868 ldr r0, [r3, #8] - 491 .LVL34: - 388:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** - 492 .loc 1 388 0 - 493 010c 1E69 ldr r6, [r3, #16] - 494 010e 5F69 ldr r7, [r3, #20] - 495 0110 3A04 lsls r2, r7, #16 - 496 0112 340C lsrs r4, r6, #16 - 497 0114 1443 orrs r4, r2 - 498 0116 3D0C lsrs r5, r7, #16 - 499 0118 1C61 str r4, [r3, #16] - 500 011a 5D61 str r5, [r3, #20] - 391:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** - 501 .loc 1 391 0 - 502 011c 0A49 ldr r1, .L39 - 503 011e 0A69 ldr r2, [r1, #16] - 504 0120 0124 movs r4, #1 - ARM GAS /tmp/ccdvQFDs.s page 23 - - - 505 0122 A243 bics r2, r4 - 506 0124 0A61 str r2, [r1, #16] - 394:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** } - 507 .loc 1 394 0 - 508 0126 1A69 ldr r2, [r3, #16] - 509 0128 5B69 ldr r3, [r3, #20] - 510 012a 91B2 uxth r1, r2 - 511 012c FFF7FEFF bl FLASH_Program_HalfWord - 512 .LVL35: - 513 0130 A8E7 b .L25 - 514 .L37: - 402:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** } - 515 .loc 1 402 0 - 516 0132 064B ldr r3, .L39+4 - 517 0134 9868 ldr r0, [r3, #8] - 518 0136 FFF7FEFF bl HAL_FLASH_EndOfOperationCallback - 519 .LVL36: - 520 013a 9DE7 b .L31 - 521 .L38: - 406:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** } - 522 .loc 1 406 0 - 523 013c 034B ldr r3, .L39+4 - 524 013e 9868 ldr r0, [r3, #8] - 525 0140 0238 subs r0, r0, #2 - 526 0142 FFF7FEFF bl HAL_FLASH_EndOfOperationCallback - 527 .LVL37: - 528 0146 97E7 b .L31 - 529 .L40: - 530 .align 2 - 531 .L39: - 532 0148 00200240 .word 1073881088 - 533 014c 00000000 .word pFlash - 534 0150 FFEBFFFF .word -5121 - 535 .cfi_endproc - 536 .LFE39: - 538 .section .text.HAL_FLASH_Unlock,"ax",%progbits - 539 .align 1 - 540 .global HAL_FLASH_Unlock - 541 .syntax unified - 542 .code 16 - 543 .thumb_func - 544 .fpu softvfp - 546 HAL_FLASH_Unlock: - 547 .LFB42: - 496:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** HAL_StatusTypeDef status = HAL_OK; - 548 .loc 1 496 0 - 549 .cfi_startproc - 550 @ args = 0, pretend = 0, frame = 0 - 551 @ frame_needed = 0, uses_anonymous_args = 0 - 552 @ link register save eliminated. - 553 .LVL38: - 499:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** { - 554 .loc 1 499 0 - 555 0000 084B ldr r3, .L46 - 556 0002 1B69 ldr r3, [r3, #16] - 557 0004 1B06 lsls r3, r3, #24 - 558 0006 0BD5 bpl .L43 - ARM GAS /tmp/ccdvQFDs.s page 24 - - - 502:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** WRITE_REG(FLASH->KEYR, FLASH_KEY2); - 559 .loc 1 502 0 - 560 0008 064B ldr r3, .L46 - 561 000a 074A ldr r2, .L46+4 - 562 000c 5A60 str r2, [r3, #4] - 503:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** - 563 .loc 1 503 0 - 564 000e 074A ldr r2, .L46+8 - 565 0010 5A60 str r2, [r3, #4] - 506:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** { - 566 .loc 1 506 0 - 567 0012 1B69 ldr r3, [r3, #16] - 568 0014 1B06 lsls r3, r3, #24 - 569 0016 01D5 bpl .L45 - 508:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** } - 570 .loc 1 508 0 - 571 0018 0120 movs r0, #1 - 572 001a 02E0 b .L42 - 573 .L45: - 497:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** - 574 .loc 1 497 0 - 575 001c 0020 movs r0, #0 - 576 001e 00E0 b .L42 - 577 .L43: - 578 0020 0020 movs r0, #0 - 579 .L42: - 580 .LVL39: - 513:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** - 581 .loc 1 513 0 - 582 @ sp needed - 583 0022 7047 bx lr - 584 .L47: - 585 .align 2 - 586 .L46: - 587 0024 00200240 .word 1073881088 - 588 0028 23016745 .word 1164378403 - 589 002c AB89EFCD .word -839939669 - 590 .cfi_endproc - 591 .LFE42: - 593 .section .text.HAL_FLASH_Lock,"ax",%progbits - 594 .align 1 - 595 .global HAL_FLASH_Lock - 596 .syntax unified - 597 .code 16 - 598 .thumb_func - 599 .fpu softvfp - 601 HAL_FLASH_Lock: - 602 .LFB43: - 520:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** /* Set the LOCK Bit to lock the FLASH Registers access */ - 603 .loc 1 520 0 - 604 .cfi_startproc - 605 @ args = 0, pretend = 0, frame = 0 - 606 @ frame_needed = 0, uses_anonymous_args = 0 - 607 @ link register save eliminated. - 522:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** - 608 .loc 1 522 0 - 609 0000 034A ldr r2, .L49 - ARM GAS /tmp/ccdvQFDs.s page 25 - - - 610 0002 1369 ldr r3, [r2, #16] - 611 0004 8021 movs r1, #128 - 612 0006 0B43 orrs r3, r1 - 613 0008 1361 str r3, [r2, #16] - 525:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** - 614 .loc 1 525 0 - 615 000a 0020 movs r0, #0 - 616 @ sp needed - 617 000c 7047 bx lr - 618 .L50: - 619 000e C046 .align 2 - 620 .L49: - 621 0010 00200240 .word 1073881088 - 622 .cfi_endproc - 623 .LFE43: - 625 .section .text.HAL_FLASH_OB_Unlock,"ax",%progbits - 626 .align 1 - 627 .global HAL_FLASH_OB_Unlock - 628 .syntax unified - 629 .code 16 - 630 .thumb_func - 631 .fpu softvfp - 633 HAL_FLASH_OB_Unlock: - 634 .LFB44: - 532:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** if (HAL_IS_BIT_CLR(FLASH->CR, FLASH_CR_OPTWRE)) - 635 .loc 1 532 0 - 636 .cfi_startproc - 637 @ args = 0, pretend = 0, frame = 0 - 638 @ frame_needed = 0, uses_anonymous_args = 0 - 639 @ link register save eliminated. - 533:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** { - 640 .loc 1 533 0 - 641 0000 064B ldr r3, .L54 - 642 0002 1B69 ldr r3, [r3, #16] - 643 0004 9B05 lsls r3, r3, #22 - 644 0006 06D4 bmi .L53 - 536:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** WRITE_REG(FLASH->OPTKEYR, FLASH_OPTKEY2); - 645 .loc 1 536 0 - 646 0008 044B ldr r3, .L54 - 647 000a 054A ldr r2, .L54+4 - 648 000c 9A60 str r2, [r3, #8] - 537:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** } - 649 .loc 1 537 0 - 650 000e 054A ldr r2, .L54+8 - 651 0010 9A60 str r2, [r3, #8] - 544:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** } - 652 .loc 1 544 0 - 653 0012 0020 movs r0, #0 - 654 .L52: - 545:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** - 655 .loc 1 545 0 - 656 @ sp needed - 657 0014 7047 bx lr - 658 .L53: - 541:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** } - 659 .loc 1 541 0 - 660 0016 0120 movs r0, #1 - ARM GAS /tmp/ccdvQFDs.s page 26 - - - 661 0018 FCE7 b .L52 - 662 .L55: - 663 001a C046 .align 2 - 664 .L54: - 665 001c 00200240 .word 1073881088 - 666 0020 23016745 .word 1164378403 - 667 0024 AB89EFCD .word -839939669 - 668 .cfi_endproc - 669 .LFE44: - 671 .section .text.HAL_FLASH_OB_Lock,"ax",%progbits - 672 .align 1 - 673 .global HAL_FLASH_OB_Lock - 674 .syntax unified - 675 .code 16 - 676 .thumb_func - 677 .fpu softvfp - 679 HAL_FLASH_OB_Lock: - 680 .LFB45: - 552:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** /* Clear the OPTWRE Bit to lock the FLASH Option Byte Registers access */ - 681 .loc 1 552 0 - 682 .cfi_startproc - 683 @ args = 0, pretend = 0, frame = 0 - 684 @ frame_needed = 0, uses_anonymous_args = 0 - 685 @ link register save eliminated. - 554:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** - 686 .loc 1 554 0 - 687 0000 034A ldr r2, .L57 - 688 0002 1369 ldr r3, [r2, #16] - 689 0004 0349 ldr r1, .L57+4 - 690 0006 0B40 ands r3, r1 - 691 0008 1361 str r3, [r2, #16] - 557:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** - 692 .loc 1 557 0 - 693 000a 0020 movs r0, #0 - 694 @ sp needed - 695 000c 7047 bx lr - 696 .L58: - 697 000e C046 .align 2 - 698 .L57: - 699 0010 00200240 .word 1073881088 - 700 0014 FFFDFFFF .word -513 - 701 .cfi_endproc - 702 .LFE45: - 704 .section .text.HAL_FLASH_GetError,"ax",%progbits - 705 .align 1 - 706 .global HAL_FLASH_GetError - 707 .syntax unified - 708 .code 16 - 709 .thumb_func - 710 .fpu softvfp - 712 HAL_FLASH_GetError: - 713 .LFB47: - 597:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** return pFlash.ErrorCode; - 714 .loc 1 597 0 - 715 .cfi_startproc - 716 @ args = 0, pretend = 0, frame = 0 - 717 @ frame_needed = 0, uses_anonymous_args = 0 - ARM GAS /tmp/ccdvQFDs.s page 27 - - - 718 @ link register save eliminated. - 598:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** } - 719 .loc 1 598 0 - 720 0000 014B ldr r3, .L60 - 721 0002 D869 ldr r0, [r3, #28] - 599:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** - 722 .loc 1 599 0 - 723 @ sp needed - 724 0004 7047 bx lr - 725 .L61: - 726 0006 C046 .align 2 - 727 .L60: - 728 0008 00000000 .word pFlash - 729 .cfi_endproc - 730 .LFE47: - 732 .section .text.FLASH_WaitForLastOperation,"ax",%progbits - 733 .align 1 - 734 .global FLASH_WaitForLastOperation - 735 .syntax unified - 736 .code 16 - 737 .thumb_func - 738 .fpu softvfp - 740 FLASH_WaitForLastOperation: - 741 .LFB49: - 637:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** /* Wait for the FLASH operation to complete by polling on BUSY flag to be reset. - 742 .loc 1 637 0 - 743 .cfi_startproc - 744 @ args = 0, pretend = 0, frame = 0 - 745 @ frame_needed = 0, uses_anonymous_args = 0 - 746 .LVL40: - 747 0000 70B5 push {r4, r5, r6, lr} - 748 .LCFI3: - 749 .cfi_def_cfa_offset 16 - 750 .cfi_offset 4, -16 - 751 .cfi_offset 5, -12 - 752 .cfi_offset 6, -8 - 753 .cfi_offset 14, -4 - 754 0002 0400 movs r4, r0 - 642:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** - 755 .loc 1 642 0 - 756 0004 FFF7FEFF bl HAL_GetTick - 757 .LVL41: - 758 0008 0500 movs r5, r0 - 759 .LVL42: - 760 .L64: - 644:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** { - 761 .loc 1 644 0 - 762 000a 134B ldr r3, .L73 - 763 000c DB68 ldr r3, [r3, #12] - 764 000e DB07 lsls r3, r3, #31 - 765 0010 0AD5 bpl .L72 - 646:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** { - 766 .loc 1 646 0 - 767 0012 631C adds r3, r4, #1 - 768 0014 F9D0 beq .L64 - 648:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** { - 769 .loc 1 648 0 - ARM GAS /tmp/ccdvQFDs.s page 28 - - - 770 0016 002C cmp r4, #0 - 771 0018 19D0 beq .L69 - 648:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** { - 772 .loc 1 648 0 is_stmt 0 discriminator 1 - 773 001a FFF7FEFF bl HAL_GetTick - 774 .LVL43: - 775 001e 401B subs r0, r0, r5 - 776 0020 A042 cmp r0, r4 - 777 0022 F2D9 bls .L64 - 650:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** } - 778 .loc 1 650 0 is_stmt 1 - 779 0024 0320 movs r0, #3 - 780 0026 11E0 b .L65 - 781 .L72: - 656:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** { - 782 .loc 1 656 0 - 783 0028 0B4B ldr r3, .L73 - 784 002a DB68 ldr r3, [r3, #12] - 785 002c 9B06 lsls r3, r3, #26 - 786 002e 02D5 bpl .L67 - 659:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** } - 787 .loc 1 659 0 - 788 0030 094B ldr r3, .L73 - 789 0032 2022 movs r2, #32 - 790 0034 DA60 str r2, [r3, #12] - 791 .L67: - 662:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** __HAL_FLASH_GET_FLAG(FLASH_FLAG_PGERR)) - 792 .loc 1 662 0 - 793 0036 084B ldr r3, .L73 - 794 0038 DB68 ldr r3, [r3, #12] - 795 003a DB06 lsls r3, r3, #27 - 796 003c 03D4 bmi .L68 - 663:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** { - 797 .loc 1 663 0 discriminator 1 - 798 003e 064B ldr r3, .L73 - 799 0040 DB68 ldr r3, [r3, #12] - 662:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** __HAL_FLASH_GET_FLAG(FLASH_FLAG_PGERR)) - 800 .loc 1 662 0 discriminator 1 - 801 0042 5B07 lsls r3, r3, #29 - 802 0044 05D5 bpl .L71 - 803 .L68: - 666:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** return HAL_ERROR; - 804 .loc 1 666 0 - 805 0046 FFF7FEFF bl FLASH_SetErrorCode - 806 .LVL44: - 667:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** } - 807 .loc 1 667 0 - 808 004a 0120 movs r0, #1 - 809 .L65: - 672:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** - 810 .loc 1 672 0 - 811 @ sp needed - 812 .LVL45: - 813 .LVL46: - 814 004c 70BD pop {r4, r5, r6, pc} - 815 .LVL47: - 816 .L69: - ARM GAS /tmp/ccdvQFDs.s page 29 - - - 650:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** } - 817 .loc 1 650 0 - 818 004e 0320 movs r0, #3 - 819 0050 FCE7 b .L65 - 820 .L71: - 671:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** } - 821 .loc 1 671 0 - 822 0052 0020 movs r0, #0 - 823 0054 FAE7 b .L65 - 824 .L74: - 825 0056 C046 .align 2 - 826 .L73: - 827 0058 00200240 .word 1073881088 - 828 .cfi_endproc - 829 .LFE49: - 831 .section .text.HAL_FLASH_Program,"ax",%progbits - 832 .align 1 - 833 .global HAL_FLASH_Program - 834 .syntax unified - 835 .code 16 - 836 .thumb_func - 837 .fpu softvfp - 839 HAL_FLASH_Program: - 840 .LFB37: - 184:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** HAL_StatusTypeDef status = HAL_ERROR; - 841 .loc 1 184 0 - 842 .cfi_startproc - 843 @ args = 0, pretend = 0, frame = 0 - 844 @ frame_needed = 0, uses_anonymous_args = 0 - 845 .LVL48: - 846 0000 F0B5 push {r4, r5, r6, r7, lr} - 847 .LCFI4: - 848 .cfi_def_cfa_offset 20 - 849 .cfi_offset 4, -20 - 850 .cfi_offset 5, -16 - 851 .cfi_offset 6, -12 - 852 .cfi_offset 7, -8 - 853 .cfi_offset 14, -4 - 854 0002 C646 mov lr, r8 - 855 0004 00B5 push {lr} - 856 .LCFI5: - 857 .cfi_def_cfa_offset 24 - 858 .cfi_offset 8, -24 - 859 0006 0400 movs r4, r0 - 860 0008 0D00 movs r5, r1 - 861 000a 9046 mov r8, r2 - 862 000c 1E00 movs r6, r3 - 863 .LVL49: - 190:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** - 864 .loc 1 190 0 - 865 000e 214B ldr r3, .L87 - 866 0010 1B7E ldrb r3, [r3, #24] - 867 0012 012B cmp r3, #1 - 868 0014 3BD0 beq .L83 - 190:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** - 869 .loc 1 190 0 is_stmt 0 discriminator 2 - 870 0016 1F4B ldr r3, .L87 - ARM GAS /tmp/ccdvQFDs.s page 30 - - - 871 0018 0122 movs r2, #1 - 872 .LVL50: - 873 001a 1A76 strb r2, [r3, #24] - 197:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** - 874 .loc 1 197 0 is_stmt 1 discriminator 2 - 875 001c 1E48 ldr r0, .L87+4 - 876 .LVL51: - 877 001e FFF7FEFF bl FLASH_WaitForLastOperation - 878 .LVL52: - 199:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** { - 879 .loc 1 199 0 discriminator 2 - 880 0022 0028 cmp r0, #0 - 881 0024 2DD1 bne .L77 - 201:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** { - 882 .loc 1 201 0 - 883 0026 012C cmp r4, #1 - 884 0028 06D0 beq .L84 - 206:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** { - 885 .loc 1 206 0 - 886 002a 022C cmp r4, #2 - 887 002c 02D0 beq .L86 - 214:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** } - 888 .loc 1 214 0 - 889 002e 0427 movs r7, #4 - 890 .L78: - 891 .LVL53: - 217:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** { - 892 .loc 1 217 0 - 893 0030 0024 movs r4, #0 - 894 .LVL54: - 895 0032 1BE0 b .L79 - 896 .LVL55: - 897 .L86: - 209:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** } - 898 .loc 1 209 0 - 899 0034 0227 movs r7, #2 - 900 0036 FBE7 b .L78 - 901 .L84: - 204:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** } - 902 .loc 1 204 0 - 903 0038 0127 movs r7, #1 - 904 003a F9E7 b .L78 - 905 .LVL56: - 906 .L80: - 219:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** - 907 .loc 1 219 0 - 908 003c 2022 movs r2, #32 - 909 003e D21A subs r2, r2, r3 - 910 0040 3100 movs r1, r6 - 911 0042 9140 lsls r1, r1, r2 - 912 0044 0A00 movs r2, r1 - 913 0046 4146 mov r1, r8 - 914 0048 D940 lsrs r1, r1, r3 - 915 004a 1143 orrs r1, r2 - 916 .L81: - 917 004c 89B2 uxth r1, r1 - 918 004e 4019 adds r0, r0, r5 - ARM GAS /tmp/ccdvQFDs.s page 31 - - - 919 0050 FFF7FEFF bl FLASH_Program_HalfWord - 920 .LVL57: - 222:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** - 921 .loc 1 222 0 - 922 0054 1048 ldr r0, .L87+4 - 923 0056 FFF7FEFF bl FLASH_WaitForLastOperation - 924 .LVL58: - 225:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** /* In case of error, stop programation procedure */ - 925 .loc 1 225 0 - 926 005a 104A ldr r2, .L87+8 - 927 005c 1369 ldr r3, [r2, #16] - 928 005e 0121 movs r1, #1 - 929 0060 8B43 bics r3, r1 - 930 0062 1361 str r3, [r2, #16] - 227:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** { - 931 .loc 1 227 0 - 932 0064 0028 cmp r0, #0 - 933 0066 0CD1 bne .L77 - 217:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** { - 934 .loc 1 217 0 discriminator 2 - 935 0068 0134 adds r4, r4, #1 - 936 .LVL59: - 937 006a E4B2 uxtb r4, r4 - 938 .LVL60: - 939 .L79: - 217:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** { - 940 .loc 1 217 0 is_stmt 0 discriminator 1 - 941 006c BC42 cmp r4, r7 - 942 006e 08D2 bcs .L77 - 219:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** - 943 .loc 1 219 0 is_stmt 1 - 944 0070 6000 lsls r0, r4, #1 - 945 .LVL61: - 946 0072 2301 lsls r3, r4, #4 - 947 0074 2022 movs r2, #32 - 948 0076 5242 rsbs r2, r2, #0 - 949 0078 9A18 adds r2, r3, r2 - 950 007a DFD4 bmi .L80 - 951 007c 3100 movs r1, r6 - 952 007e D140 lsrs r1, r1, r2 - 953 0080 E4E7 b .L81 - 954 .LVL62: - 955 .L77: - 235:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** - 956 .loc 1 235 0 - 957 0082 044B ldr r3, .L87 - 958 0084 0022 movs r2, #0 - 959 0086 1A76 strb r2, [r3, #24] - 960 .LVL63: - 961 .L76: - 238:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** - 962 .loc 1 238 0 - 963 @ sp needed - 964 .LVL64: - 965 0088 04BC pop {r2} - 966 008a 9046 mov r8, r2 - 967 008c F0BD pop {r4, r5, r6, r7, pc} - ARM GAS /tmp/ccdvQFDs.s page 32 - - - 968 .LVL65: - 969 .L83: - 190:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** - 970 .loc 1 190 0 - 971 008e 0220 movs r0, #2 - 972 .LVL66: - 973 0090 FAE7 b .L76 - 974 .L88: - 975 0092 C046 .align 2 - 976 .L87: - 977 0094 00000000 .word pFlash - 978 0098 50C30000 .word 50000 - 979 009c 00200240 .word 1073881088 - 980 .cfi_endproc - 981 .LFE37: - 983 .section .text.HAL_FLASH_OB_Launch,"ax",%progbits - 984 .align 1 - 985 .global HAL_FLASH_OB_Launch - 986 .syntax unified - 987 .code 16 - 988 .thumb_func - 989 .fpu softvfp - 991 HAL_FLASH_OB_Launch: - 992 .LFB46: - 565:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** /* Set the OBL_Launch bit to launch the option byte loading */ - 993 .loc 1 565 0 - 994 .cfi_startproc - 995 @ args = 0, pretend = 0, frame = 0 - 996 @ frame_needed = 0, uses_anonymous_args = 0 - 997 0000 10B5 push {r4, lr} - 998 .LCFI6: - 999 .cfi_def_cfa_offset 8 - 1000 .cfi_offset 4, -8 - 1001 .cfi_offset 14, -4 - 567:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** - 1002 .loc 1 567 0 - 1003 0002 054A ldr r2, .L90 - 1004 0004 1169 ldr r1, [r2, #16] - 1005 0006 8023 movs r3, #128 - 1006 0008 9B01 lsls r3, r3, #6 - 1007 000a 0B43 orrs r3, r1 - 1008 000c 1361 str r3, [r2, #16] - 570:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** } - 1009 .loc 1 570 0 - 1010 000e 0348 ldr r0, .L90+4 - 1011 0010 FFF7FEFF bl FLASH_WaitForLastOperation - 1012 .LVL67: - 571:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** - 1013 .loc 1 571 0 - 1014 @ sp needed - 1015 0014 10BD pop {r4, pc} - 1016 .L91: - 1017 0016 C046 .align 2 - 1018 .L90: - 1019 0018 00200240 .word 1073881088 - 1020 001c 50C30000 .word 50000 - 1021 .cfi_endproc - ARM GAS /tmp/ccdvQFDs.s page 33 - - - 1022 .LFE46: - 1024 .comm pFlash,32,8 - 1025 .text - 1026 .Letext0: - 1027 .file 2 "/home/janhenrik/programme/gcc-arm-none-eabi-7-2018-q2-update/arm-none-eabi/include/machin - 1028 .file 3 "/home/janhenrik/programme/gcc-arm-none-eabi-7-2018-q2-update/arm-none-eabi/include/sys/_s - 1029 .file 4 "Drivers/CMSIS/Device/ST/STM32F0xx/Include/system_stm32f0xx.h" - 1030 .file 5 "Drivers/CMSIS/Device/ST/STM32F0xx/Include/stm32f072xb.h" - 1031 .file 6 "/home/janhenrik/programme/gcc-arm-none-eabi-7-2018-q2-update/arm-none-eabi/include/sys/lo - 1032 .file 7 "/home/janhenrik/programme/gcc-arm-none-eabi-7-2018-q2-update/arm-none-eabi/include/sys/_t - 1033 .file 8 "/home/janhenrik/programme/gcc-arm-none-eabi-7-2018-q2-update/lib/gcc/arm-none-eabi/7.3.1/ - 1034 .file 9 "/home/janhenrik/programme/gcc-arm-none-eabi-7-2018-q2-update/arm-none-eabi/include/sys/re - 1035 .file 10 "Drivers/CMSIS/Device/ST/STM32F0xx/Include/stm32f0xx.h" - 1036 .file 11 "Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_def.h" - 1037 .file 12 "Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_flash.h" - 1038 .file 13 "Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal.h" - ARM GAS /tmp/ccdvQFDs.s page 34 - - -DEFINED SYMBOLS - *ABS*:0000000000000000 stm32f0xx_hal_flash.c - /tmp/ccdvQFDs.s:16 .text.FLASH_Program_HalfWord:0000000000000000 $t - /tmp/ccdvQFDs.s:22 .text.FLASH_Program_HalfWord:0000000000000000 FLASH_Program_HalfWord - /tmp/ccdvQFDs.s:53 .text.FLASH_Program_HalfWord:0000000000000018 $d - *COM*:0000000000000020 pFlash - /tmp/ccdvQFDs.s:59 .text.FLASH_SetErrorCode:0000000000000000 $t - /tmp/ccdvQFDs.s:65 .text.FLASH_SetErrorCode:0000000000000000 FLASH_SetErrorCode - /tmp/ccdvQFDs.s:119 .text.FLASH_SetErrorCode:0000000000000034 $d - /tmp/ccdvQFDs.s:125 .text.HAL_FLASH_Program_IT:0000000000000000 $t - /tmp/ccdvQFDs.s:132 .text.HAL_FLASH_Program_IT:0000000000000000 HAL_FLASH_Program_IT - /tmp/ccdvQFDs.s:229 .text.HAL_FLASH_Program_IT:000000000000005c $d - /tmp/ccdvQFDs.s:235 .text.HAL_FLASH_EndOfOperationCallback:0000000000000000 $t - /tmp/ccdvQFDs.s:242 .text.HAL_FLASH_EndOfOperationCallback:0000000000000000 HAL_FLASH_EndOfOperationCallback - /tmp/ccdvQFDs.s:257 .text.HAL_FLASH_OperationErrorCallback:0000000000000000 $t - /tmp/ccdvQFDs.s:264 .text.HAL_FLASH_OperationErrorCallback:0000000000000000 HAL_FLASH_OperationErrorCallback - /tmp/ccdvQFDs.s:279 .text.HAL_FLASH_IRQHandler:0000000000000000 $t - /tmp/ccdvQFDs.s:286 .text.HAL_FLASH_IRQHandler:0000000000000000 HAL_FLASH_IRQHandler - /tmp/ccdvQFDs.s:532 .text.HAL_FLASH_IRQHandler:0000000000000148 $d - /tmp/ccdvQFDs.s:539 .text.HAL_FLASH_Unlock:0000000000000000 $t - /tmp/ccdvQFDs.s:546 .text.HAL_FLASH_Unlock:0000000000000000 HAL_FLASH_Unlock - /tmp/ccdvQFDs.s:587 .text.HAL_FLASH_Unlock:0000000000000024 $d - /tmp/ccdvQFDs.s:594 .text.HAL_FLASH_Lock:0000000000000000 $t - /tmp/ccdvQFDs.s:601 .text.HAL_FLASH_Lock:0000000000000000 HAL_FLASH_Lock - /tmp/ccdvQFDs.s:621 .text.HAL_FLASH_Lock:0000000000000010 $d - /tmp/ccdvQFDs.s:626 .text.HAL_FLASH_OB_Unlock:0000000000000000 $t - /tmp/ccdvQFDs.s:633 .text.HAL_FLASH_OB_Unlock:0000000000000000 HAL_FLASH_OB_Unlock - /tmp/ccdvQFDs.s:665 .text.HAL_FLASH_OB_Unlock:000000000000001c $d - /tmp/ccdvQFDs.s:672 .text.HAL_FLASH_OB_Lock:0000000000000000 $t - /tmp/ccdvQFDs.s:679 .text.HAL_FLASH_OB_Lock:0000000000000000 HAL_FLASH_OB_Lock - /tmp/ccdvQFDs.s:699 .text.HAL_FLASH_OB_Lock:0000000000000010 $d - /tmp/ccdvQFDs.s:705 .text.HAL_FLASH_GetError:0000000000000000 $t - /tmp/ccdvQFDs.s:712 .text.HAL_FLASH_GetError:0000000000000000 HAL_FLASH_GetError - /tmp/ccdvQFDs.s:728 .text.HAL_FLASH_GetError:0000000000000008 $d - /tmp/ccdvQFDs.s:733 .text.FLASH_WaitForLastOperation:0000000000000000 $t - /tmp/ccdvQFDs.s:740 .text.FLASH_WaitForLastOperation:0000000000000000 FLASH_WaitForLastOperation - /tmp/ccdvQFDs.s:827 .text.FLASH_WaitForLastOperation:0000000000000058 $d - /tmp/ccdvQFDs.s:832 .text.HAL_FLASH_Program:0000000000000000 $t - /tmp/ccdvQFDs.s:839 .text.HAL_FLASH_Program:0000000000000000 HAL_FLASH_Program - /tmp/ccdvQFDs.s:977 .text.HAL_FLASH_Program:0000000000000094 $d - /tmp/ccdvQFDs.s:984 .text.HAL_FLASH_OB_Launch:0000000000000000 $t - /tmp/ccdvQFDs.s:991 .text.HAL_FLASH_OB_Launch:0000000000000000 HAL_FLASH_OB_Launch - /tmp/ccdvQFDs.s:1019 .text.HAL_FLASH_OB_Launch:0000000000000018 $d - -UNDEFINED SYMBOLS -FLASH_PageErase -HAL_GetTick diff --git a/firmware/build/stm32f0xx_hal_flash.o b/firmware/build/stm32f0xx_hal_flash.o deleted file mode 100644 index 397c271..0000000 Binary files a/firmware/build/stm32f0xx_hal_flash.o and /dev/null differ diff --git a/firmware/build/stm32f0xx_hal_flash_ex.d b/firmware/build/stm32f0xx_hal_flash_ex.d deleted file mode 100644 index 7d093da..0000000 --- a/firmware/build/stm32f0xx_hal_flash_ex.d +++ /dev/null @@ -1,87 +0,0 @@ -build/stm32f0xx_hal_flash_ex.o: \ - Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash_ex.c \ - Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal.h \ - Inc/stm32f0xx_hal_conf.h \ - Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_rcc.h \ - Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_def.h \ - Drivers/CMSIS/Device/ST/STM32F0xx/Include/stm32f0xx.h \ - Drivers/CMSIS/Device/ST/STM32F0xx/Include/stm32f072xb.h \ - Drivers/CMSIS/Include/core_cm0.h Drivers/CMSIS/Include/core_cmInstr.h \ - Drivers/CMSIS/Include/cmsis_gcc.h Drivers/CMSIS/Include/core_cmFunc.h \ - Drivers/CMSIS/Device/ST/STM32F0xx/Include/system_stm32f0xx.h \ - Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_rcc_ex.h \ - Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_gpio.h \ - Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_gpio_ex.h \ - Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_dma.h \ - Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_dma_ex.h \ - Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_cortex.h \ - Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_adc.h \ - Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_adc_ex.h \ - Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_flash.h \ - Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_flash_ex.h \ - Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_i2c.h \ - Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_i2c_ex.h \ - Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_pcd.h \ - Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_pcd_ex.h \ - Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_pwr.h \ - Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_pwr_ex.h \ - Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_tim.h \ - Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_tim_ex.h - -Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal.h: - -Inc/stm32f0xx_hal_conf.h: - -Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_rcc.h: - -Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_def.h: - -Drivers/CMSIS/Device/ST/STM32F0xx/Include/stm32f0xx.h: - -Drivers/CMSIS/Device/ST/STM32F0xx/Include/stm32f072xb.h: - -Drivers/CMSIS/Include/core_cm0.h: - -Drivers/CMSIS/Include/core_cmInstr.h: - -Drivers/CMSIS/Include/cmsis_gcc.h: - -Drivers/CMSIS/Include/core_cmFunc.h: - -Drivers/CMSIS/Device/ST/STM32F0xx/Include/system_stm32f0xx.h: - -Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_rcc_ex.h: - -Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_gpio.h: - -Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_gpio_ex.h: - -Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_dma.h: - -Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_dma_ex.h: - -Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_cortex.h: - -Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_adc.h: - -Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_adc_ex.h: - -Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_flash.h: - -Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_flash_ex.h: - -Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_i2c.h: - -Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_i2c_ex.h: - -Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_pcd.h: - -Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_pcd_ex.h: - -Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_pwr.h: - -Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_pwr_ex.h: - -Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_tim.h: - -Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_tim_ex.h: diff --git a/firmware/build/stm32f0xx_hal_flash_ex.lst b/firmware/build/stm32f0xx_hal_flash_ex.lst deleted file mode 100644 index 9dcfdb3..0000000 --- a/firmware/build/stm32f0xx_hal_flash_ex.lst +++ /dev/null @@ -1,2730 +0,0 @@ -ARM GAS /tmp/ccHniR8O.s page 1 - - - 1 .cpu cortex-m0 - 2 .eabi_attribute 20, 1 - 3 .eabi_attribute 21, 1 - 4 .eabi_attribute 23, 3 - 5 .eabi_attribute 24, 1 - 6 .eabi_attribute 25, 1 - 7 .eabi_attribute 26, 1 - 8 .eabi_attribute 30, 1 - 9 .eabi_attribute 34, 0 - 10 .eabi_attribute 18, 4 - 11 .file "stm32f0xx_hal_flash_ex.c" - 12 .text - 13 .Ltext0: - 14 .cfi_sections .debug_frame - 15 .section .text.FLASH_MassErase,"ax",%progbits - 16 .align 1 - 17 .syntax unified - 18 .code 16 - 19 .thumb_func - 20 .fpu softvfp - 22 FLASH_MassErase: - 23 .LFB43: - 24 .file 1 "Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash_ex.c" - 1:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash_ex.c **** /** - 2:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash_ex.c **** ****************************************************************************** - 3:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash_ex.c **** * @file stm32f0xx_hal_flash_ex.c - 4:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash_ex.c **** * @author MCD Application Team - 5:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash_ex.c **** * @brief Extended FLASH HAL module driver. - 6:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash_ex.c **** * - 7:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash_ex.c **** * This file provides firmware functions to manage the following - 8:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash_ex.c **** * functionalities of the FLASH peripheral: - 9:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash_ex.c **** * + Extended Initialization/de-initialization functions - 10:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash_ex.c **** * + Extended I/O operation functions - 11:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash_ex.c **** * + Extended Peripheral Control functions - 12:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash_ex.c **** * - 13:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash_ex.c **** @verbatim - 14:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash_ex.c **** ============================================================================== - 15:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash_ex.c **** ##### Flash peripheral extended features ##### - 16:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash_ex.c **** ============================================================================== - 17:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash_ex.c **** - 18:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash_ex.c **** ##### How to use this driver ##### - 19:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash_ex.c **** ============================================================================== - 20:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash_ex.c **** [..] This driver provides functions to configure and program the FLASH memory - 21:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash_ex.c **** of all STM32F0xxx devices. It includes - 22:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash_ex.c **** - 23:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash_ex.c **** (++) Set/Reset the write protection - 24:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash_ex.c **** (++) Program the user Option Bytes - 25:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash_ex.c **** (++) Get the Read protection Level - 26:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash_ex.c **** - 27:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash_ex.c **** @endverbatim - 28:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash_ex.c **** ****************************************************************************** - 29:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash_ex.c **** * @attention - 30:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash_ex.c **** * - 31:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash_ex.c **** *

© COPYRIGHT(c) 2016 STMicroelectronics

- 32:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash_ex.c **** * - 33:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash_ex.c **** * Redistribution and use in source and binary forms, with or without modification, - 34:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash_ex.c **** * are permitted provided that the following conditions are met: - ARM GAS /tmp/ccHniR8O.s page 2 - - - 35:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash_ex.c **** * 1. Redistributions of source code must retain the above copyright notice, - 36:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash_ex.c **** * this list of conditions and the following disclaimer. - 37:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash_ex.c **** * 2. Redistributions in binary form must reproduce the above copyright notice, - 38:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash_ex.c **** * this list of conditions and the following disclaimer in the documentation - 39:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash_ex.c **** * and/or other materials provided with the distribution. - 40:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash_ex.c **** * 3. Neither the name of STMicroelectronics nor the names of its contributors - 41:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash_ex.c **** * may be used to endorse or promote products derived from this software - 42:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash_ex.c **** * without specific prior written permission. - 43:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash_ex.c **** * - 44:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash_ex.c **** * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" - 45:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash_ex.c **** * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE - 46:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash_ex.c **** * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE - 47:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash_ex.c **** * DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE - 48:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash_ex.c **** * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL - 49:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash_ex.c **** * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR - 50:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash_ex.c **** * SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER - 51:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash_ex.c **** * CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, - 52:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash_ex.c **** * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE - 53:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash_ex.c **** * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. - 54:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash_ex.c **** * - 55:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash_ex.c **** ****************************************************************************** - 56:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash_ex.c **** */ - 57:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash_ex.c **** - 58:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash_ex.c **** /* Includes ------------------------------------------------------------------*/ - 59:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash_ex.c **** #include "stm32f0xx_hal.h" - 60:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash_ex.c **** - 61:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash_ex.c **** /** @addtogroup STM32F0xx_HAL_Driver - 62:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash_ex.c **** * @{ - 63:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash_ex.c **** */ - 64:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash_ex.c **** #ifdef HAL_FLASH_MODULE_ENABLED - 65:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash_ex.c **** - 66:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash_ex.c **** /** @addtogroup FLASH - 67:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash_ex.c **** * @{ - 68:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash_ex.c **** */ - 69:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash_ex.c **** /** @addtogroup FLASH_Private_Variables - 70:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash_ex.c **** * @{ - 71:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash_ex.c **** */ - 72:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash_ex.c **** /* Variables used for Erase pages under interruption*/ - 73:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash_ex.c **** extern FLASH_ProcessTypeDef pFlash; - 74:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash_ex.c **** /** - 75:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash_ex.c **** * @} - 76:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash_ex.c **** */ - 77:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash_ex.c **** - 78:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash_ex.c **** /** - 79:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash_ex.c **** * @} - 80:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash_ex.c **** */ - 81:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash_ex.c **** - 82:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash_ex.c **** /** @defgroup FLASHEx FLASHEx - 83:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash_ex.c **** * @brief FLASH HAL Extension module driver - 84:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash_ex.c **** * @{ - 85:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash_ex.c **** */ - 86:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash_ex.c **** - 87:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash_ex.c **** /* Private typedef -----------------------------------------------------------*/ - 88:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash_ex.c **** /* Private define ------------------------------------------------------------*/ - 89:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash_ex.c **** /** @defgroup FLASHEx_Private_Constants FLASHEx Private Constants - 90:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash_ex.c **** * @{ - 91:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash_ex.c **** */ - ARM GAS /tmp/ccHniR8O.s page 3 - - - 92:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash_ex.c **** #define FLASH_POSITION_IWDGSW_BIT 8U - 93:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash_ex.c **** #define FLASH_POSITION_OB_USERDATA0_BIT 16U - 94:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash_ex.c **** #define FLASH_POSITION_OB_USERDATA1_BIT 24U - 95:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash_ex.c **** /** - 96:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash_ex.c **** * @} - 97:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash_ex.c **** */ - 98:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash_ex.c **** - 99:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash_ex.c **** /* Private macro -------------------------------------------------------------*/ - 100:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash_ex.c **** /** @defgroup FLASHEx_Private_Macros FLASHEx Private Macros - 101:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash_ex.c **** * @{ - 102:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash_ex.c **** */ - 103:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash_ex.c **** /** - 104:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash_ex.c **** * @} - 105:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash_ex.c **** */ - 106:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash_ex.c **** - 107:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash_ex.c **** /* Private variables ---------------------------------------------------------*/ - 108:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash_ex.c **** /* Private function prototypes -----------------------------------------------*/ - 109:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash_ex.c **** /** @defgroup FLASHEx_Private_Functions FLASHEx Private Functions - 110:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash_ex.c **** * @{ - 111:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash_ex.c **** */ - 112:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash_ex.c **** /* Erase operations */ - 113:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash_ex.c **** static void FLASH_MassErase(void); - 114:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash_ex.c **** void FLASH_PageErase(uint32_t PageAddress); - 115:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash_ex.c **** - 116:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash_ex.c **** /* Option bytes control */ - 117:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash_ex.c **** static HAL_StatusTypeDef FLASH_OB_EnableWRP(uint32_t WriteProtectPage); - 118:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash_ex.c **** static HAL_StatusTypeDef FLASH_OB_DisableWRP(uint32_t WriteProtectPage); - 119:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash_ex.c **** static HAL_StatusTypeDef FLASH_OB_RDP_LevelConfig(uint8_t ReadProtectLevel); - 120:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash_ex.c **** static HAL_StatusTypeDef FLASH_OB_UserConfig(uint8_t UserConfig); - 121:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash_ex.c **** static HAL_StatusTypeDef FLASH_OB_ProgramData(uint32_t Address, uint8_t Data); - 122:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash_ex.c **** static uint32_t FLASH_OB_GetWRP(void); - 123:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash_ex.c **** static uint32_t FLASH_OB_GetRDP(void); - 124:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash_ex.c **** static uint8_t FLASH_OB_GetUser(void); - 125:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash_ex.c **** - 126:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash_ex.c **** /** - 127:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash_ex.c **** * @} - 128:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash_ex.c **** */ - 129:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash_ex.c **** - 130:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash_ex.c **** /* Exported functions ---------------------------------------------------------*/ - 131:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash_ex.c **** /** @defgroup FLASHEx_Exported_Functions FLASHEx Exported Functions - 132:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash_ex.c **** * @{ - 133:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash_ex.c **** */ - 134:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash_ex.c **** - 135:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash_ex.c **** /** @defgroup FLASHEx_Exported_Functions_Group1 FLASHEx Memory Erasing functions - 136:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash_ex.c **** * @brief FLASH Memory Erasing functions - 137:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash_ex.c **** * - 138:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash_ex.c **** @verbatim - 139:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash_ex.c **** ============================================================================== - 140:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash_ex.c **** ##### FLASH Erasing Programming functions ##### - 141:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash_ex.c **** ============================================================================== - 142:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash_ex.c **** - 143:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash_ex.c **** [..] The FLASH Memory Erasing functions, includes the following functions: - 144:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash_ex.c **** (+) @ref HAL_FLASHEx_Erase: return only when erase has been done - 145:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash_ex.c **** (+) @ref HAL_FLASHEx_Erase_IT: end of erase is done when @ref HAL_FLASH_EndOfOperationCallback - 146:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash_ex.c **** is called with parameter 0xFFFFFFFF - 147:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash_ex.c **** - 148:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash_ex.c **** [..] Any operation of erase should follow these steps: - ARM GAS /tmp/ccHniR8O.s page 4 - - - 149:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash_ex.c **** (#) Call the @ref HAL_FLASH_Unlock() function to enable the flash control register and - 150:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash_ex.c **** program memory access. - 151:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash_ex.c **** (#) Call the desired function to erase page. - 152:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash_ex.c **** (#) Call the @ref HAL_FLASH_Lock() to disable the flash program memory access - 153:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash_ex.c **** (recommended to protect the FLASH memory against possible unwanted operation). - 154:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash_ex.c **** - 155:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash_ex.c **** @endverbatim - 156:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash_ex.c **** * @{ - 157:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash_ex.c **** */ - 158:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash_ex.c **** - 159:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash_ex.c **** - 160:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash_ex.c **** /** - 161:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash_ex.c **** * @brief Perform a mass erase or erase the specified FLASH memory pages - 162:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash_ex.c **** * @note To correctly run this function, the @ref HAL_FLASH_Unlock() function - 163:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash_ex.c **** * must be called before. - 164:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash_ex.c **** * Call the @ref HAL_FLASH_Lock() to disable the flash memory access - 165:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash_ex.c **** * (recommended to protect the FLASH memory against possible unwanted operation) - 166:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash_ex.c **** * @param[in] pEraseInit pointer to an FLASH_EraseInitTypeDef structure that - 167:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash_ex.c **** * contains the configuration information for the erasing. - 168:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash_ex.c **** * - 169:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash_ex.c **** * @param[out] PageError pointer to variable that - 170:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash_ex.c **** * contains the configuration information on faulty page in case of error - 171:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash_ex.c **** * (0xFFFFFFFF means that all the pages have been correctly erased) - 172:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash_ex.c **** * - 173:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash_ex.c **** * @retval HAL_StatusTypeDef HAL Status - 174:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash_ex.c **** */ - 175:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash_ex.c **** HAL_StatusTypeDef HAL_FLASHEx_Erase(FLASH_EraseInitTypeDef *pEraseInit, uint32_t *PageError) - 176:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash_ex.c **** { - 177:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash_ex.c **** HAL_StatusTypeDef status = HAL_ERROR; - 178:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash_ex.c **** uint32_t address = 0U; - 179:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash_ex.c **** - 180:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash_ex.c **** /* Process Locked */ - 181:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash_ex.c **** __HAL_LOCK(&pFlash); - 182:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash_ex.c **** - 183:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash_ex.c **** /* Check the parameters */ - 184:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash_ex.c **** assert_param(IS_FLASH_TYPEERASE(pEraseInit->TypeErase)); - 185:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash_ex.c **** - 186:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash_ex.c **** if (pEraseInit->TypeErase == FLASH_TYPEERASE_MASSERASE) - 187:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash_ex.c **** { - 188:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash_ex.c **** /* Mass Erase requested for Bank1 */ - 189:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash_ex.c **** /* Wait for last operation to be completed */ - 190:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash_ex.c **** if (FLASH_WaitForLastOperation((uint32_t)FLASH_TIMEOUT_VALUE) == HAL_OK) - 191:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash_ex.c **** { - 192:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash_ex.c **** /*Mass erase to be done*/ - 193:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash_ex.c **** FLASH_MassErase(); - 194:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash_ex.c **** - 195:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash_ex.c **** /* Wait for last operation to be completed */ - 196:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash_ex.c **** status = FLASH_WaitForLastOperation((uint32_t)FLASH_TIMEOUT_VALUE); - 197:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash_ex.c **** - 198:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash_ex.c **** /* If the erase operation is completed, disable the MER Bit */ - 199:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash_ex.c **** CLEAR_BIT(FLASH->CR, FLASH_CR_MER); - 200:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash_ex.c **** } - 201:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash_ex.c **** } - 202:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash_ex.c **** else - 203:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash_ex.c **** { - 204:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash_ex.c **** /* Page Erase is requested */ - 205:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash_ex.c **** /* Check the parameters */ - ARM GAS /tmp/ccHniR8O.s page 5 - - - 206:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash_ex.c **** assert_param(IS_FLASH_PROGRAM_ADDRESS(pEraseInit->PageAddress)); - 207:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash_ex.c **** assert_param(IS_FLASH_NB_PAGES(pEraseInit->PageAddress, pEraseInit->NbPages)); - 208:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash_ex.c **** - 209:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash_ex.c **** /* Page Erase requested on address located on bank1 */ - 210:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash_ex.c **** /* Wait for last operation to be completed */ - 211:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash_ex.c **** if (FLASH_WaitForLastOperation((uint32_t)FLASH_TIMEOUT_VALUE) == HAL_OK) - 212:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash_ex.c **** { - 213:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash_ex.c **** /*Initialization of PageError variable*/ - 214:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash_ex.c **** *PageError = 0xFFFFFFFFU; - 215:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash_ex.c **** - 216:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash_ex.c **** /* Erase page by page to be done*/ - 217:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash_ex.c **** for(address = pEraseInit->PageAddress; - 218:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash_ex.c **** address < ((pEraseInit->NbPages * FLASH_PAGE_SIZE) + pEraseInit->PageAddress); - 219:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash_ex.c **** address += FLASH_PAGE_SIZE) - 220:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash_ex.c **** { - 221:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash_ex.c **** FLASH_PageErase(address); - 222:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash_ex.c **** - 223:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash_ex.c **** /* Wait for last operation to be completed */ - 224:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash_ex.c **** status = FLASH_WaitForLastOperation((uint32_t)FLASH_TIMEOUT_VALUE); - 225:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash_ex.c **** - 226:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash_ex.c **** /* If the erase operation is completed, disable the PER Bit */ - 227:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash_ex.c **** CLEAR_BIT(FLASH->CR, FLASH_CR_PER); - 228:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash_ex.c **** - 229:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash_ex.c **** if (status != HAL_OK) - 230:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash_ex.c **** { - 231:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash_ex.c **** /* In case of error, stop erase procedure and return the faulty address */ - 232:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash_ex.c **** *PageError = address; - 233:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash_ex.c **** break; - 234:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash_ex.c **** } - 235:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash_ex.c **** } - 236:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash_ex.c **** } - 237:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash_ex.c **** } - 238:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash_ex.c **** - 239:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash_ex.c **** /* Process Unlocked */ - 240:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash_ex.c **** __HAL_UNLOCK(&pFlash); - 241:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash_ex.c **** - 242:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash_ex.c **** return status; - 243:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash_ex.c **** } - 244:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash_ex.c **** - 245:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash_ex.c **** /** - 246:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash_ex.c **** * @brief Perform a mass erase or erase the specified FLASH memory pages with interrupt enabled - 247:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash_ex.c **** * @note To correctly run this function, the @ref HAL_FLASH_Unlock() function - 248:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash_ex.c **** * must be called before. - 249:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash_ex.c **** * Call the @ref HAL_FLASH_Lock() to disable the flash memory access - 250:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash_ex.c **** * (recommended to protect the FLASH memory against possible unwanted operation) - 251:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash_ex.c **** * @param pEraseInit pointer to an FLASH_EraseInitTypeDef structure that - 252:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash_ex.c **** * contains the configuration information for the erasing. - 253:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash_ex.c **** * - 254:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash_ex.c **** * @retval HAL_StatusTypeDef HAL Status - 255:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash_ex.c **** */ - 256:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash_ex.c **** HAL_StatusTypeDef HAL_FLASHEx_Erase_IT(FLASH_EraseInitTypeDef *pEraseInit) - 257:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash_ex.c **** { - 258:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash_ex.c **** HAL_StatusTypeDef status = HAL_OK; - 259:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash_ex.c **** - 260:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash_ex.c **** /* Process Locked */ - 261:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash_ex.c **** __HAL_LOCK(&pFlash); - 262:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash_ex.c **** - ARM GAS /tmp/ccHniR8O.s page 6 - - - 263:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash_ex.c **** /* If procedure already ongoing, reject the next one */ - 264:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash_ex.c **** if (pFlash.ProcedureOnGoing != FLASH_PROC_NONE) - 265:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash_ex.c **** { - 266:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash_ex.c **** return HAL_ERROR; - 267:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash_ex.c **** } - 268:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash_ex.c **** - 269:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash_ex.c **** /* Check the parameters */ - 270:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash_ex.c **** assert_param(IS_FLASH_TYPEERASE(pEraseInit->TypeErase)); - 271:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash_ex.c **** - 272:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash_ex.c **** /* Enable End of FLASH Operation and Error source interrupts */ - 273:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash_ex.c **** __HAL_FLASH_ENABLE_IT(FLASH_IT_EOP | FLASH_IT_ERR); - 274:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash_ex.c **** - 275:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash_ex.c **** if (pEraseInit->TypeErase == FLASH_TYPEERASE_MASSERASE) - 276:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash_ex.c **** { - 277:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash_ex.c **** /*Mass erase to be done*/ - 278:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash_ex.c **** pFlash.ProcedureOnGoing = FLASH_PROC_MASSERASE; - 279:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash_ex.c **** FLASH_MassErase(); - 280:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash_ex.c **** } - 281:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash_ex.c **** else - 282:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash_ex.c **** { - 283:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash_ex.c **** /* Erase by page to be done*/ - 284:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash_ex.c **** - 285:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash_ex.c **** /* Check the parameters */ - 286:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash_ex.c **** assert_param(IS_FLASH_PROGRAM_ADDRESS(pEraseInit->PageAddress)); - 287:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash_ex.c **** assert_param(IS_FLASH_NB_PAGES(pEraseInit->PageAddress, pEraseInit->NbPages)); - 288:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash_ex.c **** - 289:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash_ex.c **** pFlash.ProcedureOnGoing = FLASH_PROC_PAGEERASE; - 290:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash_ex.c **** pFlash.DataRemaining = pEraseInit->NbPages; - 291:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash_ex.c **** pFlash.Address = pEraseInit->PageAddress; - 292:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash_ex.c **** - 293:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash_ex.c **** /*Erase 1st page and wait for IT*/ - 294:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash_ex.c **** FLASH_PageErase(pEraseInit->PageAddress); - 295:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash_ex.c **** } - 296:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash_ex.c **** - 297:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash_ex.c **** return status; - 298:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash_ex.c **** } - 299:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash_ex.c **** - 300:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash_ex.c **** /** - 301:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash_ex.c **** * @} - 302:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash_ex.c **** */ - 303:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash_ex.c **** - 304:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash_ex.c **** /** @defgroup FLASHEx_Exported_Functions_Group2 Option Bytes Programming functions - 305:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash_ex.c **** * @brief Option Bytes Programming functions - 306:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash_ex.c **** * - 307:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash_ex.c **** @verbatim - 308:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash_ex.c **** ============================================================================== - 309:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash_ex.c **** ##### Option Bytes Programming functions ##### - 310:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash_ex.c **** ============================================================================== - 311:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash_ex.c **** [..] - 312:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash_ex.c **** This subsection provides a set of functions allowing to control the FLASH - 313:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash_ex.c **** option bytes operations. - 314:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash_ex.c **** - 315:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash_ex.c **** @endverbatim - 316:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash_ex.c **** * @{ - 317:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash_ex.c **** */ - 318:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash_ex.c **** - 319:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash_ex.c **** /** - ARM GAS /tmp/ccHniR8O.s page 7 - - - 320:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash_ex.c **** * @brief Erases the FLASH option bytes. - 321:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash_ex.c **** * @note This functions erases all option bytes except the Read protection (RDP). - 322:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash_ex.c **** * The function @ref HAL_FLASH_Unlock() should be called before to unlock the FLASH interf - 323:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash_ex.c **** * The function @ref HAL_FLASH_OB_Unlock() should be called before to unlock the options b - 324:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash_ex.c **** * The function @ref HAL_FLASH_OB_Launch() should be called after to force the reload of t - 325:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash_ex.c **** * (system reset will occur) - 326:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash_ex.c **** * @retval HAL status - 327:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash_ex.c **** */ - 328:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash_ex.c **** - 329:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash_ex.c **** HAL_StatusTypeDef HAL_FLASHEx_OBErase(void) - 330:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash_ex.c **** { - 331:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash_ex.c **** uint8_t rdptmp = OB_RDP_LEVEL_0; - 332:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash_ex.c **** HAL_StatusTypeDef status = HAL_ERROR; - 333:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash_ex.c **** - 334:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash_ex.c **** /* Get the actual read protection Option Byte value */ - 335:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash_ex.c **** rdptmp = FLASH_OB_GetRDP(); - 336:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash_ex.c **** - 337:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash_ex.c **** /* Wait for last operation to be completed */ - 338:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash_ex.c **** status = FLASH_WaitForLastOperation((uint32_t)FLASH_TIMEOUT_VALUE); - 339:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash_ex.c **** - 340:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash_ex.c **** if(status == HAL_OK) - 341:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash_ex.c **** { - 342:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash_ex.c **** /* Clean the error context */ - 343:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash_ex.c **** pFlash.ErrorCode = HAL_FLASH_ERROR_NONE; - 344:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash_ex.c **** - 345:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash_ex.c **** /* If the previous operation is completed, proceed to erase the option bytes */ - 346:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash_ex.c **** SET_BIT(FLASH->CR, FLASH_CR_OPTER); - 347:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash_ex.c **** SET_BIT(FLASH->CR, FLASH_CR_STRT); - 348:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash_ex.c **** - 349:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash_ex.c **** /* Wait for last operation to be completed */ - 350:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash_ex.c **** status = FLASH_WaitForLastOperation((uint32_t)FLASH_TIMEOUT_VALUE); - 351:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash_ex.c **** - 352:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash_ex.c **** /* If the erase operation is completed, disable the OPTER Bit */ - 353:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash_ex.c **** CLEAR_BIT(FLASH->CR, FLASH_CR_OPTER); - 354:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash_ex.c **** - 355:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash_ex.c **** if(status == HAL_OK) - 356:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash_ex.c **** { - 357:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash_ex.c **** /* Restore the last read protection Option Byte value */ - 358:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash_ex.c **** status = FLASH_OB_RDP_LevelConfig(rdptmp); - 359:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash_ex.c **** } - 360:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash_ex.c **** } - 361:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash_ex.c **** - 362:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash_ex.c **** /* Return the erase status */ - 363:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash_ex.c **** return status; - 364:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash_ex.c **** } - 365:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash_ex.c **** - 366:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash_ex.c **** /** - 367:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash_ex.c **** * @brief Program option bytes - 368:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash_ex.c **** * @note The function @ref HAL_FLASH_Unlock() should be called before to unlock the FLASH interf - 369:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash_ex.c **** * The function @ref HAL_FLASH_OB_Unlock() should be called before to unlock the options b - 370:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash_ex.c **** * The function @ref HAL_FLASH_OB_Launch() should be called after to force the reload of t - 371:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash_ex.c **** * (system reset will occur) - 372:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash_ex.c **** * - 373:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash_ex.c **** * @param pOBInit pointer to an FLASH_OBInitStruct structure that - 374:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash_ex.c **** * contains the configuration information for the programming. - 375:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash_ex.c **** * - 376:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash_ex.c **** * @retval HAL_StatusTypeDef HAL Status - ARM GAS /tmp/ccHniR8O.s page 8 - - - 377:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash_ex.c **** */ - 378:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash_ex.c **** HAL_StatusTypeDef HAL_FLASHEx_OBProgram(FLASH_OBProgramInitTypeDef *pOBInit) - 379:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash_ex.c **** { - 380:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash_ex.c **** HAL_StatusTypeDef status = HAL_ERROR; - 381:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash_ex.c **** - 382:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash_ex.c **** /* Process Locked */ - 383:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash_ex.c **** __HAL_LOCK(&pFlash); - 384:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash_ex.c **** - 385:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash_ex.c **** /* Check the parameters */ - 386:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash_ex.c **** assert_param(IS_OPTIONBYTE(pOBInit->OptionType)); - 387:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash_ex.c **** - 388:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash_ex.c **** /* Write protection configuration */ - 389:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash_ex.c **** if((pOBInit->OptionType & OPTIONBYTE_WRP) == OPTIONBYTE_WRP) - 390:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash_ex.c **** { - 391:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash_ex.c **** assert_param(IS_WRPSTATE(pOBInit->WRPState)); - 392:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash_ex.c **** if (pOBInit->WRPState == OB_WRPSTATE_ENABLE) - 393:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash_ex.c **** { - 394:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash_ex.c **** /* Enable of Write protection on the selected page */ - 395:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash_ex.c **** status = FLASH_OB_EnableWRP(pOBInit->WRPPage); - 396:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash_ex.c **** } - 397:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash_ex.c **** else - 398:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash_ex.c **** { - 399:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash_ex.c **** /* Disable of Write protection on the selected page */ - 400:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash_ex.c **** status = FLASH_OB_DisableWRP(pOBInit->WRPPage); - 401:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash_ex.c **** } - 402:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash_ex.c **** if (status != HAL_OK) - 403:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash_ex.c **** { - 404:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash_ex.c **** /* Process Unlocked */ - 405:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash_ex.c **** __HAL_UNLOCK(&pFlash); - 406:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash_ex.c **** return status; - 407:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash_ex.c **** } - 408:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash_ex.c **** } - 409:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash_ex.c **** - 410:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash_ex.c **** /* Read protection configuration */ - 411:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash_ex.c **** if((pOBInit->OptionType & OPTIONBYTE_RDP) == OPTIONBYTE_RDP) - 412:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash_ex.c **** { - 413:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash_ex.c **** status = FLASH_OB_RDP_LevelConfig(pOBInit->RDPLevel); - 414:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash_ex.c **** if (status != HAL_OK) - 415:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash_ex.c **** { - 416:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash_ex.c **** /* Process Unlocked */ - 417:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash_ex.c **** __HAL_UNLOCK(&pFlash); - 418:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash_ex.c **** return status; - 419:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash_ex.c **** } - 420:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash_ex.c **** } - 421:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash_ex.c **** - 422:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash_ex.c **** /* USER configuration */ - 423:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash_ex.c **** if((pOBInit->OptionType & OPTIONBYTE_USER) == OPTIONBYTE_USER) - 424:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash_ex.c **** { - 425:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash_ex.c **** status = FLASH_OB_UserConfig(pOBInit->USERConfig); - 426:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash_ex.c **** if (status != HAL_OK) - 427:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash_ex.c **** { - 428:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash_ex.c **** /* Process Unlocked */ - 429:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash_ex.c **** __HAL_UNLOCK(&pFlash); - 430:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash_ex.c **** return status; - 431:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash_ex.c **** } - 432:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash_ex.c **** } - 433:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash_ex.c **** - ARM GAS /tmp/ccHniR8O.s page 9 - - - 434:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash_ex.c **** /* DATA configuration*/ - 435:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash_ex.c **** if((pOBInit->OptionType & OPTIONBYTE_DATA) == OPTIONBYTE_DATA) - 436:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash_ex.c **** { - 437:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash_ex.c **** status = FLASH_OB_ProgramData(pOBInit->DATAAddress, pOBInit->DATAData); - 438:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash_ex.c **** if (status != HAL_OK) - 439:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash_ex.c **** { - 440:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash_ex.c **** /* Process Unlocked */ - 441:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash_ex.c **** __HAL_UNLOCK(&pFlash); - 442:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash_ex.c **** return status; - 443:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash_ex.c **** } - 444:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash_ex.c **** } - 445:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash_ex.c **** - 446:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash_ex.c **** /* Process Unlocked */ - 447:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash_ex.c **** __HAL_UNLOCK(&pFlash); - 448:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash_ex.c **** - 449:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash_ex.c **** return status; - 450:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash_ex.c **** } - 451:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash_ex.c **** - 452:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash_ex.c **** /** - 453:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash_ex.c **** * @brief Get the Option byte configuration - 454:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash_ex.c **** * @param pOBInit pointer to an FLASH_OBInitStruct structure that - 455:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash_ex.c **** * contains the configuration information for the programming. - 456:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash_ex.c **** * - 457:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash_ex.c **** * @retval None - 458:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash_ex.c **** */ - 459:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash_ex.c **** void HAL_FLASHEx_OBGetConfig(FLASH_OBProgramInitTypeDef *pOBInit) - 460:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash_ex.c **** { - 461:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash_ex.c **** pOBInit->OptionType = OPTIONBYTE_WRP | OPTIONBYTE_RDP | OPTIONBYTE_USER; - 462:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash_ex.c **** - 463:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash_ex.c **** /*Get WRP*/ - 464:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash_ex.c **** pOBInit->WRPPage = FLASH_OB_GetWRP(); - 465:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash_ex.c **** - 466:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash_ex.c **** /*Get RDP Level*/ - 467:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash_ex.c **** pOBInit->RDPLevel = FLASH_OB_GetRDP(); - 468:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash_ex.c **** - 469:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash_ex.c **** /*Get USER*/ - 470:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash_ex.c **** pOBInit->USERConfig = FLASH_OB_GetUser(); - 471:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash_ex.c **** } - 472:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash_ex.c **** - 473:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash_ex.c **** /** - 474:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash_ex.c **** * @brief Get the Option byte user data - 475:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash_ex.c **** * @param DATAAdress Address of the option byte DATA - 476:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash_ex.c **** * This parameter can be one of the following values: - 477:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash_ex.c **** * @arg @ref OB_DATA_ADDRESS_DATA0 - 478:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash_ex.c **** * @arg @ref OB_DATA_ADDRESS_DATA1 - 479:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash_ex.c **** * @retval Value programmed in USER data - 480:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash_ex.c **** */ - 481:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash_ex.c **** uint32_t HAL_FLASHEx_OBGetUserData(uint32_t DATAAdress) - 482:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash_ex.c **** { - 483:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash_ex.c **** uint32_t value = 0U; - 484:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash_ex.c **** - 485:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash_ex.c **** if (DATAAdress == OB_DATA_ADDRESS_DATA0) - 486:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash_ex.c **** { - 487:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash_ex.c **** /* Get value programmed in OB USER Data0 */ - 488:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash_ex.c **** value = READ_BIT(FLASH->OBR, FLASH_OBR_DATA0) >> FLASH_POSITION_OB_USERDATA0_BIT; - 489:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash_ex.c **** } - 490:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash_ex.c **** else - ARM GAS /tmp/ccHniR8O.s page 10 - - - 491:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash_ex.c **** { - 492:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash_ex.c **** /* Get value programmed in OB USER Data1 */ - 493:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash_ex.c **** value = READ_BIT(FLASH->OBR, FLASH_OBR_DATA1) >> FLASH_POSITION_OB_USERDATA1_BIT; - 494:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash_ex.c **** } - 495:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash_ex.c **** - 496:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash_ex.c **** return value; - 497:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash_ex.c **** } - 498:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash_ex.c **** - 499:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash_ex.c **** /** - 500:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash_ex.c **** * @} - 501:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash_ex.c **** */ - 502:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash_ex.c **** - 503:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash_ex.c **** /** - 504:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash_ex.c **** * @} - 505:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash_ex.c **** */ - 506:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash_ex.c **** - 507:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash_ex.c **** /** @addtogroup FLASHEx_Private_Functions - 508:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash_ex.c **** * @{ - 509:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash_ex.c **** */ - 510:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash_ex.c **** - 511:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash_ex.c **** /** - 512:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash_ex.c **** * @brief Full erase of FLASH memory Bank - 513:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash_ex.c **** * - 514:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash_ex.c **** * @retval None - 515:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash_ex.c **** */ - 516:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash_ex.c **** static void FLASH_MassErase(void) - 517:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash_ex.c **** { - 25 .loc 1 517 0 - 26 .cfi_startproc - 27 @ args = 0, pretend = 0, frame = 0 - 28 @ frame_needed = 0, uses_anonymous_args = 0 - 29 @ link register save eliminated. - 518:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash_ex.c **** /* Clean the error context */ - 519:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash_ex.c **** pFlash.ErrorCode = HAL_FLASH_ERROR_NONE; - 30 .loc 1 519 0 - 31 0000 064B ldr r3, .L2 - 32 0002 0022 movs r2, #0 - 33 0004 DA61 str r2, [r3, #28] - 520:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash_ex.c **** - 521:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash_ex.c **** /* Only bank1 will be erased*/ - 522:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash_ex.c **** SET_BIT(FLASH->CR, FLASH_CR_MER); - 34 .loc 1 522 0 - 35 0006 064B ldr r3, .L2+4 - 36 0008 1A69 ldr r2, [r3, #16] - 37 000a 0421 movs r1, #4 - 38 000c 0A43 orrs r2, r1 - 39 000e 1A61 str r2, [r3, #16] - 523:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash_ex.c **** SET_BIT(FLASH->CR, FLASH_CR_STRT); - 40 .loc 1 523 0 - 41 0010 1A69 ldr r2, [r3, #16] - 42 0012 3C31 adds r1, r1, #60 - 43 0014 0A43 orrs r2, r1 - 44 0016 1A61 str r2, [r3, #16] - 524:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash_ex.c **** } - 45 .loc 1 524 0 - 46 @ sp needed - 47 0018 7047 bx lr - ARM GAS /tmp/ccHniR8O.s page 11 - - - 48 .L3: - 49 001a C046 .align 2 - 50 .L2: - 51 001c 00000000 .word pFlash - 52 0020 00200240 .word 1073881088 - 53 .cfi_endproc - 54 .LFE43: - 56 .section .text.FLASH_OB_GetWRP,"ax",%progbits - 57 .align 1 - 58 .syntax unified - 59 .code 16 - 60 .thumb_func - 61 .fpu softvfp - 63 FLASH_OB_GetWRP: - 64 .LFB49: - 525:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash_ex.c **** - 526:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash_ex.c **** /** - 527:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash_ex.c **** * @brief Enable the write protection of the desired pages - 528:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash_ex.c **** * @note An option byte erase is done automatically in this function. - 529:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash_ex.c **** * @note When the memory read protection level is selected (RDP level = 1), - 530:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash_ex.c **** * it is not possible to program or erase the flash page i if - 531:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash_ex.c **** * debug features are connected or boot code is executed in RAM, even if nWRPi = 1 - 532:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash_ex.c **** * - 533:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash_ex.c **** * @param WriteProtectPage specifies the page(s) to be write protected. - 534:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash_ex.c **** * The value of this parameter depend on device used within the same series - 535:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash_ex.c **** * @retval HAL status - 536:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash_ex.c **** */ - 537:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash_ex.c **** static HAL_StatusTypeDef FLASH_OB_EnableWRP(uint32_t WriteProtectPage) - 538:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash_ex.c **** { - 539:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash_ex.c **** HAL_StatusTypeDef status = HAL_OK; - 540:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash_ex.c **** uint16_t WRP0_Data = 0xFFFFU; - 541:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash_ex.c **** #if defined(OB_WRP1_WRP1) - 542:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash_ex.c **** uint16_t WRP1_Data = 0xFFFFU; - 543:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash_ex.c **** #endif /* OB_WRP1_WRP1 */ - 544:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash_ex.c **** #if defined(OB_WRP2_WRP2) - 545:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash_ex.c **** uint16_t WRP2_Data = 0xFFFFU; - 546:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash_ex.c **** #endif /* OB_WRP2_WRP2 */ - 547:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash_ex.c **** #if defined(OB_WRP3_WRP3) - 548:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash_ex.c **** uint16_t WRP3_Data = 0xFFFFU; - 549:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash_ex.c **** #endif /* OB_WRP3_WRP3 */ - 550:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash_ex.c **** - 551:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash_ex.c **** /* Check the parameters */ - 552:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash_ex.c **** assert_param(IS_OB_WRP(WriteProtectPage)); - 553:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash_ex.c **** - 554:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash_ex.c **** /* Get current write protected pages and the new pages to be protected ******/ - 555:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash_ex.c **** WriteProtectPage = (uint32_t)(~((~FLASH_OB_GetWRP()) | WriteProtectPage)); - 556:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash_ex.c **** - 557:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash_ex.c **** #if defined(OB_WRP_PAGES0TO15MASK) - 558:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash_ex.c **** WRP0_Data = (uint16_t)(WriteProtectPage & OB_WRP_PAGES0TO15MASK); - 559:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash_ex.c **** #elif defined(OB_WRP_PAGES0TO31MASK) - 560:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash_ex.c **** WRP0_Data = (uint16_t)(WriteProtectPage & OB_WRP_PAGES0TO31MASK); - 561:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash_ex.c **** #endif /* OB_WRP_PAGES0TO31MASK */ - 562:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash_ex.c **** - 563:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash_ex.c **** #if defined(OB_WRP_PAGES16TO31MASK) - 564:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash_ex.c **** WRP1_Data = (uint16_t)((WriteProtectPage & OB_WRP_PAGES16TO31MASK) >> 8U); - 565:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash_ex.c **** #elif defined(OB_WRP_PAGES32TO63MASK) - 566:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash_ex.c **** WRP1_Data = (uint16_t)((WriteProtectPage & OB_WRP_PAGES32TO63MASK) >> 8U); - ARM GAS /tmp/ccHniR8O.s page 12 - - - 567:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash_ex.c **** #endif /* OB_WRP_PAGES32TO63MASK */ - 568:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash_ex.c **** - 569:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash_ex.c **** #if defined(OB_WRP_PAGES32TO47MASK) - 570:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash_ex.c **** WRP2_Data = (uint16_t)((WriteProtectPage & OB_WRP_PAGES32TO47MASK) >> 16U); - 571:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash_ex.c **** #endif /* OB_WRP_PAGES32TO47MASK */ - 572:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash_ex.c **** - 573:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash_ex.c **** #if defined(OB_WRP_PAGES48TO63MASK) - 574:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash_ex.c **** WRP3_Data = (uint16_t)((WriteProtectPage & OB_WRP_PAGES48TO63MASK) >> 24U); - 575:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash_ex.c **** #elif defined(OB_WRP_PAGES48TO127MASK) - 576:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash_ex.c **** WRP3_Data = (uint16_t)((WriteProtectPage & OB_WRP_PAGES48TO127MASK) >> 24U); - 577:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash_ex.c **** #endif /* OB_WRP_PAGES48TO63MASK */ - 578:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash_ex.c **** - 579:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash_ex.c **** /* Wait for last operation to be completed */ - 580:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash_ex.c **** status = FLASH_WaitForLastOperation((uint32_t)FLASH_TIMEOUT_VALUE); - 581:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash_ex.c **** - 582:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash_ex.c **** if(status == HAL_OK) - 583:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash_ex.c **** { - 584:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash_ex.c **** /* Clean the error context */ - 585:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash_ex.c **** pFlash.ErrorCode = HAL_FLASH_ERROR_NONE; - 586:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash_ex.c **** - 587:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash_ex.c **** /* To be able to write again option byte, need to perform a option byte erase */ - 588:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash_ex.c **** status = HAL_FLASHEx_OBErase(); - 589:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash_ex.c **** if (status == HAL_OK) - 590:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash_ex.c **** { - 591:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash_ex.c **** /* Enable write protection */ - 592:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash_ex.c **** SET_BIT(FLASH->CR, FLASH_CR_OPTPG); - 593:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash_ex.c **** - 594:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash_ex.c **** #if defined(OB_WRP0_WRP0) - 595:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash_ex.c **** if(WRP0_Data != 0xFFU) - 596:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash_ex.c **** { - 597:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash_ex.c **** OB->WRP0 &= WRP0_Data; - 598:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash_ex.c **** - 599:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash_ex.c **** /* Wait for last operation to be completed */ - 600:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash_ex.c **** status = FLASH_WaitForLastOperation((uint32_t)FLASH_TIMEOUT_VALUE); - 601:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash_ex.c **** } - 602:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash_ex.c **** #endif /* OB_WRP0_WRP0 */ - 603:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash_ex.c **** - 604:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash_ex.c **** #if defined(OB_WRP1_WRP1) - 605:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash_ex.c **** if((status == HAL_OK) && (WRP1_Data != 0xFFU)) - 606:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash_ex.c **** { - 607:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash_ex.c **** OB->WRP1 &= WRP1_Data; - 608:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash_ex.c **** - 609:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash_ex.c **** /* Wait for last operation to be completed */ - 610:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash_ex.c **** status = FLASH_WaitForLastOperation((uint32_t)FLASH_TIMEOUT_VALUE); - 611:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash_ex.c **** } - 612:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash_ex.c **** #endif /* OB_WRP1_WRP1 */ - 613:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash_ex.c **** - 614:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash_ex.c **** #if defined(OB_WRP2_WRP2) - 615:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash_ex.c **** if((status == HAL_OK) && (WRP2_Data != 0xFFU)) - 616:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash_ex.c **** { - 617:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash_ex.c **** OB->WRP2 &= WRP2_Data; - 618:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash_ex.c **** - 619:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash_ex.c **** /* Wait for last operation to be completed */ - 620:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash_ex.c **** status = FLASH_WaitForLastOperation((uint32_t)FLASH_TIMEOUT_VALUE); - 621:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash_ex.c **** } - 622:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash_ex.c **** #endif /* OB_WRP2_WRP2 */ - 623:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash_ex.c **** - ARM GAS /tmp/ccHniR8O.s page 13 - - - 624:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash_ex.c **** #if defined(OB_WRP3_WRP3) - 625:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash_ex.c **** if((status == HAL_OK) && (WRP3_Data != 0xFFU)) - 626:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash_ex.c **** { - 627:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash_ex.c **** OB->WRP3 &= WRP3_Data; - 628:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash_ex.c **** - 629:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash_ex.c **** /* Wait for last operation to be completed */ - 630:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash_ex.c **** status = FLASH_WaitForLastOperation((uint32_t)FLASH_TIMEOUT_VALUE); - 631:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash_ex.c **** } - 632:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash_ex.c **** #endif /* OB_WRP3_WRP3 */ - 633:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash_ex.c **** - 634:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash_ex.c **** /* if the program operation is completed, disable the OPTPG Bit */ - 635:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash_ex.c **** CLEAR_BIT(FLASH->CR, FLASH_CR_OPTPG); - 636:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash_ex.c **** } - 637:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash_ex.c **** } - 638:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash_ex.c **** - 639:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash_ex.c **** return status; - 640:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash_ex.c **** } - 641:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash_ex.c **** - 642:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash_ex.c **** /** - 643:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash_ex.c **** * @brief Disable the write protection of the desired pages - 644:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash_ex.c **** * @note An option byte erase is done automatically in this function. - 645:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash_ex.c **** * @note When the memory read protection level is selected (RDP level = 1), - 646:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash_ex.c **** * it is not possible to program or erase the flash page i if - 647:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash_ex.c **** * debug features are connected or boot code is executed in RAM, even if nWRPi = 1 - 648:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash_ex.c **** * - 649:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash_ex.c **** * @param WriteProtectPage specifies the page(s) to be write unprotected. - 650:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash_ex.c **** * The value of this parameter depend on device used within the same series - 651:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash_ex.c **** * @retval HAL status - 652:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash_ex.c **** */ - 653:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash_ex.c **** static HAL_StatusTypeDef FLASH_OB_DisableWRP(uint32_t WriteProtectPage) - 654:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash_ex.c **** { - 655:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash_ex.c **** HAL_StatusTypeDef status = HAL_OK; - 656:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash_ex.c **** uint16_t WRP0_Data = 0xFFFFU; - 657:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash_ex.c **** #if defined(OB_WRP1_WRP1) - 658:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash_ex.c **** uint16_t WRP1_Data = 0xFFFFU; - 659:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash_ex.c **** #endif /* OB_WRP1_WRP1 */ - 660:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash_ex.c **** #if defined(OB_WRP2_WRP2) - 661:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash_ex.c **** uint16_t WRP2_Data = 0xFFFFU; - 662:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash_ex.c **** #endif /* OB_WRP2_WRP2 */ - 663:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash_ex.c **** #if defined(OB_WRP3_WRP3) - 664:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash_ex.c **** uint16_t WRP3_Data = 0xFFFFU; - 665:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash_ex.c **** #endif /* OB_WRP3_WRP3 */ - 666:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash_ex.c **** - 667:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash_ex.c **** /* Check the parameters */ - 668:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash_ex.c **** assert_param(IS_OB_WRP(WriteProtectPage)); - 669:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash_ex.c **** - 670:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash_ex.c **** /* Get current write protected pages and the new pages to be unprotected ******/ - 671:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash_ex.c **** WriteProtectPage = (FLASH_OB_GetWRP() | WriteProtectPage); - 672:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash_ex.c **** - 673:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash_ex.c **** #if defined(OB_WRP_PAGES0TO15MASK) - 674:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash_ex.c **** WRP0_Data = (uint16_t)(WriteProtectPage & OB_WRP_PAGES0TO15MASK); - 675:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash_ex.c **** #elif defined(OB_WRP_PAGES0TO31MASK) - 676:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash_ex.c **** WRP0_Data = (uint16_t)(WriteProtectPage & OB_WRP_PAGES0TO31MASK); - 677:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash_ex.c **** #endif /* OB_WRP_PAGES0TO31MASK */ - 678:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash_ex.c **** - 679:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash_ex.c **** #if defined(OB_WRP_PAGES16TO31MASK) - 680:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash_ex.c **** WRP1_Data = (uint16_t)((WriteProtectPage & OB_WRP_PAGES16TO31MASK) >> 8U); - ARM GAS /tmp/ccHniR8O.s page 14 - - - 681:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash_ex.c **** #elif defined(OB_WRP_PAGES32TO63MASK) - 682:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash_ex.c **** WRP1_Data = (uint16_t)((WriteProtectPage & OB_WRP_PAGES32TO63MASK) >> 8U); - 683:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash_ex.c **** #endif /* OB_WRP_PAGES32TO63MASK */ - 684:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash_ex.c **** - 685:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash_ex.c **** #if defined(OB_WRP_PAGES32TO47MASK) - 686:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash_ex.c **** WRP2_Data = (uint16_t)((WriteProtectPage & OB_WRP_PAGES32TO47MASK) >> 16U); - 687:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash_ex.c **** #endif /* OB_WRP_PAGES32TO47MASK */ - 688:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash_ex.c **** - 689:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash_ex.c **** #if defined(OB_WRP_PAGES48TO63MASK) - 690:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash_ex.c **** WRP3_Data = (uint16_t)((WriteProtectPage & OB_WRP_PAGES48TO63MASK) >> 24U); - 691:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash_ex.c **** #elif defined(OB_WRP_PAGES48TO127MASK) - 692:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash_ex.c **** WRP3_Data = (uint16_t)((WriteProtectPage & OB_WRP_PAGES48TO127MASK) >> 24U); - 693:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash_ex.c **** #endif /* OB_WRP_PAGES48TO63MASK */ - 694:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash_ex.c **** - 695:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash_ex.c **** - 696:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash_ex.c **** /* Wait for last operation to be completed */ - 697:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash_ex.c **** status = FLASH_WaitForLastOperation((uint32_t)FLASH_TIMEOUT_VALUE); - 698:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash_ex.c **** - 699:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash_ex.c **** if(status == HAL_OK) - 700:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash_ex.c **** { - 701:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash_ex.c **** /* Clean the error context */ - 702:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash_ex.c **** pFlash.ErrorCode = HAL_FLASH_ERROR_NONE; - 703:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash_ex.c **** - 704:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash_ex.c **** /* To be able to write again option byte, need to perform a option byte erase */ - 705:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash_ex.c **** status = HAL_FLASHEx_OBErase(); - 706:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash_ex.c **** if (status == HAL_OK) - 707:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash_ex.c **** { - 708:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash_ex.c **** SET_BIT(FLASH->CR, FLASH_CR_OPTPG); - 709:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash_ex.c **** - 710:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash_ex.c **** #if defined(OB_WRP0_WRP0) - 711:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash_ex.c **** if(WRP0_Data != 0xFFU) - 712:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash_ex.c **** { - 713:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash_ex.c **** OB->WRP0 |= WRP0_Data; - 714:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash_ex.c **** - 715:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash_ex.c **** /* Wait for last operation to be completed */ - 716:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash_ex.c **** status = FLASH_WaitForLastOperation((uint32_t)FLASH_TIMEOUT_VALUE); - 717:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash_ex.c **** } - 718:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash_ex.c **** #endif /* OB_WRP0_WRP0 */ - 719:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash_ex.c **** - 720:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash_ex.c **** #if defined(OB_WRP1_WRP1) - 721:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash_ex.c **** if((status == HAL_OK) && (WRP1_Data != 0xFFU)) - 722:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash_ex.c **** { - 723:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash_ex.c **** OB->WRP1 |= WRP1_Data; - 724:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash_ex.c **** - 725:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash_ex.c **** /* Wait for last operation to be completed */ - 726:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash_ex.c **** status = FLASH_WaitForLastOperation((uint32_t)FLASH_TIMEOUT_VALUE); - 727:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash_ex.c **** } - 728:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash_ex.c **** #endif /* OB_WRP1_WRP1 */ - 729:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash_ex.c **** - 730:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash_ex.c **** #if defined(OB_WRP2_WRP2) - 731:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash_ex.c **** if((status == HAL_OK) && (WRP2_Data != 0xFFU)) - 732:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash_ex.c **** { - 733:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash_ex.c **** OB->WRP2 |= WRP2_Data; - 734:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash_ex.c **** - 735:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash_ex.c **** /* Wait for last operation to be completed */ - 736:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash_ex.c **** status = FLASH_WaitForLastOperation((uint32_t)FLASH_TIMEOUT_VALUE); - 737:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash_ex.c **** } - ARM GAS /tmp/ccHniR8O.s page 15 - - - 738:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash_ex.c **** #endif /* OB_WRP2_WRP2 */ - 739:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash_ex.c **** - 740:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash_ex.c **** #if defined(OB_WRP3_WRP3) - 741:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash_ex.c **** if((status == HAL_OK) && (WRP3_Data != 0xFFU)) - 742:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash_ex.c **** { - 743:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash_ex.c **** OB->WRP3 |= WRP3_Data; - 744:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash_ex.c **** - 745:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash_ex.c **** /* Wait for last operation to be completed */ - 746:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash_ex.c **** status = FLASH_WaitForLastOperation((uint32_t)FLASH_TIMEOUT_VALUE); - 747:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash_ex.c **** } - 748:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash_ex.c **** #endif /* OB_WRP3_WRP3 */ - 749:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash_ex.c **** - 750:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash_ex.c **** /* if the program operation is completed, disable the OPTPG Bit */ - 751:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash_ex.c **** CLEAR_BIT(FLASH->CR, FLASH_CR_OPTPG); - 752:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash_ex.c **** } - 753:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash_ex.c **** } - 754:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash_ex.c **** return status; - 755:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash_ex.c **** } - 756:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash_ex.c **** - 757:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash_ex.c **** /** - 758:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash_ex.c **** * @brief Set the read protection level. - 759:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash_ex.c **** * @param ReadProtectLevel specifies the read protection level. - 760:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash_ex.c **** * This parameter can be one of the following values: - 761:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash_ex.c **** * @arg @ref OB_RDP_LEVEL_0 No protection - 762:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash_ex.c **** * @arg @ref OB_RDP_LEVEL_1 Read protection of the memory - 763:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash_ex.c **** * @arg @ref OB_RDP_LEVEL_2 Full chip protection - 764:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash_ex.c **** * @note Warning: When enabling OB_RDP level 2 it's no more possible to go back to level 1 or 0 - 765:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash_ex.c **** * @retval HAL status - 766:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash_ex.c **** */ - 767:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash_ex.c **** static HAL_StatusTypeDef FLASH_OB_RDP_LevelConfig(uint8_t ReadProtectLevel) - 768:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash_ex.c **** { - 769:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash_ex.c **** HAL_StatusTypeDef status = HAL_OK; - 770:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash_ex.c **** - 771:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash_ex.c **** /* Check the parameters */ - 772:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash_ex.c **** assert_param(IS_OB_RDP_LEVEL(ReadProtectLevel)); - 773:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash_ex.c **** - 774:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash_ex.c **** /* Wait for last operation to be completed */ - 775:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash_ex.c **** status = FLASH_WaitForLastOperation((uint32_t)FLASH_TIMEOUT_VALUE); - 776:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash_ex.c **** - 777:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash_ex.c **** if(status == HAL_OK) - 778:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash_ex.c **** { - 779:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash_ex.c **** /* Clean the error context */ - 780:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash_ex.c **** pFlash.ErrorCode = HAL_FLASH_ERROR_NONE; - 781:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash_ex.c **** - 782:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash_ex.c **** /* If the previous operation is completed, proceed to erase the option bytes */ - 783:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash_ex.c **** SET_BIT(FLASH->CR, FLASH_CR_OPTER); - 784:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash_ex.c **** SET_BIT(FLASH->CR, FLASH_CR_STRT); - 785:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash_ex.c **** - 786:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash_ex.c **** /* Wait for last operation to be completed */ - 787:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash_ex.c **** status = FLASH_WaitForLastOperation((uint32_t)FLASH_TIMEOUT_VALUE); - 788:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash_ex.c **** - 789:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash_ex.c **** /* If the erase operation is completed, disable the OPTER Bit */ - 790:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash_ex.c **** CLEAR_BIT(FLASH->CR, FLASH_CR_OPTER); - 791:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash_ex.c **** - 792:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash_ex.c **** if(status == HAL_OK) - 793:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash_ex.c **** { - 794:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash_ex.c **** /* Enable the Option Bytes Programming operation */ - ARM GAS /tmp/ccHniR8O.s page 16 - - - 795:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash_ex.c **** SET_BIT(FLASH->CR, FLASH_CR_OPTPG); - 796:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash_ex.c **** - 797:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash_ex.c **** WRITE_REG(OB->RDP, ReadProtectLevel); - 798:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash_ex.c **** - 799:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash_ex.c **** /* Wait for last operation to be completed */ - 800:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash_ex.c **** status = FLASH_WaitForLastOperation((uint32_t)FLASH_TIMEOUT_VALUE); - 801:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash_ex.c **** - 802:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash_ex.c **** /* if the program operation is completed, disable the OPTPG Bit */ - 803:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash_ex.c **** CLEAR_BIT(FLASH->CR, FLASH_CR_OPTPG); - 804:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash_ex.c **** } - 805:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash_ex.c **** } - 806:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash_ex.c **** - 807:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash_ex.c **** return status; - 808:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash_ex.c **** } - 809:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash_ex.c **** - 810:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash_ex.c **** /** - 811:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash_ex.c **** * @brief Program the FLASH User Option Byte. - 812:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash_ex.c **** * @note Programming of the OB should be performed only after an erase (otherwise PGERR occurs) - 813:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash_ex.c **** * @param UserConfig The FLASH User Option Bytes values: IWDG_SW(Bit0), RST_STOP(Bit1), RST_STDBY - 814:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash_ex.c **** * VDDA_Analog_Monitoring(Bit5) and SRAM_Parity_Enable(Bit6). - 815:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash_ex.c **** * For few devices, following option bytes are available: nBOOT0(Bit3) & BOOT_SEL(Bit7). - 816:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash_ex.c **** * @retval HAL status - 817:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash_ex.c **** */ - 818:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash_ex.c **** static HAL_StatusTypeDef FLASH_OB_UserConfig(uint8_t UserConfig) - 819:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash_ex.c **** { - 820:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash_ex.c **** HAL_StatusTypeDef status = HAL_OK; - 821:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash_ex.c **** - 822:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash_ex.c **** /* Check the parameters */ - 823:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash_ex.c **** assert_param(IS_OB_IWDG_SOURCE((UserConfig&OB_IWDG_SW))); - 824:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash_ex.c **** assert_param(IS_OB_STOP_SOURCE((UserConfig&OB_STOP_NO_RST))); - 825:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash_ex.c **** assert_param(IS_OB_STDBY_SOURCE((UserConfig&OB_STDBY_NO_RST))); - 826:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash_ex.c **** assert_param(IS_OB_BOOT1((UserConfig&OB_BOOT1_SET))); - 827:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash_ex.c **** assert_param(IS_OB_VDDA_ANALOG((UserConfig&OB_VDDA_ANALOG_ON))); - 828:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash_ex.c **** assert_param(IS_OB_SRAM_PARITY((UserConfig&OB_SRAM_PARITY_RESET))); - 829:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash_ex.c **** #if defined(FLASH_OBR_BOOT_SEL) - 830:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash_ex.c **** assert_param(IS_OB_BOOT_SEL((UserConfig&OB_BOOT_SEL_SET))); - 831:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash_ex.c **** assert_param(IS_OB_BOOT0((UserConfig&OB_BOOT0_SET))); - 832:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash_ex.c **** #endif /* FLASH_OBR_BOOT_SEL */ - 833:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash_ex.c **** - 834:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash_ex.c **** /* Wait for last operation to be completed */ - 835:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash_ex.c **** status = FLASH_WaitForLastOperation((uint32_t)FLASH_TIMEOUT_VALUE); - 836:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash_ex.c **** - 837:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash_ex.c **** if(status == HAL_OK) - 838:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash_ex.c **** { - 839:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash_ex.c **** /* Clean the error context */ - 840:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash_ex.c **** pFlash.ErrorCode = HAL_FLASH_ERROR_NONE; - 841:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash_ex.c **** - 842:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash_ex.c **** /* Enable the Option Bytes Programming operation */ - 843:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash_ex.c **** SET_BIT(FLASH->CR, FLASH_CR_OPTPG); - 844:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash_ex.c **** - 845:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash_ex.c **** #if defined(FLASH_OBR_BOOT_SEL) - 846:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash_ex.c **** OB->USER = UserConfig; - 847:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash_ex.c **** #else - 848:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash_ex.c **** OB->USER = (UserConfig | 0x88U); - 849:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash_ex.c **** #endif - 850:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash_ex.c **** - 851:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash_ex.c **** /* Wait for last operation to be completed */ - ARM GAS /tmp/ccHniR8O.s page 17 - - - 852:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash_ex.c **** status = FLASH_WaitForLastOperation((uint32_t)FLASH_TIMEOUT_VALUE); - 853:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash_ex.c **** - 854:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash_ex.c **** /* if the program operation is completed, disable the OPTPG Bit */ - 855:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash_ex.c **** CLEAR_BIT(FLASH->CR, FLASH_CR_OPTPG); - 856:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash_ex.c **** } - 857:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash_ex.c **** - 858:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash_ex.c **** return status; - 859:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash_ex.c **** } - 860:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash_ex.c **** - 861:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash_ex.c **** /** - 862:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash_ex.c **** * @brief Programs a half word at a specified Option Byte Data address. - 863:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash_ex.c **** * @note The function @ref HAL_FLASH_Unlock() should be called before to unlock the FLASH interf - 864:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash_ex.c **** * The function @ref HAL_FLASH_OB_Unlock() should be called before to unlock the options b - 865:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash_ex.c **** * The function @ref HAL_FLASH_OB_Launch() should be called after to force the reload of t - 866:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash_ex.c **** * (system reset will occur) - 867:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash_ex.c **** * Programming of the OB should be performed only after an erase (otherwise PGERR occurs) - 868:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash_ex.c **** * @param Address specifies the address to be programmed. - 869:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash_ex.c **** * This parameter can be 0x1FFFF804 or 0x1FFFF806. - 870:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash_ex.c **** * @param Data specifies the data to be programmed. - 871:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash_ex.c **** * @retval HAL status - 872:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash_ex.c **** */ - 873:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash_ex.c **** static HAL_StatusTypeDef FLASH_OB_ProgramData(uint32_t Address, uint8_t Data) - 874:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash_ex.c **** { - 875:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash_ex.c **** HAL_StatusTypeDef status = HAL_ERROR; - 876:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash_ex.c **** - 877:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash_ex.c **** /* Check the parameters */ - 878:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash_ex.c **** assert_param(IS_OB_DATA_ADDRESS(Address)); - 879:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash_ex.c **** - 880:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash_ex.c **** /* Wait for last operation to be completed */ - 881:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash_ex.c **** status = FLASH_WaitForLastOperation((uint32_t)FLASH_TIMEOUT_VALUE); - 882:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash_ex.c **** - 883:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash_ex.c **** if(status == HAL_OK) - 884:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash_ex.c **** { - 885:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash_ex.c **** /* Clean the error context */ - 886:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash_ex.c **** pFlash.ErrorCode = HAL_FLASH_ERROR_NONE; - 887:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash_ex.c **** - 888:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash_ex.c **** /* Enables the Option Bytes Programming operation */ - 889:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash_ex.c **** SET_BIT(FLASH->CR, FLASH_CR_OPTPG); - 890:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash_ex.c **** *(__IO uint16_t*)Address = Data; - 891:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash_ex.c **** - 892:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash_ex.c **** /* Wait for last operation to be completed */ - 893:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash_ex.c **** status = FLASH_WaitForLastOperation((uint32_t)FLASH_TIMEOUT_VALUE); - 894:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash_ex.c **** - 895:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash_ex.c **** /* If the program operation is completed, disable the OPTPG Bit */ - 896:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash_ex.c **** CLEAR_BIT(FLASH->CR, FLASH_CR_OPTPG); - 897:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash_ex.c **** } - 898:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash_ex.c **** /* Return the Option Byte Data Program Status */ - 899:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash_ex.c **** return status; - 900:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash_ex.c **** } - 901:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash_ex.c **** - 902:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash_ex.c **** /** - 903:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash_ex.c **** * @brief Return the FLASH Write Protection Option Bytes value. - 904:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash_ex.c **** * @retval The FLASH Write Protection Option Bytes value - 905:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash_ex.c **** */ - 906:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash_ex.c **** static uint32_t FLASH_OB_GetWRP(void) - 907:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash_ex.c **** { - 65 .loc 1 907 0 - ARM GAS /tmp/ccHniR8O.s page 18 - - - 66 .cfi_startproc - 67 @ args = 0, pretend = 0, frame = 0 - 68 @ frame_needed = 0, uses_anonymous_args = 0 - 69 @ link register save eliminated. - 908:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash_ex.c **** /* Return the FLASH write protection Register value */ - 909:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash_ex.c **** return (uint32_t)(READ_REG(FLASH->WRPR)); - 70 .loc 1 909 0 - 71 0000 014B ldr r3, .L5 - 72 0002 186A ldr r0, [r3, #32] - 910:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash_ex.c **** } - 73 .loc 1 910 0 - 74 @ sp needed - 75 0004 7047 bx lr - 76 .L6: - 77 0006 C046 .align 2 - 78 .L5: - 79 0008 00200240 .word 1073881088 - 80 .cfi_endproc - 81 .LFE49: - 83 .section .text.FLASH_OB_GetRDP,"ax",%progbits - 84 .align 1 - 85 .syntax unified - 86 .code 16 - 87 .thumb_func - 88 .fpu softvfp - 90 FLASH_OB_GetRDP: - 91 .LFB50: - 911:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash_ex.c **** - 912:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash_ex.c **** /** - 913:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash_ex.c **** * @brief Returns the FLASH Read Protection level. - 914:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash_ex.c **** * @retval FLASH RDP level - 915:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash_ex.c **** * This parameter can be one of the following values: - 916:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash_ex.c **** * @arg @ref OB_RDP_LEVEL_0 No protection - 917:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash_ex.c **** * @arg @ref OB_RDP_LEVEL_1 Read protection of the memory - 918:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash_ex.c **** * @arg @ref OB_RDP_LEVEL_2 Full chip protection - 919:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash_ex.c **** */ - 920:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash_ex.c **** static uint32_t FLASH_OB_GetRDP(void) - 921:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash_ex.c **** { - 92 .loc 1 921 0 - 93 .cfi_startproc - 94 @ args = 0, pretend = 0, frame = 0 - 95 @ frame_needed = 0, uses_anonymous_args = 0 - 96 @ link register save eliminated. - 922:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash_ex.c **** uint32_t tmp_reg; - 923:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash_ex.c **** - 924:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash_ex.c **** /* Read RDP level bits */ - 925:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash_ex.c **** tmp_reg = READ_BIT(FLASH->OBR, (FLASH_OBR_RDPRT1 | FLASH_OBR_RDPRT2)); - 97 .loc 1 925 0 - 98 0000 064B ldr r3, .L12 - 99 0002 DB69 ldr r3, [r3, #28] - 100 0004 0622 movs r2, #6 - 101 .LVL0: - 926:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash_ex.c **** - 927:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash_ex.c **** if (tmp_reg == 0U) - 102 .loc 1 927 0 - 103 0006 1A42 tst r2, r3 - 104 0008 05D0 beq .L9 - ARM GAS /tmp/ccHniR8O.s page 19 - - - 928:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash_ex.c **** { - 929:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash_ex.c **** return OB_RDP_LEVEL_0; - 930:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash_ex.c **** } - 931:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash_ex.c **** else if ((tmp_reg & FLASH_OBR_RDPRT2) == FLASH_OBR_RDPRT2) - 105 .loc 1 931 0 - 106 000a 5B07 lsls r3, r3, #29 - 107 000c 01D4 bmi .L11 - 108 .LVL1: - 932:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash_ex.c **** { - 933:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash_ex.c **** return OB_RDP_LEVEL_2; - 934:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash_ex.c **** } - 935:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash_ex.c **** else - 936:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash_ex.c **** { - 937:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash_ex.c **** return OB_RDP_LEVEL_1; - 109 .loc 1 937 0 - 110 000e BB20 movs r0, #187 - 111 0010 02E0 b .L7 - 112 .L11: - 933:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash_ex.c **** } - 113 .loc 1 933 0 - 114 0012 CC20 movs r0, #204 - 115 0014 00E0 b .L7 - 116 .LVL2: - 117 .L9: - 929:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash_ex.c **** } - 118 .loc 1 929 0 - 119 0016 AA20 movs r0, #170 - 120 .LVL3: - 121 .L7: - 938:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash_ex.c **** } - 939:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash_ex.c **** } - 122 .loc 1 939 0 - 123 @ sp needed - 124 0018 7047 bx lr - 125 .L13: - 126 001a C046 .align 2 - 127 .L12: - 128 001c 00200240 .word 1073881088 - 129 .cfi_endproc - 130 .LFE50: - 132 .section .text.FLASH_OB_GetUser,"ax",%progbits - 133 .align 1 - 134 .syntax unified - 135 .code 16 - 136 .thumb_func - 137 .fpu softvfp - 139 FLASH_OB_GetUser: - 140 .LFB51: - 940:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash_ex.c **** - 941:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash_ex.c **** /** - 942:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash_ex.c **** * @brief Return the FLASH User Option Byte value. - 943:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash_ex.c **** * @retval The FLASH User Option Bytes values: IWDG_SW(Bit0), RST_STOP(Bit1), RST_STDBY(Bit2), nB - 944:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash_ex.c **** * VDDA_Analog_Monitoring(Bit5) and SRAM_Parity_Enable(Bit6). - 945:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash_ex.c **** * For few devices, following option bytes are available: nBOOT0(Bit3) & BOOT_SEL(Bit7). - 946:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash_ex.c **** */ - 947:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash_ex.c **** static uint8_t FLASH_OB_GetUser(void) - 948:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash_ex.c **** { - ARM GAS /tmp/ccHniR8O.s page 20 - - - 141 .loc 1 948 0 - 142 .cfi_startproc - 143 @ args = 0, pretend = 0, frame = 0 - 144 @ frame_needed = 0, uses_anonymous_args = 0 - 145 @ link register save eliminated. - 949:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash_ex.c **** /* Return the User Option Byte */ - 950:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash_ex.c **** return (uint8_t)((READ_REG(FLASH->OBR) & FLASH_OBR_USER) >> FLASH_POSITION_IWDGSW_BIT); - 146 .loc 1 950 0 - 147 0000 024B ldr r3, .L15 - 148 0002 DB69 ldr r3, [r3, #28] - 149 0004 1B0A lsrs r3, r3, #8 - 150 0006 7720 movs r0, #119 - 151 0008 1840 ands r0, r3 - 951:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash_ex.c **** } - 152 .loc 1 951 0 - 153 @ sp needed - 154 000a 7047 bx lr - 155 .L16: - 156 .align 2 - 157 .L15: - 158 000c 00200240 .word 1073881088 - 159 .cfi_endproc - 160 .LFE51: - 162 .section .text.FLASH_OB_RDP_LevelConfig,"ax",%progbits - 163 .align 1 - 164 .syntax unified - 165 .code 16 - 166 .thumb_func - 167 .fpu softvfp - 169 FLASH_OB_RDP_LevelConfig: - 170 .LFB46: - 768:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash_ex.c **** HAL_StatusTypeDef status = HAL_OK; - 171 .loc 1 768 0 - 172 .cfi_startproc - 173 @ args = 0, pretend = 0, frame = 0 - 174 @ frame_needed = 0, uses_anonymous_args = 0 - 175 .LVL4: - 176 0000 70B5 push {r4, r5, r6, lr} - 177 .LCFI0: - 178 .cfi_def_cfa_offset 16 - 179 .cfi_offset 4, -16 - 180 .cfi_offset 5, -12 - 181 .cfi_offset 6, -8 - 182 .cfi_offset 14, -4 - 183 0002 0500 movs r5, r0 - 184 .LVL5: - 775:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash_ex.c **** - 185 .loc 1 775 0 - 186 0004 1348 ldr r0, .L20 - 187 .LVL6: - 188 0006 FFF7FEFF bl FLASH_WaitForLastOperation - 189 .LVL7: - 777:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash_ex.c **** { - 190 .loc 1 777 0 - 191 000a 0028 cmp r0, #0 - 192 000c 00D0 beq .L19 - 193 .LVL8: - ARM GAS /tmp/ccHniR8O.s page 21 - - - 194 .L18: - 808:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash_ex.c **** - 195 .loc 1 808 0 - 196 @ sp needed - 197 000e 70BD pop {r4, r5, r6, pc} - 198 .L19: - 780:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash_ex.c **** - 199 .loc 1 780 0 - 200 0010 114B ldr r3, .L20+4 - 201 0012 0022 movs r2, #0 - 202 0014 DA61 str r2, [r3, #28] - 783:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash_ex.c **** SET_BIT(FLASH->CR, FLASH_CR_STRT); - 203 .loc 1 783 0 - 204 0016 114C ldr r4, .L20+8 - 205 0018 2369 ldr r3, [r4, #16] - 206 001a 2026 movs r6, #32 - 207 001c 3343 orrs r3, r6 - 208 001e 2361 str r3, [r4, #16] - 784:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash_ex.c **** - 209 .loc 1 784 0 - 210 0020 2369 ldr r3, [r4, #16] - 211 0022 4032 adds r2, r2, #64 - 212 0024 1343 orrs r3, r2 - 213 0026 2361 str r3, [r4, #16] - 787:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash_ex.c **** - 214 .loc 1 787 0 - 215 0028 0A48 ldr r0, .L20 - 216 .LVL9: - 217 002a FFF7FEFF bl FLASH_WaitForLastOperation - 218 .LVL10: - 790:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash_ex.c **** - 219 .loc 1 790 0 - 220 002e 2369 ldr r3, [r4, #16] - 221 0030 B343 bics r3, r6 - 222 0032 2361 str r3, [r4, #16] - 792:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash_ex.c **** { - 223 .loc 1 792 0 - 224 0034 0028 cmp r0, #0 - 225 0036 EAD1 bne .L18 - 795:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash_ex.c **** - 226 .loc 1 795 0 - 227 0038 2369 ldr r3, [r4, #16] - 228 003a 103E subs r6, r6, #16 - 229 003c 3343 orrs r3, r6 - 230 003e 2361 str r3, [r4, #16] - 797:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash_ex.c **** - 231 .loc 1 797 0 - 232 0040 ADB2 uxth r5, r5 - 233 0042 074B ldr r3, .L20+12 - 234 0044 1D80 strh r5, [r3] - 800:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash_ex.c **** - 235 .loc 1 800 0 - 236 0046 0348 ldr r0, .L20 - 237 .LVL11: - 238 0048 FFF7FEFF bl FLASH_WaitForLastOperation - 239 .LVL12: - 803:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash_ex.c **** } - ARM GAS /tmp/ccHniR8O.s page 22 - - - 240 .loc 1 803 0 - 241 004c 2369 ldr r3, [r4, #16] - 242 004e B343 bics r3, r6 - 243 0050 2361 str r3, [r4, #16] - 244 0052 DCE7 b .L18 - 245 .L21: - 246 .align 2 - 247 .L20: - 248 0054 50C30000 .word 50000 - 249 0058 00000000 .word pFlash - 250 005c 00200240 .word 1073881088 - 251 0060 00F8FF1F .word 536868864 - 252 .cfi_endproc - 253 .LFE46: - 255 .section .text.FLASH_OB_UserConfig,"ax",%progbits - 256 .align 1 - 257 .syntax unified - 258 .code 16 - 259 .thumb_func - 260 .fpu softvfp - 262 FLASH_OB_UserConfig: - 263 .LFB47: - 819:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash_ex.c **** HAL_StatusTypeDef status = HAL_OK; - 264 .loc 1 819 0 - 265 .cfi_startproc - 266 @ args = 0, pretend = 0, frame = 0 - 267 @ frame_needed = 0, uses_anonymous_args = 0 - 268 .LVL13: - 269 0000 70B5 push {r4, r5, r6, lr} - 270 .LCFI1: - 271 .cfi_def_cfa_offset 16 - 272 .cfi_offset 4, -16 - 273 .cfi_offset 5, -12 - 274 .cfi_offset 6, -8 - 275 .cfi_offset 14, -4 - 276 0002 0400 movs r4, r0 - 277 .LVL14: - 835:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash_ex.c **** - 278 .loc 1 835 0 - 279 0004 0C48 ldr r0, .L25 - 280 .LVL15: - 281 0006 FFF7FEFF bl FLASH_WaitForLastOperation - 282 .LVL16: - 837:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash_ex.c **** { - 283 .loc 1 837 0 - 284 000a 0028 cmp r0, #0 - 285 000c 00D0 beq .L24 - 286 .LVL17: - 287 .L23: - 859:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash_ex.c **** - 288 .loc 1 859 0 - 289 @ sp needed - 290 000e 70BD pop {r4, r5, r6, pc} - 291 .L24: - 840:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash_ex.c **** - 292 .loc 1 840 0 - 293 0010 0A4B ldr r3, .L25+4 - ARM GAS /tmp/ccHniR8O.s page 23 - - - 294 0012 0022 movs r2, #0 - 295 0014 DA61 str r2, [r3, #28] - 843:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash_ex.c **** - 296 .loc 1 843 0 - 297 0016 0A4D ldr r5, .L25+8 - 298 0018 2B69 ldr r3, [r5, #16] - 299 001a 1026 movs r6, #16 - 300 001c 3343 orrs r3, r6 - 301 001e 2B61 str r3, [r5, #16] - 848:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash_ex.c **** #endif - 302 .loc 1 848 0 - 303 0020 7838 subs r0, r0, #120 - 304 .LVL18: - 305 0022 2043 orrs r0, r4 - 306 .LVL19: - 307 0024 C0B2 uxtb r0, r0 - 308 0026 074B ldr r3, .L25+12 - 309 0028 5880 strh r0, [r3, #2] - 852:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash_ex.c **** - 310 .loc 1 852 0 - 311 002a 0348 ldr r0, .L25 - 312 002c FFF7FEFF bl FLASH_WaitForLastOperation - 313 .LVL20: - 855:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash_ex.c **** } - 314 .loc 1 855 0 - 315 0030 2B69 ldr r3, [r5, #16] - 316 0032 B343 bics r3, r6 - 317 0034 2B61 str r3, [r5, #16] - 318 0036 EAE7 b .L23 - 319 .L26: - 320 .align 2 - 321 .L25: - 322 0038 50C30000 .word 50000 - 323 003c 00000000 .word pFlash - 324 0040 00200240 .word 1073881088 - 325 0044 00F8FF1F .word 536868864 - 326 .cfi_endproc - 327 .LFE47: - 329 .section .text.FLASH_OB_ProgramData,"ax",%progbits - 330 .align 1 - 331 .syntax unified - 332 .code 16 - 333 .thumb_func - 334 .fpu softvfp - 336 FLASH_OB_ProgramData: - 337 .LFB48: - 874:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash_ex.c **** HAL_StatusTypeDef status = HAL_ERROR; - 338 .loc 1 874 0 - 339 .cfi_startproc - 340 @ args = 0, pretend = 0, frame = 0 - 341 @ frame_needed = 0, uses_anonymous_args = 0 - 342 .LVL21: - 343 0000 F8B5 push {r3, r4, r5, r6, r7, lr} - 344 .LCFI2: - 345 .cfi_def_cfa_offset 24 - 346 .cfi_offset 3, -24 - 347 .cfi_offset 4, -20 - ARM GAS /tmp/ccHniR8O.s page 24 - - - 348 .cfi_offset 5, -16 - 349 .cfi_offset 6, -12 - 350 .cfi_offset 7, -8 - 351 .cfi_offset 14, -4 - 352 0002 0500 movs r5, r0 - 353 0004 0C00 movs r4, r1 - 354 .LVL22: - 881:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash_ex.c **** - 355 .loc 1 881 0 - 356 0006 0B48 ldr r0, .L30 - 357 .LVL23: - 358 0008 FFF7FEFF bl FLASH_WaitForLastOperation - 359 .LVL24: - 883:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash_ex.c **** { - 360 .loc 1 883 0 - 361 000c 0028 cmp r0, #0 - 362 000e 00D0 beq .L29 - 363 .LVL25: - 364 .L28: - 900:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash_ex.c **** - 365 .loc 1 900 0 - 366 @ sp needed - 367 .LVL26: - 368 0010 F8BD pop {r3, r4, r5, r6, r7, pc} - 369 .LVL27: - 370 .L29: - 886:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash_ex.c **** - 371 .loc 1 886 0 - 372 0012 094B ldr r3, .L30+4 - 373 0014 0022 movs r2, #0 - 374 0016 DA61 str r2, [r3, #28] - 889:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash_ex.c **** *(__IO uint16_t*)Address = Data; - 375 .loc 1 889 0 - 376 0018 084E ldr r6, .L30+8 - 377 001a 3369 ldr r3, [r6, #16] - 378 001c 1027 movs r7, #16 - 379 001e 3B43 orrs r3, r7 - 380 0020 3361 str r3, [r6, #16] - 890:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash_ex.c **** - 381 .loc 1 890 0 - 382 0022 A4B2 uxth r4, r4 - 383 0024 2C80 strh r4, [r5] - 893:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash_ex.c **** - 384 .loc 1 893 0 - 385 0026 0348 ldr r0, .L30 - 386 .LVL28: - 387 0028 FFF7FEFF bl FLASH_WaitForLastOperation - 388 .LVL29: - 896:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash_ex.c **** } - 389 .loc 1 896 0 - 390 002c 3369 ldr r3, [r6, #16] - 391 002e BB43 bics r3, r7 - 392 0030 3361 str r3, [r6, #16] - 393 0032 EDE7 b .L28 - 394 .L31: - 395 .align 2 - 396 .L30: - ARM GAS /tmp/ccHniR8O.s page 25 - - - 397 0034 50C30000 .word 50000 - 398 0038 00000000 .word pFlash - 399 003c 00200240 .word 1073881088 - 400 .cfi_endproc - 401 .LFE48: - 403 .section .text.HAL_FLASHEx_OBErase,"ax",%progbits - 404 .align 1 - 405 .global HAL_FLASHEx_OBErase - 406 .syntax unified - 407 .code 16 - 408 .thumb_func - 409 .fpu softvfp - 411 HAL_FLASHEx_OBErase: - 412 .LFB39: - 330:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash_ex.c **** uint8_t rdptmp = OB_RDP_LEVEL_0; - 413 .loc 1 330 0 - 414 .cfi_startproc - 415 @ args = 0, pretend = 0, frame = 0 - 416 @ frame_needed = 0, uses_anonymous_args = 0 - 417 0000 70B5 push {r4, r5, r6, lr} - 418 .LCFI3: - 419 .cfi_def_cfa_offset 16 - 420 .cfi_offset 4, -16 - 421 .cfi_offset 5, -12 - 422 .cfi_offset 6, -8 - 423 .cfi_offset 14, -4 - 424 .LVL30: - 335:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash_ex.c **** - 425 .loc 1 335 0 - 426 0002 FFF7FEFF bl FLASH_OB_GetRDP - 427 .LVL31: - 428 0006 C5B2 uxtb r5, r0 - 429 .LVL32: - 338:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash_ex.c **** - 430 .loc 1 338 0 - 431 0008 0E48 ldr r0, .L35 - 432 000a FFF7FEFF bl FLASH_WaitForLastOperation - 433 .LVL33: - 340:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash_ex.c **** { - 434 .loc 1 340 0 - 435 000e 0028 cmp r0, #0 - 436 0010 00D0 beq .L34 - 437 .LVL34: - 438 .L33: - 364:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash_ex.c **** - 439 .loc 1 364 0 - 440 @ sp needed - 441 .LVL35: - 442 0012 70BD pop {r4, r5, r6, pc} - 443 .LVL36: - 444 .L34: - 343:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash_ex.c **** - 445 .loc 1 343 0 - 446 0014 0C4B ldr r3, .L35+4 - 447 0016 0022 movs r2, #0 - 448 0018 DA61 str r2, [r3, #28] - 346:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash_ex.c **** SET_BIT(FLASH->CR, FLASH_CR_STRT); - ARM GAS /tmp/ccHniR8O.s page 26 - - - 449 .loc 1 346 0 - 450 001a 0C4C ldr r4, .L35+8 - 451 001c 2369 ldr r3, [r4, #16] - 452 001e 2026 movs r6, #32 - 453 0020 3343 orrs r3, r6 - 454 0022 2361 str r3, [r4, #16] - 347:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash_ex.c **** - 455 .loc 1 347 0 - 456 0024 2369 ldr r3, [r4, #16] - 457 0026 4032 adds r2, r2, #64 - 458 0028 1343 orrs r3, r2 - 459 002a 2361 str r3, [r4, #16] - 350:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash_ex.c **** - 460 .loc 1 350 0 - 461 002c 0548 ldr r0, .L35 - 462 .LVL37: - 463 002e FFF7FEFF bl FLASH_WaitForLastOperation - 464 .LVL38: - 353:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash_ex.c **** - 465 .loc 1 353 0 - 466 0032 2369 ldr r3, [r4, #16] - 467 0034 B343 bics r3, r6 - 468 0036 2361 str r3, [r4, #16] - 355:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash_ex.c **** { - 469 .loc 1 355 0 - 470 0038 0028 cmp r0, #0 - 471 003a EAD1 bne .L33 - 358:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash_ex.c **** } - 472 .loc 1 358 0 - 473 003c 2800 movs r0, r5 - 474 .LVL39: - 475 003e FFF7FEFF bl FLASH_OB_RDP_LevelConfig - 476 .LVL40: - 477 0042 E6E7 b .L33 - 478 .L36: - 479 .align 2 - 480 .L35: - 481 0044 50C30000 .word 50000 - 482 0048 00000000 .word pFlash - 483 004c 00200240 .word 1073881088 - 484 .cfi_endproc - 485 .LFE39: - 487 .section .text.FLASH_OB_EnableWRP,"ax",%progbits - 488 .align 1 - 489 .syntax unified - 490 .code 16 - 491 .thumb_func - 492 .fpu softvfp - 494 FLASH_OB_EnableWRP: - 495 .LFB44: - 538:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash_ex.c **** HAL_StatusTypeDef status = HAL_OK; - 496 .loc 1 538 0 - 497 .cfi_startproc - 498 @ args = 0, pretend = 0, frame = 0 - 499 @ frame_needed = 0, uses_anonymous_args = 0 - 500 .LVL41: - 501 0000 F8B5 push {r3, r4, r5, r6, r7, lr} - ARM GAS /tmp/ccHniR8O.s page 27 - - - 502 .LCFI4: - 503 .cfi_def_cfa_offset 24 - 504 .cfi_offset 3, -24 - 505 .cfi_offset 4, -20 - 506 .cfi_offset 5, -16 - 507 .cfi_offset 6, -12 - 508 .cfi_offset 7, -8 - 509 .cfi_offset 14, -4 - 510 0002 0400 movs r4, r0 - 511 .LVL42: - 555:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash_ex.c **** - 512 .loc 1 555 0 - 513 0004 FFF7FEFF bl FLASH_OB_GetWRP - 514 .LVL43: - 515 0008 C043 mvns r0, r0 - 516 000a 0443 orrs r4, r0 - 517 .LVL44: - 518 000c E443 mvns r4, r4 - 519 .LVL45: - 558:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash_ex.c **** #elif defined(OB_WRP_PAGES0TO31MASK) - 520 .loc 1 558 0 - 521 000e FF25 movs r5, #255 - 522 0010 2700 movs r7, r4 - 523 0012 2F40 ands r7, r5 - 524 .LVL46: - 564:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash_ex.c **** #elif defined(OB_WRP_PAGES32TO63MASK) - 525 .loc 1 564 0 - 526 0014 260A lsrs r6, r4, #8 - 527 0016 2E40 ands r6, r5 - 528 .LVL47: - 570:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash_ex.c **** #endif /* OB_WRP_PAGES32TO47MASK */ - 529 .loc 1 570 0 - 530 0018 230C lsrs r3, r4, #16 - 531 001a 1D40 ands r5, r3 - 532 .LVL48: - 574:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash_ex.c **** #elif defined(OB_WRP_PAGES48TO127MASK) - 533 .loc 1 574 0 - 534 001c 240E lsrs r4, r4, #24 - 535 .LVL49: - 580:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash_ex.c **** - 536 .loc 1 580 0 - 537 001e 2348 ldr r0, .L48 - 538 .LVL50: - 539 0020 FFF7FEFF bl FLASH_WaitForLastOperation - 540 .LVL51: - 582:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash_ex.c **** { - 541 .loc 1 582 0 - 542 0024 0028 cmp r0, #0 - 543 0026 00D0 beq .L43 - 544 .LVL52: - 545 .L38: - 640:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash_ex.c **** - 546 .loc 1 640 0 - 547 @ sp needed - 548 .LVL53: - 549 0028 F8BD pop {r3, r4, r5, r6, r7, pc} - 550 .LVL54: - ARM GAS /tmp/ccHniR8O.s page 28 - - - 551 .L43: - 585:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash_ex.c **** - 552 .loc 1 585 0 - 553 002a 214B ldr r3, .L48+4 - 554 002c 0022 movs r2, #0 - 555 002e DA61 str r2, [r3, #28] - 588:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash_ex.c **** if (status == HAL_OK) - 556 .loc 1 588 0 - 557 0030 FFF7FEFF bl HAL_FLASHEx_OBErase - 558 .LVL55: - 589:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash_ex.c **** { - 559 .loc 1 589 0 - 560 0034 0028 cmp r0, #0 - 561 0036 F7D1 bne .L38 - 592:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash_ex.c **** - 562 .loc 1 592 0 - 563 0038 1E4A ldr r2, .L48+8 - 564 003a 1369 ldr r3, [r2, #16] - 565 003c 1021 movs r1, #16 - 566 003e 0B43 orrs r3, r1 - 567 0040 1361 str r3, [r2, #16] - 595:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash_ex.c **** { - 568 .loc 1 595 0 - 569 0042 FF2F cmp r7, #255 - 570 0044 11D1 bne .L44 - 571 .LVL56: - 572 .L39: - 605:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash_ex.c **** { - 573 .loc 1 605 0 - 574 0046 0028 cmp r0, #0 - 575 0048 01D1 bne .L40 - 605:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash_ex.c **** { - 576 .loc 1 605 0 is_stmt 0 discriminator 1 - 577 004a FF2E cmp r6, #255 - 578 004c 15D1 bne .L45 - 579 .LVL57: - 580 .L40: - 615:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash_ex.c **** { - 581 .loc 1 615 0 is_stmt 1 - 582 004e 0028 cmp r0, #0 - 583 0050 01D1 bne .L41 - 615:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash_ex.c **** { - 584 .loc 1 615 0 is_stmt 0 discriminator 1 - 585 0052 FF2D cmp r5, #255 - 586 0054 19D1 bne .L46 - 587 .LVL58: - 588 .L41: - 625:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash_ex.c **** { - 589 .loc 1 625 0 is_stmt 1 - 590 0056 0028 cmp r0, #0 - 591 0058 01D1 bne .L42 - 625:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash_ex.c **** { - 592 .loc 1 625 0 is_stmt 0 discriminator 1 - 593 005a FF2C cmp r4, #255 - 594 005c 1DD1 bne .L47 - 595 .LVL59: - 596 .L42: - ARM GAS /tmp/ccHniR8O.s page 29 - - - 635:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash_ex.c **** } - 597 .loc 1 635 0 is_stmt 1 - 598 005e 154A ldr r2, .L48+8 - 599 0060 1369 ldr r3, [r2, #16] - 600 0062 1021 movs r1, #16 - 601 0064 8B43 bics r3, r1 - 602 0066 1361 str r3, [r2, #16] - 603 0068 DEE7 b .L38 - 604 .LVL60: - 605 .L44: - 597:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash_ex.c **** - 606 .loc 1 597 0 - 607 006a 134A ldr r2, .L48+12 - 608 006c 1389 ldrh r3, [r2, #8] - 609 006e 1F40 ands r7, r3 - 610 .LVL61: - 611 0070 1781 strh r7, [r2, #8] - 600:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash_ex.c **** } - 612 .loc 1 600 0 - 613 0072 0E48 ldr r0, .L48 - 614 .LVL62: - 615 0074 FFF7FEFF bl FLASH_WaitForLastOperation - 616 .LVL63: - 617 0078 E5E7 b .L39 - 618 .L45: - 607:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash_ex.c **** - 619 .loc 1 607 0 - 620 007a 0F4A ldr r2, .L48+12 - 621 007c 5389 ldrh r3, [r2, #10] - 622 007e 1E40 ands r6, r3 - 623 .LVL64: - 624 0080 5681 strh r6, [r2, #10] - 610:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash_ex.c **** } - 625 .loc 1 610 0 - 626 0082 0A48 ldr r0, .L48 - 627 .LVL65: - 628 0084 FFF7FEFF bl FLASH_WaitForLastOperation - 629 .LVL66: - 630 0088 E1E7 b .L40 - 631 .L46: - 617:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash_ex.c **** - 632 .loc 1 617 0 - 633 008a 0B4A ldr r2, .L48+12 - 634 008c 9389 ldrh r3, [r2, #12] - 635 008e 1D40 ands r5, r3 - 636 .LVL67: - 637 0090 9581 strh r5, [r2, #12] - 620:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash_ex.c **** } - 638 .loc 1 620 0 - 639 0092 0648 ldr r0, .L48 - 640 .LVL68: - 641 0094 FFF7FEFF bl FLASH_WaitForLastOperation - 642 .LVL69: - 643 0098 DDE7 b .L41 - 644 .L47: - 627:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash_ex.c **** - 645 .loc 1 627 0 - ARM GAS /tmp/ccHniR8O.s page 30 - - - 646 009a 074B ldr r3, .L48+12 - 647 009c D889 ldrh r0, [r3, #14] - 648 .LVL70: - 649 009e 2040 ands r0, r4 - 650 00a0 D881 strh r0, [r3, #14] - 630:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash_ex.c **** } - 651 .loc 1 630 0 - 652 00a2 0248 ldr r0, .L48 - 653 00a4 FFF7FEFF bl FLASH_WaitForLastOperation - 654 .LVL71: - 655 00a8 D9E7 b .L42 - 656 .L49: - 657 00aa C046 .align 2 - 658 .L48: - 659 00ac 50C30000 .word 50000 - 660 00b0 00000000 .word pFlash - 661 00b4 00200240 .word 1073881088 - 662 00b8 00F8FF1F .word 536868864 - 663 .cfi_endproc - 664 .LFE44: - 666 .section .text.FLASH_OB_DisableWRP,"ax",%progbits - 667 .align 1 - 668 .syntax unified - 669 .code 16 - 670 .thumb_func - 671 .fpu softvfp - 673 FLASH_OB_DisableWRP: - 674 .LFB45: - 654:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash_ex.c **** HAL_StatusTypeDef status = HAL_OK; - 675 .loc 1 654 0 - 676 .cfi_startproc - 677 @ args = 0, pretend = 0, frame = 0 - 678 @ frame_needed = 0, uses_anonymous_args = 0 - 679 .LVL72: - 680 0000 F8B5 push {r3, r4, r5, r6, r7, lr} - 681 .LCFI5: - 682 .cfi_def_cfa_offset 24 - 683 .cfi_offset 3, -24 - 684 .cfi_offset 4, -20 - 685 .cfi_offset 5, -16 - 686 .cfi_offset 6, -12 - 687 .cfi_offset 7, -8 - 688 .cfi_offset 14, -4 - 689 0002 0400 movs r4, r0 - 690 .LVL73: - 671:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash_ex.c **** - 691 .loc 1 671 0 - 692 0004 FFF7FEFF bl FLASH_OB_GetWRP - 693 .LVL74: - 694 0008 0443 orrs r4, r0 - 695 .LVL75: - 674:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash_ex.c **** #elif defined(OB_WRP_PAGES0TO31MASK) - 696 .loc 1 674 0 - 697 000a FF25 movs r5, #255 - 698 000c 2700 movs r7, r4 - 699 000e 2F40 ands r7, r5 - 700 .LVL76: - ARM GAS /tmp/ccHniR8O.s page 31 - - - 680:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash_ex.c **** #elif defined(OB_WRP_PAGES32TO63MASK) - 701 .loc 1 680 0 - 702 0010 260A lsrs r6, r4, #8 - 703 0012 2E40 ands r6, r5 - 704 .LVL77: - 686:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash_ex.c **** #endif /* OB_WRP_PAGES32TO47MASK */ - 705 .loc 1 686 0 - 706 0014 230C lsrs r3, r4, #16 - 707 0016 1D40 ands r5, r3 - 708 .LVL78: - 690:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash_ex.c **** #elif defined(OB_WRP_PAGES48TO127MASK) - 709 .loc 1 690 0 - 710 0018 240E lsrs r4, r4, #24 - 711 .LVL79: - 697:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash_ex.c **** - 712 .loc 1 697 0 - 713 001a 2348 ldr r0, .L61 - 714 .LVL80: - 715 001c FFF7FEFF bl FLASH_WaitForLastOperation - 716 .LVL81: - 699:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash_ex.c **** { - 717 .loc 1 699 0 - 718 0020 0028 cmp r0, #0 - 719 0022 00D0 beq .L56 - 720 .LVL82: - 721 .L51: - 755:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash_ex.c **** - 722 .loc 1 755 0 - 723 @ sp needed - 724 .LVL83: - 725 0024 F8BD pop {r3, r4, r5, r6, r7, pc} - 726 .LVL84: - 727 .L56: - 702:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash_ex.c **** - 728 .loc 1 702 0 - 729 0026 214B ldr r3, .L61+4 - 730 0028 0022 movs r2, #0 - 731 002a DA61 str r2, [r3, #28] - 705:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash_ex.c **** if (status == HAL_OK) - 732 .loc 1 705 0 - 733 002c FFF7FEFF bl HAL_FLASHEx_OBErase - 734 .LVL85: - 706:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash_ex.c **** { - 735 .loc 1 706 0 - 736 0030 0028 cmp r0, #0 - 737 0032 F7D1 bne .L51 - 708:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash_ex.c **** - 738 .loc 1 708 0 - 739 0034 1E4A ldr r2, .L61+8 - 740 0036 1369 ldr r3, [r2, #16] - 741 0038 1021 movs r1, #16 - 742 003a 0B43 orrs r3, r1 - 743 003c 1361 str r3, [r2, #16] - 711:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash_ex.c **** { - 744 .loc 1 711 0 - 745 003e FF2F cmp r7, #255 - 746 0040 11D1 bne .L57 - ARM GAS /tmp/ccHniR8O.s page 32 - - - 747 .LVL86: - 748 .L52: - 721:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash_ex.c **** { - 749 .loc 1 721 0 - 750 0042 0028 cmp r0, #0 - 751 0044 01D1 bne .L53 - 721:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash_ex.c **** { - 752 .loc 1 721 0 is_stmt 0 discriminator 1 - 753 0046 FF2E cmp r6, #255 - 754 0048 15D1 bne .L58 - 755 .LVL87: - 756 .L53: - 731:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash_ex.c **** { - 757 .loc 1 731 0 is_stmt 1 - 758 004a 0028 cmp r0, #0 - 759 004c 01D1 bne .L54 - 731:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash_ex.c **** { - 760 .loc 1 731 0 is_stmt 0 discriminator 1 - 761 004e FF2D cmp r5, #255 - 762 0050 19D1 bne .L59 - 763 .LVL88: - 764 .L54: - 741:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash_ex.c **** { - 765 .loc 1 741 0 is_stmt 1 - 766 0052 0028 cmp r0, #0 - 767 0054 01D1 bne .L55 - 741:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash_ex.c **** { - 768 .loc 1 741 0 is_stmt 0 discriminator 1 - 769 0056 FF2C cmp r4, #255 - 770 0058 1DD1 bne .L60 - 771 .LVL89: - 772 .L55: - 751:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash_ex.c **** } - 773 .loc 1 751 0 is_stmt 1 - 774 005a 154A ldr r2, .L61+8 - 775 005c 1369 ldr r3, [r2, #16] - 776 005e 1021 movs r1, #16 - 777 0060 8B43 bics r3, r1 - 778 0062 1361 str r3, [r2, #16] - 779 0064 DEE7 b .L51 - 780 .LVL90: - 781 .L57: - 713:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash_ex.c **** - 782 .loc 1 713 0 - 783 0066 134A ldr r2, .L61+12 - 784 0068 1389 ldrh r3, [r2, #8] - 785 006a 1F43 orrs r7, r3 - 786 .LVL91: - 787 006c 1781 strh r7, [r2, #8] - 716:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash_ex.c **** } - 788 .loc 1 716 0 - 789 006e 0E48 ldr r0, .L61 - 790 .LVL92: - 791 0070 FFF7FEFF bl FLASH_WaitForLastOperation - 792 .LVL93: - 793 0074 E5E7 b .L52 - 794 .L58: - ARM GAS /tmp/ccHniR8O.s page 33 - - - 723:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash_ex.c **** - 795 .loc 1 723 0 - 796 0076 0F4A ldr r2, .L61+12 - 797 0078 5389 ldrh r3, [r2, #10] - 798 007a 1E43 orrs r6, r3 - 799 .LVL94: - 800 007c 5681 strh r6, [r2, #10] - 726:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash_ex.c **** } - 801 .loc 1 726 0 - 802 007e 0A48 ldr r0, .L61 - 803 .LVL95: - 804 0080 FFF7FEFF bl FLASH_WaitForLastOperation - 805 .LVL96: - 806 0084 E1E7 b .L53 - 807 .L59: - 733:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash_ex.c **** - 808 .loc 1 733 0 - 809 0086 0B4A ldr r2, .L61+12 - 810 0088 9389 ldrh r3, [r2, #12] - 811 008a 1D43 orrs r5, r3 - 812 .LVL97: - 813 008c 9581 strh r5, [r2, #12] - 736:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash_ex.c **** } - 814 .loc 1 736 0 - 815 008e 0648 ldr r0, .L61 - 816 .LVL98: - 817 0090 FFF7FEFF bl FLASH_WaitForLastOperation - 818 .LVL99: - 819 0094 DDE7 b .L54 - 820 .L60: - 743:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash_ex.c **** - 821 .loc 1 743 0 - 822 0096 074B ldr r3, .L61+12 - 823 0098 D889 ldrh r0, [r3, #14] - 824 .LVL100: - 825 009a 2043 orrs r0, r4 - 826 009c D881 strh r0, [r3, #14] - 746:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash_ex.c **** } - 827 .loc 1 746 0 - 828 009e 0248 ldr r0, .L61 - 829 00a0 FFF7FEFF bl FLASH_WaitForLastOperation - 830 .LVL101: - 831 00a4 D9E7 b .L55 - 832 .L62: - 833 00a6 C046 .align 2 - 834 .L61: - 835 00a8 50C30000 .word 50000 - 836 00ac 00000000 .word pFlash - 837 00b0 00200240 .word 1073881088 - 838 00b4 00F8FF1F .word 536868864 - 839 .cfi_endproc - 840 .LFE45: - 842 .section .text.HAL_FLASHEx_OBProgram,"ax",%progbits - 843 .align 1 - 844 .global HAL_FLASHEx_OBProgram - 845 .syntax unified - 846 .code 16 - ARM GAS /tmp/ccHniR8O.s page 34 - - - 847 .thumb_func - 848 .fpu softvfp - 850 HAL_FLASHEx_OBProgram: - 851 .LFB40: - 379:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash_ex.c **** HAL_StatusTypeDef status = HAL_ERROR; - 852 .loc 1 379 0 - 853 .cfi_startproc - 854 @ args = 0, pretend = 0, frame = 0 - 855 @ frame_needed = 0, uses_anonymous_args = 0 - 856 .LVL102: - 857 0000 10B5 push {r4, lr} - 858 .LCFI6: - 859 .cfi_def_cfa_offset 8 - 860 .cfi_offset 4, -8 - 861 .cfi_offset 14, -4 - 862 0002 0400 movs r4, r0 - 863 .LVL103: - 383:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash_ex.c **** - 864 .loc 1 383 0 - 865 0004 224B ldr r3, .L77 - 866 0006 1B7E ldrb r3, [r3, #24] - 867 0008 012B cmp r3, #1 - 868 000a 3FD0 beq .L71 - 383:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash_ex.c **** - 869 .loc 1 383 0 is_stmt 0 discriminator 2 - 870 000c 0123 movs r3, #1 - 871 000e 204A ldr r2, .L77 - 872 0010 1376 strb r3, [r2, #24] - 389:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash_ex.c **** { - 873 .loc 1 389 0 is_stmt 1 discriminator 2 - 874 0012 0268 ldr r2, [r0] - 875 0014 1342 tst r3, r2 - 876 0016 0FD0 beq .L72 - 392:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash_ex.c **** { - 877 .loc 1 392 0 - 878 0018 4368 ldr r3, [r0, #4] - 879 001a 012B cmp r3, #1 - 880 001c 08D0 beq .L73 - 400:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash_ex.c **** } - 881 .loc 1 400 0 - 882 001e 8068 ldr r0, [r0, #8] - 883 .LVL104: - 884 0020 FFF7FEFF bl FLASH_OB_DisableWRP - 885 .LVL105: - 886 .L67: - 402:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash_ex.c **** { - 887 .loc 1 402 0 - 888 0024 0028 cmp r0, #0 - 889 0026 08D0 beq .L65 - 405:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash_ex.c **** return status; - 890 .loc 1 405 0 - 891 0028 194B ldr r3, .L77 - 892 002a 0022 movs r2, #0 - 893 002c 1A76 strb r2, [r3, #24] - 406:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash_ex.c **** } - 894 .loc 1 406 0 - 895 002e 10E0 b .L64 - ARM GAS /tmp/ccHniR8O.s page 35 - - - 896 .LVL106: - 897 .L73: - 395:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash_ex.c **** } - 898 .loc 1 395 0 - 899 0030 8068 ldr r0, [r0, #8] - 900 .LVL107: - 901 0032 FFF7FEFF bl FLASH_OB_EnableWRP - 902 .LVL108: - 903 0036 F5E7 b .L67 - 904 .LVL109: - 905 .L72: - 380:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash_ex.c **** - 906 .loc 1 380 0 - 907 0038 0120 movs r0, #1 - 908 .LVL110: - 909 .L65: - 411:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash_ex.c **** { - 910 .loc 1 411 0 - 911 003a 2368 ldr r3, [r4] - 912 003c 9B07 lsls r3, r3, #30 - 913 003e 09D4 bmi .L74 - 914 .LVL111: - 915 .L68: - 423:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash_ex.c **** { - 916 .loc 1 423 0 - 917 0040 2368 ldr r3, [r4] - 918 0042 5B07 lsls r3, r3, #29 - 919 0044 0FD4 bmi .L75 - 920 .LVL112: - 921 .L69: - 435:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash_ex.c **** { - 922 .loc 1 435 0 - 923 0046 2368 ldr r3, [r4] - 924 0048 1B07 lsls r3, r3, #28 - 925 004a 15D4 bmi .L76 - 926 .LVL113: - 927 .L70: - 447:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash_ex.c **** - 928 .loc 1 447 0 - 929 004c 104B ldr r3, .L77 - 930 004e 0022 movs r2, #0 - 931 0050 1A76 strb r2, [r3, #24] - 932 .LVL114: - 933 .L64: - 450:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash_ex.c **** - 934 .loc 1 450 0 - 935 @ sp needed - 936 .LVL115: - 937 0052 10BD pop {r4, pc} - 938 .LVL116: - 939 .L74: - 413:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash_ex.c **** if (status != HAL_OK) - 940 .loc 1 413 0 - 941 0054 207B ldrb r0, [r4, #12] - 942 .LVL117: - 943 0056 FFF7FEFF bl FLASH_OB_RDP_LevelConfig - 944 .LVL118: - ARM GAS /tmp/ccHniR8O.s page 36 - - - 414:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash_ex.c **** { - 945 .loc 1 414 0 - 946 005a 0028 cmp r0, #0 - 947 005c F0D0 beq .L68 - 417:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash_ex.c **** return status; - 948 .loc 1 417 0 - 949 005e 0C4B ldr r3, .L77 - 950 0060 0022 movs r2, #0 - 951 0062 1A76 strb r2, [r3, #24] - 418:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash_ex.c **** } - 952 .loc 1 418 0 - 953 0064 F5E7 b .L64 - 954 .L75: - 425:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash_ex.c **** if (status != HAL_OK) - 955 .loc 1 425 0 - 956 0066 607B ldrb r0, [r4, #13] - 957 .LVL119: - 958 0068 FFF7FEFF bl FLASH_OB_UserConfig - 959 .LVL120: - 426:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash_ex.c **** { - 960 .loc 1 426 0 - 961 006c 0028 cmp r0, #0 - 962 006e EAD0 beq .L69 - 429:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash_ex.c **** return status; - 963 .loc 1 429 0 - 964 0070 074B ldr r3, .L77 - 965 0072 0022 movs r2, #0 - 966 0074 1A76 strb r2, [r3, #24] - 430:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash_ex.c **** } - 967 .loc 1 430 0 - 968 0076 ECE7 b .L64 - 969 .L76: - 437:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash_ex.c **** if (status != HAL_OK) - 970 .loc 1 437 0 - 971 0078 2069 ldr r0, [r4, #16] - 972 .LVL121: - 973 007a 217D ldrb r1, [r4, #20] - 974 007c FFF7FEFF bl FLASH_OB_ProgramData - 975 .LVL122: - 438:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash_ex.c **** { - 976 .loc 1 438 0 - 977 0080 0028 cmp r0, #0 - 978 0082 E3D0 beq .L70 - 441:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash_ex.c **** return status; - 979 .loc 1 441 0 - 980 0084 024B ldr r3, .L77 - 981 0086 0022 movs r2, #0 - 982 0088 1A76 strb r2, [r3, #24] - 442:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash_ex.c **** } - 983 .loc 1 442 0 - 984 008a E2E7 b .L64 - 985 .LVL123: - 986 .L71: - 383:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash_ex.c **** - 987 .loc 1 383 0 - 988 008c 0220 movs r0, #2 - 989 .LVL124: - ARM GAS /tmp/ccHniR8O.s page 37 - - - 990 008e E0E7 b .L64 - 991 .L78: - 992 .align 2 - 993 .L77: - 994 0090 00000000 .word pFlash - 995 .cfi_endproc - 996 .LFE40: - 998 .section .text.HAL_FLASHEx_OBGetConfig,"ax",%progbits - 999 .align 1 - 1000 .global HAL_FLASHEx_OBGetConfig - 1001 .syntax unified - 1002 .code 16 - 1003 .thumb_func - 1004 .fpu softvfp - 1006 HAL_FLASHEx_OBGetConfig: - 1007 .LFB41: - 460:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash_ex.c **** pOBInit->OptionType = OPTIONBYTE_WRP | OPTIONBYTE_RDP | OPTIONBYTE_USER; - 1008 .loc 1 460 0 - 1009 .cfi_startproc - 1010 @ args = 0, pretend = 0, frame = 0 - 1011 @ frame_needed = 0, uses_anonymous_args = 0 - 1012 .LVL125: - 1013 0000 10B5 push {r4, lr} - 1014 .LCFI7: - 1015 .cfi_def_cfa_offset 8 - 1016 .cfi_offset 4, -8 - 1017 .cfi_offset 14, -4 - 1018 0002 0400 movs r4, r0 - 461:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash_ex.c **** - 1019 .loc 1 461 0 - 1020 0004 0723 movs r3, #7 - 1021 0006 0360 str r3, [r0] - 464:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash_ex.c **** - 1022 .loc 1 464 0 - 1023 0008 FFF7FEFF bl FLASH_OB_GetWRP - 1024 .LVL126: - 1025 000c A060 str r0, [r4, #8] - 467:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash_ex.c **** - 1026 .loc 1 467 0 - 1027 000e FFF7FEFF bl FLASH_OB_GetRDP - 1028 .LVL127: - 1029 0012 2073 strb r0, [r4, #12] - 470:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash_ex.c **** } - 1030 .loc 1 470 0 - 1031 0014 FFF7FEFF bl FLASH_OB_GetUser - 1032 .LVL128: - 1033 0018 6073 strb r0, [r4, #13] - 471:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash_ex.c **** - 1034 .loc 1 471 0 - 1035 @ sp needed - 1036 .LVL129: - 1037 001a 10BD pop {r4, pc} - 1038 .cfi_endproc - 1039 .LFE41: - 1041 .section .text.HAL_FLASHEx_OBGetUserData,"ax",%progbits - 1042 .align 1 - 1043 .global HAL_FLASHEx_OBGetUserData - ARM GAS /tmp/ccHniR8O.s page 38 - - - 1044 .syntax unified - 1045 .code 16 - 1046 .thumb_func - 1047 .fpu softvfp - 1049 HAL_FLASHEx_OBGetUserData: - 1050 .LFB42: - 482:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash_ex.c **** uint32_t value = 0U; - 1051 .loc 1 482 0 - 1052 .cfi_startproc - 1053 @ args = 0, pretend = 0, frame = 0 - 1054 @ frame_needed = 0, uses_anonymous_args = 0 - 1055 @ link register save eliminated. - 1056 .LVL130: - 485:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash_ex.c **** { - 1057 .loc 1 485 0 - 1058 0000 064B ldr r3, .L84 - 1059 0002 9842 cmp r0, r3 - 1060 0004 03D0 beq .L83 - 493:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash_ex.c **** } - 1061 .loc 1 493 0 - 1062 0006 064B ldr r3, .L84+4 - 1063 0008 D869 ldr r0, [r3, #28] - 1064 .LVL131: - 1065 000a 000E lsrs r0, r0, #24 - 1066 .LVL132: - 1067 .L80: - 497:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash_ex.c **** - 1068 .loc 1 497 0 - 1069 @ sp needed - 1070 000c 7047 bx lr - 1071 .LVL133: - 1072 .L83: - 488:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash_ex.c **** } - 1073 .loc 1 488 0 - 1074 000e 044B ldr r3, .L84+4 - 1075 0010 DB69 ldr r3, [r3, #28] - 1076 0012 1B0C lsrs r3, r3, #16 - 1077 0014 FF20 movs r0, #255 - 1078 .LVL134: - 1079 0016 1840 ands r0, r3 - 1080 .LVL135: - 1081 0018 F8E7 b .L80 - 1082 .L85: - 1083 001a C046 .align 2 - 1084 .L84: - 1085 001c 04F8FF1F .word 536868868 - 1086 0020 00200240 .word 1073881088 - 1087 .cfi_endproc - 1088 .LFE42: - 1090 .section .text.FLASH_PageErase,"ax",%progbits - 1091 .align 1 - 1092 .global FLASH_PageErase - 1093 .syntax unified - 1094 .code 16 - 1095 .thumb_func - 1096 .fpu softvfp - 1098 FLASH_PageErase: - ARM GAS /tmp/ccHniR8O.s page 39 - - - 1099 .LFB52: - 952:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash_ex.c **** - 953:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash_ex.c **** /** - 954:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash_ex.c **** * @} - 955:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash_ex.c **** */ - 956:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash_ex.c **** - 957:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash_ex.c **** /** - 958:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash_ex.c **** * @} - 959:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash_ex.c **** */ - 960:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash_ex.c **** - 961:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash_ex.c **** /** @addtogroup FLASH - 962:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash_ex.c **** * @{ - 963:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash_ex.c **** */ - 964:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash_ex.c **** - 965:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash_ex.c **** /** @addtogroup FLASH_Private_Functions - 966:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash_ex.c **** * @{ - 967:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash_ex.c **** */ - 968:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash_ex.c **** - 969:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash_ex.c **** /** - 970:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash_ex.c **** * @brief Erase the specified FLASH memory page - 971:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash_ex.c **** * @param PageAddress FLASH page to erase - 972:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash_ex.c **** * The value of this parameter depend on device used within the same series - 973:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash_ex.c **** * - 974:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash_ex.c **** * @retval None - 975:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash_ex.c **** */ - 976:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash_ex.c **** void FLASH_PageErase(uint32_t PageAddress) - 977:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash_ex.c **** { - 1100 .loc 1 977 0 - 1101 .cfi_startproc - 1102 @ args = 0, pretend = 0, frame = 0 - 1103 @ frame_needed = 0, uses_anonymous_args = 0 - 1104 @ link register save eliminated. - 1105 .LVL136: - 978:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash_ex.c **** /* Clean the error context */ - 979:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash_ex.c **** pFlash.ErrorCode = HAL_FLASH_ERROR_NONE; - 1106 .loc 1 979 0 - 1107 0000 064B ldr r3, .L87 - 1108 0002 0022 movs r2, #0 - 1109 0004 DA61 str r2, [r3, #28] - 980:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash_ex.c **** - 981:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash_ex.c **** /* Proceed to erase the page */ - 982:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash_ex.c **** SET_BIT(FLASH->CR, FLASH_CR_PER); - 1110 .loc 1 982 0 - 1111 0006 064B ldr r3, .L87+4 - 1112 0008 1A69 ldr r2, [r3, #16] - 1113 000a 0221 movs r1, #2 - 1114 000c 0A43 orrs r2, r1 - 1115 000e 1A61 str r2, [r3, #16] - 983:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash_ex.c **** WRITE_REG(FLASH->AR, PageAddress); - 1116 .loc 1 983 0 - 1117 0010 5861 str r0, [r3, #20] - 984:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash_ex.c **** SET_BIT(FLASH->CR, FLASH_CR_STRT); - 1118 .loc 1 984 0 - 1119 0012 1A69 ldr r2, [r3, #16] - 1120 0014 3E31 adds r1, r1, #62 - 1121 0016 0A43 orrs r2, r1 - 1122 0018 1A61 str r2, [r3, #16] - ARM GAS /tmp/ccHniR8O.s page 40 - - - 985:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash_ex.c **** } - 1123 .loc 1 985 0 - 1124 @ sp needed - 1125 001a 7047 bx lr - 1126 .L88: - 1127 .align 2 - 1128 .L87: - 1129 001c 00000000 .word pFlash - 1130 0020 00200240 .word 1073881088 - 1131 .cfi_endproc - 1132 .LFE52: - 1134 .section .text.HAL_FLASHEx_Erase,"ax",%progbits - 1135 .align 1 - 1136 .global HAL_FLASHEx_Erase - 1137 .syntax unified - 1138 .code 16 - 1139 .thumb_func - 1140 .fpu softvfp - 1142 HAL_FLASHEx_Erase: - 1143 .LFB37: - 176:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash_ex.c **** HAL_StatusTypeDef status = HAL_ERROR; - 1144 .loc 1 176 0 - 1145 .cfi_startproc - 1146 @ args = 0, pretend = 0, frame = 0 - 1147 @ frame_needed = 0, uses_anonymous_args = 0 - 1148 .LVL137: - 1149 0000 70B5 push {r4, r5, r6, lr} - 1150 .LCFI8: - 1151 .cfi_def_cfa_offset 16 - 1152 .cfi_offset 4, -16 - 1153 .cfi_offset 5, -12 - 1154 .cfi_offset 6, -8 - 1155 .cfi_offset 14, -4 - 1156 0002 0500 movs r5, r0 - 1157 0004 0E00 movs r6, r1 - 1158 .LVL138: - 181:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash_ex.c **** - 1159 .loc 1 181 0 - 1160 0006 244B ldr r3, .L102 - 1161 0008 1B7E ldrb r3, [r3, #24] - 1162 000a 012B cmp r3, #1 - 1163 000c 41D0 beq .L96 - 181:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash_ex.c **** - 1164 .loc 1 181 0 is_stmt 0 discriminator 2 - 1165 000e 224B ldr r3, .L102 - 1166 0010 0122 movs r2, #1 - 1167 0012 1A76 strb r2, [r3, #24] - 186:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash_ex.c **** { - 1168 .loc 1 186 0 is_stmt 1 discriminator 2 - 1169 0014 0368 ldr r3, [r0] - 1170 0016 012B cmp r3, #1 - 1171 0018 22D0 beq .L99 - 211:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash_ex.c **** { - 1172 .loc 1 211 0 - 1173 001a 2048 ldr r0, .L102+4 - 1174 .LVL139: - 1175 001c FFF7FEFF bl FLASH_WaitForLastOperation - ARM GAS /tmp/ccHniR8O.s page 41 - - - 1176 .LVL140: - 1177 0020 0028 cmp r0, #0 - 1178 0022 31D1 bne .L98 - 214:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash_ex.c **** - 1179 .loc 1 214 0 - 1180 0024 0123 movs r3, #1 - 1181 0026 5B42 rsbs r3, r3, #0 - 1182 0028 3360 str r3, [r6] - 217:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash_ex.c **** address < ((pEraseInit->NbPages * FLASH_PAGE_SIZE) + pEraseInit->PageAddress); - 1183 .loc 1 217 0 - 1184 002a 6C68 ldr r4, [r5, #4] - 1185 .LVL141: - 177:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash_ex.c **** uint32_t address = 0U; - 1186 .loc 1 177 0 - 1187 002c 0130 adds r0, r0, #1 - 1188 .LVL142: - 1189 .L93: - 218:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash_ex.c **** address += FLASH_PAGE_SIZE) - 1190 .loc 1 218 0 discriminator 1 - 1191 002e AB68 ldr r3, [r5, #8] - 1192 0030 DB02 lsls r3, r3, #11 - 1193 0032 6A68 ldr r2, [r5, #4] - 1194 0034 9446 mov ip, r2 - 1195 0036 6344 add r3, r3, ip - 217:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash_ex.c **** address < ((pEraseInit->NbPages * FLASH_PAGE_SIZE) + pEraseInit->PageAddress); - 1196 .loc 1 217 0 discriminator 1 - 1197 0038 A342 cmp r3, r4 - 1198 003a 26D9 bls .L92 - 221:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash_ex.c **** - 1199 .loc 1 221 0 - 1200 003c 2000 movs r0, r4 - 1201 .LVL143: - 1202 003e FFF7FEFF bl FLASH_PageErase - 1203 .LVL144: - 224:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash_ex.c **** - 1204 .loc 1 224 0 - 1205 0042 1648 ldr r0, .L102+4 - 1206 0044 FFF7FEFF bl FLASH_WaitForLastOperation - 1207 .LVL145: - 227:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash_ex.c **** - 1208 .loc 1 227 0 - 1209 0048 154A ldr r2, .L102+8 - 1210 004a 1369 ldr r3, [r2, #16] - 1211 004c 0221 movs r1, #2 - 1212 004e 8B43 bics r3, r1 - 1213 0050 1361 str r3, [r2, #16] - 229:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash_ex.c **** { - 1214 .loc 1 229 0 - 1215 0052 0028 cmp r0, #0 - 1216 0054 16D1 bne .L100 - 219:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash_ex.c **** { - 1217 .loc 1 219 0 - 1218 0056 8023 movs r3, #128 - 1219 0058 1B01 lsls r3, r3, #4 - 1220 005a 9C46 mov ip, r3 - 1221 005c 6444 add r4, r4, ip - 1222 .LVL146: - ARM GAS /tmp/ccHniR8O.s page 42 - - - 1223 005e E6E7 b .L93 - 1224 .LVL147: - 1225 .L99: - 190:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash_ex.c **** { - 1226 .loc 1 190 0 - 1227 0060 0E48 ldr r0, .L102+4 - 1228 .LVL148: - 1229 0062 FFF7FEFF bl FLASH_WaitForLastOperation - 1230 .LVL149: - 1231 0066 0028 cmp r0, #0 - 1232 0068 01D0 beq .L101 - 177:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash_ex.c **** uint32_t address = 0U; - 1233 .loc 1 177 0 - 1234 006a 0120 movs r0, #1 - 1235 006c 0DE0 b .L92 - 1236 .L101: - 193:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash_ex.c **** - 1237 .loc 1 193 0 - 1238 006e FFF7FEFF bl FLASH_MassErase - 1239 .LVL150: - 196:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash_ex.c **** - 1240 .loc 1 196 0 - 1241 0072 0A48 ldr r0, .L102+4 - 1242 0074 FFF7FEFF bl FLASH_WaitForLastOperation - 1243 .LVL151: - 199:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash_ex.c **** } - 1244 .loc 1 199 0 - 1245 0078 094A ldr r2, .L102+8 - 1246 007a 1369 ldr r3, [r2, #16] - 1247 007c 0421 movs r1, #4 - 1248 007e 8B43 bics r3, r1 - 1249 0080 1361 str r3, [r2, #16] - 1250 0082 02E0 b .L92 - 1251 .LVL152: - 1252 .L100: - 232:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash_ex.c **** break; - 1253 .loc 1 232 0 - 1254 0084 3460 str r4, [r6] - 233:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash_ex.c **** } - 1255 .loc 1 233 0 - 1256 0086 00E0 b .L92 - 1257 .LVL153: - 1258 .L98: - 177:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash_ex.c **** uint32_t address = 0U; - 1259 .loc 1 177 0 - 1260 0088 0120 movs r0, #1 - 1261 .LVL154: - 1262 .L92: - 240:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash_ex.c **** - 1263 .loc 1 240 0 - 1264 008a 034B ldr r3, .L102 - 1265 008c 0022 movs r2, #0 - 1266 008e 1A76 strb r2, [r3, #24] - 1267 .LVL155: - 1268 .L90: - 243:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash_ex.c **** - 1269 .loc 1 243 0 - ARM GAS /tmp/ccHniR8O.s page 43 - - - 1270 @ sp needed - 1271 .LVL156: - 1272 .LVL157: - 1273 0090 70BD pop {r4, r5, r6, pc} - 1274 .LVL158: - 1275 .L96: - 181:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash_ex.c **** - 1276 .loc 1 181 0 - 1277 0092 0220 movs r0, #2 - 1278 .LVL159: - 1279 0094 FCE7 b .L90 - 1280 .L103: - 1281 0096 C046 .align 2 - 1282 .L102: - 1283 0098 00000000 .word pFlash - 1284 009c 50C30000 .word 50000 - 1285 00a0 00200240 .word 1073881088 - 1286 .cfi_endproc - 1287 .LFE37: - 1289 .section .text.HAL_FLASHEx_Erase_IT,"ax",%progbits - 1290 .align 1 - 1291 .global HAL_FLASHEx_Erase_IT - 1292 .syntax unified - 1293 .code 16 - 1294 .thumb_func - 1295 .fpu softvfp - 1297 HAL_FLASHEx_Erase_IT: - 1298 .LFB38: - 257:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash_ex.c **** HAL_StatusTypeDef status = HAL_OK; - 1299 .loc 1 257 0 - 1300 .cfi_startproc - 1301 @ args = 0, pretend = 0, frame = 0 - 1302 @ frame_needed = 0, uses_anonymous_args = 0 - 1303 .LVL160: - 1304 0000 10B5 push {r4, lr} - 1305 .LCFI9: - 1306 .cfi_def_cfa_offset 8 - 1307 .cfi_offset 4, -8 - 1308 .cfi_offset 14, -4 - 1309 .LVL161: - 261:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash_ex.c **** - 1310 .loc 1 261 0 - 1311 0002 154B ldr r3, .L110 - 1312 0004 1B7E ldrb r3, [r3, #24] - 1313 0006 012B cmp r3, #1 - 1314 0008 21D0 beq .L107 - 261:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash_ex.c **** - 1315 .loc 1 261 0 is_stmt 0 discriminator 2 - 1316 000a 134B ldr r3, .L110 - 1317 000c 0122 movs r2, #1 - 1318 000e 1A76 strb r2, [r3, #24] - 264:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash_ex.c **** { - 1319 .loc 1 264 0 is_stmt 1 discriminator 2 - 1320 0010 1B78 ldrb r3, [r3] - 1321 0012 002B cmp r3, #0 - 1322 0014 1DD1 bne .L108 - 273:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash_ex.c **** - ARM GAS /tmp/ccHniR8O.s page 44 - - - 1323 .loc 1 273 0 - 1324 0016 114A ldr r2, .L110+4 - 1325 0018 1169 ldr r1, [r2, #16] - 1326 001a A023 movs r3, #160 - 1327 001c 5B01 lsls r3, r3, #5 - 1328 001e 0B43 orrs r3, r1 - 1329 0020 1361 str r3, [r2, #16] - 275:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash_ex.c **** { - 1330 .loc 1 275 0 - 1331 0022 0368 ldr r3, [r0] - 1332 0024 012B cmp r3, #1 - 1333 0026 0BD0 beq .L109 - 289:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash_ex.c **** pFlash.DataRemaining = pEraseInit->NbPages; - 1334 .loc 1 289 0 - 1335 0028 0B4B ldr r3, .L110 - 1336 002a 0122 movs r2, #1 - 1337 002c 1A70 strb r2, [r3] - 290:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash_ex.c **** pFlash.Address = pEraseInit->PageAddress; - 1338 .loc 1 290 0 - 1339 002e 8268 ldr r2, [r0, #8] - 1340 0030 5A60 str r2, [r3, #4] - 291:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash_ex.c **** - 1341 .loc 1 291 0 - 1342 0032 4268 ldr r2, [r0, #4] - 1343 0034 9A60 str r2, [r3, #8] - 294:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash_ex.c **** } - 1344 .loc 1 294 0 - 1345 0036 4068 ldr r0, [r0, #4] - 1346 .LVL162: - 1347 0038 FFF7FEFF bl FLASH_PageErase - 1348 .LVL163: - 297:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash_ex.c **** } - 1349 .loc 1 297 0 - 1350 003c 0020 movs r0, #0 - 1351 003e 09E0 b .L105 - 1352 .LVL164: - 1353 .L109: - 278:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash_ex.c **** FLASH_MassErase(); - 1354 .loc 1 278 0 - 1355 0040 054B ldr r3, .L110 - 1356 0042 0222 movs r2, #2 - 1357 0044 1A70 strb r2, [r3] - 279:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash_ex.c **** } - 1358 .loc 1 279 0 - 1359 0046 FFF7FEFF bl FLASH_MassErase - 1360 .LVL165: - 297:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash_ex.c **** } - 1361 .loc 1 297 0 - 1362 004a 0020 movs r0, #0 - 1363 004c 02E0 b .L105 - 1364 .LVL166: - 1365 .L107: - 261:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash_ex.c **** - 1366 .loc 1 261 0 - 1367 004e 0220 movs r0, #2 - 1368 .LVL167: - 1369 0050 00E0 b .L105 - ARM GAS /tmp/ccHniR8O.s page 45 - - - 1370 .LVL168: - 1371 .L108: - 266:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash_ex.c **** } - 1372 .loc 1 266 0 - 1373 0052 0120 movs r0, #1 - 1374 .LVL169: - 1375 .L105: - 298:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash_ex.c **** - 1376 .loc 1 298 0 - 1377 @ sp needed - 1378 0054 10BD pop {r4, pc} - 1379 .L111: - 1380 0056 C046 .align 2 - 1381 .L110: - 1382 0058 00000000 .word pFlash - 1383 005c 00200240 .word 1073881088 - 1384 .cfi_endproc - 1385 .LFE38: - 1387 .text - 1388 .Letext0: - 1389 .file 2 "/home/janhenrik/programme/gcc-arm-none-eabi-7-2018-q2-update/arm-none-eabi/include/machin - 1390 .file 3 "/home/janhenrik/programme/gcc-arm-none-eabi-7-2018-q2-update/arm-none-eabi/include/sys/_s - 1391 .file 4 "Drivers/CMSIS/Device/ST/STM32F0xx/Include/system_stm32f0xx.h" - 1392 .file 5 "Drivers/CMSIS/Device/ST/STM32F0xx/Include/stm32f072xb.h" - 1393 .file 6 "/home/janhenrik/programme/gcc-arm-none-eabi-7-2018-q2-update/arm-none-eabi/include/sys/lo - 1394 .file 7 "/home/janhenrik/programme/gcc-arm-none-eabi-7-2018-q2-update/arm-none-eabi/include/sys/_t - 1395 .file 8 "/home/janhenrik/programme/gcc-arm-none-eabi-7-2018-q2-update/lib/gcc/arm-none-eabi/7.3.1/ - 1396 .file 9 "/home/janhenrik/programme/gcc-arm-none-eabi-7-2018-q2-update/arm-none-eabi/include/sys/re - 1397 .file 10 "Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_def.h" - 1398 .file 11 "Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_flash.h" - 1399 .file 12 "Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_flash_ex.h" - ARM GAS /tmp/ccHniR8O.s page 46 - - -DEFINED SYMBOLS - *ABS*:0000000000000000 stm32f0xx_hal_flash_ex.c - /tmp/ccHniR8O.s:16 .text.FLASH_MassErase:0000000000000000 $t - /tmp/ccHniR8O.s:22 .text.FLASH_MassErase:0000000000000000 FLASH_MassErase - /tmp/ccHniR8O.s:51 .text.FLASH_MassErase:000000000000001c $d - /tmp/ccHniR8O.s:57 .text.FLASH_OB_GetWRP:0000000000000000 $t - /tmp/ccHniR8O.s:63 .text.FLASH_OB_GetWRP:0000000000000000 FLASH_OB_GetWRP - /tmp/ccHniR8O.s:79 .text.FLASH_OB_GetWRP:0000000000000008 $d - /tmp/ccHniR8O.s:84 .text.FLASH_OB_GetRDP:0000000000000000 $t - /tmp/ccHniR8O.s:90 .text.FLASH_OB_GetRDP:0000000000000000 FLASH_OB_GetRDP - /tmp/ccHniR8O.s:128 .text.FLASH_OB_GetRDP:000000000000001c $d - /tmp/ccHniR8O.s:133 .text.FLASH_OB_GetUser:0000000000000000 $t - /tmp/ccHniR8O.s:139 .text.FLASH_OB_GetUser:0000000000000000 FLASH_OB_GetUser - /tmp/ccHniR8O.s:158 .text.FLASH_OB_GetUser:000000000000000c $d - /tmp/ccHniR8O.s:163 .text.FLASH_OB_RDP_LevelConfig:0000000000000000 $t - /tmp/ccHniR8O.s:169 .text.FLASH_OB_RDP_LevelConfig:0000000000000000 FLASH_OB_RDP_LevelConfig - /tmp/ccHniR8O.s:248 .text.FLASH_OB_RDP_LevelConfig:0000000000000054 $d - /tmp/ccHniR8O.s:256 .text.FLASH_OB_UserConfig:0000000000000000 $t - /tmp/ccHniR8O.s:262 .text.FLASH_OB_UserConfig:0000000000000000 FLASH_OB_UserConfig - /tmp/ccHniR8O.s:322 .text.FLASH_OB_UserConfig:0000000000000038 $d - /tmp/ccHniR8O.s:330 .text.FLASH_OB_ProgramData:0000000000000000 $t - /tmp/ccHniR8O.s:336 .text.FLASH_OB_ProgramData:0000000000000000 FLASH_OB_ProgramData - /tmp/ccHniR8O.s:397 .text.FLASH_OB_ProgramData:0000000000000034 $d - /tmp/ccHniR8O.s:404 .text.HAL_FLASHEx_OBErase:0000000000000000 $t - /tmp/ccHniR8O.s:411 .text.HAL_FLASHEx_OBErase:0000000000000000 HAL_FLASHEx_OBErase - /tmp/ccHniR8O.s:481 .text.HAL_FLASHEx_OBErase:0000000000000044 $d - /tmp/ccHniR8O.s:488 .text.FLASH_OB_EnableWRP:0000000000000000 $t - /tmp/ccHniR8O.s:494 .text.FLASH_OB_EnableWRP:0000000000000000 FLASH_OB_EnableWRP - /tmp/ccHniR8O.s:659 .text.FLASH_OB_EnableWRP:00000000000000ac $d - /tmp/ccHniR8O.s:667 .text.FLASH_OB_DisableWRP:0000000000000000 $t - /tmp/ccHniR8O.s:673 .text.FLASH_OB_DisableWRP:0000000000000000 FLASH_OB_DisableWRP - /tmp/ccHniR8O.s:835 .text.FLASH_OB_DisableWRP:00000000000000a8 $d - /tmp/ccHniR8O.s:843 .text.HAL_FLASHEx_OBProgram:0000000000000000 $t - /tmp/ccHniR8O.s:850 .text.HAL_FLASHEx_OBProgram:0000000000000000 HAL_FLASHEx_OBProgram - /tmp/ccHniR8O.s:994 .text.HAL_FLASHEx_OBProgram:0000000000000090 $d - /tmp/ccHniR8O.s:999 .text.HAL_FLASHEx_OBGetConfig:0000000000000000 $t - /tmp/ccHniR8O.s:1006 .text.HAL_FLASHEx_OBGetConfig:0000000000000000 HAL_FLASHEx_OBGetConfig - /tmp/ccHniR8O.s:1042 .text.HAL_FLASHEx_OBGetUserData:0000000000000000 $t - /tmp/ccHniR8O.s:1049 .text.HAL_FLASHEx_OBGetUserData:0000000000000000 HAL_FLASHEx_OBGetUserData - /tmp/ccHniR8O.s:1085 .text.HAL_FLASHEx_OBGetUserData:000000000000001c $d - /tmp/ccHniR8O.s:1091 .text.FLASH_PageErase:0000000000000000 $t - /tmp/ccHniR8O.s:1098 .text.FLASH_PageErase:0000000000000000 FLASH_PageErase - /tmp/ccHniR8O.s:1129 .text.FLASH_PageErase:000000000000001c $d - /tmp/ccHniR8O.s:1135 .text.HAL_FLASHEx_Erase:0000000000000000 $t - /tmp/ccHniR8O.s:1142 .text.HAL_FLASHEx_Erase:0000000000000000 HAL_FLASHEx_Erase - /tmp/ccHniR8O.s:1283 .text.HAL_FLASHEx_Erase:0000000000000098 $d - /tmp/ccHniR8O.s:1290 .text.HAL_FLASHEx_Erase_IT:0000000000000000 $t - /tmp/ccHniR8O.s:1297 .text.HAL_FLASHEx_Erase_IT:0000000000000000 HAL_FLASHEx_Erase_IT - /tmp/ccHniR8O.s:1382 .text.HAL_FLASHEx_Erase_IT:0000000000000058 $d - -UNDEFINED SYMBOLS -pFlash -FLASH_WaitForLastOperation diff --git a/firmware/build/stm32f0xx_hal_flash_ex.o b/firmware/build/stm32f0xx_hal_flash_ex.o deleted file mode 100644 index ebff7d9..0000000 Binary files a/firmware/build/stm32f0xx_hal_flash_ex.o and /dev/null differ diff --git a/firmware/build/stm32f0xx_hal_gpio.d b/firmware/build/stm32f0xx_hal_gpio.d deleted file mode 100644 index 163d65d..0000000 --- a/firmware/build/stm32f0xx_hal_gpio.d +++ /dev/null @@ -1,87 +0,0 @@ -build/stm32f0xx_hal_gpio.o: \ - Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_gpio.c \ - Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal.h \ - Inc/stm32f0xx_hal_conf.h \ - Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_rcc.h \ - Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_def.h \ - Drivers/CMSIS/Device/ST/STM32F0xx/Include/stm32f0xx.h \ - Drivers/CMSIS/Device/ST/STM32F0xx/Include/stm32f072xb.h \ - Drivers/CMSIS/Include/core_cm0.h Drivers/CMSIS/Include/core_cmInstr.h \ - Drivers/CMSIS/Include/cmsis_gcc.h Drivers/CMSIS/Include/core_cmFunc.h \ - Drivers/CMSIS/Device/ST/STM32F0xx/Include/system_stm32f0xx.h \ - Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_rcc_ex.h \ - Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_gpio.h \ - Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_gpio_ex.h \ - Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_dma.h \ - Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_dma_ex.h \ - Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_cortex.h \ - Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_adc.h \ - Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_adc_ex.h \ - Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_flash.h \ - Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_flash_ex.h \ - Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_i2c.h \ - Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_i2c_ex.h \ - Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_pcd.h \ - Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_pcd_ex.h \ - Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_pwr.h \ - Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_pwr_ex.h \ - Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_tim.h \ - Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_tim_ex.h - -Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal.h: - -Inc/stm32f0xx_hal_conf.h: - -Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_rcc.h: - -Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_def.h: - -Drivers/CMSIS/Device/ST/STM32F0xx/Include/stm32f0xx.h: - -Drivers/CMSIS/Device/ST/STM32F0xx/Include/stm32f072xb.h: - -Drivers/CMSIS/Include/core_cm0.h: - -Drivers/CMSIS/Include/core_cmInstr.h: - -Drivers/CMSIS/Include/cmsis_gcc.h: - -Drivers/CMSIS/Include/core_cmFunc.h: - -Drivers/CMSIS/Device/ST/STM32F0xx/Include/system_stm32f0xx.h: - -Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_rcc_ex.h: - -Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_gpio.h: - -Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_gpio_ex.h: - -Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_dma.h: - -Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_dma_ex.h: - -Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_cortex.h: - -Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_adc.h: - -Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_adc_ex.h: - -Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_flash.h: - -Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_flash_ex.h: - -Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_i2c.h: - -Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_i2c_ex.h: - -Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_pcd.h: - -Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_pcd_ex.h: - -Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_pwr.h: - -Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_pwr_ex.h: - -Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_tim.h: - -Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_tim_ex.h: diff --git a/firmware/build/stm32f0xx_hal_gpio.lst b/firmware/build/stm32f0xx_hal_gpio.lst deleted file mode 100644 index 7a31373..0000000 --- a/firmware/build/stm32f0xx_hal_gpio.lst +++ /dev/null @@ -1,1498 +0,0 @@ -ARM GAS /tmp/ccyk1bGG.s page 1 - - - 1 .cpu cortex-m0 - 2 .eabi_attribute 20, 1 - 3 .eabi_attribute 21, 1 - 4 .eabi_attribute 23, 3 - 5 .eabi_attribute 24, 1 - 6 .eabi_attribute 25, 1 - 7 .eabi_attribute 26, 1 - 8 .eabi_attribute 30, 1 - 9 .eabi_attribute 34, 0 - 10 .eabi_attribute 18, 4 - 11 .file "stm32f0xx_hal_gpio.c" - 12 .text - 13 .Ltext0: - 14 .cfi_sections .debug_frame - 15 .section .text.HAL_GPIO_Init,"ax",%progbits - 16 .align 1 - 17 .global HAL_GPIO_Init - 18 .syntax unified - 19 .code 16 - 20 .thumb_func - 21 .fpu softvfp - 23 HAL_GPIO_Init: - 24 .LFB37: - 25 .file 1 "Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_gpio.c" - 1:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_gpio.c **** /** - 2:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_gpio.c **** ****************************************************************************** - 3:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_gpio.c **** * @file stm32f0xx_hal_gpio.c - 4:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_gpio.c **** * @author MCD Application Team - 5:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_gpio.c **** * @brief GPIO HAL module driver. - 6:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_gpio.c **** * This file provides firmware functions to manage the following - 7:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_gpio.c **** * functionalities of the General Purpose Input/Output (GPIO) peripheral: - 8:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_gpio.c **** * + Initialization and de-initialization functions - 9:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_gpio.c **** * + IO operation functions - 10:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_gpio.c **** * - 11:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_gpio.c **** @verbatim - 12:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_gpio.c **** ============================================================================== - 13:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_gpio.c **** ##### GPIO Peripheral features ##### - 14:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_gpio.c **** ============================================================================== - 15:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_gpio.c **** [..] - 16:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_gpio.c **** (+) Each port bit of the general-purpose I/O (GPIO) ports can be individually - 17:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_gpio.c **** configured by software in several modes: - 18:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_gpio.c **** (++) Input mode - 19:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_gpio.c **** (++) Analog mode - 20:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_gpio.c **** (++) Output mode - 21:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_gpio.c **** (++) Alternate function mode - 22:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_gpio.c **** (++) External interrupt/event lines - 23:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_gpio.c **** - 24:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_gpio.c **** (+) During and just after reset, the alternate functions and external interrupt - 25:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_gpio.c **** lines are not active and the I/O ports are configured in input floating mode. - 26:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_gpio.c **** - 27:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_gpio.c **** (+) All GPIO pins have weak internal pull-up and pull-down resistors, which can be - 28:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_gpio.c **** activated or not. - 29:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_gpio.c **** - 30:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_gpio.c **** (+) In Output or Alternate mode, each IO can be configured on open-drain or push-pull - 31:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_gpio.c **** type and the IO speed can be selected depending on the VDD value. - 32:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_gpio.c **** - 33:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_gpio.c **** (+) The microcontroller IO pins are connected to onboard peripherals/modules through a - ARM GAS /tmp/ccyk1bGG.s page 2 - - - 34:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_gpio.c **** multiplexer that allows only one peripheral alternate function (AF) connected - 35:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_gpio.c **** to an IO pin at a time. In this way, there can be no conflict between peripherals - 36:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_gpio.c **** sharing the same IO pin. - 37:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_gpio.c **** - 38:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_gpio.c **** (+) All ports have external interrupt/event capability. To use external interrupt - 39:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_gpio.c **** lines, the port must be configured in input mode. All available GPIO pins are - 40:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_gpio.c **** connected to the 16 external interrupt/event lines from EXTI0 to EXTI15. - 41:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_gpio.c **** - 42:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_gpio.c **** (+) The external interrupt/event controller consists of up to 28 edge detectors - 43:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_gpio.c **** (16 lines are connected to GPIO) for generating event/interrupt requests (each - 44:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_gpio.c **** input line can be independently configured to select the type (interrupt or event) - 45:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_gpio.c **** and the corresponding trigger event (rising or falling or both). Each line can - 46:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_gpio.c **** also be masked independently. - 47:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_gpio.c **** - 48:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_gpio.c **** ##### How to use this driver ##### - 49:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_gpio.c **** ============================================================================== - 50:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_gpio.c **** [..] - 51:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_gpio.c **** (#) Enable the GPIO AHB clock using the following function : __HAL_RCC_GPIOx_CLK_ENABLE(). - 52:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_gpio.c **** - 53:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_gpio.c **** (#) Configure the GPIO pin(s) using HAL_GPIO_Init(). - 54:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_gpio.c **** (++) Configure the IO mode using "Mode" member from GPIO_InitTypeDef structure - 55:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_gpio.c **** (++) Activate Pull-up, Pull-down resistor using "Pull" member from GPIO_InitTypeDef - 56:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_gpio.c **** structure. - 57:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_gpio.c **** (++) In case of Output or alternate function mode selection: the speed is - 58:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_gpio.c **** configured through "Speed" member from GPIO_InitTypeDef structure. - 59:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_gpio.c **** (++) In alternate mode is selection, the alternate function connected to the IO - 60:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_gpio.c **** is configured through "Alternate" member from GPIO_InitTypeDef structure. - 61:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_gpio.c **** (++) Analog mode is required when a pin is to be used as ADC channel - 62:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_gpio.c **** or DAC output. - 63:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_gpio.c **** (++) In case of external interrupt/event selection the "Mode" member from - 64:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_gpio.c **** GPIO_InitTypeDef structure select the type (interrupt or event) and - 65:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_gpio.c **** the corresponding trigger event (rising or falling or both). - 66:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_gpio.c **** - 67:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_gpio.c **** (#) In case of external interrupt/event mode selection, configure NVIC IRQ priority - 68:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_gpio.c **** mapped to the EXTI line using HAL_NVIC_SetPriority() and enable it using - 69:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_gpio.c **** HAL_NVIC_EnableIRQ(). - 70:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_gpio.c **** - 71:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_gpio.c **** (#) HAL_GPIO_DeInit allows to set register values to their reset value. It's also - 72:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_gpio.c **** recommended to use it to unconfigure pin which was used as an external interrupt - 73:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_gpio.c **** or in event mode. That's the only way to reset corresponding bit in EXTI & SYSCFG - 74:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_gpio.c **** registers. - 75:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_gpio.c **** - 76:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_gpio.c **** (#) To get the level of a pin configured in input mode use HAL_GPIO_ReadPin(). - 77:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_gpio.c **** - 78:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_gpio.c **** (#) To set/reset the level of a pin configured in output mode use - 79:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_gpio.c **** HAL_GPIO_WritePin()/HAL_GPIO_TogglePin(). - 80:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_gpio.c **** - 81:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_gpio.c **** (#) To lock pin configuration until next reset use HAL_GPIO_LockPin(). - 82:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_gpio.c **** - 83:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_gpio.c **** (#) During and just after reset, the alternate functions are not - 84:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_gpio.c **** active and the GPIO pins are configured in input floating mode (except JTAG - 85:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_gpio.c **** pins). - 86:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_gpio.c **** - 87:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_gpio.c **** (#) The LSE oscillator pins OSC32_IN and OSC32_OUT can be used as general purpose - 88:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_gpio.c **** (PC14 and PC15, respectively) when the LSE oscillator is off. The LSE has - 89:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_gpio.c **** priority over the GPIO function. - 90:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_gpio.c **** - ARM GAS /tmp/ccyk1bGG.s page 3 - - - 91:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_gpio.c **** (#) The HSE oscillator pins OSC_IN/OSC_OUT can be used as - 92:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_gpio.c **** general purpose PF0 and PF1, respectively, when the HSE oscillator is off. - 93:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_gpio.c **** The HSE has priority over the GPIO function. - 94:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_gpio.c **** - 95:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_gpio.c **** @endverbatim - 96:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_gpio.c **** ****************************************************************************** - 97:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_gpio.c **** * @attention - 98:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_gpio.c **** * - 99:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_gpio.c **** *

© COPYRIGHT(c) 2016 STMicroelectronics

- 100:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_gpio.c **** * - 101:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_gpio.c **** * Redistribution and use in source and binary forms, with or without modification, - 102:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_gpio.c **** * are permitted provided that the following conditions are met: - 103:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_gpio.c **** * 1. Redistributions of source code must retain the above copyright notice, - 104:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_gpio.c **** * this list of conditions and the following disclaimer. - 105:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_gpio.c **** * 2. Redistributions in binary form must reproduce the above copyright notice, - 106:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_gpio.c **** * this list of conditions and the following disclaimer in the documentation - 107:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_gpio.c **** * and/or other materials provided with the distribution. - 108:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_gpio.c **** * 3. Neither the name of STMicroelectronics nor the names of its contributors - 109:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_gpio.c **** * may be used to endorse or promote products derived from this software - 110:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_gpio.c **** * without specific prior written permission. - 111:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_gpio.c **** * - 112:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_gpio.c **** * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" - 113:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_gpio.c **** * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE - 114:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_gpio.c **** * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE - 115:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_gpio.c **** * DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE - 116:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_gpio.c **** * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL - 117:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_gpio.c **** * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR - 118:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_gpio.c **** * SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER - 119:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_gpio.c **** * CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, - 120:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_gpio.c **** * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE - 121:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_gpio.c **** * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. - 122:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_gpio.c **** * - 123:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_gpio.c **** ****************************************************************************** - 124:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_gpio.c **** */ - 125:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_gpio.c **** - 126:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_gpio.c **** /* Includes ------------------------------------------------------------------*/ - 127:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_gpio.c **** #include "stm32f0xx_hal.h" - 128:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_gpio.c **** - 129:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_gpio.c **** /** @addtogroup STM32F0xx_HAL_Driver - 130:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_gpio.c **** * @{ - 131:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_gpio.c **** */ - 132:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_gpio.c **** - 133:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_gpio.c **** /** @defgroup GPIO GPIO - 134:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_gpio.c **** * @brief GPIO HAL module driver - 135:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_gpio.c **** * @{ - 136:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_gpio.c **** */ - 137:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_gpio.c **** - 138:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_gpio.c **** #ifdef HAL_GPIO_MODULE_ENABLED - 139:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_gpio.c **** - 140:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_gpio.c **** /* Private typedef -----------------------------------------------------------*/ - 141:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_gpio.c **** /* Private defines -----------------------------------------------------------*/ - 142:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_gpio.c **** /** @defgroup GPIO_Private_Defines GPIO Private Defines - 143:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_gpio.c **** * @{ - 144:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_gpio.c **** */ - 145:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_gpio.c **** #define GPIO_MODE (0x00000003U) - 146:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_gpio.c **** #define EXTI_MODE (0x10000000U) - 147:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_gpio.c **** #define GPIO_MODE_IT (0x00010000U) - ARM GAS /tmp/ccyk1bGG.s page 4 - - - 148:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_gpio.c **** #define GPIO_MODE_EVT (0x00020000U) - 149:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_gpio.c **** #define RISING_EDGE (0x00100000U) - 150:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_gpio.c **** #define FALLING_EDGE (0x00200000U) - 151:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_gpio.c **** #define GPIO_OUTPUT_TYPE (0x00000010U) - 152:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_gpio.c **** - 153:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_gpio.c **** #define GPIO_NUMBER (16U) - 154:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_gpio.c **** /** - 155:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_gpio.c **** * @} - 156:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_gpio.c **** */ - 157:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_gpio.c **** - 158:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_gpio.c **** /* Private macros ------------------------------------------------------------*/ - 159:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_gpio.c **** /* Private variables ---------------------------------------------------------*/ - 160:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_gpio.c **** /* Private function prototypes -----------------------------------------------*/ - 161:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_gpio.c **** /* Exported functions --------------------------------------------------------*/ - 162:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_gpio.c **** - 163:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_gpio.c **** /** @defgroup GPIO_Exported_Functions GPIO Exported Functions - 164:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_gpio.c **** * @{ - 165:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_gpio.c **** */ - 166:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_gpio.c **** - 167:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_gpio.c **** /** @defgroup GPIO_Exported_Functions_Group1 Initialization/de-initialization functions - 168:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_gpio.c **** * @brief Initialization and Configuration functions - 169:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_gpio.c **** * - 170:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_gpio.c **** @verbatim - 171:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_gpio.c **** =============================================================================== - 172:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_gpio.c **** ##### Initialization and de-initialization functions ##### - 173:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_gpio.c **** =============================================================================== - 174:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_gpio.c **** - 175:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_gpio.c **** @endverbatim - 176:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_gpio.c **** * @{ - 177:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_gpio.c **** */ - 178:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_gpio.c **** - 179:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_gpio.c **** /** - 180:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_gpio.c **** * @brief Initialize the GPIOx peripheral according to the specified parameters in the GPIO_Init. - 181:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_gpio.c **** * @param GPIOx where x can be (A..F) to select the GPIO peripheral for STM32F0 family - 182:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_gpio.c **** * @param GPIO_Init pointer to a GPIO_InitTypeDef structure that contains - 183:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_gpio.c **** * the configuration information for the specified GPIO peripheral. - 184:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_gpio.c **** * @retval None - 185:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_gpio.c **** */ - 186:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_gpio.c **** void HAL_GPIO_Init(GPIO_TypeDef *GPIOx, GPIO_InitTypeDef *GPIO_Init) - 187:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_gpio.c **** { - 26 .loc 1 187 0 - 27 .cfi_startproc - 28 @ args = 0, pretend = 0, frame = 8 - 29 @ frame_needed = 0, uses_anonymous_args = 0 - 30 .LVL0: - 31 0000 F0B5 push {r4, r5, r6, r7, lr} - 32 .LCFI0: - 33 .cfi_def_cfa_offset 20 - 34 .cfi_offset 4, -20 - 35 .cfi_offset 5, -16 - 36 .cfi_offset 6, -12 - 37 .cfi_offset 7, -8 - 38 .cfi_offset 14, -4 - 39 0002 C646 mov lr, r8 - 40 0004 00B5 push {lr} - 41 .LCFI1: - 42 .cfi_def_cfa_offset 24 - ARM GAS /tmp/ccyk1bGG.s page 5 - - - 43 .cfi_offset 8, -24 - 44 0006 82B0 sub sp, sp, #8 - 45 .LCFI2: - 46 .cfi_def_cfa_offset 32 - 47 .LVL1: - 188:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_gpio.c **** uint32_t position = 0x00U; - 48 .loc 1 188 0 - 49 0008 0023 movs r3, #0 - 189:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_gpio.c **** uint32_t iocurrent = 0x00U; - 190:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_gpio.c **** uint32_t temp = 0x00U; - 191:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_gpio.c **** - 192:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_gpio.c **** /* Check the parameters */ - 193:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_gpio.c **** assert_param(IS_GPIO_ALL_INSTANCE(GPIOx)); - 194:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_gpio.c **** assert_param(IS_GPIO_PIN(GPIO_Init->Pin)); - 195:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_gpio.c **** assert_param(IS_GPIO_MODE(GPIO_Init->Mode)); - 196:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_gpio.c **** assert_param(IS_GPIO_PULL(GPIO_Init->Pull)); - 197:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_gpio.c **** - 198:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_gpio.c **** /* Configure the port pins */ - 199:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_gpio.c **** while (((GPIO_Init->Pin) >> position) != RESET) - 50 .loc 1 199 0 - 51 000a 38E0 b .L2 - 52 .LVL2: - 53 .L20: - 200:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_gpio.c **** { - 201:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_gpio.c **** /* Get current io position */ - 202:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_gpio.c **** iocurrent = (GPIO_Init->Pin) & (1U << position); - 203:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_gpio.c **** - 204:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_gpio.c **** if(iocurrent) - 205:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_gpio.c **** { - 206:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_gpio.c **** /*--------------------- GPIO Mode Configuration ------------------------*/ - 207:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_gpio.c **** /* In case of Alternate function mode selection */ - 208:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_gpio.c **** if((GPIO_Init->Mode == GPIO_MODE_AF_PP) || (GPIO_Init->Mode == GPIO_MODE_AF_OD)) - 209:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_gpio.c **** { - 210:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_gpio.c **** /* Check the Alternate function parameters */ - 211:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_gpio.c **** assert_param(IS_GPIO_AF_INSTANCE(GPIOx)); - 212:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_gpio.c **** assert_param(IS_GPIO_AF(GPIO_Init->Alternate)); - 213:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_gpio.c **** - 214:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_gpio.c **** /* Configure Alternate function mapped with the current IO */ - 215:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_gpio.c **** temp = GPIOx->AFR[position >> 3]; - 216:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_gpio.c **** CLEAR_BIT(temp, 0xFU << ((uint32_t)(position & 0x07U) * 4U)) ; - 217:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_gpio.c **** SET_BIT(temp, (uint32_t)(GPIO_Init->Alternate) << (((uint32_t)position & 0x07U) * 4U)); - 218:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_gpio.c **** GPIOx->AFR[position >> 3U] = temp; - 219:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_gpio.c **** } - 220:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_gpio.c **** - 221:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_gpio.c **** /* Configure IO Direction mode (Input, Output, Alternate or Analog) */ - 222:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_gpio.c **** temp = GPIOx->MODER; - 223:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_gpio.c **** CLEAR_BIT(temp, GPIO_MODER_MODER0 << (position * 2U)); - 224:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_gpio.c **** SET_BIT(temp, (GPIO_Init->Mode & GPIO_MODE) << (position * 2U)); - 225:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_gpio.c **** GPIOx->MODER = temp; - 226:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_gpio.c **** - 227:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_gpio.c **** /* In case of Output or Alternate function mode selection */ - 228:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_gpio.c **** if ((GPIO_Init->Mode == GPIO_MODE_OUTPUT_PP) || (GPIO_Init->Mode == GPIO_MODE_AF_PP) || - 229:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_gpio.c **** (GPIO_Init->Mode == GPIO_MODE_OUTPUT_OD) || (GPIO_Init->Mode == GPIO_MODE_AF_OD)) - 230:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_gpio.c **** { - 231:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_gpio.c **** /* Check the Speed parameter */ - 232:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_gpio.c **** assert_param(IS_GPIO_SPEED(GPIO_Init->Speed)); - 233:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_gpio.c **** /* Configure the IO Speed */ - ARM GAS /tmp/ccyk1bGG.s page 6 - - - 234:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_gpio.c **** temp = GPIOx->OSPEEDR; - 235:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_gpio.c **** CLEAR_BIT(temp, GPIO_OSPEEDER_OSPEEDR0 << (position * 2U)); - 236:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_gpio.c **** SET_BIT(temp, GPIO_Init->Speed << (position * 2U)); - 237:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_gpio.c **** GPIOx->OSPEEDR = temp; - 238:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_gpio.c **** - 239:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_gpio.c **** /* Configure the IO Output Type */ - 240:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_gpio.c **** temp = GPIOx->OTYPER; - 241:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_gpio.c **** CLEAR_BIT(temp, GPIO_OTYPER_OT_0 << position) ; - 242:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_gpio.c **** SET_BIT(temp, ((GPIO_Init->Mode & GPIO_OUTPUT_TYPE) >> 4U) << position); - 243:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_gpio.c **** GPIOx->OTYPER = temp; - 244:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_gpio.c **** } - 245:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_gpio.c **** - 246:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_gpio.c **** /* Activate the Pull-up or Pull down resistor for the current IO */ - 247:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_gpio.c **** temp = GPIOx->PUPDR; - 248:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_gpio.c **** CLEAR_BIT(temp, GPIO_PUPDR_PUPDR0 << (position * 2U)); - 249:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_gpio.c **** SET_BIT(temp, (GPIO_Init->Pull) << (position * 2U)); - 250:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_gpio.c **** GPIOx->PUPDR = temp; - 251:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_gpio.c **** - 252:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_gpio.c **** /*--------------------- EXTI Mode Configuration ------------------------*/ - 253:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_gpio.c **** /* Configure the External Interrupt or event for the current IO */ - 254:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_gpio.c **** if((GPIO_Init->Mode & EXTI_MODE) == EXTI_MODE) - 255:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_gpio.c **** { - 256:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_gpio.c **** /* Enable SYSCFG Clock */ - 257:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_gpio.c **** __HAL_RCC_SYSCFG_CLK_ENABLE(); - 258:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_gpio.c **** - 259:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_gpio.c **** temp = SYSCFG->EXTICR[position >> 2]; - 260:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_gpio.c **** CLEAR_BIT(temp, (0x0FU) << (4U * (position & 0x03U))); - 261:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_gpio.c **** SET_BIT(temp, (GPIO_GET_INDEX(GPIOx)) << (4U * (position & 0x03U))); - 54 .loc 1 261 0 - 55 000c 0426 movs r6, #4 - 56 000e 00E0 b .L8 - 57 .L14: - 58 0010 0026 movs r6, #0 - 59 .L8: - 60 .loc 1 261 0 is_stmt 0 discriminator 20 - 61 0012 AE40 lsls r6, r6, r5 - 62 0014 3500 movs r5, r6 - 63 0016 3D43 orrs r5, r7 - 64 .LVL3: - 262:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_gpio.c **** SYSCFG->EXTICR[position >> 2] = temp; - 65 .loc 1 262 0 is_stmt 1 discriminator 20 - 66 0018 0234 adds r4, r4, #2 - 67 001a A400 lsls r4, r4, #2 - 68 001c 574E ldr r6, .L21 - 69 001e A551 str r5, [r4, r6] - 263:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_gpio.c **** - 264:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_gpio.c **** /* Clear EXTI line configuration */ - 265:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_gpio.c **** temp = EXTI->IMR; - 70 .loc 1 265 0 discriminator 20 - 71 0020 574C ldr r4, .L21+4 - 72 0022 2568 ldr r5, [r4] - 73 .LVL4: - 266:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_gpio.c **** CLEAR_BIT(temp, (uint32_t)iocurrent); - 74 .loc 1 266 0 discriminator 20 - 75 0024 4246 mov r2, r8 - 76 0026 D443 mvns r4, r2 - 77 0028 2E00 movs r6, r5 - ARM GAS /tmp/ccyk1bGG.s page 7 - - - 78 002a 2640 ands r6, r4 - 79 .LVL5: - 267:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_gpio.c **** if((GPIO_Init->Mode & GPIO_MODE_IT) == GPIO_MODE_IT) - 80 .loc 1 267 0 discriminator 20 - 81 002c 4A68 ldr r2, [r1, #4] - 82 002e D203 lsls r2, r2, #15 - 83 0030 02D5 bpl .L9 - 268:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_gpio.c **** { - 269:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_gpio.c **** SET_BIT(temp, iocurrent); - 84 .loc 1 269 0 - 85 0032 4246 mov r2, r8 - 86 0034 1543 orrs r5, r2 - 87 0036 2E00 movs r6, r5 - 88 .LVL6: - 89 .L9: - 270:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_gpio.c **** } - 271:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_gpio.c **** EXTI->IMR = temp; - 90 .loc 1 271 0 - 91 0038 514D ldr r5, .L21+4 - 92 003a 2E60 str r6, [r5] - 272:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_gpio.c **** - 273:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_gpio.c **** temp = EXTI->EMR; - 93 .loc 1 273 0 - 94 003c 6D68 ldr r5, [r5, #4] - 95 .LVL7: - 274:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_gpio.c **** CLEAR_BIT(temp, (uint32_t)iocurrent); - 96 .loc 1 274 0 - 97 003e 2E00 movs r6, r5 - 98 0040 2640 ands r6, r4 - 99 .LVL8: - 275:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_gpio.c **** if((GPIO_Init->Mode & GPIO_MODE_EVT) == GPIO_MODE_EVT) - 100 .loc 1 275 0 - 101 0042 4A68 ldr r2, [r1, #4] - 102 0044 9203 lsls r2, r2, #14 - 103 0046 02D5 bpl .L10 - 276:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_gpio.c **** { - 277:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_gpio.c **** SET_BIT(temp, iocurrent); - 104 .loc 1 277 0 - 105 0048 4246 mov r2, r8 - 106 004a 1543 orrs r5, r2 - 107 004c 2E00 movs r6, r5 - 108 .LVL9: - 109 .L10: - 278:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_gpio.c **** } - 279:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_gpio.c **** EXTI->EMR = temp; - 110 .loc 1 279 0 - 111 004e 4C4D ldr r5, .L21+4 - 112 0050 6E60 str r6, [r5, #4] - 280:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_gpio.c **** - 281:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_gpio.c **** /* Clear Rising Falling edge configuration */ - 282:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_gpio.c **** temp = EXTI->RTSR; - 113 .loc 1 282 0 - 114 0052 AD68 ldr r5, [r5, #8] - 115 .LVL10: - 283:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_gpio.c **** CLEAR_BIT(temp, (uint32_t)iocurrent); - 116 .loc 1 283 0 - 117 0054 2E00 movs r6, r5 - ARM GAS /tmp/ccyk1bGG.s page 8 - - - 118 0056 2640 ands r6, r4 - 119 .LVL11: - 284:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_gpio.c **** if((GPIO_Init->Mode & RISING_EDGE) == RISING_EDGE) - 120 .loc 1 284 0 - 121 0058 4A68 ldr r2, [r1, #4] - 122 005a D202 lsls r2, r2, #11 - 123 005c 02D5 bpl .L11 - 285:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_gpio.c **** { - 286:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_gpio.c **** SET_BIT(temp, iocurrent); - 124 .loc 1 286 0 - 125 005e 4246 mov r2, r8 - 126 0060 1543 orrs r5, r2 - 127 0062 2E00 movs r6, r5 - 128 .LVL12: - 129 .L11: - 287:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_gpio.c **** } - 288:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_gpio.c **** EXTI->RTSR = temp; - 130 .loc 1 288 0 - 131 0064 464D ldr r5, .L21+4 - 132 0066 AE60 str r6, [r5, #8] - 289:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_gpio.c **** - 290:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_gpio.c **** temp = EXTI->FTSR; - 133 .loc 1 290 0 - 134 0068 ED68 ldr r5, [r5, #12] - 135 .LVL13: - 291:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_gpio.c **** CLEAR_BIT(temp, (uint32_t)iocurrent); - 136 .loc 1 291 0 - 137 006a 2C40 ands r4, r5 - 138 .LVL14: - 292:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_gpio.c **** if((GPIO_Init->Mode & FALLING_EDGE) == FALLING_EDGE) - 139 .loc 1 292 0 - 140 006c 4A68 ldr r2, [r1, #4] - 141 006e 9202 lsls r2, r2, #10 - 142 0070 02D5 bpl .L12 - 293:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_gpio.c **** { - 294:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_gpio.c **** SET_BIT(temp, iocurrent); - 143 .loc 1 294 0 - 144 0072 4246 mov r2, r8 - 145 0074 2A43 orrs r2, r5 - 146 0076 1400 movs r4, r2 - 147 .LVL15: - 148 .L12: - 295:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_gpio.c **** } - 296:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_gpio.c **** EXTI->FTSR = temp; - 149 .loc 1 296 0 - 150 0078 414A ldr r2, .L21+4 - 151 007a D460 str r4, [r2, #12] - 152 .LVL16: - 153 .L3: - 297:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_gpio.c **** } - 298:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_gpio.c **** } - 299:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_gpio.c **** - 300:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_gpio.c **** position++; - 154 .loc 1 300 0 - 155 007c 0133 adds r3, r3, #1 - 156 .LVL17: - 157 .L2: - ARM GAS /tmp/ccyk1bGG.s page 9 - - - 199:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_gpio.c **** { - 158 .loc 1 199 0 - 159 007e 0A68 ldr r2, [r1] - 160 0080 1400 movs r4, r2 - 161 0082 DC40 lsrs r4, r4, r3 - 162 0084 76D0 beq .L19 - 202:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_gpio.c **** - 163 .loc 1 202 0 - 164 0086 0125 movs r5, #1 - 165 0088 9D40 lsls r5, r5, r3 - 166 008a 2A40 ands r2, r5 - 167 008c 9046 mov r8, r2 - 168 .LVL18: - 204:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_gpio.c **** { - 169 .loc 1 204 0 - 170 008e F5D0 beq .L3 - 208:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_gpio.c **** { - 171 .loc 1 208 0 - 172 0090 4C68 ldr r4, [r1, #4] - 173 0092 022C cmp r4, #2 - 174 0094 01D0 beq .L4 - 208:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_gpio.c **** { - 175 .loc 1 208 0 is_stmt 0 discriminator 1 - 176 0096 122C cmp r4, #18 - 177 0098 0ED1 bne .L5 - 178 .L4: - 215:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_gpio.c **** CLEAR_BIT(temp, 0xFU << ((uint32_t)(position & 0x07U) * 4U)) ; - 179 .loc 1 215 0 is_stmt 1 - 180 009a DC08 lsrs r4, r3, #3 - 181 009c 0834 adds r4, r4, #8 - 182 009e A400 lsls r4, r4, #2 - 183 00a0 2758 ldr r7, [r4, r0] - 184 .LVL19: - 216:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_gpio.c **** SET_BIT(temp, (uint32_t)(GPIO_Init->Alternate) << (((uint32_t)position & 0x07U) * 4U)); - 185 .loc 1 216 0 - 186 00a2 0726 movs r6, #7 - 187 00a4 1E40 ands r6, r3 - 188 00a6 B600 lsls r6, r6, #2 - 189 00a8 0F22 movs r2, #15 - 190 .LVL20: - 191 00aa B240 lsls r2, r2, r6 - 192 00ac 9743 bics r7, r2 - 193 .LVL21: - 217:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_gpio.c **** GPIOx->AFR[position >> 3U] = temp; - 194 .loc 1 217 0 - 195 00ae 0A69 ldr r2, [r1, #16] - 196 00b0 B240 lsls r2, r2, r6 - 197 00b2 1600 movs r6, r2 - 198 00b4 3E43 orrs r6, r7 - 199 .LVL22: - 218:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_gpio.c **** } - 200 .loc 1 218 0 - 201 00b6 2650 str r6, [r4, r0] - 202 .LVL23: - 203 .L5: - 222:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_gpio.c **** CLEAR_BIT(temp, GPIO_MODER_MODER0 << (position * 2U)); - 204 .loc 1 222 0 - ARM GAS /tmp/ccyk1bGG.s page 10 - - - 205 00b8 0268 ldr r2, [r0] - 206 .LVL24: - 223:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_gpio.c **** SET_BIT(temp, (GPIO_Init->Mode & GPIO_MODE) << (position * 2U)); - 207 .loc 1 223 0 - 208 00ba 5F00 lsls r7, r3, #1 - 209 00bc 0324 movs r4, #3 - 210 00be 2600 movs r6, r4 - 211 00c0 BE40 lsls r6, r6, r7 - 212 00c2 F643 mvns r6, r6 - 213 00c4 3240 ands r2, r6 - 214 .LVL25: - 215 00c6 9446 mov ip, r2 - 216 .LVL26: - 224:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_gpio.c **** GPIOx->MODER = temp; - 217 .loc 1 224 0 - 218 00c8 4A68 ldr r2, [r1, #4] - 219 .LVL27: - 220 00ca 1440 ands r4, r2 - 221 00cc BC40 lsls r4, r4, r7 - 222 00ce 6246 mov r2, ip - 223 00d0 1443 orrs r4, r2 - 224 .LVL28: - 225:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_gpio.c **** - 225 .loc 1 225 0 - 226 00d2 0460 str r4, [r0] - 228:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_gpio.c **** (GPIO_Init->Mode == GPIO_MODE_OUTPUT_OD) || (GPIO_Init->Mode == GPIO_MODE_AF_OD)) - 227 .loc 1 228 0 - 228 00d4 4C68 ldr r4, [r1, #4] - 229 .LVL29: - 230 00d6 621E subs r2, r4, #1 - 231 00d8 012A cmp r2, #1 - 232 00da 03D9 bls .L6 - 228:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_gpio.c **** (GPIO_Init->Mode == GPIO_MODE_OUTPUT_OD) || (GPIO_Init->Mode == GPIO_MODE_AF_OD)) - 233 .loc 1 228 0 is_stmt 0 discriminator 1 - 234 00dc 112C cmp r4, #17 - 235 00de 01D0 beq .L6 - 229:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_gpio.c **** { - 236 .loc 1 229 0 is_stmt 1 - 237 00e0 122C cmp r4, #18 - 238 00e2 10D1 bne .L7 - 239 .L6: - 234:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_gpio.c **** CLEAR_BIT(temp, GPIO_OSPEEDER_OSPEEDR0 << (position * 2U)); - 240 .loc 1 234 0 - 241 00e4 8468 ldr r4, [r0, #8] - 242 .LVL30: - 235:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_gpio.c **** SET_BIT(temp, GPIO_Init->Speed << (position * 2U)); - 243 .loc 1 235 0 - 244 00e6 3440 ands r4, r6 - 245 .LVL31: - 246 00e8 A446 mov ip, r4 - 247 .LVL32: - 236:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_gpio.c **** GPIOx->OSPEEDR = temp; - 248 .loc 1 236 0 - 249 00ea CC68 ldr r4, [r1, #12] - 250 .LVL33: - 251 00ec BC40 lsls r4, r4, r7 - 252 00ee 6246 mov r2, ip - ARM GAS /tmp/ccyk1bGG.s page 11 - - - 253 00f0 1443 orrs r4, r2 - 254 .LVL34: - 237:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_gpio.c **** - 255 .loc 1 237 0 - 256 00f2 8460 str r4, [r0, #8] - 240:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_gpio.c **** CLEAR_BIT(temp, GPIO_OTYPER_OT_0 << position) ; - 257 .loc 1 240 0 - 258 00f4 4468 ldr r4, [r0, #4] - 259 .LVL35: - 241:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_gpio.c **** SET_BIT(temp, ((GPIO_Init->Mode & GPIO_OUTPUT_TYPE) >> 4U) << position); - 260 .loc 1 241 0 - 261 00f6 AC43 bics r4, r5 - 262 .LVL36: - 242:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_gpio.c **** GPIOx->OTYPER = temp; - 263 .loc 1 242 0 - 264 00f8 4A68 ldr r2, [r1, #4] - 265 00fa 1209 lsrs r2, r2, #4 - 266 00fc 0125 movs r5, #1 - 267 00fe 1540 ands r5, r2 - 268 0100 9D40 lsls r5, r5, r3 - 269 0102 2543 orrs r5, r4 - 270 .LVL37: - 243:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_gpio.c **** } - 271 .loc 1 243 0 - 272 0104 4560 str r5, [r0, #4] - 273 .LVL38: - 274 .L7: - 247:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_gpio.c **** CLEAR_BIT(temp, GPIO_PUPDR_PUPDR0 << (position * 2U)); - 275 .loc 1 247 0 - 276 0106 C468 ldr r4, [r0, #12] - 277 .LVL39: - 248:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_gpio.c **** SET_BIT(temp, (GPIO_Init->Pull) << (position * 2U)); - 278 .loc 1 248 0 - 279 0108 2640 ands r6, r4 - 280 .LVL40: - 249:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_gpio.c **** GPIOx->PUPDR = temp; - 281 .loc 1 249 0 - 282 010a 8C68 ldr r4, [r1, #8] - 283 010c BC40 lsls r4, r4, r7 - 284 010e 3443 orrs r4, r6 - 285 .LVL41: - 250:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_gpio.c **** - 286 .loc 1 250 0 - 287 0110 C460 str r4, [r0, #12] - 254:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_gpio.c **** { - 288 .loc 1 254 0 - 289 0112 4A68 ldr r2, [r1, #4] - 290 0114 D200 lsls r2, r2, #3 - 291 0116 B1D5 bpl .L3 - 292 .LBB2: - 257:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_gpio.c **** - 293 .loc 1 257 0 - 294 0118 1A4D ldr r5, .L21+8 - 295 011a AE69 ldr r6, [r5, #24] - 296 011c 0124 movs r4, #1 - 297 .LVL42: - 298 011e 2643 orrs r6, r4 - ARM GAS /tmp/ccyk1bGG.s page 12 - - - 299 0120 AE61 str r6, [r5, #24] - 300 .LVL43: - 301 0122 AD69 ldr r5, [r5, #24] - 302 0124 2C40 ands r4, r5 - 303 0126 0194 str r4, [sp, #4] - 304 0128 019C ldr r4, [sp, #4] - 305 .LBE2: - 259:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_gpio.c **** CLEAR_BIT(temp, (0x0FU) << (4U * (position & 0x03U))); - 306 .loc 1 259 0 - 307 012a 9C08 lsrs r4, r3, #2 - 308 012c A51C adds r5, r4, #2 - 309 012e AD00 lsls r5, r5, #2 - 310 0130 124E ldr r6, .L21 - 311 0132 AF59 ldr r7, [r5, r6] - 312 .LVL44: - 260:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_gpio.c **** SET_BIT(temp, (GPIO_GET_INDEX(GPIOx)) << (4U * (position & 0x03U))); - 313 .loc 1 260 0 - 314 0134 0326 movs r6, #3 - 315 0136 1E40 ands r6, r3 - 316 0138 B500 lsls r5, r6, #2 - 317 013a 0F26 movs r6, #15 - 318 013c AE40 lsls r6, r6, r5 - 319 013e B743 bics r7, r6 - 320 .LVL45: - 261:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_gpio.c **** SYSCFG->EXTICR[position >> 2] = temp; - 321 .loc 1 261 0 - 322 0140 9026 movs r6, #144 - 323 0142 F605 lsls r6, r6, #23 - 324 0144 B042 cmp r0, r6 - 325 0146 00D1 bne .LCB327 - 326 0148 62E7 b .L14 @long jump - 327 .LCB327: - 261:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_gpio.c **** SYSCFG->EXTICR[position >> 2] = temp; - 328 .loc 1 261 0 is_stmt 0 discriminator 1 - 329 014a 0F4E ldr r6, .L21+12 - 330 014c B042 cmp r0, r6 - 331 014e 0BD0 beq .L15 - 261:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_gpio.c **** SYSCFG->EXTICR[position >> 2] = temp; - 332 .loc 1 261 0 discriminator 3 - 333 0150 0E4E ldr r6, .L21+16 - 334 0152 B042 cmp r0, r6 - 335 0154 0AD0 beq .L16 - 261:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_gpio.c **** SYSCFG->EXTICR[position >> 2] = temp; - 336 .loc 1 261 0 discriminator 5 - 337 0156 0E4E ldr r6, .L21+20 - 338 0158 B042 cmp r0, r6 - 339 015a 09D0 beq .L17 - 261:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_gpio.c **** SYSCFG->EXTICR[position >> 2] = temp; - 340 .loc 1 261 0 discriminator 7 - 341 015c 0D4E ldr r6, .L21+24 - 342 015e B042 cmp r0, r6 - 343 0160 00D1 bne .LCB339 - 344 0162 53E7 b .L20 @long jump - 345 .LCB339: - 261:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_gpio.c **** SYSCFG->EXTICR[position >> 2] = temp; - 346 .loc 1 261 0 - 347 0164 0526 movs r6, #5 - ARM GAS /tmp/ccyk1bGG.s page 13 - - - 348 0166 54E7 b .L8 - 349 .L15: - 350 0168 0126 movs r6, #1 - 351 016a 52E7 b .L8 - 352 .L16: - 353 016c 0226 movs r6, #2 - 354 016e 50E7 b .L8 - 355 .L17: - 356 0170 0326 movs r6, #3 - 357 0172 4EE7 b .L8 - 358 .LVL46: - 359 .L19: - 301:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_gpio.c **** } - 302:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_gpio.c **** } - 360 .loc 1 302 0 is_stmt 1 - 361 0174 02B0 add sp, sp, #8 - 362 @ sp needed - 363 0176 04BC pop {r2} - 364 0178 9046 mov r8, r2 - 365 017a F0BD pop {r4, r5, r6, r7, pc} - 366 .L22: - 367 .align 2 - 368 .L21: - 369 017c 00000140 .word 1073807360 - 370 0180 00040140 .word 1073808384 - 371 0184 00100240 .word 1073876992 - 372 0188 00040048 .word 1207960576 - 373 018c 00080048 .word 1207961600 - 374 0190 000C0048 .word 1207962624 - 375 0194 00100048 .word 1207963648 - 376 .cfi_endproc - 377 .LFE37: - 379 .section .text.HAL_GPIO_DeInit,"ax",%progbits - 380 .align 1 - 381 .global HAL_GPIO_DeInit - 382 .syntax unified - 383 .code 16 - 384 .thumb_func - 385 .fpu softvfp - 387 HAL_GPIO_DeInit: - 388 .LFB38: - 303:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_gpio.c **** - 304:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_gpio.c **** /** - 305:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_gpio.c **** * @brief De-initialize the GPIOx peripheral registers to their default reset values. - 306:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_gpio.c **** * @param GPIOx where x can be (A..F) to select the GPIO peripheral for STM32F0 family - 307:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_gpio.c **** * @param GPIO_Pin specifies the port bit to be written. - 308:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_gpio.c **** * This parameter can be one of GPIO_PIN_x where x can be (0..15). - 309:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_gpio.c **** * @retval None - 310:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_gpio.c **** */ - 311:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_gpio.c **** void HAL_GPIO_DeInit(GPIO_TypeDef *GPIOx, uint32_t GPIO_Pin) - 312:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_gpio.c **** { - 389 .loc 1 312 0 - 390 .cfi_startproc - 391 @ args = 0, pretend = 0, frame = 0 - 392 @ frame_needed = 0, uses_anonymous_args = 0 - 393 .LVL47: - 394 0000 F0B5 push {r4, r5, r6, r7, lr} - ARM GAS /tmp/ccyk1bGG.s page 14 - - - 395 .LCFI3: - 396 .cfi_def_cfa_offset 20 - 397 .cfi_offset 4, -20 - 398 .cfi_offset 5, -16 - 399 .cfi_offset 6, -12 - 400 .cfi_offset 7, -8 - 401 .cfi_offset 14, -4 - 402 0002 D646 mov lr, r10 - 403 0004 4F46 mov r7, r9 - 404 0006 4646 mov r6, r8 - 405 0008 C0B5 push {r6, r7, lr} - 406 .LCFI4: - 407 .cfi_def_cfa_offset 32 - 408 .cfi_offset 8, -32 - 409 .cfi_offset 9, -28 - 410 .cfi_offset 10, -24 - 411 .LVL48: - 313:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_gpio.c **** uint32_t position = 0x00U; - 412 .loc 1 313 0 - 413 000a 0023 movs r3, #0 - 314:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_gpio.c **** uint32_t iocurrent = 0x00U; - 315:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_gpio.c **** uint32_t tmp = 0x00U; - 316:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_gpio.c **** - 317:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_gpio.c **** /* Check the parameters */ - 318:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_gpio.c **** assert_param(IS_GPIO_ALL_INSTANCE(GPIOx)); - 319:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_gpio.c **** assert_param(IS_GPIO_PIN(GPIO_Pin)); - 320:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_gpio.c **** - 321:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_gpio.c **** /* Configure the port pins */ - 322:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_gpio.c **** while ((GPIO_Pin >> position) != RESET) - 414 .loc 1 322 0 - 415 000c 06E0 b .L24 - 416 .LVL49: - 417 .L35: - 323:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_gpio.c **** { - 324:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_gpio.c **** /* Get current io position */ - 325:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_gpio.c **** iocurrent = GPIO_Pin & (1U << position); - 326:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_gpio.c **** - 327:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_gpio.c **** if (iocurrent) - 328:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_gpio.c **** { - 329:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_gpio.c **** /*------------------------- GPIO Mode Configuration --------------------*/ - 330:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_gpio.c **** /* Configure IO Direction in Input Floting Mode */ - 331:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_gpio.c **** CLEAR_BIT(GPIOx->MODER, GPIO_MODER_MODER0 << (position * 2U)); - 332:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_gpio.c **** - 333:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_gpio.c **** /* Configure the default Alternate Function in current IO */ - 334:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_gpio.c **** CLEAR_BIT(GPIOx->AFR[position >> 3U], 0xFU << ((uint32_t)(position & 0x07U) * 4U)) ; - 335:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_gpio.c **** - 336:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_gpio.c **** /* Configure the default value for IO Speed */ - 337:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_gpio.c **** CLEAR_BIT(GPIOx->OSPEEDR, GPIO_OSPEEDER_OSPEEDR0 << (position * 2U)); - 338:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_gpio.c **** - 339:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_gpio.c **** /* Configure the default value IO Output Type */ - 340:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_gpio.c **** CLEAR_BIT(GPIOx->OTYPER, GPIO_OTYPER_OT_0 << position) ; - 341:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_gpio.c **** - 342:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_gpio.c **** /* Deactivate the Pull-up oand Pull-down resistor for the current IO */ - 343:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_gpio.c **** CLEAR_BIT(GPIOx->PUPDR, GPIO_PUPDR_PUPDR0 << (position * 2U)); - 344:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_gpio.c **** - 345:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_gpio.c **** /*------------------------- EXTI Mode Configuration --------------------*/ - 346:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_gpio.c **** /* Clear the External Interrupt or Event for the current IO */ - ARM GAS /tmp/ccyk1bGG.s page 15 - - - 347:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_gpio.c **** - 348:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_gpio.c **** tmp = SYSCFG->EXTICR[position >> 2U]; - 349:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_gpio.c **** tmp &= ((0x0FU) << (4U * (position & 0x03U))); - 350:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_gpio.c **** if(tmp == (GPIO_GET_INDEX(GPIOx) << (4U * (position & 0x03U)))) - 418 .loc 1 350 0 - 419 000e 0425 movs r5, #4 - 420 0010 00E0 b .L26 - 421 .L28: - 422 0012 0025 movs r5, #0 - 423 .L26: - 424 .loc 1 350 0 is_stmt 0 discriminator 20 - 425 0014 9540 lsls r5, r5, r2 - 426 0016 A542 cmp r5, r4 - 427 0018 4FD0 beq .L33 - 428 .LVL50: - 429 .L25: - 351:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_gpio.c **** { - 352:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_gpio.c **** tmp = (0x0FU) << (4U * (position & 0x03U)); - 353:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_gpio.c **** CLEAR_BIT(SYSCFG->EXTICR[position >> 2U], tmp); - 354:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_gpio.c **** - 355:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_gpio.c **** /* Clear EXTI line configuration */ - 356:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_gpio.c **** CLEAR_BIT(EXTI->IMR, (uint32_t)iocurrent); - 357:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_gpio.c **** CLEAR_BIT(EXTI->EMR, (uint32_t)iocurrent); - 358:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_gpio.c **** - 359:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_gpio.c **** /* Clear Rising Falling edge configuration */ - 360:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_gpio.c **** CLEAR_BIT(EXTI->RTSR, (uint32_t)iocurrent); - 361:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_gpio.c **** CLEAR_BIT(EXTI->FTSR, (uint32_t)iocurrent); - 362:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_gpio.c **** } - 363:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_gpio.c **** } - 364:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_gpio.c **** - 365:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_gpio.c **** position++; - 430 .loc 1 365 0 is_stmt 1 - 431 001a 0133 adds r3, r3, #1 - 432 .LVL51: - 433 .L24: - 322:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_gpio.c **** { - 434 .loc 1 322 0 - 435 001c 0A00 movs r2, r1 - 436 001e DA40 lsrs r2, r2, r3 - 437 0020 62D0 beq .L34 - 325:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_gpio.c **** - 438 .loc 1 325 0 - 439 0022 0122 movs r2, #1 - 440 0024 9A40 lsls r2, r2, r3 - 441 0026 0F00 movs r7, r1 - 442 0028 1740 ands r7, r2 - 443 002a BA46 mov r10, r7 - 444 .LVL52: - 327:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_gpio.c **** { - 445 .loc 1 327 0 - 446 002c F5D0 beq .L25 - 331:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_gpio.c **** - 447 .loc 1 331 0 - 448 002e 0568 ldr r5, [r0] - 449 0030 5E00 lsls r6, r3, #1 - 450 0032 0324 movs r4, #3 - 451 0034 2700 movs r7, r4 - ARM GAS /tmp/ccyk1bGG.s page 16 - - - 452 .LVL53: - 453 0036 B740 lsls r7, r7, r6 - 454 0038 FE43 mvns r6, r7 - 455 003a B446 mov ip, r6 - 456 003c 3540 ands r5, r6 - 457 003e 0560 str r5, [r0] - 334:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_gpio.c **** - 458 .loc 1 334 0 - 459 0040 DE08 lsrs r6, r3, #3 - 460 0042 0836 adds r6, r6, #8 - 461 0044 B600 lsls r6, r6, #2 - 462 0046 3558 ldr r5, [r6, r0] - 463 0048 A946 mov r9, r5 - 464 004a 0725 movs r5, #7 - 465 004c 1D40 ands r5, r3 - 466 004e AD00 lsls r5, r5, #2 - 467 0050 0F27 movs r7, #15 - 468 0052 B846 mov r8, r7 - 469 0054 AF40 lsls r7, r7, r5 - 470 0056 3D00 movs r5, r7 - 471 0058 4F46 mov r7, r9 - 472 005a AF43 bics r7, r5 - 473 005c 3750 str r7, [r6, r0] - 337:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_gpio.c **** - 474 .loc 1 337 0 - 475 005e 8568 ldr r5, [r0, #8] - 476 0060 6646 mov r6, ip - 477 0062 3540 ands r5, r6 - 478 0064 8560 str r5, [r0, #8] - 340:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_gpio.c **** - 479 .loc 1 340 0 - 480 0066 4568 ldr r5, [r0, #4] - 481 0068 9543 bics r5, r2 - 482 006a 4560 str r5, [r0, #4] - 343:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_gpio.c **** - 483 .loc 1 343 0 - 484 006c C268 ldr r2, [r0, #12] - 485 006e 3240 ands r2, r6 - 486 0070 C260 str r2, [r0, #12] - 348:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_gpio.c **** tmp &= ((0x0FU) << (4U * (position & 0x03U))); - 487 .loc 1 348 0 - 488 0072 9E08 lsrs r6, r3, #2 - 489 0074 B51C adds r5, r6, #2 - 490 0076 AD00 lsls r5, r5, #2 - 491 0078 1E4A ldr r2, .L36 - 492 007a AD58 ldr r5, [r5, r2] - 493 .LVL54: - 349:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_gpio.c **** if(tmp == (GPIO_GET_INDEX(GPIOx) << (4U * (position & 0x03U)))) - 494 .loc 1 349 0 - 495 007c 2200 movs r2, r4 - 496 007e 1A40 ands r2, r3 - 497 0080 9200 lsls r2, r2, #2 - 498 0082 4446 mov r4, r8 - 499 0084 9440 lsls r4, r4, r2 - 500 0086 A046 mov r8, r4 - 501 0088 2C40 ands r4, r5 - 502 .LVL55: - ARM GAS /tmp/ccyk1bGG.s page 17 - - - 350:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_gpio.c **** { - 503 .loc 1 350 0 - 504 008a 9025 movs r5, #144 - 505 008c ED05 lsls r5, r5, #23 - 506 008e A842 cmp r0, r5 - 507 0090 BFD0 beq .L28 - 350:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_gpio.c **** { - 508 .loc 1 350 0 is_stmt 0 discriminator 1 - 509 0092 194D ldr r5, .L36+4 - 510 0094 A842 cmp r0, r5 - 511 0096 0AD0 beq .L29 - 350:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_gpio.c **** { - 512 .loc 1 350 0 discriminator 3 - 513 0098 184D ldr r5, .L36+8 - 514 009a A842 cmp r0, r5 - 515 009c 09D0 beq .L30 - 350:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_gpio.c **** { - 516 .loc 1 350 0 discriminator 5 - 517 009e 184D ldr r5, .L36+12 - 518 00a0 A842 cmp r0, r5 - 519 00a2 08D0 beq .L31 - 350:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_gpio.c **** { - 520 .loc 1 350 0 discriminator 7 - 521 00a4 174D ldr r5, .L36+16 - 522 00a6 A842 cmp r0, r5 - 523 00a8 B1D0 beq .L35 - 350:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_gpio.c **** { - 524 .loc 1 350 0 - 525 00aa 0525 movs r5, #5 - 526 00ac B2E7 b .L26 - 527 .L29: - 528 00ae 0125 movs r5, #1 - 529 00b0 B0E7 b .L26 - 530 .L30: - 531 00b2 0225 movs r5, #2 - 532 00b4 AEE7 b .L26 - 533 .L31: - 534 00b6 0325 movs r5, #3 - 535 00b8 ACE7 b .L26 - 536 .L33: - 537 .LVL56: - 353:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_gpio.c **** - 538 .loc 1 353 0 is_stmt 1 - 539 00ba 0E4D ldr r5, .L36 - 540 00bc B21C adds r2, r6, #2 - 541 00be 9200 lsls r2, r2, #2 - 542 00c0 5459 ldr r4, [r2, r5] - 543 00c2 4646 mov r6, r8 - 544 00c4 B443 bics r4, r6 - 545 00c6 5451 str r4, [r2, r5] - 356:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_gpio.c **** CLEAR_BIT(EXTI->EMR, (uint32_t)iocurrent); - 546 .loc 1 356 0 - 547 00c8 0F4C ldr r4, .L36+20 - 548 00ca 2568 ldr r5, [r4] - 549 00cc 5246 mov r2, r10 - 550 00ce D243 mvns r2, r2 - 551 00d0 1540 ands r5, r2 - ARM GAS /tmp/ccyk1bGG.s page 18 - - - 552 00d2 2560 str r5, [r4] - 357:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_gpio.c **** - 553 .loc 1 357 0 - 554 00d4 6568 ldr r5, [r4, #4] - 555 00d6 1540 ands r5, r2 - 556 00d8 6560 str r5, [r4, #4] - 360:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_gpio.c **** CLEAR_BIT(EXTI->FTSR, (uint32_t)iocurrent); - 557 .loc 1 360 0 - 558 00da A568 ldr r5, [r4, #8] - 559 00dc 1540 ands r5, r2 - 560 00de A560 str r5, [r4, #8] - 361:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_gpio.c **** } - 561 .loc 1 361 0 - 562 00e0 E568 ldr r5, [r4, #12] - 563 00e2 2A40 ands r2, r5 - 564 00e4 E260 str r2, [r4, #12] - 565 00e6 98E7 b .L25 - 566 .LVL57: - 567 .L34: - 366:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_gpio.c **** } - 367:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_gpio.c **** } - 568 .loc 1 367 0 - 569 @ sp needed - 570 00e8 1CBC pop {r2, r3, r4} - 571 00ea 9046 mov r8, r2 - 572 00ec 9946 mov r9, r3 - 573 00ee A246 mov r10, r4 - 574 00f0 F0BD pop {r4, r5, r6, r7, pc} - 575 .L37: - 576 00f2 C046 .align 2 - 577 .L36: - 578 00f4 00000140 .word 1073807360 - 579 00f8 00040048 .word 1207960576 - 580 00fc 00080048 .word 1207961600 - 581 0100 000C0048 .word 1207962624 - 582 0104 00100048 .word 1207963648 - 583 0108 00040140 .word 1073808384 - 584 .cfi_endproc - 585 .LFE38: - 587 .section .text.HAL_GPIO_ReadPin,"ax",%progbits - 588 .align 1 - 589 .global HAL_GPIO_ReadPin - 590 .syntax unified - 591 .code 16 - 592 .thumb_func - 593 .fpu softvfp - 595 HAL_GPIO_ReadPin: - 596 .LFB39: - 368:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_gpio.c **** - 369:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_gpio.c **** /** - 370:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_gpio.c **** * @} - 371:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_gpio.c **** */ - 372:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_gpio.c **** - 373:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_gpio.c **** /** @defgroup GPIO_Exported_Functions_Group2 IO operation functions - 374:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_gpio.c **** * @brief GPIO Read, Write, Toggle, Lock and EXTI management functions. - 375:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_gpio.c **** * - 376:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_gpio.c **** @verbatim - ARM GAS /tmp/ccyk1bGG.s page 19 - - - 377:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_gpio.c **** =============================================================================== - 378:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_gpio.c **** ##### IO operation functions ##### - 379:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_gpio.c **** =============================================================================== - 380:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_gpio.c **** - 381:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_gpio.c **** @endverbatim - 382:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_gpio.c **** * @{ - 383:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_gpio.c **** */ - 384:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_gpio.c **** - 385:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_gpio.c **** /** - 386:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_gpio.c **** * @brief Read the specified input port pin. - 387:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_gpio.c **** * @param GPIOx where x can be (A..F) to select the GPIO peripheral for STM32F0 family - 388:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_gpio.c **** * @param GPIO_Pin specifies the port bit to read. - 389:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_gpio.c **** * This parameter can be GPIO_PIN_x where x can be (0..15). - 390:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_gpio.c **** * @retval The input port pin value. - 391:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_gpio.c **** */ - 392:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_gpio.c **** GPIO_PinState HAL_GPIO_ReadPin(GPIO_TypeDef* GPIOx, uint16_t GPIO_Pin) - 393:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_gpio.c **** { - 597 .loc 1 393 0 - 598 .cfi_startproc - 599 @ args = 0, pretend = 0, frame = 0 - 600 @ frame_needed = 0, uses_anonymous_args = 0 - 601 @ link register save eliminated. - 602 .LVL58: - 394:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_gpio.c **** GPIO_PinState bitstatus; - 395:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_gpio.c **** - 396:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_gpio.c **** /* Check the parameters */ - 397:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_gpio.c **** assert_param(IS_GPIO_PIN(GPIO_Pin)); - 398:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_gpio.c **** - 399:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_gpio.c **** if ((GPIOx->IDR & GPIO_Pin) != (uint32_t)GPIO_PIN_RESET) - 603 .loc 1 399 0 - 604 0000 0369 ldr r3, [r0, #16] - 605 0002 0B42 tst r3, r1 - 606 0004 01D1 bne .L41 - 400:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_gpio.c **** { - 401:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_gpio.c **** bitstatus = GPIO_PIN_SET; - 402:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_gpio.c **** } - 403:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_gpio.c **** else - 404:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_gpio.c **** { - 405:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_gpio.c **** bitstatus = GPIO_PIN_RESET; - 607 .loc 1 405 0 - 608 0006 0020 movs r0, #0 - 609 .LVL59: - 610 .L39: - 406:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_gpio.c **** } - 407:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_gpio.c **** return bitstatus; - 408:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_gpio.c **** } - 611 .loc 1 408 0 - 612 @ sp needed - 613 0008 7047 bx lr - 614 .LVL60: - 615 .L41: - 401:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_gpio.c **** } - 616 .loc 1 401 0 - 617 000a 0120 movs r0, #1 - 618 .LVL61: - 619 000c FCE7 b .L39 - 620 .cfi_endproc - ARM GAS /tmp/ccyk1bGG.s page 20 - - - 621 .LFE39: - 623 .section .text.HAL_GPIO_WritePin,"ax",%progbits - 624 .align 1 - 625 .global HAL_GPIO_WritePin - 626 .syntax unified - 627 .code 16 - 628 .thumb_func - 629 .fpu softvfp - 631 HAL_GPIO_WritePin: - 632 .LFB40: - 409:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_gpio.c **** - 410:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_gpio.c **** /** - 411:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_gpio.c **** * @brief Set or clear the selected data port bit. - 412:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_gpio.c **** * @note This function uses GPIOx_BSRR and GPIOx_BRR registers to allow atomic read/modify - 413:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_gpio.c **** * accesses. In this way, there is no risk of an IRQ occurring between - 414:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_gpio.c **** * the read and the modify access. - 415:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_gpio.c **** * - 416:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_gpio.c **** * @param GPIOx where x can be (A..H) to select the GPIO peripheral for STM32F0 family - 417:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_gpio.c **** * @param GPIO_Pin specifies the port bit to be written. - 418:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_gpio.c **** * This parameter can be one of GPIO_PIN_x where x can be (0..15). - 419:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_gpio.c **** * @param PinState specifies the value to be written to the selected bit. - 420:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_gpio.c **** * This parameter can be one of the GPIO_PinState enum values: - 421:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_gpio.c **** * @arg GPIO_PIN_RESET: to clear the port pin - 422:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_gpio.c **** * @arg GPIO_PIN_SET: to set the port pin - 423:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_gpio.c **** * @retval None - 424:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_gpio.c **** */ - 425:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_gpio.c **** void HAL_GPIO_WritePin(GPIO_TypeDef* GPIOx, uint16_t GPIO_Pin, GPIO_PinState PinState) - 426:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_gpio.c **** { - 633 .loc 1 426 0 - 634 .cfi_startproc - 635 @ args = 0, pretend = 0, frame = 0 - 636 @ frame_needed = 0, uses_anonymous_args = 0 - 637 @ link register save eliminated. - 638 .LVL62: - 427:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_gpio.c **** /* Check the parameters */ - 428:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_gpio.c **** assert_param(IS_GPIO_PIN(GPIO_Pin)); - 429:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_gpio.c **** assert_param(IS_GPIO_PIN_ACTION(PinState)); - 430:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_gpio.c **** - 431:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_gpio.c **** if (PinState != GPIO_PIN_RESET) - 639 .loc 1 431 0 - 640 0000 002A cmp r2, #0 - 641 0002 01D1 bne .L45 - 432:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_gpio.c **** { - 433:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_gpio.c **** GPIOx->BSRR = (uint32_t)GPIO_Pin; - 434:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_gpio.c **** } - 435:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_gpio.c **** else - 436:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_gpio.c **** { - 437:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_gpio.c **** GPIOx->BRR = (uint32_t)GPIO_Pin; - 642 .loc 1 437 0 - 643 0004 8162 str r1, [r0, #40] - 644 .L42: - 438:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_gpio.c **** } - 439:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_gpio.c **** } - 645 .loc 1 439 0 - 646 @ sp needed - 647 0006 7047 bx lr - 648 .L45: - ARM GAS /tmp/ccyk1bGG.s page 21 - - - 433:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_gpio.c **** } - 649 .loc 1 433 0 - 650 0008 8161 str r1, [r0, #24] - 651 000a FCE7 b .L42 - 652 .cfi_endproc - 653 .LFE40: - 655 .section .text.HAL_GPIO_TogglePin,"ax",%progbits - 656 .align 1 - 657 .global HAL_GPIO_TogglePin - 658 .syntax unified - 659 .code 16 - 660 .thumb_func - 661 .fpu softvfp - 663 HAL_GPIO_TogglePin: - 664 .LFB41: - 440:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_gpio.c **** - 441:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_gpio.c **** /** - 442:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_gpio.c **** * @brief Toggle the specified GPIO pin. - 443:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_gpio.c **** * @param GPIOx where x can be (A..F) to select the GPIO peripheral for STM32F0 family - 444:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_gpio.c **** * @param GPIO_Pin specifies the pin to be toggled. - 445:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_gpio.c **** * @retval None - 446:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_gpio.c **** */ - 447:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_gpio.c **** void HAL_GPIO_TogglePin(GPIO_TypeDef* GPIOx, uint16_t GPIO_Pin) - 448:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_gpio.c **** { - 665 .loc 1 448 0 - 666 .cfi_startproc - 667 @ args = 0, pretend = 0, frame = 0 - 668 @ frame_needed = 0, uses_anonymous_args = 0 - 669 @ link register save eliminated. - 670 .LVL63: - 449:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_gpio.c **** /* Check the parameters */ - 450:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_gpio.c **** assert_param(IS_GPIO_PIN(GPIO_Pin)); - 451:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_gpio.c **** - 452:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_gpio.c **** GPIOx->ODR ^= GPIO_Pin; - 671 .loc 1 452 0 - 672 0000 4369 ldr r3, [r0, #20] - 673 0002 5940 eors r1, r3 - 674 .LVL64: - 675 0004 4161 str r1, [r0, #20] - 453:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_gpio.c **** } - 676 .loc 1 453 0 - 677 @ sp needed - 678 0006 7047 bx lr - 679 .cfi_endproc - 680 .LFE41: - 682 .section .text.HAL_GPIO_LockPin,"ax",%progbits - 683 .align 1 - 684 .global HAL_GPIO_LockPin - 685 .syntax unified - 686 .code 16 - 687 .thumb_func - 688 .fpu softvfp - 690 HAL_GPIO_LockPin: - 691 .LFB42: - 454:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_gpio.c **** - 455:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_gpio.c **** /** - 456:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_gpio.c **** * @brief Locks GPIO Pins configuration registers. - ARM GAS /tmp/ccyk1bGG.s page 22 - - - 457:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_gpio.c **** * @note The locked registers are GPIOx_MODER, GPIOx_OTYPER, GPIOx_OSPEEDR, - 458:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_gpio.c **** * GPIOx_PUPDR, GPIOx_AFRL and GPIOx_AFRH. - 459:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_gpio.c **** * @note The configuration of the locked GPIO pins can no longer be modified - 460:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_gpio.c **** * until the next reset. - 461:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_gpio.c **** * @param GPIOx where x can be (A..F) to select the GPIO peripheral for STM32F0 family - 462:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_gpio.c **** * @param GPIO_Pin specifies the port bits to be locked. - 463:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_gpio.c **** * This parameter can be any combination of GPIO_Pin_x where x can be (0..15). - 464:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_gpio.c **** * @retval None - 465:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_gpio.c **** */ - 466:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_gpio.c **** HAL_StatusTypeDef HAL_GPIO_LockPin(GPIO_TypeDef* GPIOx, uint16_t GPIO_Pin) - 467:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_gpio.c **** { - 692 .loc 1 467 0 - 693 .cfi_startproc - 694 @ args = 0, pretend = 0, frame = 8 - 695 @ frame_needed = 0, uses_anonymous_args = 0 - 696 @ link register save eliminated. - 697 .LVL65: - 698 0000 82B0 sub sp, sp, #8 - 699 .LCFI5: - 700 .cfi_def_cfa_offset 8 - 468:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_gpio.c **** __IO uint32_t tmp = GPIO_LCKR_LCKK; - 701 .loc 1 468 0 - 702 0002 8022 movs r2, #128 - 703 0004 5202 lsls r2, r2, #9 - 704 0006 0192 str r2, [sp, #4] - 469:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_gpio.c **** - 470:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_gpio.c **** /* Check the parameters */ - 471:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_gpio.c **** assert_param(IS_GPIO_LOCK_INSTANCE(GPIOx)); - 472:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_gpio.c **** assert_param(IS_GPIO_PIN(GPIO_Pin)); - 473:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_gpio.c **** - 474:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_gpio.c **** /* Apply lock key write sequence */ - 475:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_gpio.c **** SET_BIT(tmp, GPIO_Pin); - 705 .loc 1 475 0 - 706 0008 019B ldr r3, [sp, #4] - 707 000a 0B43 orrs r3, r1 - 708 000c 0193 str r3, [sp, #4] - 476:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_gpio.c **** /* Set LCKx bit(s): LCKK='1' + LCK[15-0] */ - 477:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_gpio.c **** GPIOx->LCKR = tmp; - 709 .loc 1 477 0 - 710 000e 019B ldr r3, [sp, #4] - 711 0010 C361 str r3, [r0, #28] - 478:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_gpio.c **** /* Reset LCKx bit(s): LCKK='0' + LCK[15-0] */ - 479:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_gpio.c **** GPIOx->LCKR = GPIO_Pin; - 712 .loc 1 479 0 - 713 0012 C161 str r1, [r0, #28] - 480:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_gpio.c **** /* Set LCKx bit(s): LCKK='1' + LCK[15-0] */ - 481:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_gpio.c **** GPIOx->LCKR = tmp; - 714 .loc 1 481 0 - 715 0014 019B ldr r3, [sp, #4] - 716 0016 C361 str r3, [r0, #28] - 482:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_gpio.c **** /* Read LCKK bit*/ - 483:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_gpio.c **** tmp = GPIOx->LCKR; - 717 .loc 1 483 0 - 718 0018 C369 ldr r3, [r0, #28] - 719 001a 0193 str r3, [sp, #4] - 484:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_gpio.c **** - 485:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_gpio.c **** if((GPIOx->LCKR & GPIO_LCKR_LCKK) != RESET) - ARM GAS /tmp/ccyk1bGG.s page 23 - - - 720 .loc 1 485 0 - 721 001c C369 ldr r3, [r0, #28] - 722 001e 1342 tst r3, r2 - 723 0020 02D1 bne .L50 - 486:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_gpio.c **** { - 487:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_gpio.c **** return HAL_OK; - 488:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_gpio.c **** } - 489:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_gpio.c **** else - 490:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_gpio.c **** { - 491:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_gpio.c **** return HAL_ERROR; - 724 .loc 1 491 0 - 725 0022 0120 movs r0, #1 - 726 .LVL66: - 727 .L48: - 492:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_gpio.c **** } - 493:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_gpio.c **** } - 728 .loc 1 493 0 - 729 0024 02B0 add sp, sp, #8 - 730 @ sp needed - 731 0026 7047 bx lr - 732 .LVL67: - 733 .L50: - 487:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_gpio.c **** } - 734 .loc 1 487 0 - 735 0028 0020 movs r0, #0 - 736 .LVL68: - 737 002a FBE7 b .L48 - 738 .cfi_endproc - 739 .LFE42: - 741 .section .text.HAL_GPIO_EXTI_Callback,"ax",%progbits - 742 .align 1 - 743 .weak HAL_GPIO_EXTI_Callback - 744 .syntax unified - 745 .code 16 - 746 .thumb_func - 747 .fpu softvfp - 749 HAL_GPIO_EXTI_Callback: - 750 .LFB44: - 494:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_gpio.c **** - 495:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_gpio.c **** /** - 496:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_gpio.c **** * @brief Handle EXTI interrupt request. - 497:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_gpio.c **** * @param GPIO_Pin Specifies the port pin connected to corresponding EXTI line. - 498:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_gpio.c **** * @retval None - 499:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_gpio.c **** */ - 500:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_gpio.c **** void HAL_GPIO_EXTI_IRQHandler(uint16_t GPIO_Pin) - 501:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_gpio.c **** { - 502:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_gpio.c **** /* EXTI line interrupt detected */ - 503:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_gpio.c **** if(__HAL_GPIO_EXTI_GET_IT(GPIO_Pin) != RESET) - 504:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_gpio.c **** { - 505:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_gpio.c **** __HAL_GPIO_EXTI_CLEAR_IT(GPIO_Pin); - 506:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_gpio.c **** HAL_GPIO_EXTI_Callback(GPIO_Pin); - 507:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_gpio.c **** } - 508:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_gpio.c **** } - 509:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_gpio.c **** - 510:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_gpio.c **** /** - 511:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_gpio.c **** * @brief EXTI line detection callback. - 512:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_gpio.c **** * @param GPIO_Pin Specifies the port pin connected to corresponding EXTI line. - ARM GAS /tmp/ccyk1bGG.s page 24 - - - 513:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_gpio.c **** * @retval None - 514:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_gpio.c **** */ - 515:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_gpio.c **** __weak void HAL_GPIO_EXTI_Callback(uint16_t GPIO_Pin) - 516:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_gpio.c **** { - 751 .loc 1 516 0 - 752 .cfi_startproc - 753 @ args = 0, pretend = 0, frame = 0 - 754 @ frame_needed = 0, uses_anonymous_args = 0 - 755 @ link register save eliminated. - 756 .LVL69: - 517:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_gpio.c **** /* Prevent unused argument(s) compilation warning */ - 518:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_gpio.c **** UNUSED(GPIO_Pin); - 519:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_gpio.c **** - 520:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_gpio.c **** /* NOTE: This function should not be modified, when the callback is needed, - 521:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_gpio.c **** the HAL_GPIO_EXTI_Callback could be implemented in the user file - 522:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_gpio.c **** */ - 523:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_gpio.c **** } - 757 .loc 1 523 0 - 758 @ sp needed - 759 0000 7047 bx lr - 760 .cfi_endproc - 761 .LFE44: - 763 .section .text.HAL_GPIO_EXTI_IRQHandler,"ax",%progbits - 764 .align 1 - 765 .global HAL_GPIO_EXTI_IRQHandler - 766 .syntax unified - 767 .code 16 - 768 .thumb_func - 769 .fpu softvfp - 771 HAL_GPIO_EXTI_IRQHandler: - 772 .LFB43: - 501:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_gpio.c **** /* EXTI line interrupt detected */ - 773 .loc 1 501 0 - 774 .cfi_startproc - 775 @ args = 0, pretend = 0, frame = 0 - 776 @ frame_needed = 0, uses_anonymous_args = 0 - 777 .LVL70: - 778 0000 10B5 push {r4, lr} - 779 .LCFI6: - 780 .cfi_def_cfa_offset 8 - 781 .cfi_offset 4, -8 - 782 .cfi_offset 14, -4 - 503:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_gpio.c **** { - 783 .loc 1 503 0 - 784 0002 054B ldr r3, .L55 - 785 0004 5B69 ldr r3, [r3, #20] - 786 0006 1842 tst r0, r3 - 787 0008 00D1 bne .L54 - 788 .LVL71: - 789 .L52: - 508:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_gpio.c **** - 790 .loc 1 508 0 - 791 @ sp needed - 792 000a 10BD pop {r4, pc} - 793 .LVL72: - 794 .L54: - 505:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_gpio.c **** HAL_GPIO_EXTI_Callback(GPIO_Pin); - ARM GAS /tmp/ccyk1bGG.s page 25 - - - 795 .loc 1 505 0 - 796 000c 024B ldr r3, .L55 - 797 000e 5861 str r0, [r3, #20] - 506:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_gpio.c **** } - 798 .loc 1 506 0 - 799 0010 FFF7FEFF bl HAL_GPIO_EXTI_Callback - 800 .LVL73: - 508:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_gpio.c **** - 801 .loc 1 508 0 - 802 0014 F9E7 b .L52 - 803 .L56: - 804 0016 C046 .align 2 - 805 .L55: - 806 0018 00040140 .word 1073808384 - 807 .cfi_endproc - 808 .LFE43: - 810 .text - 811 .Letext0: - 812 .file 2 "/home/janhenrik/programme/gcc-arm-none-eabi-7-2018-q2-update/arm-none-eabi/include/machin - 813 .file 3 "/home/janhenrik/programme/gcc-arm-none-eabi-7-2018-q2-update/arm-none-eabi/include/sys/_s - 814 .file 4 "Drivers/CMSIS/Device/ST/STM32F0xx/Include/system_stm32f0xx.h" - 815 .file 5 "Drivers/CMSIS/Device/ST/STM32F0xx/Include/stm32f072xb.h" - 816 .file 6 "/home/janhenrik/programme/gcc-arm-none-eabi-7-2018-q2-update/arm-none-eabi/include/sys/lo - 817 .file 7 "/home/janhenrik/programme/gcc-arm-none-eabi-7-2018-q2-update/arm-none-eabi/include/sys/_t - 818 .file 8 "/home/janhenrik/programme/gcc-arm-none-eabi-7-2018-q2-update/lib/gcc/arm-none-eabi/7.3.1/ - 819 .file 9 "/home/janhenrik/programme/gcc-arm-none-eabi-7-2018-q2-update/arm-none-eabi/include/sys/re - 820 .file 10 "Drivers/CMSIS/Device/ST/STM32F0xx/Include/stm32f0xx.h" - 821 .file 11 "Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_def.h" - 822 .file 12 "Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_gpio.h" - ARM GAS /tmp/ccyk1bGG.s page 26 - - -DEFINED SYMBOLS - *ABS*:0000000000000000 stm32f0xx_hal_gpio.c - /tmp/ccyk1bGG.s:16 .text.HAL_GPIO_Init:0000000000000000 $t - /tmp/ccyk1bGG.s:23 .text.HAL_GPIO_Init:0000000000000000 HAL_GPIO_Init - /tmp/ccyk1bGG.s:369 .text.HAL_GPIO_Init:000000000000017c $d - /tmp/ccyk1bGG.s:380 .text.HAL_GPIO_DeInit:0000000000000000 $t - /tmp/ccyk1bGG.s:387 .text.HAL_GPIO_DeInit:0000000000000000 HAL_GPIO_DeInit - /tmp/ccyk1bGG.s:578 .text.HAL_GPIO_DeInit:00000000000000f4 $d - /tmp/ccyk1bGG.s:588 .text.HAL_GPIO_ReadPin:0000000000000000 $t - /tmp/ccyk1bGG.s:595 .text.HAL_GPIO_ReadPin:0000000000000000 HAL_GPIO_ReadPin - /tmp/ccyk1bGG.s:624 .text.HAL_GPIO_WritePin:0000000000000000 $t - /tmp/ccyk1bGG.s:631 .text.HAL_GPIO_WritePin:0000000000000000 HAL_GPIO_WritePin - /tmp/ccyk1bGG.s:656 .text.HAL_GPIO_TogglePin:0000000000000000 $t - /tmp/ccyk1bGG.s:663 .text.HAL_GPIO_TogglePin:0000000000000000 HAL_GPIO_TogglePin - /tmp/ccyk1bGG.s:683 .text.HAL_GPIO_LockPin:0000000000000000 $t - /tmp/ccyk1bGG.s:690 .text.HAL_GPIO_LockPin:0000000000000000 HAL_GPIO_LockPin - /tmp/ccyk1bGG.s:742 .text.HAL_GPIO_EXTI_Callback:0000000000000000 $t - /tmp/ccyk1bGG.s:749 .text.HAL_GPIO_EXTI_Callback:0000000000000000 HAL_GPIO_EXTI_Callback - /tmp/ccyk1bGG.s:764 .text.HAL_GPIO_EXTI_IRQHandler:0000000000000000 $t - /tmp/ccyk1bGG.s:771 .text.HAL_GPIO_EXTI_IRQHandler:0000000000000000 HAL_GPIO_EXTI_IRQHandler - /tmp/ccyk1bGG.s:806 .text.HAL_GPIO_EXTI_IRQHandler:0000000000000018 $d - -NO UNDEFINED SYMBOLS diff --git a/firmware/build/stm32f0xx_hal_gpio.o b/firmware/build/stm32f0xx_hal_gpio.o deleted file mode 100644 index f219947..0000000 Binary files a/firmware/build/stm32f0xx_hal_gpio.o and /dev/null differ diff --git a/firmware/build/stm32f0xx_hal_i2c.d b/firmware/build/stm32f0xx_hal_i2c.d deleted file mode 100644 index dee86ba..0000000 --- a/firmware/build/stm32f0xx_hal_i2c.d +++ /dev/null @@ -1,87 +0,0 @@ -build/stm32f0xx_hal_i2c.o: \ - Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c \ - Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal.h \ - Inc/stm32f0xx_hal_conf.h \ - Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_rcc.h \ - Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_def.h \ - Drivers/CMSIS/Device/ST/STM32F0xx/Include/stm32f0xx.h \ - Drivers/CMSIS/Device/ST/STM32F0xx/Include/stm32f072xb.h \ - Drivers/CMSIS/Include/core_cm0.h Drivers/CMSIS/Include/core_cmInstr.h \ - Drivers/CMSIS/Include/cmsis_gcc.h Drivers/CMSIS/Include/core_cmFunc.h \ - Drivers/CMSIS/Device/ST/STM32F0xx/Include/system_stm32f0xx.h \ - Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_rcc_ex.h \ - Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_gpio.h \ - Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_gpio_ex.h \ - Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_dma.h \ - Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_dma_ex.h \ - Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_cortex.h \ - Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_adc.h \ - Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_adc_ex.h \ - Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_flash.h \ - Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_flash_ex.h \ - Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_i2c.h \ - Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_i2c_ex.h \ - Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_pcd.h \ - Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_pcd_ex.h \ - Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_pwr.h \ - Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_pwr_ex.h \ - Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_tim.h \ - Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_tim_ex.h - -Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal.h: - -Inc/stm32f0xx_hal_conf.h: - -Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_rcc.h: - -Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_def.h: - -Drivers/CMSIS/Device/ST/STM32F0xx/Include/stm32f0xx.h: - -Drivers/CMSIS/Device/ST/STM32F0xx/Include/stm32f072xb.h: - -Drivers/CMSIS/Include/core_cm0.h: - -Drivers/CMSIS/Include/core_cmInstr.h: - -Drivers/CMSIS/Include/cmsis_gcc.h: - -Drivers/CMSIS/Include/core_cmFunc.h: - -Drivers/CMSIS/Device/ST/STM32F0xx/Include/system_stm32f0xx.h: - -Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_rcc_ex.h: - -Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_gpio.h: - -Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_gpio_ex.h: - -Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_dma.h: - -Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_dma_ex.h: - -Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_cortex.h: - -Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_adc.h: - -Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_adc_ex.h: - -Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_flash.h: - -Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_flash_ex.h: - -Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_i2c.h: - -Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_i2c_ex.h: - -Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_pcd.h: - -Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_pcd_ex.h: - -Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_pwr.h: - -Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_pwr_ex.h: - -Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_tim.h: - -Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_tim_ex.h: diff --git a/firmware/build/stm32f0xx_hal_i2c.lst b/firmware/build/stm32f0xx_hal_i2c.lst deleted file mode 100644 index fde14f0..0000000 --- a/firmware/build/stm32f0xx_hal_i2c.lst +++ /dev/null @@ -1,16473 +0,0 @@ -ARM GAS /tmp/ccTaFl06.s page 1 - - - 1 .cpu cortex-m0 - 2 .eabi_attribute 20, 1 - 3 .eabi_attribute 21, 1 - 4 .eabi_attribute 23, 3 - 5 .eabi_attribute 24, 1 - 6 .eabi_attribute 25, 1 - 7 .eabi_attribute 26, 1 - 8 .eabi_attribute 30, 1 - 9 .eabi_attribute 34, 0 - 10 .eabi_attribute 18, 4 - 11 .file "stm32f0xx_hal_i2c.c" - 12 .text - 13 .Ltext0: - 14 .cfi_sections .debug_frame - 15 .section .text.I2C_Flush_TXDR,"ax",%progbits - 16 .align 1 - 17 .syntax unified - 18 .code 16 - 19 .thumb_func - 20 .fpu softvfp - 22 I2C_Flush_TXDR: - 23 .LFB95: - 24 .file 1 "Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c" - 1:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** /** - 2:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** ****************************************************************************** - 3:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** * @file stm32f0xx_hal_i2c.c - 4:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** * @author MCD Application Team - 5:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** * @brief I2C HAL module driver. - 6:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** * This file provides firmware functions to manage the following - 7:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** * functionalities of the Inter Integrated Circuit (I2C) peripheral: - 8:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** * + Initialization and de-initialization functions - 9:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** * + IO operation functions - 10:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** * + Peripheral State and Errors functions - 11:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** * - 12:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** @verbatim - 13:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** ============================================================================== - 14:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** ##### How to use this driver ##### - 15:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** ============================================================================== - 16:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** [..] - 17:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** The I2C HAL driver can be used as follows: - 18:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** - 19:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** (#) Declare a I2C_HandleTypeDef handle structure, for example: - 20:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** I2C_HandleTypeDef hi2c; - 21:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** - 22:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** (#)Initialize the I2C low level resources by implementing the HAL_I2C_MspInit() API: - 23:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** (##) Enable the I2Cx interface clock - 24:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** (##) I2C pins configuration - 25:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** (+++) Enable the clock for the I2C GPIOs - 26:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** (+++) Configure I2C pins as alternate function open-drain - 27:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** (##) NVIC configuration if you need to use interrupt process - 28:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** (+++) Configure the I2Cx interrupt priority - 29:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** (+++) Enable the NVIC I2C IRQ Channel - 30:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** (##) DMA Configuration if you need to use DMA process - 31:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** (+++) Declare a DMA_HandleTypeDef handle structure for the transmit or receive channel - 32:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** (+++) Enable the DMAx interface clock using - 33:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** (+++) Configure the DMA handle parameters - 34:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** (+++) Configure the DMA Tx or Rx channel - ARM GAS /tmp/ccTaFl06.s page 2 - - - 35:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** (+++) Associate the initialized DMA handle to the hi2c DMA Tx or Rx handle - 36:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** (+++) Configure the priority and enable the NVIC for the transfer complete interrupt on - 37:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** the DMA Tx or Rx channel - 38:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** - 39:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** (#) Configure the Communication Clock Timing, Own Address1, Master Addressing mode, Dual Addres - 40:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** Own Address2, Own Address2 Mask, General call and Nostretch mode in the hi2c Init structure - 41:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** - 42:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** (#) Initialize the I2C registers by calling the HAL_I2C_Init(), configures also the low level H - 43:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** (GPIO, CLOCK, NVIC...etc) by calling the customized HAL_I2C_MspInit(&hi2c) API. - 44:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** - 45:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** (#) To check if target device is ready for communication, use the function HAL_I2C_IsDeviceRead - 46:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** - 47:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** (#) For I2C IO and IO MEM operations, three operation modes are available within this driver : - 48:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** - 49:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** *** Polling mode IO operation *** - 50:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** ================================= - 51:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** [..] - 52:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** (+) Transmit in master mode an amount of data in blocking mode using HAL_I2C_Master_Transmit( - 53:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** (+) Receive in master mode an amount of data in blocking mode using HAL_I2C_Master_Receive() - 54:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** (+) Transmit in slave mode an amount of data in blocking mode using HAL_I2C_Slave_Transmit() - 55:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** (+) Receive in slave mode an amount of data in blocking mode using HAL_I2C_Slave_Receive() - 56:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** - 57:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** *** Polling mode IO MEM operation *** - 58:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** ===================================== - 59:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** [..] - 60:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** (+) Write an amount of data in blocking mode to a specific memory address using HAL_I2C_Mem_W - 61:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** (+) Read an amount of data in blocking mode from a specific memory address using HAL_I2C_Mem_ - 62:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** - 63:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** - 64:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** *** Interrupt mode IO operation *** - 65:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** =================================== - 66:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** [..] - 67:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** (+) Transmit in master mode an amount of data in non-blocking mode using HAL_I2C_Master_Trans - 68:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** (+) At transmission end of transfer, HAL_I2C_MasterTxCpltCallback() is executed and user can - 69:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** add his own code by customization of function pointer HAL_I2C_MasterTxCpltCallback() - 70:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** (+) Receive in master mode an amount of data in non-blocking mode using HAL_I2C_Master_Receiv - 71:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** (+) At reception end of transfer, HAL_I2C_MasterRxCpltCallback() is executed and user can - 72:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** add his own code by customization of function pointer HAL_I2C_MasterRxCpltCallback() - 73:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** (+) Transmit in slave mode an amount of data in non-blocking mode using HAL_I2C_Slave_Transmi - 74:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** (+) At transmission end of transfer, HAL_I2C_SlaveTxCpltCallback() is executed and user can - 75:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** add his own code by customization of function pointer HAL_I2C_SlaveTxCpltCallback() - 76:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** (+) Receive in slave mode an amount of data in non-blocking mode using HAL_I2C_Slave_Receive_ - 77:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** (+) At reception end of transfer, HAL_I2C_SlaveRxCpltCallback() is executed and user can - 78:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** add his own code by customization of function pointer HAL_I2C_SlaveRxCpltCallback() - 79:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** (+) In case of transfer Error, HAL_I2C_ErrorCallback() function is executed and user can - 80:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** add his own code by customization of function pointer HAL_I2C_ErrorCallback() - 81:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** (+) Abort a master I2C process communication with Interrupt using HAL_I2C_Master_Abort_IT() - 82:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** (+) End of abort process, HAL_I2C_AbortCpltCallback() is executed and user can - 83:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** add his own code by customization of function pointer HAL_I2C_AbortCpltCallback() - 84:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** (+) Discard a slave I2C process communication using __HAL_I2C_GENERATE_NACK() macro. - 85:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** This action will inform Master to generate a Stop condition to discard the communication - 86:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** - 87:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** - 88:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** *** Interrupt mode IO sequential operation *** - 89:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** ============================================== - 90:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** [..] - 91:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** (@) These interfaces allow to manage a sequential transfer with a repeated start condition - ARM GAS /tmp/ccTaFl06.s page 3 - - - 92:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** when a direction change during transfer - 93:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** [..] - 94:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** (+) A specific option field manage the different steps of a sequential transfer - 95:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** (+) Option field values are defined through @ref I2C_XFEROPTIONS and are listed below: - 96:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** (++) I2C_FIRST_AND_LAST_FRAME: No sequential usage, functionnal is same as associated interfa - 97:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** (++) I2C_FIRST_FRAME: Sequential usage, this option allow to manage a sequence with start con - 98:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** and data to transfer without a final stop condition - 99:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** (++) I2C_FIRST_AND_NEXT_FRAME: Sequential usage (Master only), this option allow to manage a - 100:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** and data to transfer without a final stop condition, an then permit a c - 101:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** several times (like HAL_I2C_Master_Sequential_Transmit_IT() then HAL_I2 - 102:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** (++) I2C_NEXT_FRAME: Sequential usage, this option allow to manage a sequence with a restart - 103:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** and with new data to transfer if the direction change or manage only th - 104:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** if no direction change and without a final stop condition in both cases - 105:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** (++) I2C_LAST_FRAME: Sequential usage, this option allow to manage a sequance with a restart - 106:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** and with new data to transfer if the direction change or manage only th - 107:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** if no direction change and with a final stop condition in both cases - 108:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** - 109:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** (+) Differents sequential I2C interfaces are listed below: - 110:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** (++) Sequential transmit in master I2C mode an amount of data in non-blocking mode using HAL_ - 111:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** (+++) At transmission end of current frame transfer, HAL_I2C_MasterTxCpltCallback() is execut - 112:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** add his own code by customization of function pointer HAL_I2C_MasterTxCpltCallback() - 113:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** (++) Sequential receive in master I2C mode an amount of data in non-blocking mode using HAL_I - 114:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** (+++) At reception end of current frame transfer, HAL_I2C_MasterRxCpltCallback() is executed - 115:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** add his own code by customization of function pointer HAL_I2C_MasterRxCpltCallback() - 116:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** (++) Abort a master I2C process communication with Interrupt using HAL_I2C_Master_Abort_IT() - 117:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** (+++) End of abort process, HAL_I2C_AbortCpltCallback() is executed and user can - 118:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** add his own code by customization of function pointer HAL_I2C_AbortCpltCallback() - 119:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** (++) Enable/disable the Address listen mode in slave I2C mode using HAL_I2C_EnableListen_IT() - 120:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** (+++) When address slave I2C match, HAL_I2C_AddrCallback() is executed and user can - 121:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** add his own code to check the Address Match Code and the transmission direction request - 122:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** (+++) At Listen mode end HAL_I2C_ListenCpltCallback() is executed and user can - 123:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** add his own code by customization of function pointer HAL_I2C_ListenCpltCallback() - 124:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** (++) Sequential transmit in slave I2C mode an amount of data in non-blocking mode using HAL_I - 125:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** (+++) At transmission end of current frame transfer, HAL_I2C_SlaveTxCpltCallback() is execute - 126:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** add his own code by customization of function pointer HAL_I2C_SlaveTxCpltCallback() - 127:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** (++) Sequential receive in slave I2C mode an amount of data in non-blocking mode using HAL_I2 - 128:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** (+++) At reception end of current frame transfer, HAL_I2C_SlaveRxCpltCallback() is executed a - 129:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** add his own code by customization of function pointer HAL_I2C_SlaveRxCpltCallback() - 130:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** (++) In case of transfer Error, HAL_I2C_ErrorCallback() function is executed and user can - 131:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** add his own code by customization of function pointer HAL_I2C_ErrorCallback() - 132:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** (++) Abort a master I2C process communication with Interrupt using HAL_I2C_Master_Abort_IT() - 133:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** (++) End of abort process, HAL_I2C_AbortCpltCallback() is executed and user can - 134:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** add his own code by customization of function pointer HAL_I2C_AbortCpltCallback() - 135:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** (++) Discard a slave I2C process communication using __HAL_I2C_GENERATE_NACK() macro. - 136:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** This action will inform Master to generate a Stop condition to discard the communication - 137:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** - 138:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** *** Interrupt mode IO MEM operation *** - 139:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** ======================================= - 140:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** [..] - 141:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** (+) Write an amount of data in non-blocking mode with Interrupt to a specific memory address - 142:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** HAL_I2C_Mem_Write_IT() - 143:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** (+) At Memory end of write transfer, HAL_I2C_MemTxCpltCallback() is executed and user can - 144:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** add his own code by customization of function pointer HAL_I2C_MemTxCpltCallback() - 145:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** (+) Read an amount of data in non-blocking mode with Interrupt from a specific memory address - 146:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** HAL_I2C_Mem_Read_IT() - 147:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** (+) At Memory end of read transfer, HAL_I2C_MemRxCpltCallback() is executed and user can - 148:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** add his own code by customization of function pointer HAL_I2C_MemRxCpltCallback() - ARM GAS /tmp/ccTaFl06.s page 4 - - - 149:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** (+) In case of transfer Error, HAL_I2C_ErrorCallback() function is executed and user can - 150:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** add his own code by customization of function pointer HAL_I2C_ErrorCallback() - 151:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** - 152:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** *** DMA mode IO operation *** - 153:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** ============================== - 154:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** [..] - 155:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** (+) Transmit in master mode an amount of data in non-blocking mode (DMA) using - 156:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** HAL_I2C_Master_Transmit_DMA() - 157:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** (+) At transmission end of transfer, HAL_I2C_MasterTxCpltCallback() is executed and user can - 158:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** add his own code by customization of function pointer HAL_I2C_MasterTxCpltCallback() - 159:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** (+) Receive in master mode an amount of data in non-blocking mode (DMA) using - 160:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** HAL_I2C_Master_Receive_DMA() - 161:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** (+) At reception end of transfer, HAL_I2C_MasterRxCpltCallback() is executed and user can - 162:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** add his own code by customization of function pointer HAL_I2C_MasterRxCpltCallback() - 163:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** (+) Transmit in slave mode an amount of data in non-blocking mode (DMA) using - 164:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** HAL_I2C_Slave_Transmit_DMA() - 165:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** (+) At transmission end of transfer, HAL_I2C_SlaveTxCpltCallback() is executed and user can - 166:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** add his own code by customization of function pointer HAL_I2C_SlaveTxCpltCallback() - 167:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** (+) Receive in slave mode an amount of data in non-blocking mode (DMA) using - 168:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** HAL_I2C_Slave_Receive_DMA() - 169:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** (+) At reception end of transfer, HAL_I2C_SlaveRxCpltCallback() is executed and user can - 170:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** add his own code by customization of function pointer HAL_I2C_SlaveRxCpltCallback() - 171:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** (+) In case of transfer Error, HAL_I2C_ErrorCallback() function is executed and user can - 172:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** add his own code by customization of function pointer HAL_I2C_ErrorCallback() - 173:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** (+) Abort a master I2C process communication with Interrupt using HAL_I2C_Master_Abort_IT() - 174:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** (+) End of abort process, HAL_I2C_AbortCpltCallback() is executed and user can - 175:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** add his own code by customization of function pointer HAL_I2C_AbortCpltCallback() - 176:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** (+) Discard a slave I2C process communication using __HAL_I2C_GENERATE_NACK() macro. - 177:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** This action will inform Master to generate a Stop condition to discard the communication - 178:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** - 179:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** *** DMA mode IO MEM operation *** - 180:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** ================================= - 181:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** [..] - 182:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** (+) Write an amount of data in non-blocking mode with DMA to a specific memory address using - 183:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** HAL_I2C_Mem_Write_DMA() - 184:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** (+) At Memory end of write transfer, HAL_I2C_MemTxCpltCallback() is executed and user can - 185:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** add his own code by customization of function pointer HAL_I2C_MemTxCpltCallback() - 186:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** (+) Read an amount of data in non-blocking mode with DMA from a specific memory address using - 187:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** HAL_I2C_Mem_Read_DMA() - 188:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** (+) At Memory end of read transfer, HAL_I2C_MemRxCpltCallback() is executed and user can - 189:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** add his own code by customization of function pointer HAL_I2C_MemRxCpltCallback() - 190:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** (+) In case of transfer Error, HAL_I2C_ErrorCallback() function is executed and user can - 191:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** add his own code by customization of function pointer HAL_I2C_ErrorCallback() - 192:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** - 193:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** - 194:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** *** I2C HAL driver macros list *** - 195:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** ================================== - 196:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** [..] - 197:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** Below the list of most used macros in I2C HAL driver. - 198:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** - 199:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** (+) __HAL_I2C_ENABLE: Enable the I2C peripheral - 200:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** (+) __HAL_I2C_DISABLE: Disable the I2C peripheral - 201:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** (+) __HAL_I2C_GENERATE_NACK: Generate a Non-Acknowledge I2C peripheral in Slave mode - 202:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** (+) __HAL_I2C_GET_FLAG: Check whether the specified I2C flag is set or not - 203:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** (+) __HAL_I2C_CLEAR_FLAG: Clear the specified I2C pending flag - 204:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** (+) __HAL_I2C_ENABLE_IT: Enable the specified I2C interrupt - 205:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** (+) __HAL_I2C_DISABLE_IT: Disable the specified I2C interrupt - ARM GAS /tmp/ccTaFl06.s page 5 - - - 206:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** - 207:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** [..] - 208:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** (@) You can refer to the I2C HAL driver header file for more useful macros - 209:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** - 210:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** @endverbatim - 211:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** ****************************************************************************** - 212:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** * @attention - 213:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** * - 214:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** *

© COPYRIGHT(c) 2016 STMicroelectronics

- 215:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** * - 216:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** * Redistribution and use in source and binary forms, with or without modification, - 217:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** * are permitted provided that the following conditions are met: - 218:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** * 1. Redistributions of source code must retain the above copyright notice, - 219:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** * this list of conditions and the following disclaimer. - 220:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** * 2. Redistributions in binary form must reproduce the above copyright notice, - 221:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** * this list of conditions and the following disclaimer in the documentation - 222:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** * and/or other materials provided with the distribution. - 223:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** * 3. Neither the name of STMicroelectronics nor the names of its contributors - 224:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** * may be used to endorse or promote products derived from this software - 225:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** * without specific prior written permission. - 226:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** * - 227:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" - 228:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE - 229:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE - 230:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** * DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE - 231:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL - 232:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR - 233:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** * SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER - 234:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** * CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, - 235:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE - 236:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. - 237:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** * - 238:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** ****************************************************************************** - 239:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** */ - 240:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** - 241:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** /* Includes ------------------------------------------------------------------*/ - 242:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** #include "stm32f0xx_hal.h" - 243:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** - 244:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** /** @addtogroup STM32F0xx_HAL_Driver - 245:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** * @{ - 246:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** */ - 247:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** - 248:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** /** @defgroup I2C I2C - 249:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** * @brief I2C HAL module driver - 250:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** * @{ - 251:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** */ - 252:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** - 253:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** #ifdef HAL_I2C_MODULE_ENABLED - 254:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** - 255:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** /* Private typedef -----------------------------------------------------------*/ - 256:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** /* Private define ------------------------------------------------------------*/ - 257:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** - 258:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** /** @defgroup I2C_Private_Define I2C Private Define - 259:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** * @{ - 260:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** */ - 261:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** #define TIMING_CLEAR_MASK (0xF0FFFFFFU) /*!< I2C TIMING clear register Mask */ - 262:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** #define I2C_TIMEOUT_ADDR (10000U) /*!< 10 s */ - ARM GAS /tmp/ccTaFl06.s page 6 - - - 263:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** #define I2C_TIMEOUT_BUSY (25U) /*!< 25 ms */ - 264:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** #define I2C_TIMEOUT_DIR (25U) /*!< 25 ms */ - 265:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** #define I2C_TIMEOUT_RXNE (25U) /*!< 25 ms */ - 266:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** #define I2C_TIMEOUT_STOPF (25U) /*!< 25 ms */ - 267:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** #define I2C_TIMEOUT_TC (25U) /*!< 25 ms */ - 268:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** #define I2C_TIMEOUT_TCR (25U) /*!< 25 ms */ - 269:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** #define I2C_TIMEOUT_TXIS (25U) /*!< 25 ms */ - 270:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** #define I2C_TIMEOUT_FLAG (25U) /*!< 25 ms */ - 271:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** - 272:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** #define MAX_NBYTE_SIZE 255U - 273:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** #define SlaveAddr_SHIFT 7U - 274:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** #define SlaveAddr_MSK 0x06U - 275:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** - 276:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** /* Private define for @ref PreviousState usage */ - 277:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** #define I2C_STATE_MSK ((uint32_t)((HAL_I2C_STATE_BUSY_TX | HAL_I2C_STATE_BUSY_RX) & (~( - 278:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** #define I2C_STATE_NONE ((uint32_t)(HAL_I2C_MODE_NONE)) - 279:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** #define I2C_STATE_MASTER_BUSY_TX ((uint32_t)((HAL_I2C_STATE_BUSY_TX & I2C_STATE_MSK) | HAL_I2C_MOD - 280:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** #define I2C_STATE_MASTER_BUSY_RX ((uint32_t)((HAL_I2C_STATE_BUSY_RX & I2C_STATE_MSK) | HAL_I2C_MOD - 281:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** #define I2C_STATE_SLAVE_BUSY_TX ((uint32_t)((HAL_I2C_STATE_BUSY_TX & I2C_STATE_MSK) | HAL_I2C_MOD - 282:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** #define I2C_STATE_SLAVE_BUSY_RX ((uint32_t)((HAL_I2C_STATE_BUSY_RX & I2C_STATE_MSK) | HAL_I2C_MOD - 283:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** #define I2C_STATE_MEM_BUSY_TX ((uint32_t)((HAL_I2C_STATE_BUSY_TX & I2C_STATE_MSK) | HAL_I2C_MOD - 284:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** #define I2C_STATE_MEM_BUSY_RX ((uint32_t)((HAL_I2C_STATE_BUSY_RX & I2C_STATE_MSK) | HAL_I2C_MOD - 285:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** - 286:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** - 287:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** /* Private define to centralize the enable/disable of Interrupts */ - 288:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** #define I2C_XFER_TX_IT (0x00000001U) - 289:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** #define I2C_XFER_RX_IT (0x00000002U) - 290:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** #define I2C_XFER_LISTEN_IT (0x00000004U) - 291:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** - 292:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** #define I2C_XFER_ERROR_IT (0x00000011U) - 293:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** #define I2C_XFER_CPLT_IT (0x00000012U) - 294:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** #define I2C_XFER_RELOAD_IT (0x00000012U) - 295:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** - 296:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** /* Private define Sequential Transfer Options default/reset value */ - 297:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** #define I2C_NO_OPTION_FRAME (0xFFFF0000U) - 298:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** /** - 299:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** * @} - 300:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** */ - 301:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** - 302:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** /* Private macro -------------------------------------------------------------*/ - 303:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** #define I2C_GET_DMA_REMAIN_DATA(__HANDLE__) ((((__HANDLE__)->State) == HAL_I2C_STATE_BUSY_TX) ? \ - 304:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** ((uint32_t)((__HANDLE__)->hdmatx->Instance->CNDTR)) : \ - 305:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** ((uint32_t)((__HANDLE__)->hdmarx->Instance->CNDTR))) - 306:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** - 307:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** /* Private variables ---------------------------------------------------------*/ - 308:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** /* Private function prototypes -----------------------------------------------*/ - 309:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** - 310:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** /** @defgroup I2C_Private_Functions I2C Private Functions - 311:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** * @{ - 312:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** */ - 313:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** /* Private functions to handle DMA transfer */ - 314:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** static void I2C_DMAMasterTransmitCplt(DMA_HandleTypeDef *hdma); - 315:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** static void I2C_DMAMasterReceiveCplt(DMA_HandleTypeDef *hdma); - 316:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** static void I2C_DMASlaveTransmitCplt(DMA_HandleTypeDef *hdma); - 317:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** static void I2C_DMASlaveReceiveCplt(DMA_HandleTypeDef *hdma); - 318:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** static void I2C_DMAError(DMA_HandleTypeDef *hdma); - 319:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** static void I2C_DMAAbort(DMA_HandleTypeDef *hdma); - ARM GAS /tmp/ccTaFl06.s page 7 - - - 320:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** - 321:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** /* Private functions to handle IT transfer */ - 322:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** static void I2C_ITAddrCplt(I2C_HandleTypeDef *hi2c, uint32_t ITFlags); - 323:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** static void I2C_ITMasterSequentialCplt(I2C_HandleTypeDef *hi2c); - 324:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** static void I2C_ITSlaveSequentialCplt(I2C_HandleTypeDef *hi2c); - 325:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** static void I2C_ITMasterCplt(I2C_HandleTypeDef *hi2c, uint32_t ITFlags); - 326:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** static void I2C_ITSlaveCplt(I2C_HandleTypeDef *hi2c, uint32_t ITFlags); - 327:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** static void I2C_ITListenCplt(I2C_HandleTypeDef *hi2c, uint32_t ITFlags); - 328:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** static void I2C_ITError(I2C_HandleTypeDef *hi2c, uint32_t ErrorCode); - 329:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** - 330:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** /* Private functions to handle IT transfer */ - 331:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** static HAL_StatusTypeDef I2C_RequestMemoryWrite(I2C_HandleTypeDef *hi2c, uint16_t DevAddress, uint1 - 332:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** static HAL_StatusTypeDef I2C_RequestMemoryRead(I2C_HandleTypeDef *hi2c, uint16_t DevAddress, uint16 - 333:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** - 334:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** /* Private functions for I2C transfer IRQ handler */ - 335:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** static HAL_StatusTypeDef I2C_Master_ISR_IT(struct __I2C_HandleTypeDef *hi2c, uint32_t ITFlags, uint - 336:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** static HAL_StatusTypeDef I2C_Slave_ISR_IT(struct __I2C_HandleTypeDef *hi2c, uint32_t ITFlags, uint3 - 337:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** static HAL_StatusTypeDef I2C_Master_ISR_DMA(struct __I2C_HandleTypeDef *hi2c, uint32_t ITFlags, uin - 338:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** static HAL_StatusTypeDef I2C_Slave_ISR_DMA(struct __I2C_HandleTypeDef *hi2c, uint32_t ITFlags, uint - 339:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** - 340:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** /* Private functions to handle flags during polling transfer */ - 341:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** static HAL_StatusTypeDef I2C_WaitOnFlagUntilTimeout(I2C_HandleTypeDef *hi2c, uint32_t Flag, FlagSta - 342:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** static HAL_StatusTypeDef I2C_WaitOnTXISFlagUntilTimeout(I2C_HandleTypeDef *hi2c, uint32_t Timeout, - 343:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** static HAL_StatusTypeDef I2C_WaitOnRXNEFlagUntilTimeout(I2C_HandleTypeDef *hi2c, uint32_t Timeout, - 344:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** static HAL_StatusTypeDef I2C_WaitOnSTOPFlagUntilTimeout(I2C_HandleTypeDef *hi2c, uint32_t Timeout, - 345:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** static HAL_StatusTypeDef I2C_IsAcknowledgeFailed(I2C_HandleTypeDef *hi2c, uint32_t Timeout, uint32_ - 346:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** - 347:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** /* Private functions to centralize the enable/disable of Interrupts */ - 348:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** static HAL_StatusTypeDef I2C_Enable_IRQ(I2C_HandleTypeDef *hi2c, uint16_t InterruptRequest); - 349:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** static HAL_StatusTypeDef I2C_Disable_IRQ(I2C_HandleTypeDef *hi2c, uint16_t InterruptRequest); - 350:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** - 351:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** /* Private functions to flush TXDR register */ - 352:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** static void I2C_Flush_TXDR(I2C_HandleTypeDef *hi2c); - 353:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** - 354:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** /* Private functions to handle start, restart or stop a transfer */ - 355:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** static void I2C_TransferConfig(I2C_HandleTypeDef *hi2c, uint16_t DevAddress, uint8_t Size, uint32_ - 356:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** /** - 357:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** * @} - 358:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** */ - 359:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** - 360:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** /* Exported functions --------------------------------------------------------*/ - 361:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** - 362:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** /** @defgroup I2C_Exported_Functions I2C Exported Functions - 363:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** * @{ - 364:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** */ - 365:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** - 366:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** /** @defgroup I2C_Exported_Functions_Group1 Initialization and de-initialization functions - 367:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** * @brief Initialization and Configuration functions - 368:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** * - 369:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** @verbatim - 370:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** =============================================================================== - 371:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** ##### Initialization and de-initialization functions ##### - 372:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** =============================================================================== - 373:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** [..] This subsection provides a set of functions allowing to initialize and - 374:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** deinitialize the I2Cx peripheral: - 375:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** - 376:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** (+) User must Implement HAL_I2C_MspInit() function in which he configures - ARM GAS /tmp/ccTaFl06.s page 8 - - - 377:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** all related peripherals resources (CLOCK, GPIO, DMA, IT and NVIC ). - 378:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** - 379:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** (+) Call the function HAL_I2C_Init() to configure the selected device with - 380:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** the selected configuration: - 381:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** (++) Clock Timing - 382:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** (++) Own Address 1 - 383:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** (++) Addressing mode (Master, Slave) - 384:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** (++) Dual Addressing mode - 385:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** (++) Own Address 2 - 386:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** (++) Own Address 2 Mask - 387:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** (++) General call mode - 388:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** (++) Nostretch mode - 389:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** - 390:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** (+) Call the function HAL_I2C_DeInit() to restore the default configuration - 391:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** of the selected I2Cx peripheral. - 392:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** - 393:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** @endverbatim - 394:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** * @{ - 395:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** */ - 396:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** - 397:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** /** - 398:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** * @brief Initializes the I2C according to the specified parameters - 399:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** * in the I2C_InitTypeDef and initialize the associated handle. - 400:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** * @param hi2c Pointer to a I2C_HandleTypeDef structure that contains - 401:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** * the configuration information for the specified I2C. - 402:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** * @retval HAL status - 403:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** */ - 404:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** HAL_StatusTypeDef HAL_I2C_Init(I2C_HandleTypeDef *hi2c) - 405:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** { - 406:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** /* Check the I2C handle allocation */ - 407:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** if (hi2c == NULL) - 408:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** { - 409:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** return HAL_ERROR; - 410:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** } - 411:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** - 412:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** /* Check the parameters */ - 413:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** assert_param(IS_I2C_ALL_INSTANCE(hi2c->Instance)); - 414:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** assert_param(IS_I2C_OWN_ADDRESS1(hi2c->Init.OwnAddress1)); - 415:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** assert_param(IS_I2C_ADDRESSING_MODE(hi2c->Init.AddressingMode)); - 416:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** assert_param(IS_I2C_DUAL_ADDRESS(hi2c->Init.DualAddressMode)); - 417:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** assert_param(IS_I2C_OWN_ADDRESS2(hi2c->Init.OwnAddress2)); - 418:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** assert_param(IS_I2C_OWN_ADDRESS2_MASK(hi2c->Init.OwnAddress2Masks)); - 419:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** assert_param(IS_I2C_GENERAL_CALL(hi2c->Init.GeneralCallMode)); - 420:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** assert_param(IS_I2C_NO_STRETCH(hi2c->Init.NoStretchMode)); - 421:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** - 422:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** if (hi2c->State == HAL_I2C_STATE_RESET) - 423:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** { - 424:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** /* Allocate lock resource and initialize it */ - 425:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** hi2c->Lock = HAL_UNLOCKED; - 426:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** - 427:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** /* Init the low level hardware : GPIO, CLOCK, CORTEX...etc */ - 428:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** HAL_I2C_MspInit(hi2c); - 429:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** } - 430:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** - 431:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** hi2c->State = HAL_I2C_STATE_BUSY; - 432:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** - 433:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** /* Disable the selected I2C peripheral */ - ARM GAS /tmp/ccTaFl06.s page 9 - - - 434:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** __HAL_I2C_DISABLE(hi2c); - 435:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** - 436:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** /*---------------------------- I2Cx TIMINGR Configuration ------------------*/ - 437:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** /* Configure I2Cx: Frequency range */ - 438:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** hi2c->Instance->TIMINGR = hi2c->Init.Timing & TIMING_CLEAR_MASK; - 439:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** - 440:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** /*---------------------------- I2Cx OAR1 Configuration ---------------------*/ - 441:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** /* Disable Own Address1 before set the Own Address1 configuration */ - 442:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** hi2c->Instance->OAR1 &= ~I2C_OAR1_OA1EN; - 443:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** - 444:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** /* Configure I2Cx: Own Address1 and ack own address1 mode */ - 445:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** if (hi2c->Init.AddressingMode == I2C_ADDRESSINGMODE_7BIT) - 446:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** { - 447:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** hi2c->Instance->OAR1 = (I2C_OAR1_OA1EN | hi2c->Init.OwnAddress1); - 448:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** } - 449:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** else /* I2C_ADDRESSINGMODE_10BIT */ - 450:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** { - 451:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** hi2c->Instance->OAR1 = (I2C_OAR1_OA1EN | I2C_OAR1_OA1MODE | hi2c->Init.OwnAddress1); - 452:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** } - 453:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** - 454:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** /*---------------------------- I2Cx CR2 Configuration ----------------------*/ - 455:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** /* Configure I2Cx: Addressing Master mode */ - 456:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** if (hi2c->Init.AddressingMode == I2C_ADDRESSINGMODE_10BIT) - 457:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** { - 458:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** hi2c->Instance->CR2 = (I2C_CR2_ADD10); - 459:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** } - 460:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** /* Enable the AUTOEND by default, and enable NACK (should be disable only during Slave process */ - 461:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** hi2c->Instance->CR2 |= (I2C_CR2_AUTOEND | I2C_CR2_NACK); - 462:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** - 463:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** /*---------------------------- I2Cx OAR2 Configuration ---------------------*/ - 464:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** /* Disable Own Address2 before set the Own Address2 configuration */ - 465:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** hi2c->Instance->OAR2 &= ~I2C_DUALADDRESS_ENABLE; - 466:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** - 467:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** /* Configure I2Cx: Dual mode and Own Address2 */ - 468:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** hi2c->Instance->OAR2 = (hi2c->Init.DualAddressMode | hi2c->Init.OwnAddress2 | (hi2c->Init.OwnAddr - 469:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** - 470:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** /*---------------------------- I2Cx CR1 Configuration ----------------------*/ - 471:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** /* Configure I2Cx: Generalcall and NoStretch mode */ - 472:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** hi2c->Instance->CR1 = (hi2c->Init.GeneralCallMode | hi2c->Init.NoStretchMode); - 473:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** - 474:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** /* Enable the selected I2C peripheral */ - 475:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** __HAL_I2C_ENABLE(hi2c); - 476:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** - 477:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** hi2c->ErrorCode = HAL_I2C_ERROR_NONE; - 478:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** hi2c->State = HAL_I2C_STATE_READY; - 479:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** hi2c->PreviousState = I2C_STATE_NONE; - 480:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** hi2c->Mode = HAL_I2C_MODE_NONE; - 481:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** - 482:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** return HAL_OK; - 483:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** } - 484:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** - 485:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** /** - 486:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** * @brief DeInitialize the I2C peripheral. - 487:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** * @param hi2c Pointer to a I2C_HandleTypeDef structure that contains - 488:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** * the configuration information for the specified I2C. - 489:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** * @retval HAL status - 490:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** */ - ARM GAS /tmp/ccTaFl06.s page 10 - - - 491:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** HAL_StatusTypeDef HAL_I2C_DeInit(I2C_HandleTypeDef *hi2c) - 492:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** { - 493:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** /* Check the I2C handle allocation */ - 494:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** if (hi2c == NULL) - 495:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** { - 496:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** return HAL_ERROR; - 497:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** } - 498:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** - 499:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** /* Check the parameters */ - 500:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** assert_param(IS_I2C_ALL_INSTANCE(hi2c->Instance)); - 501:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** - 502:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** hi2c->State = HAL_I2C_STATE_BUSY; - 503:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** - 504:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** /* Disable the I2C Peripheral Clock */ - 505:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** __HAL_I2C_DISABLE(hi2c); - 506:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** - 507:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** /* DeInit the low level hardware: GPIO, CLOCK, NVIC */ - 508:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** HAL_I2C_MspDeInit(hi2c); - 509:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** - 510:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** hi2c->ErrorCode = HAL_I2C_ERROR_NONE; - 511:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** hi2c->State = HAL_I2C_STATE_RESET; - 512:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** hi2c->PreviousState = I2C_STATE_NONE; - 513:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** hi2c->Mode = HAL_I2C_MODE_NONE; - 514:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** - 515:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** /* Release Lock */ - 516:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** __HAL_UNLOCK(hi2c); - 517:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** - 518:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** return HAL_OK; - 519:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** } - 520:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** - 521:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** /** - 522:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** * @brief Initialize the I2C MSP. - 523:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** * @param hi2c Pointer to a I2C_HandleTypeDef structure that contains - 524:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** * the configuration information for the specified I2C. - 525:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** * @retval None - 526:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** */ - 527:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** __weak void HAL_I2C_MspInit(I2C_HandleTypeDef *hi2c) - 528:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** { - 529:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** /* Prevent unused argument(s) compilation warning */ - 530:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** UNUSED(hi2c); - 531:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** - 532:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** /* NOTE : This function should not be modified, when the callback is needed, - 533:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** the HAL_I2C_MspInit could be implemented in the user file - 534:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** */ - 535:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** } - 536:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** - 537:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** /** - 538:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** * @brief DeInitialize the I2C MSP. - 539:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** * @param hi2c Pointer to a I2C_HandleTypeDef structure that contains - 540:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** * the configuration information for the specified I2C. - 541:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** * @retval None - 542:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** */ - 543:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** __weak void HAL_I2C_MspDeInit(I2C_HandleTypeDef *hi2c) - 544:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** { - 545:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** /* Prevent unused argument(s) compilation warning */ - 546:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** UNUSED(hi2c); - 547:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** - ARM GAS /tmp/ccTaFl06.s page 11 - - - 548:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** /* NOTE : This function should not be modified, when the callback is needed, - 549:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** the HAL_I2C_MspDeInit could be implemented in the user file - 550:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** */ - 551:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** } - 552:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** - 553:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** /** - 554:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** * @} - 555:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** */ - 556:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** - 557:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** /** @defgroup I2C_Exported_Functions_Group2 Input and Output operation functions - 558:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** * @brief Data transfers functions - 559:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** * - 560:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** @verbatim - 561:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** =============================================================================== - 562:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** ##### IO operation functions ##### - 563:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** =============================================================================== - 564:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** [..] - 565:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** This subsection provides a set of functions allowing to manage the I2C data - 566:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** transfers. - 567:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** - 568:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** (#) There are two modes of transfer: - 569:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** (++) Blocking mode : The communication is performed in the polling mode. - 570:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** The status of all data processing is returned by the same function - 571:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** after finishing transfer. - 572:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** (++) No-Blocking mode : The communication is performed using Interrupts - 573:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** or DMA. These functions return the status of the transfer startup. - 574:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** The end of the data processing will be indicated through the - 575:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** dedicated I2C IRQ when using Interrupt mode or the DMA IRQ when - 576:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** using DMA mode. - 577:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** - 578:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** (#) Blocking mode functions are : - 579:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** (++) HAL_I2C_Master_Transmit() - 580:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** (++) HAL_I2C_Master_Receive() - 581:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** (++) HAL_I2C_Slave_Transmit() - 582:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** (++) HAL_I2C_Slave_Receive() - 583:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** (++) HAL_I2C_Mem_Write() - 584:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** (++) HAL_I2C_Mem_Read() - 585:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** (++) HAL_I2C_IsDeviceReady() - 586:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** - 587:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** (#) No-Blocking mode functions with Interrupt are : - 588:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** (++) HAL_I2C_Master_Transmit_IT() - 589:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** (++) HAL_I2C_Master_Receive_IT() - 590:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** (++) HAL_I2C_Slave_Transmit_IT() - 591:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** (++) HAL_I2C_Slave_Receive_IT() - 592:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** (++) HAL_I2C_Mem_Write_IT() - 593:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** (++) HAL_I2C_Mem_Read_IT() - 594:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** - 595:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** (#) No-Blocking mode functions with DMA are : - 596:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** (++) HAL_I2C_Master_Transmit_DMA() - 597:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** (++) HAL_I2C_Master_Receive_DMA() - 598:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** (++) HAL_I2C_Slave_Transmit_DMA() - 599:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** (++) HAL_I2C_Slave_Receive_DMA() - 600:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** (++) HAL_I2C_Mem_Write_DMA() - 601:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** (++) HAL_I2C_Mem_Read_DMA() - 602:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** - 603:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** (#) A set of Transfer Complete Callbacks are provided in non Blocking mode: - 604:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** (++) HAL_I2C_MemTxCpltCallback() - ARM GAS /tmp/ccTaFl06.s page 12 - - - 605:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** (++) HAL_I2C_MemRxCpltCallback() - 606:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** (++) HAL_I2C_MasterTxCpltCallback() - 607:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** (++) HAL_I2C_MasterRxCpltCallback() - 608:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** (++) HAL_I2C_SlaveTxCpltCallback() - 609:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** (++) HAL_I2C_SlaveRxCpltCallback() - 610:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** (++) HAL_I2C_ErrorCallback() - 611:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** - 612:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** @endverbatim - 613:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** * @{ - 614:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** */ - 615:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** - 616:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** /** - 617:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** * @brief Transmits in master mode an amount of data in blocking mode. - 618:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** * @param hi2c Pointer to a I2C_HandleTypeDef structure that contains - 619:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** * the configuration information for the specified I2C. - 620:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** * @param DevAddress Target device address: The device 7 bits address value - 621:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** * in datasheet must be shift at right before call interface - 622:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** * @param pData Pointer to data buffer - 623:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** * @param Size Amount of data to be sent - 624:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** * @param Timeout Timeout duration - 625:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** * @retval HAL status - 626:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** */ - 627:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** HAL_StatusTypeDef HAL_I2C_Master_Transmit(I2C_HandleTypeDef *hi2c, uint16_t DevAddress, uint8_t *pD - 628:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** { - 629:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** uint32_t tickstart = 0U; - 630:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** - 631:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** if (hi2c->State == HAL_I2C_STATE_READY) - 632:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** { - 633:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** /* Process Locked */ - 634:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** __HAL_LOCK(hi2c); - 635:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** - 636:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** /* Init tickstart for timeout management*/ - 637:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** tickstart = HAL_GetTick(); - 638:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** - 639:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** if (I2C_WaitOnFlagUntilTimeout(hi2c, I2C_FLAG_BUSY, SET, I2C_TIMEOUT_BUSY, tickstart) != HAL_OK - 640:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** { - 641:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** return HAL_TIMEOUT; - 642:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** } - 643:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** - 644:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** hi2c->State = HAL_I2C_STATE_BUSY_TX; - 645:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** hi2c->Mode = HAL_I2C_MODE_MASTER; - 646:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** hi2c->ErrorCode = HAL_I2C_ERROR_NONE; - 647:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** - 648:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** /* Prepare transfer parameters */ - 649:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** hi2c->pBuffPtr = pData; - 650:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** hi2c->XferCount = Size; - 651:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** hi2c->XferISR = NULL; - 652:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** - 653:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** /* Send Slave Address */ - 654:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** /* Set NBYTES to write and reload if hi2c->XferCount > MAX_NBYTE_SIZE and generate RESTART */ - 655:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** if (hi2c->XferCount > MAX_NBYTE_SIZE) - 656:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** { - 657:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** hi2c->XferSize = MAX_NBYTE_SIZE; - 658:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** I2C_TransferConfig(hi2c, DevAddress, hi2c->XferSize, I2C_RELOAD_MODE, I2C_GENERATE_START_WRIT - 659:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** } - 660:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** else - 661:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** { - ARM GAS /tmp/ccTaFl06.s page 13 - - - 662:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** hi2c->XferSize = hi2c->XferCount; - 663:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** I2C_TransferConfig(hi2c, DevAddress, hi2c->XferSize, I2C_AUTOEND_MODE, I2C_GENERATE_START_WRI - 664:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** } - 665:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** - 666:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** while (hi2c->XferCount > 0U) - 667:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** { - 668:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** /* Wait until TXIS flag is set */ - 669:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** if (I2C_WaitOnTXISFlagUntilTimeout(hi2c, Timeout, tickstart) != HAL_OK) - 670:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** { - 671:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** if (hi2c->ErrorCode == HAL_I2C_ERROR_AF) - 672:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** { - 673:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** return HAL_ERROR; - 674:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** } - 675:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** else - 676:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** { - 677:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** return HAL_TIMEOUT; - 678:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** } - 679:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** } - 680:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** /* Write data to TXDR */ - 681:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** hi2c->Instance->TXDR = (*hi2c->pBuffPtr++); - 682:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** hi2c->XferCount--; - 683:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** hi2c->XferSize--; - 684:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** - 685:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** if ((hi2c->XferSize == 0U) && (hi2c->XferCount != 0U)) - 686:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** { - 687:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** /* Wait until TCR flag is set */ - 688:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** if (I2C_WaitOnFlagUntilTimeout(hi2c, I2C_FLAG_TCR, RESET, Timeout, tickstart) != HAL_OK) - 689:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** { - 690:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** return HAL_TIMEOUT; - 691:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** } - 692:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** - 693:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** if (hi2c->XferCount > MAX_NBYTE_SIZE) - 694:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** { - 695:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** hi2c->XferSize = MAX_NBYTE_SIZE; - 696:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** I2C_TransferConfig(hi2c, DevAddress, hi2c->XferSize, I2C_RELOAD_MODE, I2C_NO_STARTSTOP); - 697:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** } - 698:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** else - 699:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** { - 700:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** hi2c->XferSize = hi2c->XferCount; - 701:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** I2C_TransferConfig(hi2c, DevAddress, hi2c->XferSize, I2C_AUTOEND_MODE, I2C_NO_STARTSTOP); - 702:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** } - 703:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** } - 704:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** } - 705:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** - 706:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** /* No need to Check TC flag, with AUTOEND mode the stop is automatically generated */ - 707:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** /* Wait until STOPF flag is set */ - 708:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** if (I2C_WaitOnSTOPFlagUntilTimeout(hi2c, Timeout, tickstart) != HAL_OK) - 709:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** { - 710:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** if (hi2c->ErrorCode == HAL_I2C_ERROR_AF) - 711:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** { - 712:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** return HAL_ERROR; - 713:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** } - 714:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** else - 715:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** { - 716:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** return HAL_TIMEOUT; - 717:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** } - 718:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** } - ARM GAS /tmp/ccTaFl06.s page 14 - - - 719:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** - 720:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** /* Clear STOP Flag */ - 721:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** __HAL_I2C_CLEAR_FLAG(hi2c, I2C_FLAG_STOPF); - 722:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** - 723:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** /* Clear Configuration Register 2 */ - 724:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** I2C_RESET_CR2(hi2c); - 725:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** - 726:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** hi2c->State = HAL_I2C_STATE_READY; - 727:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** hi2c->Mode = HAL_I2C_MODE_NONE; - 728:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** - 729:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** /* Process Unlocked */ - 730:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** __HAL_UNLOCK(hi2c); - 731:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** - 732:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** return HAL_OK; - 733:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** } - 734:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** else - 735:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** { - 736:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** return HAL_BUSY; - 737:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** } - 738:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** } - 739:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** - 740:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** /** - 741:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** * @brief Receives in master mode an amount of data in blocking mode. - 742:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** * @param hi2c Pointer to a I2C_HandleTypeDef structure that contains - 743:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** * the configuration information for the specified I2C. - 744:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** * @param DevAddress Target device address: The device 7 bits address value - 745:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** * in datasheet must be shift at right before call interface - 746:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** * @param pData Pointer to data buffer - 747:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** * @param Size Amount of data to be sent - 748:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** * @param Timeout Timeout duration - 749:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** * @retval HAL status - 750:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** */ - 751:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** HAL_StatusTypeDef HAL_I2C_Master_Receive(I2C_HandleTypeDef *hi2c, uint16_t DevAddress, uint8_t *pDa - 752:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** { - 753:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** uint32_t tickstart = 0U; - 754:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** - 755:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** if (hi2c->State == HAL_I2C_STATE_READY) - 756:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** { - 757:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** /* Process Locked */ - 758:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** __HAL_LOCK(hi2c); - 759:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** - 760:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** /* Init tickstart for timeout management*/ - 761:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** tickstart = HAL_GetTick(); - 762:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** - 763:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** if (I2C_WaitOnFlagUntilTimeout(hi2c, I2C_FLAG_BUSY, SET, I2C_TIMEOUT_BUSY, tickstart) != HAL_OK - 764:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** { - 765:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** return HAL_TIMEOUT; - 766:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** } - 767:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** - 768:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** hi2c->State = HAL_I2C_STATE_BUSY_RX; - 769:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** hi2c->Mode = HAL_I2C_MODE_MASTER; - 770:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** hi2c->ErrorCode = HAL_I2C_ERROR_NONE; - 771:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** - 772:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** /* Prepare transfer parameters */ - 773:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** hi2c->pBuffPtr = pData; - 774:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** hi2c->XferCount = Size; - 775:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** hi2c->XferISR = NULL; - ARM GAS /tmp/ccTaFl06.s page 15 - - - 776:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** - 777:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** /* Send Slave Address */ - 778:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** /* Set NBYTES to write and reload if hi2c->XferCount > MAX_NBYTE_SIZE and generate RESTART */ - 779:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** if (hi2c->XferCount > MAX_NBYTE_SIZE) - 780:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** { - 781:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** hi2c->XferSize = MAX_NBYTE_SIZE; - 782:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** I2C_TransferConfig(hi2c, DevAddress, hi2c->XferSize, I2C_RELOAD_MODE, I2C_GENERATE_START_READ - 783:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** } - 784:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** else - 785:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** { - 786:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** hi2c->XferSize = hi2c->XferCount; - 787:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** I2C_TransferConfig(hi2c, DevAddress, hi2c->XferSize, I2C_AUTOEND_MODE, I2C_GENERATE_START_REA - 788:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** } - 789:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** - 790:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** while (hi2c->XferCount > 0U) - 791:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** { - 792:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** /* Wait until RXNE flag is set */ - 793:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** if (I2C_WaitOnRXNEFlagUntilTimeout(hi2c, Timeout, tickstart) != HAL_OK) - 794:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** { - 795:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** if (hi2c->ErrorCode == HAL_I2C_ERROR_AF) - 796:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** { - 797:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** return HAL_ERROR; - 798:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** } - 799:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** else - 800:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** { - 801:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** return HAL_TIMEOUT; - 802:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** } - 803:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** } - 804:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** - 805:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** /* Read data from RXDR */ - 806:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** (*hi2c->pBuffPtr++) = hi2c->Instance->RXDR; - 807:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** hi2c->XferSize--; - 808:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** hi2c->XferCount--; - 809:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** - 810:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** if ((hi2c->XferSize == 0U) && (hi2c->XferCount != 0U)) - 811:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** { - 812:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** /* Wait until TCR flag is set */ - 813:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** if (I2C_WaitOnFlagUntilTimeout(hi2c, I2C_FLAG_TCR, RESET, Timeout, tickstart) != HAL_OK) - 814:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** { - 815:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** return HAL_TIMEOUT; - 816:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** } - 817:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** - 818:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** if (hi2c->XferCount > MAX_NBYTE_SIZE) - 819:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** { - 820:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** hi2c->XferSize = MAX_NBYTE_SIZE; - 821:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** I2C_TransferConfig(hi2c, DevAddress, hi2c->XferSize, I2C_RELOAD_MODE, I2C_NO_STARTSTOP); - 822:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** } - 823:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** else - 824:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** { - 825:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** hi2c->XferSize = hi2c->XferCount; - 826:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** I2C_TransferConfig(hi2c, DevAddress, hi2c->XferSize, I2C_AUTOEND_MODE, I2C_NO_STARTSTOP); - 827:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** } - 828:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** } - 829:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** } - 830:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** - 831:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** /* No need to Check TC flag, with AUTOEND mode the stop is automatically generated */ - 832:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** /* Wait until STOPF flag is set */ - ARM GAS /tmp/ccTaFl06.s page 16 - - - 833:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** if (I2C_WaitOnSTOPFlagUntilTimeout(hi2c, Timeout, tickstart) != HAL_OK) - 834:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** { - 835:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** if (hi2c->ErrorCode == HAL_I2C_ERROR_AF) - 836:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** { - 837:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** return HAL_ERROR; - 838:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** } - 839:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** else - 840:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** { - 841:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** return HAL_TIMEOUT; - 842:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** } - 843:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** } - 844:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** - 845:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** /* Clear STOP Flag */ - 846:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** __HAL_I2C_CLEAR_FLAG(hi2c, I2C_FLAG_STOPF); - 847:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** - 848:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** /* Clear Configuration Register 2 */ - 849:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** I2C_RESET_CR2(hi2c); - 850:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** - 851:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** hi2c->State = HAL_I2C_STATE_READY; - 852:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** hi2c->Mode = HAL_I2C_MODE_NONE; - 853:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** - 854:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** /* Process Unlocked */ - 855:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** __HAL_UNLOCK(hi2c); - 856:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** - 857:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** return HAL_OK; - 858:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** } - 859:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** else - 860:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** { - 861:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** return HAL_BUSY; - 862:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** } - 863:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** } - 864:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** - 865:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** /** - 866:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** * @brief Transmits in slave mode an amount of data in blocking mode. - 867:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** * @param hi2c Pointer to a I2C_HandleTypeDef structure that contains - 868:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** * the configuration information for the specified I2C. - 869:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** * @param pData Pointer to data buffer - 870:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** * @param Size Amount of data to be sent - 871:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** * @param Timeout Timeout duration - 872:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** * @retval HAL status - 873:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** */ - 874:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** HAL_StatusTypeDef HAL_I2C_Slave_Transmit(I2C_HandleTypeDef *hi2c, uint8_t *pData, uint16_t Size, ui - 875:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** { - 876:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** uint32_t tickstart = 0U; - 877:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** - 878:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** if (hi2c->State == HAL_I2C_STATE_READY) - 879:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** { - 880:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** if ((pData == NULL) || (Size == 0U)) - 881:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** { - 882:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** return HAL_ERROR; - 883:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** } - 884:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** /* Process Locked */ - 885:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** __HAL_LOCK(hi2c); - 886:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** - 887:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** /* Init tickstart for timeout management*/ - 888:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** tickstart = HAL_GetTick(); - 889:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** - ARM GAS /tmp/ccTaFl06.s page 17 - - - 890:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** hi2c->State = HAL_I2C_STATE_BUSY_TX; - 891:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** hi2c->Mode = HAL_I2C_MODE_SLAVE; - 892:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** hi2c->ErrorCode = HAL_I2C_ERROR_NONE; - 893:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** - 894:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** /* Prepare transfer parameters */ - 895:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** hi2c->pBuffPtr = pData; - 896:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** hi2c->XferCount = Size; - 897:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** hi2c->XferISR = NULL; - 898:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** - 899:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** /* Enable Address Acknowledge */ - 900:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** hi2c->Instance->CR2 &= ~I2C_CR2_NACK; - 901:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** - 902:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** /* Wait until ADDR flag is set */ - 903:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** if (I2C_WaitOnFlagUntilTimeout(hi2c, I2C_FLAG_ADDR, RESET, Timeout, tickstart) != HAL_OK) - 904:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** { - 905:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** /* Disable Address Acknowledge */ - 906:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** hi2c->Instance->CR2 |= I2C_CR2_NACK; - 907:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** return HAL_TIMEOUT; - 908:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** } - 909:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** - 910:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** /* Clear ADDR flag */ - 911:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** __HAL_I2C_CLEAR_FLAG(hi2c, I2C_FLAG_ADDR); - 912:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** - 913:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** /* If 10bit addressing mode is selected */ - 914:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** if (hi2c->Init.AddressingMode == I2C_ADDRESSINGMODE_10BIT) - 915:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** { - 916:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** /* Wait until ADDR flag is set */ - 917:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** if (I2C_WaitOnFlagUntilTimeout(hi2c, I2C_FLAG_ADDR, RESET, Timeout, tickstart) != HAL_OK) - 918:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** { - 919:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** /* Disable Address Acknowledge */ - 920:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** hi2c->Instance->CR2 |= I2C_CR2_NACK; - 921:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** return HAL_TIMEOUT; - 922:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** } - 923:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** - 924:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** /* Clear ADDR flag */ - 925:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** __HAL_I2C_CLEAR_FLAG(hi2c, I2C_FLAG_ADDR); - 926:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** } - 927:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** - 928:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** /* Wait until DIR flag is set Transmitter mode */ - 929:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** if (I2C_WaitOnFlagUntilTimeout(hi2c, I2C_FLAG_DIR, RESET, Timeout, tickstart) != HAL_OK) - 930:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** { - 931:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** /* Disable Address Acknowledge */ - 932:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** hi2c->Instance->CR2 |= I2C_CR2_NACK; - 933:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** return HAL_TIMEOUT; - 934:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** } - 935:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** - 936:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** while (hi2c->XferCount > 0U) - 937:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** { - 938:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** /* Wait until TXIS flag is set */ - 939:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** if (I2C_WaitOnTXISFlagUntilTimeout(hi2c, Timeout, tickstart) != HAL_OK) - 940:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** { - 941:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** /* Disable Address Acknowledge */ - 942:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** hi2c->Instance->CR2 |= I2C_CR2_NACK; - 943:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** - 944:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** if (hi2c->ErrorCode == HAL_I2C_ERROR_AF) - 945:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** { - 946:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** return HAL_ERROR; - ARM GAS /tmp/ccTaFl06.s page 18 - - - 947:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** } - 948:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** else - 949:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** { - 950:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** return HAL_TIMEOUT; - 951:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** } - 952:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** } - 953:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** - 954:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** /* Write data to TXDR */ - 955:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** hi2c->Instance->TXDR = (*hi2c->pBuffPtr++); - 956:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** hi2c->XferCount--; - 957:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** } - 958:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** - 959:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** /* Wait until STOP flag is set */ - 960:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** if (I2C_WaitOnSTOPFlagUntilTimeout(hi2c, Timeout, tickstart) != HAL_OK) - 961:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** { - 962:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** /* Disable Address Acknowledge */ - 963:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** hi2c->Instance->CR2 |= I2C_CR2_NACK; - 964:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** - 965:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** if (hi2c->ErrorCode == HAL_I2C_ERROR_AF) - 966:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** { - 967:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** /* Normal use case for Transmitter mode */ - 968:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** /* A NACK is generated to confirm the end of transfer */ - 969:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** hi2c->ErrorCode = HAL_I2C_ERROR_NONE; - 970:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** } - 971:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** else - 972:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** { - 973:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** return HAL_TIMEOUT; - 974:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** } - 975:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** } - 976:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** - 977:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** /* Clear STOP flag */ - 978:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** __HAL_I2C_CLEAR_FLAG(hi2c, I2C_FLAG_STOPF); - 979:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** - 980:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** /* Wait until BUSY flag is reset */ - 981:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** if (I2C_WaitOnFlagUntilTimeout(hi2c, I2C_FLAG_BUSY, SET, Timeout, tickstart) != HAL_OK) - 982:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** { - 983:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** /* Disable Address Acknowledge */ - 984:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** hi2c->Instance->CR2 |= I2C_CR2_NACK; - 985:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** return HAL_TIMEOUT; - 986:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** } - 987:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** - 988:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** /* Disable Address Acknowledge */ - 989:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** hi2c->Instance->CR2 |= I2C_CR2_NACK; - 990:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** - 991:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** hi2c->State = HAL_I2C_STATE_READY; - 992:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** hi2c->Mode = HAL_I2C_MODE_NONE; - 993:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** - 994:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** /* Process Unlocked */ - 995:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** __HAL_UNLOCK(hi2c); - 996:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** - 997:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** return HAL_OK; - 998:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** } - 999:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** else -1000:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** { -1001:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** return HAL_BUSY; -1002:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** } -1003:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** } - ARM GAS /tmp/ccTaFl06.s page 19 - - -1004:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** -1005:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** /** -1006:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** * @brief Receive in slave mode an amount of data in blocking mode -1007:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** * @param hi2c Pointer to a I2C_HandleTypeDef structure that contains -1008:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** * the configuration information for the specified I2C. -1009:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** * @param pData Pointer to data buffer -1010:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** * @param Size Amount of data to be sent -1011:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** * @param Timeout Timeout duration -1012:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** * @retval HAL status -1013:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** */ -1014:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** HAL_StatusTypeDef HAL_I2C_Slave_Receive(I2C_HandleTypeDef *hi2c, uint8_t *pData, uint16_t Size, uin -1015:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** { -1016:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** uint32_t tickstart = 0U; -1017:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** -1018:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** if (hi2c->State == HAL_I2C_STATE_READY) -1019:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** { -1020:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** if ((pData == NULL) || (Size == 0U)) -1021:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** { -1022:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** return HAL_ERROR; -1023:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** } -1024:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** /* Process Locked */ -1025:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** __HAL_LOCK(hi2c); -1026:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** -1027:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** /* Init tickstart for timeout management*/ -1028:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** tickstart = HAL_GetTick(); -1029:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** -1030:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** hi2c->State = HAL_I2C_STATE_BUSY_RX; -1031:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** hi2c->Mode = HAL_I2C_MODE_SLAVE; -1032:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** hi2c->ErrorCode = HAL_I2C_ERROR_NONE; -1033:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** -1034:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** /* Prepare transfer parameters */ -1035:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** hi2c->pBuffPtr = pData; -1036:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** hi2c->XferCount = Size; -1037:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** hi2c->XferISR = NULL; -1038:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** -1039:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** /* Enable Address Acknowledge */ -1040:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** hi2c->Instance->CR2 &= ~I2C_CR2_NACK; -1041:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** -1042:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** /* Wait until ADDR flag is set */ -1043:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** if (I2C_WaitOnFlagUntilTimeout(hi2c, I2C_FLAG_ADDR, RESET, Timeout, tickstart) != HAL_OK) -1044:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** { -1045:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** /* Disable Address Acknowledge */ -1046:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** hi2c->Instance->CR2 |= I2C_CR2_NACK; -1047:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** return HAL_TIMEOUT; -1048:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** } -1049:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** -1050:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** /* Clear ADDR flag */ -1051:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** __HAL_I2C_CLEAR_FLAG(hi2c, I2C_FLAG_ADDR); -1052:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** -1053:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** /* Wait until DIR flag is reset Receiver mode */ -1054:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** if (I2C_WaitOnFlagUntilTimeout(hi2c, I2C_FLAG_DIR, SET, Timeout, tickstart) != HAL_OK) -1055:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** { -1056:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** /* Disable Address Acknowledge */ -1057:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** hi2c->Instance->CR2 |= I2C_CR2_NACK; -1058:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** return HAL_TIMEOUT; -1059:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** } -1060:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** - ARM GAS /tmp/ccTaFl06.s page 20 - - -1061:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** while (hi2c->XferCount > 0U) -1062:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** { -1063:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** /* Wait until RXNE flag is set */ -1064:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** if (I2C_WaitOnRXNEFlagUntilTimeout(hi2c, Timeout, tickstart) != HAL_OK) -1065:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** { -1066:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** /* Disable Address Acknowledge */ -1067:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** hi2c->Instance->CR2 |= I2C_CR2_NACK; -1068:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** -1069:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** /* Store Last receive data if any */ -1070:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** if (__HAL_I2C_GET_FLAG(hi2c, I2C_FLAG_RXNE) == SET) -1071:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** { -1072:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** /* Read data from RXDR */ -1073:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** (*hi2c->pBuffPtr++) = hi2c->Instance->RXDR; -1074:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** hi2c->XferCount--; -1075:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** } -1076:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** -1077:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** if (hi2c->ErrorCode == HAL_I2C_ERROR_TIMEOUT) -1078:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** { -1079:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** return HAL_TIMEOUT; -1080:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** } -1081:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** else -1082:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** { -1083:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** return HAL_ERROR; -1084:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** } -1085:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** } -1086:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** -1087:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** /* Read data from RXDR */ -1088:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** (*hi2c->pBuffPtr++) = hi2c->Instance->RXDR; -1089:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** hi2c->XferCount--; -1090:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** } -1091:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** -1092:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** /* Wait until STOP flag is set */ -1093:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** if (I2C_WaitOnSTOPFlagUntilTimeout(hi2c, Timeout, tickstart) != HAL_OK) -1094:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** { -1095:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** /* Disable Address Acknowledge */ -1096:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** hi2c->Instance->CR2 |= I2C_CR2_NACK; -1097:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** -1098:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** if (hi2c->ErrorCode == HAL_I2C_ERROR_AF) -1099:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** { -1100:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** return HAL_ERROR; -1101:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** } -1102:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** else -1103:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** { -1104:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** return HAL_TIMEOUT; -1105:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** } -1106:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** } -1107:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** -1108:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** /* Clear STOP flag */ -1109:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** __HAL_I2C_CLEAR_FLAG(hi2c, I2C_FLAG_STOPF); -1110:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** -1111:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** /* Wait until BUSY flag is reset */ -1112:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** if (I2C_WaitOnFlagUntilTimeout(hi2c, I2C_FLAG_BUSY, SET, Timeout, tickstart) != HAL_OK) -1113:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** { -1114:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** /* Disable Address Acknowledge */ -1115:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** hi2c->Instance->CR2 |= I2C_CR2_NACK; -1116:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** return HAL_TIMEOUT; -1117:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** } - ARM GAS /tmp/ccTaFl06.s page 21 - - -1118:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** -1119:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** /* Disable Address Acknowledge */ -1120:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** hi2c->Instance->CR2 |= I2C_CR2_NACK; -1121:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** -1122:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** hi2c->State = HAL_I2C_STATE_READY; -1123:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** hi2c->Mode = HAL_I2C_MODE_NONE; -1124:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** -1125:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** /* Process Unlocked */ -1126:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** __HAL_UNLOCK(hi2c); -1127:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** -1128:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** return HAL_OK; -1129:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** } -1130:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** else -1131:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** { -1132:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** return HAL_BUSY; -1133:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** } -1134:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** } -1135:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** -1136:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** /** -1137:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** * @brief Transmit in master mode an amount of data in non-blocking mode with Interrupt -1138:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** * @param hi2c Pointer to a I2C_HandleTypeDef structure that contains -1139:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** * the configuration information for the specified I2C. -1140:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** * @param DevAddress Target device address: The device 7 bits address value -1141:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** * in datasheet must be shift at right before call interface -1142:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** * @param pData Pointer to data buffer -1143:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** * @param Size Amount of data to be sent -1144:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** * @retval HAL status -1145:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** */ -1146:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** HAL_StatusTypeDef HAL_I2C_Master_Transmit_IT(I2C_HandleTypeDef *hi2c, uint16_t DevAddress, uint8_t -1147:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** { -1148:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** uint32_t xfermode = 0U; -1149:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** -1150:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** if (hi2c->State == HAL_I2C_STATE_READY) -1151:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** { -1152:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** if (__HAL_I2C_GET_FLAG(hi2c, I2C_FLAG_BUSY) == SET) -1153:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** { -1154:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** return HAL_BUSY; -1155:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** } -1156:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** -1157:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** /* Process Locked */ -1158:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** __HAL_LOCK(hi2c); -1159:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** -1160:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** hi2c->State = HAL_I2C_STATE_BUSY_TX; -1161:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** hi2c->Mode = HAL_I2C_MODE_MASTER; -1162:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** hi2c->ErrorCode = HAL_I2C_ERROR_NONE; -1163:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** -1164:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** /* Prepare transfer parameters */ -1165:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** hi2c->pBuffPtr = pData; -1166:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** hi2c->XferCount = Size; -1167:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** hi2c->XferOptions = I2C_NO_OPTION_FRAME; -1168:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** hi2c->XferISR = I2C_Master_ISR_IT; -1169:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** -1170:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** if (hi2c->XferCount > MAX_NBYTE_SIZE) -1171:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** { -1172:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** hi2c->XferSize = MAX_NBYTE_SIZE; -1173:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** xfermode = I2C_RELOAD_MODE; -1174:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** } - ARM GAS /tmp/ccTaFl06.s page 22 - - -1175:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** else -1176:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** { -1177:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** hi2c->XferSize = hi2c->XferCount; -1178:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** xfermode = I2C_AUTOEND_MODE; -1179:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** } -1180:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** -1181:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** /* Send Slave Address */ -1182:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** /* Set NBYTES to write and reload if hi2c->XferCount > MAX_NBYTE_SIZE */ -1183:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** I2C_TransferConfig(hi2c, DevAddress, hi2c->XferSize, xfermode, I2C_GENERATE_START_WRITE); -1184:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** -1185:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** /* Process Unlocked */ -1186:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** __HAL_UNLOCK(hi2c); -1187:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** -1188:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** /* Note : The I2C interrupts must be enabled after unlocking current process -1189:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** to avoid the risk of I2C interrupt handle execution before current -1190:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** process unlock */ -1191:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** -1192:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** /* Enable ERR, TC, STOP, NACK, TXI interrupt */ -1193:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** /* possible to enable all of these */ -1194:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** /* I2C_IT_ERRI | I2C_IT_TCI| I2C_IT_STOPI| I2C_IT_NACKI | I2C_IT_ADDRI | I2C_IT_RXI | I2C_IT_TX -1195:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** I2C_Enable_IRQ(hi2c, I2C_XFER_TX_IT); -1196:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** -1197:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** return HAL_OK; -1198:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** } -1199:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** else -1200:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** { -1201:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** return HAL_BUSY; -1202:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** } -1203:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** } -1204:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** -1205:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** /** -1206:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** * @brief Receive in master mode an amount of data in non-blocking mode with Interrupt -1207:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** * @param hi2c Pointer to a I2C_HandleTypeDef structure that contains -1208:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** * the configuration information for the specified I2C. -1209:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** * @param DevAddress Target device address: The device 7 bits address value -1210:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** * in datasheet must be shift at right before call interface -1211:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** * @param pData Pointer to data buffer -1212:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** * @param Size Amount of data to be sent -1213:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** * @retval HAL status -1214:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** */ -1215:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** HAL_StatusTypeDef HAL_I2C_Master_Receive_IT(I2C_HandleTypeDef *hi2c, uint16_t DevAddress, uint8_t * -1216:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** { -1217:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** uint32_t xfermode = 0U; -1218:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** -1219:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** if (hi2c->State == HAL_I2C_STATE_READY) -1220:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** { -1221:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** if (__HAL_I2C_GET_FLAG(hi2c, I2C_FLAG_BUSY) == SET) -1222:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** { -1223:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** return HAL_BUSY; -1224:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** } -1225:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** -1226:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** /* Process Locked */ -1227:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** __HAL_LOCK(hi2c); -1228:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** -1229:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** hi2c->State = HAL_I2C_STATE_BUSY_RX; -1230:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** hi2c->Mode = HAL_I2C_MODE_MASTER; -1231:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** hi2c->ErrorCode = HAL_I2C_ERROR_NONE; - ARM GAS /tmp/ccTaFl06.s page 23 - - -1232:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** -1233:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** /* Prepare transfer parameters */ -1234:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** hi2c->pBuffPtr = pData; -1235:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** hi2c->XferCount = Size; -1236:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** hi2c->XferOptions = I2C_NO_OPTION_FRAME; -1237:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** hi2c->XferISR = I2C_Master_ISR_IT; -1238:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** -1239:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** if (hi2c->XferCount > MAX_NBYTE_SIZE) -1240:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** { -1241:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** hi2c->XferSize = MAX_NBYTE_SIZE; -1242:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** xfermode = I2C_RELOAD_MODE; -1243:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** } -1244:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** else -1245:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** { -1246:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** hi2c->XferSize = hi2c->XferCount; -1247:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** xfermode = I2C_AUTOEND_MODE; -1248:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** } -1249:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** -1250:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** /* Send Slave Address */ -1251:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** /* Set NBYTES to write and reload if hi2c->XferCount > MAX_NBYTE_SIZE */ -1252:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** I2C_TransferConfig(hi2c, DevAddress, hi2c->XferSize, xfermode, I2C_GENERATE_START_READ); -1253:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** -1254:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** /* Process Unlocked */ -1255:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** __HAL_UNLOCK(hi2c); -1256:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** -1257:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** /* Note : The I2C interrupts must be enabled after unlocking current process -1258:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** to avoid the risk of I2C interrupt handle execution before current -1259:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** process unlock */ -1260:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** -1261:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** /* Enable ERR, TC, STOP, NACK, RXI interrupt */ -1262:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** /* possible to enable all of these */ -1263:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** /* I2C_IT_ERRI | I2C_IT_TCI| I2C_IT_STOPI| I2C_IT_NACKI | I2C_IT_ADDRI | I2C_IT_RXI | I2C_IT_TX -1264:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** I2C_Enable_IRQ(hi2c, I2C_XFER_RX_IT); -1265:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** -1266:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** return HAL_OK; -1267:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** } -1268:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** else -1269:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** { -1270:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** return HAL_BUSY; -1271:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** } -1272:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** } -1273:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** -1274:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** /** -1275:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** * @brief Transmit in slave mode an amount of data in non-blocking mode with Interrupt -1276:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** * @param hi2c Pointer to a I2C_HandleTypeDef structure that contains -1277:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** * the configuration information for the specified I2C. -1278:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** * @param pData Pointer to data buffer -1279:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** * @param Size Amount of data to be sent -1280:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** * @retval HAL status -1281:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** */ -1282:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** HAL_StatusTypeDef HAL_I2C_Slave_Transmit_IT(I2C_HandleTypeDef *hi2c, uint8_t *pData, uint16_t Size) -1283:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** { -1284:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** if (hi2c->State == HAL_I2C_STATE_READY) -1285:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** { -1286:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** /* Process Locked */ -1287:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** __HAL_LOCK(hi2c); -1288:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** - ARM GAS /tmp/ccTaFl06.s page 24 - - -1289:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** hi2c->State = HAL_I2C_STATE_BUSY_TX; -1290:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** hi2c->Mode = HAL_I2C_MODE_SLAVE; -1291:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** hi2c->ErrorCode = HAL_I2C_ERROR_NONE; -1292:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** -1293:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** /* Enable Address Acknowledge */ -1294:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** hi2c->Instance->CR2 &= ~I2C_CR2_NACK; -1295:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** -1296:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** /* Prepare transfer parameters */ -1297:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** hi2c->pBuffPtr = pData; -1298:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** hi2c->XferCount = Size; -1299:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** hi2c->XferSize = hi2c->XferCount; -1300:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** hi2c->XferOptions = I2C_NO_OPTION_FRAME; -1301:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** hi2c->XferISR = I2C_Slave_ISR_IT; -1302:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** -1303:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** /* Process Unlocked */ -1304:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** __HAL_UNLOCK(hi2c); -1305:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** -1306:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** /* Note : The I2C interrupts must be enabled after unlocking current process -1307:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** to avoid the risk of I2C interrupt handle execution before current -1308:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** process unlock */ -1309:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** -1310:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** /* Enable ERR, TC, STOP, NACK, TXI interrupt */ -1311:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** /* possible to enable all of these */ -1312:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** /* I2C_IT_ERRI | I2C_IT_TCI| I2C_IT_STOPI| I2C_IT_NACKI | I2C_IT_ADDRI | I2C_IT_RXI | I2C_IT_TX -1313:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** I2C_Enable_IRQ(hi2c, I2C_XFER_TX_IT | I2C_XFER_LISTEN_IT); -1314:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** -1315:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** return HAL_OK; -1316:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** } -1317:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** else -1318:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** { -1319:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** return HAL_BUSY; -1320:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** } -1321:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** } -1322:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** -1323:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** /** -1324:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** * @brief Receive in slave mode an amount of data in non-blocking mode with Interrupt -1325:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** * @param hi2c Pointer to a I2C_HandleTypeDef structure that contains -1326:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** * the configuration information for the specified I2C. -1327:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** * @param pData Pointer to data buffer -1328:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** * @param Size Amount of data to be sent -1329:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** * @retval HAL status -1330:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** */ -1331:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** HAL_StatusTypeDef HAL_I2C_Slave_Receive_IT(I2C_HandleTypeDef *hi2c, uint8_t *pData, uint16_t Size) -1332:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** { -1333:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** if (hi2c->State == HAL_I2C_STATE_READY) -1334:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** { -1335:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** /* Process Locked */ -1336:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** __HAL_LOCK(hi2c); -1337:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** -1338:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** hi2c->State = HAL_I2C_STATE_BUSY_RX; -1339:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** hi2c->Mode = HAL_I2C_MODE_SLAVE; -1340:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** hi2c->ErrorCode = HAL_I2C_ERROR_NONE; -1341:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** -1342:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** /* Enable Address Acknowledge */ -1343:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** hi2c->Instance->CR2 &= ~I2C_CR2_NACK; -1344:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** -1345:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** /* Prepare transfer parameters */ - ARM GAS /tmp/ccTaFl06.s page 25 - - -1346:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** hi2c->pBuffPtr = pData; -1347:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** hi2c->XferCount = Size; -1348:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** hi2c->XferSize = hi2c->XferCount; -1349:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** hi2c->XferOptions = I2C_NO_OPTION_FRAME; -1350:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** hi2c->XferISR = I2C_Slave_ISR_IT; -1351:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** -1352:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** /* Process Unlocked */ -1353:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** __HAL_UNLOCK(hi2c); -1354:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** -1355:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** /* Note : The I2C interrupts must be enabled after unlocking current process -1356:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** to avoid the risk of I2C interrupt handle execution before current -1357:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** process unlock */ -1358:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** -1359:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** /* Enable ERR, TC, STOP, NACK, RXI interrupt */ -1360:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** /* possible to enable all of these */ -1361:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** /* I2C_IT_ERRI | I2C_IT_TCI| I2C_IT_STOPI| I2C_IT_NACKI | I2C_IT_ADDRI | I2C_IT_RXI | I2C_IT_TX -1362:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** I2C_Enable_IRQ(hi2c, I2C_XFER_RX_IT | I2C_XFER_LISTEN_IT); -1363:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** -1364:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** return HAL_OK; -1365:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** } -1366:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** else -1367:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** { -1368:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** return HAL_BUSY; -1369:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** } -1370:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** } -1371:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** -1372:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** /** -1373:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** * @brief Transmit in master mode an amount of data in non-blocking mode with DMA -1374:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** * @param hi2c Pointer to a I2C_HandleTypeDef structure that contains -1375:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** * the configuration information for the specified I2C. -1376:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** * @param DevAddress Target device address: The device 7 bits address value -1377:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** * in datasheet must be shift at right before call interface -1378:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** * @param pData Pointer to data buffer -1379:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** * @param Size Amount of data to be sent -1380:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** * @retval HAL status -1381:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** */ -1382:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** HAL_StatusTypeDef HAL_I2C_Master_Transmit_DMA(I2C_HandleTypeDef *hi2c, uint16_t DevAddress, uint8_t -1383:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** { -1384:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** uint32_t xfermode = 0U; -1385:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** -1386:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** if (hi2c->State == HAL_I2C_STATE_READY) -1387:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** { -1388:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** if (__HAL_I2C_GET_FLAG(hi2c, I2C_FLAG_BUSY) == SET) -1389:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** { -1390:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** return HAL_BUSY; -1391:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** } -1392:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** -1393:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** /* Process Locked */ -1394:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** __HAL_LOCK(hi2c); -1395:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** -1396:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** hi2c->State = HAL_I2C_STATE_BUSY_TX; -1397:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** hi2c->Mode = HAL_I2C_MODE_MASTER; -1398:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** hi2c->ErrorCode = HAL_I2C_ERROR_NONE; -1399:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** -1400:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** /* Prepare transfer parameters */ -1401:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** hi2c->pBuffPtr = pData; -1402:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** hi2c->XferCount = Size; - ARM GAS /tmp/ccTaFl06.s page 26 - - -1403:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** hi2c->XferOptions = I2C_NO_OPTION_FRAME; -1404:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** hi2c->XferISR = I2C_Master_ISR_DMA; -1405:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** -1406:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** if (hi2c->XferCount > MAX_NBYTE_SIZE) -1407:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** { -1408:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** hi2c->XferSize = MAX_NBYTE_SIZE; -1409:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** xfermode = I2C_RELOAD_MODE; -1410:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** } -1411:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** else -1412:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** { -1413:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** hi2c->XferSize = hi2c->XferCount; -1414:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** xfermode = I2C_AUTOEND_MODE; -1415:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** } -1416:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** -1417:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** if (hi2c->XferSize > 0U) -1418:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** { -1419:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** /* Set the I2C DMA transfer complete callback */ -1420:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** hi2c->hdmatx->XferCpltCallback = I2C_DMAMasterTransmitCplt; -1421:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** -1422:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** /* Set the DMA error callback */ -1423:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** hi2c->hdmatx->XferErrorCallback = I2C_DMAError; -1424:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** -1425:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** /* Set the unused DMA callbacks to NULL */ -1426:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** hi2c->hdmatx->XferHalfCpltCallback = NULL; -1427:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** hi2c->hdmatx->XferAbortCallback = NULL; -1428:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** -1429:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** /* Enable the DMA channel */ -1430:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** HAL_DMA_Start_IT(hi2c->hdmatx, (uint32_t)pData, (uint32_t)&hi2c->Instance->TXDR, hi2c->XferSi -1431:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** -1432:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** /* Send Slave Address */ -1433:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** /* Set NBYTES to write and reload if hi2c->XferCount > MAX_NBYTE_SIZE and generate RESTART */ -1434:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** I2C_TransferConfig(hi2c, DevAddress, hi2c->XferSize, xfermode, I2C_GENERATE_START_WRITE); -1435:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** -1436:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** /* Update XferCount value */ -1437:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** hi2c->XferCount -= hi2c->XferSize; -1438:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** -1439:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** /* Process Unlocked */ -1440:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** __HAL_UNLOCK(hi2c); -1441:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** -1442:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** /* Note : The I2C interrupts must be enabled after unlocking current process -1443:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** to avoid the risk of I2C interrupt handle execution before current -1444:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** process unlock */ -1445:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** /* Enable ERR and NACK interrupts */ -1446:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** I2C_Enable_IRQ(hi2c, I2C_XFER_ERROR_IT); -1447:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** -1448:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** /* Enable DMA Request */ -1449:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** hi2c->Instance->CR1 |= I2C_CR1_TXDMAEN; -1450:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** } -1451:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** else -1452:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** { -1453:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** /* Update Transfer ISR function pointer */ -1454:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** hi2c->XferISR = I2C_Master_ISR_IT; -1455:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** -1456:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** /* Send Slave Address */ -1457:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** /* Set NBYTES to write and generate START condition */ -1458:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** I2C_TransferConfig(hi2c, DevAddress, hi2c->XferSize, I2C_AUTOEND_MODE, I2C_GENERATE_START_WRI -1459:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** - ARM GAS /tmp/ccTaFl06.s page 27 - - -1460:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** /* Process Unlocked */ -1461:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** __HAL_UNLOCK(hi2c); -1462:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** -1463:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** /* Note : The I2C interrupts must be enabled after unlocking current process -1464:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** to avoid the risk of I2C interrupt handle execution before current -1465:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** process unlock */ -1466:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** /* Enable ERR, TC, STOP, NACK, TXI interrupt */ -1467:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** /* possible to enable all of these */ -1468:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** /* I2C_IT_ERRI | I2C_IT_TCI| I2C_IT_STOPI| I2C_IT_NACKI | I2C_IT_ADDRI | I2C_IT_RXI | I2C_IT_ -1469:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** I2C_Enable_IRQ(hi2c, I2C_XFER_TX_IT); -1470:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** } -1471:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** -1472:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** return HAL_OK; -1473:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** } -1474:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** else -1475:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** { -1476:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** return HAL_BUSY; -1477:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** } -1478:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** } -1479:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** -1480:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** /** -1481:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** * @brief Receive in master mode an amount of data in non-blocking mode with DMA -1482:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** * @param hi2c Pointer to a I2C_HandleTypeDef structure that contains -1483:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** * the configuration information for the specified I2C. -1484:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** * @param DevAddress Target device address: The device 7 bits address value -1485:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** * in datasheet must be shift at right before call interface -1486:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** * @param pData Pointer to data buffer -1487:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** * @param Size Amount of data to be sent -1488:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** * @retval HAL status -1489:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** */ -1490:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** HAL_StatusTypeDef HAL_I2C_Master_Receive_DMA(I2C_HandleTypeDef *hi2c, uint16_t DevAddress, uint8_t -1491:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** { -1492:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** uint32_t xfermode = 0U; -1493:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** -1494:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** if (hi2c->State == HAL_I2C_STATE_READY) -1495:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** { -1496:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** if (__HAL_I2C_GET_FLAG(hi2c, I2C_FLAG_BUSY) == SET) -1497:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** { -1498:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** return HAL_BUSY; -1499:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** } -1500:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** -1501:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** /* Process Locked */ -1502:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** __HAL_LOCK(hi2c); -1503:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** -1504:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** hi2c->State = HAL_I2C_STATE_BUSY_RX; -1505:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** hi2c->Mode = HAL_I2C_MODE_MASTER; -1506:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** hi2c->ErrorCode = HAL_I2C_ERROR_NONE; -1507:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** -1508:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** /* Prepare transfer parameters */ -1509:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** hi2c->pBuffPtr = pData; -1510:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** hi2c->XferCount = Size; -1511:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** hi2c->XferOptions = I2C_NO_OPTION_FRAME; -1512:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** hi2c->XferISR = I2C_Master_ISR_DMA; -1513:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** -1514:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** if (hi2c->XferCount > MAX_NBYTE_SIZE) -1515:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** { -1516:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** hi2c->XferSize = MAX_NBYTE_SIZE; - ARM GAS /tmp/ccTaFl06.s page 28 - - -1517:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** xfermode = I2C_RELOAD_MODE; -1518:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** } -1519:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** else -1520:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** { -1521:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** hi2c->XferSize = hi2c->XferCount; -1522:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** xfermode = I2C_AUTOEND_MODE; -1523:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** } -1524:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** -1525:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** if (hi2c->XferSize > 0U) -1526:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** { -1527:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** /* Set the I2C DMA transfer complete callback */ -1528:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** hi2c->hdmarx->XferCpltCallback = I2C_DMAMasterReceiveCplt; -1529:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** -1530:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** /* Set the DMA error callback */ -1531:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** hi2c->hdmarx->XferErrorCallback = I2C_DMAError; -1532:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** -1533:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** /* Set the unused DMA callbacks to NULL */ -1534:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** hi2c->hdmarx->XferHalfCpltCallback = NULL; -1535:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** hi2c->hdmarx->XferAbortCallback = NULL; -1536:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** -1537:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** /* Enable the DMA channel */ -1538:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** HAL_DMA_Start_IT(hi2c->hdmarx, (uint32_t)&hi2c->Instance->RXDR, (uint32_t)pData, hi2c->XferSi -1539:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** -1540:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** /* Send Slave Address */ -1541:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** /* Set NBYTES to read and reload if hi2c->XferCount > MAX_NBYTE_SIZE and generate RESTART */ -1542:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** I2C_TransferConfig(hi2c, DevAddress, hi2c->XferSize, xfermode, I2C_GENERATE_START_READ); -1543:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** -1544:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** /* Update XferCount value */ -1545:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** hi2c->XferCount -= hi2c->XferSize; -1546:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** -1547:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** /* Process Unlocked */ -1548:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** __HAL_UNLOCK(hi2c); -1549:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** -1550:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** /* Note : The I2C interrupts must be enabled after unlocking current process -1551:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** to avoid the risk of I2C interrupt handle execution before current -1552:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** process unlock */ -1553:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** /* Enable ERR and NACK interrupts */ -1554:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** I2C_Enable_IRQ(hi2c, I2C_XFER_ERROR_IT); -1555:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** -1556:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** /* Enable DMA Request */ -1557:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** hi2c->Instance->CR1 |= I2C_CR1_RXDMAEN; -1558:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** } -1559:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** else -1560:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** { -1561:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** /* Update Transfer ISR function pointer */ -1562:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** hi2c->XferISR = I2C_Master_ISR_IT; -1563:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** -1564:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** /* Send Slave Address */ -1565:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** /* Set NBYTES to read and generate START condition */ -1566:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** I2C_TransferConfig(hi2c, DevAddress, hi2c->XferSize, I2C_AUTOEND_MODE, I2C_GENERATE_START_REA -1567:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** -1568:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** /* Process Unlocked */ -1569:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** __HAL_UNLOCK(hi2c); -1570:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** -1571:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** /* Note : The I2C interrupts must be enabled after unlocking current process -1572:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** to avoid the risk of I2C interrupt handle execution before current -1573:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** process unlock */ - ARM GAS /tmp/ccTaFl06.s page 29 - - -1574:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** /* Enable ERR, TC, STOP, NACK, TXI interrupt */ -1575:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** /* possible to enable all of these */ -1576:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** /* I2C_IT_ERRI | I2C_IT_TCI| I2C_IT_STOPI| I2C_IT_NACKI | I2C_IT_ADDRI | I2C_IT_RXI | I2C_IT_ -1577:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** I2C_Enable_IRQ(hi2c, I2C_XFER_TX_IT); -1578:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** } -1579:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** return HAL_OK; -1580:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** } -1581:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** else -1582:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** { -1583:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** return HAL_BUSY; -1584:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** } -1585:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** } -1586:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** -1587:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** /** -1588:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** * @brief Transmit in slave mode an amount of data in non-blocking mode with DMA -1589:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** * @param hi2c Pointer to a I2C_HandleTypeDef structure that contains -1590:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** * the configuration information for the specified I2C. -1591:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** * @param pData Pointer to data buffer -1592:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** * @param Size Amount of data to be sent -1593:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** * @retval HAL status -1594:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** */ -1595:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** HAL_StatusTypeDef HAL_I2C_Slave_Transmit_DMA(I2C_HandleTypeDef *hi2c, uint8_t *pData, uint16_t Size -1596:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** { -1597:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** if (hi2c->State == HAL_I2C_STATE_READY) -1598:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** { -1599:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** if ((pData == NULL) || (Size == 0U)) -1600:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** { -1601:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** return HAL_ERROR; -1602:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** } -1603:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** /* Process Locked */ -1604:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** __HAL_LOCK(hi2c); -1605:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** -1606:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** hi2c->State = HAL_I2C_STATE_BUSY_TX; -1607:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** hi2c->Mode = HAL_I2C_MODE_SLAVE; -1608:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** hi2c->ErrorCode = HAL_I2C_ERROR_NONE; -1609:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** -1610:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** /* Prepare transfer parameters */ -1611:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** hi2c->pBuffPtr = pData; -1612:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** hi2c->XferCount = Size; -1613:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** hi2c->XferSize = hi2c->XferCount; -1614:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** hi2c->XferOptions = I2C_NO_OPTION_FRAME; -1615:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** hi2c->XferISR = I2C_Slave_ISR_DMA; -1616:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** -1617:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** /* Set the I2C DMA transfer complete callback */ -1618:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** hi2c->hdmatx->XferCpltCallback = I2C_DMASlaveTransmitCplt; -1619:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** -1620:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** /* Set the DMA error callback */ -1621:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** hi2c->hdmatx->XferErrorCallback = I2C_DMAError; -1622:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** -1623:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** /* Set the unused DMA callbacks to NULL */ -1624:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** hi2c->hdmatx->XferHalfCpltCallback = NULL; -1625:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** hi2c->hdmatx->XferAbortCallback = NULL; -1626:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** -1627:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** /* Enable the DMA channel */ -1628:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** HAL_DMA_Start_IT(hi2c->hdmatx, (uint32_t)pData, (uint32_t)&hi2c->Instance->TXDR, hi2c->XferSize -1629:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** -1630:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** /* Enable Address Acknowledge */ - ARM GAS /tmp/ccTaFl06.s page 30 - - -1631:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** hi2c->Instance->CR2 &= ~I2C_CR2_NACK; -1632:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** -1633:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** /* Process Unlocked */ -1634:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** __HAL_UNLOCK(hi2c); -1635:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** -1636:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** /* Note : The I2C interrupts must be enabled after unlocking current process -1637:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** to avoid the risk of I2C interrupt handle execution before current -1638:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** process unlock */ -1639:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** /* Enable ERR, STOP, NACK, ADDR interrupts */ -1640:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** I2C_Enable_IRQ(hi2c, I2C_XFER_LISTEN_IT); -1641:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** -1642:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** /* Enable DMA Request */ -1643:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** hi2c->Instance->CR1 |= I2C_CR1_TXDMAEN; -1644:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** -1645:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** return HAL_OK; -1646:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** } -1647:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** else -1648:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** { -1649:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** return HAL_BUSY; -1650:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** } -1651:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** } -1652:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** -1653:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** /** -1654:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** * @brief Receive in slave mode an amount of data in non-blocking mode with DMA -1655:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** * @param hi2c Pointer to a I2C_HandleTypeDef structure that contains -1656:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** * the configuration information for the specified I2C. -1657:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** * @param pData Pointer to data buffer -1658:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** * @param Size Amount of data to be sent -1659:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** * @retval HAL status -1660:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** */ -1661:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** HAL_StatusTypeDef HAL_I2C_Slave_Receive_DMA(I2C_HandleTypeDef *hi2c, uint8_t *pData, uint16_t Size) -1662:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** { -1663:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** if (hi2c->State == HAL_I2C_STATE_READY) -1664:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** { -1665:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** if ((pData == NULL) || (Size == 0U)) -1666:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** { -1667:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** return HAL_ERROR; -1668:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** } -1669:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** /* Process Locked */ -1670:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** __HAL_LOCK(hi2c); -1671:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** -1672:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** hi2c->State = HAL_I2C_STATE_BUSY_RX; -1673:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** hi2c->Mode = HAL_I2C_MODE_SLAVE; -1674:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** hi2c->ErrorCode = HAL_I2C_ERROR_NONE; -1675:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** -1676:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** /* Prepare transfer parameters */ -1677:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** hi2c->pBuffPtr = pData; -1678:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** hi2c->XferCount = Size; -1679:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** hi2c->XferSize = hi2c->XferCount; -1680:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** hi2c->XferOptions = I2C_NO_OPTION_FRAME; -1681:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** hi2c->XferISR = I2C_Slave_ISR_DMA; -1682:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** -1683:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** /* Set the I2C DMA transfer complete callback */ -1684:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** hi2c->hdmarx->XferCpltCallback = I2C_DMASlaveReceiveCplt; -1685:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** -1686:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** /* Set the DMA error callback */ -1687:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** hi2c->hdmarx->XferErrorCallback = I2C_DMAError; - ARM GAS /tmp/ccTaFl06.s page 31 - - -1688:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** -1689:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** /* Set the unused DMA callbacks to NULL */ -1690:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** hi2c->hdmarx->XferHalfCpltCallback = NULL; -1691:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** hi2c->hdmarx->XferAbortCallback = NULL; -1692:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** -1693:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** /* Enable the DMA channel */ -1694:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** HAL_DMA_Start_IT(hi2c->hdmarx, (uint32_t)&hi2c->Instance->RXDR, (uint32_t)pData, hi2c->XferSize -1695:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** -1696:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** /* Enable Address Acknowledge */ -1697:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** hi2c->Instance->CR2 &= ~I2C_CR2_NACK; -1698:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** -1699:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** /* Process Unlocked */ -1700:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** __HAL_UNLOCK(hi2c); -1701:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** -1702:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** /* Note : The I2C interrupts must be enabled after unlocking current process -1703:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** to avoid the risk of I2C interrupt handle execution before current -1704:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** process unlock */ -1705:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** /* Enable ERR, STOP, NACK, ADDR interrupts */ -1706:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** I2C_Enable_IRQ(hi2c, I2C_XFER_LISTEN_IT); -1707:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** -1708:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** /* Enable DMA Request */ -1709:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** hi2c->Instance->CR1 |= I2C_CR1_RXDMAEN; -1710:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** -1711:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** return HAL_OK; -1712:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** } -1713:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** else -1714:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** { -1715:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** return HAL_BUSY; -1716:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** } -1717:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** } -1718:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** /** -1719:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** * @brief Write an amount of data in blocking mode to a specific memory address -1720:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** * @param hi2c Pointer to a I2C_HandleTypeDef structure that contains -1721:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** * the configuration information for the specified I2C. -1722:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** * @param DevAddress Target device address: The device 7 bits address value -1723:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** * in datasheet must be shift at right before call interface -1724:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** * @param MemAddress Internal memory address -1725:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** * @param MemAddSize Size of internal memory address -1726:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** * @param pData Pointer to data buffer -1727:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** * @param Size Amount of data to be sent -1728:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** * @param Timeout Timeout duration -1729:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** * @retval HAL status -1730:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** */ -1731:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** HAL_StatusTypeDef HAL_I2C_Mem_Write(I2C_HandleTypeDef *hi2c, uint16_t DevAddress, uint16_t MemAddre -1732:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** { -1733:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** uint32_t tickstart = 0U; -1734:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** -1735:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** /* Check the parameters */ -1736:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** assert_param(IS_I2C_MEMADD_SIZE(MemAddSize)); -1737:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** -1738:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** if (hi2c->State == HAL_I2C_STATE_READY) -1739:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** { -1740:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** if ((pData == NULL) || (Size == 0U)) -1741:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** { -1742:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** return HAL_ERROR; -1743:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** } -1744:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** - ARM GAS /tmp/ccTaFl06.s page 32 - - -1745:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** /* Process Locked */ -1746:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** __HAL_LOCK(hi2c); -1747:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** -1748:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** /* Init tickstart for timeout management*/ -1749:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** tickstart = HAL_GetTick(); -1750:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** -1751:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** if (I2C_WaitOnFlagUntilTimeout(hi2c, I2C_FLAG_BUSY, SET, I2C_TIMEOUT_BUSY, tickstart) != HAL_OK -1752:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** { -1753:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** return HAL_TIMEOUT; -1754:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** } -1755:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** -1756:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** hi2c->State = HAL_I2C_STATE_BUSY_TX; -1757:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** hi2c->Mode = HAL_I2C_MODE_MEM; -1758:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** hi2c->ErrorCode = HAL_I2C_ERROR_NONE; -1759:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** -1760:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** /* Prepare transfer parameters */ -1761:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** hi2c->pBuffPtr = pData; -1762:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** hi2c->XferCount = Size; -1763:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** hi2c->XferISR = NULL; -1764:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** -1765:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** /* Send Slave Address and Memory Address */ -1766:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** if (I2C_RequestMemoryWrite(hi2c, DevAddress, MemAddress, MemAddSize, Timeout, tickstart) != HAL -1767:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** { -1768:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** if (hi2c->ErrorCode == HAL_I2C_ERROR_AF) -1769:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** { -1770:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** /* Process Unlocked */ -1771:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** __HAL_UNLOCK(hi2c); -1772:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** return HAL_ERROR; -1773:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** } -1774:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** else -1775:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** { -1776:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** /* Process Unlocked */ -1777:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** __HAL_UNLOCK(hi2c); -1778:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** return HAL_TIMEOUT; -1779:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** } -1780:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** } -1781:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** -1782:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** /* Set NBYTES to write and reload if hi2c->XferCount > MAX_NBYTE_SIZE */ -1783:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** if (hi2c->XferCount > MAX_NBYTE_SIZE) -1784:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** { -1785:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** hi2c->XferSize = MAX_NBYTE_SIZE; -1786:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** I2C_TransferConfig(hi2c, DevAddress, hi2c->XferSize, I2C_RELOAD_MODE, I2C_NO_STARTSTOP); -1787:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** } -1788:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** else -1789:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** { -1790:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** hi2c->XferSize = hi2c->XferCount; -1791:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** I2C_TransferConfig(hi2c, DevAddress, hi2c->XferSize, I2C_AUTOEND_MODE, I2C_NO_STARTSTOP); -1792:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** } -1793:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** -1794:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** do -1795:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** { -1796:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** /* Wait until TXIS flag is set */ -1797:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** if (I2C_WaitOnTXISFlagUntilTimeout(hi2c, Timeout, tickstart) != HAL_OK) -1798:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** { -1799:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** if (hi2c->ErrorCode == HAL_I2C_ERROR_AF) -1800:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** { -1801:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** return HAL_ERROR; - ARM GAS /tmp/ccTaFl06.s page 33 - - -1802:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** } -1803:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** else -1804:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** { -1805:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** return HAL_TIMEOUT; -1806:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** } -1807:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** } -1808:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** -1809:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** /* Write data to TXDR */ -1810:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** hi2c->Instance->TXDR = (*hi2c->pBuffPtr++); -1811:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** hi2c->XferCount--; -1812:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** hi2c->XferSize--; -1813:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** -1814:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** if ((hi2c->XferSize == 0U) && (hi2c->XferCount != 0U)) -1815:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** { -1816:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** /* Wait until TCR flag is set */ -1817:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** if (I2C_WaitOnFlagUntilTimeout(hi2c, I2C_FLAG_TCR, RESET, Timeout, tickstart) != HAL_OK) -1818:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** { -1819:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** return HAL_TIMEOUT; -1820:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** } -1821:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** -1822:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** if (hi2c->XferCount > MAX_NBYTE_SIZE) -1823:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** { -1824:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** hi2c->XferSize = MAX_NBYTE_SIZE; -1825:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** I2C_TransferConfig(hi2c, DevAddress, hi2c->XferSize, I2C_RELOAD_MODE, I2C_NO_STARTSTOP); -1826:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** } -1827:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** else -1828:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** { -1829:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** hi2c->XferSize = hi2c->XferCount; -1830:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** I2C_TransferConfig(hi2c, DevAddress, hi2c->XferSize, I2C_AUTOEND_MODE, I2C_NO_STARTSTOP); -1831:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** } -1832:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** } -1833:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** -1834:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** } -1835:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** while (hi2c->XferCount > 0U); -1836:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** -1837:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** /* No need to Check TC flag, with AUTOEND mode the stop is automatically generated */ -1838:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** /* Wait until STOPF flag is reset */ -1839:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** if (I2C_WaitOnSTOPFlagUntilTimeout(hi2c, Timeout, tickstart) != HAL_OK) -1840:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** { -1841:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** if (hi2c->ErrorCode == HAL_I2C_ERROR_AF) -1842:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** { -1843:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** return HAL_ERROR; -1844:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** } -1845:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** else -1846:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** { -1847:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** return HAL_TIMEOUT; -1848:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** } -1849:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** } -1850:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** -1851:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** /* Clear STOP Flag */ -1852:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** __HAL_I2C_CLEAR_FLAG(hi2c, I2C_FLAG_STOPF); -1853:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** -1854:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** /* Clear Configuration Register 2 */ -1855:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** I2C_RESET_CR2(hi2c); -1856:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** -1857:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** hi2c->State = HAL_I2C_STATE_READY; -1858:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** hi2c->Mode = HAL_I2C_MODE_NONE; - ARM GAS /tmp/ccTaFl06.s page 34 - - -1859:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** -1860:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** /* Process Unlocked */ -1861:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** __HAL_UNLOCK(hi2c); -1862:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** -1863:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** return HAL_OK; -1864:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** } -1865:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** else -1866:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** { -1867:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** return HAL_BUSY; -1868:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** } -1869:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** } -1870:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** -1871:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** /** -1872:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** * @brief Read an amount of data in blocking mode from a specific memory address -1873:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** * @param hi2c Pointer to a I2C_HandleTypeDef structure that contains -1874:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** * the configuration information for the specified I2C. -1875:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** * @param DevAddress Target device address: The device 7 bits address value -1876:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** * in datasheet must be shift at right before call interface -1877:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** * @param MemAddress Internal memory address -1878:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** * @param MemAddSize Size of internal memory address -1879:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** * @param pData Pointer to data buffer -1880:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** * @param Size Amount of data to be sent -1881:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** * @param Timeout Timeout duration -1882:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** * @retval HAL status -1883:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** */ -1884:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** HAL_StatusTypeDef HAL_I2C_Mem_Read(I2C_HandleTypeDef *hi2c, uint16_t DevAddress, uint16_t MemAddres -1885:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** { -1886:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** uint32_t tickstart = 0U; -1887:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** -1888:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** /* Check the parameters */ -1889:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** assert_param(IS_I2C_MEMADD_SIZE(MemAddSize)); -1890:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** -1891:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** if (hi2c->State == HAL_I2C_STATE_READY) -1892:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** { -1893:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** if ((pData == NULL) || (Size == 0U)) -1894:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** { -1895:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** return HAL_ERROR; -1896:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** } -1897:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** -1898:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** /* Process Locked */ -1899:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** __HAL_LOCK(hi2c); -1900:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** -1901:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** /* Init tickstart for timeout management*/ -1902:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** tickstart = HAL_GetTick(); -1903:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** -1904:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** if (I2C_WaitOnFlagUntilTimeout(hi2c, I2C_FLAG_BUSY, SET, I2C_TIMEOUT_BUSY, tickstart) != HAL_OK -1905:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** { -1906:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** return HAL_TIMEOUT; -1907:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** } -1908:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** -1909:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** hi2c->State = HAL_I2C_STATE_BUSY_RX; -1910:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** hi2c->Mode = HAL_I2C_MODE_MEM; -1911:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** hi2c->ErrorCode = HAL_I2C_ERROR_NONE; -1912:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** -1913:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** /* Prepare transfer parameters */ -1914:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** hi2c->pBuffPtr = pData; -1915:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** hi2c->XferCount = Size; - ARM GAS /tmp/ccTaFl06.s page 35 - - -1916:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** hi2c->XferISR = NULL; -1917:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** -1918:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** /* Send Slave Address and Memory Address */ -1919:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** if (I2C_RequestMemoryRead(hi2c, DevAddress, MemAddress, MemAddSize, Timeout, tickstart) != HAL_ -1920:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** { -1921:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** if (hi2c->ErrorCode == HAL_I2C_ERROR_AF) -1922:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** { -1923:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** /* Process Unlocked */ -1924:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** __HAL_UNLOCK(hi2c); -1925:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** return HAL_ERROR; -1926:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** } -1927:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** else -1928:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** { -1929:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** /* Process Unlocked */ -1930:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** __HAL_UNLOCK(hi2c); -1931:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** return HAL_TIMEOUT; -1932:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** } -1933:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** } -1934:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** -1935:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** /* Send Slave Address */ -1936:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** /* Set NBYTES to write and reload if hi2c->XferCount > MAX_NBYTE_SIZE and generate RESTART */ -1937:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** if (hi2c->XferCount > MAX_NBYTE_SIZE) -1938:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** { -1939:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** hi2c->XferSize = MAX_NBYTE_SIZE; -1940:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** I2C_TransferConfig(hi2c, DevAddress, hi2c->XferSize, I2C_RELOAD_MODE, I2C_GENERATE_START_READ -1941:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** } -1942:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** else -1943:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** { -1944:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** hi2c->XferSize = hi2c->XferCount; -1945:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** I2C_TransferConfig(hi2c, DevAddress, hi2c->XferSize, I2C_AUTOEND_MODE, I2C_GENERATE_START_REA -1946:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** } -1947:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** -1948:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** do -1949:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** { -1950:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** /* Wait until RXNE flag is set */ -1951:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** if (I2C_WaitOnFlagUntilTimeout(hi2c, I2C_FLAG_RXNE, RESET, Timeout, tickstart) != HAL_OK) -1952:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** { -1953:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** return HAL_TIMEOUT; -1954:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** } -1955:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** -1956:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** /* Read data from RXDR */ -1957:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** (*hi2c->pBuffPtr++) = hi2c->Instance->RXDR; -1958:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** hi2c->XferSize--; -1959:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** hi2c->XferCount--; -1960:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** -1961:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** if ((hi2c->XferSize == 0U) && (hi2c->XferCount != 0U)) -1962:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** { -1963:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** /* Wait until TCR flag is set */ -1964:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** if (I2C_WaitOnFlagUntilTimeout(hi2c, I2C_FLAG_TCR, RESET, Timeout, tickstart) != HAL_OK) -1965:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** { -1966:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** return HAL_TIMEOUT; -1967:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** } -1968:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** -1969:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** if (hi2c->XferCount > MAX_NBYTE_SIZE) -1970:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** { -1971:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** hi2c->XferSize = MAX_NBYTE_SIZE; -1972:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** I2C_TransferConfig(hi2c, DevAddress, hi2c->XferSize, I2C_RELOAD_MODE, I2C_NO_STARTSTOP); - ARM GAS /tmp/ccTaFl06.s page 36 - - -1973:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** } -1974:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** else -1975:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** { -1976:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** hi2c->XferSize = hi2c->XferCount; -1977:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** I2C_TransferConfig(hi2c, DevAddress, hi2c->XferSize, I2C_AUTOEND_MODE, I2C_NO_STARTSTOP); -1978:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** } -1979:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** } -1980:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** } -1981:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** while (hi2c->XferCount > 0U); -1982:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** -1983:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** /* No need to Check TC flag, with AUTOEND mode the stop is automatically generated */ -1984:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** /* Wait until STOPF flag is reset */ -1985:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** if (I2C_WaitOnSTOPFlagUntilTimeout(hi2c, Timeout, tickstart) != HAL_OK) -1986:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** { -1987:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** if (hi2c->ErrorCode == HAL_I2C_ERROR_AF) -1988:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** { -1989:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** return HAL_ERROR; -1990:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** } -1991:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** else -1992:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** { -1993:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** return HAL_TIMEOUT; -1994:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** } -1995:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** } -1996:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** -1997:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** /* Clear STOP Flag */ -1998:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** __HAL_I2C_CLEAR_FLAG(hi2c, I2C_FLAG_STOPF); -1999:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** -2000:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** /* Clear Configuration Register 2 */ -2001:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** I2C_RESET_CR2(hi2c); -2002:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** -2003:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** hi2c->State = HAL_I2C_STATE_READY; -2004:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** hi2c->Mode = HAL_I2C_MODE_NONE; -2005:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** -2006:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** /* Process Unlocked */ -2007:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** __HAL_UNLOCK(hi2c); -2008:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** -2009:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** return HAL_OK; -2010:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** } -2011:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** else -2012:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** { -2013:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** return HAL_BUSY; -2014:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** } -2015:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** } -2016:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** /** -2017:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** * @brief Write an amount of data in non-blocking mode with Interrupt to a specific memory addres -2018:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** * @param hi2c Pointer to a I2C_HandleTypeDef structure that contains -2019:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** * the configuration information for the specified I2C. -2020:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** * @param DevAddress Target device address: The device 7 bits address value -2021:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** * in datasheet must be shift at right before call interface -2022:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** * @param MemAddress Internal memory address -2023:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** * @param MemAddSize Size of internal memory address -2024:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** * @param pData Pointer to data buffer -2025:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** * @param Size Amount of data to be sent -2026:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** * @retval HAL status -2027:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** */ -2028:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** HAL_StatusTypeDef HAL_I2C_Mem_Write_IT(I2C_HandleTypeDef *hi2c, uint16_t DevAddress, uint16_t MemAd -2029:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** { - ARM GAS /tmp/ccTaFl06.s page 37 - - -2030:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** uint32_t tickstart = 0U; -2031:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** uint32_t xfermode = 0U; -2032:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** -2033:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** /* Check the parameters */ -2034:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** assert_param(IS_I2C_MEMADD_SIZE(MemAddSize)); -2035:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** -2036:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** if (hi2c->State == HAL_I2C_STATE_READY) -2037:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** { -2038:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** if ((pData == NULL) || (Size == 0U)) -2039:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** { -2040:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** return HAL_ERROR; -2041:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** } -2042:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** -2043:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** if (__HAL_I2C_GET_FLAG(hi2c, I2C_FLAG_BUSY) == SET) -2044:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** { -2045:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** return HAL_BUSY; -2046:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** } -2047:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** -2048:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** /* Process Locked */ -2049:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** __HAL_LOCK(hi2c); -2050:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** -2051:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** /* Init tickstart for timeout management*/ -2052:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** tickstart = HAL_GetTick(); -2053:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** -2054:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** hi2c->State = HAL_I2C_STATE_BUSY_TX; -2055:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** hi2c->Mode = HAL_I2C_MODE_MEM; -2056:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** hi2c->ErrorCode = HAL_I2C_ERROR_NONE; -2057:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** -2058:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** /* Prepare transfer parameters */ -2059:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** hi2c->pBuffPtr = pData; -2060:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** hi2c->XferCount = Size; -2061:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** hi2c->XferOptions = I2C_NO_OPTION_FRAME; -2062:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** hi2c->XferISR = I2C_Master_ISR_IT; -2063:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** -2064:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** if (hi2c->XferCount > MAX_NBYTE_SIZE) -2065:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** { -2066:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** hi2c->XferSize = MAX_NBYTE_SIZE; -2067:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** xfermode = I2C_RELOAD_MODE; -2068:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** } -2069:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** else -2070:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** { -2071:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** hi2c->XferSize = hi2c->XferCount; -2072:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** xfermode = I2C_AUTOEND_MODE; -2073:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** } -2074:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** -2075:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** /* Send Slave Address and Memory Address */ -2076:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** if (I2C_RequestMemoryWrite(hi2c, DevAddress, MemAddress, MemAddSize, I2C_TIMEOUT_FLAG, tickstar -2077:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** { -2078:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** if (hi2c->ErrorCode == HAL_I2C_ERROR_AF) -2079:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** { -2080:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** /* Process Unlocked */ -2081:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** __HAL_UNLOCK(hi2c); -2082:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** return HAL_ERROR; -2083:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** } -2084:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** else -2085:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** { -2086:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** /* Process Unlocked */ - ARM GAS /tmp/ccTaFl06.s page 38 - - -2087:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** __HAL_UNLOCK(hi2c); -2088:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** return HAL_TIMEOUT; -2089:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** } -2090:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** } -2091:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** -2092:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** /* Set NBYTES to write and reload if hi2c->XferCount > MAX_NBYTE_SIZE and generate RESTART */ -2093:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** I2C_TransferConfig(hi2c, DevAddress, hi2c->XferSize, xfermode, I2C_NO_STARTSTOP); -2094:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** -2095:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** /* Process Unlocked */ -2096:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** __HAL_UNLOCK(hi2c); -2097:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** -2098:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** /* Note : The I2C interrupts must be enabled after unlocking current process -2099:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** to avoid the risk of I2C interrupt handle execution before current -2100:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** process unlock */ -2101:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** -2102:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** /* Enable ERR, TC, STOP, NACK, TXI interrupt */ -2103:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** /* possible to enable all of these */ -2104:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** /* I2C_IT_ERRI | I2C_IT_TCI| I2C_IT_STOPI| I2C_IT_NACKI | I2C_IT_ADDRI | I2C_IT_RXI | I2C_IT_TX -2105:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** I2C_Enable_IRQ(hi2c, I2C_XFER_TX_IT); -2106:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** -2107:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** return HAL_OK; -2108:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** } -2109:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** else -2110:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** { -2111:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** return HAL_BUSY; -2112:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** } -2113:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** } -2114:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** -2115:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** /** -2116:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** * @brief Read an amount of data in non-blocking mode with Interrupt from a specific memory addre -2117:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** * @param hi2c Pointer to a I2C_HandleTypeDef structure that contains -2118:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** * the configuration information for the specified I2C. -2119:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** * @param DevAddress Target device address: The device 7 bits address value -2120:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** * in datasheet must be shift at right before call interface -2121:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** * @param MemAddress Internal memory address -2122:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** * @param MemAddSize Size of internal memory address -2123:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** * @param pData Pointer to data buffer -2124:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** * @param Size Amount of data to be sent -2125:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** * @retval HAL status -2126:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** */ -2127:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** HAL_StatusTypeDef HAL_I2C_Mem_Read_IT(I2C_HandleTypeDef *hi2c, uint16_t DevAddress, uint16_t MemAdd -2128:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** { -2129:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** uint32_t tickstart = 0U; -2130:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** uint32_t xfermode = 0U; -2131:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** -2132:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** /* Check the parameters */ -2133:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** assert_param(IS_I2C_MEMADD_SIZE(MemAddSize)); -2134:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** -2135:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** if (hi2c->State == HAL_I2C_STATE_READY) -2136:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** { -2137:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** if ((pData == NULL) || (Size == 0U)) -2138:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** { -2139:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** return HAL_ERROR; -2140:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** } -2141:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** -2142:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** if (__HAL_I2C_GET_FLAG(hi2c, I2C_FLAG_BUSY) == SET) -2143:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** { - ARM GAS /tmp/ccTaFl06.s page 39 - - -2144:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** return HAL_BUSY; -2145:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** } -2146:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** -2147:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** /* Process Locked */ -2148:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** __HAL_LOCK(hi2c); -2149:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** -2150:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** /* Init tickstart for timeout management*/ -2151:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** tickstart = HAL_GetTick(); -2152:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** -2153:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** hi2c->State = HAL_I2C_STATE_BUSY_RX; -2154:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** hi2c->Mode = HAL_I2C_MODE_MEM; -2155:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** hi2c->ErrorCode = HAL_I2C_ERROR_NONE; -2156:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** -2157:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** /* Prepare transfer parameters */ -2158:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** hi2c->pBuffPtr = pData; -2159:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** hi2c->XferCount = Size; -2160:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** hi2c->XferOptions = I2C_NO_OPTION_FRAME; -2161:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** hi2c->XferISR = I2C_Master_ISR_IT; -2162:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** -2163:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** if (hi2c->XferCount > MAX_NBYTE_SIZE) -2164:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** { -2165:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** hi2c->XferSize = MAX_NBYTE_SIZE; -2166:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** xfermode = I2C_RELOAD_MODE; -2167:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** } -2168:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** else -2169:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** { -2170:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** hi2c->XferSize = hi2c->XferCount; -2171:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** xfermode = I2C_AUTOEND_MODE; -2172:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** } -2173:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** -2174:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** /* Send Slave Address and Memory Address */ -2175:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** if (I2C_RequestMemoryRead(hi2c, DevAddress, MemAddress, MemAddSize, I2C_TIMEOUT_FLAG, tickstart -2176:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** { -2177:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** if (hi2c->ErrorCode == HAL_I2C_ERROR_AF) -2178:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** { -2179:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** /* Process Unlocked */ -2180:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** __HAL_UNLOCK(hi2c); -2181:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** return HAL_ERROR; -2182:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** } -2183:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** else -2184:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** { -2185:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** /* Process Unlocked */ -2186:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** __HAL_UNLOCK(hi2c); -2187:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** return HAL_TIMEOUT; -2188:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** } -2189:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** } -2190:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** -2191:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** /* Set NBYTES to write and reload if hi2c->XferCount > MAX_NBYTE_SIZE and generate RESTART */ -2192:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** I2C_TransferConfig(hi2c, DevAddress, hi2c->XferSize, xfermode, I2C_GENERATE_START_READ); -2193:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** -2194:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** /* Process Unlocked */ -2195:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** __HAL_UNLOCK(hi2c); -2196:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** -2197:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** /* Note : The I2C interrupts must be enabled after unlocking current process -2198:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** to avoid the risk of I2C interrupt handle execution before current -2199:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** process unlock */ -2200:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** - ARM GAS /tmp/ccTaFl06.s page 40 - - -2201:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** /* Enable ERR, TC, STOP, NACK, RXI interrupt */ -2202:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** /* possible to enable all of these */ -2203:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** /* I2C_IT_ERRI | I2C_IT_TCI| I2C_IT_STOPI| I2C_IT_NACKI | I2C_IT_ADDRI | I2C_IT_RXI | I2C_IT_TX -2204:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** I2C_Enable_IRQ(hi2c, I2C_XFER_RX_IT); -2205:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** -2206:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** return HAL_OK; -2207:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** } -2208:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** else -2209:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** { -2210:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** return HAL_BUSY; -2211:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** } -2212:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** } -2213:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** /** -2214:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** * @brief Write an amount of data in non-blocking mode with DMA to a specific memory address -2215:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** * @param hi2c Pointer to a I2C_HandleTypeDef structure that contains -2216:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** * the configuration information for the specified I2C. -2217:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** * @param DevAddress Target device address: The device 7 bits address value -2218:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** * in datasheet must be shift at right before call interface -2219:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** * @param MemAddress Internal memory address -2220:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** * @param MemAddSize Size of internal memory address -2221:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** * @param pData Pointer to data buffer -2222:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** * @param Size Amount of data to be sent -2223:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** * @retval HAL status -2224:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** */ -2225:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** HAL_StatusTypeDef HAL_I2C_Mem_Write_DMA(I2C_HandleTypeDef *hi2c, uint16_t DevAddress, uint16_t MemA -2226:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** { -2227:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** uint32_t tickstart = 0U; -2228:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** uint32_t xfermode = 0U; -2229:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** -2230:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** /* Check the parameters */ -2231:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** assert_param(IS_I2C_MEMADD_SIZE(MemAddSize)); -2232:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** -2233:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** if (hi2c->State == HAL_I2C_STATE_READY) -2234:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** { -2235:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** if ((pData == NULL) || (Size == 0U)) -2236:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** { -2237:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** return HAL_ERROR; -2238:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** } -2239:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** -2240:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** if (__HAL_I2C_GET_FLAG(hi2c, I2C_FLAG_BUSY) == SET) -2241:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** { -2242:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** return HAL_BUSY; -2243:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** } -2244:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** -2245:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** /* Process Locked */ -2246:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** __HAL_LOCK(hi2c); -2247:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** -2248:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** /* Init tickstart for timeout management*/ -2249:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** tickstart = HAL_GetTick(); -2250:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** -2251:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** hi2c->State = HAL_I2C_STATE_BUSY_TX; -2252:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** hi2c->Mode = HAL_I2C_MODE_MEM; -2253:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** hi2c->ErrorCode = HAL_I2C_ERROR_NONE; -2254:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** -2255:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** /* Prepare transfer parameters */ -2256:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** hi2c->pBuffPtr = pData; -2257:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** hi2c->XferCount = Size; - ARM GAS /tmp/ccTaFl06.s page 41 - - -2258:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** hi2c->XferOptions = I2C_NO_OPTION_FRAME; -2259:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** hi2c->XferISR = I2C_Master_ISR_DMA; -2260:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** -2261:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** if (hi2c->XferCount > MAX_NBYTE_SIZE) -2262:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** { -2263:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** hi2c->XferSize = MAX_NBYTE_SIZE; -2264:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** xfermode = I2C_RELOAD_MODE; -2265:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** } -2266:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** else -2267:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** { -2268:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** hi2c->XferSize = hi2c->XferCount; -2269:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** xfermode = I2C_AUTOEND_MODE; -2270:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** } -2271:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** -2272:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** /* Send Slave Address and Memory Address */ -2273:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** if (I2C_RequestMemoryWrite(hi2c, DevAddress, MemAddress, MemAddSize, I2C_TIMEOUT_FLAG, tickstar -2274:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** { -2275:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** if (hi2c->ErrorCode == HAL_I2C_ERROR_AF) -2276:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** { -2277:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** /* Process Unlocked */ -2278:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** __HAL_UNLOCK(hi2c); -2279:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** return HAL_ERROR; -2280:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** } -2281:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** else -2282:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** { -2283:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** /* Process Unlocked */ -2284:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** __HAL_UNLOCK(hi2c); -2285:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** return HAL_TIMEOUT; -2286:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** } -2287:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** } -2288:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** -2289:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** /* Set the I2C DMA transfer complete callback */ -2290:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** hi2c->hdmatx->XferCpltCallback = I2C_DMAMasterTransmitCplt; -2291:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** -2292:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** /* Set the DMA error callback */ -2293:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** hi2c->hdmatx->XferErrorCallback = I2C_DMAError; -2294:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** -2295:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** /* Set the unused DMA callbacks to NULL */ -2296:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** hi2c->hdmatx->XferHalfCpltCallback = NULL; -2297:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** hi2c->hdmatx->XferAbortCallback = NULL; -2298:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** -2299:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** /* Enable the DMA channel */ -2300:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** HAL_DMA_Start_IT(hi2c->hdmatx, (uint32_t)pData, (uint32_t)&hi2c->Instance->TXDR, hi2c->XferSize -2301:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** -2302:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** /* Send Slave Address */ -2303:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** /* Set NBYTES to write and reload if hi2c->XferCount > MAX_NBYTE_SIZE and generate RESTART */ -2304:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** I2C_TransferConfig(hi2c, DevAddress, hi2c->XferSize, xfermode, I2C_NO_STARTSTOP); -2305:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** -2306:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** /* Update XferCount value */ -2307:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** hi2c->XferCount -= hi2c->XferSize; -2308:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** -2309:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** /* Process Unlocked */ -2310:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** __HAL_UNLOCK(hi2c); -2311:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** -2312:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** /* Note : The I2C interrupts must be enabled after unlocking current process -2313:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** to avoid the risk of I2C interrupt handle execution before current -2314:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** process unlock */ - ARM GAS /tmp/ccTaFl06.s page 42 - - -2315:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** /* Enable ERR and NACK interrupts */ -2316:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** I2C_Enable_IRQ(hi2c, I2C_XFER_ERROR_IT); -2317:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** -2318:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** /* Enable DMA Request */ -2319:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** hi2c->Instance->CR1 |= I2C_CR1_TXDMAEN; -2320:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** -2321:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** return HAL_OK; -2322:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** } -2323:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** else -2324:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** { -2325:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** return HAL_BUSY; -2326:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** } -2327:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** } -2328:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** -2329:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** /** -2330:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** * @brief Reads an amount of data in non-blocking mode with DMA from a specific memory address. -2331:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** * @param hi2c Pointer to a I2C_HandleTypeDef structure that contains -2332:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** * the configuration information for the specified I2C. -2333:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** * @param DevAddress Target device address: The device 7 bits address value -2334:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** * in datasheet must be shift at right before call interface -2335:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** * @param MemAddress Internal memory address -2336:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** * @param MemAddSize Size of internal memory address -2337:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** * @param pData Pointer to data buffer -2338:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** * @param Size Amount of data to be read -2339:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** * @retval HAL status -2340:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** */ -2341:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** HAL_StatusTypeDef HAL_I2C_Mem_Read_DMA(I2C_HandleTypeDef *hi2c, uint16_t DevAddress, uint16_t MemAd -2342:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** { -2343:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** uint32_t tickstart = 0U; -2344:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** uint32_t xfermode = 0U; -2345:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** -2346:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** /* Check the parameters */ -2347:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** assert_param(IS_I2C_MEMADD_SIZE(MemAddSize)); -2348:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** -2349:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** if (hi2c->State == HAL_I2C_STATE_READY) -2350:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** { -2351:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** if ((pData == NULL) || (Size == 0U)) -2352:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** { -2353:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** return HAL_ERROR; -2354:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** } -2355:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** -2356:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** if (__HAL_I2C_GET_FLAG(hi2c, I2C_FLAG_BUSY) == SET) -2357:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** { -2358:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** return HAL_BUSY; -2359:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** } -2360:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** -2361:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** /* Process Locked */ -2362:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** __HAL_LOCK(hi2c); -2363:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** -2364:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** /* Init tickstart for timeout management*/ -2365:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** tickstart = HAL_GetTick(); -2366:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** -2367:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** hi2c->State = HAL_I2C_STATE_BUSY_RX; -2368:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** hi2c->Mode = HAL_I2C_MODE_MEM; -2369:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** hi2c->ErrorCode = HAL_I2C_ERROR_NONE; -2370:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** -2371:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** /* Prepare transfer parameters */ - ARM GAS /tmp/ccTaFl06.s page 43 - - -2372:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** hi2c->pBuffPtr = pData; -2373:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** hi2c->XferCount = Size; -2374:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** hi2c->XferOptions = I2C_NO_OPTION_FRAME; -2375:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** hi2c->XferISR = I2C_Master_ISR_DMA; -2376:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** -2377:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** if (hi2c->XferCount > MAX_NBYTE_SIZE) -2378:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** { -2379:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** hi2c->XferSize = MAX_NBYTE_SIZE; -2380:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** xfermode = I2C_RELOAD_MODE; -2381:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** } -2382:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** else -2383:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** { -2384:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** hi2c->XferSize = hi2c->XferCount; -2385:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** xfermode = I2C_AUTOEND_MODE; -2386:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** } -2387:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** -2388:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** /* Send Slave Address and Memory Address */ -2389:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** if (I2C_RequestMemoryRead(hi2c, DevAddress, MemAddress, MemAddSize, I2C_TIMEOUT_FLAG, tickstart -2390:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** { -2391:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** if (hi2c->ErrorCode == HAL_I2C_ERROR_AF) -2392:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** { -2393:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** /* Process Unlocked */ -2394:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** __HAL_UNLOCK(hi2c); -2395:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** return HAL_ERROR; -2396:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** } -2397:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** else -2398:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** { -2399:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** /* Process Unlocked */ -2400:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** __HAL_UNLOCK(hi2c); -2401:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** return HAL_TIMEOUT; -2402:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** } -2403:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** } -2404:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** -2405:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** /* Set the I2C DMA transfer complete callback */ -2406:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** hi2c->hdmarx->XferCpltCallback = I2C_DMAMasterReceiveCplt; -2407:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** -2408:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** /* Set the DMA error callback */ -2409:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** hi2c->hdmarx->XferErrorCallback = I2C_DMAError; -2410:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** -2411:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** /* Set the unused DMA callbacks to NULL */ -2412:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** hi2c->hdmarx->XferHalfCpltCallback = NULL; -2413:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** hi2c->hdmarx->XferAbortCallback = NULL; -2414:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** -2415:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** /* Enable the DMA channel */ -2416:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** HAL_DMA_Start_IT(hi2c->hdmarx, (uint32_t)&hi2c->Instance->RXDR, (uint32_t)pData, hi2c->XferSize -2417:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** -2418:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** /* Set NBYTES to write and reload if hi2c->XferCount > MAX_NBYTE_SIZE and generate RESTART */ -2419:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** I2C_TransferConfig(hi2c, DevAddress, hi2c->XferSize, xfermode, I2C_GENERATE_START_READ); -2420:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** -2421:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** /* Update XferCount value */ -2422:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** hi2c->XferCount -= hi2c->XferSize; -2423:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** -2424:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** /* Process Unlocked */ -2425:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** __HAL_UNLOCK(hi2c); -2426:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** -2427:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** /* Enable DMA Request */ -2428:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** hi2c->Instance->CR1 |= I2C_CR1_RXDMAEN; - ARM GAS /tmp/ccTaFl06.s page 44 - - -2429:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** -2430:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** /* Note : The I2C interrupts must be enabled after unlocking current process -2431:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** to avoid the risk of I2C interrupt handle execution before current -2432:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** process unlock */ -2433:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** /* Enable ERR and NACK interrupts */ -2434:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** I2C_Enable_IRQ(hi2c, I2C_XFER_ERROR_IT); -2435:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** -2436:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** return HAL_OK; -2437:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** } -2438:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** else -2439:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** { -2440:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** return HAL_BUSY; -2441:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** } -2442:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** } -2443:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** -2444:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** /** -2445:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** * @brief Checks if target device is ready for communication. -2446:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** * @note This function is used with Memory devices -2447:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** * @param hi2c Pointer to a I2C_HandleTypeDef structure that contains -2448:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** * the configuration information for the specified I2C. -2449:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** * @param DevAddress Target device address: The device 7 bits address value -2450:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** * in datasheet must be shift at right before call interface -2451:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** * @param Trials Number of trials -2452:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** * @param Timeout Timeout duration -2453:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** * @retval HAL status -2454:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** */ -2455:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** HAL_StatusTypeDef HAL_I2C_IsDeviceReady(I2C_HandleTypeDef *hi2c, uint16_t DevAddress, uint32_t Tria -2456:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** { -2457:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** uint32_t tickstart = 0U; -2458:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** -2459:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** __IO uint32_t I2C_Trials = 0U; -2460:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** -2461:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** if (hi2c->State == HAL_I2C_STATE_READY) -2462:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** { -2463:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** if (__HAL_I2C_GET_FLAG(hi2c, I2C_FLAG_BUSY) == SET) -2464:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** { -2465:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** return HAL_BUSY; -2466:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** } -2467:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** -2468:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** /* Process Locked */ -2469:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** __HAL_LOCK(hi2c); -2470:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** -2471:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** hi2c->State = HAL_I2C_STATE_BUSY; -2472:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** hi2c->ErrorCode = HAL_I2C_ERROR_NONE; -2473:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** -2474:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** do -2475:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** { -2476:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** /* Generate Start */ -2477:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** hi2c->Instance->CR2 = I2C_GENERATE_START(hi2c->Init.AddressingMode, DevAddress); -2478:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** -2479:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** /* No need to Check TC flag, with AUTOEND mode the stop is automatically generated */ -2480:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** /* Wait until STOPF flag is set or a NACK flag is set*/ -2481:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** tickstart = HAL_GetTick(); -2482:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** while ((__HAL_I2C_GET_FLAG(hi2c, I2C_FLAG_STOPF) == RESET) && (__HAL_I2C_GET_FLAG(hi2c, I2C_F -2483:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** { -2484:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** if (Timeout != HAL_MAX_DELAY) -2485:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** { - ARM GAS /tmp/ccTaFl06.s page 45 - - -2486:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** if ((Timeout == 0U) || ((HAL_GetTick() - tickstart) > Timeout)) -2487:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** { -2488:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** /* Device is ready */ -2489:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** hi2c->State = HAL_I2C_STATE_READY; -2490:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** /* Process Unlocked */ -2491:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** __HAL_UNLOCK(hi2c); -2492:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** return HAL_TIMEOUT; -2493:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** } -2494:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** } -2495:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** } -2496:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** -2497:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** /* Check if the NACKF flag has not been set */ -2498:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** if (__HAL_I2C_GET_FLAG(hi2c, I2C_FLAG_AF) == RESET) -2499:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** { -2500:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** /* Wait until STOPF flag is reset */ -2501:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** if (I2C_WaitOnFlagUntilTimeout(hi2c, I2C_FLAG_STOPF, RESET, Timeout, tickstart) != HAL_OK) -2502:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** { -2503:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** return HAL_TIMEOUT; -2504:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** } -2505:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** -2506:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** /* Clear STOP Flag */ -2507:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** __HAL_I2C_CLEAR_FLAG(hi2c, I2C_FLAG_STOPF); -2508:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** -2509:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** /* Device is ready */ -2510:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** hi2c->State = HAL_I2C_STATE_READY; -2511:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** -2512:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** /* Process Unlocked */ -2513:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** __HAL_UNLOCK(hi2c); -2514:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** -2515:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** return HAL_OK; -2516:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** } -2517:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** else -2518:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** { -2519:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** /* Wait until STOPF flag is reset */ -2520:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** if (I2C_WaitOnFlagUntilTimeout(hi2c, I2C_FLAG_STOPF, RESET, Timeout, tickstart) != HAL_OK) -2521:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** { -2522:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** return HAL_TIMEOUT; -2523:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** } -2524:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** -2525:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** /* Clear NACK Flag */ -2526:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** __HAL_I2C_CLEAR_FLAG(hi2c, I2C_FLAG_AF); -2527:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** -2528:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** /* Clear STOP Flag, auto generated with autoend*/ -2529:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** __HAL_I2C_CLEAR_FLAG(hi2c, I2C_FLAG_STOPF); -2530:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** } -2531:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** -2532:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** /* Check if the maximum allowed number of trials has been reached */ -2533:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** if (I2C_Trials++ == Trials) -2534:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** { -2535:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** /* Generate Stop */ -2536:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** hi2c->Instance->CR2 |= I2C_CR2_STOP; -2537:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** -2538:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** /* Wait until STOPF flag is reset */ -2539:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** if (I2C_WaitOnFlagUntilTimeout(hi2c, I2C_FLAG_STOPF, RESET, Timeout, tickstart) != HAL_OK) -2540:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** { -2541:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** return HAL_TIMEOUT; -2542:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** } - ARM GAS /tmp/ccTaFl06.s page 46 - - -2543:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** -2544:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** /* Clear STOP Flag */ -2545:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** __HAL_I2C_CLEAR_FLAG(hi2c, I2C_FLAG_STOPF); -2546:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** } -2547:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** } -2548:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** while (I2C_Trials < Trials); -2549:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** -2550:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** hi2c->State = HAL_I2C_STATE_READY; -2551:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** -2552:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** /* Process Unlocked */ -2553:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** __HAL_UNLOCK(hi2c); -2554:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** -2555:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** return HAL_TIMEOUT; -2556:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** } -2557:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** else -2558:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** { -2559:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** return HAL_BUSY; -2560:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** } -2561:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** } -2562:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** -2563:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** /** -2564:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** * @brief Sequential transmit in master I2C mode an amount of data in non-blocking mode with Inte -2565:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** * @note This interface allow to manage repeated start condition when a direction change during -2566:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** * @param hi2c Pointer to a I2C_HandleTypeDef structure that contains -2567:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** * the configuration information for the specified I2C. -2568:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** * @param DevAddress Target device address: The device 7 bits address value -2569:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** * in datasheet must be shift at right before call interface -2570:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** * @param pData Pointer to data buffer -2571:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** * @param Size Amount of data to be sent -2572:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** * @param XferOptions Options of Transfer, value of @ref I2C_XFEROPTIONS -2573:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** * @retval HAL status -2574:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** */ -2575:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** HAL_StatusTypeDef HAL_I2C_Master_Sequential_Transmit_IT(I2C_HandleTypeDef *hi2c, uint16_t DevAddres -2576:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** { -2577:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** uint32_t xfermode = 0U; -2578:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** uint32_t xferrequest = I2C_GENERATE_START_WRITE; -2579:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** -2580:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** /* Check the parameters */ -2581:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** assert_param(IS_I2C_TRANSFER_OPTIONS_REQUEST(XferOptions)); -2582:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** -2583:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** if (hi2c->State == HAL_I2C_STATE_READY) -2584:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** { -2585:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** /* Process Locked */ -2586:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** __HAL_LOCK(hi2c); -2587:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** -2588:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** hi2c->State = HAL_I2C_STATE_BUSY_TX; -2589:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** hi2c->Mode = HAL_I2C_MODE_MASTER; -2590:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** hi2c->ErrorCode = HAL_I2C_ERROR_NONE; -2591:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** -2592:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** /* Prepare transfer parameters */ -2593:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** hi2c->pBuffPtr = pData; -2594:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** hi2c->XferCount = Size; -2595:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** hi2c->XferOptions = XferOptions; -2596:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** hi2c->XferISR = I2C_Master_ISR_IT; -2597:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** -2598:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** /* If size > MAX_NBYTE_SIZE, use reload mode */ -2599:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** if (hi2c->XferCount > MAX_NBYTE_SIZE) - ARM GAS /tmp/ccTaFl06.s page 47 - - -2600:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** { -2601:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** hi2c->XferSize = MAX_NBYTE_SIZE; -2602:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** xfermode = I2C_RELOAD_MODE; -2603:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** } -2604:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** else -2605:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** { -2606:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** hi2c->XferSize = hi2c->XferCount; -2607:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** xfermode = hi2c->XferOptions; -2608:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** } -2609:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** -2610:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** /* If transfer direction not change, do not generate Restart Condition */ -2611:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** /* Mean Previous state is same as current state */ -2612:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** if (hi2c->PreviousState == I2C_STATE_MASTER_BUSY_TX) -2613:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** { -2614:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** xferrequest = I2C_NO_STARTSTOP; -2615:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** } -2616:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** -2617:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** /* Send Slave Address and set NBYTES to write */ -2618:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** I2C_TransferConfig(hi2c, DevAddress, hi2c->XferSize, xfermode, xferrequest); -2619:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** -2620:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** /* Process Unlocked */ -2621:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** __HAL_UNLOCK(hi2c); -2622:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** -2623:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** /* Note : The I2C interrupts must be enabled after unlocking current process -2624:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** to avoid the risk of I2C interrupt handle execution before current -2625:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** process unlock */ -2626:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** I2C_Enable_IRQ(hi2c, I2C_XFER_TX_IT); -2627:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** -2628:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** return HAL_OK; -2629:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** } -2630:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** else -2631:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** { -2632:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** return HAL_BUSY; -2633:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** } -2634:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** } -2635:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** -2636:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** /** -2637:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** * @brief Sequential receive in master I2C mode an amount of data in non-blocking mode with Inter -2638:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** * @note This interface allow to manage repeated start condition when a direction change during -2639:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** * @param hi2c Pointer to a I2C_HandleTypeDef structure that contains -2640:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** * the configuration information for the specified I2C. -2641:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** * @param DevAddress Target device address: The device 7 bits address value -2642:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** * in datasheet must be shift at right before call interface -2643:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** * @param pData Pointer to data buffer -2644:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** * @param Size Amount of data to be sent -2645:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** * @param XferOptions Options of Transfer, value of @ref I2C_XFEROPTIONS -2646:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** * @retval HAL status -2647:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** */ -2648:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** HAL_StatusTypeDef HAL_I2C_Master_Sequential_Receive_IT(I2C_HandleTypeDef *hi2c, uint16_t DevAddress -2649:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** { -2650:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** uint32_t xfermode = 0U; -2651:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** uint32_t xferrequest = I2C_GENERATE_START_READ; -2652:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** -2653:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** /* Check the parameters */ -2654:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** assert_param(IS_I2C_TRANSFER_OPTIONS_REQUEST(XferOptions)); -2655:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** -2656:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** if (hi2c->State == HAL_I2C_STATE_READY) - ARM GAS /tmp/ccTaFl06.s page 48 - - -2657:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** { -2658:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** /* Process Locked */ -2659:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** __HAL_LOCK(hi2c); -2660:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** -2661:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** hi2c->State = HAL_I2C_STATE_BUSY_RX; -2662:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** hi2c->Mode = HAL_I2C_MODE_MASTER; -2663:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** hi2c->ErrorCode = HAL_I2C_ERROR_NONE; -2664:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** -2665:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** /* Prepare transfer parameters */ -2666:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** hi2c->pBuffPtr = pData; -2667:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** hi2c->XferCount = Size; -2668:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** hi2c->XferOptions = XferOptions; -2669:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** hi2c->XferISR = I2C_Master_ISR_IT; -2670:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** -2671:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** /* If hi2c->XferCount > MAX_NBYTE_SIZE, use reload mode */ -2672:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** if (hi2c->XferCount > MAX_NBYTE_SIZE) -2673:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** { -2674:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** hi2c->XferSize = MAX_NBYTE_SIZE; -2675:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** xfermode = I2C_RELOAD_MODE; -2676:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** } -2677:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** else -2678:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** { -2679:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** hi2c->XferSize = hi2c->XferCount; -2680:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** xfermode = hi2c->XferOptions; -2681:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** } -2682:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** -2683:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** /* If transfer direction not change, do not generate Restart Condition */ -2684:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** /* Mean Previous state is same as current state */ -2685:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** if (hi2c->PreviousState == I2C_STATE_MASTER_BUSY_RX) -2686:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** { -2687:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** xferrequest = I2C_NO_STARTSTOP; -2688:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** } -2689:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** -2690:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** /* Send Slave Address and set NBYTES to read */ -2691:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** I2C_TransferConfig(hi2c, DevAddress, hi2c->XferSize, xfermode, xferrequest); -2692:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** -2693:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** /* Process Unlocked */ -2694:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** __HAL_UNLOCK(hi2c); -2695:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** -2696:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** /* Note : The I2C interrupts must be enabled after unlocking current process -2697:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** to avoid the risk of I2C interrupt handle execution before current -2698:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** process unlock */ -2699:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** I2C_Enable_IRQ(hi2c, I2C_XFER_RX_IT); -2700:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** -2701:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** return HAL_OK; -2702:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** } -2703:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** else -2704:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** { -2705:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** return HAL_BUSY; -2706:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** } -2707:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** } -2708:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** -2709:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** /** -2710:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** * @brief Sequential transmit in slave/device I2C mode an amount of data in non-blocking mode wit -2711:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** * @note This interface allow to manage repeated start condition when a direction change during -2712:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** * @param hi2c Pointer to a I2C_HandleTypeDef structure that contains -2713:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** * the configuration information for the specified I2C. - ARM GAS /tmp/ccTaFl06.s page 49 - - -2714:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** * @param pData Pointer to data buffer -2715:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** * @param Size Amount of data to be sent -2716:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** * @param XferOptions Options of Transfer, value of @ref I2C_XFEROPTIONS -2717:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** * @retval HAL status -2718:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** */ -2719:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** HAL_StatusTypeDef HAL_I2C_Slave_Sequential_Transmit_IT(I2C_HandleTypeDef *hi2c, uint8_t *pData, uin -2720:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** { -2721:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** /* Check the parameters */ -2722:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** assert_param(IS_I2C_TRANSFER_OPTIONS_REQUEST(XferOptions)); -2723:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** -2724:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** if ((hi2c->State & HAL_I2C_STATE_LISTEN) == HAL_I2C_STATE_LISTEN) -2725:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** { -2726:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** if ((pData == NULL) || (Size == 0U)) -2727:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** { -2728:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** return HAL_ERROR; -2729:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** } -2730:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** -2731:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** /* Disable Interrupts, to prevent preemption during treatment in case of multicall */ -2732:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** I2C_Disable_IRQ(hi2c, I2C_XFER_LISTEN_IT | I2C_XFER_TX_IT); -2733:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** -2734:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** /* Process Locked */ -2735:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** __HAL_LOCK(hi2c); -2736:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** -2737:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** /* I2C cannot manage full duplex exchange so disable previous IT enabled if any */ -2738:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** /* and then toggle the HAL slave RX state to TX state */ -2739:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** if (hi2c->State == HAL_I2C_STATE_BUSY_RX_LISTEN) -2740:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** { -2741:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** /* Disable associated Interrupts */ -2742:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** I2C_Disable_IRQ(hi2c, I2C_XFER_RX_IT); -2743:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** } -2744:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** -2745:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** hi2c->State = HAL_I2C_STATE_BUSY_TX_LISTEN; -2746:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** hi2c->Mode = HAL_I2C_MODE_SLAVE; -2747:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** hi2c->ErrorCode = HAL_I2C_ERROR_NONE; -2748:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** -2749:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** /* Enable Address Acknowledge */ -2750:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** hi2c->Instance->CR2 &= ~I2C_CR2_NACK; -2751:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** -2752:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** /* Prepare transfer parameters */ -2753:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** hi2c->pBuffPtr = pData; -2754:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** hi2c->XferCount = Size; -2755:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** hi2c->XferSize = hi2c->XferCount; -2756:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** hi2c->XferOptions = XferOptions; -2757:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** hi2c->XferISR = I2C_Slave_ISR_IT; -2758:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** -2759:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** if (I2C_GET_DIR(hi2c) == I2C_DIRECTION_RECEIVE) -2760:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** { -2761:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** /* Clear ADDR flag after prepare the transfer parameters */ -2762:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** /* This action will generate an acknowledge to the Master */ -2763:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** __HAL_I2C_CLEAR_FLAG(hi2c, I2C_FLAG_ADDR); -2764:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** } -2765:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** -2766:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** /* Process Unlocked */ -2767:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** __HAL_UNLOCK(hi2c); -2768:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** -2769:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** /* Note : The I2C interrupts must be enabled after unlocking current process -2770:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** to avoid the risk of I2C interrupt handle execution before current - ARM GAS /tmp/ccTaFl06.s page 50 - - -2771:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** process unlock */ -2772:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** /* REnable ADDR interrupt */ -2773:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** I2C_Enable_IRQ(hi2c, I2C_XFER_TX_IT | I2C_XFER_LISTEN_IT); -2774:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** -2775:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** return HAL_OK; -2776:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** } -2777:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** else -2778:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** { -2779:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** return HAL_ERROR; -2780:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** } -2781:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** } -2782:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** -2783:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** /** -2784:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** * @brief Sequential receive in slave/device I2C mode an amount of data in non-blocking mode with -2785:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** * @note This interface allow to manage repeated start condition when a direction change during -2786:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** * @param hi2c Pointer to a I2C_HandleTypeDef structure that contains -2787:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** * the configuration information for the specified I2C. -2788:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** * @param pData Pointer to data buffer -2789:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** * @param Size Amount of data to be sent -2790:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** * @param XferOptions Options of Transfer, value of @ref I2C_XFEROPTIONS -2791:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** * @retval HAL status -2792:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** */ -2793:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** HAL_StatusTypeDef HAL_I2C_Slave_Sequential_Receive_IT(I2C_HandleTypeDef *hi2c, uint8_t *pData, uint -2794:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** { -2795:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** /* Check the parameters */ -2796:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** assert_param(IS_I2C_TRANSFER_OPTIONS_REQUEST(XferOptions)); -2797:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** -2798:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** if ((hi2c->State & HAL_I2C_STATE_LISTEN) == HAL_I2C_STATE_LISTEN) -2799:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** { -2800:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** if ((pData == NULL) || (Size == 0U)) -2801:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** { -2802:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** return HAL_ERROR; -2803:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** } -2804:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** -2805:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** /* Disable Interrupts, to prevent preemption during treatment in case of multicall */ -2806:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** I2C_Disable_IRQ(hi2c, I2C_XFER_LISTEN_IT | I2C_XFER_RX_IT); -2807:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** -2808:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** /* Process Locked */ -2809:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** __HAL_LOCK(hi2c); -2810:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** -2811:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** /* I2C cannot manage full duplex exchange so disable previous IT enabled if any */ -2812:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** /* and then toggle the HAL slave TX state to RX state */ -2813:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** if (hi2c->State == HAL_I2C_STATE_BUSY_TX_LISTEN) -2814:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** { -2815:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** /* Disable associated Interrupts */ -2816:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** I2C_Disable_IRQ(hi2c, I2C_XFER_TX_IT); -2817:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** } -2818:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** -2819:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** hi2c->State = HAL_I2C_STATE_BUSY_RX_LISTEN; -2820:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** hi2c->Mode = HAL_I2C_MODE_SLAVE; -2821:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** hi2c->ErrorCode = HAL_I2C_ERROR_NONE; -2822:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** -2823:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** /* Enable Address Acknowledge */ -2824:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** hi2c->Instance->CR2 &= ~I2C_CR2_NACK; -2825:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** -2826:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** /* Prepare transfer parameters */ -2827:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** hi2c->pBuffPtr = pData; - ARM GAS /tmp/ccTaFl06.s page 51 - - -2828:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** hi2c->XferCount = Size; -2829:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** hi2c->XferSize = hi2c->XferCount; -2830:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** hi2c->XferOptions = XferOptions; -2831:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** hi2c->XferISR = I2C_Slave_ISR_IT; -2832:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** -2833:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** if (I2C_GET_DIR(hi2c) == I2C_DIRECTION_TRANSMIT) -2834:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** { -2835:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** /* Clear ADDR flag after prepare the transfer parameters */ -2836:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** /* This action will generate an acknowledge to the Master */ -2837:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** __HAL_I2C_CLEAR_FLAG(hi2c, I2C_FLAG_ADDR); -2838:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** } -2839:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** -2840:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** /* Process Unlocked */ -2841:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** __HAL_UNLOCK(hi2c); -2842:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** -2843:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** /* Note : The I2C interrupts must be enabled after unlocking current process -2844:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** to avoid the risk of I2C interrupt handle execution before current -2845:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** process unlock */ -2846:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** /* REnable ADDR interrupt */ -2847:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** I2C_Enable_IRQ(hi2c, I2C_XFER_RX_IT | I2C_XFER_LISTEN_IT); -2848:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** -2849:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** return HAL_OK; -2850:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** } -2851:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** else -2852:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** { -2853:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** return HAL_ERROR; -2854:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** } -2855:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** } -2856:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** -2857:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** /** -2858:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** * @brief Enable the Address listen mode with Interrupt. -2859:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** * @param hi2c Pointer to a I2C_HandleTypeDef structure that contains -2860:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** * the configuration information for the specified I2C. -2861:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** * @retval HAL status -2862:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** */ -2863:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** HAL_StatusTypeDef HAL_I2C_EnableListen_IT(I2C_HandleTypeDef *hi2c) -2864:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** { -2865:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** if (hi2c->State == HAL_I2C_STATE_READY) -2866:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** { -2867:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** hi2c->State = HAL_I2C_STATE_LISTEN; -2868:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** hi2c->XferISR = I2C_Slave_ISR_IT; -2869:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** -2870:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** /* Enable the Address Match interrupt */ -2871:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** I2C_Enable_IRQ(hi2c, I2C_XFER_LISTEN_IT); -2872:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** -2873:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** return HAL_OK; -2874:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** } -2875:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** else -2876:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** { -2877:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** return HAL_BUSY; -2878:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** } -2879:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** } -2880:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** -2881:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** /** -2882:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** * @brief Disable the Address listen mode with Interrupt. -2883:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** * @param hi2c Pointer to a I2C_HandleTypeDef structure that contains -2884:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** * the configuration information for the specified I2C - ARM GAS /tmp/ccTaFl06.s page 52 - - -2885:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** * @retval HAL status -2886:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** */ -2887:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** HAL_StatusTypeDef HAL_I2C_DisableListen_IT(I2C_HandleTypeDef *hi2c) -2888:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** { -2889:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** /* Declaration of tmp to prevent undefined behavior of volatile usage */ -2890:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** uint32_t tmp; -2891:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** -2892:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** /* Disable Address listen mode only if a transfer is not ongoing */ -2893:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** if (hi2c->State == HAL_I2C_STATE_LISTEN) -2894:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** { -2895:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** tmp = (uint32_t)(hi2c->State) & I2C_STATE_MSK; -2896:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** hi2c->PreviousState = tmp | (uint32_t)(hi2c->Mode); -2897:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** hi2c->State = HAL_I2C_STATE_READY; -2898:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** hi2c->Mode = HAL_I2C_MODE_NONE; -2899:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** hi2c->XferISR = NULL; -2900:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** -2901:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** /* Disable the Address Match interrupt */ -2902:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** I2C_Disable_IRQ(hi2c, I2C_XFER_LISTEN_IT); -2903:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** -2904:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** return HAL_OK; -2905:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** } -2906:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** else -2907:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** { -2908:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** return HAL_BUSY; -2909:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** } -2910:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** } -2911:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** -2912:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** /** -2913:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** * @brief Abort a master I2C IT or DMA process communication with Interrupt. -2914:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** * @param hi2c Pointer to a I2C_HandleTypeDef structure that contains -2915:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** * the configuration information for the specified I2C. -2916:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** * @param DevAddress Target device address: The device 7 bits address value -2917:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** * in datasheet must be shift at right before call interface -2918:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** * @retval HAL status -2919:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** */ -2920:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** HAL_StatusTypeDef HAL_I2C_Master_Abort_IT(I2C_HandleTypeDef *hi2c, uint16_t DevAddress) -2921:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** { -2922:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** if (hi2c->Mode == HAL_I2C_MODE_MASTER) -2923:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** { -2924:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** /* Process Locked */ -2925:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** __HAL_LOCK(hi2c); -2926:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** -2927:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** /* Disable Interrupts */ -2928:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** I2C_Disable_IRQ(hi2c, I2C_XFER_RX_IT); -2929:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** I2C_Disable_IRQ(hi2c, I2C_XFER_TX_IT); -2930:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** -2931:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** /* Set State at HAL_I2C_STATE_ABORT */ -2932:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** hi2c->State = HAL_I2C_STATE_ABORT; -2933:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** -2934:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** /* Set NBYTES to 1 to generate a dummy read on I2C peripheral */ -2935:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** /* Set AUTOEND mode, this will generate a NACK then STOP condition to abort the current transfe -2936:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** I2C_TransferConfig(hi2c, DevAddress, 1, I2C_AUTOEND_MODE, I2C_GENERATE_STOP); -2937:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** -2938:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** /* Process Unlocked */ -2939:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** __HAL_UNLOCK(hi2c); -2940:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** -2941:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** /* Note : The I2C interrupts must be enabled after unlocking current process - ARM GAS /tmp/ccTaFl06.s page 53 - - -2942:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** to avoid the risk of I2C interrupt handle execution before current -2943:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** process unlock */ -2944:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** I2C_Enable_IRQ(hi2c, I2C_XFER_CPLT_IT); -2945:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** -2946:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** return HAL_OK; -2947:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** } -2948:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** else -2949:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** { -2950:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** /* Wrong usage of abort function */ -2951:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** /* This function should be used only in case of abort monitored by master device */ -2952:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** return HAL_ERROR; -2953:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** } -2954:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** } -2955:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** -2956:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** /** -2957:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** * @} -2958:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** */ -2959:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** -2960:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** /** @defgroup I2C_IRQ_Handler_and_Callbacks IRQ Handler and Callbacks -2961:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** * @{ -2962:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** */ -2963:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** -2964:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** /** -2965:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** * @brief This function handles I2C event interrupt request. -2966:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** * @param hi2c Pointer to a I2C_HandleTypeDef structure that contains -2967:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** * the configuration information for the specified I2C. -2968:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** * @retval None -2969:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** */ -2970:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** void HAL_I2C_EV_IRQHandler(I2C_HandleTypeDef *hi2c) -2971:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** { -2972:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** /* Get current IT Flags and IT sources value */ -2973:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** uint32_t itflags = READ_REG(hi2c->Instance->ISR); -2974:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** uint32_t itsources = READ_REG(hi2c->Instance->CR1); -2975:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** -2976:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** /* I2C events treatment -------------------------------------*/ -2977:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** if (hi2c->XferISR != NULL) -2978:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** { -2979:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** hi2c->XferISR(hi2c, itflags, itsources); -2980:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** } -2981:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** } -2982:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** -2983:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** /** -2984:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** * @brief This function handles I2C error interrupt request. -2985:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** * @param hi2c Pointer to a I2C_HandleTypeDef structure that contains -2986:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** * the configuration information for the specified I2C. -2987:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** * @retval None -2988:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** */ -2989:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** void HAL_I2C_ER_IRQHandler(I2C_HandleTypeDef *hi2c) -2990:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** { -2991:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** uint32_t itflags = READ_REG(hi2c->Instance->ISR); -2992:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** uint32_t itsources = READ_REG(hi2c->Instance->CR1); -2993:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** -2994:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** /* I2C Bus error interrupt occurred ------------------------------------*/ -2995:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** if (((itflags & I2C_FLAG_BERR) != RESET) && ((itsources & I2C_IT_ERRI) != RESET)) -2996:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** { -2997:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** hi2c->ErrorCode |= HAL_I2C_ERROR_BERR; -2998:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** - ARM GAS /tmp/ccTaFl06.s page 54 - - -2999:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** /* Clear BERR flag */ -3000:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** __HAL_I2C_CLEAR_FLAG(hi2c, I2C_FLAG_BERR); -3001:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** } -3002:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** -3003:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** /* I2C Over-Run/Under-Run interrupt occurred ----------------------------------------*/ -3004:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** if (((itflags & I2C_FLAG_OVR) != RESET) && ((itsources & I2C_IT_ERRI) != RESET)) -3005:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** { -3006:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** hi2c->ErrorCode |= HAL_I2C_ERROR_OVR; -3007:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** -3008:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** /* Clear OVR flag */ -3009:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** __HAL_I2C_CLEAR_FLAG(hi2c, I2C_FLAG_OVR); -3010:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** } -3011:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** -3012:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** /* I2C Arbitration Loss error interrupt occurred -------------------------------------*/ -3013:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** if (((itflags & I2C_FLAG_ARLO) != RESET) && ((itsources & I2C_IT_ERRI) != RESET)) -3014:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** { -3015:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** hi2c->ErrorCode |= HAL_I2C_ERROR_ARLO; -3016:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** -3017:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** /* Clear ARLO flag */ -3018:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** __HAL_I2C_CLEAR_FLAG(hi2c, I2C_FLAG_ARLO); -3019:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** } -3020:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** -3021:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** /* Call the Error Callback in case of Error detected */ -3022:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** if ((hi2c->ErrorCode & (HAL_I2C_ERROR_BERR | HAL_I2C_ERROR_OVR | HAL_I2C_ERROR_ARLO)) != HAL_I2C -3023:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** { -3024:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** I2C_ITError(hi2c, hi2c->ErrorCode); -3025:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** } -3026:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** } -3027:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** -3028:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** /** -3029:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** * @brief Master Tx Transfer completed callback. -3030:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** * @param hi2c Pointer to a I2C_HandleTypeDef structure that contains -3031:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** * the configuration information for the specified I2C. -3032:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** * @retval None -3033:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** */ -3034:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** __weak void HAL_I2C_MasterTxCpltCallback(I2C_HandleTypeDef *hi2c) -3035:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** { -3036:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** /* Prevent unused argument(s) compilation warning */ -3037:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** UNUSED(hi2c); -3038:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** -3039:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** /* NOTE : This function should not be modified, when the callback is needed, -3040:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** the HAL_I2C_MasterTxCpltCallback could be implemented in the user file -3041:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** */ -3042:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** } -3043:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** -3044:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** /** -3045:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** * @brief Master Rx Transfer completed callback. -3046:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** * @param hi2c Pointer to a I2C_HandleTypeDef structure that contains -3047:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** * the configuration information for the specified I2C. -3048:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** * @retval None -3049:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** */ -3050:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** __weak void HAL_I2C_MasterRxCpltCallback(I2C_HandleTypeDef *hi2c) -3051:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** { -3052:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** /* Prevent unused argument(s) compilation warning */ -3053:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** UNUSED(hi2c); -3054:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** -3055:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** /* NOTE : This function should not be modified, when the callback is needed, - ARM GAS /tmp/ccTaFl06.s page 55 - - -3056:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** the HAL_I2C_MasterRxCpltCallback could be implemented in the user file -3057:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** */ -3058:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** } -3059:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** -3060:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** /** @brief Slave Tx Transfer completed callback. -3061:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** * @param hi2c Pointer to a I2C_HandleTypeDef structure that contains -3062:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** * the configuration information for the specified I2C. -3063:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** * @retval None -3064:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** */ -3065:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** __weak void HAL_I2C_SlaveTxCpltCallback(I2C_HandleTypeDef *hi2c) -3066:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** { -3067:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** /* Prevent unused argument(s) compilation warning */ -3068:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** UNUSED(hi2c); -3069:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** -3070:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** /* NOTE : This function should not be modified, when the callback is needed, -3071:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** the HAL_I2C_SlaveTxCpltCallback could be implemented in the user file -3072:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** */ -3073:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** } -3074:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** -3075:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** /** -3076:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** * @brief Slave Rx Transfer completed callback. -3077:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** * @param hi2c Pointer to a I2C_HandleTypeDef structure that contains -3078:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** * the configuration information for the specified I2C. -3079:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** * @retval None -3080:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** */ -3081:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** __weak void HAL_I2C_SlaveRxCpltCallback(I2C_HandleTypeDef *hi2c) -3082:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** { -3083:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** /* Prevent unused argument(s) compilation warning */ -3084:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** UNUSED(hi2c); -3085:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** -3086:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** /* NOTE : This function should not be modified, when the callback is needed, -3087:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** the HAL_I2C_SlaveRxCpltCallback could be implemented in the user file -3088:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** */ -3089:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** } -3090:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** -3091:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** /** -3092:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** * @brief Slave Address Match callback. -3093:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** * @param hi2c Pointer to a I2C_HandleTypeDef structure that contains -3094:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** * the configuration information for the specified I2C. -3095:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** * @param TransferDirection Master request Transfer Direction (Write/Read), value of @ref I2C_XFE -3096:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** * @param AddrMatchCode Address Match Code -3097:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** * @retval None -3098:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** */ -3099:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** __weak void HAL_I2C_AddrCallback(I2C_HandleTypeDef *hi2c, uint8_t TransferDirection, uint16_t AddrM -3100:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** { -3101:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** /* Prevent unused argument(s) compilation warning */ -3102:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** UNUSED(hi2c); -3103:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** UNUSED(TransferDirection); -3104:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** UNUSED(AddrMatchCode); -3105:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** -3106:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** /* NOTE : This function should not be modified, when the callback is needed, -3107:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** the HAL_I2C_AddrCallback() could be implemented in the user file -3108:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** */ -3109:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** } -3110:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** -3111:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** /** -3112:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** * @brief Listen Complete callback. - ARM GAS /tmp/ccTaFl06.s page 56 - - -3113:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** * @param hi2c Pointer to a I2C_HandleTypeDef structure that contains -3114:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** * the configuration information for the specified I2C. -3115:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** * @retval None -3116:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** */ -3117:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** __weak void HAL_I2C_ListenCpltCallback(I2C_HandleTypeDef *hi2c) -3118:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** { -3119:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** /* Prevent unused argument(s) compilation warning */ -3120:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** UNUSED(hi2c); -3121:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** -3122:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** /* NOTE : This function should not be modified, when the callback is needed, -3123:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** the HAL_I2C_ListenCpltCallback() could be implemented in the user file -3124:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** */ -3125:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** } -3126:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** -3127:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** /** -3128:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** * @brief Memory Tx Transfer completed callback. -3129:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** * @param hi2c Pointer to a I2C_HandleTypeDef structure that contains -3130:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** * the configuration information for the specified I2C. -3131:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** * @retval None -3132:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** */ -3133:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** __weak void HAL_I2C_MemTxCpltCallback(I2C_HandleTypeDef *hi2c) -3134:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** { -3135:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** /* Prevent unused argument(s) compilation warning */ -3136:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** UNUSED(hi2c); -3137:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** -3138:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** /* NOTE : This function should not be modified, when the callback is needed, -3139:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** the HAL_I2C_MemTxCpltCallback could be implemented in the user file -3140:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** */ -3141:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** } -3142:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** -3143:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** /** -3144:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** * @brief Memory Rx Transfer completed callback. -3145:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** * @param hi2c Pointer to a I2C_HandleTypeDef structure that contains -3146:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** * the configuration information for the specified I2C. -3147:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** * @retval None -3148:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** */ -3149:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** __weak void HAL_I2C_MemRxCpltCallback(I2C_HandleTypeDef *hi2c) -3150:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** { -3151:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** /* Prevent unused argument(s) compilation warning */ -3152:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** UNUSED(hi2c); -3153:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** -3154:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** /* NOTE : This function should not be modified, when the callback is needed, -3155:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** the HAL_I2C_MemRxCpltCallback could be implemented in the user file -3156:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** */ -3157:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** } -3158:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** -3159:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** /** -3160:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** * @brief I2C error callback. -3161:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** * @param hi2c Pointer to a I2C_HandleTypeDef structure that contains -3162:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** * the configuration information for the specified I2C. -3163:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** * @retval None -3164:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** */ -3165:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** __weak void HAL_I2C_ErrorCallback(I2C_HandleTypeDef *hi2c) -3166:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** { -3167:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** /* Prevent unused argument(s) compilation warning */ -3168:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** UNUSED(hi2c); -3169:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** - ARM GAS /tmp/ccTaFl06.s page 57 - - -3170:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** /* NOTE : This function should not be modified, when the callback is needed, -3171:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** the HAL_I2C_ErrorCallback could be implemented in the user file -3172:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** */ -3173:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** } -3174:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** -3175:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** /** -3176:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** * @brief I2C abort callback. -3177:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** * @param hi2c Pointer to a I2C_HandleTypeDef structure that contains -3178:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** * the configuration information for the specified I2C. -3179:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** * @retval None -3180:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** */ -3181:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** __weak void HAL_I2C_AbortCpltCallback(I2C_HandleTypeDef *hi2c) -3182:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** { -3183:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** /* Prevent unused argument(s) compilation warning */ -3184:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** UNUSED(hi2c); -3185:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** -3186:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** /* NOTE : This function should not be modified, when the callback is needed, -3187:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** the HAL_I2C_AbortCpltCallback could be implemented in the user file -3188:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** */ -3189:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** } -3190:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** -3191:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** /** -3192:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** * @} -3193:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** */ -3194:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** -3195:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** /** @defgroup I2C_Exported_Functions_Group3 Peripheral State, Mode and Error functions -3196:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** * @brief Peripheral State, Mode and Error functions -3197:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** * -3198:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** @verbatim -3199:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** =============================================================================== -3200:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** ##### Peripheral State, Mode and Error functions ##### -3201:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** =============================================================================== -3202:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** [..] -3203:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** This subsection permit to get in run-time the status of the peripheral -3204:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** and the data flow. -3205:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** -3206:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** @endverbatim -3207:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** * @{ -3208:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** */ -3209:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** -3210:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** /** -3211:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** * @brief Return the I2C handle state. -3212:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** * @param hi2c Pointer to a I2C_HandleTypeDef structure that contains -3213:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** * the configuration information for the specified I2C. -3214:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** * @retval HAL state -3215:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** */ -3216:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** HAL_I2C_StateTypeDef HAL_I2C_GetState(I2C_HandleTypeDef *hi2c) -3217:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** { -3218:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** /* Return I2C handle state */ -3219:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** return hi2c->State; -3220:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** } -3221:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** -3222:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** /** -3223:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** * @brief Returns the I2C Master, Slave, Memory or no mode. -3224:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** * @param hi2c Pointer to a I2C_HandleTypeDef structure that contains -3225:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** * the configuration information for I2C module -3226:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** * @retval HAL mode - ARM GAS /tmp/ccTaFl06.s page 58 - - -3227:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** */ -3228:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** HAL_I2C_ModeTypeDef HAL_I2C_GetMode(I2C_HandleTypeDef *hi2c) -3229:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** { -3230:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** return hi2c->Mode; -3231:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** } -3232:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** -3233:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** /** -3234:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** * @brief Return the I2C error code. -3235:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** * @param hi2c Pointer to a I2C_HandleTypeDef structure that contains -3236:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** * the configuration information for the specified I2C. -3237:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** * @retval I2C Error Code -3238:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** */ -3239:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** uint32_t HAL_I2C_GetError(I2C_HandleTypeDef *hi2c) -3240:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** { -3241:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** return hi2c->ErrorCode; -3242:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** } -3243:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** -3244:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** /** -3245:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** * @} -3246:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** */ -3247:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** -3248:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** /** -3249:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** * @} -3250:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** */ -3251:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** -3252:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** /** @addtogroup I2C_Private_Functions -3253:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** * @{ -3254:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** */ -3255:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** -3256:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** /** -3257:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** * @brief Interrupt Sub-Routine which handle the Interrupt Flags Master Mode with Interrupt. -3258:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** * @param hi2c Pointer to a I2C_HandleTypeDef structure that contains -3259:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** * the configuration information for the specified I2C. -3260:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** * @param ITFlags Interrupt flags to handle. -3261:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** * @param ITSources Interrupt sources enabled. -3262:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** * @retval HAL status -3263:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** */ -3264:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** static HAL_StatusTypeDef I2C_Master_ISR_IT(struct __I2C_HandleTypeDef *hi2c, uint32_t ITFlags, uint -3265:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** { -3266:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** uint16_t devaddress = 0U; -3267:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** -3268:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** /* Process Locked */ -3269:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** __HAL_LOCK(hi2c); -3270:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** -3271:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** if (((ITFlags & I2C_FLAG_AF) != RESET) && ((ITSources & I2C_IT_NACKI) != RESET)) -3272:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** { -3273:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** /* Clear NACK Flag */ -3274:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** __HAL_I2C_CLEAR_FLAG(hi2c, I2C_FLAG_AF); -3275:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** -3276:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** /* Set corresponding Error Code */ -3277:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** /* No need to generate STOP, it is automatically done */ -3278:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** /* Error callback will be send during stop flag treatment */ -3279:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** hi2c->ErrorCode |= HAL_I2C_ERROR_AF; -3280:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** -3281:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** /* Flush TX register */ -3282:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** I2C_Flush_TXDR(hi2c); -3283:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** } - ARM GAS /tmp/ccTaFl06.s page 59 - - -3284:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** else if (((ITFlags & I2C_FLAG_RXNE) != RESET) && ((ITSources & I2C_IT_RXI) != RESET)) -3285:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** { -3286:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** /* Read data from RXDR */ -3287:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** (*hi2c->pBuffPtr++) = hi2c->Instance->RXDR; -3288:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** hi2c->XferSize--; -3289:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** hi2c->XferCount--; -3290:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** } -3291:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** else if (((ITFlags & I2C_FLAG_TXIS) != RESET) && ((ITSources & I2C_IT_TXI) != RESET)) -3292:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** { -3293:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** /* Write data to TXDR */ -3294:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** hi2c->Instance->TXDR = (*hi2c->pBuffPtr++); -3295:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** hi2c->XferSize--; -3296:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** hi2c->XferCount--; -3297:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** } -3298:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** else if (((ITFlags & I2C_FLAG_TCR) != RESET) && ((ITSources & I2C_IT_TCI) != RESET)) -3299:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** { -3300:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** if ((hi2c->XferSize == 0U) && (hi2c->XferCount != 0U)) -3301:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** { -3302:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** devaddress = (hi2c->Instance->CR2 & I2C_CR2_SADD); -3303:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** -3304:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** if (hi2c->XferCount > MAX_NBYTE_SIZE) -3305:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** { -3306:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** hi2c->XferSize = MAX_NBYTE_SIZE; -3307:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** I2C_TransferConfig(hi2c, devaddress, hi2c->XferSize, I2C_RELOAD_MODE, I2C_NO_STARTSTOP); -3308:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** } -3309:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** else -3310:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** { -3311:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** hi2c->XferSize = hi2c->XferCount; -3312:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** if (hi2c->XferOptions != I2C_NO_OPTION_FRAME) -3313:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** { -3314:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** I2C_TransferConfig(hi2c, devaddress, hi2c->XferSize, hi2c->XferOptions, I2C_NO_STARTSTOP) -3315:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** } -3316:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** else -3317:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** { -3318:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** I2C_TransferConfig(hi2c, devaddress, hi2c->XferSize, I2C_AUTOEND_MODE, I2C_NO_STARTSTOP); -3319:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** } -3320:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** } -3321:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** } -3322:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** else -3323:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** { -3324:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** /* Call TxCpltCallback() if no stop mode is set */ -3325:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** if (I2C_GET_STOP_MODE(hi2c) != I2C_AUTOEND_MODE) -3326:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** { -3327:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** /* Call I2C Master Sequential complete process */ -3328:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** I2C_ITMasterSequentialCplt(hi2c); -3329:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** } -3330:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** else -3331:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** { -3332:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** /* Wrong size Status regarding TCR flag event */ -3333:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** /* Call the corresponding callback to inform upper layer of End of Transfer */ -3334:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** I2C_ITError(hi2c, HAL_I2C_ERROR_SIZE); -3335:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** } -3336:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** } -3337:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** } -3338:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** else if (((ITFlags & I2C_FLAG_TC) != RESET) && ((ITSources & I2C_IT_TCI) != RESET)) -3339:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** { -3340:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** if (hi2c->XferCount == 0U) - ARM GAS /tmp/ccTaFl06.s page 60 - - -3341:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** { -3342:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** if (I2C_GET_STOP_MODE(hi2c) != I2C_AUTOEND_MODE) -3343:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** { -3344:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** /* Generate a stop condition in case of no transfer option */ -3345:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** if (hi2c->XferOptions == I2C_NO_OPTION_FRAME) -3346:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** { -3347:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** /* Generate Stop */ -3348:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** hi2c->Instance->CR2 |= I2C_CR2_STOP; -3349:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** } -3350:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** else -3351:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** { -3352:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** /* Call I2C Master Sequential complete process */ -3353:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** I2C_ITMasterSequentialCplt(hi2c); -3354:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** } -3355:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** } -3356:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** } -3357:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** else -3358:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** { -3359:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** /* Wrong size Status regarding TC flag event */ -3360:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** /* Call the corresponding callback to inform upper layer of End of Transfer */ -3361:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** I2C_ITError(hi2c, HAL_I2C_ERROR_SIZE); -3362:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** } -3363:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** } -3364:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** -3365:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** if (((ITFlags & I2C_FLAG_STOPF) != RESET) && ((ITSources & I2C_IT_STOPI) != RESET)) -3366:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** { -3367:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** /* Call I2C Master complete process */ -3368:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** I2C_ITMasterCplt(hi2c, ITFlags); -3369:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** } -3370:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** -3371:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** /* Process Unlocked */ -3372:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** __HAL_UNLOCK(hi2c); -3373:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** -3374:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** return HAL_OK; -3375:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** } -3376:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** -3377:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** /** -3378:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** * @brief Interrupt Sub-Routine which handle the Interrupt Flags Slave Mode with Interrupt. -3379:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** * @param hi2c Pointer to a I2C_HandleTypeDef structure that contains -3380:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** * the configuration information for the specified I2C. -3381:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** * @param ITFlags Interrupt flags to handle. -3382:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** * @param ITSources Interrupt sources enabled. -3383:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** * @retval HAL status -3384:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** */ -3385:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** static HAL_StatusTypeDef I2C_Slave_ISR_IT(struct __I2C_HandleTypeDef *hi2c, uint32_t ITFlags, uint3 -3386:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** { -3387:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** /* Process locked */ -3388:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** __HAL_LOCK(hi2c); -3389:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** -3390:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** if (((ITFlags & I2C_FLAG_AF) != RESET) && ((ITSources & I2C_IT_NACKI) != RESET)) -3391:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** { -3392:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** /* Check that I2C transfer finished */ -3393:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** /* if yes, normal use case, a NACK is sent by the MASTER when Transfer is finished */ -3394:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** /* Mean XferCount == 0*/ -3395:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** /* So clear Flag NACKF only */ -3396:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** if (hi2c->XferCount == 0U) -3397:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** { - ARM GAS /tmp/ccTaFl06.s page 61 - - -3398:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** if (((hi2c->XferOptions == I2C_FIRST_AND_LAST_FRAME) || (hi2c->XferOptions == I2C_LAST_FRAME) -3399:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** (hi2c->State == HAL_I2C_STATE_LISTEN)) -3400:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** { -3401:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** /* Call I2C Listen complete process */ -3402:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** I2C_ITListenCplt(hi2c, ITFlags); -3403:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** } -3404:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** else if ((hi2c->XferOptions != I2C_NO_OPTION_FRAME) && (hi2c->State == HAL_I2C_STATE_BUSY_TX_ -3405:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** { -3406:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** /* Clear NACK Flag */ -3407:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** __HAL_I2C_CLEAR_FLAG(hi2c, I2C_FLAG_AF); -3408:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** -3409:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** /* Flush TX register */ -3410:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** I2C_Flush_TXDR(hi2c); -3411:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** -3412:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** /* Last Byte is Transmitted */ -3413:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** /* Call I2C Slave Sequential complete process */ -3414:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** I2C_ITSlaveSequentialCplt(hi2c); -3415:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** } -3416:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** else -3417:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** { -3418:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** /* Clear NACK Flag */ -3419:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** __HAL_I2C_CLEAR_FLAG(hi2c, I2C_FLAG_AF); -3420:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** } -3421:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** } -3422:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** else -3423:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** { -3424:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** /* if no, error use case, a Non-Acknowledge of last Data is generated by the MASTER*/ -3425:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** /* Clear NACK Flag */ -3426:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** __HAL_I2C_CLEAR_FLAG(hi2c, I2C_FLAG_AF); -3427:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** -3428:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** /* Set ErrorCode corresponding to a Non-Acknowledge */ -3429:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** hi2c->ErrorCode |= HAL_I2C_ERROR_AF; -3430:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** } -3431:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** } -3432:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** else if (((ITFlags & I2C_FLAG_RXNE) != RESET) && ((ITSources & I2C_IT_RXI) != RESET)) -3433:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** { -3434:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** if (hi2c->XferCount > 0U) -3435:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** { -3436:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** /* Read data from RXDR */ -3437:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** (*hi2c->pBuffPtr++) = hi2c->Instance->RXDR; -3438:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** hi2c->XferSize--; -3439:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** hi2c->XferCount--; -3440:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** } -3441:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** -3442:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** if ((hi2c->XferCount == 0U) && \ -3443:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** (hi2c->XferOptions != I2C_NO_OPTION_FRAME)) -3444:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** { -3445:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** /* Call I2C Slave Sequential complete process */ -3446:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** I2C_ITSlaveSequentialCplt(hi2c); -3447:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** } -3448:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** } -3449:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** else if (((ITFlags & I2C_FLAG_ADDR) != RESET) && ((ITSources & I2C_IT_ADDRI) != RESET)) -3450:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** { -3451:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** I2C_ITAddrCplt(hi2c, ITFlags); -3452:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** } -3453:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** else if (((ITFlags & I2C_FLAG_TXIS) != RESET) && ((ITSources & I2C_IT_TXI) != RESET)) -3454:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** { - ARM GAS /tmp/ccTaFl06.s page 62 - - -3455:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** /* Write data to TXDR only if XferCount not reach "0" */ -3456:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** /* A TXIS flag can be set, during STOP treatment */ -3457:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** /* Check if all Datas have already been sent */ -3458:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** /* If it is the case, this last write in TXDR is not sent, correspond to a dummy TXIS event */ -3459:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** if (hi2c->XferCount > 0U) -3460:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** { -3461:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** /* Write data to TXDR */ -3462:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** hi2c->Instance->TXDR = (*hi2c->pBuffPtr++); -3463:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** hi2c->XferCount--; -3464:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** hi2c->XferSize--; -3465:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** } -3466:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** else -3467:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** { -3468:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** if ((hi2c->XferOptions == I2C_NEXT_FRAME) || (hi2c->XferOptions == I2C_FIRST_FRAME)) -3469:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** { -3470:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** /* Last Byte is Transmitted */ -3471:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** /* Call I2C Slave Sequential complete process */ -3472:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** I2C_ITSlaveSequentialCplt(hi2c); -3473:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** } -3474:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** } -3475:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** } -3476:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** -3477:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** /* Check if STOPF is set */ -3478:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** if (((ITFlags & I2C_FLAG_STOPF) != RESET) && ((ITSources & I2C_IT_STOPI) != RESET)) -3479:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** { -3480:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** /* Call I2C Slave complete process */ -3481:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** I2C_ITSlaveCplt(hi2c, ITFlags); -3482:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** } -3483:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** -3484:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** /* Process Unlocked */ -3485:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** __HAL_UNLOCK(hi2c); -3486:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** -3487:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** return HAL_OK; -3488:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** } -3489:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** -3490:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** /** -3491:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** * @brief Interrupt Sub-Routine which handle the Interrupt Flags Master Mode with DMA. -3492:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** * @param hi2c Pointer to a I2C_HandleTypeDef structure that contains -3493:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** * the configuration information for the specified I2C. -3494:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** * @param ITFlags Interrupt flags to handle. -3495:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** * @param ITSources Interrupt sources enabled. -3496:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** * @retval HAL status -3497:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** */ -3498:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** static HAL_StatusTypeDef I2C_Master_ISR_DMA(struct __I2C_HandleTypeDef *hi2c, uint32_t ITFlags, uin -3499:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** { -3500:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** uint16_t devaddress = 0U; -3501:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** uint32_t xfermode = 0U; -3502:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** -3503:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** /* Process Locked */ -3504:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** __HAL_LOCK(hi2c); -3505:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** -3506:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** if (((ITFlags & I2C_FLAG_AF) != RESET) && ((ITSources & I2C_IT_NACKI) != RESET)) -3507:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** { -3508:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** /* Clear NACK Flag */ -3509:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** __HAL_I2C_CLEAR_FLAG(hi2c, I2C_FLAG_AF); -3510:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** -3511:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** /* Set corresponding Error Code */ - ARM GAS /tmp/ccTaFl06.s page 63 - - -3512:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** hi2c->ErrorCode |= HAL_I2C_ERROR_AF; -3513:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** -3514:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** /* No need to generate STOP, it is automatically done */ -3515:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** /* But enable STOP interrupt, to treat it */ -3516:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** /* Error callback will be send during stop flag treatment */ -3517:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** I2C_Enable_IRQ(hi2c, I2C_XFER_CPLT_IT); -3518:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** -3519:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** /* Flush TX register */ -3520:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** I2C_Flush_TXDR(hi2c); -3521:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** } -3522:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** else if (((ITFlags & I2C_FLAG_TCR) != RESET) && ((ITSources & I2C_IT_TCI) != RESET)) -3523:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** { -3524:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** /* Disable TC interrupt */ -3525:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** __HAL_I2C_DISABLE_IT(hi2c, I2C_IT_TCI); -3526:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** -3527:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** if (hi2c->XferCount != 0U) -3528:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** { -3529:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** /* Recover Slave address */ -3530:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** devaddress = (hi2c->Instance->CR2 & I2C_CR2_SADD); -3531:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** -3532:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** /* Prepare the new XferSize to transfer */ -3533:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** if (hi2c->XferCount > MAX_NBYTE_SIZE) -3534:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** { -3535:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** hi2c->XferSize = MAX_NBYTE_SIZE; -3536:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** xfermode = I2C_RELOAD_MODE; -3537:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** } -3538:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** else -3539:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** { -3540:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** hi2c->XferSize = hi2c->XferCount; -3541:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** xfermode = I2C_AUTOEND_MODE; -3542:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** } -3543:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** -3544:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** /* Set the new XferSize in Nbytes register */ -3545:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** I2C_TransferConfig(hi2c, devaddress, hi2c->XferSize, xfermode, I2C_NO_STARTSTOP); -3546:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** -3547:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** /* Update XferCount value */ -3548:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** hi2c->XferCount -= hi2c->XferSize; -3549:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** -3550:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** /* Enable DMA Request */ -3551:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** if (hi2c->State == HAL_I2C_STATE_BUSY_RX) -3552:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** { -3553:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** hi2c->Instance->CR1 |= I2C_CR1_RXDMAEN; -3554:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** } -3555:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** else -3556:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** { -3557:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** hi2c->Instance->CR1 |= I2C_CR1_TXDMAEN; -3558:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** } -3559:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** } -3560:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** else -3561:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** { -3562:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** /* Wrong size Status regarding TCR flag event */ -3563:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** /* Call the corresponding callback to inform upper layer of End of Transfer */ -3564:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** I2C_ITError(hi2c, HAL_I2C_ERROR_SIZE); -3565:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** } -3566:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** } -3567:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** else if (((ITFlags & I2C_FLAG_STOPF) != RESET) && ((ITSources & I2C_IT_STOPI) != RESET)) -3568:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** { - ARM GAS /tmp/ccTaFl06.s page 64 - - -3569:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** /* Call I2C Master complete process */ -3570:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** I2C_ITMasterCplt(hi2c, ITFlags); -3571:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** } -3572:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** -3573:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** /* Process Unlocked */ -3574:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** __HAL_UNLOCK(hi2c); -3575:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** -3576:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** return HAL_OK; -3577:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** } -3578:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** -3579:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** /** -3580:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** * @brief Interrupt Sub-Routine which handle the Interrupt Flags Slave Mode with DMA. -3581:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** * @param hi2c Pointer to a I2C_HandleTypeDef structure that contains -3582:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** * the configuration information for the specified I2C. -3583:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** * @param ITFlags Interrupt flags to handle. -3584:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** * @param ITSources Interrupt sources enabled. -3585:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** * @retval HAL status -3586:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** */ -3587:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** static HAL_StatusTypeDef I2C_Slave_ISR_DMA(struct __I2C_HandleTypeDef *hi2c, uint32_t ITFlags, uint -3588:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** { -3589:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** /* Process locked */ -3590:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** __HAL_LOCK(hi2c); -3591:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** -3592:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** if (((ITFlags & I2C_FLAG_AF) != RESET) && ((ITSources & I2C_IT_NACKI) != RESET)) -3593:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** { -3594:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** /* Check that I2C transfer finished */ -3595:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** /* if yes, normal use case, a NACK is sent by the MASTER when Transfer is finished */ -3596:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** /* Mean XferCount == 0 */ -3597:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** /* So clear Flag NACKF only */ -3598:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** if (I2C_GET_DMA_REMAIN_DATA(hi2c) == 0U) -3599:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** { -3600:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** /* Clear NACK Flag */ -3601:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** __HAL_I2C_CLEAR_FLAG(hi2c, I2C_FLAG_AF); -3602:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** } -3603:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** else -3604:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** { -3605:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** /* if no, error use case, a Non-Acknowledge of last Data is generated by the MASTER*/ -3606:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** /* Clear NACK Flag */ -3607:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** __HAL_I2C_CLEAR_FLAG(hi2c, I2C_FLAG_AF); -3608:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** -3609:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** /* Set ErrorCode corresponding to a Non-Acknowledge */ -3610:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** hi2c->ErrorCode |= HAL_I2C_ERROR_AF; -3611:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** } -3612:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** } -3613:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** else if (((ITFlags & I2C_FLAG_ADDR) != RESET) && ((ITSources & I2C_IT_ADDRI) != RESET)) -3614:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** { -3615:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** /* Clear ADDR flag */ -3616:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** __HAL_I2C_CLEAR_FLAG(hi2c, I2C_FLAG_ADDR); -3617:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** } -3618:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** else if (((ITFlags & I2C_FLAG_STOPF) != RESET) && ((ITSources & I2C_IT_STOPI) != RESET)) -3619:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** { -3620:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** /* Call I2C Slave complete process */ -3621:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** I2C_ITSlaveCplt(hi2c, ITFlags); -3622:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** } -3623:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** -3624:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** /* Process Unlocked */ -3625:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** __HAL_UNLOCK(hi2c); - ARM GAS /tmp/ccTaFl06.s page 65 - - -3626:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** -3627:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** return HAL_OK; -3628:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** } -3629:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** -3630:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** /** -3631:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** * @brief Master sends target device address followed by internal memory address for write reques -3632:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** * @param hi2c Pointer to a I2C_HandleTypeDef structure that contains -3633:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** * the configuration information for the specified I2C. -3634:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** * @param DevAddress Target device address: The device 7 bits address value -3635:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** * in datasheet must be shift at right before call interface -3636:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** * @param MemAddress Internal memory address -3637:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** * @param MemAddSize Size of internal memory address -3638:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** * @param Timeout Timeout duration -3639:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** * @param Tickstart Tick start value -3640:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** * @retval HAL status -3641:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** */ -3642:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** static HAL_StatusTypeDef I2C_RequestMemoryWrite(I2C_HandleTypeDef *hi2c, uint16_t DevAddress, uint1 -3643:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** { -3644:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** I2C_TransferConfig(hi2c, DevAddress, MemAddSize, I2C_RELOAD_MODE, I2C_GENERATE_START_WRITE); -3645:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** -3646:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** /* Wait until TXIS flag is set */ -3647:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** if (I2C_WaitOnTXISFlagUntilTimeout(hi2c, Timeout, Tickstart) != HAL_OK) -3648:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** { -3649:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** if (hi2c->ErrorCode == HAL_I2C_ERROR_AF) -3650:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** { -3651:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** return HAL_ERROR; -3652:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** } -3653:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** else -3654:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** { -3655:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** return HAL_TIMEOUT; -3656:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** } -3657:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** } -3658:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** -3659:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** /* If Memory address size is 8Bit */ -3660:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** if (MemAddSize == I2C_MEMADD_SIZE_8BIT) -3661:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** { -3662:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** /* Send Memory Address */ -3663:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** hi2c->Instance->TXDR = I2C_MEM_ADD_LSB(MemAddress); -3664:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** } -3665:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** /* If Memory address size is 16Bit */ -3666:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** else -3667:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** { -3668:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** /* Send MSB of Memory Address */ -3669:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** hi2c->Instance->TXDR = I2C_MEM_ADD_MSB(MemAddress); -3670:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** -3671:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** /* Wait until TXIS flag is set */ -3672:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** if (I2C_WaitOnTXISFlagUntilTimeout(hi2c, Timeout, Tickstart) != HAL_OK) -3673:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** { -3674:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** if (hi2c->ErrorCode == HAL_I2C_ERROR_AF) -3675:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** { -3676:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** return HAL_ERROR; -3677:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** } -3678:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** else -3679:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** { -3680:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** return HAL_TIMEOUT; -3681:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** } -3682:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** } - ARM GAS /tmp/ccTaFl06.s page 66 - - -3683:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** -3684:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** /* Send LSB of Memory Address */ -3685:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** hi2c->Instance->TXDR = I2C_MEM_ADD_LSB(MemAddress); -3686:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** } -3687:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** -3688:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** /* Wait until TCR flag is set */ -3689:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** if (I2C_WaitOnFlagUntilTimeout(hi2c, I2C_FLAG_TCR, RESET, Timeout, Tickstart) != HAL_OK) -3690:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** { -3691:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** return HAL_TIMEOUT; -3692:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** } -3693:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** -3694:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** return HAL_OK; -3695:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** } -3696:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** -3697:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** /** -3698:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** * @brief Master sends target device address followed by internal memory address for read request -3699:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** * @param hi2c Pointer to a I2C_HandleTypeDef structure that contains -3700:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** * the configuration information for the specified I2C. -3701:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** * @param DevAddress Target device address: The device 7 bits address value -3702:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** * in datasheet must be shift at right before call interface -3703:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** * @param MemAddress Internal memory address -3704:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** * @param MemAddSize Size of internal memory address -3705:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** * @param Timeout Timeout duration -3706:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** * @param Tickstart Tick start value -3707:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** * @retval HAL status -3708:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** */ -3709:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** static HAL_StatusTypeDef I2C_RequestMemoryRead(I2C_HandleTypeDef *hi2c, uint16_t DevAddress, uint16 -3710:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** { -3711:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** I2C_TransferConfig(hi2c, DevAddress, MemAddSize, I2C_SOFTEND_MODE, I2C_GENERATE_START_WRITE); -3712:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** -3713:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** /* Wait until TXIS flag is set */ -3714:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** if (I2C_WaitOnTXISFlagUntilTimeout(hi2c, Timeout, Tickstart) != HAL_OK) -3715:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** { -3716:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** if (hi2c->ErrorCode == HAL_I2C_ERROR_AF) -3717:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** { -3718:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** return HAL_ERROR; -3719:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** } -3720:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** else -3721:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** { -3722:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** return HAL_TIMEOUT; -3723:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** } -3724:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** } -3725:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** -3726:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** /* If Memory address size is 8Bit */ -3727:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** if (MemAddSize == I2C_MEMADD_SIZE_8BIT) -3728:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** { -3729:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** /* Send Memory Address */ -3730:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** hi2c->Instance->TXDR = I2C_MEM_ADD_LSB(MemAddress); -3731:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** } -3732:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** /* If Memory address size is 16Bit */ -3733:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** else -3734:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** { -3735:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** /* Send MSB of Memory Address */ -3736:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** hi2c->Instance->TXDR = I2C_MEM_ADD_MSB(MemAddress); -3737:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** -3738:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** /* Wait until TXIS flag is set */ -3739:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** if (I2C_WaitOnTXISFlagUntilTimeout(hi2c, Timeout, Tickstart) != HAL_OK) - ARM GAS /tmp/ccTaFl06.s page 67 - - -3740:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** { -3741:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** if (hi2c->ErrorCode == HAL_I2C_ERROR_AF) -3742:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** { -3743:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** return HAL_ERROR; -3744:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** } -3745:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** else -3746:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** { -3747:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** return HAL_TIMEOUT; -3748:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** } -3749:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** } -3750:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** -3751:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** /* Send LSB of Memory Address */ -3752:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** hi2c->Instance->TXDR = I2C_MEM_ADD_LSB(MemAddress); -3753:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** } -3754:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** -3755:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** /* Wait until TC flag is set */ -3756:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** if (I2C_WaitOnFlagUntilTimeout(hi2c, I2C_FLAG_TC, RESET, Timeout, Tickstart) != HAL_OK) -3757:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** { -3758:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** return HAL_TIMEOUT; -3759:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** } -3760:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** -3761:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** return HAL_OK; -3762:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** } -3763:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** -3764:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** /** -3765:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** * @brief I2C Address complete process callback. -3766:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** * @param hi2c I2C handle. -3767:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** * @param ITFlags Interrupt flags to handle. -3768:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** * @retval None -3769:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** */ -3770:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** static void I2C_ITAddrCplt(I2C_HandleTypeDef *hi2c, uint32_t ITFlags) -3771:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** { -3772:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** uint8_t transferdirection = 0U; -3773:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** uint16_t slaveaddrcode = 0U; -3774:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** uint16_t ownadd1code = 0U; -3775:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** uint16_t ownadd2code = 0U; -3776:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** -3777:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** /* Prevent unused argument(s) compilation warning */ -3778:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** UNUSED(ITFlags); -3779:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** -3780:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** /* In case of Listen state, need to inform upper layer of address match code event */ -3781:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** if ((hi2c->State & HAL_I2C_STATE_LISTEN) == HAL_I2C_STATE_LISTEN) -3782:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** { -3783:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** transferdirection = I2C_GET_DIR(hi2c); -3784:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** slaveaddrcode = I2C_GET_ADDR_MATCH(hi2c); -3785:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** ownadd1code = I2C_GET_OWN_ADDRESS1(hi2c); -3786:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** ownadd2code = I2C_GET_OWN_ADDRESS2(hi2c); -3787:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** -3788:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** /* If 10bits addressing mode is selected */ -3789:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** if (hi2c->Init.AddressingMode == I2C_ADDRESSINGMODE_10BIT) -3790:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** { -3791:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** if ((slaveaddrcode & SlaveAddr_MSK) == ((ownadd1code >> SlaveAddr_SHIFT) & SlaveAddr_MSK)) -3792:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** { -3793:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** slaveaddrcode = ownadd1code; -3794:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** hi2c->AddrEventCount++; -3795:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** if (hi2c->AddrEventCount == 2U) -3796:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** { - ARM GAS /tmp/ccTaFl06.s page 68 - - -3797:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** /* Reset Address Event counter */ -3798:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** hi2c->AddrEventCount = 0U; -3799:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** -3800:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** /* Clear ADDR flag */ -3801:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** __HAL_I2C_CLEAR_FLAG(hi2c, I2C_FLAG_ADDR); -3802:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** -3803:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** /* Process Unlocked */ -3804:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** __HAL_UNLOCK(hi2c); -3805:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** -3806:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** /* Call Slave Addr callback */ -3807:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** HAL_I2C_AddrCallback(hi2c, transferdirection, slaveaddrcode); -3808:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** } -3809:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** } -3810:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** else -3811:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** { -3812:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** slaveaddrcode = ownadd2code; -3813:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** -3814:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** /* Disable ADDR Interrupts */ -3815:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** I2C_Disable_IRQ(hi2c, I2C_XFER_LISTEN_IT); -3816:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** -3817:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** /* Process Unlocked */ -3818:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** __HAL_UNLOCK(hi2c); -3819:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** -3820:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** /* Call Slave Addr callback */ -3821:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** HAL_I2C_AddrCallback(hi2c, transferdirection, slaveaddrcode); -3822:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** } -3823:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** } -3824:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** /* else 7 bits addressing mode is selected */ -3825:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** else -3826:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** { -3827:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** /* Disable ADDR Interrupts */ -3828:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** I2C_Disable_IRQ(hi2c, I2C_XFER_LISTEN_IT); -3829:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** -3830:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** /* Process Unlocked */ -3831:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** __HAL_UNLOCK(hi2c); -3832:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** -3833:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** /* Call Slave Addr callback */ -3834:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** HAL_I2C_AddrCallback(hi2c, transferdirection, slaveaddrcode); -3835:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** } -3836:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** } -3837:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** /* Else clear address flag only */ -3838:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** else -3839:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** { -3840:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** /* Clear ADDR flag */ -3841:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** __HAL_I2C_CLEAR_FLAG(hi2c, I2C_FLAG_ADDR); -3842:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** -3843:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** /* Process Unlocked */ -3844:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** __HAL_UNLOCK(hi2c); -3845:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** } -3846:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** } -3847:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** -3848:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** /** -3849:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** * @brief I2C Master sequential complete process. -3850:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** * @param hi2c I2C handle. -3851:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** * @retval None -3852:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** */ -3853:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** static void I2C_ITMasterSequentialCplt(I2C_HandleTypeDef *hi2c) - ARM GAS /tmp/ccTaFl06.s page 69 - - -3854:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** { -3855:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** /* Reset I2C handle mode */ -3856:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** hi2c->Mode = HAL_I2C_MODE_NONE; -3857:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** -3858:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** /* No Generate Stop, to permit restart mode */ -3859:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** /* The stop will be done at the end of transfer, when I2C_AUTOEND_MODE enable */ -3860:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** if (hi2c->State == HAL_I2C_STATE_BUSY_TX) -3861:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** { -3862:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** hi2c->State = HAL_I2C_STATE_READY; -3863:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** hi2c->PreviousState = I2C_STATE_MASTER_BUSY_TX; -3864:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** hi2c->XferISR = NULL; -3865:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** -3866:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** /* Disable Interrupts */ -3867:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** I2C_Disable_IRQ(hi2c, I2C_XFER_TX_IT); -3868:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** -3869:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** /* Process Unlocked */ -3870:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** __HAL_UNLOCK(hi2c); -3871:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** -3872:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** /* Call the corresponding callback to inform upper layer of End of Transfer */ -3873:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** HAL_I2C_MasterTxCpltCallback(hi2c); -3874:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** } -3875:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** /* hi2c->State == HAL_I2C_STATE_BUSY_RX */ -3876:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** else -3877:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** { -3878:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** hi2c->State = HAL_I2C_STATE_READY; -3879:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** hi2c->PreviousState = I2C_STATE_MASTER_BUSY_RX; -3880:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** hi2c->XferISR = NULL; -3881:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** -3882:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** /* Disable Interrupts */ -3883:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** I2C_Disable_IRQ(hi2c, I2C_XFER_RX_IT); -3884:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** -3885:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** /* Process Unlocked */ -3886:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** __HAL_UNLOCK(hi2c); -3887:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** -3888:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** /* Call the corresponding callback to inform upper layer of End of Transfer */ -3889:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** HAL_I2C_MasterRxCpltCallback(hi2c); -3890:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** } -3891:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** } -3892:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** -3893:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** /** -3894:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** * @brief I2C Slave sequential complete process. -3895:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** * @param hi2c I2C handle. -3896:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** * @retval None -3897:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** */ -3898:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** static void I2C_ITSlaveSequentialCplt(I2C_HandleTypeDef *hi2c) -3899:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** { -3900:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** /* Reset I2C handle mode */ -3901:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** hi2c->Mode = HAL_I2C_MODE_NONE; -3902:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** -3903:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** if (hi2c->State == HAL_I2C_STATE_BUSY_TX_LISTEN) -3904:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** { -3905:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** /* Remove HAL_I2C_STATE_SLAVE_BUSY_TX, keep only HAL_I2C_STATE_LISTEN */ -3906:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** hi2c->State = HAL_I2C_STATE_LISTEN; -3907:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** hi2c->PreviousState = I2C_STATE_SLAVE_BUSY_TX; -3908:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** -3909:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** /* Disable Interrupts */ -3910:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** I2C_Disable_IRQ(hi2c, I2C_XFER_TX_IT); - ARM GAS /tmp/ccTaFl06.s page 70 - - -3911:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** -3912:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** /* Process Unlocked */ -3913:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** __HAL_UNLOCK(hi2c); -3914:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** -3915:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** /* Call the Tx complete callback to inform upper layer of the end of transmit process */ -3916:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** HAL_I2C_SlaveTxCpltCallback(hi2c); -3917:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** } -3918:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** -3919:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** else if (hi2c->State == HAL_I2C_STATE_BUSY_RX_LISTEN) -3920:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** { -3921:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** /* Remove HAL_I2C_STATE_SLAVE_BUSY_RX, keep only HAL_I2C_STATE_LISTEN */ -3922:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** hi2c->State = HAL_I2C_STATE_LISTEN; -3923:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** hi2c->PreviousState = I2C_STATE_SLAVE_BUSY_RX; -3924:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** -3925:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** /* Disable Interrupts */ -3926:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** I2C_Disable_IRQ(hi2c, I2C_XFER_RX_IT); -3927:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** -3928:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** /* Process Unlocked */ -3929:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** __HAL_UNLOCK(hi2c); -3930:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** -3931:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** /* Call the Rx complete callback to inform upper layer of the end of receive process */ -3932:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** HAL_I2C_SlaveRxCpltCallback(hi2c); -3933:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** } -3934:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** } -3935:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** -3936:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** /** -3937:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** * @brief I2C Master complete process. -3938:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** * @param hi2c I2C handle. -3939:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** * @param ITFlags Interrupt flags to handle. -3940:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** * @retval None -3941:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** */ -3942:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** static void I2C_ITMasterCplt(I2C_HandleTypeDef *hi2c, uint32_t ITFlags) -3943:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** { -3944:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** /* Clear STOP Flag */ -3945:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** __HAL_I2C_CLEAR_FLAG(hi2c, I2C_FLAG_STOPF); -3946:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** -3947:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** /* Clear Configuration Register 2 */ -3948:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** I2C_RESET_CR2(hi2c); -3949:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** -3950:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** /* Reset handle parameters */ -3951:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** hi2c->PreviousState = I2C_STATE_NONE; -3952:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** hi2c->XferISR = NULL; -3953:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** hi2c->XferOptions = I2C_NO_OPTION_FRAME; -3954:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** -3955:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** if ((ITFlags & I2C_FLAG_AF) != RESET) -3956:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** { -3957:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** /* Clear NACK Flag */ -3958:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** __HAL_I2C_CLEAR_FLAG(hi2c, I2C_FLAG_AF); -3959:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** -3960:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** /* Set acknowledge error code */ -3961:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** hi2c->ErrorCode |= HAL_I2C_ERROR_AF; -3962:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** } -3963:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** -3964:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** /* Flush TX register */ -3965:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** I2C_Flush_TXDR(hi2c); -3966:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** -3967:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** /* Disable Interrupts */ - ARM GAS /tmp/ccTaFl06.s page 71 - - -3968:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** I2C_Disable_IRQ(hi2c, I2C_XFER_TX_IT | I2C_XFER_RX_IT); -3969:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** -3970:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** /* Call the corresponding callback to inform upper layer of End of Transfer */ -3971:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** if ((hi2c->ErrorCode != HAL_I2C_ERROR_NONE) || (hi2c->State == HAL_I2C_STATE_ABORT)) -3972:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** { -3973:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** /* Call the corresponding callback to inform upper layer of End of Transfer */ -3974:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** I2C_ITError(hi2c, hi2c->ErrorCode); -3975:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** } -3976:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** /* hi2c->State == HAL_I2C_STATE_BUSY_TX */ -3977:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** else if (hi2c->State == HAL_I2C_STATE_BUSY_TX) -3978:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** { -3979:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** hi2c->State = HAL_I2C_STATE_READY; -3980:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** -3981:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** if (hi2c->Mode == HAL_I2C_MODE_MEM) -3982:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** { -3983:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** hi2c->Mode = HAL_I2C_MODE_NONE; -3984:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** -3985:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** /* Process Unlocked */ -3986:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** __HAL_UNLOCK(hi2c); -3987:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** -3988:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** /* Call the corresponding callback to inform upper layer of End of Transfer */ -3989:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** HAL_I2C_MemTxCpltCallback(hi2c); -3990:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** } -3991:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** else -3992:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** { -3993:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** hi2c->Mode = HAL_I2C_MODE_NONE; -3994:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** -3995:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** /* Process Unlocked */ -3996:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** __HAL_UNLOCK(hi2c); -3997:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** -3998:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** /* Call the corresponding callback to inform upper layer of End of Transfer */ -3999:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** HAL_I2C_MasterTxCpltCallback(hi2c); -4000:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** } -4001:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** } -4002:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** /* hi2c->State == HAL_I2C_STATE_BUSY_RX */ -4003:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** else if (hi2c->State == HAL_I2C_STATE_BUSY_RX) -4004:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** { -4005:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** hi2c->State = HAL_I2C_STATE_READY; -4006:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** -4007:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** if (hi2c->Mode == HAL_I2C_MODE_MEM) -4008:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** { -4009:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** hi2c->Mode = HAL_I2C_MODE_NONE; -4010:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** -4011:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** /* Process Unlocked */ -4012:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** __HAL_UNLOCK(hi2c); -4013:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** -4014:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** HAL_I2C_MemRxCpltCallback(hi2c); -4015:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** } -4016:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** else -4017:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** { -4018:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** hi2c->Mode = HAL_I2C_MODE_NONE; -4019:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** -4020:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** /* Process Unlocked */ -4021:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** __HAL_UNLOCK(hi2c); -4022:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** -4023:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** HAL_I2C_MasterRxCpltCallback(hi2c); -4024:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** } - ARM GAS /tmp/ccTaFl06.s page 72 - - -4025:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** } -4026:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** } -4027:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** -4028:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** /** -4029:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** * @brief I2C Slave complete process. -4030:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** * @param hi2c I2C handle. -4031:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** * @param ITFlags Interrupt flags to handle. -4032:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** * @retval None -4033:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** */ -4034:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** static void I2C_ITSlaveCplt(I2C_HandleTypeDef *hi2c, uint32_t ITFlags) -4035:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** { -4036:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** /* Clear STOP Flag */ -4037:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** __HAL_I2C_CLEAR_FLAG(hi2c, I2C_FLAG_STOPF); -4038:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** -4039:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** /* Clear ADDR flag */ -4040:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** __HAL_I2C_CLEAR_FLAG(hi2c, I2C_FLAG_ADDR); -4041:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** -4042:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** /* Disable all interrupts */ -4043:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** I2C_Disable_IRQ(hi2c, I2C_XFER_LISTEN_IT | I2C_XFER_TX_IT | I2C_XFER_RX_IT); -4044:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** -4045:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** /* Disable Address Acknowledge */ -4046:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** hi2c->Instance->CR2 |= I2C_CR2_NACK; -4047:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** -4048:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** /* Clear Configuration Register 2 */ -4049:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** I2C_RESET_CR2(hi2c); -4050:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** -4051:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** /* Flush TX register */ -4052:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** I2C_Flush_TXDR(hi2c); -4053:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** -4054:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** /* If a DMA is ongoing, Update handle size context */ -4055:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** if (((hi2c->Instance->CR1 & I2C_CR1_TXDMAEN) == I2C_CR1_TXDMAEN) || -4056:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** ((hi2c->Instance->CR1 & I2C_CR1_RXDMAEN) == I2C_CR1_RXDMAEN)) -4057:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** { -4058:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** hi2c->XferCount = I2C_GET_DMA_REMAIN_DATA(hi2c); -4059:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** } -4060:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** -4061:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** /* All data are not transferred, so set error code accordingly */ -4062:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** if (hi2c->XferCount != 0U) -4063:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** { -4064:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** /* Set ErrorCode corresponding to a Non-Acknowledge */ -4065:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** hi2c->ErrorCode |= HAL_I2C_ERROR_AF; -4066:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** } -4067:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** -4068:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** /* Store Last receive data if any */ -4069:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** if (((ITFlags & I2C_FLAG_RXNE) != RESET)) -4070:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** { -4071:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** /* Read data from RXDR */ -4072:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** (*hi2c->pBuffPtr++) = hi2c->Instance->RXDR; -4073:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** -4074:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** if ((hi2c->XferSize > 0U)) -4075:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** { -4076:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** hi2c->XferSize--; -4077:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** hi2c->XferCount--; -4078:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** -4079:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** /* Set ErrorCode corresponding to a Non-Acknowledge */ -4080:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** hi2c->ErrorCode |= HAL_I2C_ERROR_AF; -4081:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** } - ARM GAS /tmp/ccTaFl06.s page 73 - - -4082:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** } -4083:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** -4084:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** hi2c->PreviousState = I2C_STATE_NONE; -4085:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** hi2c->Mode = HAL_I2C_MODE_NONE; -4086:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** hi2c->XferISR = NULL; -4087:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** -4088:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** if (hi2c->ErrorCode != HAL_I2C_ERROR_NONE) -4089:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** { -4090:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** /* Call the corresponding callback to inform upper layer of End of Transfer */ -4091:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** I2C_ITError(hi2c, hi2c->ErrorCode); -4092:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** -4093:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** /* Call the Listen Complete callback, to inform upper layer of the end of Listen usecase */ -4094:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** if (hi2c->State == HAL_I2C_STATE_LISTEN) -4095:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** { -4096:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** /* Call I2C Listen complete process */ -4097:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** I2C_ITListenCplt(hi2c, ITFlags); -4098:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** } -4099:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** } -4100:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** else if (hi2c->XferOptions != I2C_NO_OPTION_FRAME) -4101:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** { -4102:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** hi2c->XferOptions = I2C_NO_OPTION_FRAME; -4103:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** hi2c->State = HAL_I2C_STATE_READY; -4104:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** -4105:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** /* Process Unlocked */ -4106:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** __HAL_UNLOCK(hi2c); -4107:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** -4108:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** /* Call the Listen Complete callback, to inform upper layer of the end of Listen usecase */ -4109:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** HAL_I2C_ListenCpltCallback(hi2c); -4110:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** } -4111:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** /* Call the corresponding callback to inform upper layer of End of Transfer */ -4112:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** else if (hi2c->State == HAL_I2C_STATE_BUSY_RX) -4113:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** { -4114:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** hi2c->State = HAL_I2C_STATE_READY; -4115:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** -4116:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** /* Process Unlocked */ -4117:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** __HAL_UNLOCK(hi2c); -4118:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** -4119:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** /* Call the Slave Rx Complete callback */ -4120:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** HAL_I2C_SlaveRxCpltCallback(hi2c); -4121:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** } -4122:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** else -4123:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** { -4124:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** hi2c->State = HAL_I2C_STATE_READY; -4125:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** -4126:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** /* Process Unlocked */ -4127:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** __HAL_UNLOCK(hi2c); -4128:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** -4129:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** /* Call the Slave Tx Complete callback */ -4130:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** HAL_I2C_SlaveTxCpltCallback(hi2c); -4131:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** } -4132:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** } -4133:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** -4134:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** /** -4135:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** * @brief I2C Listen complete process. -4136:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** * @param hi2c I2C handle. -4137:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** * @param ITFlags Interrupt flags to handle. -4138:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** * @retval None - ARM GAS /tmp/ccTaFl06.s page 74 - - -4139:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** */ -4140:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** static void I2C_ITListenCplt(I2C_HandleTypeDef *hi2c, uint32_t ITFlags) -4141:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** { -4142:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** /* Reset handle parameters */ -4143:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** hi2c->XferOptions = I2C_NO_OPTION_FRAME; -4144:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** hi2c->PreviousState = I2C_STATE_NONE; -4145:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** hi2c->State = HAL_I2C_STATE_READY; -4146:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** hi2c->Mode = HAL_I2C_MODE_NONE; -4147:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** hi2c->XferISR = NULL; -4148:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** -4149:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** /* Store Last receive data if any */ -4150:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** if (((ITFlags & I2C_FLAG_RXNE) != RESET)) -4151:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** { -4152:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** /* Read data from RXDR */ -4153:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** (*hi2c->pBuffPtr++) = hi2c->Instance->RXDR; -4154:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** -4155:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** if ((hi2c->XferSize > 0U)) -4156:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** { -4157:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** hi2c->XferSize--; -4158:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** hi2c->XferCount--; -4159:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** -4160:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** /* Set ErrorCode corresponding to a Non-Acknowledge */ -4161:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** hi2c->ErrorCode |= HAL_I2C_ERROR_AF; -4162:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** } -4163:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** } -4164:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** -4165:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** /* Disable all Interrupts*/ -4166:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** I2C_Disable_IRQ(hi2c, I2C_XFER_LISTEN_IT | I2C_XFER_RX_IT | I2C_XFER_TX_IT); -4167:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** -4168:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** /* Clear NACK Flag */ -4169:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** __HAL_I2C_CLEAR_FLAG(hi2c, I2C_FLAG_AF); -4170:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** -4171:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** /* Process Unlocked */ -4172:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** __HAL_UNLOCK(hi2c); -4173:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** -4174:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** /* Call the Listen Complete callback, to inform upper layer of the end of Listen usecase */ -4175:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** HAL_I2C_ListenCpltCallback(hi2c); -4176:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** } -4177:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** -4178:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** /** -4179:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** * @brief I2C interrupts error process. -4180:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** * @param hi2c I2C handle. -4181:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** * @param ErrorCode Error code to handle. -4182:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** * @retval None -4183:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** */ -4184:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** static void I2C_ITError(I2C_HandleTypeDef *hi2c, uint32_t ErrorCode) -4185:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** { -4186:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** /* Reset handle parameters */ -4187:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** hi2c->Mode = HAL_I2C_MODE_NONE; -4188:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** hi2c->XferOptions = I2C_NO_OPTION_FRAME; -4189:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** hi2c->XferCount = 0U; -4190:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** -4191:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** /* Set new error code */ -4192:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** hi2c->ErrorCode |= ErrorCode; -4193:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** -4194:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** /* Disable Interrupts */ -4195:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** if ((hi2c->State == HAL_I2C_STATE_LISTEN) || - ARM GAS /tmp/ccTaFl06.s page 75 - - -4196:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** (hi2c->State == HAL_I2C_STATE_BUSY_TX_LISTEN) || -4197:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** (hi2c->State == HAL_I2C_STATE_BUSY_RX_LISTEN)) -4198:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** { -4199:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** /* Disable all interrupts, except interrupts related to LISTEN state */ -4200:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** I2C_Disable_IRQ(hi2c, I2C_XFER_RX_IT | I2C_XFER_TX_IT); -4201:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** -4202:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** /* keep HAL_I2C_STATE_LISTEN if set */ -4203:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** hi2c->State = HAL_I2C_STATE_LISTEN; -4204:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** hi2c->PreviousState = I2C_STATE_NONE; -4205:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** hi2c->XferISR = I2C_Slave_ISR_IT; -4206:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** } -4207:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** else -4208:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** { -4209:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** /* Disable all interrupts */ -4210:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** I2C_Disable_IRQ(hi2c, I2C_XFER_LISTEN_IT | I2C_XFER_RX_IT | I2C_XFER_TX_IT); -4211:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** -4212:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** /* If state is an abort treatment on goind, don't change state */ -4213:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** /* This change will be do later */ -4214:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** if (hi2c->State != HAL_I2C_STATE_ABORT) -4215:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** { -4216:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** /* Set HAL_I2C_STATE_READY */ -4217:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** hi2c->State = HAL_I2C_STATE_READY; -4218:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** } -4219:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** hi2c->PreviousState = I2C_STATE_NONE; -4220:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** hi2c->XferISR = NULL; -4221:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** } -4222:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** -4223:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** /* Abort DMA TX transfer if any */ -4224:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** if ((hi2c->Instance->CR1 & I2C_CR1_TXDMAEN) == I2C_CR1_TXDMAEN) -4225:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** { -4226:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** hi2c->Instance->CR1 &= ~I2C_CR1_TXDMAEN; -4227:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** -4228:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** /* Set the I2C DMA Abort callback : -4229:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** will lead to call HAL_I2C_ErrorCallback() at end of DMA abort procedure */ -4230:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** hi2c->hdmatx->XferAbortCallback = I2C_DMAAbort; -4231:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** -4232:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** /* Process Unlocked */ -4233:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** __HAL_UNLOCK(hi2c); -4234:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** -4235:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** /* Abort DMA TX */ -4236:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** if (HAL_DMA_Abort_IT(hi2c->hdmatx) != HAL_OK) -4237:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** { -4238:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** /* Call Directly XferAbortCallback function in case of error */ -4239:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** hi2c->hdmatx->XferAbortCallback(hi2c->hdmatx); -4240:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** } -4241:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** } -4242:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** /* Abort DMA RX transfer if any */ -4243:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** else if ((hi2c->Instance->CR1 & I2C_CR1_RXDMAEN) == I2C_CR1_RXDMAEN) -4244:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** { -4245:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** hi2c->Instance->CR1 &= ~I2C_CR1_RXDMAEN; -4246:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** -4247:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** /* Set the I2C DMA Abort callback : -4248:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** will lead to call HAL_I2C_ErrorCallback() at end of DMA abort procedure */ -4249:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** hi2c->hdmarx->XferAbortCallback = I2C_DMAAbort; -4250:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** -4251:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** /* Process Unlocked */ -4252:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** __HAL_UNLOCK(hi2c); - ARM GAS /tmp/ccTaFl06.s page 76 - - -4253:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** -4254:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** /* Abort DMA RX */ -4255:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** if (HAL_DMA_Abort_IT(hi2c->hdmarx) != HAL_OK) -4256:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** { -4257:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** /* Call Directly hi2c->hdmarx->XferAbortCallback function in case of error */ -4258:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** hi2c->hdmarx->XferAbortCallback(hi2c->hdmarx); -4259:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** } -4260:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** } -4261:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** else if (hi2c->State == HAL_I2C_STATE_ABORT) -4262:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** { -4263:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** hi2c->State = HAL_I2C_STATE_READY; -4264:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** -4265:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** /* Process Unlocked */ -4266:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** __HAL_UNLOCK(hi2c); -4267:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** -4268:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** /* Call the corresponding callback to inform upper layer of End of Transfer */ -4269:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** HAL_I2C_AbortCpltCallback(hi2c); -4270:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** } -4271:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** else -4272:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** { -4273:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** /* Process Unlocked */ -4274:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** __HAL_UNLOCK(hi2c); -4275:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** -4276:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** /* Call the corresponding callback to inform upper layer of End of Transfer */ -4277:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** HAL_I2C_ErrorCallback(hi2c); -4278:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** } -4279:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** } -4280:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** -4281:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** /** -4282:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** * @brief I2C Tx data register flush process. -4283:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** * @param hi2c I2C handle. -4284:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** * @retval None -4285:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** */ -4286:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** static void I2C_Flush_TXDR(I2C_HandleTypeDef *hi2c) -4287:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** { - 25 .loc 1 4287 0 - 26 .cfi_startproc - 27 @ args = 0, pretend = 0, frame = 0 - 28 @ frame_needed = 0, uses_anonymous_args = 0 - 29 @ link register save eliminated. - 30 .LVL0: -4288:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** /* If a pending TXIS flag is set */ -4289:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** /* Write a dummy data in TXDR to clear it */ -4290:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** if (__HAL_I2C_GET_FLAG(hi2c, I2C_FLAG_TXIS) != RESET) - 31 .loc 1 4290 0 - 32 0000 0368 ldr r3, [r0] - 33 0002 9A69 ldr r2, [r3, #24] - 34 0004 9207 lsls r2, r2, #30 - 35 0006 01D5 bpl .L2 -4291:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** { -4292:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** hi2c->Instance->TXDR = 0x00U; - 36 .loc 1 4292 0 - 37 0008 0022 movs r2, #0 - 38 000a 9A62 str r2, [r3, #40] - 39 .L2: -4293:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** } -4294:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** - ARM GAS /tmp/ccTaFl06.s page 77 - - -4295:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** /* Flush TX register if not empty */ -4296:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** if (__HAL_I2C_GET_FLAG(hi2c, I2C_FLAG_TXE) == RESET) - 40 .loc 1 4296 0 - 41 000c 0368 ldr r3, [r0] - 42 000e 9A69 ldr r2, [r3, #24] - 43 0010 D207 lsls r2, r2, #31 - 44 0012 03D4 bmi .L1 -4297:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** { -4298:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** __HAL_I2C_CLEAR_FLAG(hi2c, I2C_FLAG_TXE); - 45 .loc 1 4298 0 - 46 0014 9A69 ldr r2, [r3, #24] - 47 0016 0121 movs r1, #1 - 48 0018 0A43 orrs r2, r1 - 49 001a 9A61 str r2, [r3, #24] - 50 .L1: -4299:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** } -4300:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** } - 51 .loc 1 4300 0 - 52 @ sp needed - 53 001c 7047 bx lr - 54 .cfi_endproc - 55 .LFE95: - 57 .section .text.I2C_DMASlaveTransmitCplt,"ax",%progbits - 58 .align 1 - 59 .syntax unified - 60 .code 16 - 61 .thumb_func - 62 .fpu softvfp - 64 I2C_DMASlaveTransmitCplt: - 65 .LFB97: -4301:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** -4302:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** /** -4303:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** * @brief DMA I2C master transmit process complete callback. -4304:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** * @param hdma DMA handle -4305:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** * @retval None -4306:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** */ -4307:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** static void I2C_DMAMasterTransmitCplt(DMA_HandleTypeDef *hdma) -4308:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** { -4309:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** I2C_HandleTypeDef *hi2c = (I2C_HandleTypeDef *)((DMA_HandleTypeDef *)hdma)->Parent; -4310:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** -4311:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** /* Disable DMA Request */ -4312:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** hi2c->Instance->CR1 &= ~I2C_CR1_TXDMAEN; -4313:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** -4314:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** /* If last transfer, enable STOP interrupt */ -4315:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** if (hi2c->XferCount == 0U) -4316:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** { -4317:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** /* Enable STOP interrupt */ -4318:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** I2C_Enable_IRQ(hi2c, I2C_XFER_CPLT_IT); -4319:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** } -4320:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** /* else prepare a new DMA transfer and enable TCReload interrupt */ -4321:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** else -4322:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** { -4323:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** /* Update Buffer pointer */ -4324:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** hi2c->pBuffPtr += hi2c->XferSize; -4325:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** -4326:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** /* Set the XferSize to transfer */ -4327:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** if (hi2c->XferCount > MAX_NBYTE_SIZE) - ARM GAS /tmp/ccTaFl06.s page 78 - - -4328:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** { -4329:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** hi2c->XferSize = MAX_NBYTE_SIZE; -4330:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** } -4331:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** else -4332:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** { -4333:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** hi2c->XferSize = hi2c->XferCount; -4334:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** } -4335:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** -4336:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** /* Enable the DMA channel */ -4337:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** HAL_DMA_Start_IT(hi2c->hdmatx, (uint32_t)hi2c->pBuffPtr, (uint32_t)&hi2c->Instance->TXDR, hi2c- -4338:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** -4339:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** /* Enable TC interrupts */ -4340:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** I2C_Enable_IRQ(hi2c, I2C_XFER_RELOAD_IT); -4341:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** } -4342:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** } -4343:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** -4344:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** /** -4345:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** * @brief DMA I2C slave transmit process complete callback. -4346:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** * @param hdma DMA handle -4347:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** * @retval None -4348:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** */ -4349:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** static void I2C_DMASlaveTransmitCplt(DMA_HandleTypeDef *hdma) -4350:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** { - 66 .loc 1 4350 0 - 67 .cfi_startproc - 68 @ args = 0, pretend = 0, frame = 0 - 69 @ frame_needed = 0, uses_anonymous_args = 0 - 70 @ link register save eliminated. - 71 .LVL1: -4351:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** /* Prevent unused argument(s) compilation warning */ -4352:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** UNUSED(hdma); -4353:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** -4354:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** /* No specific action, Master fully manage the generation of STOP condition */ -4355:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** /* Mean that this generation can arrive at any time, at the end or during DMA process */ -4356:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** /* So STOP condition should be manage through Interrupt treatment */ -4357:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** } - 72 .loc 1 4357 0 - 73 @ sp needed - 74 0000 7047 bx lr - 75 .cfi_endproc - 76 .LFE97: - 78 .section .text.I2C_DMASlaveReceiveCplt,"ax",%progbits - 79 .align 1 - 80 .syntax unified - 81 .code 16 - 82 .thumb_func - 83 .fpu softvfp - 85 I2C_DMASlaveReceiveCplt: - 86 .LFB99: -4358:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** -4359:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** /** -4360:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** * @brief DMA I2C master receive process complete callback. -4361:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** * @param hdma DMA handle -4362:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** * @retval None -4363:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** */ -4364:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** static void I2C_DMAMasterReceiveCplt(DMA_HandleTypeDef *hdma) -4365:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** { - ARM GAS /tmp/ccTaFl06.s page 79 - - -4366:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** I2C_HandleTypeDef *hi2c = (I2C_HandleTypeDef *)((DMA_HandleTypeDef *)hdma)->Parent; -4367:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** -4368:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** /* Disable DMA Request */ -4369:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** hi2c->Instance->CR1 &= ~I2C_CR1_RXDMAEN; -4370:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** -4371:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** /* If last transfer, enable STOP interrupt */ -4372:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** if (hi2c->XferCount == 0U) -4373:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** { -4374:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** /* Enable STOP interrupt */ -4375:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** I2C_Enable_IRQ(hi2c, I2C_XFER_CPLT_IT); -4376:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** } -4377:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** /* else prepare a new DMA transfer and enable TCReload interrupt */ -4378:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** else -4379:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** { -4380:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** /* Update Buffer pointer */ -4381:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** hi2c->pBuffPtr += hi2c->XferSize; -4382:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** -4383:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** /* Set the XferSize to transfer */ -4384:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** if (hi2c->XferCount > MAX_NBYTE_SIZE) -4385:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** { -4386:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** hi2c->XferSize = MAX_NBYTE_SIZE; -4387:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** } -4388:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** else -4389:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** { -4390:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** hi2c->XferSize = hi2c->XferCount; -4391:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** } -4392:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** -4393:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** /* Enable the DMA channel */ -4394:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** HAL_DMA_Start_IT(hi2c->hdmarx, (uint32_t)&hi2c->Instance->RXDR, (uint32_t)hi2c->pBuffPtr, hi2c- -4395:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** -4396:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** /* Enable TC interrupts */ -4397:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** I2C_Enable_IRQ(hi2c, I2C_XFER_RELOAD_IT); -4398:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** } -4399:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** } -4400:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** -4401:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** /** -4402:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** * @brief DMA I2C slave receive process complete callback. -4403:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** * @param hdma DMA handle -4404:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** * @retval None -4405:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** */ -4406:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** static void I2C_DMASlaveReceiveCplt(DMA_HandleTypeDef *hdma) -4407:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** { - 87 .loc 1 4407 0 - 88 .cfi_startproc - 89 @ args = 0, pretend = 0, frame = 0 - 90 @ frame_needed = 0, uses_anonymous_args = 0 - 91 @ link register save eliminated. - 92 .LVL2: -4408:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** /* Prevent unused argument(s) compilation warning */ -4409:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** UNUSED(hdma); -4410:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** -4411:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** /* No specific action, Master fully manage the generation of STOP condition */ -4412:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** /* Mean that this generation can arrive at any time, at the end or during DMA process */ -4413:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** /* So STOP condition should be manage through Interrupt treatment */ -4414:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** } - 93 .loc 1 4414 0 - 94 @ sp needed - ARM GAS /tmp/ccTaFl06.s page 80 - - - 95 0000 7047 bx lr - 96 .cfi_endproc - 97 .LFE99: - 99 .section .text.I2C_TransferConfig,"ax",%progbits - 100 .align 1 - 101 .syntax unified - 102 .code 16 - 103 .thumb_func - 104 .fpu softvfp - 106 I2C_TransferConfig: - 107 .LFB107: -4415:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** -4416:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** /** -4417:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** * @brief DMA I2C communication error callback. -4418:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** * @param hdma DMA handle -4419:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** * @retval None -4420:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** */ -4421:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** static void I2C_DMAError(DMA_HandleTypeDef *hdma) -4422:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** { -4423:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** I2C_HandleTypeDef *hi2c = (I2C_HandleTypeDef *)((DMA_HandleTypeDef *)hdma)->Parent; -4424:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** -4425:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** /* Disable Acknowledge */ -4426:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** hi2c->Instance->CR2 |= I2C_CR2_NACK; -4427:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** -4428:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** /* Call the corresponding callback to inform upper layer of End of Transfer */ -4429:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** I2C_ITError(hi2c, HAL_I2C_ERROR_DMA); -4430:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** } -4431:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** -4432:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** /** -4433:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** * @brief DMA I2C communication abort callback -4434:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** * (To be called at end of DMA Abort procedure). -4435:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** * @param hdma DMA handle. -4436:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** * @retval None -4437:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** */ -4438:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** static void I2C_DMAAbort(DMA_HandleTypeDef *hdma) -4439:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** { -4440:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** I2C_HandleTypeDef *hi2c = (I2C_HandleTypeDef *)((DMA_HandleTypeDef *)hdma)->Parent; -4441:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** -4442:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** /* Disable Acknowledge */ -4443:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** hi2c->Instance->CR2 |= I2C_CR2_NACK; -4444:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** -4445:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** /* Reset AbortCpltCallback */ -4446:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** hi2c->hdmatx->XferAbortCallback = NULL; -4447:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** hi2c->hdmarx->XferAbortCallback = NULL; -4448:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** -4449:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** /* Check if come from abort from user */ -4450:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** if (hi2c->State == HAL_I2C_STATE_ABORT) -4451:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** { -4452:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** hi2c->State = HAL_I2C_STATE_READY; -4453:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** -4454:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** /* Call the corresponding callback to inform upper layer of End of Transfer */ -4455:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** HAL_I2C_AbortCpltCallback(hi2c); -4456:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** } -4457:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** else -4458:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** { -4459:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** /* Call the corresponding callback to inform upper layer of End of Transfer */ -4460:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** HAL_I2C_ErrorCallback(hi2c); - ARM GAS /tmp/ccTaFl06.s page 81 - - -4461:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** } -4462:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** } -4463:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** -4464:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** /** -4465:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** * @brief This function handles I2C Communication Timeout. -4466:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** * @param hi2c Pointer to a I2C_HandleTypeDef structure that contains -4467:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** * the configuration information for the specified I2C. -4468:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** * @param Flag Specifies the I2C flag to check. -4469:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** * @param Status The new Flag status (SET or RESET). -4470:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** * @param Timeout Timeout duration -4471:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** * @param Tickstart Tick start value -4472:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** * @retval HAL status -4473:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** */ -4474:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** static HAL_StatusTypeDef I2C_WaitOnFlagUntilTimeout(I2C_HandleTypeDef *hi2c, uint32_t Flag, FlagSta -4475:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** { -4476:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** while (__HAL_I2C_GET_FLAG(hi2c, Flag) == Status) -4477:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** { -4478:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** /* Check for the Timeout */ -4479:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** if (Timeout != HAL_MAX_DELAY) -4480:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** { -4481:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** if ((Timeout == 0U) || ((HAL_GetTick() - Tickstart) > Timeout)) -4482:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** { -4483:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** hi2c->State = HAL_I2C_STATE_READY; -4484:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** hi2c->Mode = HAL_I2C_MODE_NONE; -4485:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** -4486:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** /* Process Unlocked */ -4487:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** __HAL_UNLOCK(hi2c); -4488:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** return HAL_TIMEOUT; -4489:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** } -4490:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** } -4491:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** } -4492:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** return HAL_OK; -4493:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** } -4494:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** -4495:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** /** -4496:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** * @brief This function handles I2C Communication Timeout for specific usage of TXIS flag. -4497:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** * @param hi2c Pointer to a I2C_HandleTypeDef structure that contains -4498:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** * the configuration information for the specified I2C. -4499:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** * @param Timeout Timeout duration -4500:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** * @param Tickstart Tick start value -4501:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** * @retval HAL status -4502:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** */ -4503:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** static HAL_StatusTypeDef I2C_WaitOnTXISFlagUntilTimeout(I2C_HandleTypeDef *hi2c, uint32_t Timeout, -4504:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** { -4505:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** while (__HAL_I2C_GET_FLAG(hi2c, I2C_FLAG_TXIS) == RESET) -4506:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** { -4507:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** /* Check if a NACK is detected */ -4508:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** if (I2C_IsAcknowledgeFailed(hi2c, Timeout, Tickstart) != HAL_OK) -4509:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** { -4510:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** return HAL_ERROR; -4511:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** } -4512:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** -4513:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** /* Check for the Timeout */ -4514:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** if (Timeout != HAL_MAX_DELAY) -4515:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** { -4516:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** if ((Timeout == 0U) || ((HAL_GetTick() - Tickstart) > Timeout)) -4517:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** { - ARM GAS /tmp/ccTaFl06.s page 82 - - -4518:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** hi2c->ErrorCode |= HAL_I2C_ERROR_TIMEOUT; -4519:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** hi2c->State = HAL_I2C_STATE_READY; -4520:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** hi2c->Mode = HAL_I2C_MODE_NONE; -4521:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** -4522:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** /* Process Unlocked */ -4523:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** __HAL_UNLOCK(hi2c); -4524:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** -4525:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** return HAL_TIMEOUT; -4526:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** } -4527:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** } -4528:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** } -4529:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** return HAL_OK; -4530:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** } -4531:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** -4532:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** /** -4533:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** * @brief This function handles I2C Communication Timeout for specific usage of STOP flag. -4534:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** * @param hi2c Pointer to a I2C_HandleTypeDef structure that contains -4535:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** * the configuration information for the specified I2C. -4536:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** * @param Timeout Timeout duration -4537:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** * @param Tickstart Tick start value -4538:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** * @retval HAL status -4539:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** */ -4540:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** static HAL_StatusTypeDef I2C_WaitOnSTOPFlagUntilTimeout(I2C_HandleTypeDef *hi2c, uint32_t Timeout, -4541:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** { -4542:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** while (__HAL_I2C_GET_FLAG(hi2c, I2C_FLAG_STOPF) == RESET) -4543:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** { -4544:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** /* Check if a NACK is detected */ -4545:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** if (I2C_IsAcknowledgeFailed(hi2c, Timeout, Tickstart) != HAL_OK) -4546:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** { -4547:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** return HAL_ERROR; -4548:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** } -4549:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** -4550:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** /* Check for the Timeout */ -4551:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** if ((Timeout == 0U) || ((HAL_GetTick() - Tickstart) > Timeout)) -4552:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** { -4553:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** hi2c->ErrorCode |= HAL_I2C_ERROR_TIMEOUT; -4554:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** hi2c->State = HAL_I2C_STATE_READY; -4555:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** hi2c->Mode = HAL_I2C_MODE_NONE; -4556:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** -4557:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** /* Process Unlocked */ -4558:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** __HAL_UNLOCK(hi2c); -4559:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** -4560:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** return HAL_TIMEOUT; -4561:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** } -4562:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** } -4563:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** return HAL_OK; -4564:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** } -4565:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** -4566:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** /** -4567:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** * @brief This function handles I2C Communication Timeout for specific usage of RXNE flag. -4568:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** * @param hi2c Pointer to a I2C_HandleTypeDef structure that contains -4569:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** * the configuration information for the specified I2C. -4570:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** * @param Timeout Timeout duration -4571:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** * @param Tickstart Tick start value -4572:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** * @retval HAL status -4573:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** */ -4574:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** static HAL_StatusTypeDef I2C_WaitOnRXNEFlagUntilTimeout(I2C_HandleTypeDef *hi2c, uint32_t Timeout, - ARM GAS /tmp/ccTaFl06.s page 83 - - -4575:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** { -4576:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** while (__HAL_I2C_GET_FLAG(hi2c, I2C_FLAG_RXNE) == RESET) -4577:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** { -4578:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** /* Check if a NACK is detected */ -4579:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** if (I2C_IsAcknowledgeFailed(hi2c, Timeout, Tickstart) != HAL_OK) -4580:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** { -4581:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** return HAL_ERROR; -4582:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** } -4583:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** -4584:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** /* Check if a STOPF is detected */ -4585:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** if (__HAL_I2C_GET_FLAG(hi2c, I2C_FLAG_STOPF) == SET) -4586:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** { -4587:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** /* Clear STOP Flag */ -4588:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** __HAL_I2C_CLEAR_FLAG(hi2c, I2C_FLAG_STOPF); -4589:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** -4590:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** /* Clear Configuration Register 2 */ -4591:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** I2C_RESET_CR2(hi2c); -4592:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** -4593:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** hi2c->ErrorCode = HAL_I2C_ERROR_NONE; -4594:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** hi2c->State = HAL_I2C_STATE_READY; -4595:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** hi2c->Mode = HAL_I2C_MODE_NONE; -4596:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** -4597:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** /* Process Unlocked */ -4598:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** __HAL_UNLOCK(hi2c); -4599:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** -4600:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** return HAL_ERROR; -4601:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** } -4602:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** -4603:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** /* Check for the Timeout */ -4604:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** if ((Timeout == 0U) || ((HAL_GetTick() - Tickstart) > Timeout)) -4605:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** { -4606:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** hi2c->ErrorCode |= HAL_I2C_ERROR_TIMEOUT; -4607:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** hi2c->State = HAL_I2C_STATE_READY; -4608:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** -4609:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** /* Process Unlocked */ -4610:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** __HAL_UNLOCK(hi2c); -4611:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** -4612:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** return HAL_TIMEOUT; -4613:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** } -4614:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** } -4615:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** return HAL_OK; -4616:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** } -4617:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** -4618:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** /** -4619:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** * @brief This function handles Acknowledge failed detection during an I2C Communication. -4620:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** * @param hi2c Pointer to a I2C_HandleTypeDef structure that contains -4621:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** * the configuration information for the specified I2C. -4622:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** * @param Timeout Timeout duration -4623:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** * @param Tickstart Tick start value -4624:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** * @retval HAL status -4625:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** */ -4626:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** static HAL_StatusTypeDef I2C_IsAcknowledgeFailed(I2C_HandleTypeDef *hi2c, uint32_t Timeout, uint32_ -4627:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** { -4628:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** if (__HAL_I2C_GET_FLAG(hi2c, I2C_FLAG_AF) == SET) -4629:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** { -4630:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** /* Wait until STOP Flag is reset */ -4631:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** /* AutoEnd should be initiate after AF */ - ARM GAS /tmp/ccTaFl06.s page 84 - - -4632:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** while (__HAL_I2C_GET_FLAG(hi2c, I2C_FLAG_STOPF) == RESET) -4633:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** { -4634:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** /* Check for the Timeout */ -4635:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** if (Timeout != HAL_MAX_DELAY) -4636:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** { -4637:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** if ((Timeout == 0U) || ((HAL_GetTick() - Tickstart) > Timeout)) -4638:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** { -4639:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** hi2c->State = HAL_I2C_STATE_READY; -4640:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** hi2c->Mode = HAL_I2C_MODE_NONE; -4641:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** -4642:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** /* Process Unlocked */ -4643:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** __HAL_UNLOCK(hi2c); -4644:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** return HAL_TIMEOUT; -4645:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** } -4646:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** } -4647:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** } -4648:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** -4649:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** /* Clear NACKF Flag */ -4650:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** __HAL_I2C_CLEAR_FLAG(hi2c, I2C_FLAG_AF); -4651:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** -4652:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** /* Clear STOP Flag */ -4653:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** __HAL_I2C_CLEAR_FLAG(hi2c, I2C_FLAG_STOPF); -4654:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** -4655:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** /* Flush TX register */ -4656:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** I2C_Flush_TXDR(hi2c); -4657:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** -4658:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** /* Clear Configuration Register 2 */ -4659:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** I2C_RESET_CR2(hi2c); -4660:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** -4661:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** hi2c->ErrorCode = HAL_I2C_ERROR_AF; -4662:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** hi2c->State = HAL_I2C_STATE_READY; -4663:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** hi2c->Mode = HAL_I2C_MODE_NONE; -4664:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** -4665:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** /* Process Unlocked */ -4666:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** __HAL_UNLOCK(hi2c); -4667:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** -4668:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** return HAL_ERROR; -4669:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** } -4670:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** return HAL_OK; -4671:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** } -4672:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** -4673:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** /** -4674:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** * @brief Handles I2Cx communication when starting transfer or during transfer (TC or TCR flag ar -4675:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** * @param hi2c I2C handle. -4676:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** * @param DevAddress Specifies the slave address to be programmed. -4677:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** * @param Size Specifies the number of bytes to be programmed. -4678:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** * This parameter must be a value between 0 and 255. -4679:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** * @param Mode New state of the I2C START condition generation. -4680:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** * This parameter can be one of the following values: -4681:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** * @arg @ref I2C_RELOAD_MODE Enable Reload mode . -4682:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** * @arg @ref I2C_AUTOEND_MODE Enable Automatic end mode. -4683:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** * @arg @ref I2C_SOFTEND_MODE Enable Software end mode. -4684:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** * @param Request New state of the I2C START condition generation. -4685:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** * This parameter can be one of the following values: -4686:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** * @arg @ref I2C_NO_STARTSTOP Don't Generate stop and start condition. -4687:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** * @arg @ref I2C_GENERATE_STOP Generate stop condition (Size should be set to 0). -4688:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** * @arg @ref I2C_GENERATE_START_READ Generate Restart for read request. - ARM GAS /tmp/ccTaFl06.s page 85 - - -4689:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** * @arg @ref I2C_GENERATE_START_WRITE Generate Restart for write request. -4690:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** * @retval None -4691:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** */ -4692:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** static void I2C_TransferConfig(I2C_HandleTypeDef *hi2c, uint16_t DevAddress, uint8_t Size, uint32_ -4693:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** { - 108 .loc 1 4693 0 - 109 .cfi_startproc - 110 @ args = 4, pretend = 0, frame = 0 - 111 @ frame_needed = 0, uses_anonymous_args = 0 - 112 .LVL3: - 113 0000 30B5 push {r4, r5, lr} - 114 .LCFI0: - 115 .cfi_def_cfa_offset 12 - 116 .cfi_offset 4, -12 - 117 .cfi_offset 5, -8 - 118 .cfi_offset 14, -4 - 119 0002 1D00 movs r5, r3 - 120 .LVL4: -4694:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** uint32_t tmpreg = 0U; -4695:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** -4696:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** /* Check the parameters */ -4697:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** assert_param(IS_I2C_ALL_INSTANCE(hi2c->Instance)); -4698:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** assert_param(IS_TRANSFER_MODE(Mode)); -4699:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** assert_param(IS_TRANSFER_REQUEST(Request)); -4700:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** -4701:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** /* Get the CR2 register value */ -4702:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** tmpreg = hi2c->Instance->CR2; - 121 .loc 1 4702 0 - 122 0004 0468 ldr r4, [r0] - 123 0006 6068 ldr r0, [r4, #4] - 124 .LVL5: -4703:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** -4704:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** /* clear tmpreg specific bits */ -4705:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** tmpreg &= (uint32_t)~((uint32_t)(I2C_CR2_SADD | I2C_CR2_NBYTES | I2C_CR2_RELOAD | I2C_CR2_AUTOEND - 125 .loc 1 4705 0 - 126 0008 064B ldr r3, .L7 - 127 .LVL6: - 128 000a 1840 ands r0, r3 - 129 .LVL7: -4706:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** -4707:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** /* update tmpreg */ -4708:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** tmpreg |= (uint32_t)(((uint32_t)DevAddress & I2C_CR2_SADD) | (((uint32_t)Size << 16) & I2C_CR2_NB - 130 .loc 1 4708 0 - 131 000c 8905 lsls r1, r1, #22 - 132 .LVL8: - 133 000e 890D lsrs r1, r1, #22 - 134 0010 1204 lsls r2, r2, #16 - 135 .LVL9: - 136 0012 0B00 movs r3, r1 - 137 0014 1343 orrs r3, r2 - 138 0016 2B43 orrs r3, r5 - 139 0018 039A ldr r2, [sp, #12] - 140 001a 1343 orrs r3, r2 - 141 001c 0343 orrs r3, r0 - 142 .LVL10: -4709:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** (uint32_t)Mode | (uint32_t)Request); -4710:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** - ARM GAS /tmp/ccTaFl06.s page 86 - - -4711:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** /* update CR2 register */ -4712:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** hi2c->Instance->CR2 = tmpreg; - 143 .loc 1 4712 0 - 144 001e 6360 str r3, [r4, #4] -4713:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** } - 145 .loc 1 4713 0 - 146 @ sp needed - 147 .LVL11: - 148 0020 30BD pop {r4, r5, pc} - 149 .L8: - 150 0022 C046 .align 2 - 151 .L7: - 152 0024 009800FC .word -67069952 - 153 .cfi_endproc - 154 .LFE107: - 156 .section .text.I2C_Enable_IRQ,"ax",%progbits - 157 .align 1 - 158 .syntax unified - 159 .code 16 - 160 .thumb_func - 161 .fpu softvfp - 163 I2C_Enable_IRQ: - 164 .LFB108: -4714:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** -4715:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** /** -4716:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** * @brief Manage the enabling of Interrupts. -4717:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** * @param hi2c Pointer to a I2C_HandleTypeDef structure that contains -4718:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** * the configuration information for the specified I2C. -4719:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** * @param InterruptRequest Value of @ref I2C_Interrupt_configuration_definition. -4720:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** * @retval HAL status -4721:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** */ -4722:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** static HAL_StatusTypeDef I2C_Enable_IRQ(I2C_HandleTypeDef *hi2c, uint16_t InterruptRequest) -4723:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** { - 165 .loc 1 4723 0 - 166 .cfi_startproc - 167 @ args = 0, pretend = 0, frame = 0 - 168 @ frame_needed = 0, uses_anonymous_args = 0 - 169 @ link register save eliminated. - 170 .LVL12: -4724:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** uint32_t tmpisr = 0U; -4725:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** -4726:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** if ((hi2c->XferISR == I2C_Master_ISR_DMA) || \ - 171 .loc 1 4726 0 - 172 0000 436B ldr r3, [r0, #52] - 173 0002 1C4A ldr r2, .L24 - 174 0004 9342 cmp r3, r2 - 175 0006 14D0 beq .L10 - 176 .loc 1 4726 0 is_stmt 0 discriminator 1 - 177 0008 1B4A ldr r2, .L24+4 - 178 000a 9342 cmp r3, r2 - 179 000c 11D0 beq .L10 -4727:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** (hi2c->XferISR == I2C_Slave_ISR_DMA)) -4728:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** { -4729:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** if ((InterruptRequest & I2C_XFER_LISTEN_IT) == I2C_XFER_LISTEN_IT) -4730:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** { -4731:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** /* Enable ERR, STOP, NACK and ADDR interrupts */ -4732:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** tmpisr |= I2C_IT_ADDRI | I2C_IT_STOPI | I2C_IT_NACKI | I2C_IT_ERRI; - ARM GAS /tmp/ccTaFl06.s page 87 - - -4733:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** } -4734:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** -4735:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** if ((InterruptRequest & I2C_XFER_ERROR_IT) == I2C_XFER_ERROR_IT) -4736:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** { -4737:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** /* Enable ERR and NACK interrupts */ -4738:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** tmpisr |= I2C_IT_ERRI | I2C_IT_NACKI; -4739:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** } -4740:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** -4741:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** if ((InterruptRequest & I2C_XFER_CPLT_IT) == I2C_XFER_CPLT_IT) -4742:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** { -4743:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** /* Enable STOP interrupts */ -4744:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** tmpisr |= I2C_IT_STOPI; -4745:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** } -4746:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** -4747:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** if ((InterruptRequest & I2C_XFER_RELOAD_IT) == I2C_XFER_RELOAD_IT) -4748:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** { -4749:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** /* Enable TC interrupts */ -4750:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** tmpisr |= I2C_IT_TCI; -4751:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** } -4752:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** } -4753:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** else -4754:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** { -4755:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** if ((InterruptRequest & I2C_XFER_LISTEN_IT) == I2C_XFER_LISTEN_IT) - 180 .loc 1 4755 0 is_stmt 1 - 181 000e 4B07 lsls r3, r1, #29 - 182 0010 2DD4 bmi .L20 -4724:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** uint32_t tmpisr = 0U; - 183 .loc 1 4724 0 - 184 0012 0023 movs r3, #0 - 185 .L16: - 186 .LVL13: -4756:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** { -4757:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** /* Enable ERR, STOP, NACK, and ADDR interrupts */ -4758:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** tmpisr |= I2C_IT_ADDRI | I2C_IT_STOPI | I2C_IT_NACKI | I2C_IT_ERRI; -4759:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** } -4760:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** -4761:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** if ((InterruptRequest & I2C_XFER_TX_IT) == I2C_XFER_TX_IT) - 187 .loc 1 4761 0 - 188 0014 CA07 lsls r2, r1, #31 - 189 0016 01D5 bpl .L17 -4762:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** { -4763:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** /* Enable ERR, TC, STOP, NACK and RXI interrupts */ -4764:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** tmpisr |= I2C_IT_ERRI | I2C_IT_TCI | I2C_IT_STOPI | I2C_IT_NACKI | I2C_IT_TXI; - 190 .loc 1 4764 0 - 191 0018 F222 movs r2, #242 - 192 001a 1343 orrs r3, r2 - 193 .LVL14: - 194 .L17: -4765:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** } -4766:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** -4767:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** if ((InterruptRequest & I2C_XFER_RX_IT) == I2C_XFER_RX_IT) - 195 .loc 1 4767 0 - 196 001c 8A07 lsls r2, r1, #30 - 197 001e 01D5 bpl .L18 -4768:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** { -4769:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** /* Enable ERR, TC, STOP, NACK and TXI interrupts */ -4770:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** tmpisr |= I2C_IT_ERRI | I2C_IT_TCI | I2C_IT_STOPI | I2C_IT_NACKI | I2C_IT_RXI; - ARM GAS /tmp/ccTaFl06.s page 88 - - - 198 .loc 1 4770 0 - 199 0020 F422 movs r2, #244 - 200 0022 1343 orrs r3, r2 - 201 .LVL15: - 202 .L18: -4771:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** } -4772:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** -4773:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** if ((InterruptRequest & I2C_XFER_CPLT_IT) == I2C_XFER_CPLT_IT) - 203 .loc 1 4773 0 - 204 0024 1222 movs r2, #18 - 205 0026 1140 ands r1, r2 - 206 .LVL16: - 207 0028 1229 cmp r1, #18 - 208 002a 0FD1 bne .L15 -4774:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** { -4775:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** /* Enable STOP interrupts */ -4776:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** tmpisr |= I2C_IT_STOPI; - 209 .loc 1 4776 0 - 210 002c 0E32 adds r2, r2, #14 - 211 002e 1343 orrs r3, r2 - 212 .LVL17: - 213 0030 0CE0 b .L15 - 214 .LVL18: - 215 .L10: -4729:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** { - 216 .loc 1 4729 0 - 217 0032 4B07 lsls r3, r1, #29 - 218 0034 10D4 bmi .L19 -4724:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** - 219 .loc 1 4724 0 - 220 0036 0023 movs r3, #0 - 221 .L12: - 222 .LVL19: -4735:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** { - 223 .loc 1 4735 0 - 224 0038 1122 movs r2, #17 - 225 003a 0A40 ands r2, r1 - 226 003c 112A cmp r2, #17 - 227 003e 0DD0 beq .L21 - 228 .L13: - 229 0040 1222 movs r2, #18 - 230 0042 1140 ands r1, r2 - 231 .LVL20: -4741:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** { - 232 .loc 1 4741 0 - 233 0044 1229 cmp r1, #18 - 234 0046 0CD0 beq .L22 - 235 .L14: -4747:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** { - 236 .loc 1 4747 0 - 237 0048 1229 cmp r1, #18 - 238 004a 0DD0 beq .L23 - 239 .L15: -4777:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** } -4778:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** } -4779:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** -4780:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** /* Enable interrupts only at the end */ - ARM GAS /tmp/ccTaFl06.s page 89 - - -4781:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** /* to avoid the risk of I2C interrupt handle execution before */ -4782:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** /* all interrupts requested done */ -4783:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** __HAL_I2C_ENABLE_IT(hi2c, tmpisr); - 240 .loc 1 4783 0 - 241 004c 0168 ldr r1, [r0] - 242 004e 0A68 ldr r2, [r1] - 243 0050 1343 orrs r3, r2 - 244 .LVL21: - 245 0052 0B60 str r3, [r1] -4784:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** -4785:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** return HAL_OK; -4786:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** } - 246 .loc 1 4786 0 - 247 0054 0020 movs r0, #0 - 248 .LVL22: - 249 @ sp needed - 250 0056 7047 bx lr - 251 .LVL23: - 252 .L19: -4732:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** } - 253 .loc 1 4732 0 - 254 0058 B823 movs r3, #184 - 255 005a EDE7 b .L12 - 256 .LVL24: - 257 .L21: -4738:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** } - 258 .loc 1 4738 0 - 259 005c 7F32 adds r2, r2, #127 - 260 005e 1343 orrs r3, r2 - 261 .LVL25: - 262 0060 EEE7 b .L13 - 263 .LVL26: - 264 .L22: -4744:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** } - 265 .loc 1 4744 0 - 266 0062 0E32 adds r2, r2, #14 - 267 0064 1343 orrs r3, r2 - 268 .LVL27: - 269 0066 EFE7 b .L14 - 270 .L23: -4750:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** } - 271 .loc 1 4750 0 - 272 0068 4022 movs r2, #64 - 273 006a 1343 orrs r3, r2 - 274 .LVL28: - 275 006c EEE7 b .L15 - 276 .LVL29: - 277 .L20: -4758:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** } - 278 .loc 1 4758 0 - 279 006e B823 movs r3, #184 - 280 0070 D0E7 b .L16 - 281 .L25: - 282 0072 C046 .align 2 - 283 .L24: - 284 0074 00000000 .word I2C_Master_ISR_DMA - 285 0078 00000000 .word I2C_Slave_ISR_DMA - ARM GAS /tmp/ccTaFl06.s page 90 - - - 286 .cfi_endproc - 287 .LFE108: - 289 .section .text.I2C_Disable_IRQ,"ax",%progbits - 290 .align 1 - 291 .syntax unified - 292 .code 16 - 293 .thumb_func - 294 .fpu softvfp - 296 I2C_Disable_IRQ: - 297 .LFB109: -4787:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** -4788:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** /** -4789:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** * @brief Manage the disabling of Interrupts. -4790:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** * @param hi2c Pointer to a I2C_HandleTypeDef structure that contains -4791:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** * the configuration information for the specified I2C. -4792:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** * @param InterruptRequest Value of @ref I2C_Interrupt_configuration_definition. -4793:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** * @retval HAL status -4794:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** */ -4795:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** static HAL_StatusTypeDef I2C_Disable_IRQ(I2C_HandleTypeDef *hi2c, uint16_t InterruptRequest) -4796:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** { - 298 .loc 1 4796 0 - 299 .cfi_startproc - 300 @ args = 0, pretend = 0, frame = 0 - 301 @ frame_needed = 0, uses_anonymous_args = 0 - 302 .LVL30: - 303 0000 30B5 push {r4, r5, lr} - 304 .LCFI1: - 305 .cfi_def_cfa_offset 12 - 306 .cfi_offset 4, -12 - 307 .cfi_offset 5, -8 - 308 .cfi_offset 14, -4 - 309 .LVL31: -4797:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** uint32_t tmpisr = 0U; -4798:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** -4799:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** if ((InterruptRequest & I2C_XFER_TX_IT) == I2C_XFER_TX_IT) - 310 .loc 1 4799 0 - 311 0002 CB07 lsls r3, r1, #31 - 312 0004 09D5 bpl .L33 - 313 .LVL32: -4800:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** { -4801:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** /* Disable TC and TXI interrupts */ -4802:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** tmpisr |= I2C_IT_TCI | I2C_IT_TXI; -4803:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** -4804:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** if ((hi2c->State & HAL_I2C_STATE_LISTEN) != HAL_I2C_STATE_LISTEN) - 314 .loc 1 4804 0 - 315 0006 4123 movs r3, #65 - 316 0008 C35C ldrb r3, [r0, r3] - 317 000a 2822 movs r2, #40 - 318 000c 1340 ands r3, r2 - 319 000e 282B cmp r3, #40 - 320 0010 01D0 beq .L36 -4805:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** { -4806:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** /* Disable NACK and STOP interrupts */ -4807:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** tmpisr |= I2C_IT_STOPI | I2C_IT_NACKI | I2C_IT_ERRI; - 321 .loc 1 4807 0 - 322 0012 F223 movs r3, #242 - 323 0014 02E0 b .L27 - ARM GAS /tmp/ccTaFl06.s page 91 - - - 324 .L36: -4802:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** - 325 .loc 1 4802 0 - 326 0016 1A33 adds r3, r3, #26 - 327 0018 00E0 b .L27 - 328 .LVL33: - 329 .L33: -4797:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** - 330 .loc 1 4797 0 - 331 001a 0023 movs r3, #0 - 332 .LVL34: - 333 .L27: -4808:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** } -4809:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** } -4810:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** -4811:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** if ((InterruptRequest & I2C_XFER_RX_IT) == I2C_XFER_RX_IT) - 334 .loc 1 4811 0 - 335 001c 8A07 lsls r2, r1, #30 - 336 001e 09D5 bpl .L28 -4812:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** { -4813:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** /* Disable TC and RXI interrupts */ -4814:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** tmpisr |= I2C_IT_TCI | I2C_IT_RXI; - 337 .loc 1 4814 0 - 338 0020 4424 movs r4, #68 - 339 0022 1C43 orrs r4, r3 - 340 .LVL35: -4815:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** -4816:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** if ((hi2c->State & HAL_I2C_STATE_LISTEN) != HAL_I2C_STATE_LISTEN) - 341 .loc 1 4816 0 - 342 0024 4122 movs r2, #65 - 343 0026 825C ldrb r2, [r0, r2] - 344 0028 2825 movs r5, #40 - 345 002a 2A40 ands r2, r5 - 346 002c 282A cmp r2, #40 - 347 002e 15D0 beq .L35 -4817:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** { -4818:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** /* Disable NACK and STOP interrupts */ -4819:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** tmpisr |= I2C_IT_STOPI | I2C_IT_NACKI | I2C_IT_ERRI; - 348 .loc 1 4819 0 - 349 0030 F422 movs r2, #244 - 350 0032 1343 orrs r3, r2 - 351 .LVL36: - 352 .L28: -4820:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** } -4821:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** } -4822:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** -4823:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** if ((InterruptRequest & I2C_XFER_LISTEN_IT) == I2C_XFER_LISTEN_IT) - 353 .loc 1 4823 0 - 354 0034 4A07 lsls r2, r1, #29 - 355 0036 01D5 bpl .L29 -4824:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** { -4825:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** /* Disable ADDR, NACK and STOP interrupts */ -4826:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** tmpisr |= I2C_IT_ADDRI | I2C_IT_STOPI | I2C_IT_NACKI | I2C_IT_ERRI; - 356 .loc 1 4826 0 - 357 0038 B822 movs r2, #184 - 358 003a 1343 orrs r3, r2 - 359 .LVL37: - ARM GAS /tmp/ccTaFl06.s page 92 - - - 360 .L29: -4827:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** } -4828:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** -4829:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** if ((InterruptRequest & I2C_XFER_ERROR_IT) == I2C_XFER_ERROR_IT) - 361 .loc 1 4829 0 - 362 003c 1122 movs r2, #17 - 363 003e 0A40 ands r2, r1 - 364 0040 112A cmp r2, #17 - 365 0042 0DD0 beq .L37 - 366 .L30: - 367 0044 1222 movs r2, #18 - 368 0046 1140 ands r1, r2 - 369 .LVL38: -4830:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** { -4831:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** /* Enable ERR and NACK interrupts */ -4832:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** tmpisr |= I2C_IT_ERRI | I2C_IT_NACKI; -4833:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** } -4834:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** -4835:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** if ((InterruptRequest & I2C_XFER_CPLT_IT) == I2C_XFER_CPLT_IT) - 370 .loc 1 4835 0 - 371 0048 1229 cmp r1, #18 - 372 004a 0CD0 beq .L38 - 373 .L31: -4836:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** { -4837:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** /* Enable STOP interrupts */ -4838:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** tmpisr |= I2C_IT_STOPI; -4839:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** } -4840:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** -4841:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** if ((InterruptRequest & I2C_XFER_RELOAD_IT) == I2C_XFER_RELOAD_IT) - 374 .loc 1 4841 0 - 375 004c 1229 cmp r1, #18 - 376 004e 0DD0 beq .L39 - 377 .L32: -4842:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** { -4843:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** /* Enable TC interrupts */ -4844:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** tmpisr |= I2C_IT_TCI; -4845:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** } -4846:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** -4847:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** /* Disable interrupts only at the end */ -4848:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** /* to avoid a breaking situation like at "t" time */ -4849:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** /* all disable interrupts request are not done */ -4850:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** __HAL_I2C_DISABLE_IT(hi2c, tmpisr); - 378 .loc 1 4850 0 - 379 0050 0168 ldr r1, [r0] - 380 0052 0A68 ldr r2, [r1] - 381 0054 9A43 bics r2, r3 - 382 0056 0A60 str r2, [r1] -4851:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** -4852:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** return HAL_OK; -4853:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** } - 383 .loc 1 4853 0 - 384 0058 0020 movs r0, #0 - 385 .LVL39: - 386 @ sp needed - 387 005a 30BD pop {r4, r5, pc} - 388 .LVL40: - 389 .L35: - ARM GAS /tmp/ccTaFl06.s page 93 - - -4814:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** - 390 .loc 1 4814 0 - 391 005c 2300 movs r3, r4 - 392 005e E9E7 b .L28 - 393 .LVL41: - 394 .L37: -4832:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** } - 395 .loc 1 4832 0 - 396 0060 7F32 adds r2, r2, #127 - 397 0062 1343 orrs r3, r2 - 398 .LVL42: - 399 0064 EEE7 b .L30 - 400 .LVL43: - 401 .L38: -4838:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** } - 402 .loc 1 4838 0 - 403 0066 0E32 adds r2, r2, #14 - 404 0068 1343 orrs r3, r2 - 405 .LVL44: - 406 006a EFE7 b .L31 - 407 .L39: -4844:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** } - 408 .loc 1 4844 0 - 409 006c 4022 movs r2, #64 - 410 006e 1343 orrs r3, r2 - 411 .LVL45: - 412 0070 EEE7 b .L32 - 413 .cfi_endproc - 414 .LFE109: - 416 .section .text.I2C_IsAcknowledgeFailed,"ax",%progbits - 417 .align 1 - 418 .syntax unified - 419 .code 16 - 420 .thumb_func - 421 .fpu softvfp - 423 I2C_IsAcknowledgeFailed: - 424 .LFB106: -4627:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** if (__HAL_I2C_GET_FLAG(hi2c, I2C_FLAG_AF) == SET) - 425 .loc 1 4627 0 - 426 .cfi_startproc - 427 @ args = 0, pretend = 0, frame = 0 - 428 @ frame_needed = 0, uses_anonymous_args = 0 - 429 .LVL46: - 430 0000 70B5 push {r4, r5, r6, lr} - 431 .LCFI2: - 432 .cfi_def_cfa_offset 16 - 433 .cfi_offset 4, -16 - 434 .cfi_offset 5, -12 - 435 .cfi_offset 6, -8 - 436 .cfi_offset 14, -4 - 437 0002 0400 movs r4, r0 - 438 0004 0E00 movs r6, r1 - 439 0006 1500 movs r5, r2 -4628:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** { - 440 .loc 1 4628 0 - 441 0008 0368 ldr r3, [r0] - 442 000a 9B69 ldr r3, [r3, #24] - ARM GAS /tmp/ccTaFl06.s page 94 - - - 443 000c DB06 lsls r3, r3, #27 - 444 000e 16D5 bpl .L46 - 445 .LVL47: - 446 .L43: -4632:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** { - 447 .loc 1 4632 0 - 448 0010 2368 ldr r3, [r4] - 449 0012 9A69 ldr r2, [r3, #24] - 450 0014 9206 lsls r2, r2, #26 - 451 0016 14D4 bmi .L47 -4635:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** { - 452 .loc 1 4635 0 - 453 0018 731C adds r3, r6, #1 - 454 001a F9D0 beq .L43 -4637:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** { - 455 .loc 1 4637 0 - 456 001c 002E cmp r6, #0 - 457 001e 04D0 beq .L44 -4637:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** { - 458 .loc 1 4637 0 is_stmt 0 discriminator 1 - 459 0020 FFF7FEFF bl HAL_GetTick - 460 .LVL48: - 461 0024 401B subs r0, r0, r5 - 462 0026 B042 cmp r0, r6 - 463 0028 F2D9 bls .L43 - 464 .L44: -4639:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** hi2c->Mode = HAL_I2C_MODE_NONE; - 465 .loc 1 4639 0 is_stmt 1 - 466 002a 4123 movs r3, #65 - 467 002c 2022 movs r2, #32 - 468 002e E254 strb r2, [r4, r3] -4640:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** - 469 .loc 1 4640 0 - 470 0030 0023 movs r3, #0 - 471 0032 2232 adds r2, r2, #34 - 472 0034 A354 strb r3, [r4, r2] -4643:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** return HAL_TIMEOUT; - 473 .loc 1 4643 0 - 474 0036 023A subs r2, r2, #2 - 475 0038 A354 strb r3, [r4, r2] -4644:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** } - 476 .loc 1 4644 0 - 477 003a 0320 movs r0, #3 - 478 003c 18E0 b .L42 - 479 .LVL49: - 480 .L46: -4670:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** } - 481 .loc 1 4670 0 - 482 003e 0020 movs r0, #0 - 483 .LVL50: - 484 0040 16E0 b .L42 - 485 .LVL51: - 486 .L47: -4650:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** - 487 .loc 1 4650 0 - 488 0042 1022 movs r2, #16 - 489 0044 DA61 str r2, [r3, #28] - ARM GAS /tmp/ccTaFl06.s page 95 - - -4653:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** - 490 .loc 1 4653 0 - 491 0046 2368 ldr r3, [r4] - 492 0048 2025 movs r5, #32 - 493 .LVL52: - 494 004a DD61 str r5, [r3, #28] -4656:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** - 495 .loc 1 4656 0 - 496 004c 2000 movs r0, r4 - 497 004e FFF7FEFF bl I2C_Flush_TXDR - 498 .LVL53: -4659:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** - 499 .loc 1 4659 0 - 500 0052 2268 ldr r2, [r4] - 501 0054 5368 ldr r3, [r2, #4] - 502 0056 0749 ldr r1, .L48 - 503 0058 0B40 ands r3, r1 - 504 005a 5360 str r3, [r2, #4] -4661:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** hi2c->State = HAL_I2C_STATE_READY; - 505 .loc 1 4661 0 - 506 005c 0423 movs r3, #4 - 507 005e 6364 str r3, [r4, #68] -4662:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** hi2c->Mode = HAL_I2C_MODE_NONE; - 508 .loc 1 4662 0 - 509 0060 3D33 adds r3, r3, #61 - 510 0062 E554 strb r5, [r4, r3] -4663:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** - 511 .loc 1 4663 0 - 512 0064 0023 movs r3, #0 - 513 0066 4222 movs r2, #66 - 514 0068 A354 strb r3, [r4, r2] -4666:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** - 515 .loc 1 4666 0 - 516 006a 023A subs r2, r2, #2 - 517 006c A354 strb r3, [r4, r2] -4668:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** } - 518 .loc 1 4668 0 - 519 006e 0120 movs r0, #1 - 520 .L42: -4671:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** - 521 .loc 1 4671 0 - 522 @ sp needed - 523 .LVL54: - 524 .LVL55: - 525 0070 70BD pop {r4, r5, r6, pc} - 526 .L49: - 527 0072 C046 .align 2 - 528 .L48: - 529 0074 00E800FE .word -33495040 - 530 .cfi_endproc - 531 .LFE106: - 533 .section .text.I2C_WaitOnTXISFlagUntilTimeout,"ax",%progbits - 534 .align 1 - 535 .syntax unified - 536 .code 16 - 537 .thumb_func - 538 .fpu softvfp - ARM GAS /tmp/ccTaFl06.s page 96 - - - 540 I2C_WaitOnTXISFlagUntilTimeout: - 541 .LFB103: -4504:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** while (__HAL_I2C_GET_FLAG(hi2c, I2C_FLAG_TXIS) == RESET) - 542 .loc 1 4504 0 - 543 .cfi_startproc - 544 @ args = 0, pretend = 0, frame = 0 - 545 @ frame_needed = 0, uses_anonymous_args = 0 - 546 .LVL56: - 547 0000 70B5 push {r4, r5, r6, lr} - 548 .LCFI3: - 549 .cfi_def_cfa_offset 16 - 550 .cfi_offset 4, -16 - 551 .cfi_offset 5, -12 - 552 .cfi_offset 6, -8 - 553 .cfi_offset 14, -4 - 554 0002 0400 movs r4, r0 - 555 0004 0D00 movs r5, r1 - 556 0006 1600 movs r6, r2 - 557 .LVL57: - 558 .L53: -4505:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** { - 559 .loc 1 4505 0 - 560 0008 2368 ldr r3, [r4] - 561 000a 9B69 ldr r3, [r3, #24] - 562 000c 9B07 lsls r3, r3, #30 - 563 000e 1CD4 bmi .L57 -4508:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** { - 564 .loc 1 4508 0 - 565 0010 3200 movs r2, r6 - 566 0012 2900 movs r1, r5 - 567 0014 2000 movs r0, r4 - 568 0016 FFF7FEFF bl I2C_IsAcknowledgeFailed - 569 .LVL58: - 570 001a 0028 cmp r0, #0 - 571 001c 17D1 bne .L56 -4514:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** { - 572 .loc 1 4514 0 - 573 001e 6B1C adds r3, r5, #1 - 574 0020 F2D0 beq .L53 -4516:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** { - 575 .loc 1 4516 0 - 576 0022 002D cmp r5, #0 - 577 0024 04D0 beq .L54 -4516:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** { - 578 .loc 1 4516 0 is_stmt 0 discriminator 1 - 579 0026 FFF7FEFF bl HAL_GetTick - 580 .LVL59: - 581 002a 801B subs r0, r0, r6 - 582 002c A842 cmp r0, r5 - 583 002e EBD9 bls .L53 - 584 .L54: -4518:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** hi2c->State = HAL_I2C_STATE_READY; - 585 .loc 1 4518 0 is_stmt 1 - 586 0030 636C ldr r3, [r4, #68] - 587 0032 2022 movs r2, #32 - 588 0034 1343 orrs r3, r2 - 589 0036 6364 str r3, [r4, #68] - ARM GAS /tmp/ccTaFl06.s page 97 - - -4519:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** hi2c->Mode = HAL_I2C_MODE_NONE; - 590 .loc 1 4519 0 - 591 0038 4123 movs r3, #65 - 592 003a E254 strb r2, [r4, r3] -4520:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** - 593 .loc 1 4520 0 - 594 003c 0023 movs r3, #0 - 595 003e 2232 adds r2, r2, #34 - 596 0040 A354 strb r3, [r4, r2] -4523:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** - 597 .loc 1 4523 0 - 598 0042 023A subs r2, r2, #2 - 599 0044 A354 strb r3, [r4, r2] -4525:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** } - 600 .loc 1 4525 0 - 601 0046 0320 movs r0, #3 - 602 0048 00E0 b .L52 - 603 .L57: -4529:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** } - 604 .loc 1 4529 0 - 605 004a 0020 movs r0, #0 - 606 .L52: -4530:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** - 607 .loc 1 4530 0 - 608 @ sp needed - 609 .LVL60: - 610 .LVL61: - 611 .LVL62: - 612 004c 70BD pop {r4, r5, r6, pc} - 613 .LVL63: - 614 .L56: -4510:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** } - 615 .loc 1 4510 0 - 616 004e 0120 movs r0, #1 - 617 0050 FCE7 b .L52 - 618 .cfi_endproc - 619 .LFE103: - 621 .section .text.I2C_WaitOnFlagUntilTimeout,"ax",%progbits - 622 .align 1 - 623 .syntax unified - 624 .code 16 - 625 .thumb_func - 626 .fpu softvfp - 628 I2C_WaitOnFlagUntilTimeout: - 629 .LFB102: -4475:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** while (__HAL_I2C_GET_FLAG(hi2c, Flag) == Status) - 630 .loc 1 4475 0 - 631 .cfi_startproc - 632 @ args = 4, pretend = 0, frame = 0 - 633 @ frame_needed = 0, uses_anonymous_args = 0 - 634 .LVL64: - 635 0000 F8B5 push {r3, r4, r5, r6, r7, lr} - 636 .LCFI4: - 637 .cfi_def_cfa_offset 24 - 638 .cfi_offset 3, -24 - 639 .cfi_offset 4, -20 - 640 .cfi_offset 5, -16 - ARM GAS /tmp/ccTaFl06.s page 98 - - - 641 .cfi_offset 6, -12 - 642 .cfi_offset 7, -8 - 643 .cfi_offset 14, -4 - 644 0002 0600 movs r6, r0 - 645 0004 0C00 movs r4, r1 - 646 0006 1700 movs r7, r2 - 647 0008 1D00 movs r5, r3 - 648 .LVL65: - 649 .L60: -4476:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** { - 650 .loc 1 4476 0 - 651 000a 3368 ldr r3, [r6] - 652 000c 9B69 ldr r3, [r3, #24] - 653 000e 2340 ands r3, r4 - 654 0010 1B1B subs r3, r3, r4 - 655 0012 5A42 rsbs r2, r3, #0 - 656 0014 5341 adcs r3, r3, r2 - 657 0016 BB42 cmp r3, r7 - 658 0018 13D1 bne .L64 -4479:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** { - 659 .loc 1 4479 0 - 660 001a 6B1C adds r3, r5, #1 - 661 001c F5D0 beq .L60 -4481:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** { - 662 .loc 1 4481 0 - 663 001e 002D cmp r5, #0 - 664 0020 05D0 beq .L61 -4481:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** { - 665 .loc 1 4481 0 is_stmt 0 discriminator 1 - 666 0022 FFF7FEFF bl HAL_GetTick - 667 .LVL66: - 668 0026 069B ldr r3, [sp, #24] - 669 0028 C01A subs r0, r0, r3 - 670 002a A842 cmp r0, r5 - 671 002c EDD9 bls .L60 - 672 .L61: -4483:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** hi2c->Mode = HAL_I2C_MODE_NONE; - 673 .loc 1 4483 0 is_stmt 1 - 674 002e 4123 movs r3, #65 - 675 0030 2022 movs r2, #32 - 676 0032 F254 strb r2, [r6, r3] -4484:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** - 677 .loc 1 4484 0 - 678 0034 0023 movs r3, #0 - 679 0036 2232 adds r2, r2, #34 - 680 0038 B354 strb r3, [r6, r2] -4487:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** return HAL_TIMEOUT; - 681 .loc 1 4487 0 - 682 003a 023A subs r2, r2, #2 - 683 003c B354 strb r3, [r6, r2] -4488:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** } - 684 .loc 1 4488 0 - 685 003e 0320 movs r0, #3 - 686 0040 00E0 b .L62 - 687 .L64: -4492:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** } - 688 .loc 1 4492 0 - ARM GAS /tmp/ccTaFl06.s page 99 - - - 689 0042 0020 movs r0, #0 - 690 .L62: -4493:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** - 691 .loc 1 4493 0 - 692 @ sp needed - 693 .LVL67: - 694 .LVL68: - 695 .LVL69: - 696 0044 F8BD pop {r3, r4, r5, r6, r7, pc} - 697 .cfi_endproc - 698 .LFE102: - 700 .section .text.I2C_RequestMemoryWrite,"ax",%progbits - 701 .align 1 - 702 .syntax unified - 703 .code 16 - 704 .thumb_func - 705 .fpu softvfp - 707 I2C_RequestMemoryWrite: - 708 .LFB86: -3643:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** I2C_TransferConfig(hi2c, DevAddress, MemAddSize, I2C_RELOAD_MODE, I2C_GENERATE_START_WRITE); - 709 .loc 1 3643 0 - 710 .cfi_startproc - 711 @ args = 8, pretend = 0, frame = 0 - 712 @ frame_needed = 0, uses_anonymous_args = 0 - 713 .LVL70: - 714 0000 70B5 push {r4, r5, r6, lr} - 715 .LCFI5: - 716 .cfi_def_cfa_offset 16 - 717 .cfi_offset 4, -16 - 718 .cfi_offset 5, -12 - 719 .cfi_offset 6, -8 - 720 .cfi_offset 14, -4 - 721 0002 82B0 sub sp, sp, #8 - 722 .LCFI6: - 723 .cfi_def_cfa_offset 24 - 724 0004 0400 movs r4, r0 - 725 0006 1600 movs r6, r2 - 726 0008 1D00 movs r5, r3 -3644:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** - 727 .loc 1 3644 0 - 728 000a 8023 movs r3, #128 - 729 .LVL71: - 730 000c EAB2 uxtb r2, r5 - 731 .LVL72: - 732 000e 8020 movs r0, #128 - 733 .LVL73: - 734 0010 8001 lsls r0, r0, #6 - 735 0012 0090 str r0, [sp] - 736 0014 5B04 lsls r3, r3, #17 - 737 0016 2000 movs r0, r4 - 738 0018 FFF7FEFF bl I2C_TransferConfig - 739 .LVL74: -3647:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** { - 740 .loc 1 3647 0 - 741 001c 079A ldr r2, [sp, #28] - 742 001e 0699 ldr r1, [sp, #24] - 743 0020 2000 movs r0, r4 - ARM GAS /tmp/ccTaFl06.s page 100 - - - 744 0022 FFF7FEFF bl I2C_WaitOnTXISFlagUntilTimeout - 745 .LVL75: - 746 0026 0028 cmp r0, #0 - 747 0028 05D0 beq .L66 -3649:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** { - 748 .loc 1 3649 0 - 749 002a 636C ldr r3, [r4, #68] - 750 002c 042B cmp r3, #4 - 751 002e 26D1 bne .L71 -3651:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** } - 752 .loc 1 3651 0 - 753 0030 0120 movs r0, #1 - 754 .L67: -3695:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** - 755 .loc 1 3695 0 - 756 0032 02B0 add sp, sp, #8 - 757 @ sp needed - 758 .LVL76: - 759 0034 70BD pop {r4, r5, r6, pc} - 760 .LVL77: - 761 .L66: -3660:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** { - 762 .loc 1 3660 0 - 763 0036 012D cmp r5, #1 - 764 0038 0ED1 bne .L68 -3663:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** } - 765 .loc 1 3663 0 - 766 003a 2368 ldr r3, [r4] - 767 003c F6B2 uxtb r6, r6 - 768 003e 9E62 str r6, [r3, #40] - 769 .L69: -3689:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** { - 770 .loc 1 3689 0 - 771 0040 079B ldr r3, [sp, #28] - 772 0042 0093 str r3, [sp] - 773 0044 069B ldr r3, [sp, #24] - 774 0046 0022 movs r2, #0 - 775 0048 8021 movs r1, #128 - 776 004a 2000 movs r0, r4 - 777 004c FFF7FEFF bl I2C_WaitOnFlagUntilTimeout - 778 .LVL78: - 779 0050 0028 cmp r0, #0 - 780 0052 EED0 beq .L67 -3691:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** } - 781 .loc 1 3691 0 - 782 0054 0320 movs r0, #3 - 783 0056 ECE7 b .L67 - 784 .L68: -3669:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** - 785 .loc 1 3669 0 - 786 0058 2368 ldr r3, [r4] - 787 005a 320A lsrs r2, r6, #8 - 788 005c 9A62 str r2, [r3, #40] -3672:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** { - 789 .loc 1 3672 0 - 790 005e 079A ldr r2, [sp, #28] - 791 0060 0699 ldr r1, [sp, #24] - ARM GAS /tmp/ccTaFl06.s page 101 - - - 792 0062 2000 movs r0, r4 - 793 0064 FFF7FEFF bl I2C_WaitOnTXISFlagUntilTimeout - 794 .LVL79: - 795 0068 0028 cmp r0, #0 - 796 006a 04D0 beq .L70 -3674:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** { - 797 .loc 1 3674 0 - 798 006c 636C ldr r3, [r4, #68] - 799 006e 042B cmp r3, #4 - 800 0070 07D1 bne .L72 -3676:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** } - 801 .loc 1 3676 0 - 802 0072 0120 movs r0, #1 - 803 0074 DDE7 b .L67 - 804 .L70: -3685:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** } - 805 .loc 1 3685 0 - 806 0076 2368 ldr r3, [r4] - 807 0078 F6B2 uxtb r6, r6 - 808 007a 9E62 str r6, [r3, #40] - 809 007c E0E7 b .L69 - 810 .L71: -3655:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** } - 811 .loc 1 3655 0 - 812 007e 0320 movs r0, #3 - 813 0080 D7E7 b .L67 - 814 .L72: -3680:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** } - 815 .loc 1 3680 0 - 816 0082 0320 movs r0, #3 - 817 0084 D5E7 b .L67 - 818 .cfi_endproc - 819 .LFE86: - 821 .section .text.I2C_RequestMemoryRead,"ax",%progbits - 822 .align 1 - 823 .syntax unified - 824 .code 16 - 825 .thumb_func - 826 .fpu softvfp - 828 I2C_RequestMemoryRead: - 829 .LFB87: -3710:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** I2C_TransferConfig(hi2c, DevAddress, MemAddSize, I2C_SOFTEND_MODE, I2C_GENERATE_START_WRITE); - 830 .loc 1 3710 0 - 831 .cfi_startproc - 832 @ args = 8, pretend = 0, frame = 0 - 833 @ frame_needed = 0, uses_anonymous_args = 0 - 834 .LVL80: - 835 0000 70B5 push {r4, r5, r6, lr} - 836 .LCFI7: - 837 .cfi_def_cfa_offset 16 - 838 .cfi_offset 4, -16 - 839 .cfi_offset 5, -12 - 840 .cfi_offset 6, -8 - 841 .cfi_offset 14, -4 - 842 0002 82B0 sub sp, sp, #8 - 843 .LCFI8: - 844 .cfi_def_cfa_offset 24 - ARM GAS /tmp/ccTaFl06.s page 102 - - - 845 0004 0400 movs r4, r0 - 846 0006 1600 movs r6, r2 - 847 0008 1D00 movs r5, r3 -3711:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** - 848 .loc 1 3711 0 - 849 000a DAB2 uxtb r2, r3 - 850 .LVL81: - 851 000c 8023 movs r3, #128 - 852 .LVL82: - 853 000e 9B01 lsls r3, r3, #6 - 854 0010 0093 str r3, [sp] - 855 0012 0023 movs r3, #0 - 856 0014 FFF7FEFF bl I2C_TransferConfig - 857 .LVL83: -3714:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** { - 858 .loc 1 3714 0 - 859 0018 079A ldr r2, [sp, #28] - 860 001a 0699 ldr r1, [sp, #24] - 861 001c 2000 movs r0, r4 - 862 001e FFF7FEFF bl I2C_WaitOnTXISFlagUntilTimeout - 863 .LVL84: - 864 0022 0028 cmp r0, #0 - 865 0024 05D0 beq .L74 -3716:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** { - 866 .loc 1 3716 0 - 867 0026 636C ldr r3, [r4, #68] - 868 0028 042B cmp r3, #4 - 869 002a 26D1 bne .L79 -3718:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** } - 870 .loc 1 3718 0 - 871 002c 0120 movs r0, #1 - 872 .L75: -3762:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** - 873 .loc 1 3762 0 - 874 002e 02B0 add sp, sp, #8 - 875 @ sp needed - 876 .LVL85: - 877 0030 70BD pop {r4, r5, r6, pc} - 878 .LVL86: - 879 .L74: -3727:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** { - 880 .loc 1 3727 0 - 881 0032 012D cmp r5, #1 - 882 0034 0ED1 bne .L76 -3730:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** } - 883 .loc 1 3730 0 - 884 0036 2368 ldr r3, [r4] - 885 0038 F6B2 uxtb r6, r6 - 886 003a 9E62 str r6, [r3, #40] - 887 .L77: -3756:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** { - 888 .loc 1 3756 0 - 889 003c 079B ldr r3, [sp, #28] - 890 003e 0093 str r3, [sp] - 891 0040 069B ldr r3, [sp, #24] - 892 0042 0022 movs r2, #0 - 893 0044 4021 movs r1, #64 - ARM GAS /tmp/ccTaFl06.s page 103 - - - 894 0046 2000 movs r0, r4 - 895 0048 FFF7FEFF bl I2C_WaitOnFlagUntilTimeout - 896 .LVL87: - 897 004c 0028 cmp r0, #0 - 898 004e EED0 beq .L75 -3758:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** } - 899 .loc 1 3758 0 - 900 0050 0320 movs r0, #3 - 901 0052 ECE7 b .L75 - 902 .L76: -3736:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** - 903 .loc 1 3736 0 - 904 0054 2368 ldr r3, [r4] - 905 0056 320A lsrs r2, r6, #8 - 906 0058 9A62 str r2, [r3, #40] -3739:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** { - 907 .loc 1 3739 0 - 908 005a 079A ldr r2, [sp, #28] - 909 005c 0699 ldr r1, [sp, #24] - 910 005e 2000 movs r0, r4 - 911 0060 FFF7FEFF bl I2C_WaitOnTXISFlagUntilTimeout - 912 .LVL88: - 913 0064 0028 cmp r0, #0 - 914 0066 04D0 beq .L78 -3741:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** { - 915 .loc 1 3741 0 - 916 0068 636C ldr r3, [r4, #68] - 917 006a 042B cmp r3, #4 - 918 006c 07D1 bne .L80 -3743:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** } - 919 .loc 1 3743 0 - 920 006e 0120 movs r0, #1 - 921 0070 DDE7 b .L75 - 922 .L78: -3752:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** } - 923 .loc 1 3752 0 - 924 0072 2368 ldr r3, [r4] - 925 0074 F6B2 uxtb r6, r6 - 926 0076 9E62 str r6, [r3, #40] - 927 0078 E0E7 b .L77 - 928 .L79: -3722:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** } - 929 .loc 1 3722 0 - 930 007a 0320 movs r0, #3 - 931 007c D7E7 b .L75 - 932 .L80: -3747:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** } - 933 .loc 1 3747 0 - 934 007e 0320 movs r0, #3 - 935 0080 D5E7 b .L75 - 936 .cfi_endproc - 937 .LFE87: - 939 .section .text.I2C_WaitOnSTOPFlagUntilTimeout,"ax",%progbits - 940 .align 1 - 941 .syntax unified - 942 .code 16 - 943 .thumb_func - ARM GAS /tmp/ccTaFl06.s page 104 - - - 944 .fpu softvfp - 946 I2C_WaitOnSTOPFlagUntilTimeout: - 947 .LFB104: -4541:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** while (__HAL_I2C_GET_FLAG(hi2c, I2C_FLAG_STOPF) == RESET) - 948 .loc 1 4541 0 - 949 .cfi_startproc - 950 @ args = 0, pretend = 0, frame = 0 - 951 @ frame_needed = 0, uses_anonymous_args = 0 - 952 .LVL89: - 953 0000 70B5 push {r4, r5, r6, lr} - 954 .LCFI9: - 955 .cfi_def_cfa_offset 16 - 956 .cfi_offset 4, -16 - 957 .cfi_offset 5, -12 - 958 .cfi_offset 6, -8 - 959 .cfi_offset 14, -4 - 960 0002 0500 movs r5, r0 - 961 0004 0C00 movs r4, r1 - 962 0006 1600 movs r6, r2 - 963 .LVL90: - 964 .L82: -4542:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** { - 965 .loc 1 4542 0 - 966 0008 2B68 ldr r3, [r5] - 967 000a 9B69 ldr r3, [r3, #24] - 968 000c 9B06 lsls r3, r3, #26 - 969 000e 1AD4 bmi .L87 -4545:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** { - 970 .loc 1 4545 0 - 971 0010 3200 movs r2, r6 - 972 0012 2100 movs r1, r4 - 973 0014 2800 movs r0, r5 - 974 0016 FFF7FEFF bl I2C_IsAcknowledgeFailed - 975 .LVL91: - 976 001a 0028 cmp r0, #0 - 977 001c 15D1 bne .L86 -4551:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** { - 978 .loc 1 4551 0 - 979 001e 002C cmp r4, #0 - 980 0020 04D0 beq .L84 -4551:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** { - 981 .loc 1 4551 0 is_stmt 0 discriminator 1 - 982 0022 FFF7FEFF bl HAL_GetTick - 983 .LVL92: - 984 0026 801B subs r0, r0, r6 - 985 0028 A042 cmp r0, r4 - 986 002a EDD9 bls .L82 - 987 .L84: -4553:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** hi2c->State = HAL_I2C_STATE_READY; - 988 .loc 1 4553 0 is_stmt 1 - 989 002c 6B6C ldr r3, [r5, #68] - 990 002e 2022 movs r2, #32 - 991 0030 1343 orrs r3, r2 - 992 0032 6B64 str r3, [r5, #68] -4554:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** hi2c->Mode = HAL_I2C_MODE_NONE; - 993 .loc 1 4554 0 - 994 0034 4123 movs r3, #65 - ARM GAS /tmp/ccTaFl06.s page 105 - - - 995 0036 EA54 strb r2, [r5, r3] -4555:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** - 996 .loc 1 4555 0 - 997 0038 0023 movs r3, #0 - 998 003a 2232 adds r2, r2, #34 - 999 003c AB54 strb r3, [r5, r2] -4558:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** - 1000 .loc 1 4558 0 - 1001 003e 023A subs r2, r2, #2 - 1002 0040 AB54 strb r3, [r5, r2] -4560:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** } - 1003 .loc 1 4560 0 - 1004 0042 0320 movs r0, #3 - 1005 .L83: -4564:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** - 1006 .loc 1 4564 0 - 1007 @ sp needed - 1008 .LVL93: - 1009 .LVL94: - 1010 .LVL95: - 1011 0044 70BD pop {r4, r5, r6, pc} - 1012 .LVL96: - 1013 .L87: -4563:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** } - 1014 .loc 1 4563 0 - 1015 0046 0020 movs r0, #0 - 1016 0048 FCE7 b .L83 - 1017 .L86: -4547:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** } - 1018 .loc 1 4547 0 - 1019 004a 0120 movs r0, #1 - 1020 004c FAE7 b .L83 - 1021 .cfi_endproc - 1022 .LFE104: - 1024 .section .text.I2C_WaitOnRXNEFlagUntilTimeout,"ax",%progbits - 1025 .align 1 - 1026 .syntax unified - 1027 .code 16 - 1028 .thumb_func - 1029 .fpu softvfp - 1031 I2C_WaitOnRXNEFlagUntilTimeout: - 1032 .LFB105: -4575:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** while (__HAL_I2C_GET_FLAG(hi2c, I2C_FLAG_RXNE) == RESET) - 1033 .loc 1 4575 0 - 1034 .cfi_startproc - 1035 @ args = 0, pretend = 0, frame = 0 - 1036 @ frame_needed = 0, uses_anonymous_args = 0 - 1037 .LVL97: - 1038 0000 70B5 push {r4, r5, r6, lr} - 1039 .LCFI10: - 1040 .cfi_def_cfa_offset 16 - 1041 .cfi_offset 4, -16 - 1042 .cfi_offset 5, -12 - 1043 .cfi_offset 6, -8 - 1044 .cfi_offset 14, -4 - 1045 0002 0400 movs r4, r0 - 1046 0004 0D00 movs r5, r1 - ARM GAS /tmp/ccTaFl06.s page 106 - - - 1047 0006 1600 movs r6, r2 - 1048 .LVL98: - 1049 .L89: -4576:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** { - 1050 .loc 1 4576 0 - 1051 0008 2368 ldr r3, [r4] - 1052 000a 9B69 ldr r3, [r3, #24] - 1053 000c 5B07 lsls r3, r3, #29 - 1054 000e 2DD4 bmi .L95 -4579:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** { - 1055 .loc 1 4579 0 - 1056 0010 3200 movs r2, r6 - 1057 0012 2900 movs r1, r5 - 1058 0014 2000 movs r0, r4 - 1059 0016 FFF7FEFF bl I2C_IsAcknowledgeFailed - 1060 .LVL99: - 1061 001a 0028 cmp r0, #0 - 1062 001c 28D1 bne .L94 -4585:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** { - 1063 .loc 1 4585 0 - 1064 001e 2368 ldr r3, [r4] - 1065 0020 9A69 ldr r2, [r3, #24] - 1066 0022 9206 lsls r2, r2, #26 - 1067 0024 11D4 bmi .L96 -4604:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** { - 1068 .loc 1 4604 0 - 1069 0026 002D cmp r5, #0 - 1070 0028 04D0 beq .L92 -4604:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** { - 1071 .loc 1 4604 0 is_stmt 0 discriminator 1 - 1072 002a FFF7FEFF bl HAL_GetTick - 1073 .LVL100: - 1074 002e 801B subs r0, r0, r6 - 1075 0030 A842 cmp r0, r5 - 1076 0032 E9D9 bls .L89 - 1077 .L92: -4606:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** hi2c->State = HAL_I2C_STATE_READY; - 1078 .loc 1 4606 0 is_stmt 1 - 1079 0034 636C ldr r3, [r4, #68] - 1080 0036 2022 movs r2, #32 - 1081 0038 1343 orrs r3, r2 - 1082 003a 6364 str r3, [r4, #68] -4607:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** - 1083 .loc 1 4607 0 - 1084 003c 4123 movs r3, #65 - 1085 003e E254 strb r2, [r4, r3] -4610:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** - 1086 .loc 1 4610 0 - 1087 0040 013B subs r3, r3, #1 - 1088 0042 0022 movs r2, #0 - 1089 0044 E254 strb r2, [r4, r3] -4612:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** } - 1090 .loc 1 4612 0 - 1091 0046 0320 movs r0, #3 - 1092 .L90: -4616:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** - 1093 .loc 1 4616 0 - ARM GAS /tmp/ccTaFl06.s page 107 - - - 1094 @ sp needed - 1095 .LVL101: - 1096 .LVL102: - 1097 .LVL103: - 1098 0048 70BD pop {r4, r5, r6, pc} - 1099 .LVL104: - 1100 .L96: -4588:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** - 1101 .loc 1 4588 0 - 1102 004a 2022 movs r2, #32 - 1103 004c DA61 str r2, [r3, #28] -4591:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** - 1104 .loc 1 4591 0 - 1105 004e 2168 ldr r1, [r4] - 1106 0050 4B68 ldr r3, [r1, #4] - 1107 0052 0848 ldr r0, .L97 - 1108 0054 0340 ands r3, r0 - 1109 0056 4B60 str r3, [r1, #4] -4593:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** hi2c->State = HAL_I2C_STATE_READY; - 1110 .loc 1 4593 0 - 1111 0058 0023 movs r3, #0 - 1112 005a 6364 str r3, [r4, #68] -4594:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** hi2c->Mode = HAL_I2C_MODE_NONE; - 1113 .loc 1 4594 0 - 1114 005c 4121 movs r1, #65 - 1115 005e 6254 strb r2, [r4, r1] -4595:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** - 1116 .loc 1 4595 0 - 1117 0060 2232 adds r2, r2, #34 - 1118 0062 A354 strb r3, [r4, r2] -4598:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** - 1119 .loc 1 4598 0 - 1120 0064 023A subs r2, r2, #2 - 1121 0066 A354 strb r3, [r4, r2] -4600:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** } - 1122 .loc 1 4600 0 - 1123 0068 0120 movs r0, #1 - 1124 006a EDE7 b .L90 - 1125 .L95: -4615:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** } - 1126 .loc 1 4615 0 - 1127 006c 0020 movs r0, #0 - 1128 006e EBE7 b .L90 - 1129 .L94: -4581:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** } - 1130 .loc 1 4581 0 - 1131 0070 0120 movs r0, #1 - 1132 0072 E9E7 b .L90 - 1133 .L98: - 1134 .align 2 - 1135 .L97: - 1136 0074 00E800FE .word -33495040 - 1137 .cfi_endproc - 1138 .LFE105: - 1140 .section .text.I2C_DMAMasterTransmitCplt,"ax",%progbits - 1141 .align 1 - 1142 .syntax unified - ARM GAS /tmp/ccTaFl06.s page 108 - - - 1143 .code 16 - 1144 .thumb_func - 1145 .fpu softvfp - 1147 I2C_DMAMasterTransmitCplt: - 1148 .LFB96: -4308:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** I2C_HandleTypeDef *hi2c = (I2C_HandleTypeDef *)((DMA_HandleTypeDef *)hdma)->Parent; - 1149 .loc 1 4308 0 - 1150 .cfi_startproc - 1151 @ args = 0, pretend = 0, frame = 0 - 1152 @ frame_needed = 0, uses_anonymous_args = 0 - 1153 .LVL105: - 1154 0000 10B5 push {r4, lr} - 1155 .LCFI11: - 1156 .cfi_def_cfa_offset 8 - 1157 .cfi_offset 4, -8 - 1158 .cfi_offset 14, -4 -4309:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** - 1159 .loc 1 4309 0 - 1160 0002 446A ldr r4, [r0, #36] - 1161 .LVL106: -4312:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** - 1162 .loc 1 4312 0 - 1163 0004 2268 ldr r2, [r4] - 1164 0006 1368 ldr r3, [r2] - 1165 0008 1249 ldr r1, .L105 - 1166 000a 0B40 ands r3, r1 - 1167 000c 1360 str r3, [r2] -4315:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** { - 1168 .loc 1 4315 0 - 1169 000e 638D ldrh r3, [r4, #42] - 1170 0010 9BB2 uxth r3, r3 - 1171 0012 002B cmp r3, #0 - 1172 0014 15D0 beq .L104 -4324:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** - 1173 .loc 1 4324 0 - 1174 0016 218D ldrh r1, [r4, #40] - 1175 0018 636A ldr r3, [r4, #36] - 1176 001a 9C46 mov ip, r3 - 1177 001c 6144 add r1, r1, ip - 1178 001e 6162 str r1, [r4, #36] -4327:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** { - 1179 .loc 1 4327 0 - 1180 0020 638D ldrh r3, [r4, #42] - 1181 0022 9BB2 uxth r3, r3 - 1182 0024 FF2B cmp r3, #255 - 1183 0026 11D9 bls .L102 -4329:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** } - 1184 .loc 1 4329 0 - 1185 0028 FF23 movs r3, #255 - 1186 002a 2385 strh r3, [r4, #40] - 1187 .L103: -4337:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** - 1188 .loc 1 4337 0 - 1189 002c 2268 ldr r2, [r4] - 1190 002e 2832 adds r2, r2, #40 - 1191 0030 238D ldrh r3, [r4, #40] - 1192 0032 A06B ldr r0, [r4, #56] - ARM GAS /tmp/ccTaFl06.s page 109 - - - 1193 .LVL107: - 1194 0034 FFF7FEFF bl HAL_DMA_Start_IT - 1195 .LVL108: -4340:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** } - 1196 .loc 1 4340 0 - 1197 0038 1221 movs r1, #18 - 1198 003a 2000 movs r0, r4 - 1199 003c FFF7FEFF bl I2C_Enable_IRQ - 1200 .LVL109: - 1201 .L99: -4342:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** - 1202 .loc 1 4342 0 - 1203 @ sp needed - 1204 .LVL110: - 1205 0040 10BD pop {r4, pc} - 1206 .LVL111: - 1207 .L104: -4318:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** } - 1208 .loc 1 4318 0 - 1209 0042 1221 movs r1, #18 - 1210 0044 2000 movs r0, r4 - 1211 .LVL112: - 1212 0046 FFF7FEFF bl I2C_Enable_IRQ - 1213 .LVL113: - 1214 004a F9E7 b .L99 - 1215 .LVL114: - 1216 .L102: -4333:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** } - 1217 .loc 1 4333 0 - 1218 004c 638D ldrh r3, [r4, #42] - 1219 004e 2385 strh r3, [r4, #40] - 1220 0050 ECE7 b .L103 - 1221 .L106: - 1222 0052 C046 .align 2 - 1223 .L105: - 1224 0054 FFBFFFFF .word -16385 - 1225 .cfi_endproc - 1226 .LFE96: - 1228 .section .text.I2C_DMAMasterReceiveCplt,"ax",%progbits - 1229 .align 1 - 1230 .syntax unified - 1231 .code 16 - 1232 .thumb_func - 1233 .fpu softvfp - 1235 I2C_DMAMasterReceiveCplt: - 1236 .LFB98: -4365:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** I2C_HandleTypeDef *hi2c = (I2C_HandleTypeDef *)((DMA_HandleTypeDef *)hdma)->Parent; - 1237 .loc 1 4365 0 - 1238 .cfi_startproc - 1239 @ args = 0, pretend = 0, frame = 0 - 1240 @ frame_needed = 0, uses_anonymous_args = 0 - 1241 .LVL115: - 1242 0000 10B5 push {r4, lr} - 1243 .LCFI12: - 1244 .cfi_def_cfa_offset 8 - 1245 .cfi_offset 4, -8 - 1246 .cfi_offset 14, -4 - ARM GAS /tmp/ccTaFl06.s page 110 - - -4366:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** - 1247 .loc 1 4366 0 - 1248 0002 446A ldr r4, [r0, #36] - 1249 .LVL116: -4369:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** - 1250 .loc 1 4369 0 - 1251 0004 2268 ldr r2, [r4] - 1252 0006 1368 ldr r3, [r2] - 1253 0008 1249 ldr r1, .L113 - 1254 000a 0B40 ands r3, r1 - 1255 000c 1360 str r3, [r2] -4372:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** { - 1256 .loc 1 4372 0 - 1257 000e 638D ldrh r3, [r4, #42] - 1258 0010 9BB2 uxth r3, r3 - 1259 0012 002B cmp r3, #0 - 1260 0014 15D0 beq .L112 -4381:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** - 1261 .loc 1 4381 0 - 1262 0016 228D ldrh r2, [r4, #40] - 1263 0018 636A ldr r3, [r4, #36] - 1264 001a 9C46 mov ip, r3 - 1265 001c 6244 add r2, r2, ip - 1266 001e 6262 str r2, [r4, #36] -4384:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** { - 1267 .loc 1 4384 0 - 1268 0020 638D ldrh r3, [r4, #42] - 1269 0022 9BB2 uxth r3, r3 - 1270 0024 FF2B cmp r3, #255 - 1271 0026 11D9 bls .L110 -4386:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** } - 1272 .loc 1 4386 0 - 1273 0028 FF23 movs r3, #255 - 1274 002a 2385 strh r3, [r4, #40] - 1275 .L111: -4394:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** - 1276 .loc 1 4394 0 - 1277 002c 2168 ldr r1, [r4] - 1278 002e 2431 adds r1, r1, #36 - 1279 0030 238D ldrh r3, [r4, #40] - 1280 0032 E06B ldr r0, [r4, #60] - 1281 .LVL117: - 1282 0034 FFF7FEFF bl HAL_DMA_Start_IT - 1283 .LVL118: -4397:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** } - 1284 .loc 1 4397 0 - 1285 0038 1221 movs r1, #18 - 1286 003a 2000 movs r0, r4 - 1287 003c FFF7FEFF bl I2C_Enable_IRQ - 1288 .LVL119: - 1289 .L107: -4399:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** - 1290 .loc 1 4399 0 - 1291 @ sp needed - 1292 .LVL120: - 1293 0040 10BD pop {r4, pc} - 1294 .LVL121: - ARM GAS /tmp/ccTaFl06.s page 111 - - - 1295 .L112: -4375:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** } - 1296 .loc 1 4375 0 - 1297 0042 1221 movs r1, #18 - 1298 0044 2000 movs r0, r4 - 1299 .LVL122: - 1300 0046 FFF7FEFF bl I2C_Enable_IRQ - 1301 .LVL123: - 1302 004a F9E7 b .L107 - 1303 .LVL124: - 1304 .L110: -4390:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** } - 1305 .loc 1 4390 0 - 1306 004c 638D ldrh r3, [r4, #42] - 1307 004e 2385 strh r3, [r4, #40] - 1308 0050 ECE7 b .L111 - 1309 .L114: - 1310 0052 C046 .align 2 - 1311 .L113: - 1312 0054 FF7FFFFF .word -32769 - 1313 .cfi_endproc - 1314 .LFE98: - 1316 .section .text.HAL_I2C_MspInit,"ax",%progbits - 1317 .align 1 - 1318 .weak HAL_I2C_MspInit - 1319 .syntax unified - 1320 .code 16 - 1321 .thumb_func - 1322 .fpu softvfp - 1324 HAL_I2C_MspInit: - 1325 .LFB39: - 528:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** /* Prevent unused argument(s) compilation warning */ - 1326 .loc 1 528 0 - 1327 .cfi_startproc - 1328 @ args = 0, pretend = 0, frame = 0 - 1329 @ frame_needed = 0, uses_anonymous_args = 0 - 1330 @ link register save eliminated. - 1331 .LVL125: - 535:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** - 1332 .loc 1 535 0 - 1333 @ sp needed - 1334 0000 7047 bx lr - 1335 .cfi_endproc - 1336 .LFE39: - 1338 .section .text.HAL_I2C_Init,"ax",%progbits - 1339 .align 1 - 1340 .global HAL_I2C_Init - 1341 .syntax unified - 1342 .code 16 - 1343 .thumb_func - 1344 .fpu softvfp - 1346 HAL_I2C_Init: - 1347 .LFB37: - 405:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** /* Check the I2C handle allocation */ - 1348 .loc 1 405 0 - 1349 .cfi_startproc - 1350 @ args = 0, pretend = 0, frame = 0 - ARM GAS /tmp/ccTaFl06.s page 112 - - - 1351 @ frame_needed = 0, uses_anonymous_args = 0 - 1352 .LVL126: - 1353 0000 10B5 push {r4, lr} - 1354 .LCFI13: - 1355 .cfi_def_cfa_offset 8 - 1356 .cfi_offset 4, -8 - 1357 .cfi_offset 14, -4 - 1358 0002 041E subs r4, r0, #0 - 407:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** { - 1359 .loc 1 407 0 - 1360 0004 59D0 beq .L122 - 422:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** { - 1361 .loc 1 422 0 - 1362 0006 4123 movs r3, #65 - 1363 0008 C35C ldrb r3, [r0, r3] - 1364 000a 002B cmp r3, #0 - 1365 000c 43D0 beq .L123 - 1366 .LVL127: - 1367 .L118: - 431:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** - 1368 .loc 1 431 0 - 1369 000e 4123 movs r3, #65 - 1370 0010 2422 movs r2, #36 - 1371 0012 E254 strb r2, [r4, r3] - 434:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** - 1372 .loc 1 434 0 - 1373 0014 2268 ldr r2, [r4] - 1374 0016 1368 ldr r3, [r2] - 1375 0018 0121 movs r1, #1 - 1376 001a 8B43 bics r3, r1 - 1377 001c 1360 str r3, [r2] - 438:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** - 1378 .loc 1 438 0 - 1379 001e 2268 ldr r2, [r4] - 1380 0020 274B ldr r3, .L126 - 1381 0022 6168 ldr r1, [r4, #4] - 1382 0024 0B40 ands r3, r1 - 1383 0026 1361 str r3, [r2, #16] - 442:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** - 1384 .loc 1 442 0 - 1385 0028 2268 ldr r2, [r4] - 1386 002a 9368 ldr r3, [r2, #8] - 1387 002c 2549 ldr r1, .L126+4 - 1388 002e 0B40 ands r3, r1 - 1389 0030 9360 str r3, [r2, #8] - 445:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** { - 1390 .loc 1 445 0 - 1391 0032 E368 ldr r3, [r4, #12] - 1392 0034 012B cmp r3, #1 - 1393 0036 34D0 beq .L124 - 451:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** } - 1394 .loc 1 451 0 - 1395 0038 2268 ldr r2, [r4] - 1396 003a 8423 movs r3, #132 - 1397 003c 1B02 lsls r3, r3, #8 - 1398 003e A168 ldr r1, [r4, #8] - 1399 0040 0B43 orrs r3, r1 - ARM GAS /tmp/ccTaFl06.s page 113 - - - 1400 0042 9360 str r3, [r2, #8] - 1401 .L120: - 456:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** { - 1402 .loc 1 456 0 - 1403 0044 E368 ldr r3, [r4, #12] - 1404 0046 022B cmp r3, #2 - 1405 0048 32D0 beq .L125 - 1406 .L121: - 461:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** - 1407 .loc 1 461 0 - 1408 004a 2268 ldr r2, [r4] - 1409 004c 5168 ldr r1, [r2, #4] - 1410 004e 1E4B ldr r3, .L126+8 - 1411 0050 0B43 orrs r3, r1 - 1412 0052 5360 str r3, [r2, #4] - 465:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** - 1413 .loc 1 465 0 - 1414 0054 2268 ldr r2, [r4] - 1415 0056 D368 ldr r3, [r2, #12] - 1416 0058 1A49 ldr r1, .L126+4 - 1417 005a 0B40 ands r3, r1 - 1418 005c D360 str r3, [r2, #12] - 468:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** - 1419 .loc 1 468 0 - 1420 005e 2369 ldr r3, [r4, #16] - 1421 0060 6269 ldr r2, [r4, #20] - 1422 0062 1343 orrs r3, r2 - 1423 0064 A269 ldr r2, [r4, #24] - 1424 0066 1202 lsls r2, r2, #8 - 1425 0068 2168 ldr r1, [r4] - 1426 006a 1343 orrs r3, r2 - 1427 006c CB60 str r3, [r1, #12] - 472:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** - 1428 .loc 1 472 0 - 1429 006e 2268 ldr r2, [r4] - 1430 0070 E369 ldr r3, [r4, #28] - 1431 0072 216A ldr r1, [r4, #32] - 1432 0074 0B43 orrs r3, r1 - 1433 0076 1360 str r3, [r2] - 475:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** - 1434 .loc 1 475 0 - 1435 0078 2268 ldr r2, [r4] - 1436 007a 1368 ldr r3, [r2] - 1437 007c 0121 movs r1, #1 - 1438 007e 0B43 orrs r3, r1 - 1439 0080 1360 str r3, [r2] - 477:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** hi2c->State = HAL_I2C_STATE_READY; - 1440 .loc 1 477 0 - 1441 0082 0023 movs r3, #0 - 1442 0084 6364 str r3, [r4, #68] - 478:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** hi2c->PreviousState = I2C_STATE_NONE; - 1443 .loc 1 478 0 - 1444 0086 4122 movs r2, #65 - 1445 0088 1F31 adds r1, r1, #31 - 1446 008a A154 strb r1, [r4, r2] - 479:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** hi2c->Mode = HAL_I2C_MODE_NONE; - 1447 .loc 1 479 0 - ARM GAS /tmp/ccTaFl06.s page 114 - - - 1448 008c 2363 str r3, [r4, #48] - 480:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** - 1449 .loc 1 480 0 - 1450 008e 0132 adds r2, r2, #1 - 1451 0090 A354 strb r3, [r4, r2] - 482:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** } - 1452 .loc 1 482 0 - 1453 0092 0020 movs r0, #0 - 1454 .L117: - 483:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** - 1455 .loc 1 483 0 - 1456 @ sp needed - 1457 .LVL128: - 1458 0094 10BD pop {r4, pc} - 1459 .LVL129: - 1460 .L123: - 425:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** - 1461 .loc 1 425 0 - 1462 0096 4033 adds r3, r3, #64 - 1463 0098 0022 movs r2, #0 - 1464 009a C254 strb r2, [r0, r3] - 428:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** } - 1465 .loc 1 428 0 - 1466 009c FFF7FEFF bl HAL_I2C_MspInit - 1467 .LVL130: - 1468 00a0 B5E7 b .L118 - 1469 .L124: - 447:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** } - 1470 .loc 1 447 0 - 1471 00a2 2268 ldr r2, [r4] - 1472 00a4 8023 movs r3, #128 - 1473 00a6 1B02 lsls r3, r3, #8 - 1474 00a8 A168 ldr r1, [r4, #8] - 1475 00aa 0B43 orrs r3, r1 - 1476 00ac 9360 str r3, [r2, #8] - 1477 00ae C9E7 b .L120 - 1478 .L125: - 458:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** } - 1479 .loc 1 458 0 - 1480 00b0 2368 ldr r3, [r4] - 1481 00b2 8022 movs r2, #128 - 1482 00b4 1201 lsls r2, r2, #4 - 1483 00b6 5A60 str r2, [r3, #4] - 1484 00b8 C7E7 b .L121 - 1485 .LVL131: - 1486 .L122: - 409:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** } - 1487 .loc 1 409 0 - 1488 00ba 0120 movs r0, #1 - 1489 .LVL132: - 1490 00bc EAE7 b .L117 - 1491 .L127: - 1492 00be C046 .align 2 - 1493 .L126: - 1494 00c0 FFFFFFF0 .word -251658241 - 1495 00c4 FF7FFFFF .word -32769 - 1496 00c8 00800002 .word 33587200 - ARM GAS /tmp/ccTaFl06.s page 115 - - - 1497 .cfi_endproc - 1498 .LFE37: - 1500 .section .text.HAL_I2C_MspDeInit,"ax",%progbits - 1501 .align 1 - 1502 .weak HAL_I2C_MspDeInit - 1503 .syntax unified - 1504 .code 16 - 1505 .thumb_func - 1506 .fpu softvfp - 1508 HAL_I2C_MspDeInit: - 1509 .LFB40: - 544:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** /* Prevent unused argument(s) compilation warning */ - 1510 .loc 1 544 0 - 1511 .cfi_startproc - 1512 @ args = 0, pretend = 0, frame = 0 - 1513 @ frame_needed = 0, uses_anonymous_args = 0 - 1514 @ link register save eliminated. - 1515 .LVL133: - 551:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** - 1516 .loc 1 551 0 - 1517 @ sp needed - 1518 0000 7047 bx lr - 1519 .cfi_endproc - 1520 .LFE40: - 1522 .section .text.HAL_I2C_DeInit,"ax",%progbits - 1523 .align 1 - 1524 .global HAL_I2C_DeInit - 1525 .syntax unified - 1526 .code 16 - 1527 .thumb_func - 1528 .fpu softvfp - 1530 HAL_I2C_DeInit: - 1531 .LFB38: - 492:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** /* Check the I2C handle allocation */ - 1532 .loc 1 492 0 - 1533 .cfi_startproc - 1534 @ args = 0, pretend = 0, frame = 0 - 1535 @ frame_needed = 0, uses_anonymous_args = 0 - 1536 .LVL134: - 1537 0000 70B5 push {r4, r5, r6, lr} - 1538 .LCFI14: - 1539 .cfi_def_cfa_offset 16 - 1540 .cfi_offset 4, -16 - 1541 .cfi_offset 5, -12 - 1542 .cfi_offset 6, -8 - 1543 .cfi_offset 14, -4 - 1544 0002 041E subs r4, r0, #0 - 494:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** { - 1545 .loc 1 494 0 - 1546 0004 13D0 beq .L131 - 502:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** - 1547 .loc 1 502 0 - 1548 0006 4125 movs r5, #65 - 1549 0008 2423 movs r3, #36 - 1550 000a 4355 strb r3, [r0, r5] - 505:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** - 1551 .loc 1 505 0 - ARM GAS /tmp/ccTaFl06.s page 116 - - - 1552 000c 0268 ldr r2, [r0] - 1553 000e 1368 ldr r3, [r2] - 1554 0010 0121 movs r1, #1 - 1555 0012 8B43 bics r3, r1 - 1556 0014 1360 str r3, [r2] - 508:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** - 1557 .loc 1 508 0 - 1558 0016 FFF7FEFF bl HAL_I2C_MspDeInit - 1559 .LVL135: - 510:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** hi2c->State = HAL_I2C_STATE_RESET; - 1560 .loc 1 510 0 - 1561 001a 0023 movs r3, #0 - 1562 001c 6364 str r3, [r4, #68] - 511:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** hi2c->PreviousState = I2C_STATE_NONE; - 1563 .loc 1 511 0 - 1564 001e 6355 strb r3, [r4, r5] - 512:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** hi2c->Mode = HAL_I2C_MODE_NONE; - 1565 .loc 1 512 0 - 1566 0020 2363 str r3, [r4, #48] - 513:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** - 1567 .loc 1 513 0 - 1568 0022 4222 movs r2, #66 - 1569 0024 A354 strb r3, [r4, r2] - 516:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** - 1570 .loc 1 516 0 - 1571 0026 023A subs r2, r2, #2 - 1572 0028 A354 strb r3, [r4, r2] - 518:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** } - 1573 .loc 1 518 0 - 1574 002a 0020 movs r0, #0 - 1575 .L130: - 519:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** - 1576 .loc 1 519 0 - 1577 @ sp needed - 1578 .LVL136: - 1579 002c 70BD pop {r4, r5, r6, pc} - 1580 .LVL137: - 1581 .L131: - 496:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** } - 1582 .loc 1 496 0 - 1583 002e 0120 movs r0, #1 - 1584 .LVL138: - 1585 0030 FCE7 b .L130 - 1586 .cfi_endproc - 1587 .LFE38: - 1589 .section .text.HAL_I2C_Master_Transmit,"ax",%progbits - 1590 .align 1 - 1591 .global HAL_I2C_Master_Transmit - 1592 .syntax unified - 1593 .code 16 - 1594 .thumb_func - 1595 .fpu softvfp - 1597 HAL_I2C_Master_Transmit: - 1598 .LFB41: - 628:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** uint32_t tickstart = 0U; - 1599 .loc 1 628 0 - 1600 .cfi_startproc - ARM GAS /tmp/ccTaFl06.s page 117 - - - 1601 @ args = 4, pretend = 0, frame = 8 - 1602 @ frame_needed = 0, uses_anonymous_args = 0 - 1603 .LVL139: - 1604 0000 F0B5 push {r4, r5, r6, r7, lr} - 1605 .LCFI15: - 1606 .cfi_def_cfa_offset 20 - 1607 .cfi_offset 4, -20 - 1608 .cfi_offset 5, -16 - 1609 .cfi_offset 6, -12 - 1610 .cfi_offset 7, -8 - 1611 .cfi_offset 14, -4 - 1612 0002 85B0 sub sp, sp, #20 - 1613 .LCFI16: - 1614 .cfi_def_cfa_offset 40 - 1615 0004 0500 movs r5, r0 - 1616 0006 0391 str r1, [sp, #12] - 1617 0008 1700 movs r7, r2 - 1618 000a 1E00 movs r6, r3 - 1619 .LVL140: - 631:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** { - 1620 .loc 1 631 0 - 1621 000c 4123 movs r3, #65 - 1622 .LVL141: - 1623 000e C35C ldrb r3, [r0, r3] - 1624 0010 202B cmp r3, #32 - 1625 0012 00D0 beq .LCB1599 - 1626 0014 A5E0 b .L142 @long jump - 1627 .LCB1599: - 634:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** - 1628 .loc 1 634 0 - 1629 0016 2033 adds r3, r3, #32 - 1630 0018 C35C ldrb r3, [r0, r3] - 1631 001a 012B cmp r3, #1 - 1632 001c 00D1 bne .LCB1603 - 1633 001e A3E0 b .L143 @long jump - 1634 .LCB1603: - 634:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** - 1635 .loc 1 634 0 is_stmt 0 discriminator 2 - 1636 0020 4023 movs r3, #64 - 1637 0022 0122 movs r2, #1 - 1638 .LVL142: - 1639 0024 C254 strb r2, [r0, r3] - 637:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** - 1640 .loc 1 637 0 is_stmt 1 discriminator 2 - 1641 0026 FFF7FEFF bl HAL_GetTick - 1642 .LVL143: - 1643 002a 0400 movs r4, r0 - 1644 .LVL144: - 639:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** { - 1645 .loc 1 639 0 discriminator 2 - 1646 002c 8021 movs r1, #128 - 1647 002e 0090 str r0, [sp] - 1648 0030 1923 movs r3, #25 - 1649 0032 0122 movs r2, #1 - 1650 0034 0902 lsls r1, r1, #8 - 1651 0036 2800 movs r0, r5 - 1652 .LVL145: - ARM GAS /tmp/ccTaFl06.s page 118 - - - 1653 0038 FFF7FEFF bl I2C_WaitOnFlagUntilTimeout - 1654 .LVL146: - 1655 003c 0028 cmp r0, #0 - 1656 003e 00D0 beq .LCB1624 - 1657 0040 94E0 b .L144 @long jump - 1658 .LCB1624: - 644:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** hi2c->Mode = HAL_I2C_MODE_MASTER; - 1659 .loc 1 644 0 - 1660 0042 4123 movs r3, #65 - 1661 0044 2122 movs r2, #33 - 1662 0046 EA54 strb r2, [r5, r3] - 645:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** hi2c->ErrorCode = HAL_I2C_ERROR_NONE; - 1663 .loc 1 645 0 - 1664 0048 0133 adds r3, r3, #1 - 1665 004a 113A subs r2, r2, #17 - 1666 004c EA54 strb r2, [r5, r3] - 646:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** - 1667 .loc 1 646 0 - 1668 004e 0023 movs r3, #0 - 1669 0050 6B64 str r3, [r5, #68] - 649:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** hi2c->XferCount = Size; - 1670 .loc 1 649 0 - 1671 0052 6F62 str r7, [r5, #36] - 650:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** hi2c->XferISR = NULL; - 1672 .loc 1 650 0 - 1673 0054 6E85 strh r6, [r5, #42] - 651:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** - 1674 .loc 1 651 0 - 1675 0056 6B63 str r3, [r5, #52] - 655:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** { - 1676 .loc 1 655 0 - 1677 0058 6B8D ldrh r3, [r5, #42] - 1678 005a 9BB2 uxth r3, r3 - 1679 005c FF2B cmp r3, #255 - 1680 005e 0CD9 bls .L134 - 657:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** I2C_TransferConfig(hi2c, DevAddress, hi2c->XferSize, I2C_RELOAD_MODE, I2C_GENERATE_START_WRIT - 1681 .loc 1 657 0 - 1682 0060 FF23 movs r3, #255 - 1683 0062 2B85 strh r3, [r5, #40] - 658:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** } - 1684 .loc 1 658 0 - 1685 0064 7F3B subs r3, r3, #127 - 1686 0066 8022 movs r2, #128 - 1687 0068 9201 lsls r2, r2, #6 - 1688 006a 0092 str r2, [sp] - 1689 006c 5B04 lsls r3, r3, #17 - 1690 006e FF22 movs r2, #255 - 1691 0070 0399 ldr r1, [sp, #12] - 1692 0072 2800 movs r0, r5 - 1693 0074 FFF7FEFF bl I2C_TransferConfig - 1694 .LVL147: - 1695 0078 1FE0 b .L136 - 1696 .L134: - 662:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** I2C_TransferConfig(hi2c, DevAddress, hi2c->XferSize, I2C_AUTOEND_MODE, I2C_GENERATE_START_WRI - 1697 .loc 1 662 0 - 1698 007a 6A8D ldrh r2, [r5, #42] - 1699 007c 92B2 uxth r2, r2 - ARM GAS /tmp/ccTaFl06.s page 119 - - - 1700 007e 2A85 strh r2, [r5, #40] - 663:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** } - 1701 .loc 1 663 0 - 1702 0080 8023 movs r3, #128 - 1703 0082 D2B2 uxtb r2, r2 - 1704 0084 8021 movs r1, #128 - 1705 0086 8901 lsls r1, r1, #6 - 1706 0088 0091 str r1, [sp] - 1707 008a 9B04 lsls r3, r3, #18 - 1708 008c 0399 ldr r1, [sp, #12] - 1709 008e 2800 movs r0, r5 - 1710 0090 FFF7FEFF bl I2C_TransferConfig - 1711 .LVL148: - 1712 0094 11E0 b .L136 - 1713 .L149: - 671:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** { - 1714 .loc 1 671 0 - 1715 0096 6B6C ldr r3, [r5, #68] - 1716 0098 042B cmp r3, #4 - 1717 009a 00D0 beq .LCB1678 - 1718 009c 68E0 b .L145 @long jump - 1719 .LCB1678: - 673:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** } - 1720 .loc 1 673 0 - 1721 009e 0120 movs r0, #1 - 1722 00a0 60E0 b .L133 - 1723 .L139: - 700:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** I2C_TransferConfig(hi2c, DevAddress, hi2c->XferSize, I2C_AUTOEND_MODE, I2C_NO_STARTSTOP); - 1724 .loc 1 700 0 - 1725 00a2 6A8D ldrh r2, [r5, #42] - 1726 00a4 92B2 uxth r2, r2 - 1727 00a6 2A85 strh r2, [r5, #40] - 701:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** } - 1728 .loc 1 701 0 - 1729 00a8 8023 movs r3, #128 - 1730 00aa D2B2 uxtb r2, r2 - 1731 00ac 0021 movs r1, #0 - 1732 00ae 0091 str r1, [sp] - 1733 00b0 9B04 lsls r3, r3, #18 - 1734 00b2 0399 ldr r1, [sp, #12] - 1735 00b4 2800 movs r0, r5 - 1736 00b6 FFF7FEFF bl I2C_TransferConfig - 1737 .LVL149: - 1738 .L136: - 666:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** { - 1739 .loc 1 666 0 - 1740 00ba 6B8D ldrh r3, [r5, #42] - 1741 00bc 9BB2 uxth r3, r3 - 1742 00be 002B cmp r3, #0 - 1743 00c0 33D0 beq .L148 - 669:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** { - 1744 .loc 1 669 0 - 1745 00c2 2200 movs r2, r4 - 1746 00c4 0A99 ldr r1, [sp, #40] - 1747 00c6 2800 movs r0, r5 - 1748 00c8 FFF7FEFF bl I2C_WaitOnTXISFlagUntilTimeout - 1749 .LVL150: - ARM GAS /tmp/ccTaFl06.s page 120 - - - 1750 00cc 0028 cmp r0, #0 - 1751 00ce E2D1 bne .L149 - 681:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** hi2c->XferCount--; - 1752 .loc 1 681 0 - 1753 00d0 6B6A ldr r3, [r5, #36] - 1754 00d2 5A1C adds r2, r3, #1 - 1755 00d4 6A62 str r2, [r5, #36] - 1756 00d6 2A68 ldr r2, [r5] - 1757 00d8 1B78 ldrb r3, [r3] - 1758 00da 9362 str r3, [r2, #40] - 682:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** hi2c->XferSize--; - 1759 .loc 1 682 0 - 1760 00dc 6B8D ldrh r3, [r5, #42] - 1761 00de 013B subs r3, r3, #1 - 1762 00e0 9BB2 uxth r3, r3 - 1763 00e2 6B85 strh r3, [r5, #42] - 683:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** - 1764 .loc 1 683 0 - 1765 00e4 2B8D ldrh r3, [r5, #40] - 1766 00e6 013B subs r3, r3, #1 - 1767 00e8 9BB2 uxth r3, r3 - 1768 00ea 2B85 strh r3, [r5, #40] - 685:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** { - 1769 .loc 1 685 0 - 1770 00ec 002B cmp r3, #0 - 1771 00ee E4D1 bne .L136 - 685:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** { - 1772 .loc 1 685 0 is_stmt 0 discriminator 1 - 1773 00f0 6B8D ldrh r3, [r5, #42] - 1774 00f2 9BB2 uxth r3, r3 - 1775 00f4 002B cmp r3, #0 - 1776 00f6 E0D0 beq .L136 - 688:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** { - 1777 .loc 1 688 0 is_stmt 1 - 1778 00f8 0094 str r4, [sp] - 1779 00fa 0A9B ldr r3, [sp, #40] - 1780 00fc 0022 movs r2, #0 - 1781 00fe 8021 movs r1, #128 - 1782 0100 2800 movs r0, r5 - 1783 0102 FFF7FEFF bl I2C_WaitOnFlagUntilTimeout - 1784 .LVL151: - 1785 0106 0028 cmp r0, #0 - 1786 0108 34D1 bne .L146 - 693:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** { - 1787 .loc 1 693 0 - 1788 010a 6B8D ldrh r3, [r5, #42] - 1789 010c 9BB2 uxth r3, r3 - 1790 010e FF2B cmp r3, #255 - 1791 0110 C7D9 bls .L139 - 695:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** I2C_TransferConfig(hi2c, DevAddress, hi2c->XferSize, I2C_RELOAD_MODE, I2C_NO_STARTSTOP); - 1792 .loc 1 695 0 - 1793 0112 FF23 movs r3, #255 - 1794 0114 2B85 strh r3, [r5, #40] - 696:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** } - 1795 .loc 1 696 0 - 1796 0116 7F3B subs r3, r3, #127 - 1797 0118 0022 movs r2, #0 - ARM GAS /tmp/ccTaFl06.s page 121 - - - 1798 011a 0092 str r2, [sp] - 1799 011c 5B04 lsls r3, r3, #17 - 1800 011e FF32 adds r2, r2, #255 - 1801 0120 0399 ldr r1, [sp, #12] - 1802 0122 2800 movs r0, r5 - 1803 0124 FFF7FEFF bl I2C_TransferConfig - 1804 .LVL152: - 1805 0128 C7E7 b .L136 - 1806 .L148: - 708:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** { - 1807 .loc 1 708 0 - 1808 012a 2200 movs r2, r4 - 1809 012c 0A99 ldr r1, [sp, #40] - 1810 012e 2800 movs r0, r5 - 1811 0130 FFF7FEFF bl I2C_WaitOnSTOPFlagUntilTimeout - 1812 .LVL153: - 1813 0134 0028 cmp r0, #0 - 1814 0136 04D0 beq .L141 - 710:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** { - 1815 .loc 1 710 0 - 1816 0138 6B6C ldr r3, [r5, #68] - 1817 013a 042B cmp r3, #4 - 1818 013c 1CD1 bne .L147 - 712:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** } - 1819 .loc 1 712 0 - 1820 013e 0120 movs r0, #1 - 1821 0140 10E0 b .L133 - 1822 .L141: - 721:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** - 1823 .loc 1 721 0 - 1824 0142 2B68 ldr r3, [r5] - 1825 0144 2022 movs r2, #32 - 1826 0146 DA61 str r2, [r3, #28] - 724:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** - 1827 .loc 1 724 0 - 1828 0148 2968 ldr r1, [r5] - 1829 014a 4B68 ldr r3, [r1, #4] - 1830 014c 0B4C ldr r4, .L150 - 1831 .LVL154: - 1832 014e 2340 ands r3, r4 - 1833 0150 4B60 str r3, [r1, #4] - 726:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** hi2c->Mode = HAL_I2C_MODE_NONE; - 1834 .loc 1 726 0 - 1835 0152 4123 movs r3, #65 - 1836 0154 EA54 strb r2, [r5, r3] - 727:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** - 1837 .loc 1 727 0 - 1838 0156 0023 movs r3, #0 - 1839 0158 2232 adds r2, r2, #34 - 1840 015a AB54 strb r3, [r5, r2] - 730:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** - 1841 .loc 1 730 0 - 1842 015c 023A subs r2, r2, #2 - 1843 015e AB54 strb r3, [r5, r2] - 732:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** } - 1844 .loc 1 732 0 - 1845 0160 00E0 b .L133 - ARM GAS /tmp/ccTaFl06.s page 122 - - - 1846 .LVL155: - 1847 .L142: - 736:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** } - 1848 .loc 1 736 0 - 1849 0162 0220 movs r0, #2 - 1850 .LVL156: - 1851 .L133: - 738:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** - 1852 .loc 1 738 0 - 1853 0164 05B0 add sp, sp, #20 - 1854 @ sp needed - 1855 .LVL157: - 1856 .LVL158: - 1857 0166 F0BD pop {r4, r5, r6, r7, pc} - 1858 .LVL159: - 1859 .L143: - 634:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** - 1860 .loc 1 634 0 - 1861 0168 0220 movs r0, #2 - 1862 .LVL160: - 1863 016a FBE7 b .L133 - 1864 .LVL161: - 1865 .L144: - 641:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** } - 1866 .loc 1 641 0 - 1867 016c 0320 movs r0, #3 - 1868 016e F9E7 b .L133 - 1869 .L145: - 677:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** } - 1870 .loc 1 677 0 - 1871 0170 0320 movs r0, #3 - 1872 0172 F7E7 b .L133 - 1873 .L146: - 690:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** } - 1874 .loc 1 690 0 - 1875 0174 0320 movs r0, #3 - 1876 0176 F5E7 b .L133 - 1877 .L147: - 716:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** } - 1878 .loc 1 716 0 - 1879 0178 0320 movs r0, #3 - 1880 017a F3E7 b .L133 - 1881 .L151: - 1882 .align 2 - 1883 .L150: - 1884 017c 00E800FE .word -33495040 - 1885 .cfi_endproc - 1886 .LFE41: - 1888 .section .text.HAL_I2C_Master_Receive,"ax",%progbits - 1889 .align 1 - 1890 .global HAL_I2C_Master_Receive - 1891 .syntax unified - 1892 .code 16 - 1893 .thumb_func - 1894 .fpu softvfp - 1896 HAL_I2C_Master_Receive: - 1897 .LFB42: - ARM GAS /tmp/ccTaFl06.s page 123 - - - 752:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** uint32_t tickstart = 0U; - 1898 .loc 1 752 0 - 1899 .cfi_startproc - 1900 @ args = 4, pretend = 0, frame = 8 - 1901 @ frame_needed = 0, uses_anonymous_args = 0 - 1902 .LVL162: - 1903 0000 F0B5 push {r4, r5, r6, r7, lr} - 1904 .LCFI17: - 1905 .cfi_def_cfa_offset 20 - 1906 .cfi_offset 4, -20 - 1907 .cfi_offset 5, -16 - 1908 .cfi_offset 6, -12 - 1909 .cfi_offset 7, -8 - 1910 .cfi_offset 14, -4 - 1911 0002 85B0 sub sp, sp, #20 - 1912 .LCFI18: - 1913 .cfi_def_cfa_offset 40 - 1914 0004 0500 movs r5, r0 - 1915 0006 0391 str r1, [sp, #12] - 1916 0008 1700 movs r7, r2 - 1917 000a 1E00 movs r6, r3 - 1918 .LVL163: - 755:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** { - 1919 .loc 1 755 0 - 1920 000c 4123 movs r3, #65 - 1921 .LVL164: - 1922 000e C35C ldrb r3, [r0, r3] - 1923 0010 202B cmp r3, #32 - 1924 0012 00D0 beq .LCB1901 - 1925 0014 A5E0 b .L162 @long jump - 1926 .LCB1901: - 758:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** - 1927 .loc 1 758 0 - 1928 0016 2033 adds r3, r3, #32 - 1929 0018 C35C ldrb r3, [r0, r3] - 1930 001a 012B cmp r3, #1 - 1931 001c 00D1 bne .LCB1905 - 1932 001e A3E0 b .L163 @long jump - 1933 .LCB1905: - 758:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** - 1934 .loc 1 758 0 is_stmt 0 discriminator 2 - 1935 0020 4023 movs r3, #64 - 1936 0022 0122 movs r2, #1 - 1937 .LVL165: - 1938 0024 C254 strb r2, [r0, r3] - 761:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** - 1939 .loc 1 761 0 is_stmt 1 discriminator 2 - 1940 0026 FFF7FEFF bl HAL_GetTick - 1941 .LVL166: - 1942 002a 0400 movs r4, r0 - 1943 .LVL167: - 763:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** { - 1944 .loc 1 763 0 discriminator 2 - 1945 002c 8021 movs r1, #128 - 1946 002e 0090 str r0, [sp] - 1947 0030 1923 movs r3, #25 - 1948 0032 0122 movs r2, #1 - ARM GAS /tmp/ccTaFl06.s page 124 - - - 1949 0034 0902 lsls r1, r1, #8 - 1950 0036 2800 movs r0, r5 - 1951 .LVL168: - 1952 0038 FFF7FEFF bl I2C_WaitOnFlagUntilTimeout - 1953 .LVL169: - 1954 003c 0028 cmp r0, #0 - 1955 003e 00D0 beq .LCB1926 - 1956 0040 94E0 b .L164 @long jump - 1957 .LCB1926: - 768:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** hi2c->Mode = HAL_I2C_MODE_MASTER; - 1958 .loc 1 768 0 - 1959 0042 4123 movs r3, #65 - 1960 0044 2222 movs r2, #34 - 1961 0046 EA54 strb r2, [r5, r3] - 769:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** hi2c->ErrorCode = HAL_I2C_ERROR_NONE; - 1962 .loc 1 769 0 - 1963 0048 0133 adds r3, r3, #1 - 1964 004a 123A subs r2, r2, #18 - 1965 004c EA54 strb r2, [r5, r3] - 770:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** - 1966 .loc 1 770 0 - 1967 004e 0023 movs r3, #0 - 1968 0050 6B64 str r3, [r5, #68] - 773:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** hi2c->XferCount = Size; - 1969 .loc 1 773 0 - 1970 0052 6F62 str r7, [r5, #36] - 774:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** hi2c->XferISR = NULL; - 1971 .loc 1 774 0 - 1972 0054 6E85 strh r6, [r5, #42] - 775:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** - 1973 .loc 1 775 0 - 1974 0056 6B63 str r3, [r5, #52] - 779:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** { - 1975 .loc 1 779 0 - 1976 0058 6B8D ldrh r3, [r5, #42] - 1977 005a 9BB2 uxth r3, r3 - 1978 005c FF2B cmp r3, #255 - 1979 005e 0CD9 bls .L154 - 781:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** I2C_TransferConfig(hi2c, DevAddress, hi2c->XferSize, I2C_RELOAD_MODE, I2C_GENERATE_START_READ - 1980 .loc 1 781 0 - 1981 0060 FF23 movs r3, #255 - 1982 0062 2B85 strh r3, [r5, #40] - 782:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** } - 1983 .loc 1 782 0 - 1984 0064 7F3B subs r3, r3, #127 - 1985 0066 9022 movs r2, #144 - 1986 0068 9201 lsls r2, r2, #6 - 1987 006a 0092 str r2, [sp] - 1988 006c 5B04 lsls r3, r3, #17 - 1989 006e FF22 movs r2, #255 - 1990 0070 0399 ldr r1, [sp, #12] - 1991 0072 2800 movs r0, r5 - 1992 0074 FFF7FEFF bl I2C_TransferConfig - 1993 .LVL170: - 1994 0078 1FE0 b .L156 - 1995 .L154: - 786:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** I2C_TransferConfig(hi2c, DevAddress, hi2c->XferSize, I2C_AUTOEND_MODE, I2C_GENERATE_START_REA - ARM GAS /tmp/ccTaFl06.s page 125 - - - 1996 .loc 1 786 0 - 1997 007a 6A8D ldrh r2, [r5, #42] - 1998 007c 92B2 uxth r2, r2 - 1999 007e 2A85 strh r2, [r5, #40] - 787:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** } - 2000 .loc 1 787 0 - 2001 0080 8023 movs r3, #128 - 2002 0082 D2B2 uxtb r2, r2 - 2003 0084 9021 movs r1, #144 - 2004 0086 8901 lsls r1, r1, #6 - 2005 0088 0091 str r1, [sp] - 2006 008a 9B04 lsls r3, r3, #18 - 2007 008c 0399 ldr r1, [sp, #12] - 2008 008e 2800 movs r0, r5 - 2009 0090 FFF7FEFF bl I2C_TransferConfig - 2010 .LVL171: - 2011 0094 11E0 b .L156 - 2012 .L169: - 795:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** { - 2013 .loc 1 795 0 - 2014 0096 6B6C ldr r3, [r5, #68] - 2015 0098 042B cmp r3, #4 - 2016 009a 00D0 beq .LCB1980 - 2017 009c 68E0 b .L165 @long jump - 2018 .LCB1980: - 797:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** } - 2019 .loc 1 797 0 - 2020 009e 0120 movs r0, #1 - 2021 00a0 60E0 b .L153 - 2022 .L159: - 825:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** I2C_TransferConfig(hi2c, DevAddress, hi2c->XferSize, I2C_AUTOEND_MODE, I2C_NO_STARTSTOP); - 2023 .loc 1 825 0 - 2024 00a2 6A8D ldrh r2, [r5, #42] - 2025 00a4 92B2 uxth r2, r2 - 2026 00a6 2A85 strh r2, [r5, #40] - 826:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** } - 2027 .loc 1 826 0 - 2028 00a8 8023 movs r3, #128 - 2029 00aa D2B2 uxtb r2, r2 - 2030 00ac 0021 movs r1, #0 - 2031 00ae 0091 str r1, [sp] - 2032 00b0 9B04 lsls r3, r3, #18 - 2033 00b2 0399 ldr r1, [sp, #12] - 2034 00b4 2800 movs r0, r5 - 2035 00b6 FFF7FEFF bl I2C_TransferConfig - 2036 .LVL172: - 2037 .L156: - 790:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** { - 2038 .loc 1 790 0 - 2039 00ba 6B8D ldrh r3, [r5, #42] - 2040 00bc 9BB2 uxth r3, r3 - 2041 00be 002B cmp r3, #0 - 2042 00c0 33D0 beq .L168 - 793:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** { - 2043 .loc 1 793 0 - 2044 00c2 2200 movs r2, r4 - 2045 00c4 0A99 ldr r1, [sp, #40] - ARM GAS /tmp/ccTaFl06.s page 126 - - - 2046 00c6 2800 movs r0, r5 - 2047 00c8 FFF7FEFF bl I2C_WaitOnRXNEFlagUntilTimeout - 2048 .LVL173: - 2049 00cc 0028 cmp r0, #0 - 2050 00ce E2D1 bne .L169 - 806:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** hi2c->XferSize--; - 2051 .loc 1 806 0 - 2052 00d0 2B68 ldr r3, [r5] - 2053 00d2 5A6A ldr r2, [r3, #36] - 2054 00d4 6B6A ldr r3, [r5, #36] - 2055 00d6 591C adds r1, r3, #1 - 2056 00d8 6962 str r1, [r5, #36] - 2057 00da 1A70 strb r2, [r3] - 807:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** hi2c->XferCount--; - 2058 .loc 1 807 0 - 2059 00dc 2B8D ldrh r3, [r5, #40] - 2060 00de 013B subs r3, r3, #1 - 2061 00e0 9BB2 uxth r3, r3 - 2062 00e2 2B85 strh r3, [r5, #40] - 808:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** - 2063 .loc 1 808 0 - 2064 00e4 6A8D ldrh r2, [r5, #42] - 2065 00e6 013A subs r2, r2, #1 - 2066 00e8 92B2 uxth r2, r2 - 2067 00ea 6A85 strh r2, [r5, #42] - 810:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** { - 2068 .loc 1 810 0 - 2069 00ec 002B cmp r3, #0 - 2070 00ee E4D1 bne .L156 - 810:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** { - 2071 .loc 1 810 0 is_stmt 0 discriminator 1 - 2072 00f0 6B8D ldrh r3, [r5, #42] - 2073 00f2 9BB2 uxth r3, r3 - 2074 00f4 002B cmp r3, #0 - 2075 00f6 E0D0 beq .L156 - 813:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** { - 2076 .loc 1 813 0 is_stmt 1 - 2077 00f8 0094 str r4, [sp] - 2078 00fa 0A9B ldr r3, [sp, #40] - 2079 00fc 0022 movs r2, #0 - 2080 00fe 8021 movs r1, #128 - 2081 0100 2800 movs r0, r5 - 2082 0102 FFF7FEFF bl I2C_WaitOnFlagUntilTimeout - 2083 .LVL174: - 2084 0106 0028 cmp r0, #0 - 2085 0108 34D1 bne .L166 - 818:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** { - 2086 .loc 1 818 0 - 2087 010a 6B8D ldrh r3, [r5, #42] - 2088 010c 9BB2 uxth r3, r3 - 2089 010e FF2B cmp r3, #255 - 2090 0110 C7D9 bls .L159 - 820:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** I2C_TransferConfig(hi2c, DevAddress, hi2c->XferSize, I2C_RELOAD_MODE, I2C_NO_STARTSTOP); - 2091 .loc 1 820 0 - 2092 0112 FF23 movs r3, #255 - 2093 0114 2B85 strh r3, [r5, #40] - 821:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** } - ARM GAS /tmp/ccTaFl06.s page 127 - - - 2094 .loc 1 821 0 - 2095 0116 7F3B subs r3, r3, #127 - 2096 0118 0022 movs r2, #0 - 2097 011a 0092 str r2, [sp] - 2098 011c 5B04 lsls r3, r3, #17 - 2099 011e FF32 adds r2, r2, #255 - 2100 0120 0399 ldr r1, [sp, #12] - 2101 0122 2800 movs r0, r5 - 2102 0124 FFF7FEFF bl I2C_TransferConfig - 2103 .LVL175: - 2104 0128 C7E7 b .L156 - 2105 .L168: - 833:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** { - 2106 .loc 1 833 0 - 2107 012a 2200 movs r2, r4 - 2108 012c 0A99 ldr r1, [sp, #40] - 2109 012e 2800 movs r0, r5 - 2110 0130 FFF7FEFF bl I2C_WaitOnSTOPFlagUntilTimeout - 2111 .LVL176: - 2112 0134 0028 cmp r0, #0 - 2113 0136 04D0 beq .L161 - 835:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** { - 2114 .loc 1 835 0 - 2115 0138 6B6C ldr r3, [r5, #68] - 2116 013a 042B cmp r3, #4 - 2117 013c 1CD1 bne .L167 - 837:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** } - 2118 .loc 1 837 0 - 2119 013e 0120 movs r0, #1 - 2120 0140 10E0 b .L153 - 2121 .L161: - 846:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** - 2122 .loc 1 846 0 - 2123 0142 2B68 ldr r3, [r5] - 2124 0144 2022 movs r2, #32 - 2125 0146 DA61 str r2, [r3, #28] - 849:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** - 2126 .loc 1 849 0 - 2127 0148 2968 ldr r1, [r5] - 2128 014a 4B68 ldr r3, [r1, #4] - 2129 014c 0B4C ldr r4, .L170 - 2130 .LVL177: - 2131 014e 2340 ands r3, r4 - 2132 0150 4B60 str r3, [r1, #4] - 851:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** hi2c->Mode = HAL_I2C_MODE_NONE; - 2133 .loc 1 851 0 - 2134 0152 4123 movs r3, #65 - 2135 0154 EA54 strb r2, [r5, r3] - 852:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** - 2136 .loc 1 852 0 - 2137 0156 0023 movs r3, #0 - 2138 0158 2232 adds r2, r2, #34 - 2139 015a AB54 strb r3, [r5, r2] - 855:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** - 2140 .loc 1 855 0 - 2141 015c 023A subs r2, r2, #2 - 2142 015e AB54 strb r3, [r5, r2] - ARM GAS /tmp/ccTaFl06.s page 128 - - - 857:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** } - 2143 .loc 1 857 0 - 2144 0160 00E0 b .L153 - 2145 .LVL178: - 2146 .L162: - 861:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** } - 2147 .loc 1 861 0 - 2148 0162 0220 movs r0, #2 - 2149 .LVL179: - 2150 .L153: - 863:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** - 2151 .loc 1 863 0 - 2152 0164 05B0 add sp, sp, #20 - 2153 @ sp needed - 2154 .LVL180: - 2155 .LVL181: - 2156 0166 F0BD pop {r4, r5, r6, r7, pc} - 2157 .LVL182: - 2158 .L163: - 758:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** - 2159 .loc 1 758 0 - 2160 0168 0220 movs r0, #2 - 2161 .LVL183: - 2162 016a FBE7 b .L153 - 2163 .LVL184: - 2164 .L164: - 765:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** } - 2165 .loc 1 765 0 - 2166 016c 0320 movs r0, #3 - 2167 016e F9E7 b .L153 - 2168 .L165: - 801:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** } - 2169 .loc 1 801 0 - 2170 0170 0320 movs r0, #3 - 2171 0172 F7E7 b .L153 - 2172 .L166: - 815:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** } - 2173 .loc 1 815 0 - 2174 0174 0320 movs r0, #3 - 2175 0176 F5E7 b .L153 - 2176 .L167: - 841:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** } - 2177 .loc 1 841 0 - 2178 0178 0320 movs r0, #3 - 2179 017a F3E7 b .L153 - 2180 .L171: - 2181 .align 2 - 2182 .L170: - 2183 017c 00E800FE .word -33495040 - 2184 .cfi_endproc - 2185 .LFE42: - 2187 .section .text.HAL_I2C_Slave_Transmit,"ax",%progbits - 2188 .align 1 - 2189 .global HAL_I2C_Slave_Transmit - 2190 .syntax unified - 2191 .code 16 - 2192 .thumb_func - ARM GAS /tmp/ccTaFl06.s page 129 - - - 2193 .fpu softvfp - 2195 HAL_I2C_Slave_Transmit: - 2196 .LFB43: - 875:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** uint32_t tickstart = 0U; - 2197 .loc 1 875 0 - 2198 .cfi_startproc - 2199 @ args = 0, pretend = 0, frame = 8 - 2200 @ frame_needed = 0, uses_anonymous_args = 0 - 2201 .LVL185: - 2202 0000 F0B5 push {r4, r5, r6, r7, lr} - 2203 .LCFI19: - 2204 .cfi_def_cfa_offset 20 - 2205 .cfi_offset 4, -20 - 2206 .cfi_offset 5, -16 - 2207 .cfi_offset 6, -12 - 2208 .cfi_offset 7, -8 - 2209 .cfi_offset 14, -4 - 2210 0002 85B0 sub sp, sp, #20 - 2211 .LCFI20: - 2212 .cfi_def_cfa_offset 40 - 2213 0004 0400 movs r4, r0 - 2214 0006 0D00 movs r5, r1 - 2215 0008 1600 movs r6, r2 - 2216 000a 0393 str r3, [sp, #12] - 2217 .LVL186: - 878:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** { - 2218 .loc 1 878 0 - 2219 000c 4123 movs r3, #65 - 2220 .LVL187: - 2221 000e C35C ldrb r3, [r0, r3] - 2222 0010 202B cmp r3, #32 - 2223 0012 00D0 beq .LCB2201 - 2224 0014 B5E0 b .L182 @long jump - 2225 .LCB2201: - 880:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** { - 2226 .loc 1 880 0 - 2227 0016 0029 cmp r1, #0 - 2228 0018 00D1 bne .LCB2203 - 2229 001a B5E0 b .L183 @long jump - 2230 .LCB2203: - 880:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** { - 2231 .loc 1 880 0 is_stmt 0 discriminator 1 - 2232 001c 002A cmp r2, #0 - 2233 001e 00D1 bne .LCB2205 - 2234 0020 B4E0 b .L184 @long jump - 2235 .LCB2205: - 885:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** - 2236 .loc 1 885 0 is_stmt 1 - 2237 0022 2033 adds r3, r3, #32 - 2238 0024 C35C ldrb r3, [r0, r3] - 2239 0026 012B cmp r3, #1 - 2240 0028 00D1 bne .LCB2209 - 2241 002a B1E0 b .L185 @long jump - 2242 .LCB2209: - 885:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** - 2243 .loc 1 885 0 is_stmt 0 discriminator 2 - 2244 002c 4023 movs r3, #64 - ARM GAS /tmp/ccTaFl06.s page 130 - - - 2245 002e 0122 movs r2, #1 - 2246 .LVL188: - 2247 0030 C254 strb r2, [r0, r3] - 888:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** - 2248 .loc 1 888 0 is_stmt 1 discriminator 2 - 2249 0032 FFF7FEFF bl HAL_GetTick - 2250 .LVL189: - 2251 0036 0700 movs r7, r0 - 2252 .LVL190: - 890:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** hi2c->Mode = HAL_I2C_MODE_SLAVE; - 2253 .loc 1 890 0 discriminator 2 - 2254 0038 4123 movs r3, #65 - 2255 003a 2122 movs r2, #33 - 2256 003c E254 strb r2, [r4, r3] - 891:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** hi2c->ErrorCode = HAL_I2C_ERROR_NONE; - 2257 .loc 1 891 0 discriminator 2 - 2258 003e 0133 adds r3, r3, #1 - 2259 0040 013A subs r2, r2, #1 - 2260 0042 E254 strb r2, [r4, r3] - 892:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** - 2261 .loc 1 892 0 discriminator 2 - 2262 0044 0023 movs r3, #0 - 2263 0046 6364 str r3, [r4, #68] - 895:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** hi2c->XferCount = Size; - 2264 .loc 1 895 0 discriminator 2 - 2265 0048 6562 str r5, [r4, #36] - 896:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** hi2c->XferISR = NULL; - 2266 .loc 1 896 0 discriminator 2 - 2267 004a 6685 strh r6, [r4, #42] - 897:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** - 2268 .loc 1 897 0 discriminator 2 - 2269 004c 6363 str r3, [r4, #52] - 900:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** - 2270 .loc 1 900 0 discriminator 2 - 2271 004e 2268 ldr r2, [r4] - 2272 0050 5368 ldr r3, [r2, #4] - 2273 0052 5249 ldr r1, .L195 - 2274 0054 0B40 ands r3, r1 - 2275 0056 5360 str r3, [r2, #4] - 903:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** { - 2276 .loc 1 903 0 discriminator 2 - 2277 0058 0090 str r0, [sp] - 2278 005a 039B ldr r3, [sp, #12] - 2279 005c 0022 movs r2, #0 - 2280 005e 0821 movs r1, #8 - 2281 0060 2000 movs r0, r4 - 2282 .LVL191: - 2283 0062 FFF7FEFF bl I2C_WaitOnFlagUntilTimeout - 2284 .LVL192: - 2285 0066 0028 cmp r0, #0 - 2286 0068 25D1 bne .L188 - 911:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** - 2287 .loc 1 911 0 - 2288 006a 2368 ldr r3, [r4] - 2289 006c 0822 movs r2, #8 - 2290 006e DA61 str r2, [r3, #28] - 914:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** { - ARM GAS /tmp/ccTaFl06.s page 131 - - - 2291 .loc 1 914 0 - 2292 0070 E368 ldr r3, [r4, #12] - 2293 0072 022B cmp r3, #2 - 2294 0074 27D0 beq .L189 - 2295 .L175: - 929:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** { - 2296 .loc 1 929 0 - 2297 0076 8021 movs r1, #128 - 2298 0078 0097 str r7, [sp] - 2299 007a 039B ldr r3, [sp, #12] - 2300 007c 0022 movs r2, #0 - 2301 007e 4902 lsls r1, r1, #9 - 2302 0080 2000 movs r0, r4 - 2303 0082 FFF7FEFF bl I2C_WaitOnFlagUntilTimeout - 2304 .LVL193: - 2305 0086 0028 cmp r0, #0 - 2306 0088 32D1 bne .L190 - 2307 .L177: - 936:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** { - 2308 .loc 1 936 0 - 2309 008a 638D ldrh r3, [r4, #42] - 2310 008c 9BB2 uxth r3, r3 - 2311 008e 002B cmp r3, #0 - 2312 0090 41D0 beq .L191 - 939:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** { - 2313 .loc 1 939 0 - 2314 0092 3A00 movs r2, r7 - 2315 0094 0399 ldr r1, [sp, #12] - 2316 0096 2000 movs r0, r4 - 2317 0098 FFF7FEFF bl I2C_WaitOnTXISFlagUntilTimeout - 2318 .LVL194: - 2319 009c 0028 cmp r0, #0 - 2320 009e 2FD1 bne .L192 - 955:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** hi2c->XferCount--; - 2321 .loc 1 955 0 - 2322 00a0 636A ldr r3, [r4, #36] - 2323 00a2 5A1C adds r2, r3, #1 - 2324 00a4 6262 str r2, [r4, #36] - 2325 00a6 2268 ldr r2, [r4] - 2326 00a8 1B78 ldrb r3, [r3] - 2327 00aa 9362 str r3, [r2, #40] - 956:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** } - 2328 .loc 1 956 0 - 2329 00ac 638D ldrh r3, [r4, #42] - 2330 00ae 013B subs r3, r3, #1 - 2331 00b0 9BB2 uxth r3, r3 - 2332 00b2 6385 strh r3, [r4, #42] - 2333 00b4 E9E7 b .L177 - 2334 .L188: - 906:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** return HAL_TIMEOUT; - 2335 .loc 1 906 0 - 2336 00b6 2268 ldr r2, [r4] - 2337 00b8 5168 ldr r1, [r2, #4] - 2338 00ba 8023 movs r3, #128 - 2339 00bc 1B02 lsls r3, r3, #8 - 2340 00be 0B43 orrs r3, r1 - 2341 00c0 5360 str r3, [r2, #4] - ARM GAS /tmp/ccTaFl06.s page 132 - - - 907:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** } - 2342 .loc 1 907 0 - 2343 00c2 0320 movs r0, #3 - 2344 00c4 5EE0 b .L173 - 2345 .L189: - 917:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** { - 2346 .loc 1 917 0 - 2347 00c6 0097 str r7, [sp] - 2348 00c8 039B ldr r3, [sp, #12] - 2349 00ca 0022 movs r2, #0 - 2350 00cc 0821 movs r1, #8 - 2351 00ce 2000 movs r0, r4 - 2352 00d0 FFF7FEFF bl I2C_WaitOnFlagUntilTimeout - 2353 .LVL195: - 2354 00d4 0028 cmp r0, #0 - 2355 00d6 03D1 bne .L193 - 925:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** } - 2356 .loc 1 925 0 - 2357 00d8 2368 ldr r3, [r4] - 2358 00da 0822 movs r2, #8 - 2359 00dc DA61 str r2, [r3, #28] - 2360 00de CAE7 b .L175 - 2361 .L193: - 920:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** return HAL_TIMEOUT; - 2362 .loc 1 920 0 - 2363 00e0 2268 ldr r2, [r4] - 2364 00e2 5168 ldr r1, [r2, #4] - 2365 00e4 8023 movs r3, #128 - 2366 00e6 1B02 lsls r3, r3, #8 - 2367 00e8 0B43 orrs r3, r1 - 2368 00ea 5360 str r3, [r2, #4] - 921:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** } - 2369 .loc 1 921 0 - 2370 00ec 0320 movs r0, #3 - 2371 00ee 49E0 b .L173 - 2372 .L190: - 932:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** return HAL_TIMEOUT; - 2373 .loc 1 932 0 - 2374 00f0 2268 ldr r2, [r4] - 2375 00f2 5168 ldr r1, [r2, #4] - 2376 00f4 8023 movs r3, #128 - 2377 00f6 1B02 lsls r3, r3, #8 - 2378 00f8 0B43 orrs r3, r1 - 2379 00fa 5360 str r3, [r2, #4] - 933:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** } - 2380 .loc 1 933 0 - 2381 00fc 0320 movs r0, #3 - 2382 00fe 41E0 b .L173 - 2383 .L192: - 942:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** - 2384 .loc 1 942 0 - 2385 0100 2268 ldr r2, [r4] - 2386 0102 5168 ldr r1, [r2, #4] - 2387 0104 8023 movs r3, #128 - 2388 0106 1B02 lsls r3, r3, #8 - 2389 0108 0B43 orrs r3, r1 - 2390 010a 5360 str r3, [r2, #4] - ARM GAS /tmp/ccTaFl06.s page 133 - - - 944:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** { - 2391 .loc 1 944 0 - 2392 010c 636C ldr r3, [r4, #68] - 2393 010e 042B cmp r3, #4 - 2394 0110 40D1 bne .L186 - 946:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** } - 2395 .loc 1 946 0 - 2396 0112 0120 movs r0, #1 - 2397 0114 36E0 b .L173 - 2398 .L191: - 960:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** { - 2399 .loc 1 960 0 - 2400 0116 3A00 movs r2, r7 - 2401 0118 0399 ldr r1, [sp, #12] - 2402 011a 2000 movs r0, r4 - 2403 011c FFF7FEFF bl I2C_WaitOnSTOPFlagUntilTimeout - 2404 .LVL196: - 2405 0120 0028 cmp r0, #0 - 2406 0122 0AD0 beq .L180 - 963:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** - 2407 .loc 1 963 0 - 2408 0124 2268 ldr r2, [r4] - 2409 0126 5168 ldr r1, [r2, #4] - 2410 0128 8023 movs r3, #128 - 2411 012a 1B02 lsls r3, r3, #8 - 2412 012c 0B43 orrs r3, r1 - 2413 012e 5360 str r3, [r2, #4] - 965:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** { - 2414 .loc 1 965 0 - 2415 0130 636C ldr r3, [r4, #68] - 2416 0132 042B cmp r3, #4 - 2417 0134 30D1 bne .L187 - 969:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** } - 2418 .loc 1 969 0 - 2419 0136 0023 movs r3, #0 - 2420 0138 6364 str r3, [r4, #68] - 2421 .L180: - 978:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** - 2422 .loc 1 978 0 - 2423 013a 2368 ldr r3, [r4] - 2424 013c 2022 movs r2, #32 - 2425 013e DA61 str r2, [r3, #28] - 981:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** { - 2426 .loc 1 981 0 - 2427 0140 8021 movs r1, #128 - 2428 0142 0097 str r7, [sp] - 2429 0144 039B ldr r3, [sp, #12] - 2430 0146 1F3A subs r2, r2, #31 - 2431 0148 0902 lsls r1, r1, #8 - 2432 014a 2000 movs r0, r4 - 2433 014c FFF7FEFF bl I2C_WaitOnFlagUntilTimeout - 2434 .LVL197: - 2435 0150 0028 cmp r0, #0 - 2436 0152 0ED1 bne .L194 - 989:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** - 2437 .loc 1 989 0 - 2438 0154 2268 ldr r2, [r4] - ARM GAS /tmp/ccTaFl06.s page 134 - - - 2439 0156 5168 ldr r1, [r2, #4] - 2440 0158 8023 movs r3, #128 - 2441 015a 1B02 lsls r3, r3, #8 - 2442 015c 0B43 orrs r3, r1 - 2443 015e 5360 str r3, [r2, #4] - 991:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** hi2c->Mode = HAL_I2C_MODE_NONE; - 2444 .loc 1 991 0 - 2445 0160 4123 movs r3, #65 - 2446 0162 2022 movs r2, #32 - 2447 0164 E254 strb r2, [r4, r3] - 992:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** - 2448 .loc 1 992 0 - 2449 0166 0023 movs r3, #0 - 2450 0168 2232 adds r2, r2, #34 - 2451 016a A354 strb r3, [r4, r2] - 995:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** - 2452 .loc 1 995 0 - 2453 016c 023A subs r2, r2, #2 - 2454 016e A354 strb r3, [r4, r2] - 997:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** } - 2455 .loc 1 997 0 - 2456 0170 08E0 b .L173 - 2457 .L194: - 984:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** return HAL_TIMEOUT; - 2458 .loc 1 984 0 - 2459 0172 2268 ldr r2, [r4] - 2460 0174 5168 ldr r1, [r2, #4] - 2461 0176 8023 movs r3, #128 - 2462 0178 1B02 lsls r3, r3, #8 - 2463 017a 0B43 orrs r3, r1 - 2464 017c 5360 str r3, [r2, #4] - 985:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** } - 2465 .loc 1 985 0 - 2466 017e 0320 movs r0, #3 - 2467 0180 00E0 b .L173 - 2468 .LVL198: - 2469 .L182: -1001:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** } - 2470 .loc 1 1001 0 - 2471 0182 0220 movs r0, #2 - 2472 .LVL199: - 2473 .L173: -1003:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** - 2474 .loc 1 1003 0 - 2475 0184 05B0 add sp, sp, #20 - 2476 @ sp needed - 2477 .LVL200: - 2478 .LVL201: - 2479 0186 F0BD pop {r4, r5, r6, r7, pc} - 2480 .LVL202: - 2481 .L183: - 882:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** } - 2482 .loc 1 882 0 - 2483 0188 0120 movs r0, #1 - 2484 .LVL203: - 2485 018a FBE7 b .L173 - 2486 .LVL204: - ARM GAS /tmp/ccTaFl06.s page 135 - - - 2487 .L184: - 2488 018c 0120 movs r0, #1 - 2489 .LVL205: - 2490 018e F9E7 b .L173 - 2491 .LVL206: - 2492 .L185: - 885:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** - 2493 .loc 1 885 0 - 2494 0190 0220 movs r0, #2 - 2495 .LVL207: - 2496 0192 F7E7 b .L173 - 2497 .LVL208: - 2498 .L186: - 950:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** } - 2499 .loc 1 950 0 - 2500 0194 0320 movs r0, #3 - 2501 0196 F5E7 b .L173 - 2502 .L187: - 973:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** } - 2503 .loc 1 973 0 - 2504 0198 0320 movs r0, #3 - 2505 019a F3E7 b .L173 - 2506 .L196: - 2507 .align 2 - 2508 .L195: - 2509 019c FF7FFFFF .word -32769 - 2510 .cfi_endproc - 2511 .LFE43: - 2513 .section .text.HAL_I2C_Slave_Receive,"ax",%progbits - 2514 .align 1 - 2515 .global HAL_I2C_Slave_Receive - 2516 .syntax unified - 2517 .code 16 - 2518 .thumb_func - 2519 .fpu softvfp - 2521 HAL_I2C_Slave_Receive: - 2522 .LFB44: -1015:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** uint32_t tickstart = 0U; - 2523 .loc 1 1015 0 - 2524 .cfi_startproc - 2525 @ args = 0, pretend = 0, frame = 8 - 2526 @ frame_needed = 0, uses_anonymous_args = 0 - 2527 .LVL209: - 2528 0000 F0B5 push {r4, r5, r6, r7, lr} - 2529 .LCFI21: - 2530 .cfi_def_cfa_offset 20 - 2531 .cfi_offset 4, -20 - 2532 .cfi_offset 5, -16 - 2533 .cfi_offset 6, -12 - 2534 .cfi_offset 7, -8 - 2535 .cfi_offset 14, -4 - 2536 0002 85B0 sub sp, sp, #20 - 2537 .LCFI22: - 2538 .cfi_def_cfa_offset 40 - 2539 0004 0500 movs r5, r0 - 2540 0006 0C00 movs r4, r1 - 2541 0008 1600 movs r6, r2 - ARM GAS /tmp/ccTaFl06.s page 136 - - - 2542 000a 0393 str r3, [sp, #12] - 2543 .LVL210: -1018:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** { - 2544 .loc 1 1018 0 - 2545 000c 4123 movs r3, #65 - 2546 .LVL211: - 2547 000e C35C ldrb r3, [r0, r3] - 2548 0010 202B cmp r3, #32 - 2549 0012 00D0 beq .LCB2526 - 2550 0014 ACE0 b .L206 @long jump - 2551 .LCB2526: -1020:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** { - 2552 .loc 1 1020 0 - 2553 0016 0029 cmp r1, #0 - 2554 0018 00D1 bne .LCB2528 - 2555 001a ACE0 b .L207 @long jump - 2556 .LCB2528: -1020:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** { - 2557 .loc 1 1020 0 is_stmt 0 discriminator 1 - 2558 001c 002A cmp r2, #0 - 2559 001e 00D1 bne .LCB2530 - 2560 0020 ABE0 b .L208 @long jump - 2561 .LCB2530: -1025:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** - 2562 .loc 1 1025 0 is_stmt 1 - 2563 0022 2033 adds r3, r3, #32 - 2564 0024 C35C ldrb r3, [r0, r3] - 2565 0026 012B cmp r3, #1 - 2566 0028 00D1 bne .LCB2534 - 2567 002a A8E0 b .L209 @long jump - 2568 .LCB2534: -1025:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** - 2569 .loc 1 1025 0 is_stmt 0 discriminator 2 - 2570 002c 4023 movs r3, #64 - 2571 002e 0122 movs r2, #1 - 2572 .LVL212: - 2573 0030 C254 strb r2, [r0, r3] -1028:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** - 2574 .loc 1 1028 0 is_stmt 1 discriminator 2 - 2575 0032 FFF7FEFF bl HAL_GetTick - 2576 .LVL213: - 2577 0036 0700 movs r7, r0 - 2578 .LVL214: -1030:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** hi2c->Mode = HAL_I2C_MODE_SLAVE; - 2579 .loc 1 1030 0 discriminator 2 - 2580 0038 4123 movs r3, #65 - 2581 003a 2222 movs r2, #34 - 2582 003c EA54 strb r2, [r5, r3] -1031:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** hi2c->ErrorCode = HAL_I2C_ERROR_NONE; - 2583 .loc 1 1031 0 discriminator 2 - 2584 003e 0133 adds r3, r3, #1 - 2585 0040 023A subs r2, r2, #2 - 2586 0042 EA54 strb r2, [r5, r3] -1032:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** - 2587 .loc 1 1032 0 discriminator 2 - 2588 0044 0023 movs r3, #0 - 2589 0046 6B64 str r3, [r5, #68] - ARM GAS /tmp/ccTaFl06.s page 137 - - -1035:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** hi2c->XferCount = Size; - 2590 .loc 1 1035 0 discriminator 2 - 2591 0048 6C62 str r4, [r5, #36] -1036:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** hi2c->XferISR = NULL; - 2592 .loc 1 1036 0 discriminator 2 - 2593 004a 6E85 strh r6, [r5, #42] -1037:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** - 2594 .loc 1 1037 0 discriminator 2 - 2595 004c 6B63 str r3, [r5, #52] -1040:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** - 2596 .loc 1 1040 0 discriminator 2 - 2597 004e 2A68 ldr r2, [r5] - 2598 0050 5368 ldr r3, [r2, #4] - 2599 0052 4D49 ldr r1, .L218 - 2600 0054 0B40 ands r3, r1 - 2601 0056 5360 str r3, [r2, #4] -1043:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** { - 2602 .loc 1 1043 0 discriminator 2 - 2603 0058 0090 str r0, [sp] - 2604 005a 039B ldr r3, [sp, #12] - 2605 005c 0022 movs r2, #0 - 2606 005e 0821 movs r1, #8 - 2607 0060 2800 movs r0, r5 - 2608 .LVL215: - 2609 0062 FFF7FEFF bl I2C_WaitOnFlagUntilTimeout - 2610 .LVL216: - 2611 0066 0028 cmp r0, #0 - 2612 0068 22D1 bne .L212 -1051:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** - 2613 .loc 1 1051 0 - 2614 006a 2B68 ldr r3, [r5] - 2615 006c 0822 movs r2, #8 - 2616 006e DA61 str r2, [r3, #28] -1054:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** { - 2617 .loc 1 1054 0 - 2618 0070 8021 movs r1, #128 - 2619 0072 0097 str r7, [sp] - 2620 0074 039B ldr r3, [sp, #12] - 2621 0076 073A subs r2, r2, #7 - 2622 0078 4902 lsls r1, r1, #9 - 2623 007a 2800 movs r0, r5 - 2624 007c FFF7FEFF bl I2C_WaitOnFlagUntilTimeout - 2625 .LVL217: - 2626 0080 0028 cmp r0, #0 - 2627 0082 1DD1 bne .L213 - 2628 .L200: -1061:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** { - 2629 .loc 1 1061 0 - 2630 0084 6B8D ldrh r3, [r5, #42] - 2631 0086 9BB2 uxth r3, r3 - 2632 0088 002B cmp r3, #0 - 2633 008a 3BD0 beq .L214 -1064:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** { - 2634 .loc 1 1064 0 - 2635 008c 3A00 movs r2, r7 - 2636 008e 0399 ldr r1, [sp, #12] - 2637 0090 2800 movs r0, r5 - ARM GAS /tmp/ccTaFl06.s page 138 - - - 2638 0092 FFF7FEFF bl I2C_WaitOnRXNEFlagUntilTimeout - 2639 .LVL218: - 2640 0096 0028 cmp r0, #0 - 2641 0098 1AD1 bne .L215 -1088:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** hi2c->XferCount--; - 2642 .loc 1 1088 0 - 2643 009a 2B68 ldr r3, [r5] - 2644 009c 5A6A ldr r2, [r3, #36] - 2645 009e 6B6A ldr r3, [r5, #36] - 2646 00a0 591C adds r1, r3, #1 - 2647 00a2 6962 str r1, [r5, #36] - 2648 00a4 1A70 strb r2, [r3] -1089:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** } - 2649 .loc 1 1089 0 - 2650 00a6 6B8D ldrh r3, [r5, #42] - 2651 00a8 013B subs r3, r3, #1 - 2652 00aa 9BB2 uxth r3, r3 - 2653 00ac 6B85 strh r3, [r5, #42] - 2654 00ae E9E7 b .L200 - 2655 .L212: -1046:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** return HAL_TIMEOUT; - 2656 .loc 1 1046 0 - 2657 00b0 2A68 ldr r2, [r5] - 2658 00b2 5168 ldr r1, [r2, #4] - 2659 00b4 8023 movs r3, #128 - 2660 00b6 1B02 lsls r3, r3, #8 - 2661 00b8 0B43 orrs r3, r1 - 2662 00ba 5360 str r3, [r2, #4] -1047:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** } - 2663 .loc 1 1047 0 - 2664 00bc 0320 movs r0, #3 - 2665 00be 58E0 b .L198 - 2666 .L213: -1057:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** return HAL_TIMEOUT; - 2667 .loc 1 1057 0 - 2668 00c0 2A68 ldr r2, [r5] - 2669 00c2 5168 ldr r1, [r2, #4] - 2670 00c4 8023 movs r3, #128 - 2671 00c6 1B02 lsls r3, r3, #8 - 2672 00c8 0B43 orrs r3, r1 - 2673 00ca 5360 str r3, [r2, #4] -1058:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** } - 2674 .loc 1 1058 0 - 2675 00cc 0320 movs r0, #3 - 2676 00ce 50E0 b .L198 - 2677 .L215: -1067:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** - 2678 .loc 1 1067 0 - 2679 00d0 2A68 ldr r2, [r5] - 2680 00d2 5168 ldr r1, [r2, #4] - 2681 00d4 8023 movs r3, #128 - 2682 00d6 1B02 lsls r3, r3, #8 - 2683 00d8 0B43 orrs r3, r1 - 2684 00da 5360 str r3, [r2, #4] -1070:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** { - 2685 .loc 1 1070 0 - 2686 00dc 2B68 ldr r3, [r5] - ARM GAS /tmp/ccTaFl06.s page 139 - - - 2687 00de 9A69 ldr r2, [r3, #24] - 2688 00e0 5207 lsls r2, r2, #29 - 2689 00e2 08D5 bpl .L202 -1073:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** hi2c->XferCount--; - 2690 .loc 1 1073 0 - 2691 00e4 5A6A ldr r2, [r3, #36] - 2692 00e6 6B6A ldr r3, [r5, #36] - 2693 00e8 591C adds r1, r3, #1 - 2694 00ea 6962 str r1, [r5, #36] - 2695 00ec 1A70 strb r2, [r3] -1074:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** } - 2696 .loc 1 1074 0 - 2697 00ee 6B8D ldrh r3, [r5, #42] - 2698 00f0 013B subs r3, r3, #1 - 2699 00f2 9BB2 uxth r3, r3 - 2700 00f4 6B85 strh r3, [r5, #42] - 2701 .L202: -1077:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** { - 2702 .loc 1 1077 0 - 2703 00f6 6B6C ldr r3, [r5, #68] - 2704 00f8 202B cmp r3, #32 - 2705 00fa 01D0 beq .L216 -1083:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** } - 2706 .loc 1 1083 0 - 2707 00fc 0120 movs r0, #1 - 2708 00fe 38E0 b .L198 - 2709 .L216: -1079:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** } - 2710 .loc 1 1079 0 - 2711 0100 0320 movs r0, #3 - 2712 0102 36E0 b .L198 - 2713 .L214: -1093:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** { - 2714 .loc 1 1093 0 - 2715 0104 3A00 movs r2, r7 - 2716 0106 0399 ldr r1, [sp, #12] - 2717 0108 2800 movs r0, r5 - 2718 010a FFF7FEFF bl I2C_WaitOnSTOPFlagUntilTimeout - 2719 .LVL219: - 2720 010e 0028 cmp r0, #0 - 2721 0110 0AD0 beq .L204 -1096:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** - 2722 .loc 1 1096 0 - 2723 0112 2A68 ldr r2, [r5] - 2724 0114 5168 ldr r1, [r2, #4] - 2725 0116 8023 movs r3, #128 - 2726 0118 1B02 lsls r3, r3, #8 - 2727 011a 0B43 orrs r3, r1 - 2728 011c 5360 str r3, [r2, #4] -1098:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** { - 2729 .loc 1 1098 0 - 2730 011e 6B6C ldr r3, [r5, #68] - 2731 0120 042B cmp r3, #4 - 2732 0122 2ED1 bne .L211 -1100:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** } - 2733 .loc 1 1100 0 - 2734 0124 0120 movs r0, #1 - ARM GAS /tmp/ccTaFl06.s page 140 - - - 2735 0126 24E0 b .L198 - 2736 .L204: -1109:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** - 2737 .loc 1 1109 0 - 2738 0128 2B68 ldr r3, [r5] - 2739 012a 2022 movs r2, #32 - 2740 012c DA61 str r2, [r3, #28] -1112:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** { - 2741 .loc 1 1112 0 - 2742 012e 8021 movs r1, #128 - 2743 0130 0097 str r7, [sp] - 2744 0132 039B ldr r3, [sp, #12] - 2745 0134 1F3A subs r2, r2, #31 - 2746 0136 0902 lsls r1, r1, #8 - 2747 0138 2800 movs r0, r5 - 2748 013a FFF7FEFF bl I2C_WaitOnFlagUntilTimeout - 2749 .LVL220: - 2750 013e 0028 cmp r0, #0 - 2751 0140 0ED1 bne .L217 -1120:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** - 2752 .loc 1 1120 0 - 2753 0142 2A68 ldr r2, [r5] - 2754 0144 5168 ldr r1, [r2, #4] - 2755 0146 8023 movs r3, #128 - 2756 0148 1B02 lsls r3, r3, #8 - 2757 014a 0B43 orrs r3, r1 - 2758 014c 5360 str r3, [r2, #4] -1122:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** hi2c->Mode = HAL_I2C_MODE_NONE; - 2759 .loc 1 1122 0 - 2760 014e 4123 movs r3, #65 - 2761 0150 2022 movs r2, #32 - 2762 0152 EA54 strb r2, [r5, r3] -1123:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** - 2763 .loc 1 1123 0 - 2764 0154 0023 movs r3, #0 - 2765 0156 2232 adds r2, r2, #34 - 2766 0158 AB54 strb r3, [r5, r2] -1126:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** - 2767 .loc 1 1126 0 - 2768 015a 023A subs r2, r2, #2 - 2769 015c AB54 strb r3, [r5, r2] -1128:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** } - 2770 .loc 1 1128 0 - 2771 015e 08E0 b .L198 - 2772 .L217: -1115:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** return HAL_TIMEOUT; - 2773 .loc 1 1115 0 - 2774 0160 2A68 ldr r2, [r5] - 2775 0162 5168 ldr r1, [r2, #4] - 2776 0164 8023 movs r3, #128 - 2777 0166 1B02 lsls r3, r3, #8 - 2778 0168 0B43 orrs r3, r1 - 2779 016a 5360 str r3, [r2, #4] -1116:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** } - 2780 .loc 1 1116 0 - 2781 016c 0320 movs r0, #3 - 2782 016e 00E0 b .L198 - ARM GAS /tmp/ccTaFl06.s page 141 - - - 2783 .LVL221: - 2784 .L206: -1132:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** } - 2785 .loc 1 1132 0 - 2786 0170 0220 movs r0, #2 - 2787 .LVL222: - 2788 .L198: -1134:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** - 2789 .loc 1 1134 0 - 2790 0172 05B0 add sp, sp, #20 - 2791 @ sp needed - 2792 .LVL223: - 2793 .LVL224: - 2794 0174 F0BD pop {r4, r5, r6, r7, pc} - 2795 .LVL225: - 2796 .L207: -1022:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** } - 2797 .loc 1 1022 0 - 2798 0176 0120 movs r0, #1 - 2799 .LVL226: - 2800 0178 FBE7 b .L198 - 2801 .LVL227: - 2802 .L208: - 2803 017a 0120 movs r0, #1 - 2804 .LVL228: - 2805 017c F9E7 b .L198 - 2806 .LVL229: - 2807 .L209: -1025:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** - 2808 .loc 1 1025 0 - 2809 017e 0220 movs r0, #2 - 2810 .LVL230: - 2811 0180 F7E7 b .L198 - 2812 .LVL231: - 2813 .L211: -1104:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** } - 2814 .loc 1 1104 0 - 2815 0182 0320 movs r0, #3 - 2816 0184 F5E7 b .L198 - 2817 .L219: - 2818 0186 C046 .align 2 - 2819 .L218: - 2820 0188 FF7FFFFF .word -32769 - 2821 .cfi_endproc - 2822 .LFE44: - 2824 .section .text.HAL_I2C_Master_Transmit_IT,"ax",%progbits - 2825 .align 1 - 2826 .global HAL_I2C_Master_Transmit_IT - 2827 .syntax unified - 2828 .code 16 - 2829 .thumb_func - 2830 .fpu softvfp - 2832 HAL_I2C_Master_Transmit_IT: - 2833 .LFB45: -1147:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** uint32_t xfermode = 0U; - 2834 .loc 1 1147 0 - 2835 .cfi_startproc - ARM GAS /tmp/ccTaFl06.s page 142 - - - 2836 @ args = 0, pretend = 0, frame = 0 - 2837 @ frame_needed = 0, uses_anonymous_args = 0 - 2838 .LVL232: - 2839 0000 30B5 push {r4, r5, lr} - 2840 .LCFI23: - 2841 .cfi_def_cfa_offset 12 - 2842 .cfi_offset 4, -12 - 2843 .cfi_offset 5, -8 - 2844 .cfi_offset 14, -4 - 2845 0002 83B0 sub sp, sp, #12 - 2846 .LCFI24: - 2847 .cfi_def_cfa_offset 24 - 2848 0004 0400 movs r4, r0 - 2849 .LVL233: -1150:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** { - 2850 .loc 1 1150 0 - 2851 0006 4120 movs r0, #65 - 2852 .LVL234: - 2853 0008 205C ldrb r0, [r4, r0] - 2854 000a 2028 cmp r0, #32 - 2855 000c 36D1 bne .L224 -1152:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** { - 2856 .loc 1 1152 0 - 2857 000e 2068 ldr r0, [r4] - 2858 0010 8069 ldr r0, [r0, #24] - 2859 0012 0004 lsls r0, r0, #16 - 2860 0014 35D4 bmi .L225 -1158:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** - 2861 .loc 1 1158 0 - 2862 0016 4020 movs r0, #64 - 2863 0018 205C ldrb r0, [r4, r0] - 2864 001a 0128 cmp r0, #1 - 2865 001c 33D0 beq .L226 -1158:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** - 2866 .loc 1 1158 0 is_stmt 0 discriminator 2 - 2867 001e 4020 movs r0, #64 - 2868 0020 0125 movs r5, #1 - 2869 0022 2554 strb r5, [r4, r0] -1160:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** hi2c->Mode = HAL_I2C_MODE_MASTER; - 2870 .loc 1 1160 0 is_stmt 1 discriminator 2 - 2871 0024 0130 adds r0, r0, #1 - 2872 0026 2035 adds r5, r5, #32 - 2873 0028 2554 strb r5, [r4, r0] -1161:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** hi2c->ErrorCode = HAL_I2C_ERROR_NONE; - 2874 .loc 1 1161 0 discriminator 2 - 2875 002a 0130 adds r0, r0, #1 - 2876 002c 113D subs r5, r5, #17 - 2877 002e 2554 strb r5, [r4, r0] -1162:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** - 2878 .loc 1 1162 0 discriminator 2 - 2879 0030 0020 movs r0, #0 - 2880 0032 6064 str r0, [r4, #68] -1165:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** hi2c->XferCount = Size; - 2881 .loc 1 1165 0 discriminator 2 - 2882 0034 6262 str r2, [r4, #36] -1166:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** hi2c->XferOptions = I2C_NO_OPTION_FRAME; - 2883 .loc 1 1166 0 discriminator 2 - ARM GAS /tmp/ccTaFl06.s page 143 - - - 2884 0036 6385 strh r3, [r4, #42] -1167:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** hi2c->XferISR = I2C_Master_ISR_IT; - 2885 .loc 1 1167 0 discriminator 2 - 2886 0038 144B ldr r3, .L227 - 2887 .LVL235: - 2888 003a E362 str r3, [r4, #44] - 2889 .LVL236: -1168:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** - 2890 .loc 1 1168 0 discriminator 2 - 2891 003c 144B ldr r3, .L227+4 - 2892 003e 6363 str r3, [r4, #52] -1170:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** { - 2893 .loc 1 1170 0 discriminator 2 - 2894 0040 638D ldrh r3, [r4, #42] - 2895 0042 9BB2 uxth r3, r3 - 2896 0044 FF2B cmp r3, #255 - 2897 0046 14D9 bls .L222 -1172:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** xfermode = I2C_RELOAD_MODE; - 2898 .loc 1 1172 0 - 2899 0048 FF23 movs r3, #255 - 2900 004a 2385 strh r3, [r4, #40] - 2901 .LVL237: -1173:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** } - 2902 .loc 1 1173 0 - 2903 004c 8023 movs r3, #128 - 2904 004e 5B04 lsls r3, r3, #17 - 2905 .LVL238: - 2906 .L223: -1183:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** - 2907 .loc 1 1183 0 - 2908 0050 228D ldrh r2, [r4, #40] - 2909 .LVL239: - 2910 0052 D2B2 uxtb r2, r2 - 2911 0054 8020 movs r0, #128 - 2912 0056 8001 lsls r0, r0, #6 - 2913 0058 0090 str r0, [sp] - 2914 .LVL240: - 2915 005a 2000 movs r0, r4 - 2916 005c FFF7FEFF bl I2C_TransferConfig - 2917 .LVL241: -1186:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** - 2918 .loc 1 1186 0 - 2919 0060 4023 movs r3, #64 - 2920 0062 0022 movs r2, #0 - 2921 0064 E254 strb r2, [r4, r3] -1195:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** - 2922 .loc 1 1195 0 - 2923 0066 0121 movs r1, #1 - 2924 0068 2000 movs r0, r4 - 2925 006a FFF7FEFF bl I2C_Enable_IRQ - 2926 .LVL242: -1197:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** } - 2927 .loc 1 1197 0 - 2928 006e 0020 movs r0, #0 - 2929 0070 05E0 b .L221 - 2930 .LVL243: - 2931 .L222: - ARM GAS /tmp/ccTaFl06.s page 144 - - -1177:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** xfermode = I2C_AUTOEND_MODE; - 2932 .loc 1 1177 0 - 2933 0072 638D ldrh r3, [r4, #42] - 2934 0074 2385 strh r3, [r4, #40] - 2935 .LVL244: -1178:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** } - 2936 .loc 1 1178 0 - 2937 0076 8023 movs r3, #128 - 2938 0078 9B04 lsls r3, r3, #18 - 2939 007a E9E7 b .L223 - 2940 .LVL245: - 2941 .L224: -1201:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** } - 2942 .loc 1 1201 0 - 2943 007c 0220 movs r0, #2 - 2944 .LVL246: - 2945 .L221: -1203:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** - 2946 .loc 1 1203 0 - 2947 007e 03B0 add sp, sp, #12 - 2948 @ sp needed - 2949 .LVL247: - 2950 0080 30BD pop {r4, r5, pc} - 2951 .LVL248: - 2952 .L225: -1154:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** } - 2953 .loc 1 1154 0 - 2954 0082 0220 movs r0, #2 - 2955 0084 FBE7 b .L221 - 2956 .L226: -1158:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** - 2957 .loc 1 1158 0 - 2958 0086 0220 movs r0, #2 - 2959 0088 F9E7 b .L221 - 2960 .L228: - 2961 008a C046 .align 2 - 2962 .L227: - 2963 008c 0000FFFF .word -65536 - 2964 0090 00000000 .word I2C_Master_ISR_IT - 2965 .cfi_endproc - 2966 .LFE45: - 2968 .section .text.HAL_I2C_Master_Receive_IT,"ax",%progbits - 2969 .align 1 - 2970 .global HAL_I2C_Master_Receive_IT - 2971 .syntax unified - 2972 .code 16 - 2973 .thumb_func - 2974 .fpu softvfp - 2976 HAL_I2C_Master_Receive_IT: - 2977 .LFB46: -1216:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** uint32_t xfermode = 0U; - 2978 .loc 1 1216 0 - 2979 .cfi_startproc - 2980 @ args = 0, pretend = 0, frame = 0 - 2981 @ frame_needed = 0, uses_anonymous_args = 0 - 2982 .LVL249: - 2983 0000 30B5 push {r4, r5, lr} - ARM GAS /tmp/ccTaFl06.s page 145 - - - 2984 .LCFI25: - 2985 .cfi_def_cfa_offset 12 - 2986 .cfi_offset 4, -12 - 2987 .cfi_offset 5, -8 - 2988 .cfi_offset 14, -4 - 2989 0002 83B0 sub sp, sp, #12 - 2990 .LCFI26: - 2991 .cfi_def_cfa_offset 24 - 2992 0004 0400 movs r4, r0 - 2993 .LVL250: -1219:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** { - 2994 .loc 1 1219 0 - 2995 0006 4120 movs r0, #65 - 2996 .LVL251: - 2997 0008 205C ldrb r0, [r4, r0] - 2998 000a 2028 cmp r0, #32 - 2999 000c 36D1 bne .L233 -1221:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** { - 3000 .loc 1 1221 0 - 3001 000e 2068 ldr r0, [r4] - 3002 0010 8069 ldr r0, [r0, #24] - 3003 0012 0004 lsls r0, r0, #16 - 3004 0014 35D4 bmi .L234 -1227:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** - 3005 .loc 1 1227 0 - 3006 0016 4020 movs r0, #64 - 3007 0018 205C ldrb r0, [r4, r0] - 3008 001a 0128 cmp r0, #1 - 3009 001c 33D0 beq .L235 -1227:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** - 3010 .loc 1 1227 0 is_stmt 0 discriminator 2 - 3011 001e 4020 movs r0, #64 - 3012 0020 0125 movs r5, #1 - 3013 0022 2554 strb r5, [r4, r0] -1229:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** hi2c->Mode = HAL_I2C_MODE_MASTER; - 3014 .loc 1 1229 0 is_stmt 1 discriminator 2 - 3015 0024 0130 adds r0, r0, #1 - 3016 0026 2135 adds r5, r5, #33 - 3017 0028 2554 strb r5, [r4, r0] -1230:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** hi2c->ErrorCode = HAL_I2C_ERROR_NONE; - 3018 .loc 1 1230 0 discriminator 2 - 3019 002a 0130 adds r0, r0, #1 - 3020 002c 123D subs r5, r5, #18 - 3021 002e 2554 strb r5, [r4, r0] -1231:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** - 3022 .loc 1 1231 0 discriminator 2 - 3023 0030 0020 movs r0, #0 - 3024 0032 6064 str r0, [r4, #68] -1234:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** hi2c->XferCount = Size; - 3025 .loc 1 1234 0 discriminator 2 - 3026 0034 6262 str r2, [r4, #36] -1235:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** hi2c->XferOptions = I2C_NO_OPTION_FRAME; - 3027 .loc 1 1235 0 discriminator 2 - 3028 0036 6385 strh r3, [r4, #42] -1236:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** hi2c->XferISR = I2C_Master_ISR_IT; - 3029 .loc 1 1236 0 discriminator 2 - 3030 0038 144B ldr r3, .L236 - ARM GAS /tmp/ccTaFl06.s page 146 - - - 3031 .LVL252: - 3032 003a E362 str r3, [r4, #44] - 3033 .LVL253: -1237:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** - 3034 .loc 1 1237 0 discriminator 2 - 3035 003c 144B ldr r3, .L236+4 - 3036 003e 6363 str r3, [r4, #52] -1239:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** { - 3037 .loc 1 1239 0 discriminator 2 - 3038 0040 638D ldrh r3, [r4, #42] - 3039 0042 9BB2 uxth r3, r3 - 3040 0044 FF2B cmp r3, #255 - 3041 0046 14D9 bls .L231 -1241:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** xfermode = I2C_RELOAD_MODE; - 3042 .loc 1 1241 0 - 3043 0048 FF23 movs r3, #255 - 3044 004a 2385 strh r3, [r4, #40] - 3045 .LVL254: -1242:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** } - 3046 .loc 1 1242 0 - 3047 004c 8023 movs r3, #128 - 3048 004e 5B04 lsls r3, r3, #17 - 3049 .LVL255: - 3050 .L232: -1252:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** - 3051 .loc 1 1252 0 - 3052 0050 228D ldrh r2, [r4, #40] - 3053 .LVL256: - 3054 0052 D2B2 uxtb r2, r2 - 3055 0054 9020 movs r0, #144 - 3056 0056 8001 lsls r0, r0, #6 - 3057 0058 0090 str r0, [sp] - 3058 .LVL257: - 3059 005a 2000 movs r0, r4 - 3060 005c FFF7FEFF bl I2C_TransferConfig - 3061 .LVL258: -1255:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** - 3062 .loc 1 1255 0 - 3063 0060 4023 movs r3, #64 - 3064 0062 0022 movs r2, #0 - 3065 0064 E254 strb r2, [r4, r3] -1264:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** - 3066 .loc 1 1264 0 - 3067 0066 0221 movs r1, #2 - 3068 0068 2000 movs r0, r4 - 3069 006a FFF7FEFF bl I2C_Enable_IRQ - 3070 .LVL259: -1266:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** } - 3071 .loc 1 1266 0 - 3072 006e 0020 movs r0, #0 - 3073 0070 05E0 b .L230 - 3074 .LVL260: - 3075 .L231: -1246:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** xfermode = I2C_AUTOEND_MODE; - 3076 .loc 1 1246 0 - 3077 0072 638D ldrh r3, [r4, #42] - 3078 0074 2385 strh r3, [r4, #40] - ARM GAS /tmp/ccTaFl06.s page 147 - - - 3079 .LVL261: -1247:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** } - 3080 .loc 1 1247 0 - 3081 0076 8023 movs r3, #128 - 3082 0078 9B04 lsls r3, r3, #18 - 3083 007a E9E7 b .L232 - 3084 .LVL262: - 3085 .L233: -1270:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** } - 3086 .loc 1 1270 0 - 3087 007c 0220 movs r0, #2 - 3088 .LVL263: - 3089 .L230: -1272:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** - 3090 .loc 1 1272 0 - 3091 007e 03B0 add sp, sp, #12 - 3092 @ sp needed - 3093 .LVL264: - 3094 0080 30BD pop {r4, r5, pc} - 3095 .LVL265: - 3096 .L234: -1223:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** } - 3097 .loc 1 1223 0 - 3098 0082 0220 movs r0, #2 - 3099 0084 FBE7 b .L230 - 3100 .L235: -1227:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** - 3101 .loc 1 1227 0 - 3102 0086 0220 movs r0, #2 - 3103 0088 F9E7 b .L230 - 3104 .L237: - 3105 008a C046 .align 2 - 3106 .L236: - 3107 008c 0000FFFF .word -65536 - 3108 0090 00000000 .word I2C_Master_ISR_IT - 3109 .cfi_endproc - 3110 .LFE46: - 3112 .section .text.HAL_I2C_Slave_Transmit_IT,"ax",%progbits - 3113 .align 1 - 3114 .global HAL_I2C_Slave_Transmit_IT - 3115 .syntax unified - 3116 .code 16 - 3117 .thumb_func - 3118 .fpu softvfp - 3120 HAL_I2C_Slave_Transmit_IT: - 3121 .LFB47: -1283:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** if (hi2c->State == HAL_I2C_STATE_READY) - 3122 .loc 1 1283 0 - 3123 .cfi_startproc - 3124 @ args = 0, pretend = 0, frame = 0 - 3125 @ frame_needed = 0, uses_anonymous_args = 0 - 3126 .LVL266: - 3127 0000 F8B5 push {r3, r4, r5, r6, r7, lr} - 3128 .LCFI27: - 3129 .cfi_def_cfa_offset 24 - 3130 .cfi_offset 3, -24 - 3131 .cfi_offset 4, -20 - ARM GAS /tmp/ccTaFl06.s page 148 - - - 3132 .cfi_offset 5, -16 - 3133 .cfi_offset 6, -12 - 3134 .cfi_offset 7, -8 - 3135 .cfi_offset 14, -4 -1284:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** { - 3136 .loc 1 1284 0 - 3137 0002 4123 movs r3, #65 - 3138 0004 C35C ldrb r3, [r0, r3] - 3139 0006 202B cmp r3, #32 - 3140 0008 21D1 bne .L240 -1287:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** - 3141 .loc 1 1287 0 - 3142 000a 2033 adds r3, r3, #32 - 3143 000c C35C ldrb r3, [r0, r3] - 3144 000e 012B cmp r3, #1 - 3145 0010 1FD0 beq .L241 -1287:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** - 3146 .loc 1 1287 0 is_stmt 0 discriminator 2 - 3147 0012 4024 movs r4, #64 - 3148 0014 0123 movs r3, #1 - 3149 0016 0355 strb r3, [r0, r4] -1289:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** hi2c->Mode = HAL_I2C_MODE_SLAVE; - 3150 .loc 1 1289 0 is_stmt 1 discriminator 2 - 3151 0018 4033 adds r3, r3, #64 - 3152 001a 2125 movs r5, #33 - 3153 001c C554 strb r5, [r0, r3] -1290:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** hi2c->ErrorCode = HAL_I2C_ERROR_NONE; - 3154 .loc 1 1290 0 discriminator 2 - 3155 001e 0133 adds r3, r3, #1 - 3156 0020 013D subs r5, r5, #1 - 3157 0022 C554 strb r5, [r0, r3] -1291:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** - 3158 .loc 1 1291 0 discriminator 2 - 3159 0024 0025 movs r5, #0 - 3160 0026 4564 str r5, [r0, #68] -1294:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** - 3161 .loc 1 1294 0 discriminator 2 - 3162 0028 0668 ldr r6, [r0] - 3163 002a 7368 ldr r3, [r6, #4] - 3164 002c 0A4F ldr r7, .L242 - 3165 002e 3B40 ands r3, r7 - 3166 0030 7360 str r3, [r6, #4] -1297:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** hi2c->XferCount = Size; - 3167 .loc 1 1297 0 discriminator 2 - 3168 0032 4162 str r1, [r0, #36] -1298:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** hi2c->XferSize = hi2c->XferCount; - 3169 .loc 1 1298 0 discriminator 2 - 3170 0034 4285 strh r2, [r0, #42] -1299:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** hi2c->XferOptions = I2C_NO_OPTION_FRAME; - 3171 .loc 1 1299 0 discriminator 2 - 3172 0036 438D ldrh r3, [r0, #42] - 3173 0038 0385 strh r3, [r0, #40] -1300:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** hi2c->XferISR = I2C_Slave_ISR_IT; - 3174 .loc 1 1300 0 discriminator 2 - 3175 003a 084B ldr r3, .L242+4 - 3176 003c C362 str r3, [r0, #44] -1301:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** - ARM GAS /tmp/ccTaFl06.s page 149 - - - 3177 .loc 1 1301 0 discriminator 2 - 3178 003e 084B ldr r3, .L242+8 - 3179 0040 4363 str r3, [r0, #52] -1304:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** - 3180 .loc 1 1304 0 discriminator 2 - 3181 0042 0555 strb r5, [r0, r4] -1313:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** - 3182 .loc 1 1313 0 discriminator 2 - 3183 0044 0521 movs r1, #5 - 3184 .LVL267: - 3185 0046 FFF7FEFF bl I2C_Enable_IRQ - 3186 .LVL268: -1315:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** } - 3187 .loc 1 1315 0 discriminator 2 - 3188 004a 0020 movs r0, #0 - 3189 004c 00E0 b .L239 - 3190 .LVL269: - 3191 .L240: -1319:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** } - 3192 .loc 1 1319 0 - 3193 004e 0220 movs r0, #2 - 3194 .LVL270: - 3195 .L239: -1321:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** - 3196 .loc 1 1321 0 - 3197 @ sp needed - 3198 0050 F8BD pop {r3, r4, r5, r6, r7, pc} - 3199 .LVL271: - 3200 .L241: -1287:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** - 3201 .loc 1 1287 0 - 3202 0052 0220 movs r0, #2 - 3203 .LVL272: - 3204 0054 FCE7 b .L239 - 3205 .L243: - 3206 0056 C046 .align 2 - 3207 .L242: - 3208 0058 FF7FFFFF .word -32769 - 3209 005c 0000FFFF .word -65536 - 3210 0060 00000000 .word I2C_Slave_ISR_IT - 3211 .cfi_endproc - 3212 .LFE47: - 3214 .section .text.HAL_I2C_Slave_Receive_IT,"ax",%progbits - 3215 .align 1 - 3216 .global HAL_I2C_Slave_Receive_IT - 3217 .syntax unified - 3218 .code 16 - 3219 .thumb_func - 3220 .fpu softvfp - 3222 HAL_I2C_Slave_Receive_IT: - 3223 .LFB48: -1332:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** if (hi2c->State == HAL_I2C_STATE_READY) - 3224 .loc 1 1332 0 - 3225 .cfi_startproc - 3226 @ args = 0, pretend = 0, frame = 0 - 3227 @ frame_needed = 0, uses_anonymous_args = 0 - 3228 .LVL273: - ARM GAS /tmp/ccTaFl06.s page 150 - - - 3229 0000 F8B5 push {r3, r4, r5, r6, r7, lr} - 3230 .LCFI28: - 3231 .cfi_def_cfa_offset 24 - 3232 .cfi_offset 3, -24 - 3233 .cfi_offset 4, -20 - 3234 .cfi_offset 5, -16 - 3235 .cfi_offset 6, -12 - 3236 .cfi_offset 7, -8 - 3237 .cfi_offset 14, -4 -1333:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** { - 3238 .loc 1 1333 0 - 3239 0002 4123 movs r3, #65 - 3240 0004 C35C ldrb r3, [r0, r3] - 3241 0006 202B cmp r3, #32 - 3242 0008 21D1 bne .L246 -1336:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** - 3243 .loc 1 1336 0 - 3244 000a 2033 adds r3, r3, #32 - 3245 000c C35C ldrb r3, [r0, r3] - 3246 000e 012B cmp r3, #1 - 3247 0010 1FD0 beq .L247 -1336:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** - 3248 .loc 1 1336 0 is_stmt 0 discriminator 2 - 3249 0012 4024 movs r4, #64 - 3250 0014 0123 movs r3, #1 - 3251 0016 0355 strb r3, [r0, r4] -1338:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** hi2c->Mode = HAL_I2C_MODE_SLAVE; - 3252 .loc 1 1338 0 is_stmt 1 discriminator 2 - 3253 0018 4033 adds r3, r3, #64 - 3254 001a 2225 movs r5, #34 - 3255 001c C554 strb r5, [r0, r3] -1339:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** hi2c->ErrorCode = HAL_I2C_ERROR_NONE; - 3256 .loc 1 1339 0 discriminator 2 - 3257 001e 0133 adds r3, r3, #1 - 3258 0020 023D subs r5, r5, #2 - 3259 0022 C554 strb r5, [r0, r3] -1340:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** - 3260 .loc 1 1340 0 discriminator 2 - 3261 0024 0025 movs r5, #0 - 3262 0026 4564 str r5, [r0, #68] -1343:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** - 3263 .loc 1 1343 0 discriminator 2 - 3264 0028 0668 ldr r6, [r0] - 3265 002a 7368 ldr r3, [r6, #4] - 3266 002c 0A4F ldr r7, .L248 - 3267 002e 3B40 ands r3, r7 - 3268 0030 7360 str r3, [r6, #4] -1346:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** hi2c->XferCount = Size; - 3269 .loc 1 1346 0 discriminator 2 - 3270 0032 4162 str r1, [r0, #36] -1347:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** hi2c->XferSize = hi2c->XferCount; - 3271 .loc 1 1347 0 discriminator 2 - 3272 0034 4285 strh r2, [r0, #42] -1348:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** hi2c->XferOptions = I2C_NO_OPTION_FRAME; - 3273 .loc 1 1348 0 discriminator 2 - 3274 0036 438D ldrh r3, [r0, #42] - 3275 0038 0385 strh r3, [r0, #40] - ARM GAS /tmp/ccTaFl06.s page 151 - - -1349:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** hi2c->XferISR = I2C_Slave_ISR_IT; - 3276 .loc 1 1349 0 discriminator 2 - 3277 003a 084B ldr r3, .L248+4 - 3278 003c C362 str r3, [r0, #44] -1350:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** - 3279 .loc 1 1350 0 discriminator 2 - 3280 003e 084B ldr r3, .L248+8 - 3281 0040 4363 str r3, [r0, #52] -1353:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** - 3282 .loc 1 1353 0 discriminator 2 - 3283 0042 0555 strb r5, [r0, r4] -1362:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** - 3284 .loc 1 1362 0 discriminator 2 - 3285 0044 0621 movs r1, #6 - 3286 .LVL274: - 3287 0046 FFF7FEFF bl I2C_Enable_IRQ - 3288 .LVL275: -1364:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** } - 3289 .loc 1 1364 0 discriminator 2 - 3290 004a 0020 movs r0, #0 - 3291 004c 00E0 b .L245 - 3292 .LVL276: - 3293 .L246: -1368:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** } - 3294 .loc 1 1368 0 - 3295 004e 0220 movs r0, #2 - 3296 .LVL277: - 3297 .L245: -1370:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** - 3298 .loc 1 1370 0 - 3299 @ sp needed - 3300 0050 F8BD pop {r3, r4, r5, r6, r7, pc} - 3301 .LVL278: - 3302 .L247: -1336:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** - 3303 .loc 1 1336 0 - 3304 0052 0220 movs r0, #2 - 3305 .LVL279: - 3306 0054 FCE7 b .L245 - 3307 .L249: - 3308 0056 C046 .align 2 - 3309 .L248: - 3310 0058 FF7FFFFF .word -32769 - 3311 005c 0000FFFF .word -65536 - 3312 0060 00000000 .word I2C_Slave_ISR_IT - 3313 .cfi_endproc - 3314 .LFE48: - 3316 .section .text.HAL_I2C_Master_Transmit_DMA,"ax",%progbits - 3317 .align 1 - 3318 .global HAL_I2C_Master_Transmit_DMA - 3319 .syntax unified - 3320 .code 16 - 3321 .thumb_func - 3322 .fpu softvfp - 3324 HAL_I2C_Master_Transmit_DMA: - 3325 .LFB49: -1383:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** uint32_t xfermode = 0U; - ARM GAS /tmp/ccTaFl06.s page 152 - - - 3326 .loc 1 1383 0 - 3327 .cfi_startproc - 3328 @ args = 0, pretend = 0, frame = 0 - 3329 @ frame_needed = 0, uses_anonymous_args = 0 - 3330 .LVL280: - 3331 0000 F0B5 push {r4, r5, r6, r7, lr} - 3332 .LCFI29: - 3333 .cfi_def_cfa_offset 20 - 3334 .cfi_offset 4, -20 - 3335 .cfi_offset 5, -16 - 3336 .cfi_offset 6, -12 - 3337 .cfi_offset 7, -8 - 3338 .cfi_offset 14, -4 - 3339 0002 83B0 sub sp, sp, #12 - 3340 .LCFI30: - 3341 .cfi_def_cfa_offset 32 - 3342 0004 0400 movs r4, r0 - 3343 0006 0D00 movs r5, r1 - 3344 0008 1100 movs r1, r2 - 3345 .LVL281: -1386:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** { - 3346 .loc 1 1386 0 - 3347 000a 4122 movs r2, #65 - 3348 .LVL282: - 3349 000c 825C ldrb r2, [r0, r2] - 3350 000e 202A cmp r2, #32 - 3351 0010 6DD1 bne .L255 -1388:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** { - 3352 .loc 1 1388 0 - 3353 0012 0268 ldr r2, [r0] - 3354 0014 9269 ldr r2, [r2, #24] - 3355 0016 1204 lsls r2, r2, #16 - 3356 0018 00D5 bpl .LCB3333 - 3357 001a 6BE0 b .L256 @long jump - 3358 .LCB3333: -1394:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** - 3359 .loc 1 1394 0 - 3360 001c 4022 movs r2, #64 - 3361 001e 825C ldrb r2, [r0, r2] - 3362 0020 012A cmp r2, #1 - 3363 0022 00D1 bne .LCB3337 - 3364 0024 68E0 b .L257 @long jump - 3365 .LCB3337: -1394:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** - 3366 .loc 1 1394 0 is_stmt 0 discriminator 2 - 3367 0026 4022 movs r2, #64 - 3368 0028 0120 movs r0, #1 - 3369 .LVL283: - 3370 002a A054 strb r0, [r4, r2] -1396:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** hi2c->Mode = HAL_I2C_MODE_MASTER; - 3371 .loc 1 1396 0 is_stmt 1 discriminator 2 - 3372 002c 0132 adds r2, r2, #1 - 3373 002e 2030 adds r0, r0, #32 - 3374 0030 A054 strb r0, [r4, r2] -1397:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** hi2c->ErrorCode = HAL_I2C_ERROR_NONE; - 3375 .loc 1 1397 0 discriminator 2 - 3376 0032 0132 adds r2, r2, #1 - ARM GAS /tmp/ccTaFl06.s page 153 - - - 3377 0034 1138 subs r0, r0, #17 - 3378 0036 A054 strb r0, [r4, r2] -1398:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** - 3379 .loc 1 1398 0 discriminator 2 - 3380 0038 0022 movs r2, #0 - 3381 003a 6264 str r2, [r4, #68] -1401:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** hi2c->XferCount = Size; - 3382 .loc 1 1401 0 discriminator 2 - 3383 003c 6162 str r1, [r4, #36] -1402:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** hi2c->XferOptions = I2C_NO_OPTION_FRAME; - 3384 .loc 1 1402 0 discriminator 2 - 3385 003e 6385 strh r3, [r4, #42] -1403:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** hi2c->XferISR = I2C_Master_ISR_DMA; - 3386 .loc 1 1403 0 discriminator 2 - 3387 0040 2E4B ldr r3, .L259 - 3388 .LVL284: - 3389 0042 E362 str r3, [r4, #44] - 3390 .LVL285: -1404:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** - 3391 .loc 1 1404 0 discriminator 2 - 3392 0044 2E4B ldr r3, .L259+4 - 3393 0046 6363 str r3, [r4, #52] -1406:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** { - 3394 .loc 1 1406 0 discriminator 2 - 3395 0048 638D ldrh r3, [r4, #42] - 3396 004a 9BB2 uxth r3, r3 - 3397 004c FF2B cmp r3, #255 - 3398 004e 1BD9 bls .L252 -1408:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** xfermode = I2C_RELOAD_MODE; - 3399 .loc 1 1408 0 - 3400 0050 FF23 movs r3, #255 - 3401 0052 2385 strh r3, [r4, #40] - 3402 .LVL286: -1409:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** } - 3403 .loc 1 1409 0 - 3404 0054 8026 movs r6, #128 - 3405 0056 7604 lsls r6, r6, #17 - 3406 .LVL287: - 3407 .L253: -1417:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** { - 3408 .loc 1 1417 0 - 3409 0058 228D ldrh r2, [r4, #40] - 3410 005a 002A cmp r2, #0 - 3411 005c 19D1 bne .L258 -1454:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** - 3412 .loc 1 1454 0 - 3413 005e 294B ldr r3, .L259+8 - 3414 0060 6363 str r3, [r4, #52] -1458:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** - 3415 .loc 1 1458 0 - 3416 0062 8023 movs r3, #128 - 3417 0064 D2B2 uxtb r2, r2 - 3418 0066 8021 movs r1, #128 - 3419 .LVL288: - 3420 0068 8901 lsls r1, r1, #6 - 3421 006a 0091 str r1, [sp] - 3422 .LVL289: - ARM GAS /tmp/ccTaFl06.s page 154 - - - 3423 006c 9B04 lsls r3, r3, #18 - 3424 006e 2900 movs r1, r5 - 3425 0070 2000 movs r0, r4 - 3426 0072 FFF7FEFF bl I2C_TransferConfig - 3427 .LVL290: -1461:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** - 3428 .loc 1 1461 0 - 3429 0076 4023 movs r3, #64 - 3430 0078 0022 movs r2, #0 - 3431 007a E254 strb r2, [r4, r3] -1469:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** } - 3432 .loc 1 1469 0 - 3433 007c 0121 movs r1, #1 - 3434 007e 2000 movs r0, r4 - 3435 0080 FFF7FEFF bl I2C_Enable_IRQ - 3436 .LVL291: -1472:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** } - 3437 .loc 1 1472 0 - 3438 0084 0020 movs r0, #0 - 3439 0086 33E0 b .L251 - 3440 .LVL292: - 3441 .L252: -1413:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** xfermode = I2C_AUTOEND_MODE; - 3442 .loc 1 1413 0 - 3443 0088 638D ldrh r3, [r4, #42] - 3444 008a 2385 strh r3, [r4, #40] - 3445 .LVL293: -1414:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** } - 3446 .loc 1 1414 0 - 3447 008c 8026 movs r6, #128 - 3448 008e B604 lsls r6, r6, #18 - 3449 0090 E2E7 b .L253 - 3450 .LVL294: - 3451 .L258: -1420:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** - 3452 .loc 1 1420 0 - 3453 0092 A36B ldr r3, [r4, #56] - 3454 0094 1C4A ldr r2, .L259+12 - 3455 0096 9A62 str r2, [r3, #40] -1423:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** - 3456 .loc 1 1423 0 - 3457 0098 A36B ldr r3, [r4, #56] - 3458 009a 1C4A ldr r2, .L259+16 - 3459 009c 1A63 str r2, [r3, #48] -1426:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** hi2c->hdmatx->XferAbortCallback = NULL; - 3460 .loc 1 1426 0 - 3461 009e A36B ldr r3, [r4, #56] - 3462 00a0 0027 movs r7, #0 - 3463 00a2 DF62 str r7, [r3, #44] -1427:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** - 3464 .loc 1 1427 0 - 3465 00a4 A36B ldr r3, [r4, #56] - 3466 00a6 5F63 str r7, [r3, #52] -1430:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** - 3467 .loc 1 1430 0 - 3468 00a8 2268 ldr r2, [r4] - 3469 00aa 2832 adds r2, r2, #40 - ARM GAS /tmp/ccTaFl06.s page 155 - - - 3470 00ac 238D ldrh r3, [r4, #40] - 3471 00ae A06B ldr r0, [r4, #56] - 3472 00b0 FFF7FEFF bl HAL_DMA_Start_IT - 3473 .LVL295: -1434:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** - 3474 .loc 1 1434 0 - 3475 00b4 228D ldrh r2, [r4, #40] - 3476 00b6 D2B2 uxtb r2, r2 - 3477 00b8 8023 movs r3, #128 - 3478 00ba 9B01 lsls r3, r3, #6 - 3479 00bc 0093 str r3, [sp] - 3480 00be 3300 movs r3, r6 - 3481 00c0 2900 movs r1, r5 - 3482 00c2 2000 movs r0, r4 - 3483 00c4 FFF7FEFF bl I2C_TransferConfig - 3484 .LVL296: -1437:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** - 3485 .loc 1 1437 0 - 3486 00c8 638D ldrh r3, [r4, #42] - 3487 00ca 228D ldrh r2, [r4, #40] - 3488 00cc 9B1A subs r3, r3, r2 - 3489 00ce 9BB2 uxth r3, r3 - 3490 00d0 6385 strh r3, [r4, #42] -1440:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** - 3491 .loc 1 1440 0 - 3492 00d2 4023 movs r3, #64 - 3493 00d4 E754 strb r7, [r4, r3] -1446:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** - 3494 .loc 1 1446 0 - 3495 00d6 1121 movs r1, #17 - 3496 00d8 2000 movs r0, r4 - 3497 00da FFF7FEFF bl I2C_Enable_IRQ - 3498 .LVL297: -1449:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** } - 3499 .loc 1 1449 0 - 3500 00de 2268 ldr r2, [r4] - 3501 00e0 1168 ldr r1, [r2] - 3502 00e2 8023 movs r3, #128 - 3503 00e4 DB01 lsls r3, r3, #7 - 3504 00e6 0B43 orrs r3, r1 - 3505 00e8 1360 str r3, [r2] -1472:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** } - 3506 .loc 1 1472 0 - 3507 00ea 0020 movs r0, #0 - 3508 00ec 00E0 b .L251 - 3509 .LVL298: - 3510 .L255: -1476:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** } - 3511 .loc 1 1476 0 - 3512 00ee 0220 movs r0, #2 - 3513 .LVL299: - 3514 .L251: -1478:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** - 3515 .loc 1 1478 0 - 3516 00f0 03B0 add sp, sp, #12 - 3517 @ sp needed - 3518 .LVL300: - ARM GAS /tmp/ccTaFl06.s page 156 - - - 3519 00f2 F0BD pop {r4, r5, r6, r7, pc} - 3520 .LVL301: - 3521 .L256: -1390:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** } - 3522 .loc 1 1390 0 - 3523 00f4 0220 movs r0, #2 - 3524 .LVL302: - 3525 00f6 FBE7 b .L251 - 3526 .LVL303: - 3527 .L257: -1394:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** - 3528 .loc 1 1394 0 - 3529 00f8 0220 movs r0, #2 - 3530 .LVL304: - 3531 00fa F9E7 b .L251 - 3532 .L260: - 3533 .align 2 - 3534 .L259: - 3535 00fc 0000FFFF .word -65536 - 3536 0100 00000000 .word I2C_Master_ISR_DMA - 3537 0104 00000000 .word I2C_Master_ISR_IT - 3538 0108 00000000 .word I2C_DMAMasterTransmitCplt - 3539 010c 00000000 .word I2C_DMAError - 3540 .cfi_endproc - 3541 .LFE49: - 3543 .section .text.HAL_I2C_Master_Receive_DMA,"ax",%progbits - 3544 .align 1 - 3545 .global HAL_I2C_Master_Receive_DMA - 3546 .syntax unified - 3547 .code 16 - 3548 .thumb_func - 3549 .fpu softvfp - 3551 HAL_I2C_Master_Receive_DMA: - 3552 .LFB50: -1491:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** uint32_t xfermode = 0U; - 3553 .loc 1 1491 0 - 3554 .cfi_startproc - 3555 @ args = 0, pretend = 0, frame = 0 - 3556 @ frame_needed = 0, uses_anonymous_args = 0 - 3557 .LVL305: - 3558 0000 F0B5 push {r4, r5, r6, r7, lr} - 3559 .LCFI31: - 3560 .cfi_def_cfa_offset 20 - 3561 .cfi_offset 4, -20 - 3562 .cfi_offset 5, -16 - 3563 .cfi_offset 6, -12 - 3564 .cfi_offset 7, -8 - 3565 .cfi_offset 14, -4 - 3566 0002 83B0 sub sp, sp, #12 - 3567 .LCFI32: - 3568 .cfi_def_cfa_offset 32 - 3569 0004 0400 movs r4, r0 - 3570 0006 0D00 movs r5, r1 - 3571 .LVL306: -1494:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** { - 3572 .loc 1 1494 0 - 3573 0008 4121 movs r1, #65 - ARM GAS /tmp/ccTaFl06.s page 157 - - - 3574 .LVL307: - 3575 000a 415C ldrb r1, [r0, r1] - 3576 000c 2029 cmp r1, #32 - 3577 000e 6DD1 bne .L266 -1496:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** { - 3578 .loc 1 1496 0 - 3579 0010 0168 ldr r1, [r0] - 3580 0012 8969 ldr r1, [r1, #24] - 3581 0014 0904 lsls r1, r1, #16 - 3582 0016 00D5 bpl .LCB3552 - 3583 0018 6BE0 b .L267 @long jump - 3584 .LCB3552: -1502:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** - 3585 .loc 1 1502 0 - 3586 001a 4021 movs r1, #64 - 3587 001c 415C ldrb r1, [r0, r1] - 3588 001e 0129 cmp r1, #1 - 3589 0020 00D1 bne .LCB3556 - 3590 0022 68E0 b .L268 @long jump - 3591 .LCB3556: -1502:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** - 3592 .loc 1 1502 0 is_stmt 0 discriminator 2 - 3593 0024 4021 movs r1, #64 - 3594 0026 0120 movs r0, #1 - 3595 .LVL308: - 3596 0028 6054 strb r0, [r4, r1] -1504:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** hi2c->Mode = HAL_I2C_MODE_MASTER; - 3597 .loc 1 1504 0 is_stmt 1 discriminator 2 - 3598 002a 0131 adds r1, r1, #1 - 3599 002c 2130 adds r0, r0, #33 - 3600 002e 6054 strb r0, [r4, r1] -1505:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** hi2c->ErrorCode = HAL_I2C_ERROR_NONE; - 3601 .loc 1 1505 0 discriminator 2 - 3602 0030 0131 adds r1, r1, #1 - 3603 0032 1238 subs r0, r0, #18 - 3604 0034 6054 strb r0, [r4, r1] -1506:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** - 3605 .loc 1 1506 0 discriminator 2 - 3606 0036 0021 movs r1, #0 - 3607 0038 6164 str r1, [r4, #68] -1509:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** hi2c->XferCount = Size; - 3608 .loc 1 1509 0 discriminator 2 - 3609 003a 6262 str r2, [r4, #36] -1510:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** hi2c->XferOptions = I2C_NO_OPTION_FRAME; - 3610 .loc 1 1510 0 discriminator 2 - 3611 003c 6385 strh r3, [r4, #42] -1511:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** hi2c->XferISR = I2C_Master_ISR_DMA; - 3612 .loc 1 1511 0 discriminator 2 - 3613 003e 2F4B ldr r3, .L270 - 3614 .LVL309: - 3615 0040 E362 str r3, [r4, #44] - 3616 .LVL310: -1512:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** - 3617 .loc 1 1512 0 discriminator 2 - 3618 0042 2F4B ldr r3, .L270+4 - 3619 0044 6363 str r3, [r4, #52] -1514:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** { - ARM GAS /tmp/ccTaFl06.s page 158 - - - 3620 .loc 1 1514 0 discriminator 2 - 3621 0046 638D ldrh r3, [r4, #42] - 3622 0048 9BB2 uxth r3, r3 - 3623 004a FF2B cmp r3, #255 - 3624 004c 1BD9 bls .L263 -1516:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** xfermode = I2C_RELOAD_MODE; - 3625 .loc 1 1516 0 - 3626 004e FF23 movs r3, #255 - 3627 0050 2385 strh r3, [r4, #40] - 3628 .LVL311: -1517:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** } - 3629 .loc 1 1517 0 - 3630 0052 8026 movs r6, #128 - 3631 0054 7604 lsls r6, r6, #17 - 3632 .LVL312: - 3633 .L264: -1525:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** { - 3634 .loc 1 1525 0 - 3635 0056 218D ldrh r1, [r4, #40] - 3636 0058 0029 cmp r1, #0 - 3637 005a 19D1 bne .L269 -1562:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** - 3638 .loc 1 1562 0 - 3639 005c 294B ldr r3, .L270+8 - 3640 005e 6363 str r3, [r4, #52] -1566:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** - 3641 .loc 1 1566 0 - 3642 0060 8023 movs r3, #128 - 3643 0062 CAB2 uxtb r2, r1 - 3644 .LVL313: - 3645 0064 9021 movs r1, #144 - 3646 0066 8901 lsls r1, r1, #6 - 3647 0068 0091 str r1, [sp] - 3648 .LVL314: - 3649 006a 9B04 lsls r3, r3, #18 - 3650 006c 2900 movs r1, r5 - 3651 006e 2000 movs r0, r4 - 3652 0070 FFF7FEFF bl I2C_TransferConfig - 3653 .LVL315: -1569:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** - 3654 .loc 1 1569 0 - 3655 0074 4023 movs r3, #64 - 3656 0076 0022 movs r2, #0 - 3657 0078 E254 strb r2, [r4, r3] -1577:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** } - 3658 .loc 1 1577 0 - 3659 007a 0121 movs r1, #1 - 3660 007c 2000 movs r0, r4 - 3661 007e FFF7FEFF bl I2C_Enable_IRQ - 3662 .LVL316: -1579:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** } - 3663 .loc 1 1579 0 - 3664 0082 0020 movs r0, #0 - 3665 0084 33E0 b .L262 - 3666 .LVL317: - 3667 .L263: -1521:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** xfermode = I2C_AUTOEND_MODE; - ARM GAS /tmp/ccTaFl06.s page 159 - - - 3668 .loc 1 1521 0 - 3669 0086 638D ldrh r3, [r4, #42] - 3670 0088 2385 strh r3, [r4, #40] - 3671 .LVL318: -1522:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** } - 3672 .loc 1 1522 0 - 3673 008a 8026 movs r6, #128 - 3674 008c B604 lsls r6, r6, #18 - 3675 008e E2E7 b .L264 - 3676 .LVL319: - 3677 .L269: -1528:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** - 3678 .loc 1 1528 0 - 3679 0090 E36B ldr r3, [r4, #60] - 3680 0092 1D49 ldr r1, .L270+12 - 3681 0094 9962 str r1, [r3, #40] -1531:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** - 3682 .loc 1 1531 0 - 3683 0096 E36B ldr r3, [r4, #60] - 3684 0098 1C49 ldr r1, .L270+16 - 3685 009a 1963 str r1, [r3, #48] -1534:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** hi2c->hdmarx->XferAbortCallback = NULL; - 3686 .loc 1 1534 0 - 3687 009c E36B ldr r3, [r4, #60] - 3688 009e 0027 movs r7, #0 - 3689 00a0 DF62 str r7, [r3, #44] -1535:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** - 3690 .loc 1 1535 0 - 3691 00a2 E36B ldr r3, [r4, #60] - 3692 00a4 5F63 str r7, [r3, #52] -1538:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** - 3693 .loc 1 1538 0 - 3694 00a6 2168 ldr r1, [r4] - 3695 00a8 2431 adds r1, r1, #36 - 3696 00aa 238D ldrh r3, [r4, #40] - 3697 00ac E06B ldr r0, [r4, #60] - 3698 00ae FFF7FEFF bl HAL_DMA_Start_IT - 3699 .LVL320: -1542:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** - 3700 .loc 1 1542 0 - 3701 00b2 228D ldrh r2, [r4, #40] - 3702 00b4 D2B2 uxtb r2, r2 - 3703 00b6 9023 movs r3, #144 - 3704 00b8 9B01 lsls r3, r3, #6 - 3705 00ba 0093 str r3, [sp] - 3706 00bc 3300 movs r3, r6 - 3707 00be 2900 movs r1, r5 - 3708 00c0 2000 movs r0, r4 - 3709 00c2 FFF7FEFF bl I2C_TransferConfig - 3710 .LVL321: -1545:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** - 3711 .loc 1 1545 0 - 3712 00c6 638D ldrh r3, [r4, #42] - 3713 00c8 228D ldrh r2, [r4, #40] - 3714 00ca 9B1A subs r3, r3, r2 - 3715 00cc 9BB2 uxth r3, r3 - 3716 00ce 6385 strh r3, [r4, #42] - ARM GAS /tmp/ccTaFl06.s page 160 - - -1548:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** - 3717 .loc 1 1548 0 - 3718 00d0 4023 movs r3, #64 - 3719 00d2 E754 strb r7, [r4, r3] -1554:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** - 3720 .loc 1 1554 0 - 3721 00d4 1121 movs r1, #17 - 3722 00d6 2000 movs r0, r4 - 3723 00d8 FFF7FEFF bl I2C_Enable_IRQ - 3724 .LVL322: -1557:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** } - 3725 .loc 1 1557 0 - 3726 00dc 2268 ldr r2, [r4] - 3727 00de 1168 ldr r1, [r2] - 3728 00e0 8023 movs r3, #128 - 3729 00e2 1B02 lsls r3, r3, #8 - 3730 00e4 0B43 orrs r3, r1 - 3731 00e6 1360 str r3, [r2] -1579:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** } - 3732 .loc 1 1579 0 - 3733 00e8 0020 movs r0, #0 - 3734 00ea 00E0 b .L262 - 3735 .LVL323: - 3736 .L266: -1583:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** } - 3737 .loc 1 1583 0 - 3738 00ec 0220 movs r0, #2 - 3739 .LVL324: - 3740 .L262: -1585:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** - 3741 .loc 1 1585 0 - 3742 00ee 03B0 add sp, sp, #12 - 3743 @ sp needed - 3744 .LVL325: - 3745 00f0 F0BD pop {r4, r5, r6, r7, pc} - 3746 .LVL326: - 3747 .L267: -1498:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** } - 3748 .loc 1 1498 0 - 3749 00f2 0220 movs r0, #2 - 3750 .LVL327: - 3751 00f4 FBE7 b .L262 - 3752 .LVL328: - 3753 .L268: -1502:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** - 3754 .loc 1 1502 0 - 3755 00f6 0220 movs r0, #2 - 3756 .LVL329: - 3757 00f8 F9E7 b .L262 - 3758 .L271: - 3759 00fa C046 .align 2 - 3760 .L270: - 3761 00fc 0000FFFF .word -65536 - 3762 0100 00000000 .word I2C_Master_ISR_DMA - 3763 0104 00000000 .word I2C_Master_ISR_IT - 3764 0108 00000000 .word I2C_DMAMasterReceiveCplt - 3765 010c 00000000 .word I2C_DMAError - ARM GAS /tmp/ccTaFl06.s page 161 - - - 3766 .cfi_endproc - 3767 .LFE50: - 3769 .section .text.HAL_I2C_Slave_Transmit_DMA,"ax",%progbits - 3770 .align 1 - 3771 .global HAL_I2C_Slave_Transmit_DMA - 3772 .syntax unified - 3773 .code 16 - 3774 .thumb_func - 3775 .fpu softvfp - 3777 HAL_I2C_Slave_Transmit_DMA: - 3778 .LFB51: -1596:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** if (hi2c->State == HAL_I2C_STATE_READY) - 3779 .loc 1 1596 0 - 3780 .cfi_startproc - 3781 @ args = 0, pretend = 0, frame = 0 - 3782 @ frame_needed = 0, uses_anonymous_args = 0 - 3783 .LVL330: - 3784 0000 70B5 push {r4, r5, r6, lr} - 3785 .LCFI33: - 3786 .cfi_def_cfa_offset 16 - 3787 .cfi_offset 4, -16 - 3788 .cfi_offset 5, -12 - 3789 .cfi_offset 6, -8 - 3790 .cfi_offset 14, -4 - 3791 0002 0400 movs r4, r0 -1597:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** { - 3792 .loc 1 1597 0 - 3793 0004 4123 movs r3, #65 - 3794 0006 C35C ldrb r3, [r0, r3] - 3795 0008 202B cmp r3, #32 - 3796 000a 3CD1 bne .L274 -1599:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** { - 3797 .loc 1 1599 0 - 3798 000c 0029 cmp r1, #0 - 3799 000e 3CD0 beq .L275 -1599:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** { - 3800 .loc 1 1599 0 is_stmt 0 discriminator 1 - 3801 0010 002A cmp r2, #0 - 3802 0012 3CD0 beq .L276 -1604:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** - 3803 .loc 1 1604 0 is_stmt 1 - 3804 0014 2033 adds r3, r3, #32 - 3805 0016 C35C ldrb r3, [r0, r3] - 3806 0018 012B cmp r3, #1 - 3807 001a 3AD0 beq .L277 -1604:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** - 3808 .loc 1 1604 0 is_stmt 0 discriminator 2 - 3809 001c 4026 movs r6, #64 - 3810 001e 0123 movs r3, #1 - 3811 0020 8355 strb r3, [r0, r6] -1606:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** hi2c->Mode = HAL_I2C_MODE_SLAVE; - 3812 .loc 1 1606 0 is_stmt 1 discriminator 2 - 3813 0022 4033 adds r3, r3, #64 - 3814 0024 2120 movs r0, #33 - 3815 .LVL331: - 3816 0026 E054 strb r0, [r4, r3] -1607:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** hi2c->ErrorCode = HAL_I2C_ERROR_NONE; - ARM GAS /tmp/ccTaFl06.s page 162 - - - 3817 .loc 1 1607 0 discriminator 2 - 3818 0028 0133 adds r3, r3, #1 - 3819 002a 0138 subs r0, r0, #1 - 3820 002c E054 strb r0, [r4, r3] -1608:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** - 3821 .loc 1 1608 0 discriminator 2 - 3822 002e 0025 movs r5, #0 - 3823 0030 6564 str r5, [r4, #68] -1611:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** hi2c->XferCount = Size; - 3824 .loc 1 1611 0 discriminator 2 - 3825 0032 6162 str r1, [r4, #36] -1612:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** hi2c->XferSize = hi2c->XferCount; - 3826 .loc 1 1612 0 discriminator 2 - 3827 0034 6285 strh r2, [r4, #42] -1613:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** hi2c->XferOptions = I2C_NO_OPTION_FRAME; - 3828 .loc 1 1613 0 discriminator 2 - 3829 0036 638D ldrh r3, [r4, #42] - 3830 0038 2385 strh r3, [r4, #40] -1614:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** hi2c->XferISR = I2C_Slave_ISR_DMA; - 3831 .loc 1 1614 0 discriminator 2 - 3832 003a 174B ldr r3, .L278 - 3833 003c E362 str r3, [r4, #44] -1615:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** - 3834 .loc 1 1615 0 discriminator 2 - 3835 003e 174B ldr r3, .L278+4 - 3836 0040 6363 str r3, [r4, #52] -1618:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** - 3837 .loc 1 1618 0 discriminator 2 - 3838 0042 A36B ldr r3, [r4, #56] - 3839 0044 164A ldr r2, .L278+8 - 3840 .LVL332: - 3841 0046 9A62 str r2, [r3, #40] -1621:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** - 3842 .loc 1 1621 0 discriminator 2 - 3843 0048 A36B ldr r3, [r4, #56] - 3844 004a 164A ldr r2, .L278+12 - 3845 004c 1A63 str r2, [r3, #48] -1624:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** hi2c->hdmatx->XferAbortCallback = NULL; - 3846 .loc 1 1624 0 discriminator 2 - 3847 004e A36B ldr r3, [r4, #56] - 3848 0050 DD62 str r5, [r3, #44] -1625:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** - 3849 .loc 1 1625 0 discriminator 2 - 3850 0052 A36B ldr r3, [r4, #56] - 3851 0054 5D63 str r5, [r3, #52] -1628:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** - 3852 .loc 1 1628 0 discriminator 2 - 3853 0056 2268 ldr r2, [r4] - 3854 0058 2832 adds r2, r2, #40 - 3855 005a 238D ldrh r3, [r4, #40] - 3856 005c A06B ldr r0, [r4, #56] - 3857 005e FFF7FEFF bl HAL_DMA_Start_IT - 3858 .LVL333: -1631:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** - 3859 .loc 1 1631 0 discriminator 2 - 3860 0062 2268 ldr r2, [r4] - 3861 0064 5368 ldr r3, [r2, #4] - ARM GAS /tmp/ccTaFl06.s page 163 - - - 3862 0066 1049 ldr r1, .L278+16 - 3863 0068 0B40 ands r3, r1 - 3864 006a 5360 str r3, [r2, #4] -1634:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** - 3865 .loc 1 1634 0 discriminator 2 - 3866 006c A555 strb r5, [r4, r6] -1640:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** - 3867 .loc 1 1640 0 discriminator 2 - 3868 006e 0421 movs r1, #4 - 3869 0070 2000 movs r0, r4 - 3870 0072 FFF7FEFF bl I2C_Enable_IRQ - 3871 .LVL334: -1643:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** - 3872 .loc 1 1643 0 discriminator 2 - 3873 0076 2268 ldr r2, [r4] - 3874 0078 1168 ldr r1, [r2] - 3875 007a 8023 movs r3, #128 - 3876 007c DB01 lsls r3, r3, #7 - 3877 007e 0B43 orrs r3, r1 - 3878 0080 1360 str r3, [r2] -1645:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** } - 3879 .loc 1 1645 0 discriminator 2 - 3880 0082 0020 movs r0, #0 - 3881 0084 00E0 b .L273 - 3882 .LVL335: - 3883 .L274: -1649:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** } - 3884 .loc 1 1649 0 - 3885 0086 0220 movs r0, #2 - 3886 .LVL336: - 3887 .L273: -1651:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** - 3888 .loc 1 1651 0 - 3889 @ sp needed - 3890 .LVL337: - 3891 0088 70BD pop {r4, r5, r6, pc} - 3892 .LVL338: - 3893 .L275: -1601:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** } - 3894 .loc 1 1601 0 - 3895 008a 0120 movs r0, #1 - 3896 .LVL339: - 3897 008c FCE7 b .L273 - 3898 .LVL340: - 3899 .L276: - 3900 008e 0120 movs r0, #1 - 3901 .LVL341: - 3902 0090 FAE7 b .L273 - 3903 .LVL342: - 3904 .L277: -1604:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** - 3905 .loc 1 1604 0 - 3906 0092 0220 movs r0, #2 - 3907 .LVL343: - 3908 0094 F8E7 b .L273 - 3909 .L279: - 3910 0096 C046 .align 2 - ARM GAS /tmp/ccTaFl06.s page 164 - - - 3911 .L278: - 3912 0098 0000FFFF .word -65536 - 3913 009c 00000000 .word I2C_Slave_ISR_DMA - 3914 00a0 00000000 .word I2C_DMASlaveTransmitCplt - 3915 00a4 00000000 .word I2C_DMAError - 3916 00a8 FF7FFFFF .word -32769 - 3917 .cfi_endproc - 3918 .LFE51: - 3920 .section .text.HAL_I2C_Slave_Receive_DMA,"ax",%progbits - 3921 .align 1 - 3922 .global HAL_I2C_Slave_Receive_DMA - 3923 .syntax unified - 3924 .code 16 - 3925 .thumb_func - 3926 .fpu softvfp - 3928 HAL_I2C_Slave_Receive_DMA: - 3929 .LFB52: -1662:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** if (hi2c->State == HAL_I2C_STATE_READY) - 3930 .loc 1 1662 0 - 3931 .cfi_startproc - 3932 @ args = 0, pretend = 0, frame = 0 - 3933 @ frame_needed = 0, uses_anonymous_args = 0 - 3934 .LVL344: - 3935 0000 70B5 push {r4, r5, r6, lr} - 3936 .LCFI34: - 3937 .cfi_def_cfa_offset 16 - 3938 .cfi_offset 4, -16 - 3939 .cfi_offset 5, -12 - 3940 .cfi_offset 6, -8 - 3941 .cfi_offset 14, -4 - 3942 0002 0400 movs r4, r0 -1663:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** { - 3943 .loc 1 1663 0 - 3944 0004 4123 movs r3, #65 - 3945 0006 C35C ldrb r3, [r0, r3] - 3946 0008 202B cmp r3, #32 - 3947 000a 3ED1 bne .L282 -1665:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** { - 3948 .loc 1 1665 0 - 3949 000c 0029 cmp r1, #0 - 3950 000e 3ED0 beq .L283 -1665:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** { - 3951 .loc 1 1665 0 is_stmt 0 discriminator 1 - 3952 0010 002A cmp r2, #0 - 3953 0012 3ED0 beq .L284 -1670:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** - 3954 .loc 1 1670 0 is_stmt 1 - 3955 0014 2033 adds r3, r3, #32 - 3956 0016 C35C ldrb r3, [r0, r3] - 3957 0018 012B cmp r3, #1 - 3958 001a 3CD0 beq .L285 -1670:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** - 3959 .loc 1 1670 0 is_stmt 0 discriminator 2 - 3960 001c 4026 movs r6, #64 - 3961 001e 0123 movs r3, #1 - 3962 0020 8355 strb r3, [r0, r6] -1672:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** hi2c->Mode = HAL_I2C_MODE_SLAVE; - ARM GAS /tmp/ccTaFl06.s page 165 - - - 3963 .loc 1 1672 0 is_stmt 1 discriminator 2 - 3964 0022 4033 adds r3, r3, #64 - 3965 0024 2220 movs r0, #34 - 3966 .LVL345: - 3967 0026 E054 strb r0, [r4, r3] -1673:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** hi2c->ErrorCode = HAL_I2C_ERROR_NONE; - 3968 .loc 1 1673 0 discriminator 2 - 3969 0028 0133 adds r3, r3, #1 - 3970 002a 0238 subs r0, r0, #2 - 3971 002c E054 strb r0, [r4, r3] -1674:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** - 3972 .loc 1 1674 0 discriminator 2 - 3973 002e 0025 movs r5, #0 - 3974 0030 6564 str r5, [r4, #68] -1677:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** hi2c->XferCount = Size; - 3975 .loc 1 1677 0 discriminator 2 - 3976 0032 6162 str r1, [r4, #36] -1678:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** hi2c->XferSize = hi2c->XferCount; - 3977 .loc 1 1678 0 discriminator 2 - 3978 0034 6285 strh r2, [r4, #42] -1679:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** hi2c->XferOptions = I2C_NO_OPTION_FRAME; - 3979 .loc 1 1679 0 discriminator 2 - 3980 0036 638D ldrh r3, [r4, #42] - 3981 0038 2385 strh r3, [r4, #40] -1680:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** hi2c->XferISR = I2C_Slave_ISR_DMA; - 3982 .loc 1 1680 0 discriminator 2 - 3983 003a 184B ldr r3, .L286 - 3984 003c E362 str r3, [r4, #44] -1681:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** - 3985 .loc 1 1681 0 discriminator 2 - 3986 003e 184B ldr r3, .L286+4 - 3987 0040 6363 str r3, [r4, #52] -1684:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** - 3988 .loc 1 1684 0 discriminator 2 - 3989 0042 E36B ldr r3, [r4, #60] - 3990 0044 174A ldr r2, .L286+8 - 3991 .LVL346: - 3992 0046 9A62 str r2, [r3, #40] -1687:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** - 3993 .loc 1 1687 0 discriminator 2 - 3994 0048 E36B ldr r3, [r4, #60] - 3995 004a 174A ldr r2, .L286+12 - 3996 004c 1A63 str r2, [r3, #48] -1690:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** hi2c->hdmarx->XferAbortCallback = NULL; - 3997 .loc 1 1690 0 discriminator 2 - 3998 004e E36B ldr r3, [r4, #60] - 3999 0050 DD62 str r5, [r3, #44] -1691:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** - 4000 .loc 1 1691 0 discriminator 2 - 4001 0052 E36B ldr r3, [r4, #60] - 4002 0054 5D63 str r5, [r3, #52] -1694:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** - 4003 .loc 1 1694 0 discriminator 2 - 4004 0056 2068 ldr r0, [r4] - 4005 0058 2430 adds r0, r0, #36 - 4006 005a 238D ldrh r3, [r4, #40] - 4007 005c 0A00 movs r2, r1 - ARM GAS /tmp/ccTaFl06.s page 166 - - - 4008 005e 0100 movs r1, r0 - 4009 .LVL347: - 4010 0060 E06B ldr r0, [r4, #60] - 4011 0062 FFF7FEFF bl HAL_DMA_Start_IT - 4012 .LVL348: -1697:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** - 4013 .loc 1 1697 0 discriminator 2 - 4014 0066 2268 ldr r2, [r4] - 4015 0068 5368 ldr r3, [r2, #4] - 4016 006a 1049 ldr r1, .L286+16 - 4017 006c 0B40 ands r3, r1 - 4018 006e 5360 str r3, [r2, #4] -1700:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** - 4019 .loc 1 1700 0 discriminator 2 - 4020 0070 A555 strb r5, [r4, r6] -1706:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** - 4021 .loc 1 1706 0 discriminator 2 - 4022 0072 0421 movs r1, #4 - 4023 0074 2000 movs r0, r4 - 4024 0076 FFF7FEFF bl I2C_Enable_IRQ - 4025 .LVL349: -1709:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** - 4026 .loc 1 1709 0 discriminator 2 - 4027 007a 2268 ldr r2, [r4] - 4028 007c 1168 ldr r1, [r2] - 4029 007e 8023 movs r3, #128 - 4030 0080 1B02 lsls r3, r3, #8 - 4031 0082 0B43 orrs r3, r1 - 4032 0084 1360 str r3, [r2] -1711:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** } - 4033 .loc 1 1711 0 discriminator 2 - 4034 0086 0020 movs r0, #0 - 4035 0088 00E0 b .L281 - 4036 .LVL350: - 4037 .L282: -1715:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** } - 4038 .loc 1 1715 0 - 4039 008a 0220 movs r0, #2 - 4040 .LVL351: - 4041 .L281: -1717:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** /** - 4042 .loc 1 1717 0 - 4043 @ sp needed - 4044 .LVL352: - 4045 008c 70BD pop {r4, r5, r6, pc} - 4046 .LVL353: - 4047 .L283: -1667:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** } - 4048 .loc 1 1667 0 - 4049 008e 0120 movs r0, #1 - 4050 .LVL354: - 4051 0090 FCE7 b .L281 - 4052 .LVL355: - 4053 .L284: - 4054 0092 0120 movs r0, #1 - 4055 .LVL356: - 4056 0094 FAE7 b .L281 - ARM GAS /tmp/ccTaFl06.s page 167 - - - 4057 .LVL357: - 4058 .L285: -1670:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** - 4059 .loc 1 1670 0 - 4060 0096 0220 movs r0, #2 - 4061 .LVL358: - 4062 0098 F8E7 b .L281 - 4063 .L287: - 4064 009a C046 .align 2 - 4065 .L286: - 4066 009c 0000FFFF .word -65536 - 4067 00a0 00000000 .word I2C_Slave_ISR_DMA - 4068 00a4 00000000 .word I2C_DMASlaveReceiveCplt - 4069 00a8 00000000 .word I2C_DMAError - 4070 00ac FF7FFFFF .word -32769 - 4071 .cfi_endproc - 4072 .LFE52: - 4074 .section .text.HAL_I2C_Mem_Write,"ax",%progbits - 4075 .align 1 - 4076 .global HAL_I2C_Mem_Write - 4077 .syntax unified - 4078 .code 16 - 4079 .thumb_func - 4080 .fpu softvfp - 4082 HAL_I2C_Mem_Write: - 4083 .LFB53: -1732:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** uint32_t tickstart = 0U; - 4084 .loc 1 1732 0 - 4085 .cfi_startproc - 4086 @ args = 12, pretend = 0, frame = 16 - 4087 @ frame_needed = 0, uses_anonymous_args = 0 - 4088 .LVL359: - 4089 0000 F0B5 push {r4, r5, r6, r7, lr} - 4090 .LCFI35: - 4091 .cfi_def_cfa_offset 20 - 4092 .cfi_offset 4, -20 - 4093 .cfi_offset 5, -16 - 4094 .cfi_offset 6, -12 - 4095 .cfi_offset 7, -8 - 4096 .cfi_offset 14, -4 - 4097 0002 87B0 sub sp, sp, #28 - 4098 .LCFI36: - 4099 .cfi_def_cfa_offset 48 - 4100 0004 0500 movs r5, r0 - 4101 0006 0391 str r1, [sp, #12] - 4102 0008 0492 str r2, [sp, #16] - 4103 000a 0593 str r3, [sp, #20] - 4104 000c 0CAB add r3, sp, #48 - 4105 .LVL360: - 4106 000e 10CB ldmia r3!, {r4} - 4107 .LVL361: - 4108 0010 1E88 ldrh r6, [r3] - 4109 .LVL362: -1738:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** { - 4110 .loc 1 1738 0 - 4111 0012 4123 movs r3, #65 - 4112 .LVL363: - ARM GAS /tmp/ccTaFl06.s page 168 - - - 4113 0014 C35C ldrb r3, [r0, r3] - 4114 0016 202B cmp r3, #32 - 4115 0018 00D0 beq .LCB4073 - 4116 001a C1E0 b .L299 @long jump - 4117 .LCB4073: -1740:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** { - 4118 .loc 1 1740 0 - 4119 001c 002C cmp r4, #0 - 4120 001e 00D1 bne .LCB4075 - 4121 0020 C1E0 b .L300 @long jump - 4122 .LCB4075: -1740:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** { - 4123 .loc 1 1740 0 is_stmt 0 discriminator 1 - 4124 0022 002E cmp r6, #0 - 4125 0024 00D1 bne .LCB4077 - 4126 0026 C0E0 b .L301 @long jump - 4127 .LCB4077: -1746:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** - 4128 .loc 1 1746 0 is_stmt 1 - 4129 0028 2033 adds r3, r3, #32 - 4130 002a C35C ldrb r3, [r0, r3] - 4131 002c 012B cmp r3, #1 - 4132 002e 00D1 bne .LCB4081 - 4133 0030 BDE0 b .L302 @long jump - 4134 .LCB4081: -1746:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** - 4135 .loc 1 1746 0 is_stmt 0 discriminator 2 - 4136 0032 4023 movs r3, #64 - 4137 0034 0122 movs r2, #1 - 4138 .LVL364: - 4139 0036 C254 strb r2, [r0, r3] -1749:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** - 4140 .loc 1 1749 0 is_stmt 1 discriminator 2 - 4141 0038 FFF7FEFF bl HAL_GetTick - 4142 .LVL365: - 4143 003c 0700 movs r7, r0 - 4144 .LVL366: -1751:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** { - 4145 .loc 1 1751 0 discriminator 2 - 4146 003e 8021 movs r1, #128 - 4147 0040 0090 str r0, [sp] - 4148 0042 1923 movs r3, #25 - 4149 0044 0122 movs r2, #1 - 4150 0046 0902 lsls r1, r1, #8 - 4151 0048 2800 movs r0, r5 - 4152 .LVL367: - 4153 004a FFF7FEFF bl I2C_WaitOnFlagUntilTimeout - 4154 .LVL368: - 4155 004e 0028 cmp r0, #0 - 4156 0050 00D0 beq .LCB4102 - 4157 0052 AEE0 b .L303 @long jump - 4158 .LCB4102: -1756:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** hi2c->Mode = HAL_I2C_MODE_MEM; - 4159 .loc 1 1756 0 - 4160 0054 4123 movs r3, #65 - 4161 0056 2122 movs r2, #33 - 4162 0058 EA54 strb r2, [r5, r3] - ARM GAS /tmp/ccTaFl06.s page 169 - - -1757:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** hi2c->ErrorCode = HAL_I2C_ERROR_NONE; - 4163 .loc 1 1757 0 - 4164 005a 0133 adds r3, r3, #1 - 4165 005c 1F32 adds r2, r2, #31 - 4166 005e EA54 strb r2, [r5, r3] -1758:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** - 4167 .loc 1 1758 0 - 4168 0060 0023 movs r3, #0 - 4169 0062 6B64 str r3, [r5, #68] -1761:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** hi2c->XferCount = Size; - 4170 .loc 1 1761 0 - 4171 0064 6C62 str r4, [r5, #36] -1762:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** hi2c->XferISR = NULL; - 4172 .loc 1 1762 0 - 4173 0066 6E85 strh r6, [r5, #42] -1763:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** - 4174 .loc 1 1763 0 - 4175 0068 6B63 str r3, [r5, #52] -1766:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** { - 4176 .loc 1 1766 0 - 4177 006a 0197 str r7, [sp, #4] - 4178 006c 0E98 ldr r0, [sp, #56] - 4179 006e 0090 str r0, [sp] - 4180 0070 059B ldr r3, [sp, #20] - 4181 0072 049A ldr r2, [sp, #16] - 4182 0074 0399 ldr r1, [sp, #12] - 4183 0076 2800 movs r0, r5 - 4184 0078 FFF7FEFF bl I2C_RequestMemoryWrite - 4185 .LVL369: - 4186 007c 0028 cmp r0, #0 - 4187 007e 0CD0 beq .L290 -1768:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** { - 4188 .loc 1 1768 0 - 4189 0080 6B6C ldr r3, [r5, #68] - 4190 0082 042B cmp r3, #4 - 4191 0084 04D1 bne .L291 -1771:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** return HAL_ERROR; - 4192 .loc 1 1771 0 - 4193 0086 3C33 adds r3, r3, #60 - 4194 0088 0022 movs r2, #0 - 4195 008a EA54 strb r2, [r5, r3] -1772:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** } - 4196 .loc 1 1772 0 - 4197 008c 0120 movs r0, #1 - 4198 008e 88E0 b .L289 - 4199 .L291: -1777:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** return HAL_TIMEOUT; - 4200 .loc 1 1777 0 - 4201 0090 4023 movs r3, #64 - 4202 0092 0022 movs r2, #0 - 4203 0094 EA54 strb r2, [r5, r3] -1778:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** } - 4204 .loc 1 1778 0 - 4205 0096 0320 movs r0, #3 - 4206 0098 83E0 b .L289 - 4207 .L290: -1783:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** { - ARM GAS /tmp/ccTaFl06.s page 170 - - - 4208 .loc 1 1783 0 - 4209 009a 6B8D ldrh r3, [r5, #42] - 4210 009c 9BB2 uxth r3, r3 - 4211 009e FF2B cmp r3, #255 - 4212 00a0 0BD9 bls .L292 -1785:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** I2C_TransferConfig(hi2c, DevAddress, hi2c->XferSize, I2C_RELOAD_MODE, I2C_NO_STARTSTOP); - 4213 .loc 1 1785 0 - 4214 00a2 FF23 movs r3, #255 - 4215 00a4 2B85 strh r3, [r5, #40] -1786:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** } - 4216 .loc 1 1786 0 - 4217 00a6 7F3B subs r3, r3, #127 - 4218 00a8 0022 movs r2, #0 - 4219 00aa 0092 str r2, [sp] - 4220 00ac 5B04 lsls r3, r3, #17 - 4221 00ae FF32 adds r2, r2, #255 - 4222 00b0 0399 ldr r1, [sp, #12] - 4223 00b2 2800 movs r0, r5 - 4224 00b4 FFF7FEFF bl I2C_TransferConfig - 4225 .LVL370: - 4226 00b8 22E0 b .L297 - 4227 .L292: -1790:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** I2C_TransferConfig(hi2c, DevAddress, hi2c->XferSize, I2C_AUTOEND_MODE, I2C_NO_STARTSTOP); - 4228 .loc 1 1790 0 - 4229 00ba 6A8D ldrh r2, [r5, #42] - 4230 00bc 92B2 uxth r2, r2 - 4231 00be 2A85 strh r2, [r5, #40] -1791:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** } - 4232 .loc 1 1791 0 - 4233 00c0 8023 movs r3, #128 - 4234 00c2 D2B2 uxtb r2, r2 - 4235 00c4 0021 movs r1, #0 - 4236 00c6 0091 str r1, [sp] - 4237 00c8 9B04 lsls r3, r3, #18 - 4238 00ca 0399 ldr r1, [sp, #12] - 4239 00cc 2800 movs r0, r5 - 4240 00ce FFF7FEFF bl I2C_TransferConfig - 4241 .LVL371: - 4242 00d2 15E0 b .L297 - 4243 .L308: -1799:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** { - 4244 .loc 1 1799 0 - 4245 00d4 6B6C ldr r3, [r5, #68] - 4246 00d6 042B cmp r3, #4 - 4247 00d8 00D0 beq .LCB4185 - 4248 00da 6CE0 b .L304 @long jump - 4249 .LCB4185: -1801:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** } - 4250 .loc 1 1801 0 - 4251 00dc 0120 movs r0, #1 - 4252 00de 60E0 b .L289 - 4253 .L296: -1829:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** I2C_TransferConfig(hi2c, DevAddress, hi2c->XferSize, I2C_AUTOEND_MODE, I2C_NO_STARTSTOP); - 4254 .loc 1 1829 0 - 4255 00e0 6A8D ldrh r2, [r5, #42] - 4256 00e2 92B2 uxth r2, r2 - 4257 00e4 2A85 strh r2, [r5, #40] - ARM GAS /tmp/ccTaFl06.s page 171 - - -1830:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** } - 4258 .loc 1 1830 0 - 4259 00e6 8023 movs r3, #128 - 4260 00e8 D2B2 uxtb r2, r2 - 4261 00ea 0021 movs r1, #0 - 4262 00ec 0091 str r1, [sp] - 4263 00ee 9B04 lsls r3, r3, #18 - 4264 00f0 0399 ldr r1, [sp, #12] - 4265 00f2 2800 movs r0, r5 - 4266 00f4 FFF7FEFF bl I2C_TransferConfig - 4267 .LVL372: - 4268 .L295: -1835:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** - 4269 .loc 1 1835 0 - 4270 00f8 6B8D ldrh r3, [r5, #42] - 4271 00fa 9BB2 uxth r3, r3 - 4272 00fc 002B cmp r3, #0 - 4273 00fe 33D0 beq .L307 - 4274 .L297: -1797:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** { - 4275 .loc 1 1797 0 - 4276 0100 3A00 movs r2, r7 - 4277 0102 0E99 ldr r1, [sp, #56] - 4278 0104 2800 movs r0, r5 - 4279 0106 FFF7FEFF bl I2C_WaitOnTXISFlagUntilTimeout - 4280 .LVL373: - 4281 010a 0028 cmp r0, #0 - 4282 010c E2D1 bne .L308 -1810:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** hi2c->XferCount--; - 4283 .loc 1 1810 0 - 4284 010e 6B6A ldr r3, [r5, #36] - 4285 0110 5A1C adds r2, r3, #1 - 4286 0112 6A62 str r2, [r5, #36] - 4287 0114 2A68 ldr r2, [r5] - 4288 0116 1B78 ldrb r3, [r3] - 4289 0118 9362 str r3, [r2, #40] -1811:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** hi2c->XferSize--; - 4290 .loc 1 1811 0 - 4291 011a 6B8D ldrh r3, [r5, #42] - 4292 011c 013B subs r3, r3, #1 - 4293 011e 9BB2 uxth r3, r3 - 4294 0120 6B85 strh r3, [r5, #42] -1812:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** - 4295 .loc 1 1812 0 - 4296 0122 2B8D ldrh r3, [r5, #40] - 4297 0124 013B subs r3, r3, #1 - 4298 0126 9BB2 uxth r3, r3 - 4299 0128 2B85 strh r3, [r5, #40] -1814:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** { - 4300 .loc 1 1814 0 - 4301 012a 002B cmp r3, #0 - 4302 012c E4D1 bne .L295 -1814:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** { - 4303 .loc 1 1814 0 is_stmt 0 discriminator 1 - 4304 012e 6B8D ldrh r3, [r5, #42] - 4305 0130 9BB2 uxth r3, r3 - 4306 0132 002B cmp r3, #0 - ARM GAS /tmp/ccTaFl06.s page 172 - - - 4307 0134 E0D0 beq .L295 -1817:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** { - 4308 .loc 1 1817 0 is_stmt 1 - 4309 0136 0097 str r7, [sp] - 4310 0138 0E9B ldr r3, [sp, #56] - 4311 013a 0022 movs r2, #0 - 4312 013c 8021 movs r1, #128 - 4313 013e 2800 movs r0, r5 - 4314 0140 FFF7FEFF bl I2C_WaitOnFlagUntilTimeout - 4315 .LVL374: - 4316 0144 0028 cmp r0, #0 - 4317 0146 38D1 bne .L305 -1822:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** { - 4318 .loc 1 1822 0 - 4319 0148 6B8D ldrh r3, [r5, #42] - 4320 014a 9BB2 uxth r3, r3 - 4321 014c FF2B cmp r3, #255 - 4322 014e C7D9 bls .L296 -1824:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** I2C_TransferConfig(hi2c, DevAddress, hi2c->XferSize, I2C_RELOAD_MODE, I2C_NO_STARTSTOP); - 4323 .loc 1 1824 0 - 4324 0150 FF23 movs r3, #255 - 4325 0152 2B85 strh r3, [r5, #40] -1825:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** } - 4326 .loc 1 1825 0 - 4327 0154 7F3B subs r3, r3, #127 - 4328 0156 0022 movs r2, #0 - 4329 0158 0092 str r2, [sp] - 4330 015a 5B04 lsls r3, r3, #17 - 4331 015c FF32 adds r2, r2, #255 - 4332 015e 0399 ldr r1, [sp, #12] - 4333 0160 2800 movs r0, r5 - 4334 0162 FFF7FEFF bl I2C_TransferConfig - 4335 .LVL375: - 4336 0166 C7E7 b .L295 - 4337 .L307: -1839:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** { - 4338 .loc 1 1839 0 - 4339 0168 3A00 movs r2, r7 - 4340 016a 0E99 ldr r1, [sp, #56] - 4341 016c 2800 movs r0, r5 - 4342 016e FFF7FEFF bl I2C_WaitOnSTOPFlagUntilTimeout - 4343 .LVL376: - 4344 0172 0028 cmp r0, #0 - 4345 0174 04D0 beq .L298 -1841:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** { - 4346 .loc 1 1841 0 - 4347 0176 6B6C ldr r3, [r5, #68] - 4348 0178 042B cmp r3, #4 - 4349 017a 20D1 bne .L306 -1843:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** } - 4350 .loc 1 1843 0 - 4351 017c 0120 movs r0, #1 - 4352 017e 10E0 b .L289 - 4353 .L298: -1852:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** - 4354 .loc 1 1852 0 - 4355 0180 2B68 ldr r3, [r5] - ARM GAS /tmp/ccTaFl06.s page 173 - - - 4356 0182 2022 movs r2, #32 - 4357 0184 DA61 str r2, [r3, #28] -1855:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** - 4358 .loc 1 1855 0 - 4359 0186 2968 ldr r1, [r5] - 4360 0188 4B68 ldr r3, [r1, #4] - 4361 018a 0E4C ldr r4, .L309 - 4362 018c 2340 ands r3, r4 - 4363 018e 4B60 str r3, [r1, #4] -1857:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** hi2c->Mode = HAL_I2C_MODE_NONE; - 4364 .loc 1 1857 0 - 4365 0190 4123 movs r3, #65 - 4366 0192 EA54 strb r2, [r5, r3] -1858:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** - 4367 .loc 1 1858 0 - 4368 0194 0023 movs r3, #0 - 4369 0196 2232 adds r2, r2, #34 - 4370 0198 AB54 strb r3, [r5, r2] -1861:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** - 4371 .loc 1 1861 0 - 4372 019a 023A subs r2, r2, #2 - 4373 019c AB54 strb r3, [r5, r2] -1863:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** } - 4374 .loc 1 1863 0 - 4375 019e 00E0 b .L289 - 4376 .LVL377: - 4377 .L299: -1867:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** } - 4378 .loc 1 1867 0 - 4379 01a0 0220 movs r0, #2 - 4380 .LVL378: - 4381 .L289: -1869:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** - 4382 .loc 1 1869 0 - 4383 01a2 07B0 add sp, sp, #28 - 4384 @ sp needed - 4385 .LVL379: - 4386 01a4 F0BD pop {r4, r5, r6, r7, pc} - 4387 .LVL380: - 4388 .L300: -1742:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** } - 4389 .loc 1 1742 0 - 4390 01a6 0120 movs r0, #1 - 4391 .LVL381: - 4392 01a8 FBE7 b .L289 - 4393 .LVL382: - 4394 .L301: - 4395 01aa 0120 movs r0, #1 - 4396 .LVL383: - 4397 01ac F9E7 b .L289 - 4398 .LVL384: - 4399 .L302: -1746:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** - 4400 .loc 1 1746 0 - 4401 01ae 0220 movs r0, #2 - 4402 .LVL385: - 4403 01b0 F7E7 b .L289 - ARM GAS /tmp/ccTaFl06.s page 174 - - - 4404 .LVL386: - 4405 .L303: -1753:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** } - 4406 .loc 1 1753 0 - 4407 01b2 0320 movs r0, #3 - 4408 01b4 F5E7 b .L289 - 4409 .L304: -1805:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** } - 4410 .loc 1 1805 0 - 4411 01b6 0320 movs r0, #3 - 4412 01b8 F3E7 b .L289 - 4413 .L305: -1819:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** } - 4414 .loc 1 1819 0 - 4415 01ba 0320 movs r0, #3 - 4416 01bc F1E7 b .L289 - 4417 .L306: -1847:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** } - 4418 .loc 1 1847 0 - 4419 01be 0320 movs r0, #3 - 4420 01c0 EFE7 b .L289 - 4421 .L310: - 4422 01c2 C046 .align 2 - 4423 .L309: - 4424 01c4 00E800FE .word -33495040 - 4425 .cfi_endproc - 4426 .LFE53: - 4428 .section .text.HAL_I2C_Mem_Read,"ax",%progbits - 4429 .align 1 - 4430 .global HAL_I2C_Mem_Read - 4431 .syntax unified - 4432 .code 16 - 4433 .thumb_func - 4434 .fpu softvfp - 4436 HAL_I2C_Mem_Read: - 4437 .LFB54: -1885:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** uint32_t tickstart = 0U; - 4438 .loc 1 1885 0 - 4439 .cfi_startproc - 4440 @ args = 12, pretend = 0, frame = 16 - 4441 @ frame_needed = 0, uses_anonymous_args = 0 - 4442 .LVL387: - 4443 0000 F0B5 push {r4, r5, r6, r7, lr} - 4444 .LCFI37: - 4445 .cfi_def_cfa_offset 20 - 4446 .cfi_offset 4, -20 - 4447 .cfi_offset 5, -16 - 4448 .cfi_offset 6, -12 - 4449 .cfi_offset 7, -8 - 4450 .cfi_offset 14, -4 - 4451 0002 87B0 sub sp, sp, #28 - 4452 .LCFI38: - 4453 .cfi_def_cfa_offset 48 - 4454 0004 0400 movs r4, r0 - 4455 0006 0391 str r1, [sp, #12] - 4456 0008 0492 str r2, [sp, #16] - 4457 000a 0593 str r3, [sp, #20] - ARM GAS /tmp/ccTaFl06.s page 175 - - - 4458 000c 0CAB add r3, sp, #48 - 4459 .LVL388: - 4460 000e 20CB ldmia r3!, {r5} - 4461 .LVL389: - 4462 0010 1F88 ldrh r7, [r3] - 4463 .LVL390: -1891:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** { - 4464 .loc 1 1891 0 - 4465 0012 4123 movs r3, #65 - 4466 .LVL391: - 4467 0014 C35C ldrb r3, [r0, r3] - 4468 0016 202B cmp r3, #32 - 4469 0018 00D0 beq .LCB4444 - 4470 001a BFE0 b .L321 @long jump - 4471 .LCB4444: -1893:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** { - 4472 .loc 1 1893 0 - 4473 001c 002D cmp r5, #0 - 4474 001e 00D1 bne .LCB4446 - 4475 0020 BFE0 b .L322 @long jump - 4476 .LCB4446: -1893:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** { - 4477 .loc 1 1893 0 is_stmt 0 discriminator 1 - 4478 0022 002F cmp r7, #0 - 4479 0024 00D1 bne .LCB4448 - 4480 0026 BEE0 b .L323 @long jump - 4481 .LCB4448: -1899:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** - 4482 .loc 1 1899 0 is_stmt 1 - 4483 0028 2033 adds r3, r3, #32 - 4484 002a C35C ldrb r3, [r0, r3] - 4485 002c 012B cmp r3, #1 - 4486 002e 00D1 bne .LCB4452 - 4487 0030 BBE0 b .L324 @long jump - 4488 .LCB4452: -1899:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** - 4489 .loc 1 1899 0 is_stmt 0 discriminator 2 - 4490 0032 4023 movs r3, #64 - 4491 0034 0122 movs r2, #1 - 4492 .LVL392: - 4493 0036 C254 strb r2, [r0, r3] -1902:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** - 4494 .loc 1 1902 0 is_stmt 1 discriminator 2 - 4495 0038 FFF7FEFF bl HAL_GetTick - 4496 .LVL393: - 4497 003c 0600 movs r6, r0 - 4498 .LVL394: -1904:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** { - 4499 .loc 1 1904 0 discriminator 2 - 4500 003e 8021 movs r1, #128 - 4501 0040 0090 str r0, [sp] - 4502 0042 1923 movs r3, #25 - 4503 0044 0122 movs r2, #1 - 4504 0046 0902 lsls r1, r1, #8 - 4505 0048 2000 movs r0, r4 - 4506 .LVL395: - 4507 004a FFF7FEFF bl I2C_WaitOnFlagUntilTimeout - ARM GAS /tmp/ccTaFl06.s page 176 - - - 4508 .LVL396: - 4509 004e 0028 cmp r0, #0 - 4510 0050 00D0 beq .LCB4473 - 4511 0052 ACE0 b .L325 @long jump - 4512 .LCB4473: -1909:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** hi2c->Mode = HAL_I2C_MODE_MEM; - 4513 .loc 1 1909 0 - 4514 0054 4123 movs r3, #65 - 4515 0056 2222 movs r2, #34 - 4516 0058 E254 strb r2, [r4, r3] -1910:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** hi2c->ErrorCode = HAL_I2C_ERROR_NONE; - 4517 .loc 1 1910 0 - 4518 005a 0133 adds r3, r3, #1 - 4519 005c 1E32 adds r2, r2, #30 - 4520 005e E254 strb r2, [r4, r3] -1911:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** - 4521 .loc 1 1911 0 - 4522 0060 0023 movs r3, #0 - 4523 0062 6364 str r3, [r4, #68] -1914:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** hi2c->XferCount = Size; - 4524 .loc 1 1914 0 - 4525 0064 6562 str r5, [r4, #36] -1915:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** hi2c->XferISR = NULL; - 4526 .loc 1 1915 0 - 4527 0066 6785 strh r7, [r4, #42] -1916:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** - 4528 .loc 1 1916 0 - 4529 0068 6363 str r3, [r4, #52] -1919:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** { - 4530 .loc 1 1919 0 - 4531 006a 0196 str r6, [sp, #4] - 4532 006c 0E98 ldr r0, [sp, #56] - 4533 006e 0090 str r0, [sp] - 4534 0070 059B ldr r3, [sp, #20] - 4535 0072 049A ldr r2, [sp, #16] - 4536 0074 0399 ldr r1, [sp, #12] - 4537 0076 2000 movs r0, r4 - 4538 0078 FFF7FEFF bl I2C_RequestMemoryRead - 4539 .LVL397: - 4540 007c 0028 cmp r0, #0 - 4541 007e 0CD0 beq .L313 -1921:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** { - 4542 .loc 1 1921 0 - 4543 0080 636C ldr r3, [r4, #68] - 4544 0082 042B cmp r3, #4 - 4545 0084 04D1 bne .L314 -1924:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** return HAL_ERROR; - 4546 .loc 1 1924 0 - 4547 0086 3C33 adds r3, r3, #60 - 4548 0088 0022 movs r2, #0 - 4549 008a E254 strb r2, [r4, r3] -1925:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** } - 4550 .loc 1 1925 0 - 4551 008c 0120 movs r0, #1 - 4552 008e 86E0 b .L312 - 4553 .L314: -1930:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** return HAL_TIMEOUT; - ARM GAS /tmp/ccTaFl06.s page 177 - - - 4554 .loc 1 1930 0 - 4555 0090 4023 movs r3, #64 - 4556 0092 0022 movs r2, #0 - 4557 0094 E254 strb r2, [r4, r3] -1931:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** } - 4558 .loc 1 1931 0 - 4559 0096 0320 movs r0, #3 - 4560 0098 81E0 b .L312 - 4561 .L313: -1937:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** { - 4562 .loc 1 1937 0 - 4563 009a 638D ldrh r3, [r4, #42] - 4564 009c 9BB2 uxth r3, r3 - 4565 009e FF2B cmp r3, #255 - 4566 00a0 0CD9 bls .L315 -1939:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** I2C_TransferConfig(hi2c, DevAddress, hi2c->XferSize, I2C_RELOAD_MODE, I2C_GENERATE_START_READ - 4567 .loc 1 1939 0 - 4568 00a2 FF23 movs r3, #255 - 4569 00a4 2385 strh r3, [r4, #40] -1940:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** } - 4570 .loc 1 1940 0 - 4571 00a6 7F3B subs r3, r3, #127 - 4572 00a8 9022 movs r2, #144 - 4573 00aa 9201 lsls r2, r2, #6 - 4574 00ac 0092 str r2, [sp] - 4575 00ae 5B04 lsls r3, r3, #17 - 4576 00b0 FF22 movs r2, #255 - 4577 00b2 0399 ldr r1, [sp, #12] - 4578 00b4 2000 movs r0, r4 - 4579 00b6 FFF7FEFF bl I2C_TransferConfig - 4580 .LVL398: - 4581 00ba 1DE0 b .L319 - 4582 .L315: -1944:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** I2C_TransferConfig(hi2c, DevAddress, hi2c->XferSize, I2C_AUTOEND_MODE, I2C_GENERATE_START_REA - 4583 .loc 1 1944 0 - 4584 00bc 628D ldrh r2, [r4, #42] - 4585 00be 92B2 uxth r2, r2 - 4586 00c0 2285 strh r2, [r4, #40] -1945:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** } - 4587 .loc 1 1945 0 - 4588 00c2 8023 movs r3, #128 - 4589 00c4 D2B2 uxtb r2, r2 - 4590 00c6 9021 movs r1, #144 - 4591 00c8 8901 lsls r1, r1, #6 - 4592 00ca 0091 str r1, [sp] - 4593 00cc 9B04 lsls r3, r3, #18 - 4594 00ce 0399 ldr r1, [sp, #12] - 4595 00d0 2000 movs r0, r4 - 4596 00d2 FFF7FEFF bl I2C_TransferConfig - 4597 .LVL399: - 4598 00d6 0FE0 b .L319 - 4599 .L318: -1976:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** I2C_TransferConfig(hi2c, DevAddress, hi2c->XferSize, I2C_AUTOEND_MODE, I2C_NO_STARTSTOP); - 4600 .loc 1 1976 0 - 4601 00d8 628D ldrh r2, [r4, #42] - 4602 00da 92B2 uxth r2, r2 - 4603 00dc 2285 strh r2, [r4, #40] - ARM GAS /tmp/ccTaFl06.s page 178 - - -1977:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** } - 4604 .loc 1 1977 0 - 4605 00de 8023 movs r3, #128 - 4606 00e0 D2B2 uxtb r2, r2 - 4607 00e2 0021 movs r1, #0 - 4608 00e4 0091 str r1, [sp] - 4609 00e6 9B04 lsls r3, r3, #18 - 4610 00e8 0399 ldr r1, [sp, #12] - 4611 00ea 2000 movs r0, r4 - 4612 00ec FFF7FEFF bl I2C_TransferConfig - 4613 .LVL400: - 4614 .L317: -1981:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** - 4615 .loc 1 1981 0 - 4616 00f0 638D ldrh r3, [r4, #42] - 4617 00f2 9BB2 uxth r3, r3 - 4618 00f4 002B cmp r3, #0 - 4619 00f6 35D0 beq .L329 - 4620 .L319: -1951:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** { - 4621 .loc 1 1951 0 - 4622 00f8 0096 str r6, [sp] - 4623 00fa 0E9B ldr r3, [sp, #56] - 4624 00fc 0022 movs r2, #0 - 4625 00fe 0421 movs r1, #4 - 4626 0100 2000 movs r0, r4 - 4627 0102 FFF7FEFF bl I2C_WaitOnFlagUntilTimeout - 4628 .LVL401: - 4629 0106 0028 cmp r0, #0 - 4630 0108 53D1 bne .L326 -1957:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** hi2c->XferSize--; - 4631 .loc 1 1957 0 - 4632 010a 2368 ldr r3, [r4] - 4633 010c 5A6A ldr r2, [r3, #36] - 4634 010e 636A ldr r3, [r4, #36] - 4635 0110 591C adds r1, r3, #1 - 4636 0112 6162 str r1, [r4, #36] - 4637 0114 1A70 strb r2, [r3] -1958:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** hi2c->XferCount--; - 4638 .loc 1 1958 0 - 4639 0116 238D ldrh r3, [r4, #40] - 4640 0118 013B subs r3, r3, #1 - 4641 011a 9BB2 uxth r3, r3 - 4642 011c 2385 strh r3, [r4, #40] -1959:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** - 4643 .loc 1 1959 0 - 4644 011e 628D ldrh r2, [r4, #42] - 4645 0120 013A subs r2, r2, #1 - 4646 0122 92B2 uxth r2, r2 - 4647 0124 6285 strh r2, [r4, #42] -1961:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** { - 4648 .loc 1 1961 0 - 4649 0126 002B cmp r3, #0 - 4650 0128 E2D1 bne .L317 -1961:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** { - 4651 .loc 1 1961 0 is_stmt 0 discriminator 1 - 4652 012a 638D ldrh r3, [r4, #42] - ARM GAS /tmp/ccTaFl06.s page 179 - - - 4653 012c 9BB2 uxth r3, r3 - 4654 012e 002B cmp r3, #0 - 4655 0130 DED0 beq .L317 -1964:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** { - 4656 .loc 1 1964 0 is_stmt 1 - 4657 0132 0096 str r6, [sp] - 4658 0134 0E9B ldr r3, [sp, #56] - 4659 0136 0022 movs r2, #0 - 4660 0138 8021 movs r1, #128 - 4661 013a 2000 movs r0, r4 - 4662 013c FFF7FEFF bl I2C_WaitOnFlagUntilTimeout - 4663 .LVL402: - 4664 0140 0028 cmp r0, #0 - 4665 0142 38D1 bne .L327 -1969:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** { - 4666 .loc 1 1969 0 - 4667 0144 638D ldrh r3, [r4, #42] - 4668 0146 9BB2 uxth r3, r3 - 4669 0148 FF2B cmp r3, #255 - 4670 014a C5D9 bls .L318 -1971:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** I2C_TransferConfig(hi2c, DevAddress, hi2c->XferSize, I2C_RELOAD_MODE, I2C_NO_STARTSTOP); - 4671 .loc 1 1971 0 - 4672 014c FF23 movs r3, #255 - 4673 014e 2385 strh r3, [r4, #40] -1972:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** } - 4674 .loc 1 1972 0 - 4675 0150 7F3B subs r3, r3, #127 - 4676 0152 0022 movs r2, #0 - 4677 0154 0092 str r2, [sp] - 4678 0156 5B04 lsls r3, r3, #17 - 4679 0158 FF32 adds r2, r2, #255 - 4680 015a 0399 ldr r1, [sp, #12] - 4681 015c 2000 movs r0, r4 - 4682 015e FFF7FEFF bl I2C_TransferConfig - 4683 .LVL403: - 4684 0162 C5E7 b .L317 - 4685 .L329: -1985:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** { - 4686 .loc 1 1985 0 - 4687 0164 3200 movs r2, r6 - 4688 0166 0E99 ldr r1, [sp, #56] - 4689 0168 2000 movs r0, r4 - 4690 016a FFF7FEFF bl I2C_WaitOnSTOPFlagUntilTimeout - 4691 .LVL404: - 4692 016e 0028 cmp r0, #0 - 4693 0170 04D0 beq .L320 -1987:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** { - 4694 .loc 1 1987 0 - 4695 0172 636C ldr r3, [r4, #68] - 4696 0174 042B cmp r3, #4 - 4697 0176 20D1 bne .L328 -1989:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** } - 4698 .loc 1 1989 0 - 4699 0178 0120 movs r0, #1 - 4700 017a 10E0 b .L312 - 4701 .L320: -1998:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** - ARM GAS /tmp/ccTaFl06.s page 180 - - - 4702 .loc 1 1998 0 - 4703 017c 2368 ldr r3, [r4] - 4704 017e 2022 movs r2, #32 - 4705 0180 DA61 str r2, [r3, #28] -2001:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** - 4706 .loc 1 2001 0 - 4707 0182 2168 ldr r1, [r4] - 4708 0184 4B68 ldr r3, [r1, #4] - 4709 0186 0E4D ldr r5, .L330 - 4710 0188 2B40 ands r3, r5 - 4711 018a 4B60 str r3, [r1, #4] -2003:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** hi2c->Mode = HAL_I2C_MODE_NONE; - 4712 .loc 1 2003 0 - 4713 018c 4123 movs r3, #65 - 4714 018e E254 strb r2, [r4, r3] -2004:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** - 4715 .loc 1 2004 0 - 4716 0190 0023 movs r3, #0 - 4717 0192 2232 adds r2, r2, #34 - 4718 0194 A354 strb r3, [r4, r2] -2007:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** - 4719 .loc 1 2007 0 - 4720 0196 023A subs r2, r2, #2 - 4721 0198 A354 strb r3, [r4, r2] -2009:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** } - 4722 .loc 1 2009 0 - 4723 019a 00E0 b .L312 - 4724 .LVL405: - 4725 .L321: -2013:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** } - 4726 .loc 1 2013 0 - 4727 019c 0220 movs r0, #2 - 4728 .LVL406: - 4729 .L312: -2015:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** /** - 4730 .loc 1 2015 0 - 4731 019e 07B0 add sp, sp, #28 - 4732 @ sp needed - 4733 .LVL407: - 4734 01a0 F0BD pop {r4, r5, r6, r7, pc} - 4735 .LVL408: - 4736 .L322: -1895:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** } - 4737 .loc 1 1895 0 - 4738 01a2 0120 movs r0, #1 - 4739 .LVL409: - 4740 01a4 FBE7 b .L312 - 4741 .LVL410: - 4742 .L323: - 4743 01a6 0120 movs r0, #1 - 4744 .LVL411: - 4745 01a8 F9E7 b .L312 - 4746 .LVL412: - 4747 .L324: -1899:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** - 4748 .loc 1 1899 0 - 4749 01aa 0220 movs r0, #2 - ARM GAS /tmp/ccTaFl06.s page 181 - - - 4750 .LVL413: - 4751 01ac F7E7 b .L312 - 4752 .LVL414: - 4753 .L325: -1906:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** } - 4754 .loc 1 1906 0 - 4755 01ae 0320 movs r0, #3 - 4756 01b0 F5E7 b .L312 - 4757 .L326: -1953:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** } - 4758 .loc 1 1953 0 - 4759 01b2 0320 movs r0, #3 - 4760 01b4 F3E7 b .L312 - 4761 .L327: -1966:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** } - 4762 .loc 1 1966 0 - 4763 01b6 0320 movs r0, #3 - 4764 01b8 F1E7 b .L312 - 4765 .L328: -1993:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** } - 4766 .loc 1 1993 0 - 4767 01ba 0320 movs r0, #3 - 4768 01bc EFE7 b .L312 - 4769 .L331: - 4770 01be C046 .align 2 - 4771 .L330: - 4772 01c0 00E800FE .word -33495040 - 4773 .cfi_endproc - 4774 .LFE54: - 4776 .section .text.HAL_I2C_Mem_Write_IT,"ax",%progbits - 4777 .align 1 - 4778 .global HAL_I2C_Mem_Write_IT - 4779 .syntax unified - 4780 .code 16 - 4781 .thumb_func - 4782 .fpu softvfp - 4784 HAL_I2C_Mem_Write_IT: - 4785 .LFB55: -2029:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** uint32_t tickstart = 0U; - 4786 .loc 1 2029 0 - 4787 .cfi_startproc - 4788 @ args = 8, pretend = 0, frame = 16 - 4789 @ frame_needed = 0, uses_anonymous_args = 0 - 4790 .LVL415: - 4791 0000 F0B5 push {r4, r5, r6, r7, lr} - 4792 .LCFI39: - 4793 .cfi_def_cfa_offset 20 - 4794 .cfi_offset 4, -20 - 4795 .cfi_offset 5, -16 - 4796 .cfi_offset 6, -12 - 4797 .cfi_offset 7, -8 - 4798 .cfi_offset 14, -4 - 4799 0002 C646 mov lr, r8 - 4800 0004 00B5 push {lr} - 4801 .LCFI40: - 4802 .cfi_def_cfa_offset 24 - 4803 .cfi_offset 8, -24 - ARM GAS /tmp/ccTaFl06.s page 182 - - - 4804 0006 86B0 sub sp, sp, #24 - 4805 .LCFI41: - 4806 .cfi_def_cfa_offset 48 - 4807 0008 0700 movs r7, r0 - 4808 000a 0391 str r1, [sp, #12] - 4809 000c 0492 str r2, [sp, #16] - 4810 000e 0593 str r3, [sp, #20] - 4811 0010 0CAB add r3, sp, #48 - 4812 .LVL416: - 4813 0012 40CB ldmia r3!, {r6} - 4814 .LVL417: - 4815 0014 1D88 ldrh r5, [r3] - 4816 .LVL418: -2036:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** { - 4817 .loc 1 2036 0 - 4818 0016 4123 movs r3, #65 - 4819 .LVL419: - 4820 0018 C35C ldrb r3, [r0, r3] - 4821 001a 202B cmp r3, #32 - 4822 001c 54D1 bne .L338 -2038:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** { - 4823 .loc 1 2038 0 - 4824 001e 002E cmp r6, #0 - 4825 0020 58D0 beq .L339 -2038:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** { - 4826 .loc 1 2038 0 is_stmt 0 discriminator 1 - 4827 0022 002D cmp r5, #0 - 4828 0024 58D0 beq .L340 -2043:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** { - 4829 .loc 1 2043 0 is_stmt 1 - 4830 0026 0368 ldr r3, [r0] - 4831 0028 9B69 ldr r3, [r3, #24] - 4832 002a 1B04 lsls r3, r3, #16 - 4833 002c 56D4 bmi .L341 -2049:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** - 4834 .loc 1 2049 0 - 4835 002e 4023 movs r3, #64 - 4836 0030 C35C ldrb r3, [r0, r3] - 4837 0032 012B cmp r3, #1 - 4838 0034 54D0 beq .L342 -2049:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** - 4839 .loc 1 2049 0 is_stmt 0 discriminator 2 - 4840 0036 4024 movs r4, #64 - 4841 0038 0123 movs r3, #1 - 4842 003a 0355 strb r3, [r0, r4] -2052:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** - 4843 .loc 1 2052 0 is_stmt 1 discriminator 2 - 4844 003c FFF7FEFF bl HAL_GetTick - 4845 .LVL420: -2054:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** hi2c->Mode = HAL_I2C_MODE_MEM; - 4846 .loc 1 2054 0 discriminator 2 - 4847 0040 4123 movs r3, #65 - 4848 0042 2122 movs r2, #33 - 4849 0044 FA54 strb r2, [r7, r3] -2055:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** hi2c->ErrorCode = HAL_I2C_ERROR_NONE; - 4850 .loc 1 2055 0 discriminator 2 - 4851 0046 0133 adds r3, r3, #1 - ARM GAS /tmp/ccTaFl06.s page 183 - - - 4852 0048 FC54 strb r4, [r7, r3] -2056:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** - 4853 .loc 1 2056 0 discriminator 2 - 4854 004a 0023 movs r3, #0 - 4855 004c 7B64 str r3, [r7, #68] -2059:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** hi2c->XferCount = Size; - 4856 .loc 1 2059 0 discriminator 2 - 4857 004e 7E62 str r6, [r7, #36] -2060:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** hi2c->XferOptions = I2C_NO_OPTION_FRAME; - 4858 .loc 1 2060 0 discriminator 2 - 4859 0050 7D85 strh r5, [r7, #42] -2061:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** hi2c->XferISR = I2C_Master_ISR_IT; - 4860 .loc 1 2061 0 discriminator 2 - 4861 0052 244B ldr r3, .L343 - 4862 0054 FB62 str r3, [r7, #44] -2062:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** - 4863 .loc 1 2062 0 discriminator 2 - 4864 0056 244B ldr r3, .L343+4 - 4865 0058 7B63 str r3, [r7, #52] -2064:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** { - 4866 .loc 1 2064 0 discriminator 2 - 4867 005a 7B8D ldrh r3, [r7, #42] - 4868 005c 9BB2 uxth r3, r3 - 4869 005e FF2B cmp r3, #255 - 4870 0060 17D9 bls .L334 -2066:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** xfermode = I2C_RELOAD_MODE; - 4871 .loc 1 2066 0 - 4872 0062 FF23 movs r3, #255 - 4873 0064 3B85 strh r3, [r7, #40] - 4874 .LVL421: -2067:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** } - 4875 .loc 1 2067 0 - 4876 0066 8023 movs r3, #128 - 4877 0068 5B04 lsls r3, r3, #17 - 4878 006a 9846 mov r8, r3 - 4879 .LVL422: - 4880 .L335: -2076:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** { - 4881 .loc 1 2076 0 - 4882 006c 0190 str r0, [sp, #4] - 4883 006e 1923 movs r3, #25 - 4884 0070 0093 str r3, [sp] - 4885 0072 059B ldr r3, [sp, #20] - 4886 0074 049A ldr r2, [sp, #16] - 4887 0076 0399 ldr r1, [sp, #12] - 4888 0078 3800 movs r0, r7 - 4889 .LVL423: - 4890 007a FFF7FEFF bl I2C_RequestMemoryWrite - 4891 .LVL424: - 4892 007e 051E subs r5, r0, #0 - 4893 0080 12D0 beq .L336 -2078:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** { - 4894 .loc 1 2078 0 - 4895 0082 7B6C ldr r3, [r7, #68] - 4896 0084 042B cmp r3, #4 - 4897 0086 0AD1 bne .L337 -2081:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** return HAL_ERROR; - ARM GAS /tmp/ccTaFl06.s page 184 - - - 4898 .loc 1 2081 0 - 4899 0088 3C33 adds r3, r3, #60 - 4900 008a 0022 movs r2, #0 - 4901 008c FA54 strb r2, [r7, r3] -2082:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** } - 4902 .loc 1 2082 0 - 4903 008e 0125 movs r5, #1 - 4904 0090 1BE0 b .L333 - 4905 .LVL425: - 4906 .L334: -2071:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** xfermode = I2C_AUTOEND_MODE; - 4907 .loc 1 2071 0 - 4908 0092 7B8D ldrh r3, [r7, #42] - 4909 0094 3B85 strh r3, [r7, #40] - 4910 .LVL426: -2072:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** } - 4911 .loc 1 2072 0 - 4912 0096 8023 movs r3, #128 - 4913 0098 9B04 lsls r3, r3, #18 - 4914 009a 9846 mov r8, r3 - 4915 009c E6E7 b .L335 - 4916 .LVL427: - 4917 .L337: -2087:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** return HAL_TIMEOUT; - 4918 .loc 1 2087 0 - 4919 009e 4023 movs r3, #64 - 4920 00a0 0022 movs r2, #0 - 4921 00a2 FA54 strb r2, [r7, r3] -2088:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** } - 4922 .loc 1 2088 0 - 4923 00a4 0325 movs r5, #3 - 4924 00a6 10E0 b .L333 - 4925 .L336: -2093:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** - 4926 .loc 1 2093 0 - 4927 00a8 3A8D ldrh r2, [r7, #40] - 4928 00aa D2B2 uxtb r2, r2 - 4929 00ac 0026 movs r6, #0 - 4930 00ae 0096 str r6, [sp] - 4931 00b0 4346 mov r3, r8 - 4932 00b2 0399 ldr r1, [sp, #12] - 4933 00b4 3800 movs r0, r7 - 4934 00b6 FFF7FEFF bl I2C_TransferConfig - 4935 .LVL428: -2096:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** - 4936 .loc 1 2096 0 - 4937 00ba 4023 movs r3, #64 - 4938 00bc FE54 strb r6, [r7, r3] -2105:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** - 4939 .loc 1 2105 0 - 4940 00be 0121 movs r1, #1 - 4941 00c0 3800 movs r0, r7 - 4942 00c2 FFF7FEFF bl I2C_Enable_IRQ - 4943 .LVL429: -2107:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** } - 4944 .loc 1 2107 0 - 4945 00c6 00E0 b .L333 - ARM GAS /tmp/ccTaFl06.s page 185 - - - 4946 .LVL430: - 4947 .L338: -2111:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** } - 4948 .loc 1 2111 0 - 4949 00c8 0225 movs r5, #2 - 4950 .LVL431: - 4951 .L333: -2113:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** - 4952 .loc 1 2113 0 - 4953 00ca 2800 movs r0, r5 - 4954 00cc 06B0 add sp, sp, #24 - 4955 @ sp needed - 4956 .LVL432: - 4957 00ce 04BC pop {r2} - 4958 00d0 9046 mov r8, r2 - 4959 00d2 F0BD pop {r4, r5, r6, r7, pc} - 4960 .LVL433: - 4961 .L339: -2040:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** } - 4962 .loc 1 2040 0 - 4963 00d4 0125 movs r5, #1 - 4964 00d6 F8E7 b .L333 - 4965 .L340: - 4966 00d8 0125 movs r5, #1 - 4967 00da F6E7 b .L333 - 4968 .L341: -2045:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** } - 4969 .loc 1 2045 0 - 4970 00dc 0225 movs r5, #2 - 4971 00de F4E7 b .L333 - 4972 .L342: -2049:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** - 4973 .loc 1 2049 0 - 4974 00e0 0225 movs r5, #2 - 4975 00e2 F2E7 b .L333 - 4976 .L344: - 4977 .align 2 - 4978 .L343: - 4979 00e4 0000FFFF .word -65536 - 4980 00e8 00000000 .word I2C_Master_ISR_IT - 4981 .cfi_endproc - 4982 .LFE55: - 4984 .section .text.HAL_I2C_Mem_Read_IT,"ax",%progbits - 4985 .align 1 - 4986 .global HAL_I2C_Mem_Read_IT - 4987 .syntax unified - 4988 .code 16 - 4989 .thumb_func - 4990 .fpu softvfp - 4992 HAL_I2C_Mem_Read_IT: - 4993 .LFB56: -2128:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** uint32_t tickstart = 0U; - 4994 .loc 1 2128 0 - 4995 .cfi_startproc - 4996 @ args = 8, pretend = 0, frame = 16 - 4997 @ frame_needed = 0, uses_anonymous_args = 0 - 4998 .LVL434: - ARM GAS /tmp/ccTaFl06.s page 186 - - - 4999 0000 F0B5 push {r4, r5, r6, r7, lr} - 5000 .LCFI42: - 5001 .cfi_def_cfa_offset 20 - 5002 .cfi_offset 4, -20 - 5003 .cfi_offset 5, -16 - 5004 .cfi_offset 6, -12 - 5005 .cfi_offset 7, -8 - 5006 .cfi_offset 14, -4 - 5007 0002 C646 mov lr, r8 - 5008 0004 00B5 push {lr} - 5009 .LCFI43: - 5010 .cfi_def_cfa_offset 24 - 5011 .cfi_offset 8, -24 - 5012 0006 86B0 sub sp, sp, #24 - 5013 .LCFI44: - 5014 .cfi_def_cfa_offset 48 - 5015 0008 0700 movs r7, r0 - 5016 000a 0391 str r1, [sp, #12] - 5017 000c 0492 str r2, [sp, #16] - 5018 000e 0593 str r3, [sp, #20] - 5019 0010 0CAB add r3, sp, #48 - 5020 .LVL435: - 5021 0012 40CB ldmia r3!, {r6} - 5022 .LVL436: - 5023 0014 1D88 ldrh r5, [r3] - 5024 .LVL437: -2135:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** { - 5025 .loc 1 2135 0 - 5026 0016 4123 movs r3, #65 - 5027 .LVL438: - 5028 0018 C35C ldrb r3, [r0, r3] - 5029 001a 202B cmp r3, #32 - 5030 001c 56D1 bne .L351 -2137:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** { - 5031 .loc 1 2137 0 - 5032 001e 002E cmp r6, #0 - 5033 0020 5AD0 beq .L352 -2137:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** { - 5034 .loc 1 2137 0 is_stmt 0 discriminator 1 - 5035 0022 002D cmp r5, #0 - 5036 0024 5AD0 beq .L353 -2142:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** { - 5037 .loc 1 2142 0 is_stmt 1 - 5038 0026 0368 ldr r3, [r0] - 5039 0028 9B69 ldr r3, [r3, #24] - 5040 002a 1B04 lsls r3, r3, #16 - 5041 002c 58D4 bmi .L354 -2148:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** - 5042 .loc 1 2148 0 - 5043 002e 4023 movs r3, #64 - 5044 0030 C35C ldrb r3, [r0, r3] - 5045 0032 012B cmp r3, #1 - 5046 0034 56D0 beq .L355 -2148:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** - 5047 .loc 1 2148 0 is_stmt 0 discriminator 2 - 5048 0036 4024 movs r4, #64 - 5049 0038 0123 movs r3, #1 - ARM GAS /tmp/ccTaFl06.s page 187 - - - 5050 003a 0355 strb r3, [r0, r4] -2151:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** - 5051 .loc 1 2151 0 is_stmt 1 discriminator 2 - 5052 003c FFF7FEFF bl HAL_GetTick - 5053 .LVL439: -2153:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** hi2c->Mode = HAL_I2C_MODE_MEM; - 5054 .loc 1 2153 0 discriminator 2 - 5055 0040 4123 movs r3, #65 - 5056 0042 2222 movs r2, #34 - 5057 0044 FA54 strb r2, [r7, r3] -2154:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** hi2c->ErrorCode = HAL_I2C_ERROR_NONE; - 5058 .loc 1 2154 0 discriminator 2 - 5059 0046 0133 adds r3, r3, #1 - 5060 0048 FC54 strb r4, [r7, r3] -2155:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** - 5061 .loc 1 2155 0 discriminator 2 - 5062 004a 0023 movs r3, #0 - 5063 004c 7B64 str r3, [r7, #68] -2158:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** hi2c->XferCount = Size; - 5064 .loc 1 2158 0 discriminator 2 - 5065 004e 7E62 str r6, [r7, #36] -2159:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** hi2c->XferOptions = I2C_NO_OPTION_FRAME; - 5066 .loc 1 2159 0 discriminator 2 - 5067 0050 7D85 strh r5, [r7, #42] -2160:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** hi2c->XferISR = I2C_Master_ISR_IT; - 5068 .loc 1 2160 0 discriminator 2 - 5069 0052 254B ldr r3, .L356 - 5070 0054 FB62 str r3, [r7, #44] -2161:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** - 5071 .loc 1 2161 0 discriminator 2 - 5072 0056 254B ldr r3, .L356+4 - 5073 0058 7B63 str r3, [r7, #52] -2163:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** { - 5074 .loc 1 2163 0 discriminator 2 - 5075 005a 7B8D ldrh r3, [r7, #42] - 5076 005c 9BB2 uxth r3, r3 - 5077 005e FF2B cmp r3, #255 - 5078 0060 17D9 bls .L347 -2165:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** xfermode = I2C_RELOAD_MODE; - 5079 .loc 1 2165 0 - 5080 0062 FF23 movs r3, #255 - 5081 0064 3B85 strh r3, [r7, #40] - 5082 .LVL440: -2166:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** } - 5083 .loc 1 2166 0 - 5084 0066 8023 movs r3, #128 - 5085 0068 5B04 lsls r3, r3, #17 - 5086 006a 9846 mov r8, r3 - 5087 .LVL441: - 5088 .L348: -2175:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** { - 5089 .loc 1 2175 0 - 5090 006c 0190 str r0, [sp, #4] - 5091 006e 1923 movs r3, #25 - 5092 0070 0093 str r3, [sp] - 5093 0072 059B ldr r3, [sp, #20] - 5094 0074 049A ldr r2, [sp, #16] - ARM GAS /tmp/ccTaFl06.s page 188 - - - 5095 0076 0399 ldr r1, [sp, #12] - 5096 0078 3800 movs r0, r7 - 5097 .LVL442: - 5098 007a FFF7FEFF bl I2C_RequestMemoryRead - 5099 .LVL443: - 5100 007e 051E subs r5, r0, #0 - 5101 0080 12D0 beq .L349 -2177:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** { - 5102 .loc 1 2177 0 - 5103 0082 7B6C ldr r3, [r7, #68] - 5104 0084 042B cmp r3, #4 - 5105 0086 0AD1 bne .L350 -2180:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** return HAL_ERROR; - 5106 .loc 1 2180 0 - 5107 0088 3C33 adds r3, r3, #60 - 5108 008a 0022 movs r2, #0 - 5109 008c FA54 strb r2, [r7, r3] -2181:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** } - 5110 .loc 1 2181 0 - 5111 008e 0125 movs r5, #1 - 5112 0090 1DE0 b .L346 - 5113 .LVL444: - 5114 .L347: -2170:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** xfermode = I2C_AUTOEND_MODE; - 5115 .loc 1 2170 0 - 5116 0092 7B8D ldrh r3, [r7, #42] - 5117 0094 3B85 strh r3, [r7, #40] - 5118 .LVL445: -2171:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** } - 5119 .loc 1 2171 0 - 5120 0096 8023 movs r3, #128 - 5121 0098 9B04 lsls r3, r3, #18 - 5122 009a 9846 mov r8, r3 - 5123 009c E6E7 b .L348 - 5124 .LVL446: - 5125 .L350: -2186:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** return HAL_TIMEOUT; - 5126 .loc 1 2186 0 - 5127 009e 4023 movs r3, #64 - 5128 00a0 0022 movs r2, #0 - 5129 00a2 FA54 strb r2, [r7, r3] -2187:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** } - 5130 .loc 1 2187 0 - 5131 00a4 0325 movs r5, #3 - 5132 00a6 12E0 b .L346 - 5133 .L349: -2192:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** - 5134 .loc 1 2192 0 - 5135 00a8 3A8D ldrh r2, [r7, #40] - 5136 00aa D2B2 uxtb r2, r2 - 5137 00ac 9023 movs r3, #144 - 5138 00ae 9B01 lsls r3, r3, #6 - 5139 00b0 0093 str r3, [sp] - 5140 00b2 4346 mov r3, r8 - 5141 00b4 0399 ldr r1, [sp, #12] - 5142 00b6 3800 movs r0, r7 - 5143 00b8 FFF7FEFF bl I2C_TransferConfig - ARM GAS /tmp/ccTaFl06.s page 189 - - - 5144 .LVL447: -2195:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** - 5145 .loc 1 2195 0 - 5146 00bc 4023 movs r3, #64 - 5147 00be 0022 movs r2, #0 - 5148 00c0 FA54 strb r2, [r7, r3] -2204:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** - 5149 .loc 1 2204 0 - 5150 00c2 0221 movs r1, #2 - 5151 00c4 3800 movs r0, r7 - 5152 00c6 FFF7FEFF bl I2C_Enable_IRQ - 5153 .LVL448: -2206:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** } - 5154 .loc 1 2206 0 - 5155 00ca 00E0 b .L346 - 5156 .LVL449: - 5157 .L351: -2210:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** } - 5158 .loc 1 2210 0 - 5159 00cc 0225 movs r5, #2 - 5160 .LVL450: - 5161 .L346: -2212:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** /** - 5162 .loc 1 2212 0 - 5163 00ce 2800 movs r0, r5 - 5164 00d0 06B0 add sp, sp, #24 - 5165 @ sp needed - 5166 .LVL451: - 5167 00d2 04BC pop {r2} - 5168 00d4 9046 mov r8, r2 - 5169 00d6 F0BD pop {r4, r5, r6, r7, pc} - 5170 .LVL452: - 5171 .L352: -2139:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** } - 5172 .loc 1 2139 0 - 5173 00d8 0125 movs r5, #1 - 5174 00da F8E7 b .L346 - 5175 .L353: - 5176 00dc 0125 movs r5, #1 - 5177 00de F6E7 b .L346 - 5178 .L354: -2144:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** } - 5179 .loc 1 2144 0 - 5180 00e0 0225 movs r5, #2 - 5181 00e2 F4E7 b .L346 - 5182 .L355: -2148:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** - 5183 .loc 1 2148 0 - 5184 00e4 0225 movs r5, #2 - 5185 00e6 F2E7 b .L346 - 5186 .L357: - 5187 .align 2 - 5188 .L356: - 5189 00e8 0000FFFF .word -65536 - 5190 00ec 00000000 .word I2C_Master_ISR_IT - 5191 .cfi_endproc - 5192 .LFE56: - ARM GAS /tmp/ccTaFl06.s page 190 - - - 5194 .section .text.HAL_I2C_Mem_Write_DMA,"ax",%progbits - 5195 .align 1 - 5196 .global HAL_I2C_Mem_Write_DMA - 5197 .syntax unified - 5198 .code 16 - 5199 .thumb_func - 5200 .fpu softvfp - 5202 HAL_I2C_Mem_Write_DMA: - 5203 .LFB57: -2226:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** uint32_t tickstart = 0U; - 5204 .loc 1 2226 0 - 5205 .cfi_startproc - 5206 @ args = 8, pretend = 0, frame = 16 - 5207 @ frame_needed = 0, uses_anonymous_args = 0 - 5208 .LVL453: - 5209 0000 F0B5 push {r4, r5, r6, r7, lr} - 5210 .LCFI45: - 5211 .cfi_def_cfa_offset 20 - 5212 .cfi_offset 4, -20 - 5213 .cfi_offset 5, -16 - 5214 .cfi_offset 6, -12 - 5215 .cfi_offset 7, -8 - 5216 .cfi_offset 14, -4 - 5217 0002 CE46 mov lr, r9 - 5218 0004 00B5 push {lr} - 5219 .LCFI46: - 5220 .cfi_def_cfa_offset 24 - 5221 .cfi_offset 9, -24 - 5222 0006 86B0 sub sp, sp, #24 - 5223 .LCFI47: - 5224 .cfi_def_cfa_offset 48 - 5225 0008 0400 movs r4, r0 - 5226 000a 0391 str r1, [sp, #12] - 5227 000c 0492 str r2, [sp, #16] - 5228 000e 0593 str r3, [sp, #20] - 5229 0010 0CAB add r3, sp, #48 - 5230 .LVL454: - 5231 0012 20CB ldmia r3!, {r5} - 5232 .LVL455: - 5233 0014 1E88 ldrh r6, [r3] - 5234 .LVL456: -2233:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** { - 5235 .loc 1 2233 0 - 5236 0016 4123 movs r3, #65 - 5237 .LVL457: - 5238 0018 C35C ldrb r3, [r0, r3] - 5239 001a 202B cmp r3, #32 - 5240 001c 74D1 bne .L364 -2235:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** { - 5241 .loc 1 2235 0 - 5242 001e 002D cmp r5, #0 - 5243 0020 00D1 bne .LCB5279 - 5244 0022 77E0 b .L365 @long jump - 5245 .LCB5279: -2235:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** { - 5246 .loc 1 2235 0 is_stmt 0 discriminator 1 - 5247 0024 002E cmp r6, #0 - ARM GAS /tmp/ccTaFl06.s page 191 - - - 5248 0026 00D1 bne .LCB5281 - 5249 0028 76E0 b .L366 @long jump - 5250 .LCB5281: -2240:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** { - 5251 .loc 1 2240 0 is_stmt 1 - 5252 002a 0368 ldr r3, [r0] - 5253 002c 9B69 ldr r3, [r3, #24] - 5254 002e 1B04 lsls r3, r3, #16 - 5255 0030 00D5 bpl .LCB5287 - 5256 0032 73E0 b .L367 @long jump - 5257 .LCB5287: -2246:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** - 5258 .loc 1 2246 0 - 5259 0034 4023 movs r3, #64 - 5260 0036 C35C ldrb r3, [r0, r3] - 5261 0038 012B cmp r3, #1 - 5262 003a 00D1 bne .LCB5291 - 5263 003c 70E0 b .L368 @long jump - 5264 .LCB5291: -2246:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** - 5265 .loc 1 2246 0 is_stmt 0 discriminator 2 - 5266 003e 4027 movs r7, #64 - 5267 0040 0123 movs r3, #1 - 5268 0042 C355 strb r3, [r0, r7] -2249:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** - 5269 .loc 1 2249 0 is_stmt 1 discriminator 2 - 5270 0044 FFF7FEFF bl HAL_GetTick - 5271 .LVL458: -2251:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** hi2c->Mode = HAL_I2C_MODE_MEM; - 5272 .loc 1 2251 0 discriminator 2 - 5273 0048 4123 movs r3, #65 - 5274 004a 2122 movs r2, #33 - 5275 004c E254 strb r2, [r4, r3] -2252:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** hi2c->ErrorCode = HAL_I2C_ERROR_NONE; - 5276 .loc 1 2252 0 discriminator 2 - 5277 004e 0133 adds r3, r3, #1 - 5278 0050 E754 strb r7, [r4, r3] -2253:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** - 5279 .loc 1 2253 0 discriminator 2 - 5280 0052 0023 movs r3, #0 - 5281 0054 6364 str r3, [r4, #68] -2256:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** hi2c->XferCount = Size; - 5282 .loc 1 2256 0 discriminator 2 - 5283 0056 6562 str r5, [r4, #36] -2257:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** hi2c->XferOptions = I2C_NO_OPTION_FRAME; - 5284 .loc 1 2257 0 discriminator 2 - 5285 0058 6685 strh r6, [r4, #42] -2258:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** hi2c->XferISR = I2C_Master_ISR_DMA; - 5286 .loc 1 2258 0 discriminator 2 - 5287 005a 324B ldr r3, .L369 - 5288 005c E362 str r3, [r4, #44] -2259:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** - 5289 .loc 1 2259 0 discriminator 2 - 5290 005e 324B ldr r3, .L369+4 - 5291 0060 6363 str r3, [r4, #52] -2261:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** { - 5292 .loc 1 2261 0 discriminator 2 - ARM GAS /tmp/ccTaFl06.s page 192 - - - 5293 0062 638D ldrh r3, [r4, #42] - 5294 0064 9BB2 uxth r3, r3 - 5295 0066 FF2B cmp r3, #255 - 5296 0068 17D9 bls .L360 -2263:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** xfermode = I2C_RELOAD_MODE; - 5297 .loc 1 2263 0 - 5298 006a FF23 movs r3, #255 - 5299 006c 2385 strh r3, [r4, #40] - 5300 .LVL459: -2264:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** } - 5301 .loc 1 2264 0 - 5302 006e 8023 movs r3, #128 - 5303 0070 5B04 lsls r3, r3, #17 - 5304 0072 9946 mov r9, r3 - 5305 .LVL460: - 5306 .L361: -2273:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** { - 5307 .loc 1 2273 0 - 5308 0074 0190 str r0, [sp, #4] - 5309 0076 1923 movs r3, #25 - 5310 0078 0093 str r3, [sp] - 5311 007a 059B ldr r3, [sp, #20] - 5312 007c 049A ldr r2, [sp, #16] - 5313 007e 0399 ldr r1, [sp, #12] - 5314 0080 2000 movs r0, r4 - 5315 .LVL461: - 5316 0082 FFF7FEFF bl I2C_RequestMemoryWrite - 5317 .LVL462: - 5318 0086 061E subs r6, r0, #0 - 5319 0088 12D0 beq .L362 -2275:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** { - 5320 .loc 1 2275 0 - 5321 008a 636C ldr r3, [r4, #68] - 5322 008c 042B cmp r3, #4 - 5323 008e 0AD1 bne .L363 -2278:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** return HAL_ERROR; - 5324 .loc 1 2278 0 - 5325 0090 3C33 adds r3, r3, #60 - 5326 0092 0022 movs r2, #0 - 5327 0094 E254 strb r2, [r4, r3] -2279:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** } - 5328 .loc 1 2279 0 - 5329 0096 0126 movs r6, #1 - 5330 0098 37E0 b .L359 - 5331 .LVL463: - 5332 .L360: -2268:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** xfermode = I2C_AUTOEND_MODE; - 5333 .loc 1 2268 0 - 5334 009a 638D ldrh r3, [r4, #42] - 5335 009c 2385 strh r3, [r4, #40] - 5336 .LVL464: -2269:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** } - 5337 .loc 1 2269 0 - 5338 009e 8023 movs r3, #128 - 5339 00a0 9B04 lsls r3, r3, #18 - 5340 00a2 9946 mov r9, r3 - 5341 00a4 E6E7 b .L361 - ARM GAS /tmp/ccTaFl06.s page 193 - - - 5342 .LVL465: - 5343 .L363: -2284:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** return HAL_TIMEOUT; - 5344 .loc 1 2284 0 - 5345 00a6 4023 movs r3, #64 - 5346 00a8 0022 movs r2, #0 - 5347 00aa E254 strb r2, [r4, r3] -2285:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** } - 5348 .loc 1 2285 0 - 5349 00ac 0326 movs r6, #3 - 5350 00ae 2CE0 b .L359 - 5351 .L362: -2290:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** - 5352 .loc 1 2290 0 - 5353 00b0 A36B ldr r3, [r4, #56] - 5354 00b2 1E4A ldr r2, .L369+8 - 5355 00b4 9A62 str r2, [r3, #40] -2293:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** - 5356 .loc 1 2293 0 - 5357 00b6 A36B ldr r3, [r4, #56] - 5358 00b8 1D4A ldr r2, .L369+12 - 5359 00ba 1A63 str r2, [r3, #48] -2296:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** hi2c->hdmatx->XferAbortCallback = NULL; - 5360 .loc 1 2296 0 - 5361 00bc A36B ldr r3, [r4, #56] - 5362 00be 0027 movs r7, #0 - 5363 00c0 DF62 str r7, [r3, #44] -2297:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** - 5364 .loc 1 2297 0 - 5365 00c2 A36B ldr r3, [r4, #56] - 5366 00c4 5F63 str r7, [r3, #52] -2300:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** - 5367 .loc 1 2300 0 - 5368 00c6 2268 ldr r2, [r4] - 5369 00c8 2832 adds r2, r2, #40 - 5370 00ca 238D ldrh r3, [r4, #40] - 5371 00cc 2900 movs r1, r5 - 5372 00ce A06B ldr r0, [r4, #56] - 5373 00d0 FFF7FEFF bl HAL_DMA_Start_IT - 5374 .LVL466: -2304:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** - 5375 .loc 1 2304 0 - 5376 00d4 228D ldrh r2, [r4, #40] - 5377 00d6 D2B2 uxtb r2, r2 - 5378 00d8 0097 str r7, [sp] - 5379 00da 4B46 mov r3, r9 - 5380 00dc 0399 ldr r1, [sp, #12] - 5381 00de 2000 movs r0, r4 - 5382 00e0 FFF7FEFF bl I2C_TransferConfig - 5383 .LVL467: -2307:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** - 5384 .loc 1 2307 0 - 5385 00e4 638D ldrh r3, [r4, #42] - 5386 00e6 228D ldrh r2, [r4, #40] - 5387 00e8 9B1A subs r3, r3, r2 - 5388 00ea 9BB2 uxth r3, r3 - 5389 00ec 6385 strh r3, [r4, #42] - ARM GAS /tmp/ccTaFl06.s page 194 - - -2310:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** - 5390 .loc 1 2310 0 - 5391 00ee 4023 movs r3, #64 - 5392 00f0 E754 strb r7, [r4, r3] -2316:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** - 5393 .loc 1 2316 0 - 5394 00f2 1121 movs r1, #17 - 5395 00f4 2000 movs r0, r4 - 5396 00f6 FFF7FEFF bl I2C_Enable_IRQ - 5397 .LVL468: -2319:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** - 5398 .loc 1 2319 0 - 5399 00fa 2268 ldr r2, [r4] - 5400 00fc 1168 ldr r1, [r2] - 5401 00fe 8023 movs r3, #128 - 5402 0100 DB01 lsls r3, r3, #7 - 5403 0102 0B43 orrs r3, r1 - 5404 0104 1360 str r3, [r2] -2321:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** } - 5405 .loc 1 2321 0 - 5406 0106 00E0 b .L359 - 5407 .LVL469: - 5408 .L364: -2325:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** } - 5409 .loc 1 2325 0 - 5410 0108 0226 movs r6, #2 - 5411 .LVL470: - 5412 .L359: -2327:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** - 5413 .loc 1 2327 0 - 5414 010a 3000 movs r0, r6 - 5415 010c 06B0 add sp, sp, #24 - 5416 @ sp needed - 5417 .LVL471: - 5418 010e 04BC pop {r2} - 5419 0110 9146 mov r9, r2 - 5420 0112 F0BD pop {r4, r5, r6, r7, pc} - 5421 .LVL472: - 5422 .L365: -2237:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** } - 5423 .loc 1 2237 0 - 5424 0114 0126 movs r6, #1 - 5425 0116 F8E7 b .L359 - 5426 .L366: - 5427 0118 0126 movs r6, #1 - 5428 011a F6E7 b .L359 - 5429 .L367: -2242:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** } - 5430 .loc 1 2242 0 - 5431 011c 0226 movs r6, #2 - 5432 011e F4E7 b .L359 - 5433 .L368: -2246:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** - 5434 .loc 1 2246 0 - 5435 0120 0226 movs r6, #2 - 5436 0122 F2E7 b .L359 - 5437 .L370: - ARM GAS /tmp/ccTaFl06.s page 195 - - - 5438 .align 2 - 5439 .L369: - 5440 0124 0000FFFF .word -65536 - 5441 0128 00000000 .word I2C_Master_ISR_DMA - 5442 012c 00000000 .word I2C_DMAMasterTransmitCplt - 5443 0130 00000000 .word I2C_DMAError - 5444 .cfi_endproc - 5445 .LFE57: - 5447 .section .text.HAL_I2C_Mem_Read_DMA,"ax",%progbits - 5448 .align 1 - 5449 .global HAL_I2C_Mem_Read_DMA - 5450 .syntax unified - 5451 .code 16 - 5452 .thumb_func - 5453 .fpu softvfp - 5455 HAL_I2C_Mem_Read_DMA: - 5456 .LFB58: -2342:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** uint32_t tickstart = 0U; - 5457 .loc 1 2342 0 - 5458 .cfi_startproc - 5459 @ args = 8, pretend = 0, frame = 16 - 5460 @ frame_needed = 0, uses_anonymous_args = 0 - 5461 .LVL473: - 5462 0000 F0B5 push {r4, r5, r6, r7, lr} - 5463 .LCFI48: - 5464 .cfi_def_cfa_offset 20 - 5465 .cfi_offset 4, -20 - 5466 .cfi_offset 5, -16 - 5467 .cfi_offset 6, -12 - 5468 .cfi_offset 7, -8 - 5469 .cfi_offset 14, -4 - 5470 0002 CE46 mov lr, r9 - 5471 0004 00B5 push {lr} - 5472 .LCFI49: - 5473 .cfi_def_cfa_offset 24 - 5474 .cfi_offset 9, -24 - 5475 0006 86B0 sub sp, sp, #24 - 5476 .LCFI50: - 5477 .cfi_def_cfa_offset 48 - 5478 0008 0400 movs r4, r0 - 5479 000a 0391 str r1, [sp, #12] - 5480 000c 0492 str r2, [sp, #16] - 5481 000e 0593 str r3, [sp, #20] - 5482 0010 0CAB add r3, sp, #48 - 5483 .LVL474: - 5484 0012 20CB ldmia r3!, {r5} - 5485 .LVL475: - 5486 0014 1E88 ldrh r6, [r3] - 5487 .LVL476: -2349:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** { - 5488 .loc 1 2349 0 - 5489 0016 4123 movs r3, #65 - 5490 .LVL477: - 5491 0018 C35C ldrb r3, [r0, r3] - 5492 001a 202B cmp r3, #32 - 5493 001c 76D1 bne .L377 -2351:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** { - ARM GAS /tmp/ccTaFl06.s page 196 - - - 5494 .loc 1 2351 0 - 5495 001e 002D cmp r5, #0 - 5496 0020 00D1 bne .LCB5545 - 5497 0022 79E0 b .L378 @long jump - 5498 .LCB5545: -2351:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** { - 5499 .loc 1 2351 0 is_stmt 0 discriminator 1 - 5500 0024 002E cmp r6, #0 - 5501 0026 00D1 bne .LCB5547 - 5502 0028 78E0 b .L379 @long jump - 5503 .LCB5547: -2356:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** { - 5504 .loc 1 2356 0 is_stmt 1 - 5505 002a 0368 ldr r3, [r0] - 5506 002c 9B69 ldr r3, [r3, #24] - 5507 002e 1B04 lsls r3, r3, #16 - 5508 0030 00D5 bpl .LCB5553 - 5509 0032 75E0 b .L380 @long jump - 5510 .LCB5553: -2362:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** - 5511 .loc 1 2362 0 - 5512 0034 4023 movs r3, #64 - 5513 0036 C35C ldrb r3, [r0, r3] - 5514 0038 012B cmp r3, #1 - 5515 003a 00D1 bne .LCB5557 - 5516 003c 72E0 b .L381 @long jump - 5517 .LCB5557: -2362:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** - 5518 .loc 1 2362 0 is_stmt 0 discriminator 2 - 5519 003e 4027 movs r7, #64 - 5520 0040 0123 movs r3, #1 - 5521 0042 C355 strb r3, [r0, r7] -2365:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** - 5522 .loc 1 2365 0 is_stmt 1 discriminator 2 - 5523 0044 FFF7FEFF bl HAL_GetTick - 5524 .LVL478: -2367:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** hi2c->Mode = HAL_I2C_MODE_MEM; - 5525 .loc 1 2367 0 discriminator 2 - 5526 0048 4123 movs r3, #65 - 5527 004a 2222 movs r2, #34 - 5528 004c E254 strb r2, [r4, r3] -2368:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** hi2c->ErrorCode = HAL_I2C_ERROR_NONE; - 5529 .loc 1 2368 0 discriminator 2 - 5530 004e 0133 adds r3, r3, #1 - 5531 0050 E754 strb r7, [r4, r3] -2369:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** - 5532 .loc 1 2369 0 discriminator 2 - 5533 0052 0023 movs r3, #0 - 5534 0054 6364 str r3, [r4, #68] -2372:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** hi2c->XferCount = Size; - 5535 .loc 1 2372 0 discriminator 2 - 5536 0056 6562 str r5, [r4, #36] -2373:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** hi2c->XferOptions = I2C_NO_OPTION_FRAME; - 5537 .loc 1 2373 0 discriminator 2 - 5538 0058 6685 strh r6, [r4, #42] -2374:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** hi2c->XferISR = I2C_Master_ISR_DMA; - 5539 .loc 1 2374 0 discriminator 2 - ARM GAS /tmp/ccTaFl06.s page 197 - - - 5540 005a 334B ldr r3, .L382 - 5541 005c E362 str r3, [r4, #44] -2375:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** - 5542 .loc 1 2375 0 discriminator 2 - 5543 005e 334B ldr r3, .L382+4 - 5544 0060 6363 str r3, [r4, #52] -2377:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** { - 5545 .loc 1 2377 0 discriminator 2 - 5546 0062 638D ldrh r3, [r4, #42] - 5547 0064 9BB2 uxth r3, r3 - 5548 0066 FF2B cmp r3, #255 - 5549 0068 17D9 bls .L373 -2379:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** xfermode = I2C_RELOAD_MODE; - 5550 .loc 1 2379 0 - 5551 006a FF23 movs r3, #255 - 5552 006c 2385 strh r3, [r4, #40] - 5553 .LVL479: -2380:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** } - 5554 .loc 1 2380 0 - 5555 006e 8023 movs r3, #128 - 5556 0070 5B04 lsls r3, r3, #17 - 5557 0072 9946 mov r9, r3 - 5558 .LVL480: - 5559 .L374: -2389:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** { - 5560 .loc 1 2389 0 - 5561 0074 0190 str r0, [sp, #4] - 5562 0076 1923 movs r3, #25 - 5563 0078 0093 str r3, [sp] - 5564 007a 059B ldr r3, [sp, #20] - 5565 007c 049A ldr r2, [sp, #16] - 5566 007e 0399 ldr r1, [sp, #12] - 5567 0080 2000 movs r0, r4 - 5568 .LVL481: - 5569 0082 FFF7FEFF bl I2C_RequestMemoryRead - 5570 .LVL482: - 5571 0086 061E subs r6, r0, #0 - 5572 0088 12D0 beq .L375 -2391:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** { - 5573 .loc 1 2391 0 - 5574 008a 636C ldr r3, [r4, #68] - 5575 008c 042B cmp r3, #4 - 5576 008e 0AD1 bne .L376 -2394:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** return HAL_ERROR; - 5577 .loc 1 2394 0 - 5578 0090 3C33 adds r3, r3, #60 - 5579 0092 0022 movs r2, #0 - 5580 0094 E254 strb r2, [r4, r3] -2395:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** } - 5581 .loc 1 2395 0 - 5582 0096 0126 movs r6, #1 - 5583 0098 39E0 b .L372 - 5584 .LVL483: - 5585 .L373: -2384:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** xfermode = I2C_AUTOEND_MODE; - 5586 .loc 1 2384 0 - 5587 009a 638D ldrh r3, [r4, #42] - ARM GAS /tmp/ccTaFl06.s page 198 - - - 5588 009c 2385 strh r3, [r4, #40] - 5589 .LVL484: -2385:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** } - 5590 .loc 1 2385 0 - 5591 009e 8023 movs r3, #128 - 5592 00a0 9B04 lsls r3, r3, #18 - 5593 00a2 9946 mov r9, r3 - 5594 00a4 E6E7 b .L374 - 5595 .LVL485: - 5596 .L376: -2400:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** return HAL_TIMEOUT; - 5597 .loc 1 2400 0 - 5598 00a6 4023 movs r3, #64 - 5599 00a8 0022 movs r2, #0 - 5600 00aa E254 strb r2, [r4, r3] -2401:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** } - 5601 .loc 1 2401 0 - 5602 00ac 0326 movs r6, #3 - 5603 00ae 2EE0 b .L372 - 5604 .L375: -2406:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** - 5605 .loc 1 2406 0 - 5606 00b0 E36B ldr r3, [r4, #60] - 5607 00b2 1F4A ldr r2, .L382+8 - 5608 00b4 9A62 str r2, [r3, #40] -2409:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** - 5609 .loc 1 2409 0 - 5610 00b6 E36B ldr r3, [r4, #60] - 5611 00b8 1E4A ldr r2, .L382+12 - 5612 00ba 1A63 str r2, [r3, #48] -2412:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** hi2c->hdmarx->XferAbortCallback = NULL; - 5613 .loc 1 2412 0 - 5614 00bc E36B ldr r3, [r4, #60] - 5615 00be 0027 movs r7, #0 - 5616 00c0 DF62 str r7, [r3, #44] -2413:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** - 5617 .loc 1 2413 0 - 5618 00c2 E36B ldr r3, [r4, #60] - 5619 00c4 5F63 str r7, [r3, #52] -2416:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** - 5620 .loc 1 2416 0 - 5621 00c6 2168 ldr r1, [r4] - 5622 00c8 2431 adds r1, r1, #36 - 5623 00ca 238D ldrh r3, [r4, #40] - 5624 00cc 2A00 movs r2, r5 - 5625 00ce E06B ldr r0, [r4, #60] - 5626 00d0 FFF7FEFF bl HAL_DMA_Start_IT - 5627 .LVL486: -2419:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** - 5628 .loc 1 2419 0 - 5629 00d4 228D ldrh r2, [r4, #40] - 5630 00d6 D2B2 uxtb r2, r2 - 5631 00d8 9023 movs r3, #144 - 5632 00da 9B01 lsls r3, r3, #6 - 5633 00dc 0093 str r3, [sp] - 5634 00de 4B46 mov r3, r9 - 5635 00e0 0399 ldr r1, [sp, #12] - ARM GAS /tmp/ccTaFl06.s page 199 - - - 5636 00e2 2000 movs r0, r4 - 5637 00e4 FFF7FEFF bl I2C_TransferConfig - 5638 .LVL487: -2422:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** - 5639 .loc 1 2422 0 - 5640 00e8 638D ldrh r3, [r4, #42] - 5641 00ea 228D ldrh r2, [r4, #40] - 5642 00ec 9B1A subs r3, r3, r2 - 5643 00ee 9BB2 uxth r3, r3 - 5644 00f0 6385 strh r3, [r4, #42] -2425:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** - 5645 .loc 1 2425 0 - 5646 00f2 4023 movs r3, #64 - 5647 00f4 E754 strb r7, [r4, r3] -2428:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** - 5648 .loc 1 2428 0 - 5649 00f6 2268 ldr r2, [r4] - 5650 00f8 1168 ldr r1, [r2] - 5651 00fa 8023 movs r3, #128 - 5652 00fc 1B02 lsls r3, r3, #8 - 5653 00fe 0B43 orrs r3, r1 - 5654 0100 1360 str r3, [r2] -2434:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** - 5655 .loc 1 2434 0 - 5656 0102 1121 movs r1, #17 - 5657 0104 2000 movs r0, r4 - 5658 0106 FFF7FEFF bl I2C_Enable_IRQ - 5659 .LVL488: -2436:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** } - 5660 .loc 1 2436 0 - 5661 010a 00E0 b .L372 - 5662 .LVL489: - 5663 .L377: -2440:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** } - 5664 .loc 1 2440 0 - 5665 010c 0226 movs r6, #2 - 5666 .LVL490: - 5667 .L372: -2442:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** - 5668 .loc 1 2442 0 - 5669 010e 3000 movs r0, r6 - 5670 0110 06B0 add sp, sp, #24 - 5671 @ sp needed - 5672 .LVL491: - 5673 0112 04BC pop {r2} - 5674 0114 9146 mov r9, r2 - 5675 0116 F0BD pop {r4, r5, r6, r7, pc} - 5676 .LVL492: - 5677 .L378: -2353:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** } - 5678 .loc 1 2353 0 - 5679 0118 0126 movs r6, #1 - 5680 011a F8E7 b .L372 - 5681 .L379: - 5682 011c 0126 movs r6, #1 - 5683 011e F6E7 b .L372 - 5684 .L380: - ARM GAS /tmp/ccTaFl06.s page 200 - - -2358:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** } - 5685 .loc 1 2358 0 - 5686 0120 0226 movs r6, #2 - 5687 0122 F4E7 b .L372 - 5688 .L381: -2362:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** - 5689 .loc 1 2362 0 - 5690 0124 0226 movs r6, #2 - 5691 0126 F2E7 b .L372 - 5692 .L383: - 5693 .align 2 - 5694 .L382: - 5695 0128 0000FFFF .word -65536 - 5696 012c 00000000 .word I2C_Master_ISR_DMA - 5697 0130 00000000 .word I2C_DMAMasterReceiveCplt - 5698 0134 00000000 .word I2C_DMAError - 5699 .cfi_endproc - 5700 .LFE58: - 5702 .section .text.HAL_I2C_IsDeviceReady,"ax",%progbits - 5703 .align 1 - 5704 .global HAL_I2C_IsDeviceReady - 5705 .syntax unified - 5706 .code 16 - 5707 .thumb_func - 5708 .fpu softvfp - 5710 HAL_I2C_IsDeviceReady: - 5711 .LFB59: -2456:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** uint32_t tickstart = 0U; - 5712 .loc 1 2456 0 - 5713 .cfi_startproc - 5714 @ args = 0, pretend = 0, frame = 8 - 5715 @ frame_needed = 0, uses_anonymous_args = 0 - 5716 .LVL493: - 5717 0000 F0B5 push {r4, r5, r6, r7, lr} - 5718 .LCFI51: - 5719 .cfi_def_cfa_offset 20 - 5720 .cfi_offset 4, -20 - 5721 .cfi_offset 5, -16 - 5722 .cfi_offset 6, -12 - 5723 .cfi_offset 7, -8 - 5724 .cfi_offset 14, -4 - 5725 0002 C646 mov lr, r8 - 5726 0004 00B5 push {lr} - 5727 .LCFI52: - 5728 .cfi_def_cfa_offset 24 - 5729 .cfi_offset 8, -24 - 5730 0006 84B0 sub sp, sp, #16 - 5731 .LCFI53: - 5732 .cfi_def_cfa_offset 40 - 5733 0008 0400 movs r4, r0 - 5734 000a 8846 mov r8, r1 - 5735 000c 1700 movs r7, r2 - 5736 000e 1D00 movs r5, r3 - 5737 .LVL494: -2459:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** - 5738 .loc 1 2459 0 - 5739 0010 0023 movs r3, #0 - ARM GAS /tmp/ccTaFl06.s page 201 - - - 5740 .LVL495: - 5741 0012 0393 str r3, [sp, #12] -2461:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** { - 5742 .loc 1 2461 0 - 5743 0014 4133 adds r3, r3, #65 - 5744 0016 C35C ldrb r3, [r0, r3] - 5745 0018 202B cmp r3, #32 - 5746 001a 00D0 beq .LCB5801 - 5747 001c 8BE0 b .L396 @long jump - 5748 .LCB5801: -2463:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** { - 5749 .loc 1 2463 0 - 5750 001e 0368 ldr r3, [r0] - 5751 0020 9B69 ldr r3, [r3, #24] - 5752 0022 1B04 lsls r3, r3, #16 - 5753 0024 00D5 bpl .LCB5807 - 5754 0026 8BE0 b .L397 @long jump - 5755 .LCB5807: -2469:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** - 5756 .loc 1 2469 0 - 5757 0028 4023 movs r3, #64 - 5758 002a C35C ldrb r3, [r0, r3] - 5759 002c 012B cmp r3, #1 - 5760 002e 00D1 bne .LCB5811 - 5761 0030 88E0 b .L398 @long jump - 5762 .LCB5811: -2469:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** - 5763 .loc 1 2469 0 is_stmt 0 discriminator 2 - 5764 0032 4023 movs r3, #64 - 5765 0034 0122 movs r2, #1 - 5766 .LVL496: - 5767 0036 C254 strb r2, [r0, r3] -2471:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** hi2c->ErrorCode = HAL_I2C_ERROR_NONE; - 5768 .loc 1 2471 0 is_stmt 1 discriminator 2 - 5769 0038 0133 adds r3, r3, #1 - 5770 003a 2332 adds r2, r2, #35 - 5771 003c C254 strb r2, [r0, r3] -2472:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** - 5772 .loc 1 2472 0 discriminator 2 - 5773 003e 0023 movs r3, #0 - 5774 0040 4364 str r3, [r0, #68] - 5775 0042 20E0 b .L395 - 5776 .LVL497: - 5777 .L405: -2477:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** - 5778 .loc 1 2477 0 discriminator 1 - 5779 0044 4346 mov r3, r8 - 5780 0046 9A05 lsls r2, r3, #22 - 5781 0048 920D lsrs r2, r2, #22 - 5782 004a 424B ldr r3, .L406 - 5783 004c 1343 orrs r3, r2 - 5784 004e 23E0 b .L387 - 5785 .LVL498: - 5786 .L391: -2498:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** { - 5787 .loc 1 2498 0 - 5788 0050 9369 ldr r3, [r2, #24] - ARM GAS /tmp/ccTaFl06.s page 202 - - - 5789 0052 DB06 lsls r3, r3, #27 - 5790 0054 42D5 bpl .L402 -2520:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** { - 5791 .loc 1 2520 0 - 5792 0056 0096 str r6, [sp] - 5793 0058 2B00 movs r3, r5 - 5794 005a 0022 movs r2, #0 - 5795 005c 2021 movs r1, #32 - 5796 005e 2000 movs r0, r4 - 5797 0060 FFF7FEFF bl I2C_WaitOnFlagUntilTimeout - 5798 .LVL499: - 5799 0064 0028 cmp r0, #0 - 5800 0066 00D0 beq .LCB5853 - 5801 0068 70E0 b .L400 @long jump - 5802 .LCB5853: -2526:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** - 5803 .loc 1 2526 0 - 5804 006a 2368 ldr r3, [r4] - 5805 006c 1022 movs r2, #16 - 5806 006e DA61 str r2, [r3, #28] -2529:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** } - 5807 .loc 1 2529 0 - 5808 0070 2368 ldr r3, [r4] - 5809 0072 1032 adds r2, r2, #16 - 5810 0074 DA61 str r2, [r3, #28] -2533:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** { - 5811 .loc 1 2533 0 - 5812 0076 039B ldr r3, [sp, #12] - 5813 0078 5A1C adds r2, r3, #1 - 5814 007a 0392 str r2, [sp, #12] - 5815 007c BB42 cmp r3, r7 - 5816 007e 3FD0 beq .L403 - 5817 .L394: -2548:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** - 5818 .loc 1 2548 0 - 5819 0080 039B ldr r3, [sp, #12] - 5820 0082 BB42 cmp r3, r7 - 5821 0084 4FD2 bcs .L404 - 5822 .LVL500: - 5823 .L395: -2477:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** - 5824 .loc 1 2477 0 - 5825 0086 E368 ldr r3, [r4, #12] - 5826 0088 012B cmp r3, #1 - 5827 008a DBD0 beq .L405 -2477:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** - 5828 .loc 1 2477 0 is_stmt 0 discriminator 2 - 5829 008c 4346 mov r3, r8 - 5830 008e 9A05 lsls r2, r3, #22 - 5831 0090 920D lsrs r2, r2, #22 - 5832 0092 A023 movs r3, #160 - 5833 0094 9B01 lsls r3, r3, #6 - 5834 0096 1343 orrs r3, r2 - 5835 .L387: -2477:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** - 5836 .loc 1 2477 0 discriminator 4 - 5837 0098 2268 ldr r2, [r4] - ARM GAS /tmp/ccTaFl06.s page 203 - - - 5838 009a 5360 str r3, [r2, #4] -2481:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** while ((__HAL_I2C_GET_FLAG(hi2c, I2C_FLAG_STOPF) == RESET) && (__HAL_I2C_GET_FLAG(hi2c, I2C_F - 5839 .loc 1 2481 0 is_stmt 1 discriminator 4 - 5840 009c FFF7FEFF bl HAL_GetTick - 5841 .LVL501: - 5842 00a0 0600 movs r6, r0 - 5843 .LVL502: - 5844 .L389: -2482:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** { - 5845 .loc 1 2482 0 - 5846 00a2 2268 ldr r2, [r4] - 5847 00a4 9369 ldr r3, [r2, #24] - 5848 00a6 9B06 lsls r3, r3, #26 - 5849 00a8 D2D4 bmi .L391 -2482:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** { - 5850 .loc 1 2482 0 is_stmt 0 discriminator 1 - 5851 00aa 9369 ldr r3, [r2, #24] - 5852 00ac DB06 lsls r3, r3, #27 - 5853 00ae CFD4 bmi .L391 -2482:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** { - 5854 .loc 1 2482 0 discriminator 2 - 5855 00b0 4123 movs r3, #65 - 5856 00b2 E35C ldrb r3, [r4, r3] - 5857 00b4 DBB2 uxtb r3, r3 - 5858 00b6 A02B cmp r3, #160 - 5859 00b8 CAD0 beq .L391 -2484:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** { - 5860 .loc 1 2484 0 is_stmt 1 - 5861 00ba 6B1C adds r3, r5, #1 - 5862 00bc F1D0 beq .L389 -2486:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** { - 5863 .loc 1 2486 0 - 5864 00be 002D cmp r5, #0 - 5865 00c0 04D0 beq .L390 -2486:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** { - 5866 .loc 1 2486 0 is_stmt 0 discriminator 1 - 5867 00c2 FFF7FEFF bl HAL_GetTick - 5868 .LVL503: - 5869 00c6 801B subs r0, r0, r6 - 5870 00c8 A842 cmp r0, r5 - 5871 00ca EAD9 bls .L389 - 5872 .L390: -2489:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** /* Process Unlocked */ - 5873 .loc 1 2489 0 is_stmt 1 - 5874 00cc 4123 movs r3, #65 - 5875 00ce 2022 movs r2, #32 - 5876 00d0 E254 strb r2, [r4, r3] -2491:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** return HAL_TIMEOUT; - 5877 .loc 1 2491 0 - 5878 00d2 013B subs r3, r3, #1 - 5879 00d4 0022 movs r2, #0 - 5880 00d6 E254 strb r2, [r4, r3] -2492:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** } - 5881 .loc 1 2492 0 - 5882 00d8 0320 movs r0, #3 - 5883 00da 2DE0 b .L385 - 5884 .L402: - ARM GAS /tmp/ccTaFl06.s page 204 - - -2501:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** { - 5885 .loc 1 2501 0 - 5886 00dc 0096 str r6, [sp] - 5887 00de 2B00 movs r3, r5 - 5888 00e0 0022 movs r2, #0 - 5889 00e2 2021 movs r1, #32 - 5890 00e4 2000 movs r0, r4 - 5891 00e6 FFF7FEFF bl I2C_WaitOnFlagUntilTimeout - 5892 .LVL504: - 5893 00ea 0028 cmp r0, #0 - 5894 00ec 2CD1 bne .L399 -2507:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** - 5895 .loc 1 2507 0 - 5896 00ee 2268 ldr r2, [r4] - 5897 00f0 2023 movs r3, #32 - 5898 00f2 D361 str r3, [r2, #28] -2510:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** - 5899 .loc 1 2510 0 - 5900 00f4 4122 movs r2, #65 - 5901 00f6 A354 strb r3, [r4, r2] -2513:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** - 5902 .loc 1 2513 0 - 5903 00f8 2033 adds r3, r3, #32 - 5904 00fa 0022 movs r2, #0 - 5905 00fc E254 strb r2, [r4, r3] -2515:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** } - 5906 .loc 1 2515 0 - 5907 00fe 1BE0 b .L385 - 5908 .L403: -2536:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** - 5909 .loc 1 2536 0 - 5910 0100 2268 ldr r2, [r4] - 5911 0102 5168 ldr r1, [r2, #4] - 5912 0104 8023 movs r3, #128 - 5913 0106 DB01 lsls r3, r3, #7 - 5914 0108 0B43 orrs r3, r1 - 5915 010a 5360 str r3, [r2, #4] -2539:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** { - 5916 .loc 1 2539 0 - 5917 010c 0096 str r6, [sp] - 5918 010e 2B00 movs r3, r5 - 5919 0110 0022 movs r2, #0 - 5920 0112 2021 movs r1, #32 - 5921 0114 2000 movs r0, r4 - 5922 0116 FFF7FEFF bl I2C_WaitOnFlagUntilTimeout - 5923 .LVL505: - 5924 011a 0028 cmp r0, #0 - 5925 011c 18D1 bne .L401 -2545:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** } - 5926 .loc 1 2545 0 - 5927 011e 2368 ldr r3, [r4] - 5928 0120 2022 movs r2, #32 - 5929 0122 DA61 str r2, [r3, #28] - 5930 0124 ACE7 b .L394 - 5931 .L404: -2550:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** - 5932 .loc 1 2550 0 - ARM GAS /tmp/ccTaFl06.s page 205 - - - 5933 0126 4123 movs r3, #65 - 5934 0128 2022 movs r2, #32 - 5935 012a E254 strb r2, [r4, r3] -2553:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** - 5936 .loc 1 2553 0 - 5937 012c 013B subs r3, r3, #1 - 5938 012e 0022 movs r2, #0 - 5939 0130 E254 strb r2, [r4, r3] -2555:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** } - 5940 .loc 1 2555 0 - 5941 0132 0320 movs r0, #3 - 5942 0134 00E0 b .L385 - 5943 .LVL506: - 5944 .L396: -2559:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** } - 5945 .loc 1 2559 0 - 5946 0136 0220 movs r0, #2 - 5947 .LVL507: - 5948 .L385: -2561:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** - 5949 .loc 1 2561 0 - 5950 0138 04B0 add sp, sp, #16 - 5951 @ sp needed - 5952 .LVL508: - 5953 .LVL509: - 5954 .LVL510: - 5955 013a 04BC pop {r2} - 5956 013c 9046 mov r8, r2 - 5957 013e F0BD pop {r4, r5, r6, r7, pc} - 5958 .LVL511: - 5959 .L397: -2465:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** } - 5960 .loc 1 2465 0 - 5961 0140 0220 movs r0, #2 - 5962 .LVL512: - 5963 0142 F9E7 b .L385 - 5964 .LVL513: - 5965 .L398: -2469:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** - 5966 .loc 1 2469 0 - 5967 0144 0220 movs r0, #2 - 5968 .LVL514: - 5969 0146 F7E7 b .L385 - 5970 .LVL515: - 5971 .L399: -2503:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** } - 5972 .loc 1 2503 0 - 5973 0148 0320 movs r0, #3 - 5974 014a F5E7 b .L385 - 5975 .L400: -2522:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** } - 5976 .loc 1 2522 0 - 5977 014c 0320 movs r0, #3 - 5978 014e F3E7 b .L385 - 5979 .L401: -2541:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** } - 5980 .loc 1 2541 0 - ARM GAS /tmp/ccTaFl06.s page 206 - - - 5981 0150 0320 movs r0, #3 - 5982 0152 F1E7 b .L385 - 5983 .L407: - 5984 .align 2 - 5985 .L406: - 5986 0154 00200002 .word 33562624 - 5987 .cfi_endproc - 5988 .LFE59: - 5990 .section .text.HAL_I2C_Master_Sequential_Transmit_IT,"ax",%progbits - 5991 .align 1 - 5992 .global HAL_I2C_Master_Sequential_Transmit_IT - 5993 .syntax unified - 5994 .code 16 - 5995 .thumb_func - 5996 .fpu softvfp - 5998 HAL_I2C_Master_Sequential_Transmit_IT: - 5999 .LFB60: -2576:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** uint32_t xfermode = 0U; - 6000 .loc 1 2576 0 - 6001 .cfi_startproc - 6002 @ args = 4, pretend = 0, frame = 0 - 6003 @ frame_needed = 0, uses_anonymous_args = 0 - 6004 .LVL516: - 6005 0000 30B5 push {r4, r5, lr} - 6006 .LCFI54: - 6007 .cfi_def_cfa_offset 12 - 6008 .cfi_offset 4, -12 - 6009 .cfi_offset 5, -8 - 6010 .cfi_offset 14, -4 - 6011 0002 83B0 sub sp, sp, #12 - 6012 .LCFI55: - 6013 .cfi_def_cfa_offset 24 - 6014 0004 0400 movs r4, r0 - 6015 .LVL517: -2583:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** { - 6016 .loc 1 2583 0 - 6017 0006 4120 movs r0, #65 - 6018 .LVL518: - 6019 0008 205C ldrb r0, [r4, r0] - 6020 000a 2028 cmp r0, #32 - 6021 000c 36D1 bne .L413 -2586:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** - 6022 .loc 1 2586 0 - 6023 000e 2030 adds r0, r0, #32 - 6024 0010 205C ldrb r0, [r4, r0] - 6025 0012 0128 cmp r0, #1 - 6026 0014 35D0 beq .L414 -2586:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** - 6027 .loc 1 2586 0 is_stmt 0 discriminator 2 - 6028 0016 4020 movs r0, #64 - 6029 0018 0125 movs r5, #1 - 6030 001a 2554 strb r5, [r4, r0] -2588:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** hi2c->Mode = HAL_I2C_MODE_MASTER; - 6031 .loc 1 2588 0 is_stmt 1 discriminator 2 - 6032 001c 0130 adds r0, r0, #1 - 6033 001e 2035 adds r5, r5, #32 - 6034 0020 2554 strb r5, [r4, r0] - ARM GAS /tmp/ccTaFl06.s page 207 - - -2589:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** hi2c->ErrorCode = HAL_I2C_ERROR_NONE; - 6035 .loc 1 2589 0 discriminator 2 - 6036 0022 0130 adds r0, r0, #1 - 6037 0024 113D subs r5, r5, #17 - 6038 0026 2554 strb r5, [r4, r0] -2590:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** - 6039 .loc 1 2590 0 discriminator 2 - 6040 0028 0020 movs r0, #0 - 6041 002a 6064 str r0, [r4, #68] -2593:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** hi2c->XferCount = Size; - 6042 .loc 1 2593 0 discriminator 2 - 6043 002c 6262 str r2, [r4, #36] -2594:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** hi2c->XferOptions = XferOptions; - 6044 .loc 1 2594 0 discriminator 2 - 6045 002e 6385 strh r3, [r4, #42] -2595:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** hi2c->XferISR = I2C_Master_ISR_IT; - 6046 .loc 1 2595 0 discriminator 2 - 6047 0030 069B ldr r3, [sp, #24] - 6048 .LVL519: - 6049 0032 E362 str r3, [r4, #44] - 6050 .LVL520: -2596:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** - 6051 .loc 1 2596 0 discriminator 2 - 6052 0034 144B ldr r3, .L416 - 6053 0036 6363 str r3, [r4, #52] -2599:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** { - 6054 .loc 1 2599 0 discriminator 2 - 6055 0038 638D ldrh r3, [r4, #42] - 6056 003a 9BB2 uxth r3, r3 - 6057 003c FF2B cmp r3, #255 - 6058 003e 17D9 bls .L410 -2601:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** xfermode = I2C_RELOAD_MODE; - 6059 .loc 1 2601 0 - 6060 0040 FF23 movs r3, #255 - 6061 0042 2385 strh r3, [r4, #40] - 6062 .LVL521: -2602:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** } - 6063 .loc 1 2602 0 - 6064 0044 8023 movs r3, #128 - 6065 0046 5B04 lsls r3, r3, #17 - 6066 .LVL522: - 6067 .L411: -2612:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** { - 6068 .loc 1 2612 0 - 6069 0048 226B ldr r2, [r4, #48] - 6070 .LVL523: - 6071 004a 112A cmp r2, #17 - 6072 004c 14D0 beq .L415 -2578:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** - 6073 .loc 1 2578 0 - 6074 004e 8020 movs r0, #128 - 6075 0050 8001 lsls r0, r0, #6 - 6076 .L412: - 6077 .LVL524: -2618:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** - 6078 .loc 1 2618 0 - 6079 0052 228D ldrh r2, [r4, #40] - ARM GAS /tmp/ccTaFl06.s page 208 - - - 6080 0054 D2B2 uxtb r2, r2 - 6081 0056 0090 str r0, [sp] - 6082 .LVL525: - 6083 0058 2000 movs r0, r4 - 6084 .LVL526: - 6085 005a FFF7FEFF bl I2C_TransferConfig - 6086 .LVL527: -2621:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** - 6087 .loc 1 2621 0 - 6088 005e 4023 movs r3, #64 - 6089 0060 0022 movs r2, #0 - 6090 0062 E254 strb r2, [r4, r3] -2626:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** - 6091 .loc 1 2626 0 - 6092 0064 0121 movs r1, #1 - 6093 0066 2000 movs r0, r4 - 6094 0068 FFF7FEFF bl I2C_Enable_IRQ - 6095 .LVL528: -2628:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** } - 6096 .loc 1 2628 0 - 6097 006c 0020 movs r0, #0 - 6098 006e 06E0 b .L409 - 6099 .LVL529: - 6100 .L410: -2606:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** xfermode = hi2c->XferOptions; - 6101 .loc 1 2606 0 - 6102 0070 638D ldrh r3, [r4, #42] - 6103 0072 2385 strh r3, [r4, #40] -2607:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** } - 6104 .loc 1 2607 0 - 6105 0074 E36A ldr r3, [r4, #44] - 6106 .LVL530: - 6107 0076 E7E7 b .L411 - 6108 .LVL531: - 6109 .L415: -2614:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** } - 6110 .loc 1 2614 0 - 6111 0078 0020 movs r0, #0 - 6112 007a EAE7 b .L412 - 6113 .LVL532: - 6114 .L413: -2632:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** } - 6115 .loc 1 2632 0 - 6116 007c 0220 movs r0, #2 - 6117 .LVL533: - 6118 .L409: -2634:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** - 6119 .loc 1 2634 0 - 6120 007e 03B0 add sp, sp, #12 - 6121 @ sp needed - 6122 .LVL534: - 6123 0080 30BD pop {r4, r5, pc} - 6124 .LVL535: - 6125 .L414: -2586:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** - 6126 .loc 1 2586 0 - 6127 0082 0220 movs r0, #2 - ARM GAS /tmp/ccTaFl06.s page 209 - - - 6128 0084 FBE7 b .L409 - 6129 .L417: - 6130 0086 C046 .align 2 - 6131 .L416: - 6132 0088 00000000 .word I2C_Master_ISR_IT - 6133 .cfi_endproc - 6134 .LFE60: - 6136 .section .text.HAL_I2C_Master_Sequential_Receive_IT,"ax",%progbits - 6137 .align 1 - 6138 .global HAL_I2C_Master_Sequential_Receive_IT - 6139 .syntax unified - 6140 .code 16 - 6141 .thumb_func - 6142 .fpu softvfp - 6144 HAL_I2C_Master_Sequential_Receive_IT: - 6145 .LFB61: -2649:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** uint32_t xfermode = 0U; - 6146 .loc 1 2649 0 - 6147 .cfi_startproc - 6148 @ args = 4, pretend = 0, frame = 0 - 6149 @ frame_needed = 0, uses_anonymous_args = 0 - 6150 .LVL536: - 6151 0000 30B5 push {r4, r5, lr} - 6152 .LCFI56: - 6153 .cfi_def_cfa_offset 12 - 6154 .cfi_offset 4, -12 - 6155 .cfi_offset 5, -8 - 6156 .cfi_offset 14, -4 - 6157 0002 83B0 sub sp, sp, #12 - 6158 .LCFI57: - 6159 .cfi_def_cfa_offset 24 - 6160 0004 0400 movs r4, r0 - 6161 .LVL537: -2656:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** { - 6162 .loc 1 2656 0 - 6163 0006 4120 movs r0, #65 - 6164 .LVL538: - 6165 0008 205C ldrb r0, [r4, r0] - 6166 000a 2028 cmp r0, #32 - 6167 000c 36D1 bne .L423 -2659:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** - 6168 .loc 1 2659 0 - 6169 000e 2030 adds r0, r0, #32 - 6170 0010 205C ldrb r0, [r4, r0] - 6171 0012 0128 cmp r0, #1 - 6172 0014 35D0 beq .L424 -2659:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** - 6173 .loc 1 2659 0 is_stmt 0 discriminator 2 - 6174 0016 4020 movs r0, #64 - 6175 0018 0125 movs r5, #1 - 6176 001a 2554 strb r5, [r4, r0] -2661:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** hi2c->Mode = HAL_I2C_MODE_MASTER; - 6177 .loc 1 2661 0 is_stmt 1 discriminator 2 - 6178 001c 0130 adds r0, r0, #1 - 6179 001e 2135 adds r5, r5, #33 - 6180 0020 2554 strb r5, [r4, r0] -2662:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** hi2c->ErrorCode = HAL_I2C_ERROR_NONE; - ARM GAS /tmp/ccTaFl06.s page 210 - - - 6181 .loc 1 2662 0 discriminator 2 - 6182 0022 0130 adds r0, r0, #1 - 6183 0024 123D subs r5, r5, #18 - 6184 0026 2554 strb r5, [r4, r0] -2663:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** - 6185 .loc 1 2663 0 discriminator 2 - 6186 0028 0020 movs r0, #0 - 6187 002a 6064 str r0, [r4, #68] -2666:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** hi2c->XferCount = Size; - 6188 .loc 1 2666 0 discriminator 2 - 6189 002c 6262 str r2, [r4, #36] -2667:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** hi2c->XferOptions = XferOptions; - 6190 .loc 1 2667 0 discriminator 2 - 6191 002e 6385 strh r3, [r4, #42] -2668:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** hi2c->XferISR = I2C_Master_ISR_IT; - 6192 .loc 1 2668 0 discriminator 2 - 6193 0030 069B ldr r3, [sp, #24] - 6194 .LVL539: - 6195 0032 E362 str r3, [r4, #44] - 6196 .LVL540: -2669:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** - 6197 .loc 1 2669 0 discriminator 2 - 6198 0034 144B ldr r3, .L426 - 6199 0036 6363 str r3, [r4, #52] -2672:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** { - 6200 .loc 1 2672 0 discriminator 2 - 6201 0038 638D ldrh r3, [r4, #42] - 6202 003a 9BB2 uxth r3, r3 - 6203 003c FF2B cmp r3, #255 - 6204 003e 17D9 bls .L420 -2674:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** xfermode = I2C_RELOAD_MODE; - 6205 .loc 1 2674 0 - 6206 0040 FF23 movs r3, #255 - 6207 0042 2385 strh r3, [r4, #40] - 6208 .LVL541: -2675:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** } - 6209 .loc 1 2675 0 - 6210 0044 8023 movs r3, #128 - 6211 0046 5B04 lsls r3, r3, #17 - 6212 .LVL542: - 6213 .L421: -2685:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** { - 6214 .loc 1 2685 0 - 6215 0048 226B ldr r2, [r4, #48] - 6216 .LVL543: - 6217 004a 122A cmp r2, #18 - 6218 004c 14D0 beq .L425 -2651:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** - 6219 .loc 1 2651 0 - 6220 004e 9020 movs r0, #144 - 6221 0050 8001 lsls r0, r0, #6 - 6222 .L422: - 6223 .LVL544: -2691:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** - 6224 .loc 1 2691 0 - 6225 0052 228D ldrh r2, [r4, #40] - 6226 0054 D2B2 uxtb r2, r2 - ARM GAS /tmp/ccTaFl06.s page 211 - - - 6227 0056 0090 str r0, [sp] - 6228 .LVL545: - 6229 0058 2000 movs r0, r4 - 6230 .LVL546: - 6231 005a FFF7FEFF bl I2C_TransferConfig - 6232 .LVL547: -2694:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** - 6233 .loc 1 2694 0 - 6234 005e 4023 movs r3, #64 - 6235 0060 0022 movs r2, #0 - 6236 0062 E254 strb r2, [r4, r3] -2699:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** - 6237 .loc 1 2699 0 - 6238 0064 0221 movs r1, #2 - 6239 0066 2000 movs r0, r4 - 6240 0068 FFF7FEFF bl I2C_Enable_IRQ - 6241 .LVL548: -2701:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** } - 6242 .loc 1 2701 0 - 6243 006c 0020 movs r0, #0 - 6244 006e 06E0 b .L419 - 6245 .LVL549: - 6246 .L420: -2679:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** xfermode = hi2c->XferOptions; - 6247 .loc 1 2679 0 - 6248 0070 638D ldrh r3, [r4, #42] - 6249 0072 2385 strh r3, [r4, #40] -2680:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** } - 6250 .loc 1 2680 0 - 6251 0074 E36A ldr r3, [r4, #44] - 6252 .LVL550: - 6253 0076 E7E7 b .L421 - 6254 .LVL551: - 6255 .L425: -2687:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** } - 6256 .loc 1 2687 0 - 6257 0078 0020 movs r0, #0 - 6258 007a EAE7 b .L422 - 6259 .LVL552: - 6260 .L423: -2705:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** } - 6261 .loc 1 2705 0 - 6262 007c 0220 movs r0, #2 - 6263 .LVL553: - 6264 .L419: -2707:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** - 6265 .loc 1 2707 0 - 6266 007e 03B0 add sp, sp, #12 - 6267 @ sp needed - 6268 .LVL554: - 6269 0080 30BD pop {r4, r5, pc} - 6270 .LVL555: - 6271 .L424: -2659:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** - 6272 .loc 1 2659 0 - 6273 0082 0220 movs r0, #2 - 6274 0084 FBE7 b .L419 - ARM GAS /tmp/ccTaFl06.s page 212 - - - 6275 .L427: - 6276 0086 C046 .align 2 - 6277 .L426: - 6278 0088 00000000 .word I2C_Master_ISR_IT - 6279 .cfi_endproc - 6280 .LFE61: - 6282 .section .text.HAL_I2C_Slave_Sequential_Transmit_IT,"ax",%progbits - 6283 .align 1 - 6284 .global HAL_I2C_Slave_Sequential_Transmit_IT - 6285 .syntax unified - 6286 .code 16 - 6287 .thumb_func - 6288 .fpu softvfp - 6290 HAL_I2C_Slave_Sequential_Transmit_IT: - 6291 .LFB62: -2720:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** /* Check the parameters */ - 6292 .loc 1 2720 0 - 6293 .cfi_startproc - 6294 @ args = 0, pretend = 0, frame = 0 - 6295 @ frame_needed = 0, uses_anonymous_args = 0 - 6296 .LVL556: - 6297 0000 F8B5 push {r3, r4, r5, r6, r7, lr} - 6298 .LCFI58: - 6299 .cfi_def_cfa_offset 24 - 6300 .cfi_offset 3, -24 - 6301 .cfi_offset 4, -20 - 6302 .cfi_offset 5, -16 - 6303 .cfi_offset 6, -12 - 6304 .cfi_offset 7, -8 - 6305 .cfi_offset 14, -4 - 6306 0002 0700 movs r7, r0 - 6307 0004 0C00 movs r4, r1 - 6308 0006 1500 movs r5, r2 - 6309 0008 1E00 movs r6, r3 -2724:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** { - 6310 .loc 1 2724 0 - 6311 000a 4123 movs r3, #65 - 6312 .LVL557: - 6313 000c C35C ldrb r3, [r0, r3] - 6314 000e 2822 movs r2, #40 - 6315 .LVL558: - 6316 0010 1340 ands r3, r2 - 6317 0012 282B cmp r3, #40 - 6318 0014 01D0 beq .L436 -2779:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** } - 6319 .loc 1 2779 0 - 6320 0016 0120 movs r0, #1 - 6321 .LVL559: - 6322 .L429: -2781:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** - 6323 .loc 1 2781 0 - 6324 @ sp needed - 6325 .LVL560: - 6326 .LVL561: - 6327 .LVL562: - 6328 0018 F8BD pop {r3, r4, r5, r6, r7, pc} - 6329 .LVL563: - ARM GAS /tmp/ccTaFl06.s page 213 - - - 6330 .L436: -2726:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** { - 6331 .loc 1 2726 0 - 6332 001a 0029 cmp r1, #0 - 6333 001c 39D0 beq .L433 -2726:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** { - 6334 .loc 1 2726 0 is_stmt 0 discriminator 1 - 6335 001e 002D cmp r5, #0 - 6336 0020 01D1 bne .L437 -2728:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** } - 6337 .loc 1 2728 0 is_stmt 1 - 6338 0022 0120 movs r0, #1 - 6339 .LVL564: - 6340 0024 F8E7 b .L429 - 6341 .LVL565: - 6342 .L437: -2732:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** - 6343 .loc 1 2732 0 - 6344 0026 0521 movs r1, #5 - 6345 .LVL566: - 6346 0028 FFF7FEFF bl I2C_Disable_IRQ - 6347 .LVL567: -2735:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** - 6348 .loc 1 2735 0 - 6349 002c 4023 movs r3, #64 - 6350 002e FB5C ldrb r3, [r7, r3] - 6351 0030 012B cmp r3, #1 - 6352 0032 30D0 beq .L435 -2735:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** - 6353 .loc 1 2735 0 is_stmt 0 discriminator 2 - 6354 0034 4023 movs r3, #64 - 6355 0036 0122 movs r2, #1 - 6356 0038 FA54 strb r2, [r7, r3] -2739:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** { - 6357 .loc 1 2739 0 is_stmt 1 discriminator 2 - 6358 003a 0133 adds r3, r3, #1 - 6359 003c FB5C ldrb r3, [r7, r3] - 6360 003e 2A2B cmp r3, #42 - 6361 0040 22D0 beq .L438 - 6362 .L430: -2745:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** hi2c->Mode = HAL_I2C_MODE_SLAVE; - 6363 .loc 1 2745 0 - 6364 0042 4123 movs r3, #65 - 6365 0044 2922 movs r2, #41 - 6366 0046 FA54 strb r2, [r7, r3] -2746:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** hi2c->ErrorCode = HAL_I2C_ERROR_NONE; - 6367 .loc 1 2746 0 - 6368 0048 0133 adds r3, r3, #1 - 6369 004a 093A subs r2, r2, #9 - 6370 004c FA54 strb r2, [r7, r3] -2747:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** - 6371 .loc 1 2747 0 - 6372 004e 0023 movs r3, #0 - 6373 0050 7B64 str r3, [r7, #68] -2750:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** - 6374 .loc 1 2750 0 - 6375 0052 3A68 ldr r2, [r7] - ARM GAS /tmp/ccTaFl06.s page 214 - - - 6376 0054 5368 ldr r3, [r2, #4] - 6377 0056 1149 ldr r1, .L439 - 6378 0058 0B40 ands r3, r1 - 6379 005a 5360 str r3, [r2, #4] -2753:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** hi2c->XferCount = Size; - 6380 .loc 1 2753 0 - 6381 005c 7C62 str r4, [r7, #36] -2754:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** hi2c->XferSize = hi2c->XferCount; - 6382 .loc 1 2754 0 - 6383 005e 7D85 strh r5, [r7, #42] -2755:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** hi2c->XferOptions = XferOptions; - 6384 .loc 1 2755 0 - 6385 0060 7B8D ldrh r3, [r7, #42] - 6386 0062 3B85 strh r3, [r7, #40] -2756:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** hi2c->XferISR = I2C_Slave_ISR_IT; - 6387 .loc 1 2756 0 - 6388 0064 FE62 str r6, [r7, #44] -2757:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** - 6389 .loc 1 2757 0 - 6390 0066 0E4B ldr r3, .L439+4 - 6391 0068 7B63 str r3, [r7, #52] -2759:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** { - 6392 .loc 1 2759 0 - 6393 006a 3B68 ldr r3, [r7] - 6394 006c 9A69 ldr r2, [r3, #24] - 6395 006e D203 lsls r2, r2, #15 - 6396 0070 01D5 bpl .L431 -2763:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** } - 6397 .loc 1 2763 0 - 6398 0072 0822 movs r2, #8 - 6399 0074 DA61 str r2, [r3, #28] - 6400 .L431: -2767:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** - 6401 .loc 1 2767 0 - 6402 0076 4023 movs r3, #64 - 6403 0078 0022 movs r2, #0 - 6404 007a FA54 strb r2, [r7, r3] -2773:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** - 6405 .loc 1 2773 0 - 6406 007c 0521 movs r1, #5 - 6407 007e 3800 movs r0, r7 - 6408 0080 FFF7FEFF bl I2C_Enable_IRQ - 6409 .LVL568: -2775:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** } - 6410 .loc 1 2775 0 - 6411 0084 0020 movs r0, #0 - 6412 0086 C7E7 b .L429 - 6413 .L438: -2742:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** } - 6414 .loc 1 2742 0 - 6415 0088 0221 movs r1, #2 - 6416 008a 3800 movs r0, r7 - 6417 008c FFF7FEFF bl I2C_Disable_IRQ - 6418 .LVL569: - 6419 0090 D7E7 b .L430 - 6420 .LVL570: - 6421 .L433: - ARM GAS /tmp/ccTaFl06.s page 215 - - -2728:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** } - 6422 .loc 1 2728 0 - 6423 0092 0120 movs r0, #1 - 6424 .LVL571: - 6425 0094 C0E7 b .L429 - 6426 .LVL572: - 6427 .L435: -2735:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** - 6428 .loc 1 2735 0 - 6429 0096 0220 movs r0, #2 - 6430 0098 BEE7 b .L429 - 6431 .L440: - 6432 009a C046 .align 2 - 6433 .L439: - 6434 009c FF7FFFFF .word -32769 - 6435 00a0 00000000 .word I2C_Slave_ISR_IT - 6436 .cfi_endproc - 6437 .LFE62: - 6439 .section .text.HAL_I2C_Slave_Sequential_Receive_IT,"ax",%progbits - 6440 .align 1 - 6441 .global HAL_I2C_Slave_Sequential_Receive_IT - 6442 .syntax unified - 6443 .code 16 - 6444 .thumb_func - 6445 .fpu softvfp - 6447 HAL_I2C_Slave_Sequential_Receive_IT: - 6448 .LFB63: -2794:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** /* Check the parameters */ - 6449 .loc 1 2794 0 - 6450 .cfi_startproc - 6451 @ args = 0, pretend = 0, frame = 0 - 6452 @ frame_needed = 0, uses_anonymous_args = 0 - 6453 .LVL573: - 6454 0000 F8B5 push {r3, r4, r5, r6, r7, lr} - 6455 .LCFI59: - 6456 .cfi_def_cfa_offset 24 - 6457 .cfi_offset 3, -24 - 6458 .cfi_offset 4, -20 - 6459 .cfi_offset 5, -16 - 6460 .cfi_offset 6, -12 - 6461 .cfi_offset 7, -8 - 6462 .cfi_offset 14, -4 - 6463 0002 0700 movs r7, r0 - 6464 0004 0C00 movs r4, r1 - 6465 0006 1500 movs r5, r2 - 6466 0008 1E00 movs r6, r3 -2798:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** { - 6467 .loc 1 2798 0 - 6468 000a 4123 movs r3, #65 - 6469 .LVL574: - 6470 000c C35C ldrb r3, [r0, r3] - 6471 000e 2822 movs r2, #40 - 6472 .LVL575: - 6473 0010 1340 ands r3, r2 - 6474 0012 282B cmp r3, #40 - 6475 0014 01D0 beq .L449 -2853:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** } - ARM GAS /tmp/ccTaFl06.s page 216 - - - 6476 .loc 1 2853 0 - 6477 0016 0120 movs r0, #1 - 6478 .LVL576: - 6479 .L442: -2855:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** - 6480 .loc 1 2855 0 - 6481 @ sp needed - 6482 .LVL577: - 6483 .LVL578: - 6484 .LVL579: - 6485 0018 F8BD pop {r3, r4, r5, r6, r7, pc} - 6486 .LVL580: - 6487 .L449: -2800:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** { - 6488 .loc 1 2800 0 - 6489 001a 0029 cmp r1, #0 - 6490 001c 39D0 beq .L446 -2800:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** { - 6491 .loc 1 2800 0 is_stmt 0 discriminator 1 - 6492 001e 002D cmp r5, #0 - 6493 0020 01D1 bne .L450 -2802:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** } - 6494 .loc 1 2802 0 is_stmt 1 - 6495 0022 0120 movs r0, #1 - 6496 .LVL581: - 6497 0024 F8E7 b .L442 - 6498 .LVL582: - 6499 .L450: -2806:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** - 6500 .loc 1 2806 0 - 6501 0026 0621 movs r1, #6 - 6502 .LVL583: - 6503 0028 FFF7FEFF bl I2C_Disable_IRQ - 6504 .LVL584: -2809:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** - 6505 .loc 1 2809 0 - 6506 002c 4023 movs r3, #64 - 6507 002e FB5C ldrb r3, [r7, r3] - 6508 0030 012B cmp r3, #1 - 6509 0032 30D0 beq .L448 -2809:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** - 6510 .loc 1 2809 0 is_stmt 0 discriminator 2 - 6511 0034 4023 movs r3, #64 - 6512 0036 0122 movs r2, #1 - 6513 0038 FA54 strb r2, [r7, r3] -2813:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** { - 6514 .loc 1 2813 0 is_stmt 1 discriminator 2 - 6515 003a 0133 adds r3, r3, #1 - 6516 003c FB5C ldrb r3, [r7, r3] - 6517 003e 292B cmp r3, #41 - 6518 0040 22D0 beq .L451 - 6519 .L443: -2819:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** hi2c->Mode = HAL_I2C_MODE_SLAVE; - 6520 .loc 1 2819 0 - 6521 0042 4123 movs r3, #65 - 6522 0044 2A22 movs r2, #42 - 6523 0046 FA54 strb r2, [r7, r3] - ARM GAS /tmp/ccTaFl06.s page 217 - - -2820:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** hi2c->ErrorCode = HAL_I2C_ERROR_NONE; - 6524 .loc 1 2820 0 - 6525 0048 0133 adds r3, r3, #1 - 6526 004a 0A3A subs r2, r2, #10 - 6527 004c FA54 strb r2, [r7, r3] -2821:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** - 6528 .loc 1 2821 0 - 6529 004e 0023 movs r3, #0 - 6530 0050 7B64 str r3, [r7, #68] -2824:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** - 6531 .loc 1 2824 0 - 6532 0052 3A68 ldr r2, [r7] - 6533 0054 5368 ldr r3, [r2, #4] - 6534 0056 1149 ldr r1, .L452 - 6535 0058 0B40 ands r3, r1 - 6536 005a 5360 str r3, [r2, #4] -2827:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** hi2c->XferCount = Size; - 6537 .loc 1 2827 0 - 6538 005c 7C62 str r4, [r7, #36] -2828:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** hi2c->XferSize = hi2c->XferCount; - 6539 .loc 1 2828 0 - 6540 005e 7D85 strh r5, [r7, #42] -2829:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** hi2c->XferOptions = XferOptions; - 6541 .loc 1 2829 0 - 6542 0060 7B8D ldrh r3, [r7, #42] - 6543 0062 3B85 strh r3, [r7, #40] -2830:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** hi2c->XferISR = I2C_Slave_ISR_IT; - 6544 .loc 1 2830 0 - 6545 0064 FE62 str r6, [r7, #44] -2831:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** - 6546 .loc 1 2831 0 - 6547 0066 0E4B ldr r3, .L452+4 - 6548 0068 7B63 str r3, [r7, #52] -2833:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** { - 6549 .loc 1 2833 0 - 6550 006a 3B68 ldr r3, [r7] - 6551 006c 9A69 ldr r2, [r3, #24] - 6552 006e D203 lsls r2, r2, #15 - 6553 0070 01D4 bmi .L444 -2837:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** } - 6554 .loc 1 2837 0 - 6555 0072 0822 movs r2, #8 - 6556 0074 DA61 str r2, [r3, #28] - 6557 .L444: -2841:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** - 6558 .loc 1 2841 0 - 6559 0076 4023 movs r3, #64 - 6560 0078 0022 movs r2, #0 - 6561 007a FA54 strb r2, [r7, r3] -2847:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** - 6562 .loc 1 2847 0 - 6563 007c 0621 movs r1, #6 - 6564 007e 3800 movs r0, r7 - 6565 0080 FFF7FEFF bl I2C_Enable_IRQ - 6566 .LVL585: -2849:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** } - 6567 .loc 1 2849 0 - ARM GAS /tmp/ccTaFl06.s page 218 - - - 6568 0084 0020 movs r0, #0 - 6569 0086 C7E7 b .L442 - 6570 .L451: -2816:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** } - 6571 .loc 1 2816 0 - 6572 0088 0121 movs r1, #1 - 6573 008a 3800 movs r0, r7 - 6574 008c FFF7FEFF bl I2C_Disable_IRQ - 6575 .LVL586: - 6576 0090 D7E7 b .L443 - 6577 .LVL587: - 6578 .L446: -2802:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** } - 6579 .loc 1 2802 0 - 6580 0092 0120 movs r0, #1 - 6581 .LVL588: - 6582 0094 C0E7 b .L442 - 6583 .LVL589: - 6584 .L448: -2809:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** - 6585 .loc 1 2809 0 - 6586 0096 0220 movs r0, #2 - 6587 0098 BEE7 b .L442 - 6588 .L453: - 6589 009a C046 .align 2 - 6590 .L452: - 6591 009c FF7FFFFF .word -32769 - 6592 00a0 00000000 .word I2C_Slave_ISR_IT - 6593 .cfi_endproc - 6594 .LFE63: - 6596 .section .text.HAL_I2C_EnableListen_IT,"ax",%progbits - 6597 .align 1 - 6598 .global HAL_I2C_EnableListen_IT - 6599 .syntax unified - 6600 .code 16 - 6601 .thumb_func - 6602 .fpu softvfp - 6604 HAL_I2C_EnableListen_IT: - 6605 .LFB64: -2864:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** if (hi2c->State == HAL_I2C_STATE_READY) - 6606 .loc 1 2864 0 - 6607 .cfi_startproc - 6608 @ args = 0, pretend = 0, frame = 0 - 6609 @ frame_needed = 0, uses_anonymous_args = 0 - 6610 .LVL590: - 6611 0000 10B5 push {r4, lr} - 6612 .LCFI60: - 6613 .cfi_def_cfa_offset 8 - 6614 .cfi_offset 4, -8 - 6615 .cfi_offset 14, -4 -2865:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** { - 6616 .loc 1 2865 0 - 6617 0002 4123 movs r3, #65 - 6618 0004 C35C ldrb r3, [r0, r3] - 6619 0006 202B cmp r3, #32 - 6620 0008 01D0 beq .L457 -2877:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** } - ARM GAS /tmp/ccTaFl06.s page 219 - - - 6621 .loc 1 2877 0 - 6622 000a 0220 movs r0, #2 - 6623 .LVL591: - 6624 .L455: -2879:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** - 6625 .loc 1 2879 0 - 6626 @ sp needed - 6627 000c 10BD pop {r4, pc} - 6628 .LVL592: - 6629 .L457: -2867:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** hi2c->XferISR = I2C_Slave_ISR_IT; - 6630 .loc 1 2867 0 - 6631 000e 2133 adds r3, r3, #33 - 6632 0010 2822 movs r2, #40 - 6633 0012 C254 strb r2, [r0, r3] -2868:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** - 6634 .loc 1 2868 0 - 6635 0014 034B ldr r3, .L458 - 6636 0016 4363 str r3, [r0, #52] -2871:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** - 6637 .loc 1 2871 0 - 6638 0018 0421 movs r1, #4 - 6639 001a FFF7FEFF bl I2C_Enable_IRQ - 6640 .LVL593: -2873:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** } - 6641 .loc 1 2873 0 - 6642 001e 0020 movs r0, #0 - 6643 0020 F4E7 b .L455 - 6644 .L459: - 6645 0022 C046 .align 2 - 6646 .L458: - 6647 0024 00000000 .word I2C_Slave_ISR_IT - 6648 .cfi_endproc - 6649 .LFE64: - 6651 .section .text.HAL_I2C_DisableListen_IT,"ax",%progbits - 6652 .align 1 - 6653 .global HAL_I2C_DisableListen_IT - 6654 .syntax unified - 6655 .code 16 - 6656 .thumb_func - 6657 .fpu softvfp - 6659 HAL_I2C_DisableListen_IT: - 6660 .LFB65: -2888:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** /* Declaration of tmp to prevent undefined behavior of volatile usage */ - 6661 .loc 1 2888 0 - 6662 .cfi_startproc - 6663 @ args = 0, pretend = 0, frame = 0 - 6664 @ frame_needed = 0, uses_anonymous_args = 0 - 6665 .LVL594: - 6666 0000 70B5 push {r4, r5, r6, lr} - 6667 .LCFI61: - 6668 .cfi_def_cfa_offset 16 - 6669 .cfi_offset 4, -16 - 6670 .cfi_offset 5, -12 - 6671 .cfi_offset 6, -8 - 6672 .cfi_offset 14, -4 -2893:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** { - ARM GAS /tmp/ccTaFl06.s page 220 - - - 6673 .loc 1 2893 0 - 6674 0002 4123 movs r3, #65 - 6675 0004 C35C ldrb r3, [r0, r3] - 6676 0006 282B cmp r3, #40 - 6677 0008 01D0 beq .L463 -2908:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** } - 6678 .loc 1 2908 0 - 6679 000a 0220 movs r0, #2 - 6680 .LVL595: - 6681 .L461: -2910:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** - 6682 .loc 1 2910 0 - 6683 @ sp needed - 6684 000c 70BD pop {r4, r5, r6, pc} - 6685 .LVL596: - 6686 .L463: -2895:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** hi2c->PreviousState = tmp | (uint32_t)(hi2c->Mode); - 6687 .loc 1 2895 0 - 6688 000e 4124 movs r4, #65 - 6689 0010 025D ldrb r2, [r0, r4] - 6690 .LVL597: -2896:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** hi2c->State = HAL_I2C_STATE_READY; - 6691 .loc 1 2896 0 - 6692 0012 4221 movs r1, #66 - 6693 0014 435C ldrb r3, [r0, r1] - 6694 0016 0325 movs r5, #3 - 6695 0018 2A40 ands r2, r5 - 6696 .LVL598: - 6697 001a 1343 orrs r3, r2 - 6698 001c 0363 str r3, [r0, #48] -2897:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** hi2c->Mode = HAL_I2C_MODE_NONE; - 6699 .loc 1 2897 0 - 6700 001e 2023 movs r3, #32 - 6701 0020 0355 strb r3, [r0, r4] -2898:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** hi2c->XferISR = NULL; - 6702 .loc 1 2898 0 - 6703 0022 0023 movs r3, #0 - 6704 0024 4354 strb r3, [r0, r1] -2899:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** - 6705 .loc 1 2899 0 - 6706 0026 4363 str r3, [r0, #52] -2902:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** - 6707 .loc 1 2902 0 - 6708 0028 3E39 subs r1, r1, #62 - 6709 002a FFF7FEFF bl I2C_Disable_IRQ - 6710 .LVL599: -2904:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** } - 6711 .loc 1 2904 0 - 6712 002e 0020 movs r0, #0 - 6713 0030 ECE7 b .L461 - 6714 .cfi_endproc - 6715 .LFE65: - 6717 .section .text.HAL_I2C_Master_Abort_IT,"ax",%progbits - 6718 .align 1 - 6719 .global HAL_I2C_Master_Abort_IT - 6720 .syntax unified - 6721 .code 16 - ARM GAS /tmp/ccTaFl06.s page 221 - - - 6722 .thumb_func - 6723 .fpu softvfp - 6725 HAL_I2C_Master_Abort_IT: - 6726 .LFB66: -2921:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** if (hi2c->Mode == HAL_I2C_MODE_MASTER) - 6727 .loc 1 2921 0 - 6728 .cfi_startproc - 6729 @ args = 0, pretend = 0, frame = 0 - 6730 @ frame_needed = 0, uses_anonymous_args = 0 - 6731 .LVL600: - 6732 0000 70B5 push {r4, r5, r6, lr} - 6733 .LCFI62: - 6734 .cfi_def_cfa_offset 16 - 6735 .cfi_offset 4, -16 - 6736 .cfi_offset 5, -12 - 6737 .cfi_offset 6, -8 - 6738 .cfi_offset 14, -4 - 6739 0002 82B0 sub sp, sp, #8 - 6740 .LCFI63: - 6741 .cfi_def_cfa_offset 24 - 6742 0004 0400 movs r4, r0 - 6743 0006 0D00 movs r5, r1 -2922:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** { - 6744 .loc 1 2922 0 - 6745 0008 4223 movs r3, #66 - 6746 000a C35C ldrb r3, [r0, r3] - 6747 000c 102B cmp r3, #16 - 6748 000e 02D0 beq .L468 -2952:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** } - 6749 .loc 1 2952 0 - 6750 0010 0120 movs r0, #1 - 6751 .LVL601: - 6752 .L465: -2954:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** - 6753 .loc 1 2954 0 - 6754 0012 02B0 add sp, sp, #8 - 6755 @ sp needed - 6756 .LVL602: - 6757 0014 70BD pop {r4, r5, r6, pc} - 6758 .LVL603: - 6759 .L468: -2925:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** - 6760 .loc 1 2925 0 - 6761 0016 3033 adds r3, r3, #48 - 6762 0018 C35C ldrb r3, [r0, r3] - 6763 001a 012B cmp r3, #1 - 6764 001c 1ED0 beq .L467 -2925:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** - 6765 .loc 1 2925 0 is_stmt 0 discriminator 2 - 6766 001e 4026 movs r6, #64 - 6767 0020 0123 movs r3, #1 - 6768 0022 8355 strb r3, [r0, r6] -2928:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** I2C_Disable_IRQ(hi2c, I2C_XFER_TX_IT); - 6769 .loc 1 2928 0 is_stmt 1 discriminator 2 - 6770 0024 0221 movs r1, #2 - 6771 .LVL604: - 6772 0026 FFF7FEFF bl I2C_Disable_IRQ - ARM GAS /tmp/ccTaFl06.s page 222 - - - 6773 .LVL605: -2929:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** - 6774 .loc 1 2929 0 discriminator 2 - 6775 002a 0121 movs r1, #1 - 6776 002c 2000 movs r0, r4 - 6777 002e FFF7FEFF bl I2C_Disable_IRQ - 6778 .LVL606: -2932:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** - 6779 .loc 1 2932 0 discriminator 2 - 6780 0032 4123 movs r3, #65 - 6781 0034 6022 movs r2, #96 - 6782 0036 E254 strb r2, [r4, r3] -2936:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** - 6783 .loc 1 2936 0 discriminator 2 - 6784 0038 3F33 adds r3, r3, #63 - 6785 003a 8022 movs r2, #128 - 6786 003c D201 lsls r2, r2, #7 - 6787 003e 0092 str r2, [sp] - 6788 0040 9B04 lsls r3, r3, #18 - 6789 0042 0122 movs r2, #1 - 6790 0044 2900 movs r1, r5 - 6791 0046 2000 movs r0, r4 - 6792 0048 FFF7FEFF bl I2C_TransferConfig - 6793 .LVL607: -2939:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** - 6794 .loc 1 2939 0 discriminator 2 - 6795 004c 0023 movs r3, #0 - 6796 004e A355 strb r3, [r4, r6] -2944:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** - 6797 .loc 1 2944 0 discriminator 2 - 6798 0050 1221 movs r1, #18 - 6799 0052 2000 movs r0, r4 - 6800 0054 FFF7FEFF bl I2C_Enable_IRQ - 6801 .LVL608: -2946:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** } - 6802 .loc 1 2946 0 discriminator 2 - 6803 0058 0020 movs r0, #0 - 6804 005a DAE7 b .L465 - 6805 .LVL609: - 6806 .L467: -2925:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** - 6807 .loc 1 2925 0 - 6808 005c 0220 movs r0, #2 - 6809 .LVL610: - 6810 005e D8E7 b .L465 - 6811 .cfi_endproc - 6812 .LFE66: - 6814 .section .text.HAL_I2C_EV_IRQHandler,"ax",%progbits - 6815 .align 1 - 6816 .global HAL_I2C_EV_IRQHandler - 6817 .syntax unified - 6818 .code 16 - 6819 .thumb_func - 6820 .fpu softvfp - 6822 HAL_I2C_EV_IRQHandler: - 6823 .LFB67: -2971:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** /* Get current IT Flags and IT sources value */ - ARM GAS /tmp/ccTaFl06.s page 223 - - - 6824 .loc 1 2971 0 - 6825 .cfi_startproc - 6826 @ args = 0, pretend = 0, frame = 0 - 6827 @ frame_needed = 0, uses_anonymous_args = 0 - 6828 .LVL611: - 6829 0000 10B5 push {r4, lr} - 6830 .LCFI64: - 6831 .cfi_def_cfa_offset 8 - 6832 .cfi_offset 4, -8 - 6833 .cfi_offset 14, -4 -2973:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** uint32_t itsources = READ_REG(hi2c->Instance->CR1); - 6834 .loc 1 2973 0 - 6835 0002 0368 ldr r3, [r0] - 6836 0004 9969 ldr r1, [r3, #24] - 6837 .LVL612: -2974:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** - 6838 .loc 1 2974 0 - 6839 0006 1A68 ldr r2, [r3] - 6840 .LVL613: -2977:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** { - 6841 .loc 1 2977 0 - 6842 0008 436B ldr r3, [r0, #52] - 6843 000a 002B cmp r3, #0 - 6844 000c 00D0 beq .L469 -2979:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** } - 6845 .loc 1 2979 0 - 6846 000e 9847 blx r3 - 6847 .LVL614: - 6848 .L469: -2981:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** - 6849 .loc 1 2981 0 - 6850 @ sp needed - 6851 0010 10BD pop {r4, pc} - 6852 .cfi_endproc - 6853 .LFE67: - 6855 .section .text.HAL_I2C_MasterTxCpltCallback,"ax",%progbits - 6856 .align 1 - 6857 .weak HAL_I2C_MasterTxCpltCallback - 6858 .syntax unified - 6859 .code 16 - 6860 .thumb_func - 6861 .fpu softvfp - 6863 HAL_I2C_MasterTxCpltCallback: - 6864 .LFB69: -3035:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** /* Prevent unused argument(s) compilation warning */ - 6865 .loc 1 3035 0 - 6866 .cfi_startproc - 6867 @ args = 0, pretend = 0, frame = 0 - 6868 @ frame_needed = 0, uses_anonymous_args = 0 - 6869 @ link register save eliminated. - 6870 .LVL615: -3042:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** - 6871 .loc 1 3042 0 - 6872 @ sp needed - 6873 0000 7047 bx lr - 6874 .cfi_endproc - 6875 .LFE69: - ARM GAS /tmp/ccTaFl06.s page 224 - - - 6877 .section .text.HAL_I2C_MasterRxCpltCallback,"ax",%progbits - 6878 .align 1 - 6879 .weak HAL_I2C_MasterRxCpltCallback - 6880 .syntax unified - 6881 .code 16 - 6882 .thumb_func - 6883 .fpu softvfp - 6885 HAL_I2C_MasterRxCpltCallback: - 6886 .LFB70: -3051:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** /* Prevent unused argument(s) compilation warning */ - 6887 .loc 1 3051 0 - 6888 .cfi_startproc - 6889 @ args = 0, pretend = 0, frame = 0 - 6890 @ frame_needed = 0, uses_anonymous_args = 0 - 6891 @ link register save eliminated. - 6892 .LVL616: -3058:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** - 6893 .loc 1 3058 0 - 6894 @ sp needed - 6895 0000 7047 bx lr - 6896 .cfi_endproc - 6897 .LFE70: - 6899 .section .text.I2C_ITMasterSequentialCplt,"ax",%progbits - 6900 .align 1 - 6901 .syntax unified - 6902 .code 16 - 6903 .thumb_func - 6904 .fpu softvfp - 6906 I2C_ITMasterSequentialCplt: - 6907 .LFB89: -3854:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** /* Reset I2C handle mode */ - 6908 .loc 1 3854 0 - 6909 .cfi_startproc - 6910 @ args = 0, pretend = 0, frame = 0 - 6911 @ frame_needed = 0, uses_anonymous_args = 0 - 6912 .LVL617: - 6913 0000 70B5 push {r4, r5, r6, lr} - 6914 .LCFI65: - 6915 .cfi_def_cfa_offset 16 - 6916 .cfi_offset 4, -16 - 6917 .cfi_offset 5, -12 - 6918 .cfi_offset 6, -8 - 6919 .cfi_offset 14, -4 - 6920 0002 0400 movs r4, r0 -3856:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** - 6921 .loc 1 3856 0 - 6922 0004 4223 movs r3, #66 - 6923 0006 0022 movs r2, #0 - 6924 0008 C254 strb r2, [r0, r3] -3860:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** { - 6925 .loc 1 3860 0 - 6926 000a 013B subs r3, r3, #1 - 6927 000c C35C ldrb r3, [r0, r3] - 6928 000e 212B cmp r3, #33 - 6929 0010 0FD0 beq .L476 -3878:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** hi2c->PreviousState = I2C_STATE_MASTER_BUSY_RX; - 6930 .loc 1 3878 0 - ARM GAS /tmp/ccTaFl06.s page 225 - - - 6931 0012 4123 movs r3, #65 - 6932 0014 2022 movs r2, #32 - 6933 0016 C254 strb r2, [r0, r3] -3879:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** hi2c->XferISR = NULL; - 6934 .loc 1 3879 0 - 6935 0018 2F3B subs r3, r3, #47 - 6936 001a 0363 str r3, [r0, #48] -3880:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** - 6937 .loc 1 3880 0 - 6938 001c 0025 movs r5, #0 - 6939 001e 4563 str r5, [r0, #52] -3883:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** - 6940 .loc 1 3883 0 - 6941 0020 0221 movs r1, #2 - 6942 0022 FFF7FEFF bl I2C_Disable_IRQ - 6943 .LVL618: -3886:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** - 6944 .loc 1 3886 0 - 6945 0026 4023 movs r3, #64 - 6946 0028 E554 strb r5, [r4, r3] -3889:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** } - 6947 .loc 1 3889 0 - 6948 002a 2000 movs r0, r4 - 6949 002c FFF7FEFF bl HAL_I2C_MasterRxCpltCallback - 6950 .LVL619: - 6951 .L473: -3891:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** - 6952 .loc 1 3891 0 - 6953 @ sp needed - 6954 .LVL620: - 6955 0030 70BD pop {r4, r5, r6, pc} - 6956 .LVL621: - 6957 .L476: -3862:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** hi2c->PreviousState = I2C_STATE_MASTER_BUSY_TX; - 6958 .loc 1 3862 0 - 6959 0032 2033 adds r3, r3, #32 - 6960 0034 2032 adds r2, r2, #32 - 6961 0036 C254 strb r2, [r0, r3] -3863:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** hi2c->XferISR = NULL; - 6962 .loc 1 3863 0 - 6963 0038 303B subs r3, r3, #48 - 6964 003a 0363 str r3, [r0, #48] -3864:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** - 6965 .loc 1 3864 0 - 6966 003c 0025 movs r5, #0 - 6967 003e 4563 str r5, [r0, #52] -3867:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** - 6968 .loc 1 3867 0 - 6969 0040 0121 movs r1, #1 - 6970 0042 FFF7FEFF bl I2C_Disable_IRQ - 6971 .LVL622: -3870:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** - 6972 .loc 1 3870 0 - 6973 0046 4023 movs r3, #64 - 6974 0048 E554 strb r5, [r4, r3] -3873:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** } - 6975 .loc 1 3873 0 - ARM GAS /tmp/ccTaFl06.s page 226 - - - 6976 004a 2000 movs r0, r4 - 6977 004c FFF7FEFF bl HAL_I2C_MasterTxCpltCallback - 6978 .LVL623: - 6979 0050 EEE7 b .L473 - 6980 .cfi_endproc - 6981 .LFE89: - 6983 .section .text.HAL_I2C_SlaveTxCpltCallback,"ax",%progbits - 6984 .align 1 - 6985 .weak HAL_I2C_SlaveTxCpltCallback - 6986 .syntax unified - 6987 .code 16 - 6988 .thumb_func - 6989 .fpu softvfp - 6991 HAL_I2C_SlaveTxCpltCallback: - 6992 .LFB71: -3066:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** /* Prevent unused argument(s) compilation warning */ - 6993 .loc 1 3066 0 - 6994 .cfi_startproc - 6995 @ args = 0, pretend = 0, frame = 0 - 6996 @ frame_needed = 0, uses_anonymous_args = 0 - 6997 @ link register save eliminated. - 6998 .LVL624: -3073:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** - 6999 .loc 1 3073 0 - 7000 @ sp needed - 7001 0000 7047 bx lr - 7002 .cfi_endproc - 7003 .LFE71: - 7005 .section .text.HAL_I2C_SlaveRxCpltCallback,"ax",%progbits - 7006 .align 1 - 7007 .weak HAL_I2C_SlaveRxCpltCallback - 7008 .syntax unified - 7009 .code 16 - 7010 .thumb_func - 7011 .fpu softvfp - 7013 HAL_I2C_SlaveRxCpltCallback: - 7014 .LFB72: -3082:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** /* Prevent unused argument(s) compilation warning */ - 7015 .loc 1 3082 0 - 7016 .cfi_startproc - 7017 @ args = 0, pretend = 0, frame = 0 - 7018 @ frame_needed = 0, uses_anonymous_args = 0 - 7019 @ link register save eliminated. - 7020 .LVL625: -3089:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** - 7021 .loc 1 3089 0 - 7022 @ sp needed - 7023 0000 7047 bx lr - 7024 .cfi_endproc - 7025 .LFE72: - 7027 .section .text.I2C_ITSlaveSequentialCplt,"ax",%progbits - 7028 .align 1 - 7029 .syntax unified - 7030 .code 16 - 7031 .thumb_func - 7032 .fpu softvfp - 7034 I2C_ITSlaveSequentialCplt: - ARM GAS /tmp/ccTaFl06.s page 227 - - - 7035 .LFB90: -3899:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** /* Reset I2C handle mode */ - 7036 .loc 1 3899 0 - 7037 .cfi_startproc - 7038 @ args = 0, pretend = 0, frame = 0 - 7039 @ frame_needed = 0, uses_anonymous_args = 0 - 7040 .LVL626: - 7041 0000 10B5 push {r4, lr} - 7042 .LCFI66: - 7043 .cfi_def_cfa_offset 8 - 7044 .cfi_offset 4, -8 - 7045 .cfi_offset 14, -4 - 7046 0002 0400 movs r4, r0 -3901:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** - 7047 .loc 1 3901 0 - 7048 0004 4223 movs r3, #66 - 7049 0006 0022 movs r2, #0 - 7050 0008 C254 strb r2, [r0, r3] -3903:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** { - 7051 .loc 1 3903 0 - 7052 000a 013B subs r3, r3, #1 - 7053 000c C35C ldrb r3, [r0, r3] - 7054 000e 292B cmp r3, #41 - 7055 0010 04D0 beq .L482 -3919:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** { - 7056 .loc 1 3919 0 - 7057 0012 4123 movs r3, #65 - 7058 0014 C35C ldrb r3, [r0, r3] - 7059 0016 2A2B cmp r3, #42 - 7060 0018 0FD0 beq .L483 - 7061 .LVL627: - 7062 .L479: -3934:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** - 7063 .loc 1 3934 0 - 7064 @ sp needed - 7065 .LVL628: - 7066 001a 10BD pop {r4, pc} - 7067 .LVL629: - 7068 .L482: -3906:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** hi2c->PreviousState = I2C_STATE_SLAVE_BUSY_TX; - 7069 .loc 1 3906 0 - 7070 001c 1833 adds r3, r3, #24 - 7071 001e 2832 adds r2, r2, #40 - 7072 0020 C254 strb r2, [r0, r3] -3907:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** - 7073 .loc 1 3907 0 - 7074 0022 203B subs r3, r3, #32 - 7075 0024 0363 str r3, [r0, #48] -3910:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** - 7076 .loc 1 3910 0 - 7077 0026 0121 movs r1, #1 - 7078 0028 FFF7FEFF bl I2C_Disable_IRQ - 7079 .LVL630: -3913:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** - 7080 .loc 1 3913 0 - 7081 002c 4023 movs r3, #64 - 7082 002e 0022 movs r2, #0 - ARM GAS /tmp/ccTaFl06.s page 228 - - - 7083 0030 E254 strb r2, [r4, r3] -3916:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** } - 7084 .loc 1 3916 0 - 7085 0032 2000 movs r0, r4 - 7086 0034 FFF7FEFF bl HAL_I2C_SlaveTxCpltCallback - 7087 .LVL631: - 7088 0038 EFE7 b .L479 - 7089 .LVL632: - 7090 .L483: -3922:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** hi2c->PreviousState = I2C_STATE_SLAVE_BUSY_RX; - 7091 .loc 1 3922 0 - 7092 003a 1733 adds r3, r3, #23 - 7093 003c 2822 movs r2, #40 - 7094 003e C254 strb r2, [r0, r3] -3923:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** - 7095 .loc 1 3923 0 - 7096 0040 1F3B subs r3, r3, #31 - 7097 0042 0363 str r3, [r0, #48] -3926:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** - 7098 .loc 1 3926 0 - 7099 0044 0221 movs r1, #2 - 7100 0046 FFF7FEFF bl I2C_Disable_IRQ - 7101 .LVL633: -3929:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** - 7102 .loc 1 3929 0 - 7103 004a 4023 movs r3, #64 - 7104 004c 0022 movs r2, #0 - 7105 004e E254 strb r2, [r4, r3] -3932:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** } - 7106 .loc 1 3932 0 - 7107 0050 2000 movs r0, r4 - 7108 0052 FFF7FEFF bl HAL_I2C_SlaveRxCpltCallback - 7109 .LVL634: -3934:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** - 7110 .loc 1 3934 0 - 7111 0056 E0E7 b .L479 - 7112 .cfi_endproc - 7113 .LFE90: - 7115 .section .text.HAL_I2C_AddrCallback,"ax",%progbits - 7116 .align 1 - 7117 .weak HAL_I2C_AddrCallback - 7118 .syntax unified - 7119 .code 16 - 7120 .thumb_func - 7121 .fpu softvfp - 7123 HAL_I2C_AddrCallback: - 7124 .LFB73: -3100:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** /* Prevent unused argument(s) compilation warning */ - 7125 .loc 1 3100 0 - 7126 .cfi_startproc - 7127 @ args = 0, pretend = 0, frame = 0 - 7128 @ frame_needed = 0, uses_anonymous_args = 0 - 7129 @ link register save eliminated. - 7130 .LVL635: -3109:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** - 7131 .loc 1 3109 0 - 7132 @ sp needed - ARM GAS /tmp/ccTaFl06.s page 229 - - - 7133 0000 7047 bx lr - 7134 .cfi_endproc - 7135 .LFE73: - 7137 .section .text.I2C_ITAddrCplt,"ax",%progbits - 7138 .align 1 - 7139 .syntax unified - 7140 .code 16 - 7141 .thumb_func - 7142 .fpu softvfp - 7144 I2C_ITAddrCplt: - 7145 .LFB88: -3771:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** uint8_t transferdirection = 0U; - 7146 .loc 1 3771 0 - 7147 .cfi_startproc - 7148 @ args = 0, pretend = 0, frame = 0 - 7149 @ frame_needed = 0, uses_anonymous_args = 0 - 7150 .LVL636: - 7151 0000 F8B5 push {r3, r4, r5, r6, r7, lr} - 7152 .LCFI67: - 7153 .cfi_def_cfa_offset 24 - 7154 .cfi_offset 3, -24 - 7155 .cfi_offset 4, -20 - 7156 .cfi_offset 5, -16 - 7157 .cfi_offset 6, -12 - 7158 .cfi_offset 7, -8 - 7159 .cfi_offset 14, -4 - 7160 0002 0400 movs r4, r0 - 7161 .LVL637: -3781:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** { - 7162 .loc 1 3781 0 - 7163 0004 4123 movs r3, #65 - 7164 0006 C35C ldrb r3, [r0, r3] - 7165 0008 2822 movs r2, #40 - 7166 000a 1340 ands r3, r2 - 7167 000c 282B cmp r3, #40 - 7168 000e 06D0 beq .L490 -3841:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** - 7169 .loc 1 3841 0 - 7170 0010 0368 ldr r3, [r0] - 7171 0012 0822 movs r2, #8 - 7172 0014 DA61 str r2, [r3, #28] -3844:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** } - 7173 .loc 1 3844 0 - 7174 0016 4023 movs r3, #64 - 7175 0018 0022 movs r2, #0 - 7176 001a C254 strb r2, [r0, r3] - 7177 .LVL638: - 7178 .L485: -3846:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** - 7179 .loc 1 3846 0 - 7180 @ sp needed - 7181 .LVL639: - 7182 001c F8BD pop {r3, r4, r5, r6, r7, pc} - 7183 .LVL640: - 7184 .L490: -3783:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** slaveaddrcode = I2C_GET_ADDR_MATCH(hi2c); - 7185 .loc 1 3783 0 - ARM GAS /tmp/ccTaFl06.s page 230 - - - 7186 001e 0368 ldr r3, [r0] - 7187 0020 9E69 ldr r6, [r3, #24] - 7188 0022 360C lsrs r6, r6, #16 - 7189 0024 273A subs r2, r2, #39 - 7190 0026 1640 ands r6, r2 - 7191 .LVL641: -3784:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** ownadd1code = I2C_GET_OWN_ADDRESS1(hi2c); - 7192 .loc 1 3784 0 - 7193 0028 9A69 ldr r2, [r3, #24] - 7194 002a 120C lsrs r2, r2, #16 - 7195 002c FE27 movs r7, #254 - 7196 002e 3A40 ands r2, r7 - 7197 0030 1500 movs r5, r2 - 7198 .LVL642: -3785:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** ownadd2code = I2C_GET_OWN_ADDRESS2(hi2c); - 7199 .loc 1 3785 0 - 7200 0032 9A68 ldr r2, [r3, #8] - 7201 0034 9205 lsls r2, r2, #22 - 7202 0036 920D lsrs r2, r2, #22 - 7203 .LVL643: -3786:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** - 7204 .loc 1 3786 0 - 7205 0038 D868 ldr r0, [r3, #12] - 7206 .LVL644: - 7207 003a 0740 ands r7, r0 - 7208 .LVL645: -3789:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** { - 7209 .loc 1 3789 0 - 7210 003c E168 ldr r1, [r4, #12] - 7211 .LVL646: - 7212 003e 0229 cmp r1, #2 - 7213 0040 22D1 bne .L487 -3791:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** { - 7214 .loc 1 3791 0 - 7215 0042 D009 lsrs r0, r2, #7 - 7216 0044 4540 eors r5, r0 - 7217 .LVL647: - 7218 0046 0431 adds r1, r1, #4 - 7219 0048 2942 tst r1, r5 - 7220 004a 10D1 bne .L488 - 7221 .LVL648: -3794:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** if (hi2c->AddrEventCount == 2U) - 7222 .loc 1 3794 0 - 7223 004c A16C ldr r1, [r4, #72] - 7224 004e 0131 adds r1, r1, #1 - 7225 0050 A164 str r1, [r4, #72] -3795:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** { - 7226 .loc 1 3795 0 - 7227 0052 A16C ldr r1, [r4, #72] - 7228 0054 0229 cmp r1, #2 - 7229 0056 E1D1 bne .L485 -3798:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** - 7230 .loc 1 3798 0 - 7231 0058 0021 movs r1, #0 - 7232 005a A164 str r1, [r4, #72] -3801:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** - 7233 .loc 1 3801 0 - ARM GAS /tmp/ccTaFl06.s page 231 - - - 7234 005c 0820 movs r0, #8 - 7235 005e D861 str r0, [r3, #28] -3804:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** - 7236 .loc 1 3804 0 - 7237 0060 4023 movs r3, #64 - 7238 0062 E154 strb r1, [r4, r3] -3807:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** } - 7239 .loc 1 3807 0 - 7240 0064 3100 movs r1, r6 - 7241 0066 2000 movs r0, r4 - 7242 0068 FFF7FEFF bl HAL_I2C_AddrCallback - 7243 .LVL649: - 7244 006c D6E7 b .L485 - 7245 .LVL650: - 7246 .L488: -3815:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** - 7247 .loc 1 3815 0 - 7248 006e 0421 movs r1, #4 - 7249 0070 2000 movs r0, r4 - 7250 0072 FFF7FEFF bl I2C_Disable_IRQ - 7251 .LVL651: -3818:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** - 7252 .loc 1 3818 0 - 7253 0076 4023 movs r3, #64 - 7254 0078 0022 movs r2, #0 - 7255 007a E254 strb r2, [r4, r3] -3821:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** } - 7256 .loc 1 3821 0 - 7257 007c 3A00 movs r2, r7 - 7258 007e 3100 movs r1, r6 - 7259 0080 2000 movs r0, r4 - 7260 0082 FFF7FEFF bl HAL_I2C_AddrCallback - 7261 .LVL652: - 7262 0086 C9E7 b .L485 - 7263 .LVL653: - 7264 .L487: -3828:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** - 7265 .loc 1 3828 0 - 7266 0088 0421 movs r1, #4 - 7267 008a 2000 movs r0, r4 - 7268 008c FFF7FEFF bl I2C_Disable_IRQ - 7269 .LVL654: -3831:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** - 7270 .loc 1 3831 0 - 7271 0090 4023 movs r3, #64 - 7272 0092 0022 movs r2, #0 - 7273 0094 E254 strb r2, [r4, r3] -3834:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** } - 7274 .loc 1 3834 0 - 7275 0096 2A00 movs r2, r5 - 7276 0098 3100 movs r1, r6 - 7277 009a 2000 movs r0, r4 - 7278 009c FFF7FEFF bl HAL_I2C_AddrCallback - 7279 .LVL655: - 7280 00a0 BCE7 b .L485 - 7281 .cfi_endproc - 7282 .LFE88: - ARM GAS /tmp/ccTaFl06.s page 232 - - - 7284 .section .text.HAL_I2C_ListenCpltCallback,"ax",%progbits - 7285 .align 1 - 7286 .weak HAL_I2C_ListenCpltCallback - 7287 .syntax unified - 7288 .code 16 - 7289 .thumb_func - 7290 .fpu softvfp - 7292 HAL_I2C_ListenCpltCallback: - 7293 .LFB74: -3118:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** /* Prevent unused argument(s) compilation warning */ - 7294 .loc 1 3118 0 - 7295 .cfi_startproc - 7296 @ args = 0, pretend = 0, frame = 0 - 7297 @ frame_needed = 0, uses_anonymous_args = 0 - 7298 @ link register save eliminated. - 7299 .LVL656: -3125:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** - 7300 .loc 1 3125 0 - 7301 @ sp needed - 7302 0000 7047 bx lr - 7303 .cfi_endproc - 7304 .LFE74: - 7306 .section .text.I2C_ITListenCplt,"ax",%progbits - 7307 .align 1 - 7308 .syntax unified - 7309 .code 16 - 7310 .thumb_func - 7311 .fpu softvfp - 7313 I2C_ITListenCplt: - 7314 .LFB93: -4141:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** /* Reset handle parameters */ - 7315 .loc 1 4141 0 - 7316 .cfi_startproc - 7317 @ args = 0, pretend = 0, frame = 0 - 7318 @ frame_needed = 0, uses_anonymous_args = 0 - 7319 .LVL657: - 7320 0000 10B5 push {r4, lr} - 7321 .LCFI68: - 7322 .cfi_def_cfa_offset 8 - 7323 .cfi_offset 4, -8 - 7324 .cfi_offset 14, -4 - 7325 0002 0400 movs r4, r0 -4143:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** hi2c->PreviousState = I2C_STATE_NONE; - 7326 .loc 1 4143 0 - 7327 0004 164B ldr r3, .L494 - 7328 0006 C362 str r3, [r0, #44] -4144:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** hi2c->State = HAL_I2C_STATE_READY; - 7329 .loc 1 4144 0 - 7330 0008 0023 movs r3, #0 - 7331 000a 0363 str r3, [r0, #48] -4145:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** hi2c->Mode = HAL_I2C_MODE_NONE; - 7332 .loc 1 4145 0 - 7333 000c 4122 movs r2, #65 - 7334 000e 2020 movs r0, #32 - 7335 .LVL658: - 7336 0010 A054 strb r0, [r4, r2] -4146:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** hi2c->XferISR = NULL; - ARM GAS /tmp/ccTaFl06.s page 233 - - - 7337 .loc 1 4146 0 - 7338 0012 0132 adds r2, r2, #1 - 7339 0014 A354 strb r3, [r4, r2] -4147:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** - 7340 .loc 1 4147 0 - 7341 0016 6363 str r3, [r4, #52] -4150:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** { - 7342 .loc 1 4150 0 - 7343 0018 4B07 lsls r3, r1, #29 - 7344 001a 12D5 bpl .L493 -4153:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** - 7345 .loc 1 4153 0 - 7346 001c 2368 ldr r3, [r4] - 7347 001e 5A6A ldr r2, [r3, #36] - 7348 0020 636A ldr r3, [r4, #36] - 7349 0022 591C adds r1, r3, #1 - 7350 .LVL659: - 7351 0024 6162 str r1, [r4, #36] - 7352 0026 1A70 strb r2, [r3] -4155:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** { - 7353 .loc 1 4155 0 - 7354 0028 238D ldrh r3, [r4, #40] - 7355 002a 002B cmp r3, #0 - 7356 002c 09D0 beq .L493 -4157:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** hi2c->XferCount--; - 7357 .loc 1 4157 0 - 7358 002e 013B subs r3, r3, #1 - 7359 0030 2385 strh r3, [r4, #40] -4158:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** - 7360 .loc 1 4158 0 - 7361 0032 638D ldrh r3, [r4, #42] - 7362 0034 013B subs r3, r3, #1 - 7363 0036 9BB2 uxth r3, r3 - 7364 0038 6385 strh r3, [r4, #42] -4161:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** } - 7365 .loc 1 4161 0 - 7366 003a 636C ldr r3, [r4, #68] - 7367 003c 0422 movs r2, #4 - 7368 003e 1343 orrs r3, r2 - 7369 0040 6364 str r3, [r4, #68] - 7370 .L493: -4166:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** - 7371 .loc 1 4166 0 - 7372 0042 0721 movs r1, #7 - 7373 0044 2000 movs r0, r4 - 7374 0046 FFF7FEFF bl I2C_Disable_IRQ - 7375 .LVL660: -4169:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** - 7376 .loc 1 4169 0 - 7377 004a 2368 ldr r3, [r4] - 7378 004c 1022 movs r2, #16 - 7379 004e DA61 str r2, [r3, #28] -4172:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** - 7380 .loc 1 4172 0 - 7381 0050 4023 movs r3, #64 - 7382 0052 0022 movs r2, #0 - 7383 0054 E254 strb r2, [r4, r3] - ARM GAS /tmp/ccTaFl06.s page 234 - - -4175:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** } - 7384 .loc 1 4175 0 - 7385 0056 2000 movs r0, r4 - 7386 0058 FFF7FEFF bl HAL_I2C_ListenCpltCallback - 7387 .LVL661: -4176:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** - 7388 .loc 1 4176 0 - 7389 @ sp needed - 7390 .LVL662: - 7391 005c 10BD pop {r4, pc} - 7392 .L495: - 7393 005e C046 .align 2 - 7394 .L494: - 7395 0060 0000FFFF .word -65536 - 7396 .cfi_endproc - 7397 .LFE93: - 7399 .section .text.HAL_I2C_MemTxCpltCallback,"ax",%progbits - 7400 .align 1 - 7401 .weak HAL_I2C_MemTxCpltCallback - 7402 .syntax unified - 7403 .code 16 - 7404 .thumb_func - 7405 .fpu softvfp - 7407 HAL_I2C_MemTxCpltCallback: - 7408 .LFB75: -3134:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** /* Prevent unused argument(s) compilation warning */ - 7409 .loc 1 3134 0 - 7410 .cfi_startproc - 7411 @ args = 0, pretend = 0, frame = 0 - 7412 @ frame_needed = 0, uses_anonymous_args = 0 - 7413 @ link register save eliminated. - 7414 .LVL663: -3141:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** - 7415 .loc 1 3141 0 - 7416 @ sp needed - 7417 0000 7047 bx lr - 7418 .cfi_endproc - 7419 .LFE75: - 7421 .section .text.HAL_I2C_MemRxCpltCallback,"ax",%progbits - 7422 .align 1 - 7423 .weak HAL_I2C_MemRxCpltCallback - 7424 .syntax unified - 7425 .code 16 - 7426 .thumb_func - 7427 .fpu softvfp - 7429 HAL_I2C_MemRxCpltCallback: - 7430 .LFB76: -3150:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** /* Prevent unused argument(s) compilation warning */ - 7431 .loc 1 3150 0 - 7432 .cfi_startproc - 7433 @ args = 0, pretend = 0, frame = 0 - 7434 @ frame_needed = 0, uses_anonymous_args = 0 - 7435 @ link register save eliminated. - 7436 .LVL664: -3157:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** - 7437 .loc 1 3157 0 - 7438 @ sp needed - ARM GAS /tmp/ccTaFl06.s page 235 - - - 7439 0000 7047 bx lr - 7440 .cfi_endproc - 7441 .LFE76: - 7443 .section .text.HAL_I2C_ErrorCallback,"ax",%progbits - 7444 .align 1 - 7445 .weak HAL_I2C_ErrorCallback - 7446 .syntax unified - 7447 .code 16 - 7448 .thumb_func - 7449 .fpu softvfp - 7451 HAL_I2C_ErrorCallback: - 7452 .LFB77: -3166:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** /* Prevent unused argument(s) compilation warning */ - 7453 .loc 1 3166 0 - 7454 .cfi_startproc - 7455 @ args = 0, pretend = 0, frame = 0 - 7456 @ frame_needed = 0, uses_anonymous_args = 0 - 7457 @ link register save eliminated. - 7458 .LVL665: -3173:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** - 7459 .loc 1 3173 0 - 7460 @ sp needed - 7461 0000 7047 bx lr - 7462 .cfi_endproc - 7463 .LFE77: - 7465 .section .text.HAL_I2C_AbortCpltCallback,"ax",%progbits - 7466 .align 1 - 7467 .weak HAL_I2C_AbortCpltCallback - 7468 .syntax unified - 7469 .code 16 - 7470 .thumb_func - 7471 .fpu softvfp - 7473 HAL_I2C_AbortCpltCallback: - 7474 .LFB78: -3182:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** /* Prevent unused argument(s) compilation warning */ - 7475 .loc 1 3182 0 - 7476 .cfi_startproc - 7477 @ args = 0, pretend = 0, frame = 0 - 7478 @ frame_needed = 0, uses_anonymous_args = 0 - 7479 @ link register save eliminated. - 7480 .LVL666: -3189:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** - 7481 .loc 1 3189 0 - 7482 @ sp needed - 7483 0000 7047 bx lr - 7484 .cfi_endproc - 7485 .LFE78: - 7487 .section .text.I2C_ITError,"ax",%progbits - 7488 .align 1 - 7489 .syntax unified - 7490 .code 16 - 7491 .thumb_func - 7492 .fpu softvfp - 7494 I2C_ITError: - 7495 .LFB94: -4185:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** /* Reset handle parameters */ - 7496 .loc 1 4185 0 - ARM GAS /tmp/ccTaFl06.s page 236 - - - 7497 .cfi_startproc - 7498 @ args = 0, pretend = 0, frame = 0 - 7499 @ frame_needed = 0, uses_anonymous_args = 0 - 7500 .LVL667: - 7501 0000 10B5 push {r4, lr} - 7502 .LCFI69: - 7503 .cfi_def_cfa_offset 8 - 7504 .cfi_offset 4, -8 - 7505 .cfi_offset 14, -4 - 7506 0002 0400 movs r4, r0 -4187:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** hi2c->XferOptions = I2C_NO_OPTION_FRAME; - 7507 .loc 1 4187 0 - 7508 0004 0023 movs r3, #0 - 7509 0006 4222 movs r2, #66 - 7510 0008 8354 strb r3, [r0, r2] -4188:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** hi2c->XferCount = 0U; - 7511 .loc 1 4188 0 - 7512 000a 364A ldr r2, .L512 - 7513 000c C262 str r2, [r0, #44] -4189:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** - 7514 .loc 1 4189 0 - 7515 000e 4385 strh r3, [r0, #42] -4192:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** - 7516 .loc 1 4192 0 - 7517 0010 436C ldr r3, [r0, #68] - 7518 0012 1943 orrs r1, r3 - 7519 .LVL668: - 7520 0014 4164 str r1, [r0, #68] -4195:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** (hi2c->State == HAL_I2C_STATE_BUSY_TX_LISTEN) || - 7521 .loc 1 4195 0 - 7522 0016 4123 movs r3, #65 - 7523 0018 C35C ldrb r3, [r0, r3] - 7524 001a 282B cmp r3, #40 - 7525 001c 07D0 beq .L501 -4196:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** (hi2c->State == HAL_I2C_STATE_BUSY_RX_LISTEN)) - 7526 .loc 1 4196 0 discriminator 1 - 7527 001e 4123 movs r3, #65 - 7528 0020 C35C ldrb r3, [r0, r3] -4195:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** (hi2c->State == HAL_I2C_STATE_BUSY_TX_LISTEN) || - 7529 .loc 1 4195 0 discriminator 1 - 7530 0022 292B cmp r3, #41 - 7531 0024 03D0 beq .L501 -4197:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** { - 7532 .loc 1 4197 0 - 7533 0026 4123 movs r3, #65 - 7534 0028 C35C ldrb r3, [r0, r3] -4196:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** (hi2c->State == HAL_I2C_STATE_BUSY_RX_LISTEN)) - 7535 .loc 1 4196 0 - 7536 002a 2A2B cmp r3, #42 - 7537 002c 1CD1 bne .L502 - 7538 .L501: -4200:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** - 7539 .loc 1 4200 0 - 7540 002e 0321 movs r1, #3 - 7541 0030 2000 movs r0, r4 - 7542 .LVL669: - 7543 0032 FFF7FEFF bl I2C_Disable_IRQ - ARM GAS /tmp/ccTaFl06.s page 237 - - - 7544 .LVL670: -4203:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** hi2c->PreviousState = I2C_STATE_NONE; - 7545 .loc 1 4203 0 - 7546 0036 4123 movs r3, #65 - 7547 0038 2822 movs r2, #40 - 7548 003a E254 strb r2, [r4, r3] -4204:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** hi2c->XferISR = I2C_Slave_ISR_IT; - 7549 .loc 1 4204 0 - 7550 003c 0023 movs r3, #0 - 7551 003e 2363 str r3, [r4, #48] -4205:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** } - 7552 .loc 1 4205 0 - 7553 0040 294B ldr r3, .L512+4 - 7554 0042 6363 str r3, [r4, #52] - 7555 .L503: -4224:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** { - 7556 .loc 1 4224 0 - 7557 0044 2368 ldr r3, [r4] - 7558 0046 1A68 ldr r2, [r3] - 7559 0048 5204 lsls r2, r2, #17 - 7560 004a 1BD4 bmi .L509 -4243:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** { - 7561 .loc 1 4243 0 - 7562 004c 1A68 ldr r2, [r3] - 7563 004e 1204 lsls r2, r2, #16 - 7564 0050 2BD4 bmi .L510 -4261:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** { - 7565 .loc 1 4261 0 - 7566 0052 4123 movs r3, #65 - 7567 0054 E35C ldrb r3, [r4, r3] - 7568 0056 602B cmp r3, #96 - 7569 0058 3AD0 beq .L511 -4274:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** - 7570 .loc 1 4274 0 - 7571 005a 4023 movs r3, #64 - 7572 005c 0022 movs r2, #0 - 7573 005e E254 strb r2, [r4, r3] -4277:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** } - 7574 .loc 1 4277 0 - 7575 0060 2000 movs r0, r4 - 7576 0062 FFF7FEFF bl HAL_I2C_ErrorCallback - 7577 .LVL671: - 7578 .L500: -4279:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** - 7579 .loc 1 4279 0 - 7580 @ sp needed - 7581 .LVL672: - 7582 0066 10BD pop {r4, pc} - 7583 .LVL673: - 7584 .L502: -4210:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** - 7585 .loc 1 4210 0 - 7586 0068 0721 movs r1, #7 - 7587 006a FFF7FEFF bl I2C_Disable_IRQ - 7588 .LVL674: -4214:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** { - 7589 .loc 1 4214 0 - ARM GAS /tmp/ccTaFl06.s page 238 - - - 7590 006e 4123 movs r3, #65 - 7591 0070 E35C ldrb r3, [r4, r3] - 7592 0072 602B cmp r3, #96 - 7593 0074 02D0 beq .L504 -4217:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** } - 7594 .loc 1 4217 0 - 7595 0076 4123 movs r3, #65 - 7596 0078 2022 movs r2, #32 - 7597 007a E254 strb r2, [r4, r3] - 7598 .L504: -4219:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** hi2c->XferISR = NULL; - 7599 .loc 1 4219 0 - 7600 007c 0023 movs r3, #0 - 7601 007e 2363 str r3, [r4, #48] -4220:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** } - 7602 .loc 1 4220 0 - 7603 0080 6363 str r3, [r4, #52] - 7604 0082 DFE7 b .L503 - 7605 .L509: -4226:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** - 7606 .loc 1 4226 0 - 7607 0084 1A68 ldr r2, [r3] - 7608 0086 1949 ldr r1, .L512+8 - 7609 0088 0A40 ands r2, r1 - 7610 008a 1A60 str r2, [r3] -4230:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** - 7611 .loc 1 4230 0 - 7612 008c A36B ldr r3, [r4, #56] - 7613 008e 184A ldr r2, .L512+12 - 7614 0090 5A63 str r2, [r3, #52] -4233:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** - 7615 .loc 1 4233 0 - 7616 0092 4023 movs r3, #64 - 7617 0094 0022 movs r2, #0 - 7618 0096 E254 strb r2, [r4, r3] -4236:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** { - 7619 .loc 1 4236 0 - 7620 0098 A06B ldr r0, [r4, #56] - 7621 009a FFF7FEFF bl HAL_DMA_Abort_IT - 7622 .LVL675: - 7623 009e 0028 cmp r0, #0 - 7624 00a0 E1D0 beq .L500 -4239:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** } - 7625 .loc 1 4239 0 - 7626 00a2 A06B ldr r0, [r4, #56] - 7627 00a4 436B ldr r3, [r0, #52] - 7628 00a6 9847 blx r3 - 7629 .LVL676: - 7630 00a8 DDE7 b .L500 - 7631 .L510: -4245:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** - 7632 .loc 1 4245 0 - 7633 00aa 1A68 ldr r2, [r3] - 7634 00ac 1149 ldr r1, .L512+16 - 7635 00ae 0A40 ands r2, r1 - 7636 00b0 1A60 str r2, [r3] -4249:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** - ARM GAS /tmp/ccTaFl06.s page 239 - - - 7637 .loc 1 4249 0 - 7638 00b2 E36B ldr r3, [r4, #60] - 7639 00b4 0E4A ldr r2, .L512+12 - 7640 00b6 5A63 str r2, [r3, #52] -4252:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** - 7641 .loc 1 4252 0 - 7642 00b8 4023 movs r3, #64 - 7643 00ba 0022 movs r2, #0 - 7644 00bc E254 strb r2, [r4, r3] -4255:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** { - 7645 .loc 1 4255 0 - 7646 00be E06B ldr r0, [r4, #60] - 7647 00c0 FFF7FEFF bl HAL_DMA_Abort_IT - 7648 .LVL677: - 7649 00c4 0028 cmp r0, #0 - 7650 00c6 CED0 beq .L500 -4258:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** } - 7651 .loc 1 4258 0 - 7652 00c8 E06B ldr r0, [r4, #60] - 7653 00ca 436B ldr r3, [r0, #52] - 7654 00cc 9847 blx r3 - 7655 .LVL678: - 7656 00ce CAE7 b .L500 - 7657 .L511: -4263:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** - 7658 .loc 1 4263 0 - 7659 00d0 1F3B subs r3, r3, #31 - 7660 00d2 2022 movs r2, #32 - 7661 00d4 E254 strb r2, [r4, r3] -4266:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** - 7662 .loc 1 4266 0 - 7663 00d6 013B subs r3, r3, #1 - 7664 00d8 0022 movs r2, #0 - 7665 00da E254 strb r2, [r4, r3] -4269:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** } - 7666 .loc 1 4269 0 - 7667 00dc 2000 movs r0, r4 - 7668 00de FFF7FEFF bl HAL_I2C_AbortCpltCallback - 7669 .LVL679: - 7670 00e2 C0E7 b .L500 - 7671 .L513: - 7672 .align 2 - 7673 .L512: - 7674 00e4 0000FFFF .word -65536 - 7675 00e8 00000000 .word I2C_Slave_ISR_IT - 7676 00ec FFBFFFFF .word -16385 - 7677 00f0 00000000 .word I2C_DMAAbort - 7678 00f4 FF7FFFFF .word -32769 - 7679 .cfi_endproc - 7680 .LFE94: - 7682 .section .text.I2C_ITSlaveCplt,"ax",%progbits - 7683 .align 1 - 7684 .syntax unified - 7685 .code 16 - 7686 .thumb_func - 7687 .fpu softvfp - 7689 I2C_ITSlaveCplt: - ARM GAS /tmp/ccTaFl06.s page 240 - - - 7690 .LFB92: -4035:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** /* Clear STOP Flag */ - 7691 .loc 1 4035 0 - 7692 .cfi_startproc - 7693 @ args = 0, pretend = 0, frame = 0 - 7694 @ frame_needed = 0, uses_anonymous_args = 0 - 7695 .LVL680: - 7696 0000 70B5 push {r4, r5, r6, lr} - 7697 .LCFI70: - 7698 .cfi_def_cfa_offset 16 - 7699 .cfi_offset 4, -16 - 7700 .cfi_offset 5, -12 - 7701 .cfi_offset 6, -8 - 7702 .cfi_offset 14, -4 - 7703 0002 0400 movs r4, r0 - 7704 0004 0D00 movs r5, r1 -4037:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** - 7705 .loc 1 4037 0 - 7706 0006 0368 ldr r3, [r0] - 7707 0008 2022 movs r2, #32 - 7708 000a DA61 str r2, [r3, #28] -4040:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** - 7709 .loc 1 4040 0 - 7710 000c 0368 ldr r3, [r0] - 7711 000e 183A subs r2, r2, #24 - 7712 0010 DA61 str r2, [r3, #28] -4043:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** - 7713 .loc 1 4043 0 - 7714 0012 0721 movs r1, #7 - 7715 .LVL681: - 7716 0014 FFF7FEFF bl I2C_Disable_IRQ - 7717 .LVL682: -4046:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** - 7718 .loc 1 4046 0 - 7719 0018 2268 ldr r2, [r4] - 7720 001a 5168 ldr r1, [r2, #4] - 7721 001c 8023 movs r3, #128 - 7722 001e 1B02 lsls r3, r3, #8 - 7723 0020 0B43 orrs r3, r1 - 7724 0022 5360 str r3, [r2, #4] -4049:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** - 7725 .loc 1 4049 0 - 7726 0024 2268 ldr r2, [r4] - 7727 0026 5368 ldr r3, [r2, #4] - 7728 0028 3949 ldr r1, .L529 - 7729 002a 0B40 ands r3, r1 - 7730 002c 5360 str r3, [r2, #4] -4052:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** - 7731 .loc 1 4052 0 - 7732 002e 2000 movs r0, r4 - 7733 0030 FFF7FEFF bl I2C_Flush_TXDR - 7734 .LVL683: -4055:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** ((hi2c->Instance->CR1 & I2C_CR1_RXDMAEN) == I2C_CR1_RXDMAEN)) - 7735 .loc 1 4055 0 - 7736 0034 2268 ldr r2, [r4] - 7737 0036 1368 ldr r3, [r2] - 7738 0038 5B04 lsls r3, r3, #17 - ARM GAS /tmp/ccTaFl06.s page 241 - - - 7739 003a 02D4 bmi .L515 -4056:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** { - 7740 .loc 1 4056 0 discriminator 1 - 7741 003c 1368 ldr r3, [r2] -4055:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** ((hi2c->Instance->CR1 & I2C_CR1_RXDMAEN) == I2C_CR1_RXDMAEN)) - 7742 .loc 1 4055 0 discriminator 1 - 7743 003e 1B04 lsls r3, r3, #16 - 7744 0040 08D5 bpl .L516 - 7745 .L515: -4058:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** } - 7746 .loc 1 4058 0 - 7747 0042 4123 movs r3, #65 - 7748 0044 E35C ldrb r3, [r4, r3] - 7749 0046 212B cmp r3, #33 - 7750 0048 3AD0 beq .L525 -4058:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** } - 7751 .loc 1 4058 0 is_stmt 0 discriminator 2 - 7752 004a E36B ldr r3, [r4, #60] - 7753 004c 1B68 ldr r3, [r3] - 7754 004e 5B68 ldr r3, [r3, #4] - 7755 0050 9BB2 uxth r3, r3 - 7756 .L518: -4058:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** } - 7757 .loc 1 4058 0 discriminator 4 - 7758 0052 6385 strh r3, [r4, #42] - 7759 .L516: -4062:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** { - 7760 .loc 1 4062 0 is_stmt 1 - 7761 0054 638D ldrh r3, [r4, #42] - 7762 0056 9BB2 uxth r3, r3 - 7763 0058 002B cmp r3, #0 - 7764 005a 03D0 beq .L519 -4065:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** } - 7765 .loc 1 4065 0 - 7766 005c 636C ldr r3, [r4, #68] - 7767 005e 0421 movs r1, #4 - 7768 0060 0B43 orrs r3, r1 - 7769 0062 6364 str r3, [r4, #68] - 7770 .L519: -4069:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** { - 7771 .loc 1 4069 0 - 7772 0064 6B07 lsls r3, r5, #29 - 7773 0066 11D5 bpl .L520 -4072:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** - 7774 .loc 1 4072 0 - 7775 0068 526A ldr r2, [r2, #36] - 7776 006a 636A ldr r3, [r4, #36] - 7777 006c 591C adds r1, r3, #1 - 7778 006e 6162 str r1, [r4, #36] - 7779 0070 1A70 strb r2, [r3] -4074:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** { - 7780 .loc 1 4074 0 - 7781 0072 238D ldrh r3, [r4, #40] - 7782 0074 002B cmp r3, #0 - 7783 0076 09D0 beq .L520 -4076:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** hi2c->XferCount--; - 7784 .loc 1 4076 0 - ARM GAS /tmp/ccTaFl06.s page 242 - - - 7785 0078 013B subs r3, r3, #1 - 7786 007a 2385 strh r3, [r4, #40] -4077:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** - 7787 .loc 1 4077 0 - 7788 007c 638D ldrh r3, [r4, #42] - 7789 007e 013B subs r3, r3, #1 - 7790 0080 9BB2 uxth r3, r3 - 7791 0082 6385 strh r3, [r4, #42] -4080:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** } - 7792 .loc 1 4080 0 - 7793 0084 636C ldr r3, [r4, #68] - 7794 0086 0422 movs r2, #4 - 7795 0088 1343 orrs r3, r2 - 7796 008a 6364 str r3, [r4, #68] - 7797 .L520: -4084:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** hi2c->Mode = HAL_I2C_MODE_NONE; - 7798 .loc 1 4084 0 - 7799 008c 0023 movs r3, #0 - 7800 008e 2363 str r3, [r4, #48] -4085:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** hi2c->XferISR = NULL; - 7801 .loc 1 4085 0 - 7802 0090 4222 movs r2, #66 - 7803 0092 A354 strb r3, [r4, r2] -4086:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** - 7804 .loc 1 4086 0 - 7805 0094 6363 str r3, [r4, #52] -4088:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** { - 7806 .loc 1 4088 0 - 7807 0096 636C ldr r3, [r4, #68] - 7808 0098 002B cmp r3, #0 - 7809 009a 16D1 bne .L526 -4100:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** { - 7810 .loc 1 4100 0 - 7811 009c E26A ldr r2, [r4, #44] - 7812 009e 1D4B ldr r3, .L529+4 - 7813 00a0 9A42 cmp r2, r3 - 7814 00a2 1FD1 bne .L527 -4112:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** { - 7815 .loc 1 4112 0 - 7816 00a4 4123 movs r3, #65 - 7817 00a6 E35C ldrb r3, [r4, r3] - 7818 00a8 222B cmp r3, #34 - 7819 00aa 26D0 beq .L528 -4124:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** - 7820 .loc 1 4124 0 - 7821 00ac 4123 movs r3, #65 - 7822 00ae 2022 movs r2, #32 - 7823 00b0 E254 strb r2, [r4, r3] -4127:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** - 7824 .loc 1 4127 0 - 7825 00b2 013B subs r3, r3, #1 - 7826 00b4 0022 movs r2, #0 - 7827 00b6 E254 strb r2, [r4, r3] -4130:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** } - 7828 .loc 1 4130 0 - 7829 00b8 2000 movs r0, r4 - 7830 00ba FFF7FEFF bl HAL_I2C_SlaveTxCpltCallback - ARM GAS /tmp/ccTaFl06.s page 243 - - - 7831 .LVL684: -4132:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** - 7832 .loc 1 4132 0 - 7833 00be 1BE0 b .L514 - 7834 .L525: -4058:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** } - 7835 .loc 1 4058 0 discriminator 1 - 7836 00c0 A36B ldr r3, [r4, #56] - 7837 00c2 1B68 ldr r3, [r3] - 7838 00c4 5B68 ldr r3, [r3, #4] - 7839 00c6 9BB2 uxth r3, r3 - 7840 00c8 C3E7 b .L518 - 7841 .L526: -4091:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** - 7842 .loc 1 4091 0 - 7843 00ca 616C ldr r1, [r4, #68] - 7844 00cc 2000 movs r0, r4 - 7845 00ce FFF7FEFF bl I2C_ITError - 7846 .LVL685: -4094:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** { - 7847 .loc 1 4094 0 - 7848 00d2 4123 movs r3, #65 - 7849 00d4 E35C ldrb r3, [r4, r3] - 7850 00d6 282B cmp r3, #40 - 7851 00d8 0ED1 bne .L514 -4097:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** } - 7852 .loc 1 4097 0 - 7853 00da 2900 movs r1, r5 - 7854 00dc 2000 movs r0, r4 - 7855 00de FFF7FEFF bl I2C_ITListenCplt - 7856 .LVL686: - 7857 00e2 09E0 b .L514 - 7858 .L527: -4102:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** hi2c->State = HAL_I2C_STATE_READY; - 7859 .loc 1 4102 0 - 7860 00e4 E362 str r3, [r4, #44] -4103:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** - 7861 .loc 1 4103 0 - 7862 00e6 4123 movs r3, #65 - 7863 00e8 2022 movs r2, #32 - 7864 00ea E254 strb r2, [r4, r3] -4106:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** - 7865 .loc 1 4106 0 - 7866 00ec 013B subs r3, r3, #1 - 7867 00ee 0022 movs r2, #0 - 7868 00f0 E254 strb r2, [r4, r3] -4109:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** } - 7869 .loc 1 4109 0 - 7870 00f2 2000 movs r0, r4 - 7871 00f4 FFF7FEFF bl HAL_I2C_ListenCpltCallback - 7872 .LVL687: - 7873 .L514: -4132:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** - 7874 .loc 1 4132 0 - 7875 @ sp needed - 7876 .LVL688: - 7877 .LVL689: - ARM GAS /tmp/ccTaFl06.s page 244 - - - 7878 00f8 70BD pop {r4, r5, r6, pc} - 7879 .LVL690: - 7880 .L528: -4114:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** - 7881 .loc 1 4114 0 - 7882 00fa 1F33 adds r3, r3, #31 - 7883 00fc 2022 movs r2, #32 - 7884 00fe E254 strb r2, [r4, r3] -4117:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** - 7885 .loc 1 4117 0 - 7886 0100 013B subs r3, r3, #1 - 7887 0102 0022 movs r2, #0 - 7888 0104 E254 strb r2, [r4, r3] -4120:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** } - 7889 .loc 1 4120 0 - 7890 0106 2000 movs r0, r4 - 7891 0108 FFF7FEFF bl HAL_I2C_SlaveRxCpltCallback - 7892 .LVL691: - 7893 010c F4E7 b .L514 - 7894 .L530: - 7895 010e C046 .align 2 - 7896 .L529: - 7897 0110 00E800FE .word -33495040 - 7898 0114 0000FFFF .word -65536 - 7899 .cfi_endproc - 7900 .LFE92: - 7902 .section .text.I2C_Slave_ISR_IT,"ax",%progbits - 7903 .align 1 - 7904 .syntax unified - 7905 .code 16 - 7906 .thumb_func - 7907 .fpu softvfp - 7909 I2C_Slave_ISR_IT: - 7910 .LFB83: -3386:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** /* Process locked */ - 7911 .loc 1 3386 0 - 7912 .cfi_startproc - 7913 @ args = 0, pretend = 0, frame = 0 - 7914 @ frame_needed = 0, uses_anonymous_args = 0 - 7915 .LVL692: - 7916 0000 70B5 push {r4, r5, r6, lr} - 7917 .LCFI71: - 7918 .cfi_def_cfa_offset 16 - 7919 .cfi_offset 4, -16 - 7920 .cfi_offset 5, -12 - 7921 .cfi_offset 6, -8 - 7922 .cfi_offset 14, -4 - 7923 0002 0400 movs r4, r0 - 7924 0004 0D00 movs r5, r1 - 7925 0006 1600 movs r6, r2 -3388:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** - 7926 .loc 1 3388 0 - 7927 0008 4023 movs r3, #64 - 7928 000a C35C ldrb r3, [r0, r3] - 7929 000c 012B cmp r3, #1 - 7930 000e 00D1 bne .LCB7840 - 7931 0010 92E0 b .L545 @long jump - ARM GAS /tmp/ccTaFl06.s page 245 - - - 7932 .LCB7840: -3388:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** - 7933 .loc 1 3388 0 is_stmt 0 discriminator 2 - 7934 0012 4023 movs r3, #64 - 7935 0014 0122 movs r2, #1 - 7936 .LVL693: - 7937 0016 C254 strb r2, [r0, r3] -3390:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** { - 7938 .loc 1 3390 0 is_stmt 1 discriminator 2 - 7939 0018 CB06 lsls r3, r1, #27 - 7940 001a 3CD5 bpl .L533 -3390:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** { - 7941 .loc 1 3390 0 is_stmt 0 discriminator 1 - 7942 001c F306 lsls r3, r6, #27 - 7943 001e 3AD5 bpl .L533 -3396:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** { - 7944 .loc 1 3396 0 is_stmt 1 - 7945 0020 438D ldrh r3, [r0, #42] - 7946 0022 9BB2 uxth r3, r3 - 7947 0024 002B cmp r3, #0 - 7948 0026 26D1 bne .L534 -3398:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** (hi2c->State == HAL_I2C_STATE_LISTEN)) - 7949 .loc 1 3398 0 - 7950 0028 C26A ldr r2, [r0, #44] - 7951 002a 8023 movs r3, #128 - 7952 002c 9B04 lsls r3, r3, #18 - 7953 002e 9A42 cmp r2, r3 - 7954 0030 02D0 beq .L535 -3398:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** (hi2c->State == HAL_I2C_STATE_LISTEN)) - 7955 .loc 1 3398 0 is_stmt 0 discriminator 2 - 7956 0032 C26A ldr r2, [r0, #44] - 7957 0034 9A42 cmp r2, r3 - 7958 0036 03D1 bne .L536 - 7959 .L535: -3399:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** { - 7960 .loc 1 3399 0 is_stmt 1 discriminator 3 - 7961 0038 4123 movs r3, #65 - 7962 003a E35C ldrb r3, [r4, r3] -3398:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** (hi2c->State == HAL_I2C_STATE_LISTEN)) - 7963 .loc 1 3398 0 discriminator 3 - 7964 003c 282B cmp r3, #40 - 7965 003e 0BD0 beq .L546 - 7966 .L536: -3404:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** { - 7967 .loc 1 3404 0 - 7968 0040 E26A ldr r2, [r4, #44] - 7969 0042 3E4B ldr r3, .L550 - 7970 0044 9A42 cmp r2, r3 - 7971 0046 03D0 beq .L538 -3404:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** { - 7972 .loc 1 3404 0 is_stmt 0 discriminator 1 - 7973 0048 4123 movs r3, #65 - 7974 004a E35C ldrb r3, [r4, r3] - 7975 004c 292B cmp r3, #41 - 7976 004e 08D0 beq .L547 - 7977 .L538: -3419:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** } - ARM GAS /tmp/ccTaFl06.s page 246 - - - 7978 .loc 1 3419 0 is_stmt 1 - 7979 0050 2368 ldr r3, [r4] - 7980 0052 1022 movs r2, #16 - 7981 0054 DA61 str r2, [r3, #28] - 7982 0056 15E0 b .L537 - 7983 .L546: -3402:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** } - 7984 .loc 1 3402 0 - 7985 0058 2900 movs r1, r5 - 7986 .LVL694: - 7987 005a 2000 movs r0, r4 - 7988 .LVL695: - 7989 005c FFF7FEFF bl I2C_ITListenCplt - 7990 .LVL696: - 7991 0060 10E0 b .L537 - 7992 .LVL697: - 7993 .L547: -3407:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** - 7994 .loc 1 3407 0 - 7995 0062 2368 ldr r3, [r4] - 7996 0064 1022 movs r2, #16 - 7997 0066 DA61 str r2, [r3, #28] -3410:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** - 7998 .loc 1 3410 0 - 7999 0068 2000 movs r0, r4 - 8000 .LVL698: - 8001 006a FFF7FEFF bl I2C_Flush_TXDR - 8002 .LVL699: -3414:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** } - 8003 .loc 1 3414 0 - 8004 006e 2000 movs r0, r4 - 8005 0070 FFF7FEFF bl I2C_ITSlaveSequentialCplt - 8006 .LVL700: - 8007 0074 06E0 b .L537 - 8008 .LVL701: - 8009 .L534: -3426:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** - 8010 .loc 1 3426 0 - 8011 0076 0368 ldr r3, [r0] - 8012 0078 1022 movs r2, #16 - 8013 007a DA61 str r2, [r3, #28] -3429:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** } - 8014 .loc 1 3429 0 - 8015 007c 436C ldr r3, [r0, #68] - 8016 007e 0C3A subs r2, r2, #12 - 8017 0080 1343 orrs r3, r2 - 8018 0082 4364 str r3, [r0, #68] - 8019 .LVL702: - 8020 .L537: -3478:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** { - 8021 .loc 1 3478 0 - 8022 0084 AB06 lsls r3, r5, #26 - 8023 0086 01D5 bpl .L544 -3478:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** { - 8024 .loc 1 3478 0 is_stmt 0 discriminator 1 - 8025 0088 B306 lsls r3, r6, #26 - 8026 008a 50D4 bmi .L548 - ARM GAS /tmp/ccTaFl06.s page 247 - - - 8027 .L544: -3485:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** - 8028 .loc 1 3485 0 is_stmt 1 - 8029 008c 4023 movs r3, #64 - 8030 008e 0022 movs r2, #0 - 8031 0090 E254 strb r2, [r4, r3] -3487:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** } - 8032 .loc 1 3487 0 - 8033 0092 0020 movs r0, #0 - 8034 .L532: -3488:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** - 8035 .loc 1 3488 0 - 8036 @ sp needed - 8037 .LVL703: - 8038 .LVL704: - 8039 .LVL705: - 8040 0094 70BD pop {r4, r5, r6, pc} - 8041 .LVL706: - 8042 .L533: -3432:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** { - 8043 .loc 1 3432 0 - 8044 0096 6B07 lsls r3, r5, #29 - 8045 0098 1ED5 bpl .L539 -3432:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** { - 8046 .loc 1 3432 0 is_stmt 0 discriminator 1 - 8047 009a 7307 lsls r3, r6, #29 - 8048 009c 1CD5 bpl .L539 -3434:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** { - 8049 .loc 1 3434 0 is_stmt 1 - 8050 009e 638D ldrh r3, [r4, #42] - 8051 00a0 9BB2 uxth r3, r3 - 8052 00a2 002B cmp r3, #0 - 8053 00a4 0CD0 beq .L540 -3437:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** hi2c->XferSize--; - 8054 .loc 1 3437 0 - 8055 00a6 2368 ldr r3, [r4] - 8056 00a8 5A6A ldr r2, [r3, #36] - 8057 00aa 636A ldr r3, [r4, #36] - 8058 00ac 591C adds r1, r3, #1 - 8059 .LVL707: - 8060 00ae 6162 str r1, [r4, #36] - 8061 00b0 1A70 strb r2, [r3] -3438:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** hi2c->XferCount--; - 8062 .loc 1 3438 0 - 8063 00b2 238D ldrh r3, [r4, #40] - 8064 00b4 013B subs r3, r3, #1 - 8065 00b6 2385 strh r3, [r4, #40] -3439:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** } - 8066 .loc 1 3439 0 - 8067 00b8 638D ldrh r3, [r4, #42] - 8068 00ba 013B subs r3, r3, #1 - 8069 00bc 9BB2 uxth r3, r3 - 8070 00be 6385 strh r3, [r4, #42] - 8071 .L540: -3442:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** (hi2c->XferOptions != I2C_NO_OPTION_FRAME)) - 8072 .loc 1 3442 0 - 8073 00c0 638D ldrh r3, [r4, #42] - ARM GAS /tmp/ccTaFl06.s page 248 - - - 8074 00c2 9BB2 uxth r3, r3 - 8075 00c4 002B cmp r3, #0 - 8076 00c6 DDD1 bne .L537 -3443:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** { - 8077 .loc 1 3443 0 discriminator 1 - 8078 00c8 E26A ldr r2, [r4, #44] -3442:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** (hi2c->XferOptions != I2C_NO_OPTION_FRAME)) - 8079 .loc 1 3442 0 discriminator 1 - 8080 00ca 1C4B ldr r3, .L550 - 8081 00cc 9A42 cmp r2, r3 - 8082 00ce D9D0 beq .L537 -3446:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** } - 8083 .loc 1 3446 0 - 8084 00d0 2000 movs r0, r4 - 8085 .LVL708: - 8086 00d2 FFF7FEFF bl I2C_ITSlaveSequentialCplt - 8087 .LVL709: - 8088 00d6 D5E7 b .L537 - 8089 .LVL710: - 8090 .L539: -3449:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** { - 8091 .loc 1 3449 0 - 8092 00d8 2B07 lsls r3, r5, #28 - 8093 00da 01D5 bpl .L541 -3449:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** { - 8094 .loc 1 3449 0 is_stmt 0 discriminator 1 - 8095 00dc 3307 lsls r3, r6, #28 - 8096 00de 15D4 bmi .L549 - 8097 .L541: -3453:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** { - 8098 .loc 1 3453 0 is_stmt 1 - 8099 00e0 AB07 lsls r3, r5, #30 - 8100 00e2 CFD5 bpl .L537 -3453:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** { - 8101 .loc 1 3453 0 is_stmt 0 discriminator 1 - 8102 00e4 B307 lsls r3, r6, #30 - 8103 00e6 CDD5 bpl .L537 -3459:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** { - 8104 .loc 1 3459 0 is_stmt 1 - 8105 00e8 638D ldrh r3, [r4, #42] - 8106 00ea 9BB2 uxth r3, r3 - 8107 00ec 002B cmp r3, #0 - 8108 00ee 12D0 beq .L542 -3462:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** hi2c->XferCount--; - 8109 .loc 1 3462 0 - 8110 00f0 636A ldr r3, [r4, #36] - 8111 00f2 5A1C adds r2, r3, #1 - 8112 00f4 6262 str r2, [r4, #36] - 8113 00f6 2268 ldr r2, [r4] - 8114 00f8 1B78 ldrb r3, [r3] - 8115 00fa 9362 str r3, [r2, #40] -3463:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** hi2c->XferSize--; - 8116 .loc 1 3463 0 - 8117 00fc 638D ldrh r3, [r4, #42] - 8118 00fe 013B subs r3, r3, #1 - 8119 0100 9BB2 uxth r3, r3 - 8120 0102 6385 strh r3, [r4, #42] - ARM GAS /tmp/ccTaFl06.s page 249 - - -3464:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** } - 8121 .loc 1 3464 0 - 8122 0104 238D ldrh r3, [r4, #40] - 8123 0106 013B subs r3, r3, #1 - 8124 0108 2385 strh r3, [r4, #40] - 8125 010a BBE7 b .L537 - 8126 .L549: -3451:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** } - 8127 .loc 1 3451 0 - 8128 010c 2900 movs r1, r5 - 8129 .LVL711: - 8130 010e 2000 movs r0, r4 - 8131 .LVL712: - 8132 0110 FFF7FEFF bl I2C_ITAddrCplt - 8133 .LVL713: - 8134 0114 B6E7 b .L537 - 8135 .LVL714: - 8136 .L542: -3468:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** { - 8137 .loc 1 3468 0 - 8138 0116 E26A ldr r2, [r4, #44] - 8139 0118 8023 movs r3, #128 - 8140 011a 5B04 lsls r3, r3, #17 - 8141 011c 9A42 cmp r2, r3 - 8142 011e 02D0 beq .L543 -3468:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** { - 8143 .loc 1 3468 0 is_stmt 0 discriminator 1 - 8144 0120 E36A ldr r3, [r4, #44] - 8145 0122 002B cmp r3, #0 - 8146 0124 AED1 bne .L537 - 8147 .L543: -3472:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** } - 8148 .loc 1 3472 0 is_stmt 1 - 8149 0126 2000 movs r0, r4 - 8150 .LVL715: - 8151 0128 FFF7FEFF bl I2C_ITSlaveSequentialCplt - 8152 .LVL716: - 8153 012c AAE7 b .L537 - 8154 .L548: -3481:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** } - 8155 .loc 1 3481 0 - 8156 012e 2900 movs r1, r5 - 8157 0130 2000 movs r0, r4 - 8158 0132 FFF7FEFF bl I2C_ITSlaveCplt - 8159 .LVL717: - 8160 0136 A9E7 b .L544 - 8161 .LVL718: - 8162 .L545: -3388:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** - 8163 .loc 1 3388 0 - 8164 0138 0220 movs r0, #2 - 8165 .LVL719: - 8166 013a ABE7 b .L532 - 8167 .L551: - 8168 .align 2 - 8169 .L550: - 8170 013c 0000FFFF .word -65536 - ARM GAS /tmp/ccTaFl06.s page 250 - - - 8171 .cfi_endproc - 8172 .LFE83: - 8174 .section .text.I2C_Slave_ISR_DMA,"ax",%progbits - 8175 .align 1 - 8176 .syntax unified - 8177 .code 16 - 8178 .thumb_func - 8179 .fpu softvfp - 8181 I2C_Slave_ISR_DMA: - 8182 .LFB85: -3588:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** /* Process locked */ - 8183 .loc 1 3588 0 - 8184 .cfi_startproc - 8185 @ args = 0, pretend = 0, frame = 0 - 8186 @ frame_needed = 0, uses_anonymous_args = 0 - 8187 .LVL720: - 8188 0000 10B5 push {r4, lr} - 8189 .LCFI72: - 8190 .cfi_def_cfa_offset 8 - 8191 .cfi_offset 4, -8 - 8192 .cfi_offset 14, -4 - 8193 0002 0400 movs r4, r0 -3590:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** - 8194 .loc 1 3590 0 - 8195 0004 4023 movs r3, #64 - 8196 0006 C35C ldrb r3, [r0, r3] - 8197 0008 012B cmp r3, #1 - 8198 000a 3AD0 beq .L560 -3590:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** - 8199 .loc 1 3590 0 is_stmt 0 discriminator 2 - 8200 000c 4023 movs r3, #64 - 8201 000e 0120 movs r0, #1 - 8202 .LVL721: - 8203 0010 E054 strb r0, [r4, r3] -3592:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** { - 8204 .loc 1 3592 0 is_stmt 1 discriminator 2 - 8205 0012 CB06 lsls r3, r1, #27 - 8206 0014 20D5 bpl .L554 -3592:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** { - 8207 .loc 1 3592 0 is_stmt 0 discriminator 1 - 8208 0016 D306 lsls r3, r2, #27 - 8209 0018 1ED5 bpl .L554 -3598:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** { - 8210 .loc 1 3598 0 is_stmt 1 - 8211 001a 4123 movs r3, #65 - 8212 001c E35C ldrb r3, [r4, r3] - 8213 001e 212B cmp r3, #33 - 8214 0020 0BD0 beq .L561 -3598:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** { - 8215 .loc 1 3598 0 is_stmt 0 discriminator 2 - 8216 0022 E36B ldr r3, [r4, #60] - 8217 0024 1B68 ldr r3, [r3] - 8218 0026 5B68 ldr r3, [r3, #4] - 8219 0028 5A42 rsbs r2, r3, #0 - 8220 002a 5341 adcs r3, r3, r2 - 8221 .LVL722: - 8222 002c DBB2 uxtb r3, r3 - ARM GAS /tmp/ccTaFl06.s page 251 - - - 8223 .L556: -3598:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** { - 8224 .loc 1 3598 0 discriminator 4 - 8225 002e 002B cmp r3, #0 - 8226 0030 0AD0 beq .L557 -3601:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** } - 8227 .loc 1 3601 0 is_stmt 1 - 8228 0032 2368 ldr r3, [r4] - 8229 0034 1022 movs r2, #16 - 8230 0036 DA61 str r2, [r3, #28] - 8231 0038 1AE0 b .L558 - 8232 .LVL723: - 8233 .L561: -3598:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** { - 8234 .loc 1 3598 0 discriminator 1 - 8235 003a A36B ldr r3, [r4, #56] - 8236 003c 1B68 ldr r3, [r3] - 8237 003e 5B68 ldr r3, [r3, #4] - 8238 0040 5A42 rsbs r2, r3, #0 - 8239 0042 5341 adcs r3, r3, r2 - 8240 .LVL724: - 8241 0044 DBB2 uxtb r3, r3 - 8242 0046 F2E7 b .L556 - 8243 .L557: -3607:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** - 8244 .loc 1 3607 0 - 8245 0048 2368 ldr r3, [r4] - 8246 004a 1022 movs r2, #16 - 8247 004c DA61 str r2, [r3, #28] -3610:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** } - 8248 .loc 1 3610 0 - 8249 004e 636C ldr r3, [r4, #68] - 8250 0050 0C3A subs r2, r2, #12 - 8251 0052 1343 orrs r3, r2 - 8252 0054 6364 str r3, [r4, #68] - 8253 0056 0BE0 b .L558 - 8254 .LVL725: - 8255 .L554: -3613:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** { - 8256 .loc 1 3613 0 - 8257 0058 0B07 lsls r3, r1, #28 - 8258 005a 05D5 bpl .L559 -3613:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** { - 8259 .loc 1 3613 0 is_stmt 0 discriminator 1 - 8260 005c 1307 lsls r3, r2, #28 - 8261 005e 03D5 bpl .L559 -3616:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** } - 8262 .loc 1 3616 0 is_stmt 1 - 8263 0060 2368 ldr r3, [r4] - 8264 0062 0822 movs r2, #8 - 8265 .LVL726: - 8266 0064 DA61 str r2, [r3, #28] - 8267 0066 03E0 b .L558 - 8268 .LVL727: - 8269 .L559: -3618:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** { - 8270 .loc 1 3618 0 - ARM GAS /tmp/ccTaFl06.s page 252 - - - 8271 0068 8B06 lsls r3, r1, #26 - 8272 006a 01D5 bpl .L558 -3618:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** { - 8273 .loc 1 3618 0 is_stmt 0 discriminator 1 - 8274 006c 9306 lsls r3, r2, #26 - 8275 006e 04D4 bmi .L562 - 8276 .LVL728: - 8277 .L558: -3625:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** - 8278 .loc 1 3625 0 is_stmt 1 - 8279 0070 4023 movs r3, #64 - 8280 0072 0022 movs r2, #0 - 8281 0074 E254 strb r2, [r4, r3] -3627:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** } - 8282 .loc 1 3627 0 - 8283 0076 0020 movs r0, #0 - 8284 .L553: -3628:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** - 8285 .loc 1 3628 0 - 8286 @ sp needed - 8287 .LVL729: - 8288 0078 10BD pop {r4, pc} - 8289 .LVL730: - 8290 .L562: -3621:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** } - 8291 .loc 1 3621 0 - 8292 007a 2000 movs r0, r4 - 8293 007c FFF7FEFF bl I2C_ITSlaveCplt - 8294 .LVL731: - 8295 0080 F6E7 b .L558 - 8296 .LVL732: - 8297 .L560: -3590:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** - 8298 .loc 1 3590 0 - 8299 0082 0220 movs r0, #2 - 8300 .LVL733: - 8301 0084 F8E7 b .L553 - 8302 .cfi_endproc - 8303 .LFE85: - 8305 .section .text.I2C_ITMasterCplt,"ax",%progbits - 8306 .align 1 - 8307 .syntax unified - 8308 .code 16 - 8309 .thumb_func - 8310 .fpu softvfp - 8312 I2C_ITMasterCplt: - 8313 .LFB91: -3943:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** /* Clear STOP Flag */ - 8314 .loc 1 3943 0 - 8315 .cfi_startproc - 8316 @ args = 0, pretend = 0, frame = 0 - 8317 @ frame_needed = 0, uses_anonymous_args = 0 - 8318 .LVL734: - 8319 0000 10B5 push {r4, lr} - 8320 .LCFI73: - 8321 .cfi_def_cfa_offset 8 - 8322 .cfi_offset 4, -8 - ARM GAS /tmp/ccTaFl06.s page 253 - - - 8323 .cfi_offset 14, -4 - 8324 0002 0400 movs r4, r0 -3945:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** - 8325 .loc 1 3945 0 - 8326 0004 0368 ldr r3, [r0] - 8327 0006 2022 movs r2, #32 - 8328 0008 DA61 str r2, [r3, #28] -3948:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** - 8329 .loc 1 3948 0 - 8330 000a 0268 ldr r2, [r0] - 8331 000c 5368 ldr r3, [r2, #4] - 8332 000e 2F48 ldr r0, .L574 - 8333 .LVL735: - 8334 0010 0340 ands r3, r0 - 8335 0012 5360 str r3, [r2, #4] -3951:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** hi2c->XferISR = NULL; - 8336 .loc 1 3951 0 - 8337 0014 0023 movs r3, #0 - 8338 0016 2363 str r3, [r4, #48] -3952:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** hi2c->XferOptions = I2C_NO_OPTION_FRAME; - 8339 .loc 1 3952 0 - 8340 0018 6363 str r3, [r4, #52] -3953:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** - 8341 .loc 1 3953 0 - 8342 001a 2D4B ldr r3, .L574+4 - 8343 001c E362 str r3, [r4, #44] -3955:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** { - 8344 .loc 1 3955 0 - 8345 001e CB06 lsls r3, r1, #27 - 8346 0020 06D5 bpl .L564 -3958:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** - 8347 .loc 1 3958 0 - 8348 0022 2368 ldr r3, [r4] - 8349 0024 1022 movs r2, #16 - 8350 0026 DA61 str r2, [r3, #28] -3961:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** } - 8351 .loc 1 3961 0 - 8352 0028 636C ldr r3, [r4, #68] - 8353 002a 0C3A subs r2, r2, #12 - 8354 002c 1343 orrs r3, r2 - 8355 002e 6364 str r3, [r4, #68] - 8356 .L564: -3965:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** - 8357 .loc 1 3965 0 - 8358 0030 2000 movs r0, r4 - 8359 0032 FFF7FEFF bl I2C_Flush_TXDR - 8360 .LVL736: -3968:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** - 8361 .loc 1 3968 0 - 8362 0036 0321 movs r1, #3 - 8363 0038 2000 movs r0, r4 - 8364 003a FFF7FEFF bl I2C_Disable_IRQ - 8365 .LVL737: -3971:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** { - 8366 .loc 1 3971 0 - 8367 003e 636C ldr r3, [r4, #68] - 8368 0040 002B cmp r3, #0 - ARM GAS /tmp/ccTaFl06.s page 254 - - - 8369 0042 1BD1 bne .L565 -3971:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** { - 8370 .loc 1 3971 0 is_stmt 0 discriminator 1 - 8371 0044 4133 adds r3, r3, #65 - 8372 0046 E35C ldrb r3, [r4, r3] - 8373 0048 602B cmp r3, #96 - 8374 004a 17D0 beq .L565 -3977:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** { - 8375 .loc 1 3977 0 is_stmt 1 - 8376 004c 4123 movs r3, #65 - 8377 004e E35C ldrb r3, [r4, r3] - 8378 0050 212B cmp r3, #33 - 8379 0052 18D0 beq .L571 -4003:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** { - 8380 .loc 1 4003 0 - 8381 0054 4123 movs r3, #65 - 8382 0056 E35C ldrb r3, [r4, r3] - 8383 0058 222B cmp r3, #34 - 8384 005a 13D1 bne .L563 -4005:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** - 8385 .loc 1 4005 0 - 8386 005c 1F33 adds r3, r3, #31 - 8387 005e 2022 movs r2, #32 - 8388 0060 E254 strb r2, [r4, r3] -4007:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** { - 8389 .loc 1 4007 0 - 8390 0062 0133 adds r3, r3, #1 - 8391 0064 E35C ldrb r3, [r4, r3] - 8392 0066 402B cmp r3, #64 - 8393 0068 26D0 beq .L572 -4018:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** - 8394 .loc 1 4018 0 - 8395 006a 0023 movs r3, #0 - 8396 006c 4222 movs r2, #66 - 8397 006e A354 strb r3, [r4, r2] -4021:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** - 8398 .loc 1 4021 0 - 8399 0070 023A subs r2, r2, #2 - 8400 0072 A354 strb r3, [r4, r2] -4023:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** } - 8401 .loc 1 4023 0 - 8402 0074 2000 movs r0, r4 - 8403 0076 FFF7FEFF bl HAL_I2C_MasterRxCpltCallback - 8404 .LVL738: -4026:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** - 8405 .loc 1 4026 0 - 8406 007a 03E0 b .L563 - 8407 .L565: -3974:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** } - 8408 .loc 1 3974 0 - 8409 007c 616C ldr r1, [r4, #68] - 8410 007e 2000 movs r0, r4 - 8411 0080 FFF7FEFF bl I2C_ITError - 8412 .LVL739: - 8413 .L563: -4026:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** - 8414 .loc 1 4026 0 - ARM GAS /tmp/ccTaFl06.s page 255 - - - 8415 @ sp needed - 8416 .LVL740: - 8417 0084 10BD pop {r4, pc} - 8418 .LVL741: - 8419 .L571: -3979:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** - 8420 .loc 1 3979 0 - 8421 0086 2033 adds r3, r3, #32 - 8422 0088 2022 movs r2, #32 - 8423 008a E254 strb r2, [r4, r3] -3981:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** { - 8424 .loc 1 3981 0 - 8425 008c 0133 adds r3, r3, #1 - 8426 008e E35C ldrb r3, [r4, r3] - 8427 0090 402B cmp r3, #64 - 8428 0092 08D0 beq .L573 -3993:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** - 8429 .loc 1 3993 0 - 8430 0094 0023 movs r3, #0 - 8431 0096 4222 movs r2, #66 - 8432 0098 A354 strb r3, [r4, r2] -3996:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** - 8433 .loc 1 3996 0 - 8434 009a 023A subs r2, r2, #2 - 8435 009c A354 strb r3, [r4, r2] -3999:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** } - 8436 .loc 1 3999 0 - 8437 009e 2000 movs r0, r4 - 8438 00a0 FFF7FEFF bl HAL_I2C_MasterTxCpltCallback - 8439 .LVL742: - 8440 00a4 EEE7 b .L563 - 8441 .L573: -3983:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** - 8442 .loc 1 3983 0 - 8443 00a6 0023 movs r3, #0 - 8444 00a8 2232 adds r2, r2, #34 - 8445 00aa A354 strb r3, [r4, r2] -3986:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** - 8446 .loc 1 3986 0 - 8447 00ac 023A subs r2, r2, #2 - 8448 00ae A354 strb r3, [r4, r2] -3989:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** } - 8449 .loc 1 3989 0 - 8450 00b0 2000 movs r0, r4 - 8451 00b2 FFF7FEFF bl HAL_I2C_MemTxCpltCallback - 8452 .LVL743: - 8453 00b6 E5E7 b .L563 - 8454 .L572: -4009:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** - 8455 .loc 1 4009 0 - 8456 00b8 0023 movs r3, #0 - 8457 00ba 2232 adds r2, r2, #34 - 8458 00bc A354 strb r3, [r4, r2] -4012:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** - 8459 .loc 1 4012 0 - 8460 00be 023A subs r2, r2, #2 - 8461 00c0 A354 strb r3, [r4, r2] - ARM GAS /tmp/ccTaFl06.s page 256 - - -4014:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** } - 8462 .loc 1 4014 0 - 8463 00c2 2000 movs r0, r4 - 8464 00c4 FFF7FEFF bl HAL_I2C_MemRxCpltCallback - 8465 .LVL744: - 8466 00c8 DCE7 b .L563 - 8467 .L575: - 8468 00ca C046 .align 2 - 8469 .L574: - 8470 00cc 00E800FE .word -33495040 - 8471 00d0 0000FFFF .word -65536 - 8472 .cfi_endproc - 8473 .LFE91: - 8475 .section .text.I2C_Master_ISR_IT,"ax",%progbits - 8476 .align 1 - 8477 .syntax unified - 8478 .code 16 - 8479 .thumb_func - 8480 .fpu softvfp - 8482 I2C_Master_ISR_IT: - 8483 .LFB82: -3265:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** uint16_t devaddress = 0U; - 8484 .loc 1 3265 0 - 8485 .cfi_startproc - 8486 @ args = 0, pretend = 0, frame = 0 - 8487 @ frame_needed = 0, uses_anonymous_args = 0 - 8488 .LVL745: - 8489 0000 70B5 push {r4, r5, r6, lr} - 8490 .LCFI74: - 8491 .cfi_def_cfa_offset 16 - 8492 .cfi_offset 4, -16 - 8493 .cfi_offset 5, -12 - 8494 .cfi_offset 6, -8 - 8495 .cfi_offset 14, -4 - 8496 0002 82B0 sub sp, sp, #8 - 8497 .LCFI75: - 8498 .cfi_def_cfa_offset 24 - 8499 0004 0400 movs r4, r0 - 8500 0006 0D00 movs r5, r1 - 8501 0008 1600 movs r6, r2 - 8502 .LVL746: -3269:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** - 8503 .loc 1 3269 0 - 8504 000a 4023 movs r3, #64 - 8505 000c C35C ldrb r3, [r0, r3] - 8506 000e 012B cmp r3, #1 - 8507 0010 00D1 bne .LCB8421 - 8508 0012 A8E0 b .L590 @long jump - 8509 .LCB8421: -3269:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** - 8510 .loc 1 3269 0 is_stmt 0 discriminator 2 - 8511 0014 4023 movs r3, #64 - 8512 0016 0122 movs r2, #1 - 8513 .LVL747: - 8514 0018 C254 strb r2, [r0, r3] -3271:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** { - 8515 .loc 1 3271 0 is_stmt 1 discriminator 2 - ARM GAS /tmp/ccTaFl06.s page 257 - - - 8516 001a CB06 lsls r3, r1, #27 - 8517 001c 01D5 bpl .L578 -3271:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** { - 8518 .loc 1 3271 0 is_stmt 0 discriminator 1 - 8519 001e F306 lsls r3, r6, #27 - 8520 0020 1BD4 bmi .L591 - 8521 .L578: -3284:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** { - 8522 .loc 1 3284 0 is_stmt 1 - 8523 0022 6B07 lsls r3, r5, #29 - 8524 0024 23D5 bpl .L580 -3284:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** { - 8525 .loc 1 3284 0 is_stmt 0 discriminator 1 - 8526 0026 7307 lsls r3, r6, #29 - 8527 0028 21D5 bpl .L580 -3287:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** hi2c->XferSize--; - 8528 .loc 1 3287 0 is_stmt 1 - 8529 002a 2368 ldr r3, [r4] - 8530 002c 5A6A ldr r2, [r3, #36] - 8531 002e 636A ldr r3, [r4, #36] - 8532 0030 591C adds r1, r3, #1 - 8533 .LVL748: - 8534 0032 6162 str r1, [r4, #36] - 8535 0034 1A70 strb r2, [r3] -3288:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** hi2c->XferCount--; - 8536 .loc 1 3288 0 - 8537 0036 238D ldrh r3, [r4, #40] - 8538 0038 013B subs r3, r3, #1 - 8539 003a 2385 strh r3, [r4, #40] -3289:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** } - 8540 .loc 1 3289 0 - 8541 003c 638D ldrh r3, [r4, #42] - 8542 003e 013B subs r3, r3, #1 - 8543 0040 9BB2 uxth r3, r3 - 8544 0042 6385 strh r3, [r4, #42] - 8545 .LVL749: - 8546 .L579: -3365:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** { - 8547 .loc 1 3365 0 - 8548 0044 AB06 lsls r3, r5, #26 - 8549 0046 02D5 bpl .L589 -3365:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** { - 8550 .loc 1 3365 0 is_stmt 0 discriminator 1 - 8551 0048 B306 lsls r3, r6, #26 - 8552 004a 00D5 bpl .LCB8469 - 8553 004c 86E0 b .L592 @long jump - 8554 .LCB8469: - 8555 .L589: -3372:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** - 8556 .loc 1 3372 0 is_stmt 1 - 8557 004e 4023 movs r3, #64 - 8558 0050 0022 movs r2, #0 - 8559 0052 E254 strb r2, [r4, r3] -3374:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** } - 8560 .loc 1 3374 0 - 8561 0054 0020 movs r0, #0 - 8562 .L577: - ARM GAS /tmp/ccTaFl06.s page 258 - - -3375:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** - 8563 .loc 1 3375 0 - 8564 0056 02B0 add sp, sp, #8 - 8565 @ sp needed - 8566 .LVL750: - 8567 .LVL751: - 8568 .LVL752: - 8569 0058 70BD pop {r4, r5, r6, pc} - 8570 .LVL753: - 8571 .L591: -3274:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** - 8572 .loc 1 3274 0 - 8573 005a 0368 ldr r3, [r0] - 8574 005c 0F32 adds r2, r2, #15 - 8575 005e DA61 str r2, [r3, #28] -3279:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** - 8576 .loc 1 3279 0 - 8577 0060 436C ldr r3, [r0, #68] - 8578 0062 0C3A subs r2, r2, #12 - 8579 0064 1343 orrs r3, r2 - 8580 0066 4364 str r3, [r0, #68] -3282:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** } - 8581 .loc 1 3282 0 - 8582 0068 FFF7FEFF bl I2C_Flush_TXDR - 8583 .LVL754: - 8584 006c EAE7 b .L579 - 8585 .LVL755: - 8586 .L580: -3291:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** { - 8587 .loc 1 3291 0 - 8588 006e AB07 lsls r3, r5, #30 - 8589 0070 0FD5 bpl .L581 -3291:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** { - 8590 .loc 1 3291 0 is_stmt 0 discriminator 1 - 8591 0072 B307 lsls r3, r6, #30 - 8592 0074 0DD5 bpl .L581 -3294:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** hi2c->XferSize--; - 8593 .loc 1 3294 0 is_stmt 1 - 8594 0076 636A ldr r3, [r4, #36] - 8595 0078 5A1C adds r2, r3, #1 - 8596 007a 6262 str r2, [r4, #36] - 8597 007c 2268 ldr r2, [r4] - 8598 007e 1B78 ldrb r3, [r3] - 8599 0080 9362 str r3, [r2, #40] -3295:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** hi2c->XferCount--; - 8600 .loc 1 3295 0 - 8601 0082 238D ldrh r3, [r4, #40] - 8602 0084 013B subs r3, r3, #1 - 8603 0086 2385 strh r3, [r4, #40] -3296:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** } - 8604 .loc 1 3296 0 - 8605 0088 638D ldrh r3, [r4, #42] - 8606 008a 013B subs r3, r3, #1 - 8607 008c 9BB2 uxth r3, r3 - 8608 008e 6385 strh r3, [r4, #42] - 8609 0090 D8E7 b .L579 - 8610 .L581: - ARM GAS /tmp/ccTaFl06.s page 259 - - -3298:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** { - 8611 .loc 1 3298 0 - 8612 0092 2B06 lsls r3, r5, #24 - 8613 0094 40D5 bpl .L582 -3298:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** { - 8614 .loc 1 3298 0 is_stmt 0 discriminator 1 - 8615 0096 7306 lsls r3, r6, #25 - 8616 0098 3ED5 bpl .L582 -3300:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** { - 8617 .loc 1 3300 0 is_stmt 1 - 8618 009a 238D ldrh r3, [r4, #40] - 8619 009c 002B cmp r3, #0 - 8620 009e 2ED1 bne .L583 -3300:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** { - 8621 .loc 1 3300 0 is_stmt 0 discriminator 1 - 8622 00a0 638D ldrh r3, [r4, #42] - 8623 00a2 9BB2 uxth r3, r3 - 8624 00a4 002B cmp r3, #0 - 8625 00a6 2AD0 beq .L583 -3302:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** - 8626 .loc 1 3302 0 is_stmt 1 - 8627 00a8 2368 ldr r3, [r4] - 8628 00aa 5968 ldr r1, [r3, #4] - 8629 .LVL756: - 8630 00ac 8905 lsls r1, r1, #22 - 8631 00ae 890D lsrs r1, r1, #22 - 8632 .LVL757: -3304:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** { - 8633 .loc 1 3304 0 - 8634 00b0 638D ldrh r3, [r4, #42] - 8635 00b2 9BB2 uxth r3, r3 - 8636 00b4 FF2B cmp r3, #255 - 8637 00b6 0ED8 bhi .L593 -3311:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** if (hi2c->XferOptions != I2C_NO_OPTION_FRAME) - 8638 .loc 1 3311 0 - 8639 00b8 628D ldrh r2, [r4, #42] - 8640 00ba 92B2 uxth r2, r2 - 8641 00bc 2285 strh r2, [r4, #40] -3312:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** { - 8642 .loc 1 3312 0 - 8643 00be E06A ldr r0, [r4, #44] - 8644 .LVL758: - 8645 00c0 2A4B ldr r3, .L594 - 8646 00c2 9842 cmp r0, r3 - 8647 00c4 12D0 beq .L585 -3314:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** } - 8648 .loc 1 3314 0 - 8649 00c6 E36A ldr r3, [r4, #44] - 8650 00c8 D2B2 uxtb r2, r2 - 8651 00ca 0020 movs r0, #0 - 8652 00cc 0090 str r0, [sp] - 8653 00ce 2000 movs r0, r4 - 8654 00d0 FFF7FEFF bl I2C_TransferConfig - 8655 .LVL759: - 8656 00d4 B6E7 b .L579 - 8657 .LVL760: - 8658 .L593: - ARM GAS /tmp/ccTaFl06.s page 260 - - -3306:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** I2C_TransferConfig(hi2c, devaddress, hi2c->XferSize, I2C_RELOAD_MODE, I2C_NO_STARTSTOP); - 8659 .loc 1 3306 0 - 8660 00d6 FF23 movs r3, #255 - 8661 00d8 2385 strh r3, [r4, #40] -3307:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** } - 8662 .loc 1 3307 0 - 8663 00da 7F3B subs r3, r3, #127 - 8664 00dc 0022 movs r2, #0 - 8665 00de 0092 str r2, [sp] - 8666 00e0 5B04 lsls r3, r3, #17 - 8667 00e2 FF32 adds r2, r2, #255 - 8668 00e4 2000 movs r0, r4 - 8669 .LVL761: - 8670 00e6 FFF7FEFF bl I2C_TransferConfig - 8671 .LVL762: - 8672 00ea ABE7 b .L579 - 8673 .LVL763: - 8674 .L585: -3318:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** } - 8675 .loc 1 3318 0 - 8676 00ec 8023 movs r3, #128 - 8677 00ee D2B2 uxtb r2, r2 - 8678 00f0 0020 movs r0, #0 - 8679 00f2 0090 str r0, [sp] - 8680 00f4 9B04 lsls r3, r3, #18 - 8681 00f6 2000 movs r0, r4 - 8682 00f8 FFF7FEFF bl I2C_TransferConfig - 8683 .LVL764: - 8684 00fc A2E7 b .L579 - 8685 .LVL765: - 8686 .L583: -3325:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** { - 8687 .loc 1 3325 0 - 8688 00fe 2368 ldr r3, [r4] - 8689 0100 5B68 ldr r3, [r3, #4] - 8690 0102 9B01 lsls r3, r3, #6 - 8691 0104 03D4 bmi .L586 -3328:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** } - 8692 .loc 1 3328 0 - 8693 0106 2000 movs r0, r4 - 8694 .LVL766: - 8695 0108 FFF7FEFF bl I2C_ITMasterSequentialCplt - 8696 .LVL767: - 8697 010c 9AE7 b .L579 - 8698 .LVL768: - 8699 .L586: -3334:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** } - 8700 .loc 1 3334 0 - 8701 010e 4021 movs r1, #64 - 8702 .LVL769: - 8703 0110 2000 movs r0, r4 - 8704 .LVL770: - 8705 0112 FFF7FEFF bl I2C_ITError - 8706 .LVL771: - 8707 0116 95E7 b .L579 - 8708 .LVL772: - 8709 .L582: - ARM GAS /tmp/ccTaFl06.s page 261 - - -3338:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** { - 8710 .loc 1 3338 0 - 8711 0118 6B06 lsls r3, r5, #25 - 8712 011a 00D4 bmi .LCB8656 - 8713 011c 92E7 b .L579 @long jump - 8714 .LCB8656: -3338:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** { - 8715 .loc 1 3338 0 is_stmt 0 discriminator 1 - 8716 011e 7306 lsls r3, r6, #25 - 8717 0120 00D4 bmi .LCB8660 - 8718 0122 8FE7 b .L579 @long jump - 8719 .LCB8660: -3340:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** { - 8720 .loc 1 3340 0 is_stmt 1 - 8721 0124 638D ldrh r3, [r4, #42] - 8722 0126 9BB2 uxth r3, r3 - 8723 0128 002B cmp r3, #0 - 8724 012a 12D1 bne .L587 -3342:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** { - 8725 .loc 1 3342 0 - 8726 012c 2368 ldr r3, [r4] - 8727 012e 5A68 ldr r2, [r3, #4] - 8728 0130 9201 lsls r2, r2, #6 - 8729 0132 00D5 bpl .LCB8670 - 8730 0134 86E7 b .L579 @long jump - 8731 .LCB8670: -3345:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** { - 8732 .loc 1 3345 0 - 8733 0136 E16A ldr r1, [r4, #44] - 8734 .LVL773: - 8735 0138 0C4A ldr r2, .L594 - 8736 013a 9142 cmp r1, r2 - 8737 013c 05D1 bne .L588 -3348:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** } - 8738 .loc 1 3348 0 - 8739 013e 5968 ldr r1, [r3, #4] - 8740 0140 8022 movs r2, #128 - 8741 0142 D201 lsls r2, r2, #7 - 8742 0144 0A43 orrs r2, r1 - 8743 0146 5A60 str r2, [r3, #4] - 8744 0148 7CE7 b .L579 - 8745 .L588: -3353:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** } - 8746 .loc 1 3353 0 - 8747 014a 2000 movs r0, r4 - 8748 .LVL774: - 8749 014c FFF7FEFF bl I2C_ITMasterSequentialCplt - 8750 .LVL775: - 8751 0150 78E7 b .L579 - 8752 .LVL776: - 8753 .L587: -3361:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** } - 8754 .loc 1 3361 0 - 8755 0152 4021 movs r1, #64 - 8756 .LVL777: - 8757 0154 2000 movs r0, r4 - 8758 .LVL778: - ARM GAS /tmp/ccTaFl06.s page 262 - - - 8759 0156 FFF7FEFF bl I2C_ITError - 8760 .LVL779: - 8761 015a 73E7 b .L579 - 8762 .LVL780: - 8763 .L592: -3368:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** } - 8764 .loc 1 3368 0 - 8765 015c 2900 movs r1, r5 - 8766 015e 2000 movs r0, r4 - 8767 0160 FFF7FEFF bl I2C_ITMasterCplt - 8768 .LVL781: - 8769 0164 73E7 b .L589 - 8770 .LVL782: - 8771 .L590: -3269:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** - 8772 .loc 1 3269 0 - 8773 0166 0220 movs r0, #2 - 8774 .LVL783: - 8775 0168 75E7 b .L577 - 8776 .L595: - 8777 016a C046 .align 2 - 8778 .L594: - 8779 016c 0000FFFF .word -65536 - 8780 .cfi_endproc - 8781 .LFE82: - 8783 .section .text.I2C_Master_ISR_DMA,"ax",%progbits - 8784 .align 1 - 8785 .syntax unified - 8786 .code 16 - 8787 .thumb_func - 8788 .fpu softvfp - 8790 I2C_Master_ISR_DMA: - 8791 .LFB84: -3499:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** uint16_t devaddress = 0U; - 8792 .loc 1 3499 0 - 8793 .cfi_startproc - 8794 @ args = 0, pretend = 0, frame = 0 - 8795 @ frame_needed = 0, uses_anonymous_args = 0 - 8796 .LVL784: - 8797 0000 10B5 push {r4, lr} - 8798 .LCFI76: - 8799 .cfi_def_cfa_offset 8 - 8800 .cfi_offset 4, -8 - 8801 .cfi_offset 14, -4 - 8802 0002 82B0 sub sp, sp, #8 - 8803 .LCFI77: - 8804 .cfi_def_cfa_offset 16 - 8805 0004 0400 movs r4, r0 - 8806 .LVL785: -3504:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** - 8807 .loc 1 3504 0 - 8808 0006 4023 movs r3, #64 - 8809 0008 C35C ldrb r3, [r0, r3] - 8810 000a 012B cmp r3, #1 - 8811 000c 64D0 beq .L605 -3504:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** - 8812 .loc 1 3504 0 is_stmt 0 discriminator 2 - ARM GAS /tmp/ccTaFl06.s page 263 - - - 8813 000e 4023 movs r3, #64 - 8814 0010 0120 movs r0, #1 - 8815 .LVL786: - 8816 0012 E054 strb r0, [r4, r3] -3506:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** { - 8817 .loc 1 3506 0 is_stmt 1 discriminator 2 - 8818 0014 CB06 lsls r3, r1, #27 - 8819 0016 01D5 bpl .L598 -3506:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** { - 8820 .loc 1 3506 0 is_stmt 0 discriminator 1 - 8821 0018 D306 lsls r3, r2, #27 - 8822 001a 2FD4 bmi .L606 - 8823 .L598: -3522:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** { - 8824 .loc 1 3522 0 is_stmt 1 - 8825 001c 0B06 lsls r3, r1, #24 - 8826 001e 4DD5 bpl .L600 -3522:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** { - 8827 .loc 1 3522 0 is_stmt 0 discriminator 1 - 8828 0020 5306 lsls r3, r2, #25 - 8829 0022 4BD5 bpl .L600 -3525:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** - 8830 .loc 1 3525 0 is_stmt 1 - 8831 0024 2268 ldr r2, [r4] - 8832 .LVL787: - 8833 0026 1368 ldr r3, [r2] - 8834 0028 4021 movs r1, #64 - 8835 .LVL788: - 8836 002a 8B43 bics r3, r1 - 8837 002c 1360 str r3, [r2] -3527:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** { - 8838 .loc 1 3527 0 - 8839 002e 638D ldrh r3, [r4, #42] - 8840 0030 9BB2 uxth r3, r3 - 8841 0032 002B cmp r3, #0 - 8842 0034 3DD0 beq .L601 -3530:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** - 8843 .loc 1 3530 0 - 8844 0036 2368 ldr r3, [r4] - 8845 0038 5968 ldr r1, [r3, #4] - 8846 003a 8905 lsls r1, r1, #22 - 8847 003c 890D lsrs r1, r1, #22 - 8848 .LVL789: -3533:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** { - 8849 .loc 1 3533 0 - 8850 003e 638D ldrh r3, [r4, #42] - 8851 0040 9BB2 uxth r3, r3 - 8852 0042 FF2B cmp r3, #255 - 8853 0044 29D9 bls .L602 -3535:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** xfermode = I2C_RELOAD_MODE; - 8854 .loc 1 3535 0 - 8855 0046 FF23 movs r3, #255 - 8856 0048 2385 strh r3, [r4, #40] - 8857 .LVL790: -3536:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** } - 8858 .loc 1 3536 0 - 8859 004a 8023 movs r3, #128 - ARM GAS /tmp/ccTaFl06.s page 264 - - - 8860 004c 5B04 lsls r3, r3, #17 - 8861 .LVL791: - 8862 .L603: -3545:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** - 8863 .loc 1 3545 0 - 8864 004e 228D ldrh r2, [r4, #40] - 8865 0050 D2B2 uxtb r2, r2 - 8866 0052 0020 movs r0, #0 - 8867 0054 0090 str r0, [sp] - 8868 0056 2000 movs r0, r4 - 8869 0058 FFF7FEFF bl I2C_TransferConfig - 8870 .LVL792: -3548:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** - 8871 .loc 1 3548 0 - 8872 005c 638D ldrh r3, [r4, #42] - 8873 005e 228D ldrh r2, [r4, #40] - 8874 0060 9B1A subs r3, r3, r2 - 8875 0062 9BB2 uxth r3, r3 - 8876 0064 6385 strh r3, [r4, #42] -3551:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** { - 8877 .loc 1 3551 0 - 8878 0066 4123 movs r3, #65 - 8879 0068 E35C ldrb r3, [r4, r3] - 8880 006a 222B cmp r3, #34 - 8881 006c 1AD0 beq .L607 -3557:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** } - 8882 .loc 1 3557 0 - 8883 006e 2268 ldr r2, [r4] - 8884 0070 1168 ldr r1, [r2] - 8885 0072 8023 movs r3, #128 - 8886 0074 DB01 lsls r3, r3, #7 - 8887 0076 0B43 orrs r3, r1 - 8888 0078 1360 str r3, [r2] - 8889 007a 23E0 b .L599 - 8890 .LVL793: - 8891 .L606: -3509:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** - 8892 .loc 1 3509 0 - 8893 007c 2368 ldr r3, [r4] - 8894 007e 1022 movs r2, #16 - 8895 .LVL794: - 8896 0080 DA61 str r2, [r3, #28] -3512:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** - 8897 .loc 1 3512 0 - 8898 0082 636C ldr r3, [r4, #68] - 8899 0084 0C3A subs r2, r2, #12 - 8900 0086 1343 orrs r3, r2 - 8901 0088 6364 str r3, [r4, #68] -3517:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** - 8902 .loc 1 3517 0 - 8903 008a 1221 movs r1, #18 - 8904 .LVL795: - 8905 008c 2000 movs r0, r4 - 8906 008e FFF7FEFF bl I2C_Enable_IRQ - 8907 .LVL796: -3520:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** } - 8908 .loc 1 3520 0 - ARM GAS /tmp/ccTaFl06.s page 265 - - - 8909 0092 2000 movs r0, r4 - 8910 0094 FFF7FEFF bl I2C_Flush_TXDR - 8911 .LVL797: - 8912 0098 14E0 b .L599 - 8913 .LVL798: - 8914 .L602: -3540:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** xfermode = I2C_AUTOEND_MODE; - 8915 .loc 1 3540 0 - 8916 009a 638D ldrh r3, [r4, #42] - 8917 009c 2385 strh r3, [r4, #40] - 8918 .LVL799: -3541:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** } - 8919 .loc 1 3541 0 - 8920 009e 8023 movs r3, #128 - 8921 00a0 9B04 lsls r3, r3, #18 - 8922 00a2 D4E7 b .L603 - 8923 .LVL800: - 8924 .L607: -3553:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** } - 8925 .loc 1 3553 0 - 8926 00a4 2268 ldr r2, [r4] - 8927 00a6 1168 ldr r1, [r2] - 8928 00a8 8023 movs r3, #128 - 8929 00aa 1B02 lsls r3, r3, #8 - 8930 00ac 0B43 orrs r3, r1 - 8931 00ae 1360 str r3, [r2] - 8932 00b0 08E0 b .L599 - 8933 .LVL801: - 8934 .L601: -3564:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** } - 8935 .loc 1 3564 0 - 8936 00b2 4021 movs r1, #64 - 8937 00b4 2000 movs r0, r4 - 8938 00b6 FFF7FEFF bl I2C_ITError - 8939 .LVL802: - 8940 00ba 03E0 b .L599 - 8941 .LVL803: - 8942 .L600: -3567:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** { - 8943 .loc 1 3567 0 - 8944 00bc 8B06 lsls r3, r1, #26 - 8945 00be 01D5 bpl .L599 -3567:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** { - 8946 .loc 1 3567 0 is_stmt 0 discriminator 1 - 8947 00c0 9306 lsls r3, r2, #26 - 8948 00c2 05D4 bmi .L608 - 8949 .LVL804: - 8950 .L599: -3574:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** - 8951 .loc 1 3574 0 is_stmt 1 - 8952 00c4 4023 movs r3, #64 - 8953 00c6 0022 movs r2, #0 - 8954 00c8 E254 strb r2, [r4, r3] -3576:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** } - 8955 .loc 1 3576 0 - 8956 00ca 0020 movs r0, #0 - 8957 .L597: - ARM GAS /tmp/ccTaFl06.s page 266 - - -3577:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** - 8958 .loc 1 3577 0 - 8959 00cc 02B0 add sp, sp, #8 - 8960 @ sp needed - 8961 .LVL805: - 8962 00ce 10BD pop {r4, pc} - 8963 .LVL806: - 8964 .L608: -3570:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** } - 8965 .loc 1 3570 0 - 8966 00d0 2000 movs r0, r4 - 8967 00d2 FFF7FEFF bl I2C_ITMasterCplt - 8968 .LVL807: - 8969 00d6 F5E7 b .L599 - 8970 .LVL808: - 8971 .L605: -3504:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** - 8972 .loc 1 3504 0 - 8973 00d8 0220 movs r0, #2 - 8974 .LVL809: - 8975 00da F7E7 b .L597 - 8976 .cfi_endproc - 8977 .LFE84: - 8979 .section .text.I2C_DMAError,"ax",%progbits - 8980 .align 1 - 8981 .syntax unified - 8982 .code 16 - 8983 .thumb_func - 8984 .fpu softvfp - 8986 I2C_DMAError: - 8987 .LFB100: -4422:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** I2C_HandleTypeDef *hi2c = (I2C_HandleTypeDef *)((DMA_HandleTypeDef *)hdma)->Parent; - 8988 .loc 1 4422 0 - 8989 .cfi_startproc - 8990 @ args = 0, pretend = 0, frame = 0 - 8991 @ frame_needed = 0, uses_anonymous_args = 0 - 8992 .LVL810: - 8993 0000 10B5 push {r4, lr} - 8994 .LCFI78: - 8995 .cfi_def_cfa_offset 8 - 8996 .cfi_offset 4, -8 - 8997 .cfi_offset 14, -4 -4423:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** - 8998 .loc 1 4423 0 - 8999 0002 406A ldr r0, [r0, #36] - 9000 .LVL811: -4426:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** - 9001 .loc 1 4426 0 - 9002 0004 0268 ldr r2, [r0] - 9003 0006 5168 ldr r1, [r2, #4] - 9004 0008 8023 movs r3, #128 - 9005 000a 1B02 lsls r3, r3, #8 - 9006 000c 0B43 orrs r3, r1 - 9007 000e 5360 str r3, [r2, #4] -4429:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** } - 9008 .loc 1 4429 0 - 9009 0010 1021 movs r1, #16 - ARM GAS /tmp/ccTaFl06.s page 267 - - - 9010 0012 FFF7FEFF bl I2C_ITError - 9011 .LVL812: -4430:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** - 9012 .loc 1 4430 0 - 9013 @ sp needed - 9014 0016 10BD pop {r4, pc} - 9015 .cfi_endproc - 9016 .LFE100: - 9018 .section .text.HAL_I2C_ER_IRQHandler,"ax",%progbits - 9019 .align 1 - 9020 .global HAL_I2C_ER_IRQHandler - 9021 .syntax unified - 9022 .code 16 - 9023 .thumb_func - 9024 .fpu softvfp - 9026 HAL_I2C_ER_IRQHandler: - 9027 .LFB68: -2990:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** uint32_t itflags = READ_REG(hi2c->Instance->ISR); - 9028 .loc 1 2990 0 - 9029 .cfi_startproc - 9030 @ args = 0, pretend = 0, frame = 0 - 9031 @ frame_needed = 0, uses_anonymous_args = 0 - 9032 .LVL813: - 9033 0000 70B5 push {r4, r5, r6, lr} - 9034 .LCFI79: - 9035 .cfi_def_cfa_offset 16 - 9036 .cfi_offset 4, -16 - 9037 .cfi_offset 5, -12 - 9038 .cfi_offset 6, -8 - 9039 .cfi_offset 14, -4 -2991:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** uint32_t itsources = READ_REG(hi2c->Instance->CR1); - 9040 .loc 1 2991 0 - 9041 0002 0268 ldr r2, [r0] - 9042 0004 9369 ldr r3, [r2, #24] - 9043 .LVL814: -2992:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** - 9044 .loc 1 2992 0 - 9045 0006 1168 ldr r1, [r2] - 9046 .LVL815: -2995:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** { - 9047 .loc 1 2995 0 - 9048 0008 DC05 lsls r4, r3, #23 - 9049 000a 08D5 bpl .L611 -2995:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** { - 9050 .loc 1 2995 0 is_stmt 0 discriminator 1 - 9051 000c 0C06 lsls r4, r1, #24 - 9052 000e 06D5 bpl .L611 -2997:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** - 9053 .loc 1 2997 0 is_stmt 1 - 9054 0010 446C ldr r4, [r0, #68] - 9055 0012 0125 movs r5, #1 - 9056 0014 2C43 orrs r4, r5 - 9057 0016 4464 str r4, [r0, #68] -3000:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** } - 9058 .loc 1 3000 0 - 9059 0018 8024 movs r4, #128 - 9060 001a 6400 lsls r4, r4, #1 - ARM GAS /tmp/ccTaFl06.s page 268 - - - 9061 001c D461 str r4, [r2, #28] - 9062 .L611: -3004:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** { - 9063 .loc 1 3004 0 - 9064 001e 5A05 lsls r2, r3, #21 - 9065 0020 09D5 bpl .L612 -3004:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** { - 9066 .loc 1 3004 0 is_stmt 0 discriminator 1 - 9067 0022 0A06 lsls r2, r1, #24 - 9068 0024 07D5 bpl .L612 -3006:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** - 9069 .loc 1 3006 0 is_stmt 1 - 9070 0026 426C ldr r2, [r0, #68] - 9071 0028 0824 movs r4, #8 - 9072 002a 2243 orrs r2, r4 - 9073 002c 4264 str r2, [r0, #68] -3009:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** } - 9074 .loc 1 3009 0 - 9075 002e 0268 ldr r2, [r0] - 9076 0030 8024 movs r4, #128 - 9077 0032 E400 lsls r4, r4, #3 - 9078 0034 D461 str r4, [r2, #28] - 9079 .L612: -3013:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** { - 9080 .loc 1 3013 0 - 9081 0036 9B05 lsls r3, r3, #22 - 9082 0038 09D5 bpl .L613 - 9083 .LVL816: -3013:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** { - 9084 .loc 1 3013 0 is_stmt 0 discriminator 1 - 9085 003a 0B06 lsls r3, r1, #24 - 9086 003c 07D5 bpl .L613 -3015:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** - 9087 .loc 1 3015 0 is_stmt 1 - 9088 003e 436C ldr r3, [r0, #68] - 9089 0040 0222 movs r2, #2 - 9090 0042 1343 orrs r3, r2 - 9091 0044 4364 str r3, [r0, #68] -3018:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** } - 9092 .loc 1 3018 0 - 9093 0046 0368 ldr r3, [r0] - 9094 0048 FF32 adds r2, r2, #255 - 9095 004a FF32 adds r2, r2, #255 - 9096 004c DA61 str r2, [r3, #28] - 9097 .L613: -3022:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** { - 9098 .loc 1 3022 0 - 9099 004e 436C ldr r3, [r0, #68] - 9100 0050 0B22 movs r2, #11 - 9101 0052 1A42 tst r2, r3 - 9102 0054 00D1 bne .L615 - 9103 .LVL817: - 9104 .L610: -3026:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** - 9105 .loc 1 3026 0 - 9106 @ sp needed - 9107 0056 70BD pop {r4, r5, r6, pc} - ARM GAS /tmp/ccTaFl06.s page 269 - - - 9108 .LVL818: - 9109 .L615: -3024:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** } - 9110 .loc 1 3024 0 - 9111 0058 416C ldr r1, [r0, #68] - 9112 .LVL819: - 9113 005a FFF7FEFF bl I2C_ITError - 9114 .LVL820: -3026:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** - 9115 .loc 1 3026 0 - 9116 005e FAE7 b .L610 - 9117 .cfi_endproc - 9118 .LFE68: - 9120 .section .text.I2C_DMAAbort,"ax",%progbits - 9121 .align 1 - 9122 .syntax unified - 9123 .code 16 - 9124 .thumb_func - 9125 .fpu softvfp - 9127 I2C_DMAAbort: - 9128 .LFB101: -4439:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** I2C_HandleTypeDef *hi2c = (I2C_HandleTypeDef *)((DMA_HandleTypeDef *)hdma)->Parent; - 9129 .loc 1 4439 0 - 9130 .cfi_startproc - 9131 @ args = 0, pretend = 0, frame = 0 - 9132 @ frame_needed = 0, uses_anonymous_args = 0 - 9133 .LVL821: - 9134 0000 10B5 push {r4, lr} - 9135 .LCFI80: - 9136 .cfi_def_cfa_offset 8 - 9137 .cfi_offset 4, -8 - 9138 .cfi_offset 14, -4 -4440:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** - 9139 .loc 1 4440 0 - 9140 0002 406A ldr r0, [r0, #36] - 9141 .LVL822: -4443:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** - 9142 .loc 1 4443 0 - 9143 0004 0268 ldr r2, [r0] - 9144 0006 5168 ldr r1, [r2, #4] - 9145 0008 8023 movs r3, #128 - 9146 000a 1B02 lsls r3, r3, #8 - 9147 000c 0B43 orrs r3, r1 - 9148 000e 5360 str r3, [r2, #4] -4446:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** hi2c->hdmarx->XferAbortCallback = NULL; - 9149 .loc 1 4446 0 - 9150 0010 826B ldr r2, [r0, #56] - 9151 0012 0023 movs r3, #0 - 9152 0014 5363 str r3, [r2, #52] -4447:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** - 9153 .loc 1 4447 0 - 9154 0016 C26B ldr r2, [r0, #60] - 9155 0018 5363 str r3, [r2, #52] -4450:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** { - 9156 .loc 1 4450 0 - 9157 001a 4133 adds r3, r3, #65 - 9158 001c C35C ldrb r3, [r0, r3] - ARM GAS /tmp/ccTaFl06.s page 270 - - - 9159 001e 602B cmp r3, #96 - 9160 0020 02D0 beq .L619 -4460:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** } - 9161 .loc 1 4460 0 - 9162 0022 FFF7FEFF bl HAL_I2C_ErrorCallback - 9163 .LVL823: - 9164 .L616: -4462:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** - 9165 .loc 1 4462 0 - 9166 @ sp needed - 9167 0026 10BD pop {r4, pc} - 9168 .LVL824: - 9169 .L619: -4452:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** - 9170 .loc 1 4452 0 - 9171 0028 1F3B subs r3, r3, #31 - 9172 002a 2022 movs r2, #32 - 9173 002c C254 strb r2, [r0, r3] -4455:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** } - 9174 .loc 1 4455 0 - 9175 002e FFF7FEFF bl HAL_I2C_AbortCpltCallback - 9176 .LVL825: - 9177 0032 F8E7 b .L616 - 9178 .cfi_endproc - 9179 .LFE101: - 9181 .section .text.HAL_I2C_GetState,"ax",%progbits - 9182 .align 1 - 9183 .global HAL_I2C_GetState - 9184 .syntax unified - 9185 .code 16 - 9186 .thumb_func - 9187 .fpu softvfp - 9189 HAL_I2C_GetState: - 9190 .LFB79: -3217:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** /* Return I2C handle state */ - 9191 .loc 1 3217 0 - 9192 .cfi_startproc - 9193 @ args = 0, pretend = 0, frame = 0 - 9194 @ frame_needed = 0, uses_anonymous_args = 0 - 9195 @ link register save eliminated. - 9196 .LVL826: -3219:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** } - 9197 .loc 1 3219 0 - 9198 0000 4123 movs r3, #65 - 9199 0002 C05C ldrb r0, [r0, r3] - 9200 .LVL827: - 9201 0004 C0B2 uxtb r0, r0 -3220:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** - 9202 .loc 1 3220 0 - 9203 @ sp needed - 9204 0006 7047 bx lr - 9205 .cfi_endproc - 9206 .LFE79: - 9208 .section .text.HAL_I2C_GetMode,"ax",%progbits - 9209 .align 1 - 9210 .global HAL_I2C_GetMode - 9211 .syntax unified - ARM GAS /tmp/ccTaFl06.s page 271 - - - 9212 .code 16 - 9213 .thumb_func - 9214 .fpu softvfp - 9216 HAL_I2C_GetMode: - 9217 .LFB80: -3229:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** return hi2c->Mode; - 9218 .loc 1 3229 0 - 9219 .cfi_startproc - 9220 @ args = 0, pretend = 0, frame = 0 - 9221 @ frame_needed = 0, uses_anonymous_args = 0 - 9222 @ link register save eliminated. - 9223 .LVL828: -3230:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** } - 9224 .loc 1 3230 0 - 9225 0000 4223 movs r3, #66 - 9226 0002 C05C ldrb r0, [r0, r3] - 9227 .LVL829: - 9228 0004 C0B2 uxtb r0, r0 -3231:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** - 9229 .loc 1 3231 0 - 9230 @ sp needed - 9231 0006 7047 bx lr - 9232 .cfi_endproc - 9233 .LFE80: - 9235 .section .text.HAL_I2C_GetError,"ax",%progbits - 9236 .align 1 - 9237 .global HAL_I2C_GetError - 9238 .syntax unified - 9239 .code 16 - 9240 .thumb_func - 9241 .fpu softvfp - 9243 HAL_I2C_GetError: - 9244 .LFB81: -3240:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** return hi2c->ErrorCode; - 9245 .loc 1 3240 0 - 9246 .cfi_startproc - 9247 @ args = 0, pretend = 0, frame = 0 - 9248 @ frame_needed = 0, uses_anonymous_args = 0 - 9249 @ link register save eliminated. - 9250 .LVL830: -3241:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** } - 9251 .loc 1 3241 0 - 9252 0000 406C ldr r0, [r0, #68] - 9253 .LVL831: -3242:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c **** - 9254 .loc 1 3242 0 - 9255 @ sp needed - 9256 0002 7047 bx lr - 9257 .cfi_endproc - 9258 .LFE81: - 9260 .text - 9261 .Letext0: - 9262 .file 2 "/home/janhenrik/programme/gcc-arm-none-eabi-7-2018-q2-update/arm-none-eabi/include/machin - 9263 .file 3 "/home/janhenrik/programme/gcc-arm-none-eabi-7-2018-q2-update/arm-none-eabi/include/sys/_s - 9264 .file 4 "Drivers/CMSIS/Device/ST/STM32F0xx/Include/system_stm32f0xx.h" - 9265 .file 5 "Drivers/CMSIS/Device/ST/STM32F0xx/Include/stm32f072xb.h" - 9266 .file 6 "Drivers/CMSIS/Device/ST/STM32F0xx/Include/stm32f0xx.h" - ARM GAS /tmp/ccTaFl06.s page 272 - - - 9267 .file 7 "/home/janhenrik/programme/gcc-arm-none-eabi-7-2018-q2-update/arm-none-eabi/include/sys/lo - 9268 .file 8 "/home/janhenrik/programme/gcc-arm-none-eabi-7-2018-q2-update/arm-none-eabi/include/sys/_t - 9269 .file 9 "/home/janhenrik/programme/gcc-arm-none-eabi-7-2018-q2-update/lib/gcc/arm-none-eabi/7.3.1/ - 9270 .file 10 "/home/janhenrik/programme/gcc-arm-none-eabi-7-2018-q2-update/arm-none-eabi/include/sys/r - 9271 .file 11 "Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_def.h" - 9272 .file 12 "Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_dma.h" - 9273 .file 13 "Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_i2c.h" - 9274 .file 14 "Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal.h" - ARM GAS /tmp/ccTaFl06.s page 273 - - -DEFINED SYMBOLS - *ABS*:0000000000000000 stm32f0xx_hal_i2c.c - /tmp/ccTaFl06.s:16 .text.I2C_Flush_TXDR:0000000000000000 $t - /tmp/ccTaFl06.s:22 .text.I2C_Flush_TXDR:0000000000000000 I2C_Flush_TXDR - /tmp/ccTaFl06.s:58 .text.I2C_DMASlaveTransmitCplt:0000000000000000 $t - /tmp/ccTaFl06.s:64 .text.I2C_DMASlaveTransmitCplt:0000000000000000 I2C_DMASlaveTransmitCplt - /tmp/ccTaFl06.s:79 .text.I2C_DMASlaveReceiveCplt:0000000000000000 $t - /tmp/ccTaFl06.s:85 .text.I2C_DMASlaveReceiveCplt:0000000000000000 I2C_DMASlaveReceiveCplt - /tmp/ccTaFl06.s:100 .text.I2C_TransferConfig:0000000000000000 $t - /tmp/ccTaFl06.s:106 .text.I2C_TransferConfig:0000000000000000 I2C_TransferConfig - /tmp/ccTaFl06.s:152 .text.I2C_TransferConfig:0000000000000024 $d - /tmp/ccTaFl06.s:157 .text.I2C_Enable_IRQ:0000000000000000 $t - /tmp/ccTaFl06.s:163 .text.I2C_Enable_IRQ:0000000000000000 I2C_Enable_IRQ - /tmp/ccTaFl06.s:284 .text.I2C_Enable_IRQ:0000000000000074 $d - /tmp/ccTaFl06.s:8790 .text.I2C_Master_ISR_DMA:0000000000000000 I2C_Master_ISR_DMA - /tmp/ccTaFl06.s:8181 .text.I2C_Slave_ISR_DMA:0000000000000000 I2C_Slave_ISR_DMA - /tmp/ccTaFl06.s:290 .text.I2C_Disable_IRQ:0000000000000000 $t - /tmp/ccTaFl06.s:296 .text.I2C_Disable_IRQ:0000000000000000 I2C_Disable_IRQ - /tmp/ccTaFl06.s:417 .text.I2C_IsAcknowledgeFailed:0000000000000000 $t - /tmp/ccTaFl06.s:423 .text.I2C_IsAcknowledgeFailed:0000000000000000 I2C_IsAcknowledgeFailed - /tmp/ccTaFl06.s:529 .text.I2C_IsAcknowledgeFailed:0000000000000074 $d - /tmp/ccTaFl06.s:534 .text.I2C_WaitOnTXISFlagUntilTimeout:0000000000000000 $t - /tmp/ccTaFl06.s:540 .text.I2C_WaitOnTXISFlagUntilTimeout:0000000000000000 I2C_WaitOnTXISFlagUntilTimeout - /tmp/ccTaFl06.s:622 .text.I2C_WaitOnFlagUntilTimeout:0000000000000000 $t - /tmp/ccTaFl06.s:628 .text.I2C_WaitOnFlagUntilTimeout:0000000000000000 I2C_WaitOnFlagUntilTimeout - /tmp/ccTaFl06.s:701 .text.I2C_RequestMemoryWrite:0000000000000000 $t - /tmp/ccTaFl06.s:707 .text.I2C_RequestMemoryWrite:0000000000000000 I2C_RequestMemoryWrite - /tmp/ccTaFl06.s:822 .text.I2C_RequestMemoryRead:0000000000000000 $t - /tmp/ccTaFl06.s:828 .text.I2C_RequestMemoryRead:0000000000000000 I2C_RequestMemoryRead - /tmp/ccTaFl06.s:940 .text.I2C_WaitOnSTOPFlagUntilTimeout:0000000000000000 $t - /tmp/ccTaFl06.s:946 .text.I2C_WaitOnSTOPFlagUntilTimeout:0000000000000000 I2C_WaitOnSTOPFlagUntilTimeout - /tmp/ccTaFl06.s:1025 .text.I2C_WaitOnRXNEFlagUntilTimeout:0000000000000000 $t - /tmp/ccTaFl06.s:1031 .text.I2C_WaitOnRXNEFlagUntilTimeout:0000000000000000 I2C_WaitOnRXNEFlagUntilTimeout - /tmp/ccTaFl06.s:1136 .text.I2C_WaitOnRXNEFlagUntilTimeout:0000000000000074 $d - /tmp/ccTaFl06.s:1141 .text.I2C_DMAMasterTransmitCplt:0000000000000000 $t - /tmp/ccTaFl06.s:1147 .text.I2C_DMAMasterTransmitCplt:0000000000000000 I2C_DMAMasterTransmitCplt - /tmp/ccTaFl06.s:1224 .text.I2C_DMAMasterTransmitCplt:0000000000000054 $d - /tmp/ccTaFl06.s:1229 .text.I2C_DMAMasterReceiveCplt:0000000000000000 $t - /tmp/ccTaFl06.s:1235 .text.I2C_DMAMasterReceiveCplt:0000000000000000 I2C_DMAMasterReceiveCplt - /tmp/ccTaFl06.s:1312 .text.I2C_DMAMasterReceiveCplt:0000000000000054 $d - /tmp/ccTaFl06.s:1317 .text.HAL_I2C_MspInit:0000000000000000 $t - /tmp/ccTaFl06.s:1324 .text.HAL_I2C_MspInit:0000000000000000 HAL_I2C_MspInit - /tmp/ccTaFl06.s:1339 .text.HAL_I2C_Init:0000000000000000 $t - /tmp/ccTaFl06.s:1346 .text.HAL_I2C_Init:0000000000000000 HAL_I2C_Init - /tmp/ccTaFl06.s:1494 .text.HAL_I2C_Init:00000000000000c0 $d - /tmp/ccTaFl06.s:1501 .text.HAL_I2C_MspDeInit:0000000000000000 $t - /tmp/ccTaFl06.s:1508 .text.HAL_I2C_MspDeInit:0000000000000000 HAL_I2C_MspDeInit - /tmp/ccTaFl06.s:1523 .text.HAL_I2C_DeInit:0000000000000000 $t - /tmp/ccTaFl06.s:1530 .text.HAL_I2C_DeInit:0000000000000000 HAL_I2C_DeInit - /tmp/ccTaFl06.s:1590 .text.HAL_I2C_Master_Transmit:0000000000000000 $t - /tmp/ccTaFl06.s:1597 .text.HAL_I2C_Master_Transmit:0000000000000000 HAL_I2C_Master_Transmit - /tmp/ccTaFl06.s:1884 .text.HAL_I2C_Master_Transmit:000000000000017c $d - /tmp/ccTaFl06.s:1889 .text.HAL_I2C_Master_Receive:0000000000000000 $t - /tmp/ccTaFl06.s:1896 .text.HAL_I2C_Master_Receive:0000000000000000 HAL_I2C_Master_Receive - /tmp/ccTaFl06.s:2183 .text.HAL_I2C_Master_Receive:000000000000017c $d - /tmp/ccTaFl06.s:2188 .text.HAL_I2C_Slave_Transmit:0000000000000000 $t - /tmp/ccTaFl06.s:2195 .text.HAL_I2C_Slave_Transmit:0000000000000000 HAL_I2C_Slave_Transmit - ARM GAS /tmp/ccTaFl06.s page 274 - - - /tmp/ccTaFl06.s:2509 .text.HAL_I2C_Slave_Transmit:000000000000019c $d - /tmp/ccTaFl06.s:2514 .text.HAL_I2C_Slave_Receive:0000000000000000 $t - /tmp/ccTaFl06.s:2521 .text.HAL_I2C_Slave_Receive:0000000000000000 HAL_I2C_Slave_Receive - /tmp/ccTaFl06.s:2820 .text.HAL_I2C_Slave_Receive:0000000000000188 $d - /tmp/ccTaFl06.s:2825 .text.HAL_I2C_Master_Transmit_IT:0000000000000000 $t - /tmp/ccTaFl06.s:2832 .text.HAL_I2C_Master_Transmit_IT:0000000000000000 HAL_I2C_Master_Transmit_IT - /tmp/ccTaFl06.s:2963 .text.HAL_I2C_Master_Transmit_IT:000000000000008c $d - /tmp/ccTaFl06.s:8482 .text.I2C_Master_ISR_IT:0000000000000000 I2C_Master_ISR_IT - /tmp/ccTaFl06.s:2969 .text.HAL_I2C_Master_Receive_IT:0000000000000000 $t - /tmp/ccTaFl06.s:2976 .text.HAL_I2C_Master_Receive_IT:0000000000000000 HAL_I2C_Master_Receive_IT - /tmp/ccTaFl06.s:3107 .text.HAL_I2C_Master_Receive_IT:000000000000008c $d - /tmp/ccTaFl06.s:3113 .text.HAL_I2C_Slave_Transmit_IT:0000000000000000 $t - /tmp/ccTaFl06.s:3120 .text.HAL_I2C_Slave_Transmit_IT:0000000000000000 HAL_I2C_Slave_Transmit_IT - /tmp/ccTaFl06.s:3208 .text.HAL_I2C_Slave_Transmit_IT:0000000000000058 $d - /tmp/ccTaFl06.s:7909 .text.I2C_Slave_ISR_IT:0000000000000000 I2C_Slave_ISR_IT - /tmp/ccTaFl06.s:3215 .text.HAL_I2C_Slave_Receive_IT:0000000000000000 $t - /tmp/ccTaFl06.s:3222 .text.HAL_I2C_Slave_Receive_IT:0000000000000000 HAL_I2C_Slave_Receive_IT - /tmp/ccTaFl06.s:3310 .text.HAL_I2C_Slave_Receive_IT:0000000000000058 $d - /tmp/ccTaFl06.s:3317 .text.HAL_I2C_Master_Transmit_DMA:0000000000000000 $t - /tmp/ccTaFl06.s:3324 .text.HAL_I2C_Master_Transmit_DMA:0000000000000000 HAL_I2C_Master_Transmit_DMA - /tmp/ccTaFl06.s:3535 .text.HAL_I2C_Master_Transmit_DMA:00000000000000fc $d - /tmp/ccTaFl06.s:8986 .text.I2C_DMAError:0000000000000000 I2C_DMAError - /tmp/ccTaFl06.s:3544 .text.HAL_I2C_Master_Receive_DMA:0000000000000000 $t - /tmp/ccTaFl06.s:3551 .text.HAL_I2C_Master_Receive_DMA:0000000000000000 HAL_I2C_Master_Receive_DMA - /tmp/ccTaFl06.s:3761 .text.HAL_I2C_Master_Receive_DMA:00000000000000fc $d - /tmp/ccTaFl06.s:3770 .text.HAL_I2C_Slave_Transmit_DMA:0000000000000000 $t - /tmp/ccTaFl06.s:3777 .text.HAL_I2C_Slave_Transmit_DMA:0000000000000000 HAL_I2C_Slave_Transmit_DMA - /tmp/ccTaFl06.s:3912 .text.HAL_I2C_Slave_Transmit_DMA:0000000000000098 $d - /tmp/ccTaFl06.s:3921 .text.HAL_I2C_Slave_Receive_DMA:0000000000000000 $t - /tmp/ccTaFl06.s:3928 .text.HAL_I2C_Slave_Receive_DMA:0000000000000000 HAL_I2C_Slave_Receive_DMA - /tmp/ccTaFl06.s:4066 .text.HAL_I2C_Slave_Receive_DMA:000000000000009c $d - /tmp/ccTaFl06.s:4075 .text.HAL_I2C_Mem_Write:0000000000000000 $t - /tmp/ccTaFl06.s:4082 .text.HAL_I2C_Mem_Write:0000000000000000 HAL_I2C_Mem_Write - /tmp/ccTaFl06.s:4424 .text.HAL_I2C_Mem_Write:00000000000001c4 $d - /tmp/ccTaFl06.s:4429 .text.HAL_I2C_Mem_Read:0000000000000000 $t - /tmp/ccTaFl06.s:4436 .text.HAL_I2C_Mem_Read:0000000000000000 HAL_I2C_Mem_Read - /tmp/ccTaFl06.s:4772 .text.HAL_I2C_Mem_Read:00000000000001c0 $d - /tmp/ccTaFl06.s:4777 .text.HAL_I2C_Mem_Write_IT:0000000000000000 $t - /tmp/ccTaFl06.s:4784 .text.HAL_I2C_Mem_Write_IT:0000000000000000 HAL_I2C_Mem_Write_IT - /tmp/ccTaFl06.s:4979 .text.HAL_I2C_Mem_Write_IT:00000000000000e4 $d - /tmp/ccTaFl06.s:4985 .text.HAL_I2C_Mem_Read_IT:0000000000000000 $t - /tmp/ccTaFl06.s:4992 .text.HAL_I2C_Mem_Read_IT:0000000000000000 HAL_I2C_Mem_Read_IT - /tmp/ccTaFl06.s:5189 .text.HAL_I2C_Mem_Read_IT:00000000000000e8 $d - /tmp/ccTaFl06.s:5195 .text.HAL_I2C_Mem_Write_DMA:0000000000000000 $t - /tmp/ccTaFl06.s:5202 .text.HAL_I2C_Mem_Write_DMA:0000000000000000 HAL_I2C_Mem_Write_DMA - /tmp/ccTaFl06.s:5440 .text.HAL_I2C_Mem_Write_DMA:0000000000000124 $d - /tmp/ccTaFl06.s:5448 .text.HAL_I2C_Mem_Read_DMA:0000000000000000 $t - /tmp/ccTaFl06.s:5455 .text.HAL_I2C_Mem_Read_DMA:0000000000000000 HAL_I2C_Mem_Read_DMA - /tmp/ccTaFl06.s:5695 .text.HAL_I2C_Mem_Read_DMA:0000000000000128 $d - /tmp/ccTaFl06.s:5703 .text.HAL_I2C_IsDeviceReady:0000000000000000 $t - /tmp/ccTaFl06.s:5710 .text.HAL_I2C_IsDeviceReady:0000000000000000 HAL_I2C_IsDeviceReady - /tmp/ccTaFl06.s:5986 .text.HAL_I2C_IsDeviceReady:0000000000000154 $d - /tmp/ccTaFl06.s:5991 .text.HAL_I2C_Master_Sequential_Transmit_IT:0000000000000000 $t - /tmp/ccTaFl06.s:5998 .text.HAL_I2C_Master_Sequential_Transmit_IT:0000000000000000 HAL_I2C_Master_Sequential_Transmit_IT - /tmp/ccTaFl06.s:6132 .text.HAL_I2C_Master_Sequential_Transmit_IT:0000000000000088 $d - /tmp/ccTaFl06.s:6137 .text.HAL_I2C_Master_Sequential_Receive_IT:0000000000000000 $t - /tmp/ccTaFl06.s:6144 .text.HAL_I2C_Master_Sequential_Receive_IT:0000000000000000 HAL_I2C_Master_Sequential_Receive_IT - ARM GAS /tmp/ccTaFl06.s page 275 - - - /tmp/ccTaFl06.s:6278 .text.HAL_I2C_Master_Sequential_Receive_IT:0000000000000088 $d - /tmp/ccTaFl06.s:6283 .text.HAL_I2C_Slave_Sequential_Transmit_IT:0000000000000000 $t - /tmp/ccTaFl06.s:6290 .text.HAL_I2C_Slave_Sequential_Transmit_IT:0000000000000000 HAL_I2C_Slave_Sequential_Transmit_IT - /tmp/ccTaFl06.s:6434 .text.HAL_I2C_Slave_Sequential_Transmit_IT:000000000000009c $d - /tmp/ccTaFl06.s:6440 .text.HAL_I2C_Slave_Sequential_Receive_IT:0000000000000000 $t - /tmp/ccTaFl06.s:6447 .text.HAL_I2C_Slave_Sequential_Receive_IT:0000000000000000 HAL_I2C_Slave_Sequential_Receive_IT - /tmp/ccTaFl06.s:6591 .text.HAL_I2C_Slave_Sequential_Receive_IT:000000000000009c $d - /tmp/ccTaFl06.s:6597 .text.HAL_I2C_EnableListen_IT:0000000000000000 $t - /tmp/ccTaFl06.s:6604 .text.HAL_I2C_EnableListen_IT:0000000000000000 HAL_I2C_EnableListen_IT - /tmp/ccTaFl06.s:6647 .text.HAL_I2C_EnableListen_IT:0000000000000024 $d - /tmp/ccTaFl06.s:6652 .text.HAL_I2C_DisableListen_IT:0000000000000000 $t - /tmp/ccTaFl06.s:6659 .text.HAL_I2C_DisableListen_IT:0000000000000000 HAL_I2C_DisableListen_IT - /tmp/ccTaFl06.s:6718 .text.HAL_I2C_Master_Abort_IT:0000000000000000 $t - /tmp/ccTaFl06.s:6725 .text.HAL_I2C_Master_Abort_IT:0000000000000000 HAL_I2C_Master_Abort_IT - /tmp/ccTaFl06.s:6815 .text.HAL_I2C_EV_IRQHandler:0000000000000000 $t - /tmp/ccTaFl06.s:6822 .text.HAL_I2C_EV_IRQHandler:0000000000000000 HAL_I2C_EV_IRQHandler - /tmp/ccTaFl06.s:6856 .text.HAL_I2C_MasterTxCpltCallback:0000000000000000 $t - /tmp/ccTaFl06.s:6863 .text.HAL_I2C_MasterTxCpltCallback:0000000000000000 HAL_I2C_MasterTxCpltCallback - /tmp/ccTaFl06.s:6878 .text.HAL_I2C_MasterRxCpltCallback:0000000000000000 $t - /tmp/ccTaFl06.s:6885 .text.HAL_I2C_MasterRxCpltCallback:0000000000000000 HAL_I2C_MasterRxCpltCallback - /tmp/ccTaFl06.s:6900 .text.I2C_ITMasterSequentialCplt:0000000000000000 $t - /tmp/ccTaFl06.s:6906 .text.I2C_ITMasterSequentialCplt:0000000000000000 I2C_ITMasterSequentialCplt - /tmp/ccTaFl06.s:6984 .text.HAL_I2C_SlaveTxCpltCallback:0000000000000000 $t - /tmp/ccTaFl06.s:6991 .text.HAL_I2C_SlaveTxCpltCallback:0000000000000000 HAL_I2C_SlaveTxCpltCallback - /tmp/ccTaFl06.s:7006 .text.HAL_I2C_SlaveRxCpltCallback:0000000000000000 $t - /tmp/ccTaFl06.s:7013 .text.HAL_I2C_SlaveRxCpltCallback:0000000000000000 HAL_I2C_SlaveRxCpltCallback - /tmp/ccTaFl06.s:7028 .text.I2C_ITSlaveSequentialCplt:0000000000000000 $t - /tmp/ccTaFl06.s:7034 .text.I2C_ITSlaveSequentialCplt:0000000000000000 I2C_ITSlaveSequentialCplt - /tmp/ccTaFl06.s:7116 .text.HAL_I2C_AddrCallback:0000000000000000 $t - /tmp/ccTaFl06.s:7123 .text.HAL_I2C_AddrCallback:0000000000000000 HAL_I2C_AddrCallback - /tmp/ccTaFl06.s:7138 .text.I2C_ITAddrCplt:0000000000000000 $t - /tmp/ccTaFl06.s:7144 .text.I2C_ITAddrCplt:0000000000000000 I2C_ITAddrCplt - /tmp/ccTaFl06.s:7285 .text.HAL_I2C_ListenCpltCallback:0000000000000000 $t - /tmp/ccTaFl06.s:7292 .text.HAL_I2C_ListenCpltCallback:0000000000000000 HAL_I2C_ListenCpltCallback - /tmp/ccTaFl06.s:7307 .text.I2C_ITListenCplt:0000000000000000 $t - /tmp/ccTaFl06.s:7313 .text.I2C_ITListenCplt:0000000000000000 I2C_ITListenCplt - /tmp/ccTaFl06.s:7395 .text.I2C_ITListenCplt:0000000000000060 $d - /tmp/ccTaFl06.s:7400 .text.HAL_I2C_MemTxCpltCallback:0000000000000000 $t - /tmp/ccTaFl06.s:7407 .text.HAL_I2C_MemTxCpltCallback:0000000000000000 HAL_I2C_MemTxCpltCallback - /tmp/ccTaFl06.s:7422 .text.HAL_I2C_MemRxCpltCallback:0000000000000000 $t - /tmp/ccTaFl06.s:7429 .text.HAL_I2C_MemRxCpltCallback:0000000000000000 HAL_I2C_MemRxCpltCallback - /tmp/ccTaFl06.s:7444 .text.HAL_I2C_ErrorCallback:0000000000000000 $t - /tmp/ccTaFl06.s:7451 .text.HAL_I2C_ErrorCallback:0000000000000000 HAL_I2C_ErrorCallback - /tmp/ccTaFl06.s:7466 .text.HAL_I2C_AbortCpltCallback:0000000000000000 $t - /tmp/ccTaFl06.s:7473 .text.HAL_I2C_AbortCpltCallback:0000000000000000 HAL_I2C_AbortCpltCallback - /tmp/ccTaFl06.s:7488 .text.I2C_ITError:0000000000000000 $t - /tmp/ccTaFl06.s:7494 .text.I2C_ITError:0000000000000000 I2C_ITError - /tmp/ccTaFl06.s:7674 .text.I2C_ITError:00000000000000e4 $d - /tmp/ccTaFl06.s:9127 .text.I2C_DMAAbort:0000000000000000 I2C_DMAAbort - /tmp/ccTaFl06.s:7683 .text.I2C_ITSlaveCplt:0000000000000000 $t - /tmp/ccTaFl06.s:7689 .text.I2C_ITSlaveCplt:0000000000000000 I2C_ITSlaveCplt - /tmp/ccTaFl06.s:7897 .text.I2C_ITSlaveCplt:0000000000000110 $d - /tmp/ccTaFl06.s:7903 .text.I2C_Slave_ISR_IT:0000000000000000 $t - /tmp/ccTaFl06.s:8170 .text.I2C_Slave_ISR_IT:000000000000013c $d - /tmp/ccTaFl06.s:8175 .text.I2C_Slave_ISR_DMA:0000000000000000 $t - /tmp/ccTaFl06.s:8306 .text.I2C_ITMasterCplt:0000000000000000 $t - /tmp/ccTaFl06.s:8312 .text.I2C_ITMasterCplt:0000000000000000 I2C_ITMasterCplt - ARM GAS /tmp/ccTaFl06.s page 276 - - - /tmp/ccTaFl06.s:8470 .text.I2C_ITMasterCplt:00000000000000cc $d - /tmp/ccTaFl06.s:8476 .text.I2C_Master_ISR_IT:0000000000000000 $t - /tmp/ccTaFl06.s:8779 .text.I2C_Master_ISR_IT:000000000000016c $d - /tmp/ccTaFl06.s:8784 .text.I2C_Master_ISR_DMA:0000000000000000 $t - /tmp/ccTaFl06.s:8980 .text.I2C_DMAError:0000000000000000 $t - /tmp/ccTaFl06.s:9019 .text.HAL_I2C_ER_IRQHandler:0000000000000000 $t - /tmp/ccTaFl06.s:9026 .text.HAL_I2C_ER_IRQHandler:0000000000000000 HAL_I2C_ER_IRQHandler - /tmp/ccTaFl06.s:9121 .text.I2C_DMAAbort:0000000000000000 $t - /tmp/ccTaFl06.s:9182 .text.HAL_I2C_GetState:0000000000000000 $t - /tmp/ccTaFl06.s:9189 .text.HAL_I2C_GetState:0000000000000000 HAL_I2C_GetState - /tmp/ccTaFl06.s:9209 .text.HAL_I2C_GetMode:0000000000000000 $t - /tmp/ccTaFl06.s:9216 .text.HAL_I2C_GetMode:0000000000000000 HAL_I2C_GetMode - /tmp/ccTaFl06.s:9236 .text.HAL_I2C_GetError:0000000000000000 $t - /tmp/ccTaFl06.s:9243 .text.HAL_I2C_GetError:0000000000000000 HAL_I2C_GetError - -UNDEFINED SYMBOLS -HAL_GetTick -HAL_DMA_Start_IT -HAL_DMA_Abort_IT diff --git a/firmware/build/stm32f0xx_hal_i2c.o b/firmware/build/stm32f0xx_hal_i2c.o deleted file mode 100644 index 2e94292..0000000 Binary files a/firmware/build/stm32f0xx_hal_i2c.o and /dev/null differ diff --git a/firmware/build/stm32f0xx_hal_i2c_ex.d b/firmware/build/stm32f0xx_hal_i2c_ex.d deleted file mode 100644 index c612393..0000000 --- a/firmware/build/stm32f0xx_hal_i2c_ex.d +++ /dev/null @@ -1,87 +0,0 @@ -build/stm32f0xx_hal_i2c_ex.o: \ - Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c_ex.c \ - Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal.h \ - Inc/stm32f0xx_hal_conf.h \ - Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_rcc.h \ - Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_def.h \ - Drivers/CMSIS/Device/ST/STM32F0xx/Include/stm32f0xx.h \ - Drivers/CMSIS/Device/ST/STM32F0xx/Include/stm32f072xb.h \ - Drivers/CMSIS/Include/core_cm0.h Drivers/CMSIS/Include/core_cmInstr.h \ - Drivers/CMSIS/Include/cmsis_gcc.h Drivers/CMSIS/Include/core_cmFunc.h \ - Drivers/CMSIS/Device/ST/STM32F0xx/Include/system_stm32f0xx.h \ - Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_rcc_ex.h \ - Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_gpio.h \ - Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_gpio_ex.h \ - Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_dma.h \ - Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_dma_ex.h \ - Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_cortex.h \ - Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_adc.h \ - Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_adc_ex.h \ - Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_flash.h \ - Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_flash_ex.h \ - Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_i2c.h \ - Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_i2c_ex.h \ - Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_pcd.h \ - Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_pcd_ex.h \ - Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_pwr.h \ - Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_pwr_ex.h \ - Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_tim.h \ - Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_tim_ex.h - -Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal.h: - -Inc/stm32f0xx_hal_conf.h: - -Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_rcc.h: - -Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_def.h: - -Drivers/CMSIS/Device/ST/STM32F0xx/Include/stm32f0xx.h: - -Drivers/CMSIS/Device/ST/STM32F0xx/Include/stm32f072xb.h: - -Drivers/CMSIS/Include/core_cm0.h: - -Drivers/CMSIS/Include/core_cmInstr.h: - -Drivers/CMSIS/Include/cmsis_gcc.h: - -Drivers/CMSIS/Include/core_cmFunc.h: - -Drivers/CMSIS/Device/ST/STM32F0xx/Include/system_stm32f0xx.h: - -Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_rcc_ex.h: - -Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_gpio.h: - -Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_gpio_ex.h: - -Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_dma.h: - -Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_dma_ex.h: - -Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_cortex.h: - -Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_adc.h: - -Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_adc_ex.h: - -Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_flash.h: - -Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_flash_ex.h: - -Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_i2c.h: - -Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_i2c_ex.h: - -Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_pcd.h: - -Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_pcd_ex.h: - -Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_pwr.h: - -Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_pwr_ex.h: - -Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_tim.h: - -Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_tim_ex.h: diff --git a/firmware/build/stm32f0xx_hal_i2c_ex.lst b/firmware/build/stm32f0xx_hal_i2c_ex.lst deleted file mode 100644 index 5629bf0..0000000 --- a/firmware/build/stm32f0xx_hal_i2c_ex.lst +++ /dev/null @@ -1,883 +0,0 @@ -ARM GAS /tmp/ccYsJSy1.s page 1 - - - 1 .cpu cortex-m0 - 2 .eabi_attribute 20, 1 - 3 .eabi_attribute 21, 1 - 4 .eabi_attribute 23, 3 - 5 .eabi_attribute 24, 1 - 6 .eabi_attribute 25, 1 - 7 .eabi_attribute 26, 1 - 8 .eabi_attribute 30, 1 - 9 .eabi_attribute 34, 0 - 10 .eabi_attribute 18, 4 - 11 .file "stm32f0xx_hal_i2c_ex.c" - 12 .text - 13 .Ltext0: - 14 .cfi_sections .debug_frame - 15 .section .text.HAL_I2CEx_ConfigAnalogFilter,"ax",%progbits - 16 .align 1 - 17 .global HAL_I2CEx_ConfigAnalogFilter - 18 .syntax unified - 19 .code 16 - 20 .thumb_func - 21 .fpu softvfp - 23 HAL_I2CEx_ConfigAnalogFilter: - 24 .LFB37: - 25 .file 1 "Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c_ex.c" - 1:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c_ex.c **** /** - 2:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c_ex.c **** ****************************************************************************** - 3:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c_ex.c **** * @file stm32f0xx_hal_i2c_ex.c - 4:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c_ex.c **** * @author MCD Application Team - 5:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c_ex.c **** * @brief I2C Extended HAL module driver. - 6:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c_ex.c **** * This file provides firmware functions to manage the following - 7:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c_ex.c **** * functionalities of I2C Extended peripheral: - 8:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c_ex.c **** * + Extended features functions - 9:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c_ex.c **** * - 10:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c_ex.c **** @verbatim - 11:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c_ex.c **** ============================================================================== - 12:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c_ex.c **** ##### I2C peripheral Extended features ##### - 13:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c_ex.c **** ============================================================================== - 14:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c_ex.c **** - 15:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c_ex.c **** [..] Comparing to other previous devices, the I2C interface for STM32F0xx - 16:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c_ex.c **** devices contains the following additional features - 17:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c_ex.c **** - 18:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c_ex.c **** (+) Possibility to disable or enable Analog Noise Filter - 19:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c_ex.c **** (+) Use of a configured Digital Noise Filter - 20:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c_ex.c **** (+) Disable or enable wakeup from Stop mode - 21:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c_ex.c **** - 22:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c_ex.c **** ##### How to use this driver ##### - 23:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c_ex.c **** ============================================================================== - 24:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c_ex.c **** [..] This driver provides functions to configure Noise Filter and Wake Up Feature - 25:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c_ex.c **** (#) Configure I2C Analog noise filter using the function HAL_I2CEx_ConfigAnalogFilter() - 26:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c_ex.c **** (#) Configure I2C Digital noise filter using the function HAL_I2CEx_ConfigDigitalFilter() - 27:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c_ex.c **** (#) Configure the enable or disable of I2C Wake Up Mode using the functions : - 28:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c_ex.c **** (++) HAL_I2CEx_EnableWakeUp() - 29:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c_ex.c **** (++) HAL_I2CEx_DisableWakeUp() - 30:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c_ex.c **** (#) Configure the enable or disable of fast mode plus driving capability using the functions : - 31:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c_ex.c **** (++) HAL_I2CEx_EnableFastModePlus() - 32:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c_ex.c **** (++) HAL_I2CEx_DisableFastModePlus() - 33:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c_ex.c **** @endverbatim - ARM GAS /tmp/ccYsJSy1.s page 2 - - - 34:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c_ex.c **** ****************************************************************************** - 35:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c_ex.c **** * @attention - 36:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c_ex.c **** * - 37:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c_ex.c **** *

© COPYRIGHT(c) 2016 STMicroelectronics

- 38:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c_ex.c **** * - 39:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c_ex.c **** * Redistribution and use in source and binary forms, with or without modification, - 40:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c_ex.c **** * are permitted provided that the following conditions are met: - 41:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c_ex.c **** * 1. Redistributions of source code must retain the above copyright notice, - 42:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c_ex.c **** * this list of conditions and the following disclaimer. - 43:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c_ex.c **** * 2. Redistributions in binary form must reproduce the above copyright notice, - 44:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c_ex.c **** * this list of conditions and the following disclaimer in the documentation - 45:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c_ex.c **** * and/or other materials provided with the distribution. - 46:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c_ex.c **** * 3. Neither the name of STMicroelectronics nor the names of its contributors - 47:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c_ex.c **** * may be used to endorse or promote products derived from this software - 48:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c_ex.c **** * without specific prior written permission. - 49:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c_ex.c **** * - 50:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c_ex.c **** * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" - 51:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c_ex.c **** * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE - 52:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c_ex.c **** * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE - 53:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c_ex.c **** * DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE - 54:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c_ex.c **** * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL - 55:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c_ex.c **** * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR - 56:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c_ex.c **** * SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER - 57:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c_ex.c **** * CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, - 58:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c_ex.c **** * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE - 59:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c_ex.c **** * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. - 60:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c_ex.c **** * - 61:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c_ex.c **** ****************************************************************************** - 62:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c_ex.c **** */ - 63:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c_ex.c **** - 64:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c_ex.c **** /* Includes ------------------------------------------------------------------*/ - 65:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c_ex.c **** #include "stm32f0xx_hal.h" - 66:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c_ex.c **** - 67:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c_ex.c **** /** @addtogroup STM32F0xx_HAL_Driver - 68:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c_ex.c **** * @{ - 69:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c_ex.c **** */ - 70:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c_ex.c **** - 71:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c_ex.c **** /** @defgroup I2CEx I2CEx - 72:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c_ex.c **** * @brief I2C Extended HAL module driver - 73:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c_ex.c **** * @{ - 74:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c_ex.c **** */ - 75:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c_ex.c **** - 76:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c_ex.c **** #ifdef HAL_I2C_MODULE_ENABLED - 77:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c_ex.c **** - 78:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c_ex.c **** /* Private typedef -----------------------------------------------------------*/ - 79:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c_ex.c **** /* Private define ------------------------------------------------------------*/ - 80:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c_ex.c **** /* Private macro -------------------------------------------------------------*/ - 81:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c_ex.c **** /* Private variables ---------------------------------------------------------*/ - 82:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c_ex.c **** /* Private function prototypes -----------------------------------------------*/ - 83:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c_ex.c **** /* Private functions ---------------------------------------------------------*/ - 84:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c_ex.c **** - 85:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c_ex.c **** /** @defgroup I2CEx_Exported_Functions I2C Extended Exported Functions - 86:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c_ex.c **** * @{ - 87:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c_ex.c **** */ - 88:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c_ex.c **** - 89:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c_ex.c **** /** @defgroup I2CEx_Exported_Functions_Group1 Extended features functions - 90:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c_ex.c **** * @brief Extended features functions - ARM GAS /tmp/ccYsJSy1.s page 3 - - - 91:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c_ex.c **** * - 92:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c_ex.c **** @verbatim - 93:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c_ex.c **** =============================================================================== - 94:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c_ex.c **** ##### Extended features functions ##### - 95:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c_ex.c **** =============================================================================== - 96:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c_ex.c **** [..] This section provides functions allowing to: - 97:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c_ex.c **** (+) Configure Noise Filters - 98:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c_ex.c **** (+) Configure Wake Up Feature - 99:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c_ex.c **** - 100:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c_ex.c **** @endverbatim - 101:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c_ex.c **** * @{ - 102:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c_ex.c **** */ - 103:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c_ex.c **** - 104:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c_ex.c **** /** - 105:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c_ex.c **** * @brief Configure I2C Analog noise filter. - 106:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c_ex.c **** * @param hi2c Pointer to a I2C_HandleTypeDef structure that contains - 107:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c_ex.c **** * the configuration information for the specified I2Cx peripheral. - 108:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c_ex.c **** * @param AnalogFilter New state of the Analog filter. - 109:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c_ex.c **** * @retval HAL status - 110:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c_ex.c **** */ - 111:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c_ex.c **** HAL_StatusTypeDef HAL_I2CEx_ConfigAnalogFilter(I2C_HandleTypeDef *hi2c, uint32_t AnalogFilter) - 112:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c_ex.c **** { - 26 .loc 1 112 0 - 27 .cfi_startproc - 28 @ args = 0, pretend = 0, frame = 0 - 29 @ frame_needed = 0, uses_anonymous_args = 0 - 30 .LVL0: - 31 0000 F0B5 push {r4, r5, r6, r7, lr} - 32 .LCFI0: - 33 .cfi_def_cfa_offset 20 - 34 .cfi_offset 4, -20 - 35 .cfi_offset 5, -16 - 36 .cfi_offset 6, -12 - 37 .cfi_offset 7, -8 - 38 .cfi_offset 14, -4 - 113:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c_ex.c **** /* Check the parameters */ - 114:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c_ex.c **** assert_param(IS_I2C_ALL_INSTANCE(hi2c->Instance)); - 115:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c_ex.c **** assert_param(IS_I2C_ANALOG_FILTER(AnalogFilter)); - 116:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c_ex.c **** - 117:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c_ex.c **** if (hi2c->State == HAL_I2C_STATE_READY) - 39 .loc 1 117 0 - 40 0002 4123 movs r3, #65 - 41 0004 C35C ldrb r3, [r0, r3] - 42 0006 202B cmp r3, #32 - 43 0008 20D1 bne .L3 - 118:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c_ex.c **** { - 119:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c_ex.c **** /* Process Locked */ - 120:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c_ex.c **** __HAL_LOCK(hi2c); - 44 .loc 1 120 0 - 45 000a 2033 adds r3, r3, #32 - 46 000c C35C ldrb r3, [r0, r3] - 47 000e 012B cmp r3, #1 - 48 0010 1ED0 beq .L4 - 49 .loc 1 120 0 is_stmt 0 discriminator 2 - 50 0012 4024 movs r4, #64 - 51 0014 0122 movs r2, #1 - 52 0016 0255 strb r2, [r0, r4] - ARM GAS /tmp/ccYsJSy1.s page 4 - - - 121:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c_ex.c **** - 122:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c_ex.c **** hi2c->State = HAL_I2C_STATE_BUSY; - 53 .loc 1 122 0 is_stmt 1 discriminator 2 - 54 0018 4125 movs r5, #65 - 55 001a 2423 movs r3, #36 - 56 001c 4355 strb r3, [r0, r5] - 123:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c_ex.c **** - 124:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c_ex.c **** /* Disable the selected I2C peripheral */ - 125:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c_ex.c **** __HAL_I2C_DISABLE(hi2c); - 57 .loc 1 125 0 discriminator 2 - 58 001e 0668 ldr r6, [r0] - 59 0020 3368 ldr r3, [r6] - 60 0022 9343 bics r3, r2 - 61 0024 3360 str r3, [r6] - 126:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c_ex.c **** - 127:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c_ex.c **** /* Reset I2Cx ANOFF bit */ - 128:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c_ex.c **** hi2c->Instance->CR1 &= ~(I2C_CR1_ANFOFF); - 62 .loc 1 128 0 discriminator 2 - 63 0026 0668 ldr r6, [r0] - 64 0028 3368 ldr r3, [r6] - 65 002a 0A4F ldr r7, .L5 - 66 002c 3B40 ands r3, r7 - 67 002e 3360 str r3, [r6] - 129:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c_ex.c **** - 130:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c_ex.c **** /* Set analog filter bit*/ - 131:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c_ex.c **** hi2c->Instance->CR1 |= AnalogFilter; - 68 .loc 1 131 0 discriminator 2 - 69 0030 0668 ldr r6, [r0] - 70 0032 3368 ldr r3, [r6] - 71 0034 1943 orrs r1, r3 - 72 .LVL1: - 73 0036 3160 str r1, [r6] - 132:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c_ex.c **** - 133:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c_ex.c **** __HAL_I2C_ENABLE(hi2c); - 74 .loc 1 133 0 discriminator 2 - 75 0038 0168 ldr r1, [r0] - 76 003a 0B68 ldr r3, [r1] - 77 003c 1343 orrs r3, r2 - 78 003e 0B60 str r3, [r1] - 134:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c_ex.c **** - 135:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c_ex.c **** hi2c->State = HAL_I2C_STATE_READY; - 79 .loc 1 135 0 discriminator 2 - 80 0040 2023 movs r3, #32 - 81 0042 4355 strb r3, [r0, r5] - 136:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c_ex.c **** - 137:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c_ex.c **** /* Process Unlocked */ - 138:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c_ex.c **** __HAL_UNLOCK(hi2c); - 82 .loc 1 138 0 discriminator 2 - 83 0044 0023 movs r3, #0 - 84 0046 0355 strb r3, [r0, r4] - 139:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c_ex.c **** - 140:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c_ex.c **** return HAL_OK; - 85 .loc 1 140 0 discriminator 2 - 86 0048 0020 movs r0, #0 - 87 .LVL2: - 88 004a 00E0 b .L2 - 89 .LVL3: - ARM GAS /tmp/ccYsJSy1.s page 5 - - - 90 .L3: - 141:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c_ex.c **** } - 142:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c_ex.c **** else - 143:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c_ex.c **** { - 144:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c_ex.c **** return HAL_BUSY; - 91 .loc 1 144 0 - 92 004c 0220 movs r0, #2 - 93 .LVL4: - 94 .L2: - 145:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c_ex.c **** } - 146:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c_ex.c **** } - 95 .loc 1 146 0 - 96 @ sp needed - 97 004e F0BD pop {r4, r5, r6, r7, pc} - 98 .LVL5: - 99 .L4: - 120:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c_ex.c **** - 100 .loc 1 120 0 - 101 0050 0220 movs r0, #2 - 102 .LVL6: - 103 0052 FCE7 b .L2 - 104 .L6: - 105 .align 2 - 106 .L5: - 107 0054 FFEFFFFF .word -4097 - 108 .cfi_endproc - 109 .LFE37: - 111 .section .text.HAL_I2CEx_ConfigDigitalFilter,"ax",%progbits - 112 .align 1 - 113 .global HAL_I2CEx_ConfigDigitalFilter - 114 .syntax unified - 115 .code 16 - 116 .thumb_func - 117 .fpu softvfp - 119 HAL_I2CEx_ConfigDigitalFilter: - 120 .LFB38: - 147:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c_ex.c **** - 148:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c_ex.c **** /** - 149:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c_ex.c **** * @brief Configure I2C Digital noise filter. - 150:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c_ex.c **** * @param hi2c Pointer to a I2C_HandleTypeDef structure that contains - 151:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c_ex.c **** * the configuration information for the specified I2Cx peripheral. - 152:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c_ex.c **** * @param DigitalFilter Coefficient of digital noise filter between Min_Data=0x00 and Max_Data=0x - 153:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c_ex.c **** * @retval HAL status - 154:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c_ex.c **** */ - 155:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c_ex.c **** HAL_StatusTypeDef HAL_I2CEx_ConfigDigitalFilter(I2C_HandleTypeDef *hi2c, uint32_t DigitalFilter) - 156:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c_ex.c **** { - 121 .loc 1 156 0 - 122 .cfi_startproc - 123 @ args = 0, pretend = 0, frame = 0 - 124 @ frame_needed = 0, uses_anonymous_args = 0 - 125 .LVL7: - 126 0000 F0B5 push {r4, r5, r6, r7, lr} - 127 .LCFI1: - 128 .cfi_def_cfa_offset 20 - 129 .cfi_offset 4, -20 - 130 .cfi_offset 5, -16 - 131 .cfi_offset 6, -12 - ARM GAS /tmp/ccYsJSy1.s page 6 - - - 132 .cfi_offset 7, -8 - 133 .cfi_offset 14, -4 - 134 .LVL8: - 157:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c_ex.c **** uint32_t tmpreg = 0U; - 158:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c_ex.c **** - 159:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c_ex.c **** /* Check the parameters */ - 160:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c_ex.c **** assert_param(IS_I2C_ALL_INSTANCE(hi2c->Instance)); - 161:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c_ex.c **** assert_param(IS_I2C_DIGITAL_FILTER(DigitalFilter)); - 162:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c_ex.c **** - 163:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c_ex.c **** if (hi2c->State == HAL_I2C_STATE_READY) - 135 .loc 1 163 0 - 136 0002 4123 movs r3, #65 - 137 0004 C35C ldrb r3, [r0, r3] - 138 0006 202B cmp r3, #32 - 139 0008 1ED1 bne .L9 - 164:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c_ex.c **** { - 165:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c_ex.c **** /* Process Locked */ - 166:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c_ex.c **** __HAL_LOCK(hi2c); - 140 .loc 1 166 0 - 141 000a 2033 adds r3, r3, #32 - 142 000c C35C ldrb r3, [r0, r3] - 143 000e 012B cmp r3, #1 - 144 0010 1CD0 beq .L10 - 145 .loc 1 166 0 is_stmt 0 discriminator 2 - 146 0012 4024 movs r4, #64 - 147 0014 0122 movs r2, #1 - 148 0016 0255 strb r2, [r0, r4] - 167:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c_ex.c **** - 168:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c_ex.c **** hi2c->State = HAL_I2C_STATE_BUSY; - 149 .loc 1 168 0 is_stmt 1 discriminator 2 - 150 0018 4125 movs r5, #65 - 151 001a 2423 movs r3, #36 - 152 001c 4355 strb r3, [r0, r5] - 169:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c_ex.c **** - 170:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c_ex.c **** /* Disable the selected I2C peripheral */ - 171:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c_ex.c **** __HAL_I2C_DISABLE(hi2c); - 153 .loc 1 171 0 discriminator 2 - 154 001e 0668 ldr r6, [r0] - 155 0020 3368 ldr r3, [r6] - 156 0022 9343 bics r3, r2 - 157 0024 3360 str r3, [r6] - 172:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c_ex.c **** - 173:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c_ex.c **** /* Get the old register value */ - 174:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c_ex.c **** tmpreg = hi2c->Instance->CR1; - 158 .loc 1 174 0 discriminator 2 - 159 0026 0668 ldr r6, [r0] - 160 0028 3368 ldr r3, [r6] - 161 .LVL9: - 175:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c_ex.c **** - 176:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c_ex.c **** /* Reset I2Cx DNF bits [11:8] */ - 177:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c_ex.c **** tmpreg &= ~(I2C_CR1_DNF); - 162 .loc 1 177 0 discriminator 2 - 163 002a 094F ldr r7, .L11 - 164 002c 3B40 ands r3, r7 - 165 .LVL10: - 178:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c_ex.c **** - 179:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c_ex.c **** /* Set I2Cx DNF coefficient */ - ARM GAS /tmp/ccYsJSy1.s page 7 - - - 180:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c_ex.c **** tmpreg |= DigitalFilter << 8U; - 166 .loc 1 180 0 discriminator 2 - 167 002e 0902 lsls r1, r1, #8 - 168 .LVL11: - 169 0030 1943 orrs r1, r3 - 170 .LVL12: - 181:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c_ex.c **** - 182:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c_ex.c **** /* Store the new register value */ - 183:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c_ex.c **** hi2c->Instance->CR1 = tmpreg; - 171 .loc 1 183 0 discriminator 2 - 172 0032 3160 str r1, [r6] - 184:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c_ex.c **** - 185:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c_ex.c **** __HAL_I2C_ENABLE(hi2c); - 173 .loc 1 185 0 discriminator 2 - 174 0034 0168 ldr r1, [r0] - 175 .LVL13: - 176 0036 0B68 ldr r3, [r1] - 177 0038 1343 orrs r3, r2 - 178 003a 0B60 str r3, [r1] - 179 .LVL14: - 186:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c_ex.c **** - 187:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c_ex.c **** hi2c->State = HAL_I2C_STATE_READY; - 180 .loc 1 187 0 discriminator 2 - 181 003c 2023 movs r3, #32 - 182 003e 4355 strb r3, [r0, r5] - 188:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c_ex.c **** - 189:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c_ex.c **** /* Process Unlocked */ - 190:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c_ex.c **** __HAL_UNLOCK(hi2c); - 183 .loc 1 190 0 discriminator 2 - 184 0040 0023 movs r3, #0 - 185 0042 0355 strb r3, [r0, r4] - 191:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c_ex.c **** - 192:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c_ex.c **** return HAL_OK; - 186 .loc 1 192 0 discriminator 2 - 187 0044 0020 movs r0, #0 - 188 .LVL15: - 189 0046 00E0 b .L8 - 190 .LVL16: - 191 .L9: - 193:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c_ex.c **** } - 194:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c_ex.c **** else - 195:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c_ex.c **** { - 196:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c_ex.c **** return HAL_BUSY; - 192 .loc 1 196 0 - 193 0048 0220 movs r0, #2 - 194 .LVL17: - 195 .L8: - 197:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c_ex.c **** } - 198:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c_ex.c **** } - 196 .loc 1 198 0 - 197 @ sp needed - 198 004a F0BD pop {r4, r5, r6, r7, pc} - 199 .LVL18: - 200 .L10: - 166:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c_ex.c **** - 201 .loc 1 166 0 - 202 004c 0220 movs r0, #2 - ARM GAS /tmp/ccYsJSy1.s page 8 - - - 203 .LVL19: - 204 004e FCE7 b .L8 - 205 .L12: - 206 .align 2 - 207 .L11: - 208 0050 FFF0FFFF .word -3841 - 209 .cfi_endproc - 210 .LFE38: - 212 .section .text.HAL_I2CEx_EnableWakeUp,"ax",%progbits - 213 .align 1 - 214 .global HAL_I2CEx_EnableWakeUp - 215 .syntax unified - 216 .code 16 - 217 .thumb_func - 218 .fpu softvfp - 220 HAL_I2CEx_EnableWakeUp: - 221 .LFB39: - 199:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c_ex.c **** #if defined(I2C_CR1_WUPEN) - 200:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c_ex.c **** - 201:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c_ex.c **** /** - 202:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c_ex.c **** * @brief Enable I2C wakeup from stop mode. - 203:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c_ex.c **** * @param hi2c Pointer to a I2C_HandleTypeDef structure that contains - 204:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c_ex.c **** * the configuration information for the specified I2Cx peripheral. - 205:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c_ex.c **** * @retval HAL status - 206:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c_ex.c **** */ - 207:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c_ex.c **** HAL_StatusTypeDef HAL_I2CEx_EnableWakeUp(I2C_HandleTypeDef *hi2c) - 208:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c_ex.c **** { - 222 .loc 1 208 0 - 223 .cfi_startproc - 224 @ args = 0, pretend = 0, frame = 0 - 225 @ frame_needed = 0, uses_anonymous_args = 0 - 226 .LVL20: - 227 0000 70B5 push {r4, r5, r6, lr} - 228 .LCFI2: - 229 .cfi_def_cfa_offset 16 - 230 .cfi_offset 4, -16 - 231 .cfi_offset 5, -12 - 232 .cfi_offset 6, -8 - 233 .cfi_offset 14, -4 - 209:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c_ex.c **** /* Check the parameters */ - 210:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c_ex.c **** assert_param(IS_I2C_WAKEUP_FROMSTOP_INSTANCE(hi2c->Instance)); - 211:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c_ex.c **** - 212:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c_ex.c **** if (hi2c->State == HAL_I2C_STATE_READY) - 234 .loc 1 212 0 - 235 0002 4123 movs r3, #65 - 236 0004 C35C ldrb r3, [r0, r3] - 237 0006 202B cmp r3, #32 - 238 0008 1DD1 bne .L15 - 213:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c_ex.c **** { - 214:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c_ex.c **** /* Process Locked */ - 215:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c_ex.c **** __HAL_LOCK(hi2c); - 239 .loc 1 215 0 - 240 000a 2033 adds r3, r3, #32 - 241 000c C35C ldrb r3, [r0, r3] - 242 000e 012B cmp r3, #1 - 243 0010 1BD0 beq .L16 - 244 .loc 1 215 0 is_stmt 0 discriminator 2 - ARM GAS /tmp/ccYsJSy1.s page 9 - - - 245 0012 4021 movs r1, #64 - 246 0014 0122 movs r2, #1 - 247 0016 4254 strb r2, [r0, r1] - 216:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c_ex.c **** - 217:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c_ex.c **** hi2c->State = HAL_I2C_STATE_BUSY; - 248 .loc 1 217 0 is_stmt 1 discriminator 2 - 249 0018 4124 movs r4, #65 - 250 001a 2423 movs r3, #36 - 251 001c 0355 strb r3, [r0, r4] - 218:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c_ex.c **** - 219:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c_ex.c **** /* Disable the selected I2C peripheral */ - 220:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c_ex.c **** __HAL_I2C_DISABLE(hi2c); - 252 .loc 1 220 0 discriminator 2 - 253 001e 0568 ldr r5, [r0] - 254 0020 2B68 ldr r3, [r5] - 255 0022 9343 bics r3, r2 - 256 0024 2B60 str r3, [r5] - 221:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c_ex.c **** - 222:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c_ex.c **** /* Enable wakeup from stop mode */ - 223:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c_ex.c **** hi2c->Instance->CR1 |= I2C_CR1_WUPEN; - 257 .loc 1 223 0 discriminator 2 - 258 0026 0568 ldr r5, [r0] - 259 0028 2E68 ldr r6, [r5] - 260 002a 8023 movs r3, #128 - 261 002c DB02 lsls r3, r3, #11 - 262 002e 3343 orrs r3, r6 - 263 0030 2B60 str r3, [r5] - 224:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c_ex.c **** - 225:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c_ex.c **** __HAL_I2C_ENABLE(hi2c); - 264 .loc 1 225 0 discriminator 2 - 265 0032 0568 ldr r5, [r0] - 266 0034 2B68 ldr r3, [r5] - 267 0036 1343 orrs r3, r2 - 268 0038 2B60 str r3, [r5] - 226:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c_ex.c **** - 227:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c_ex.c **** hi2c->State = HAL_I2C_STATE_READY; - 269 .loc 1 227 0 discriminator 2 - 270 003a 2023 movs r3, #32 - 271 003c 0355 strb r3, [r0, r4] - 228:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c_ex.c **** - 229:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c_ex.c **** /* Process Unlocked */ - 230:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c_ex.c **** __HAL_UNLOCK(hi2c); - 272 .loc 1 230 0 discriminator 2 - 273 003e 0023 movs r3, #0 - 274 0040 4354 strb r3, [r0, r1] - 231:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c_ex.c **** - 232:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c_ex.c **** return HAL_OK; - 275 .loc 1 232 0 discriminator 2 - 276 0042 0020 movs r0, #0 - 277 .LVL21: - 278 0044 00E0 b .L14 - 279 .LVL22: - 280 .L15: - 233:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c_ex.c **** } - 234:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c_ex.c **** else - 235:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c_ex.c **** { - 236:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c_ex.c **** return HAL_BUSY; - ARM GAS /tmp/ccYsJSy1.s page 10 - - - 281 .loc 1 236 0 - 282 0046 0220 movs r0, #2 - 283 .LVL23: - 284 .L14: - 237:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c_ex.c **** } - 238:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c_ex.c **** } - 285 .loc 1 238 0 - 286 @ sp needed - 287 0048 70BD pop {r4, r5, r6, pc} - 288 .LVL24: - 289 .L16: - 215:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c_ex.c **** - 290 .loc 1 215 0 - 291 004a 0220 movs r0, #2 - 292 .LVL25: - 293 004c FCE7 b .L14 - 294 .cfi_endproc - 295 .LFE39: - 297 .section .text.HAL_I2CEx_DisableWakeUp,"ax",%progbits - 298 .align 1 - 299 .global HAL_I2CEx_DisableWakeUp - 300 .syntax unified - 301 .code 16 - 302 .thumb_func - 303 .fpu softvfp - 305 HAL_I2CEx_DisableWakeUp: - 306 .LFB40: - 239:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c_ex.c **** - 240:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c_ex.c **** /** - 241:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c_ex.c **** * @brief Disable I2C wakeup from stop mode. - 242:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c_ex.c **** * @param hi2c Pointer to a I2C_HandleTypeDef structure that contains - 243:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c_ex.c **** * the configuration information for the specified I2Cx peripheral. - 244:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c_ex.c **** * @retval HAL status - 245:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c_ex.c **** */ - 246:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c_ex.c **** HAL_StatusTypeDef HAL_I2CEx_DisableWakeUp(I2C_HandleTypeDef *hi2c) - 247:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c_ex.c **** { - 307 .loc 1 247 0 - 308 .cfi_startproc - 309 @ args = 0, pretend = 0, frame = 0 - 310 @ frame_needed = 0, uses_anonymous_args = 0 - 311 .LVL26: - 312 0000 70B5 push {r4, r5, r6, lr} - 313 .LCFI3: - 314 .cfi_def_cfa_offset 16 - 315 .cfi_offset 4, -16 - 316 .cfi_offset 5, -12 - 317 .cfi_offset 6, -8 - 318 .cfi_offset 14, -4 - 248:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c_ex.c **** /* Check the parameters */ - 249:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c_ex.c **** assert_param(IS_I2C_WAKEUP_FROMSTOP_INSTANCE(hi2c->Instance)); - 250:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c_ex.c **** - 251:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c_ex.c **** if (hi2c->State == HAL_I2C_STATE_READY) - 319 .loc 1 251 0 - 320 0002 4123 movs r3, #65 - 321 0004 C35C ldrb r3, [r0, r3] - 322 0006 202B cmp r3, #32 - 323 0008 1CD1 bne .L19 - ARM GAS /tmp/ccYsJSy1.s page 11 - - - 252:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c_ex.c **** { - 253:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c_ex.c **** /* Process Locked */ - 254:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c_ex.c **** __HAL_LOCK(hi2c); - 324 .loc 1 254 0 - 325 000a 2033 adds r3, r3, #32 - 326 000c C35C ldrb r3, [r0, r3] - 327 000e 012B cmp r3, #1 - 328 0010 1AD0 beq .L20 - 329 .loc 1 254 0 is_stmt 0 discriminator 2 - 330 0012 4021 movs r1, #64 - 331 0014 0122 movs r2, #1 - 332 0016 4254 strb r2, [r0, r1] - 255:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c_ex.c **** - 256:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c_ex.c **** hi2c->State = HAL_I2C_STATE_BUSY; - 333 .loc 1 256 0 is_stmt 1 discriminator 2 - 334 0018 4124 movs r4, #65 - 335 001a 2423 movs r3, #36 - 336 001c 0355 strb r3, [r0, r4] - 257:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c_ex.c **** - 258:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c_ex.c **** /* Disable the selected I2C peripheral */ - 259:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c_ex.c **** __HAL_I2C_DISABLE(hi2c); - 337 .loc 1 259 0 discriminator 2 - 338 001e 0568 ldr r5, [r0] - 339 0020 2B68 ldr r3, [r5] - 340 0022 9343 bics r3, r2 - 341 0024 2B60 str r3, [r5] - 260:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c_ex.c **** - 261:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c_ex.c **** /* Enable wakeup from stop mode */ - 262:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c_ex.c **** hi2c->Instance->CR1 &= ~(I2C_CR1_WUPEN); - 342 .loc 1 262 0 discriminator 2 - 343 0026 0568 ldr r5, [r0] - 344 0028 2B68 ldr r3, [r5] - 345 002a 084E ldr r6, .L21 - 346 002c 3340 ands r3, r6 - 347 002e 2B60 str r3, [r5] - 263:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c_ex.c **** - 264:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c_ex.c **** __HAL_I2C_ENABLE(hi2c); - 348 .loc 1 264 0 discriminator 2 - 349 0030 0568 ldr r5, [r0] - 350 0032 2B68 ldr r3, [r5] - 351 0034 1343 orrs r3, r2 - 352 0036 2B60 str r3, [r5] - 265:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c_ex.c **** - 266:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c_ex.c **** hi2c->State = HAL_I2C_STATE_READY; - 353 .loc 1 266 0 discriminator 2 - 354 0038 2023 movs r3, #32 - 355 003a 0355 strb r3, [r0, r4] - 267:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c_ex.c **** - 268:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c_ex.c **** /* Process Unlocked */ - 269:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c_ex.c **** __HAL_UNLOCK(hi2c); - 356 .loc 1 269 0 discriminator 2 - 357 003c 0023 movs r3, #0 - 358 003e 4354 strb r3, [r0, r1] - 270:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c_ex.c **** - 271:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c_ex.c **** return HAL_OK; - 359 .loc 1 271 0 discriminator 2 - 360 0040 0020 movs r0, #0 - ARM GAS /tmp/ccYsJSy1.s page 12 - - - 361 .LVL27: - 362 0042 00E0 b .L18 - 363 .LVL28: - 364 .L19: - 272:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c_ex.c **** } - 273:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c_ex.c **** else - 274:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c_ex.c **** { - 275:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c_ex.c **** return HAL_BUSY; - 365 .loc 1 275 0 - 366 0044 0220 movs r0, #2 - 367 .LVL29: - 368 .L18: - 276:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c_ex.c **** } - 277:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c_ex.c **** } - 369 .loc 1 277 0 - 370 @ sp needed - 371 0046 70BD pop {r4, r5, r6, pc} - 372 .LVL30: - 373 .L20: - 254:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c_ex.c **** - 374 .loc 1 254 0 - 375 0048 0220 movs r0, #2 - 376 .LVL31: - 377 004a FCE7 b .L18 - 378 .L22: - 379 .align 2 - 380 .L21: - 381 004c FFFFFBFF .word -262145 - 382 .cfi_endproc - 383 .LFE40: - 385 .section .text.HAL_I2CEx_EnableFastModePlus,"ax",%progbits - 386 .align 1 - 387 .global HAL_I2CEx_EnableFastModePlus - 388 .syntax unified - 389 .code 16 - 390 .thumb_func - 391 .fpu softvfp - 393 HAL_I2CEx_EnableFastModePlus: - 394 .LFB41: - 278:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c_ex.c **** #endif - 279:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c_ex.c **** - 280:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c_ex.c **** /** - 281:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c_ex.c **** * @brief Enable the I2C fast mode plus driving capability. - 282:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c_ex.c **** * @param ConfigFastModePlus Selects the pin. - 283:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c_ex.c **** * This parameter can be one of the @ref I2CEx_FastModePlus values - 284:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c_ex.c **** * @note For I2C1, fast mode plus driving capability can be enabled on all selected - 285:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c_ex.c **** * I2C1 pins using I2C_FASTMODEPLUS_I2C1 parameter or independently - 286:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c_ex.c **** * on each one of the following pins PB6, PB7, PB8 and PB9. - 287:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c_ex.c **** * @note For remaining I2C1 pins (PA14, PA15...) fast mode plus driving capability - 288:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c_ex.c **** * can be enabled only by using I2C_FASTMODEPLUS_I2C1 parameter. - 289:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c_ex.c **** * @note For all I2C2 pins fast mode plus driving capability can be enabled - 290:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c_ex.c **** * only by using I2C_FASTMODEPLUS_I2C2 parameter. - 291:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c_ex.c **** * @retval None - 292:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c_ex.c **** */ - 293:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c_ex.c **** void HAL_I2CEx_EnableFastModePlus(uint32_t ConfigFastModePlus) - 294:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c_ex.c **** { - 395 .loc 1 294 0 - ARM GAS /tmp/ccYsJSy1.s page 13 - - - 396 .cfi_startproc - 397 @ args = 0, pretend = 0, frame = 8 - 398 @ frame_needed = 0, uses_anonymous_args = 0 - 399 @ link register save eliminated. - 400 .LVL32: - 401 0000 82B0 sub sp, sp, #8 - 402 .LCFI4: - 403 .cfi_def_cfa_offset 8 - 404 .LBB2: - 295:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c_ex.c **** /* Check the parameter */ - 296:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c_ex.c **** assert_param(IS_I2C_FASTMODEPLUS(ConfigFastModePlus)); - 297:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c_ex.c **** - 298:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c_ex.c **** /* Enable SYSCFG clock */ - 299:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c_ex.c **** __HAL_RCC_SYSCFG_CLK_ENABLE(); - 405 .loc 1 299 0 - 406 0002 074A ldr r2, .L24 - 407 0004 9169 ldr r1, [r2, #24] - 408 0006 0123 movs r3, #1 - 409 0008 1943 orrs r1, r3 - 410 000a 9161 str r1, [r2, #24] - 411 000c 9269 ldr r2, [r2, #24] - 412 000e 1340 ands r3, r2 - 413 0010 0193 str r3, [sp, #4] - 414 0012 019B ldr r3, [sp, #4] - 415 .LBE2: - 300:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c_ex.c **** - 301:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c_ex.c **** /* Enable fast mode plus driving capability for selected pin */ - 302:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c_ex.c **** SET_BIT(SYSCFG->CFGR1, (uint32_t)ConfigFastModePlus); - 416 .loc 1 302 0 - 417 0014 034A ldr r2, .L24+4 - 418 0016 1368 ldr r3, [r2] - 419 0018 1843 orrs r0, r3 - 420 .LVL33: - 421 001a 1060 str r0, [r2] - 303:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c_ex.c **** } - 422 .loc 1 303 0 - 423 001c 02B0 add sp, sp, #8 - 424 @ sp needed - 425 001e 7047 bx lr - 426 .L25: - 427 .align 2 - 428 .L24: - 429 0020 00100240 .word 1073876992 - 430 0024 00000140 .word 1073807360 - 431 .cfi_endproc - 432 .LFE41: - 434 .section .text.HAL_I2CEx_DisableFastModePlus,"ax",%progbits - 435 .align 1 - 436 .global HAL_I2CEx_DisableFastModePlus - 437 .syntax unified - 438 .code 16 - 439 .thumb_func - 440 .fpu softvfp - 442 HAL_I2CEx_DisableFastModePlus: - 443 .LFB42: - 304:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c_ex.c **** - 305:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c_ex.c **** /** - ARM GAS /tmp/ccYsJSy1.s page 14 - - - 306:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c_ex.c **** * @brief Disable the I2C fast mode plus driving capability. - 307:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c_ex.c **** * @param ConfigFastModePlus Selects the pin. - 308:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c_ex.c **** * This parameter can be one of the @ref I2CEx_FastModePlus values - 309:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c_ex.c **** * @note For I2C1, fast mode plus driving capability can be disabled on all selected - 310:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c_ex.c **** * I2C1 pins using I2C_FASTMODEPLUS_I2C1 parameter or independently - 311:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c_ex.c **** * on each one of the following pins PB6, PB7, PB8 and PB9. - 312:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c_ex.c **** * @note For remaining I2C1 pins (PA14, PA15...) fast mode plus driving capability - 313:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c_ex.c **** * can be disabled only by using I2C_FASTMODEPLUS_I2C1 parameter. - 314:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c_ex.c **** * @note For all I2C2 pins fast mode plus driving capability can be disabled - 315:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c_ex.c **** * only by using I2C_FASTMODEPLUS_I2C2 parameter. - 316:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c_ex.c **** * @retval None - 317:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c_ex.c **** */ - 318:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c_ex.c **** void HAL_I2CEx_DisableFastModePlus(uint32_t ConfigFastModePlus) - 319:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c_ex.c **** { - 444 .loc 1 319 0 - 445 .cfi_startproc - 446 @ args = 0, pretend = 0, frame = 8 - 447 @ frame_needed = 0, uses_anonymous_args = 0 - 448 @ link register save eliminated. - 449 .LVL34: - 450 0000 82B0 sub sp, sp, #8 - 451 .LCFI5: - 452 .cfi_def_cfa_offset 8 - 453 .LBB3: - 320:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c_ex.c **** /* Check the parameter */ - 321:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c_ex.c **** assert_param(IS_I2C_FASTMODEPLUS(ConfigFastModePlus)); - 322:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c_ex.c **** - 323:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c_ex.c **** /* Enable SYSCFG clock */ - 324:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c_ex.c **** __HAL_RCC_SYSCFG_CLK_ENABLE(); - 454 .loc 1 324 0 - 455 0002 074A ldr r2, .L27 - 456 0004 9169 ldr r1, [r2, #24] - 457 0006 0123 movs r3, #1 - 458 0008 1943 orrs r1, r3 - 459 000a 9161 str r1, [r2, #24] - 460 000c 9269 ldr r2, [r2, #24] - 461 000e 1340 ands r3, r2 - 462 0010 0193 str r3, [sp, #4] - 463 0012 019B ldr r3, [sp, #4] - 464 .LBE3: - 325:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c_ex.c **** - 326:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c_ex.c **** /* Disable fast mode plus driving capability for selected pin */ - 327:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c_ex.c **** CLEAR_BIT(SYSCFG->CFGR1, (uint32_t)ConfigFastModePlus); - 465 .loc 1 327 0 - 466 0014 034A ldr r2, .L27+4 - 467 0016 1368 ldr r3, [r2] - 468 0018 8343 bics r3, r0 - 469 001a 1360 str r3, [r2] - 328:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c_ex.c **** } - 470 .loc 1 328 0 - 471 001c 02B0 add sp, sp, #8 - 472 @ sp needed - 473 001e 7047 bx lr - 474 .L28: - 475 .align 2 - 476 .L27: - 477 0020 00100240 .word 1073876992 - ARM GAS /tmp/ccYsJSy1.s page 15 - - - 478 0024 00000140 .word 1073807360 - 479 .cfi_endproc - 480 .LFE42: - 482 .text - 483 .Letext0: - 484 .file 2 "/home/janhenrik/programme/gcc-arm-none-eabi-7-2018-q2-update/arm-none-eabi/include/machin - 485 .file 3 "/home/janhenrik/programme/gcc-arm-none-eabi-7-2018-q2-update/arm-none-eabi/include/sys/_s - 486 .file 4 "Drivers/CMSIS/Device/ST/STM32F0xx/Include/system_stm32f0xx.h" - 487 .file 5 "Drivers/CMSIS/Device/ST/STM32F0xx/Include/stm32f072xb.h" - 488 .file 6 "/home/janhenrik/programme/gcc-arm-none-eabi-7-2018-q2-update/arm-none-eabi/include/sys/lo - 489 .file 7 "/home/janhenrik/programme/gcc-arm-none-eabi-7-2018-q2-update/arm-none-eabi/include/sys/_t - 490 .file 8 "/home/janhenrik/programme/gcc-arm-none-eabi-7-2018-q2-update/lib/gcc/arm-none-eabi/7.3.1/ - 491 .file 9 "/home/janhenrik/programme/gcc-arm-none-eabi-7-2018-q2-update/arm-none-eabi/include/sys/re - 492 .file 10 "Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_def.h" - 493 .file 11 "Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_dma.h" - 494 .file 12 "Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_i2c.h" - ARM GAS /tmp/ccYsJSy1.s page 16 - - -DEFINED SYMBOLS - *ABS*:0000000000000000 stm32f0xx_hal_i2c_ex.c - /tmp/ccYsJSy1.s:16 .text.HAL_I2CEx_ConfigAnalogFilter:0000000000000000 $t - /tmp/ccYsJSy1.s:23 .text.HAL_I2CEx_ConfigAnalogFilter:0000000000000000 HAL_I2CEx_ConfigAnalogFilter - /tmp/ccYsJSy1.s:107 .text.HAL_I2CEx_ConfigAnalogFilter:0000000000000054 $d - /tmp/ccYsJSy1.s:112 .text.HAL_I2CEx_ConfigDigitalFilter:0000000000000000 $t - /tmp/ccYsJSy1.s:119 .text.HAL_I2CEx_ConfigDigitalFilter:0000000000000000 HAL_I2CEx_ConfigDigitalFilter - /tmp/ccYsJSy1.s:208 .text.HAL_I2CEx_ConfigDigitalFilter:0000000000000050 $d - /tmp/ccYsJSy1.s:213 .text.HAL_I2CEx_EnableWakeUp:0000000000000000 $t - /tmp/ccYsJSy1.s:220 .text.HAL_I2CEx_EnableWakeUp:0000000000000000 HAL_I2CEx_EnableWakeUp - /tmp/ccYsJSy1.s:298 .text.HAL_I2CEx_DisableWakeUp:0000000000000000 $t - /tmp/ccYsJSy1.s:305 .text.HAL_I2CEx_DisableWakeUp:0000000000000000 HAL_I2CEx_DisableWakeUp - /tmp/ccYsJSy1.s:381 .text.HAL_I2CEx_DisableWakeUp:000000000000004c $d - /tmp/ccYsJSy1.s:386 .text.HAL_I2CEx_EnableFastModePlus:0000000000000000 $t - /tmp/ccYsJSy1.s:393 .text.HAL_I2CEx_EnableFastModePlus:0000000000000000 HAL_I2CEx_EnableFastModePlus - /tmp/ccYsJSy1.s:429 .text.HAL_I2CEx_EnableFastModePlus:0000000000000020 $d - /tmp/ccYsJSy1.s:435 .text.HAL_I2CEx_DisableFastModePlus:0000000000000000 $t - /tmp/ccYsJSy1.s:442 .text.HAL_I2CEx_DisableFastModePlus:0000000000000000 HAL_I2CEx_DisableFastModePlus - /tmp/ccYsJSy1.s:477 .text.HAL_I2CEx_DisableFastModePlus:0000000000000020 $d - -NO UNDEFINED SYMBOLS diff --git a/firmware/build/stm32f0xx_hal_i2c_ex.o b/firmware/build/stm32f0xx_hal_i2c_ex.o deleted file mode 100644 index bb9f4fb..0000000 Binary files a/firmware/build/stm32f0xx_hal_i2c_ex.o and /dev/null differ diff --git a/firmware/build/stm32f0xx_hal_msp.d b/firmware/build/stm32f0xx_hal_msp.d deleted file mode 100644 index 39debc3..0000000 --- a/firmware/build/stm32f0xx_hal_msp.d +++ /dev/null @@ -1,88 +0,0 @@ -build/stm32f0xx_hal_msp.o: Src/stm32f0xx_hal_msp.c Inc/main.h \ - Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal.h \ - Inc/stm32f0xx_hal_conf.h \ - Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_rcc.h \ - Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_def.h \ - Drivers/CMSIS/Device/ST/STM32F0xx/Include/stm32f0xx.h \ - Drivers/CMSIS/Device/ST/STM32F0xx/Include/stm32f072xb.h \ - Drivers/CMSIS/Include/core_cm0.h Drivers/CMSIS/Include/core_cmInstr.h \ - Drivers/CMSIS/Include/cmsis_gcc.h Drivers/CMSIS/Include/core_cmFunc.h \ - Drivers/CMSIS/Device/ST/STM32F0xx/Include/system_stm32f0xx.h \ - Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_rcc_ex.h \ - Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_gpio.h \ - Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_gpio_ex.h \ - Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_dma.h \ - Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_dma_ex.h \ - Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_cortex.h \ - Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_adc.h \ - Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_adc_ex.h \ - Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_flash.h \ - Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_flash_ex.h \ - Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_i2c.h \ - Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_i2c_ex.h \ - Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_pcd.h \ - Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_pcd_ex.h \ - Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_pwr.h \ - Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_pwr_ex.h \ - Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_tim.h \ - Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_tim_ex.h - -Inc/main.h: - -Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal.h: - -Inc/stm32f0xx_hal_conf.h: - -Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_rcc.h: - -Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_def.h: - -Drivers/CMSIS/Device/ST/STM32F0xx/Include/stm32f0xx.h: - -Drivers/CMSIS/Device/ST/STM32F0xx/Include/stm32f072xb.h: - -Drivers/CMSIS/Include/core_cm0.h: - -Drivers/CMSIS/Include/core_cmInstr.h: - -Drivers/CMSIS/Include/cmsis_gcc.h: - -Drivers/CMSIS/Include/core_cmFunc.h: - -Drivers/CMSIS/Device/ST/STM32F0xx/Include/system_stm32f0xx.h: - -Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_rcc_ex.h: - -Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_gpio.h: - -Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_gpio_ex.h: - -Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_dma.h: - -Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_dma_ex.h: - -Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_cortex.h: - -Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_adc.h: - -Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_adc_ex.h: - -Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_flash.h: - -Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_flash_ex.h: - -Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_i2c.h: - -Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_i2c_ex.h: - -Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_pcd.h: - -Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_pcd_ex.h: - -Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_pwr.h: - -Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_pwr_ex.h: - -Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_tim.h: - -Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_tim_ex.h: diff --git a/firmware/build/stm32f0xx_hal_msp.lst b/firmware/build/stm32f0xx_hal_msp.lst deleted file mode 100644 index 683c22d..0000000 --- a/firmware/build/stm32f0xx_hal_msp.lst +++ /dev/null @@ -1,1379 +0,0 @@ -ARM GAS /tmp/cclHamwV.s page 1 - - - 1 .cpu cortex-m0 - 2 .eabi_attribute 20, 1 - 3 .eabi_attribute 21, 1 - 4 .eabi_attribute 23, 3 - 5 .eabi_attribute 24, 1 - 6 .eabi_attribute 25, 1 - 7 .eabi_attribute 26, 1 - 8 .eabi_attribute 30, 1 - 9 .eabi_attribute 34, 0 - 10 .eabi_attribute 18, 4 - 11 .file "stm32f0xx_hal_msp.c" - 12 .text - 13 .Ltext0: - 14 .cfi_sections .debug_frame - 15 .section .text.HAL_MspInit,"ax",%progbits - 16 .align 1 - 17 .global HAL_MspInit - 18 .syntax unified - 19 .code 16 - 20 .thumb_func - 21 .fpu softvfp - 23 HAL_MspInit: - 24 .LFB37: - 25 .file 1 "Src/stm32f0xx_hal_msp.c" - 1:Src/stm32f0xx_hal_msp.c **** /* USER CODE BEGIN Header */ - 2:Src/stm32f0xx_hal_msp.c **** /** - 3:Src/stm32f0xx_hal_msp.c **** ****************************************************************************** - 4:Src/stm32f0xx_hal_msp.c **** * File Name : stm32f0xx_hal_msp.c - 5:Src/stm32f0xx_hal_msp.c **** * Description : This file provides code for the MSP Initialization - 6:Src/stm32f0xx_hal_msp.c **** * and de-Initialization codes. - 7:Src/stm32f0xx_hal_msp.c **** ****************************************************************************** - 8:Src/stm32f0xx_hal_msp.c **** * @attention - 9:Src/stm32f0xx_hal_msp.c **** * - 10:Src/stm32f0xx_hal_msp.c **** *

© Copyright (c) 2019 STMicroelectronics. - 11:Src/stm32f0xx_hal_msp.c **** * All rights reserved.

- 12:Src/stm32f0xx_hal_msp.c **** * - 13:Src/stm32f0xx_hal_msp.c **** * This software component is licensed by ST under BSD 3-Clause license, - 14:Src/stm32f0xx_hal_msp.c **** * the "License"; You may not use this file except in compliance with the - 15:Src/stm32f0xx_hal_msp.c **** * License. You may obtain a copy of the License at: - 16:Src/stm32f0xx_hal_msp.c **** * opensource.org/licenses/BSD-3-Clause - 17:Src/stm32f0xx_hal_msp.c **** * - 18:Src/stm32f0xx_hal_msp.c **** ****************************************************************************** - 19:Src/stm32f0xx_hal_msp.c **** */ - 20:Src/stm32f0xx_hal_msp.c **** /* USER CODE END Header */ - 21:Src/stm32f0xx_hal_msp.c **** - 22:Src/stm32f0xx_hal_msp.c **** /* Includes ------------------------------------------------------------------*/ - 23:Src/stm32f0xx_hal_msp.c **** #include "main.h" - 24:Src/stm32f0xx_hal_msp.c **** /* USER CODE BEGIN Includes */ - 25:Src/stm32f0xx_hal_msp.c **** - 26:Src/stm32f0xx_hal_msp.c **** /* USER CODE END Includes */ - 27:Src/stm32f0xx_hal_msp.c **** - 28:Src/stm32f0xx_hal_msp.c **** /* Private typedef -----------------------------------------------------------*/ - 29:Src/stm32f0xx_hal_msp.c **** /* USER CODE BEGIN TD */ - 30:Src/stm32f0xx_hal_msp.c **** extern DMA_HandleTypeDef hdma_adc; - 31:Src/stm32f0xx_hal_msp.c **** - 32:Src/stm32f0xx_hal_msp.c **** /* USER CODE END TD */ - 33:Src/stm32f0xx_hal_msp.c **** - ARM GAS /tmp/cclHamwV.s page 2 - - - 34:Src/stm32f0xx_hal_msp.c **** /* Private define ------------------------------------------------------------*/ - 35:Src/stm32f0xx_hal_msp.c **** /* USER CODE BEGIN Define */ - 36:Src/stm32f0xx_hal_msp.c **** - 37:Src/stm32f0xx_hal_msp.c **** /* USER CODE END Define */ - 38:Src/stm32f0xx_hal_msp.c **** - 39:Src/stm32f0xx_hal_msp.c **** /* Private macro -------------------------------------------------------------*/ - 40:Src/stm32f0xx_hal_msp.c **** /* USER CODE BEGIN Macro */ - 41:Src/stm32f0xx_hal_msp.c **** - 42:Src/stm32f0xx_hal_msp.c **** /* USER CODE END Macro */ - 43:Src/stm32f0xx_hal_msp.c **** - 44:Src/stm32f0xx_hal_msp.c **** /* Private variables ---------------------------------------------------------*/ - 45:Src/stm32f0xx_hal_msp.c **** /* USER CODE BEGIN PV */ - 46:Src/stm32f0xx_hal_msp.c **** - 47:Src/stm32f0xx_hal_msp.c **** /* USER CODE END PV */ - 48:Src/stm32f0xx_hal_msp.c **** - 49:Src/stm32f0xx_hal_msp.c **** /* Private function prototypes -----------------------------------------------*/ - 50:Src/stm32f0xx_hal_msp.c **** /* USER CODE BEGIN PFP */ - 51:Src/stm32f0xx_hal_msp.c **** - 52:Src/stm32f0xx_hal_msp.c **** /* USER CODE END PFP */ - 53:Src/stm32f0xx_hal_msp.c **** - 54:Src/stm32f0xx_hal_msp.c **** /* External functions --------------------------------------------------------*/ - 55:Src/stm32f0xx_hal_msp.c **** /* USER CODE BEGIN ExternalFunctions */ - 56:Src/stm32f0xx_hal_msp.c **** - 57:Src/stm32f0xx_hal_msp.c **** /* USER CODE END ExternalFunctions */ - 58:Src/stm32f0xx_hal_msp.c **** - 59:Src/stm32f0xx_hal_msp.c **** /* USER CODE BEGIN 0 */ - 60:Src/stm32f0xx_hal_msp.c **** - 61:Src/stm32f0xx_hal_msp.c **** /* USER CODE END 0 */ - 62:Src/stm32f0xx_hal_msp.c **** - 63:Src/stm32f0xx_hal_msp.c **** void HAL_TIM_MspPostInit(TIM_HandleTypeDef *htim); - 64:Src/stm32f0xx_hal_msp.c **** /** - 65:Src/stm32f0xx_hal_msp.c **** * Initializes the Global MSP. - 66:Src/stm32f0xx_hal_msp.c **** */ - 67:Src/stm32f0xx_hal_msp.c **** void HAL_MspInit(void) - 68:Src/stm32f0xx_hal_msp.c **** { - 26 .loc 1 68 0 - 27 .cfi_startproc - 28 @ args = 0, pretend = 0, frame = 8 - 29 @ frame_needed = 0, uses_anonymous_args = 0 - 30 @ link register save eliminated. - 31 0000 82B0 sub sp, sp, #8 - 32 .LCFI0: - 33 .cfi_def_cfa_offset 8 - 34 .LBB2: - 69:Src/stm32f0xx_hal_msp.c **** /* USER CODE BEGIN MspInit 0 */ - 70:Src/stm32f0xx_hal_msp.c **** - 71:Src/stm32f0xx_hal_msp.c **** /* USER CODE END MspInit 0 */ - 72:Src/stm32f0xx_hal_msp.c **** - 73:Src/stm32f0xx_hal_msp.c **** __HAL_RCC_SYSCFG_CLK_ENABLE(); - 35 .loc 1 73 0 - 36 0002 0A4B ldr r3, .L2 - 37 0004 9969 ldr r1, [r3, #24] - 38 0006 0122 movs r2, #1 - 39 0008 1143 orrs r1, r2 - 40 000a 9961 str r1, [r3, #24] - 41 000c 9969 ldr r1, [r3, #24] - 42 000e 0A40 ands r2, r1 - ARM GAS /tmp/cclHamwV.s page 3 - - - 43 0010 0092 str r2, [sp] - 44 0012 009A ldr r2, [sp] - 45 .LBE2: - 46 .LBB3: - 74:Src/stm32f0xx_hal_msp.c **** __HAL_RCC_PWR_CLK_ENABLE(); - 47 .loc 1 74 0 - 48 0014 DA69 ldr r2, [r3, #28] - 49 0016 8021 movs r1, #128 - 50 0018 4905 lsls r1, r1, #21 - 51 001a 0A43 orrs r2, r1 - 52 001c DA61 str r2, [r3, #28] - 53 001e DB69 ldr r3, [r3, #28] - 54 0020 0B40 ands r3, r1 - 55 0022 0193 str r3, [sp, #4] - 56 0024 019B ldr r3, [sp, #4] - 57 .LBE3: - 75:Src/stm32f0xx_hal_msp.c **** - 76:Src/stm32f0xx_hal_msp.c **** /* System interrupt init*/ - 77:Src/stm32f0xx_hal_msp.c **** - 78:Src/stm32f0xx_hal_msp.c **** /* USER CODE BEGIN MspInit 1 */ - 79:Src/stm32f0xx_hal_msp.c **** - 80:Src/stm32f0xx_hal_msp.c **** /* USER CODE END MspInit 1 */ - 81:Src/stm32f0xx_hal_msp.c **** } - 58 .loc 1 81 0 - 59 0026 02B0 add sp, sp, #8 - 60 @ sp needed - 61 0028 7047 bx lr - 62 .L3: - 63 002a C046 .align 2 - 64 .L2: - 65 002c 00100240 .word 1073876992 - 66 .cfi_endproc - 67 .LFE37: - 69 .section .text.HAL_ADC_MspInit,"ax",%progbits - 70 .align 1 - 71 .global HAL_ADC_MspInit - 72 .syntax unified - 73 .code 16 - 74 .thumb_func - 75 .fpu softvfp - 77 HAL_ADC_MspInit: - 78 .LFB38: - 82:Src/stm32f0xx_hal_msp.c **** - 83:Src/stm32f0xx_hal_msp.c **** /** - 84:Src/stm32f0xx_hal_msp.c **** * @brief ADC MSP Initialization - 85:Src/stm32f0xx_hal_msp.c **** * This function configures the hardware resources used in this example - 86:Src/stm32f0xx_hal_msp.c **** * @param hadc: ADC handle pointer - 87:Src/stm32f0xx_hal_msp.c **** * @retval None - 88:Src/stm32f0xx_hal_msp.c **** */ - 89:Src/stm32f0xx_hal_msp.c **** void HAL_ADC_MspInit(ADC_HandleTypeDef* hadc) - 90:Src/stm32f0xx_hal_msp.c **** { - 79 .loc 1 90 0 - 80 .cfi_startproc - 81 @ args = 0, pretend = 0, frame = 32 - 82 @ frame_needed = 0, uses_anonymous_args = 0 - 83 .LVL0: - 84 0000 30B5 push {r4, r5, lr} - ARM GAS /tmp/cclHamwV.s page 4 - - - 85 .LCFI1: - 86 .cfi_def_cfa_offset 12 - 87 .cfi_offset 4, -12 - 88 .cfi_offset 5, -8 - 89 .cfi_offset 14, -4 - 90 0002 89B0 sub sp, sp, #36 - 91 .LCFI2: - 92 .cfi_def_cfa_offset 48 - 93 0004 0400 movs r4, r0 - 91:Src/stm32f0xx_hal_msp.c **** GPIO_InitTypeDef GPIO_InitStruct = {0}; - 94 .loc 1 91 0 - 95 0006 1422 movs r2, #20 - 96 0008 0021 movs r1, #0 - 97 000a 03A8 add r0, sp, #12 - 98 .LVL1: - 99 000c FFF7FEFF bl memset - 100 .LVL2: - 92:Src/stm32f0xx_hal_msp.c **** if(hadc->Instance==ADC1) - 101 .loc 1 92 0 - 102 0010 1D4B ldr r3, .L7 - 103 0012 2268 ldr r2, [r4] - 104 0014 9A42 cmp r2, r3 - 105 0016 01D0 beq .L6 - 106 .L4: - 93:Src/stm32f0xx_hal_msp.c **** { - 94:Src/stm32f0xx_hal_msp.c **** /* USER CODE BEGIN ADC1_MspInit 0 */ - 95:Src/stm32f0xx_hal_msp.c **** - 96:Src/stm32f0xx_hal_msp.c **** /* USER CODE END ADC1_MspInit 0 */ - 97:Src/stm32f0xx_hal_msp.c **** /* Peripheral clock enable */ - 98:Src/stm32f0xx_hal_msp.c **** __HAL_RCC_ADC1_CLK_ENABLE(); - 99:Src/stm32f0xx_hal_msp.c **** - 100:Src/stm32f0xx_hal_msp.c **** __HAL_RCC_GPIOA_CLK_ENABLE(); - 101:Src/stm32f0xx_hal_msp.c **** /**ADC GPIO Configuration - 102:Src/stm32f0xx_hal_msp.c **** PA0 ------> ADC_IN0 - 103:Src/stm32f0xx_hal_msp.c **** PA1 ------> ADC_IN1 - 104:Src/stm32f0xx_hal_msp.c **** PA2 ------> ADC_IN2 - 105:Src/stm32f0xx_hal_msp.c **** PA5 ------> ADC_IN5 - 106:Src/stm32f0xx_hal_msp.c **** */ - 107:Src/stm32f0xx_hal_msp.c **** GPIO_InitStruct.Pin = IIN_Pin|TTIP_Pin|UIN_Pin|TREF_Pin; - 108:Src/stm32f0xx_hal_msp.c **** GPIO_InitStruct.Mode = GPIO_MODE_ANALOG; - 109:Src/stm32f0xx_hal_msp.c **** GPIO_InitStruct.Pull = GPIO_NOPULL; - 110:Src/stm32f0xx_hal_msp.c **** HAL_GPIO_Init(GPIOA, &GPIO_InitStruct); - 111:Src/stm32f0xx_hal_msp.c **** - 112:Src/stm32f0xx_hal_msp.c **** hdma_adc.Instance = DMA1_Channel1; - 113:Src/stm32f0xx_hal_msp.c **** hdma_adc.Init.Direction = DMA_PERIPH_TO_MEMORY; - 114:Src/stm32f0xx_hal_msp.c **** hdma_adc.Init.PeriphInc = DMA_PINC_DISABLE; - 115:Src/stm32f0xx_hal_msp.c **** hdma_adc.Init.MemInc = DMA_MINC_ENABLE; - 116:Src/stm32f0xx_hal_msp.c **** hdma_adc.Init.PeriphDataAlignment = DMA_PDATAALIGN_HALFWORD; - 117:Src/stm32f0xx_hal_msp.c **** hdma_adc.Init.MemDataAlignment = DMA_MDATAALIGN_HALFWORD; - 118:Src/stm32f0xx_hal_msp.c **** hdma_adc.Init.Mode = DMA_CIRCULAR; - 119:Src/stm32f0xx_hal_msp.c **** hdma_adc.Init.Priority = DMA_PRIORITY_HIGH; - 120:Src/stm32f0xx_hal_msp.c **** HAL_DMA_Init(&hdma_adc); - 121:Src/stm32f0xx_hal_msp.c **** - 122:Src/stm32f0xx_hal_msp.c **** __HAL_LINKDMA(hadc,DMA_Handle,hdma_adc); - 123:Src/stm32f0xx_hal_msp.c **** /* USER CODE BEGIN ADC1_MspInit 1 */ - 124:Src/stm32f0xx_hal_msp.c **** - 125:Src/stm32f0xx_hal_msp.c **** /* USER CODE END ADC1_MspInit 1 */ - ARM GAS /tmp/cclHamwV.s page 5 - - - 126:Src/stm32f0xx_hal_msp.c **** } - 127:Src/stm32f0xx_hal_msp.c **** - 128:Src/stm32f0xx_hal_msp.c **** } - 107 .loc 1 128 0 - 108 0018 09B0 add sp, sp, #36 - 109 @ sp needed - 110 .LVL3: - 111 001a 30BD pop {r4, r5, pc} - 112 .LVL4: - 113 .L6: - 114 .LBB4: - 98:Src/stm32f0xx_hal_msp.c **** - 115 .loc 1 98 0 - 116 001c 1B4B ldr r3, .L7+4 - 117 001e 9969 ldr r1, [r3, #24] - 118 0020 8020 movs r0, #128 - 119 0022 8000 lsls r0, r0, #2 - 120 0024 0143 orrs r1, r0 - 121 0026 9961 str r1, [r3, #24] - 122 0028 9A69 ldr r2, [r3, #24] - 123 002a 0240 ands r2, r0 - 124 002c 0192 str r2, [sp, #4] - 125 002e 019A ldr r2, [sp, #4] - 126 .LBE4: - 127 .LBB5: - 100:Src/stm32f0xx_hal_msp.c **** /**ADC GPIO Configuration - 128 .loc 1 100 0 - 129 0030 5A69 ldr r2, [r3, #20] - 130 0032 8021 movs r1, #128 - 131 0034 8902 lsls r1, r1, #10 - 132 0036 0A43 orrs r2, r1 - 133 0038 5A61 str r2, [r3, #20] - 134 003a 5B69 ldr r3, [r3, #20] - 135 003c 0B40 ands r3, r1 - 136 003e 0293 str r3, [sp, #8] - 137 0040 029B ldr r3, [sp, #8] - 138 .LBE5: - 107:Src/stm32f0xx_hal_msp.c **** GPIO_InitStruct.Mode = GPIO_MODE_ANALOG; - 139 .loc 1 107 0 - 140 0042 2723 movs r3, #39 - 141 0044 0393 str r3, [sp, #12] - 108:Src/stm32f0xx_hal_msp.c **** GPIO_InitStruct.Pull = GPIO_NOPULL; - 142 .loc 1 108 0 - 143 0046 243B subs r3, r3, #36 - 144 0048 0493 str r3, [sp, #16] - 110:Src/stm32f0xx_hal_msp.c **** - 145 .loc 1 110 0 - 146 004a 7138 subs r0, r0, #113 - 147 004c FF38 subs r0, r0, #255 - 148 004e 03A9 add r1, sp, #12 - 149 0050 C005 lsls r0, r0, #23 - 150 0052 FFF7FEFF bl HAL_GPIO_Init - 151 .LVL5: - 112:Src/stm32f0xx_hal_msp.c **** hdma_adc.Init.Direction = DMA_PERIPH_TO_MEMORY; - 152 .loc 1 112 0 - 153 0056 0E4D ldr r5, .L7+8 - 154 0058 0E4B ldr r3, .L7+12 - ARM GAS /tmp/cclHamwV.s page 6 - - - 155 005a 2B60 str r3, [r5] - 113:Src/stm32f0xx_hal_msp.c **** hdma_adc.Init.PeriphInc = DMA_PINC_DISABLE; - 156 .loc 1 113 0 - 157 005c 0023 movs r3, #0 - 158 005e 6B60 str r3, [r5, #4] - 114:Src/stm32f0xx_hal_msp.c **** hdma_adc.Init.MemInc = DMA_MINC_ENABLE; - 159 .loc 1 114 0 - 160 0060 AB60 str r3, [r5, #8] - 115:Src/stm32f0xx_hal_msp.c **** hdma_adc.Init.PeriphDataAlignment = DMA_PDATAALIGN_HALFWORD; - 161 .loc 1 115 0 - 162 0062 8033 adds r3, r3, #128 - 163 0064 EB60 str r3, [r5, #12] - 116:Src/stm32f0xx_hal_msp.c **** hdma_adc.Init.MemDataAlignment = DMA_MDATAALIGN_HALFWORD; - 164 .loc 1 116 0 - 165 0066 8033 adds r3, r3, #128 - 166 0068 2B61 str r3, [r5, #16] - 117:Src/stm32f0xx_hal_msp.c **** hdma_adc.Init.Mode = DMA_CIRCULAR; - 167 .loc 1 117 0 - 168 006a 8023 movs r3, #128 - 169 006c DB00 lsls r3, r3, #3 - 170 006e 6B61 str r3, [r5, #20] - 118:Src/stm32f0xx_hal_msp.c **** hdma_adc.Init.Priority = DMA_PRIORITY_HIGH; - 171 .loc 1 118 0 - 172 0070 2023 movs r3, #32 - 173 0072 AB61 str r3, [r5, #24] - 119:Src/stm32f0xx_hal_msp.c **** HAL_DMA_Init(&hdma_adc); - 174 .loc 1 119 0 - 175 0074 8023 movs r3, #128 - 176 0076 9B01 lsls r3, r3, #6 - 177 0078 EB61 str r3, [r5, #28] - 120:Src/stm32f0xx_hal_msp.c **** - 178 .loc 1 120 0 - 179 007a 2800 movs r0, r5 - 180 007c FFF7FEFF bl HAL_DMA_Init - 181 .LVL6: - 122:Src/stm32f0xx_hal_msp.c **** /* USER CODE BEGIN ADC1_MspInit 1 */ - 182 .loc 1 122 0 - 183 0080 E563 str r5, [r4, #60] - 184 0082 6C62 str r4, [r5, #36] - 185 .loc 1 128 0 - 186 0084 C8E7 b .L4 - 187 .L8: - 188 0086 C046 .align 2 - 189 .L7: - 190 0088 00240140 .word 1073816576 - 191 008c 00100240 .word 1073876992 - 192 0090 00000000 .word hdma_adc - 193 0094 08000240 .word 1073872904 - 194 .cfi_endproc - 195 .LFE38: - 197 .section .text.HAL_ADC_MspDeInit,"ax",%progbits - 198 .align 1 - 199 .global HAL_ADC_MspDeInit - 200 .syntax unified - 201 .code 16 - 202 .thumb_func - 203 .fpu softvfp - ARM GAS /tmp/cclHamwV.s page 7 - - - 205 HAL_ADC_MspDeInit: - 206 .LFB39: - 129:Src/stm32f0xx_hal_msp.c **** - 130:Src/stm32f0xx_hal_msp.c **** /** - 131:Src/stm32f0xx_hal_msp.c **** * @brief ADC MSP De-Initialization - 132:Src/stm32f0xx_hal_msp.c **** * This function freeze the hardware resources used in this example - 133:Src/stm32f0xx_hal_msp.c **** * @param hadc: ADC handle pointer - 134:Src/stm32f0xx_hal_msp.c **** * @retval None - 135:Src/stm32f0xx_hal_msp.c **** */ - 136:Src/stm32f0xx_hal_msp.c **** void HAL_ADC_MspDeInit(ADC_HandleTypeDef* hadc) - 137:Src/stm32f0xx_hal_msp.c **** { - 207 .loc 1 137 0 - 208 .cfi_startproc - 209 @ args = 0, pretend = 0, frame = 0 - 210 @ frame_needed = 0, uses_anonymous_args = 0 - 211 .LVL7: - 212 0000 10B5 push {r4, lr} - 213 .LCFI3: - 214 .cfi_def_cfa_offset 8 - 215 .cfi_offset 4, -8 - 216 .cfi_offset 14, -4 - 217 0002 0400 movs r4, r0 - 138:Src/stm32f0xx_hal_msp.c **** if(hadc->Instance==ADC1) - 218 .loc 1 138 0 - 219 0004 094B ldr r3, .L12 - 220 0006 0268 ldr r2, [r0] - 221 0008 9A42 cmp r2, r3 - 222 000a 00D0 beq .L11 - 223 .LVL8: - 224 .L9: - 139:Src/stm32f0xx_hal_msp.c **** { - 140:Src/stm32f0xx_hal_msp.c **** /* USER CODE BEGIN ADC1_MspDeInit 0 */ - 141:Src/stm32f0xx_hal_msp.c **** - 142:Src/stm32f0xx_hal_msp.c **** /* USER CODE END ADC1_MspDeInit 0 */ - 143:Src/stm32f0xx_hal_msp.c **** /* Peripheral clock disable */ - 144:Src/stm32f0xx_hal_msp.c **** __HAL_RCC_ADC1_CLK_DISABLE(); - 145:Src/stm32f0xx_hal_msp.c **** - 146:Src/stm32f0xx_hal_msp.c **** /**ADC GPIO Configuration - 147:Src/stm32f0xx_hal_msp.c **** PA0 ------> ADC_IN0 - 148:Src/stm32f0xx_hal_msp.c **** PA1 ------> ADC_IN1 - 149:Src/stm32f0xx_hal_msp.c **** PA2 ------> ADC_IN2 - 150:Src/stm32f0xx_hal_msp.c **** PA5 ------> ADC_IN5 - 151:Src/stm32f0xx_hal_msp.c **** */ - 152:Src/stm32f0xx_hal_msp.c **** HAL_GPIO_DeInit(GPIOA, IIN_Pin|TTIP_Pin|UIN_Pin|TREF_Pin); - 153:Src/stm32f0xx_hal_msp.c **** HAL_DMA_DeInit(hadc->DMA_Handle); - 154:Src/stm32f0xx_hal_msp.c **** - 155:Src/stm32f0xx_hal_msp.c **** /* USER CODE BEGIN ADC1_MspDeInit 1 */ - 156:Src/stm32f0xx_hal_msp.c **** - 157:Src/stm32f0xx_hal_msp.c **** /* USER CODE END ADC1_MspDeInit 1 */ - 158:Src/stm32f0xx_hal_msp.c **** } - 159:Src/stm32f0xx_hal_msp.c **** - 160:Src/stm32f0xx_hal_msp.c **** } - 225 .loc 1 160 0 - 226 @ sp needed - 227 .LVL9: - 228 000c 10BD pop {r4, pc} - 229 .LVL10: - ARM GAS /tmp/cclHamwV.s page 8 - - - 230 .L11: - 144:Src/stm32f0xx_hal_msp.c **** - 231 .loc 1 144 0 - 232 000e 084A ldr r2, .L12+4 - 233 0010 9369 ldr r3, [r2, #24] - 234 0012 0849 ldr r1, .L12+8 - 235 0014 0B40 ands r3, r1 - 236 0016 9361 str r3, [r2, #24] - 152:Src/stm32f0xx_hal_msp.c **** HAL_DMA_DeInit(hadc->DMA_Handle); - 237 .loc 1 152 0 - 238 0018 9020 movs r0, #144 - 239 .LVL11: - 240 001a 2721 movs r1, #39 - 241 001c C005 lsls r0, r0, #23 - 242 001e FFF7FEFF bl HAL_GPIO_DeInit - 243 .LVL12: - 153:Src/stm32f0xx_hal_msp.c **** - 244 .loc 1 153 0 - 245 0022 E06B ldr r0, [r4, #60] - 246 0024 FFF7FEFF bl HAL_DMA_DeInit - 247 .LVL13: - 248 .loc 1 160 0 - 249 0028 F0E7 b .L9 - 250 .L13: - 251 002a C046 .align 2 - 252 .L12: - 253 002c 00240140 .word 1073816576 - 254 0030 00100240 .word 1073876992 - 255 0034 FFFDFFFF .word -513 - 256 .cfi_endproc - 257 .LFE39: - 259 .section .text.HAL_I2C_MspInit,"ax",%progbits - 260 .align 1 - 261 .global HAL_I2C_MspInit - 262 .syntax unified - 263 .code 16 - 264 .thumb_func - 265 .fpu softvfp - 267 HAL_I2C_MspInit: - 268 .LFB40: - 161:Src/stm32f0xx_hal_msp.c **** - 162:Src/stm32f0xx_hal_msp.c **** /** - 163:Src/stm32f0xx_hal_msp.c **** * @brief I2C MSP Initialization - 164:Src/stm32f0xx_hal_msp.c **** * This function configures the hardware resources used in this example - 165:Src/stm32f0xx_hal_msp.c **** * @param hi2c: I2C handle pointer - 166:Src/stm32f0xx_hal_msp.c **** * @retval None - 167:Src/stm32f0xx_hal_msp.c **** */ - 168:Src/stm32f0xx_hal_msp.c **** void HAL_I2C_MspInit(I2C_HandleTypeDef* hi2c) - 169:Src/stm32f0xx_hal_msp.c **** { - 269 .loc 1 169 0 - 270 .cfi_startproc - 271 @ args = 0, pretend = 0, frame = 40 - 272 @ frame_needed = 0, uses_anonymous_args = 0 - 273 .LVL14: - 274 0000 10B5 push {r4, lr} - 275 .LCFI4: - 276 .cfi_def_cfa_offset 8 - ARM GAS /tmp/cclHamwV.s page 9 - - - 277 .cfi_offset 4, -8 - 278 .cfi_offset 14, -4 - 279 0002 8AB0 sub sp, sp, #40 - 280 .LCFI5: - 281 .cfi_def_cfa_offset 48 - 282 0004 0400 movs r4, r0 - 170:Src/stm32f0xx_hal_msp.c **** GPIO_InitTypeDef GPIO_InitStruct = {0}; - 283 .loc 1 170 0 - 284 0006 1422 movs r2, #20 - 285 0008 0021 movs r1, #0 - 286 000a 05A8 add r0, sp, #20 - 287 .LVL15: - 288 000c FFF7FEFF bl memset - 289 .LVL16: - 171:Src/stm32f0xx_hal_msp.c **** if(hi2c->Instance==I2C1) - 290 .loc 1 171 0 - 291 0010 2368 ldr r3, [r4] - 292 0012 254A ldr r2, .L19 - 293 0014 9342 cmp r3, r2 - 294 0016 04D0 beq .L17 - 172:Src/stm32f0xx_hal_msp.c **** { - 173:Src/stm32f0xx_hal_msp.c **** /* USER CODE BEGIN I2C1_MspInit 0 */ - 174:Src/stm32f0xx_hal_msp.c **** - 175:Src/stm32f0xx_hal_msp.c **** /* USER CODE END I2C1_MspInit 0 */ - 176:Src/stm32f0xx_hal_msp.c **** - 177:Src/stm32f0xx_hal_msp.c **** __HAL_RCC_GPIOB_CLK_ENABLE(); - 178:Src/stm32f0xx_hal_msp.c **** /**I2C1 GPIO Configuration - 179:Src/stm32f0xx_hal_msp.c **** PB6 ------> I2C1_SCL - 180:Src/stm32f0xx_hal_msp.c **** PB7 ------> I2C1_SDA - 181:Src/stm32f0xx_hal_msp.c **** */ - 182:Src/stm32f0xx_hal_msp.c **** - 183:Src/stm32f0xx_hal_msp.c **** GPIO_InitStruct.Pin = OLED_SCL_Pin|OLED_SDA_Pin; - 184:Src/stm32f0xx_hal_msp.c **** GPIO_InitStruct.Mode = GPIO_MODE_AF_OD; - 185:Src/stm32f0xx_hal_msp.c **** GPIO_InitStruct.Pull = GPIO_PULLUP; - 186:Src/stm32f0xx_hal_msp.c **** GPIO_InitStruct.Speed = GPIO_SPEED_FREQ_HIGH; - 187:Src/stm32f0xx_hal_msp.c **** GPIO_InitStruct.Alternate = GPIO_AF1_I2C1; - 188:Src/stm32f0xx_hal_msp.c **** HAL_GPIO_Init(GPIOB, &GPIO_InitStruct); - 189:Src/stm32f0xx_hal_msp.c **** - 190:Src/stm32f0xx_hal_msp.c **** /* Peripheral clock enable */ - 191:Src/stm32f0xx_hal_msp.c **** __HAL_RCC_I2C1_CLK_ENABLE(); - 192:Src/stm32f0xx_hal_msp.c **** /* USER CODE BEGIN I2C1_MspInit 1 */ - 193:Src/stm32f0xx_hal_msp.c **** - 194:Src/stm32f0xx_hal_msp.c **** /* USER CODE END I2C1_MspInit 1 */ - 195:Src/stm32f0xx_hal_msp.c **** } - 196:Src/stm32f0xx_hal_msp.c **** else if(hi2c->Instance==I2C2) - 295 .loc 1 196 0 - 296 0018 244A ldr r2, .L19+4 - 297 001a 9342 cmp r3, r2 - 298 001c 22D0 beq .L18 - 299 .LVL17: - 300 .L14: - 197:Src/stm32f0xx_hal_msp.c **** { - 198:Src/stm32f0xx_hal_msp.c **** /* USER CODE BEGIN I2C2_MspInit 0 */ - 199:Src/stm32f0xx_hal_msp.c **** - 200:Src/stm32f0xx_hal_msp.c **** /* USER CODE END I2C2_MspInit 0 */ - 201:Src/stm32f0xx_hal_msp.c **** - 202:Src/stm32f0xx_hal_msp.c **** __HAL_RCC_GPIOB_CLK_ENABLE(); - ARM GAS /tmp/cclHamwV.s page 10 - - - 203:Src/stm32f0xx_hal_msp.c **** /**I2C2 GPIO Configuration - 204:Src/stm32f0xx_hal_msp.c **** PB10 ------> I2C2_SCL - 205:Src/stm32f0xx_hal_msp.c **** PB11 ------> I2C2_SDA - 206:Src/stm32f0xx_hal_msp.c **** */ - 207:Src/stm32f0xx_hal_msp.c **** GPIO_InitStruct.Pin = STUSB_SCL_Pin|STUSB_SDA_Pin; - 208:Src/stm32f0xx_hal_msp.c **** GPIO_InitStruct.Mode = GPIO_MODE_AF_OD; - 209:Src/stm32f0xx_hal_msp.c **** GPIO_InitStruct.Pull = GPIO_PULLUP; - 210:Src/stm32f0xx_hal_msp.c **** GPIO_InitStruct.Speed = GPIO_SPEED_FREQ_HIGH; - 211:Src/stm32f0xx_hal_msp.c **** GPIO_InitStruct.Alternate = GPIO_AF1_I2C2; - 212:Src/stm32f0xx_hal_msp.c **** HAL_GPIO_Init(GPIOB, &GPIO_InitStruct); - 213:Src/stm32f0xx_hal_msp.c **** - 214:Src/stm32f0xx_hal_msp.c **** /* Peripheral clock enable */ - 215:Src/stm32f0xx_hal_msp.c **** __HAL_RCC_I2C2_CLK_ENABLE(); - 216:Src/stm32f0xx_hal_msp.c **** /* USER CODE BEGIN I2C2_MspInit 1 */ - 217:Src/stm32f0xx_hal_msp.c **** - 218:Src/stm32f0xx_hal_msp.c **** /* USER CODE END I2C2_MspInit 1 */ - 219:Src/stm32f0xx_hal_msp.c **** } - 220:Src/stm32f0xx_hal_msp.c **** - 221:Src/stm32f0xx_hal_msp.c **** } - 301 .loc 1 221 0 - 302 001e 0AB0 add sp, sp, #40 - 303 @ sp needed - 304 0020 10BD pop {r4, pc} - 305 .LVL18: - 306 .L17: - 307 .LBB6: - 177:Src/stm32f0xx_hal_msp.c **** /**I2C1 GPIO Configuration - 308 .loc 1 177 0 - 309 0022 234C ldr r4, .L19+8 - 310 .LVL19: - 311 0024 6269 ldr r2, [r4, #20] - 312 0026 8021 movs r1, #128 - 313 0028 C902 lsls r1, r1, #11 - 314 002a 0A43 orrs r2, r1 - 315 002c 6261 str r2, [r4, #20] - 316 002e 6369 ldr r3, [r4, #20] - 317 0030 0B40 ands r3, r1 - 318 0032 0193 str r3, [sp, #4] - 319 0034 019B ldr r3, [sp, #4] - 320 .LBE6: - 183:Src/stm32f0xx_hal_msp.c **** GPIO_InitStruct.Mode = GPIO_MODE_AF_OD; - 321 .loc 1 183 0 - 322 0036 C023 movs r3, #192 - 323 0038 0593 str r3, [sp, #20] - 184:Src/stm32f0xx_hal_msp.c **** GPIO_InitStruct.Pull = GPIO_PULLUP; - 324 .loc 1 184 0 - 325 003a AE3B subs r3, r3, #174 - 326 003c 0693 str r3, [sp, #24] - 185:Src/stm32f0xx_hal_msp.c **** GPIO_InitStruct.Speed = GPIO_SPEED_FREQ_HIGH; - 327 .loc 1 185 0 - 328 003e 113B subs r3, r3, #17 - 329 0040 0793 str r3, [sp, #28] - 186:Src/stm32f0xx_hal_msp.c **** GPIO_InitStruct.Alternate = GPIO_AF1_I2C1; - 330 .loc 1 186 0 - 331 0042 0322 movs r2, #3 - 332 0044 0892 str r2, [sp, #32] - 187:Src/stm32f0xx_hal_msp.c **** HAL_GPIO_Init(GPIOB, &GPIO_InitStruct); - ARM GAS /tmp/cclHamwV.s page 11 - - - 333 .loc 1 187 0 - 334 0046 0993 str r3, [sp, #36] - 188:Src/stm32f0xx_hal_msp.c **** - 335 .loc 1 188 0 - 336 0048 05A9 add r1, sp, #20 - 337 004a 1A48 ldr r0, .L19+12 - 338 004c FFF7FEFF bl HAL_GPIO_Init - 339 .LVL20: - 340 .LBB7: - 191:Src/stm32f0xx_hal_msp.c **** /* USER CODE BEGIN I2C1_MspInit 1 */ - 341 .loc 1 191 0 - 342 0050 E269 ldr r2, [r4, #28] - 343 0052 8021 movs r1, #128 - 344 0054 8903 lsls r1, r1, #14 - 345 0056 0A43 orrs r2, r1 - 346 0058 E261 str r2, [r4, #28] - 347 005a E369 ldr r3, [r4, #28] - 348 005c 0B40 ands r3, r1 - 349 005e 0293 str r3, [sp, #8] - 350 0060 029B ldr r3, [sp, #8] - 351 .LBE7: - 352 0062 DCE7 b .L14 - 353 .LVL21: - 354 .L18: - 355 .LBB8: - 202:Src/stm32f0xx_hal_msp.c **** /**I2C2 GPIO Configuration - 356 .loc 1 202 0 - 357 0064 124C ldr r4, .L19+8 - 358 .LVL22: - 359 0066 6269 ldr r2, [r4, #20] - 360 0068 8021 movs r1, #128 - 361 006a C902 lsls r1, r1, #11 - 362 006c 0A43 orrs r2, r1 - 363 006e 6261 str r2, [r4, #20] - 364 0070 6369 ldr r3, [r4, #20] - 365 0072 0B40 ands r3, r1 - 366 0074 0393 str r3, [sp, #12] - 367 0076 039B ldr r3, [sp, #12] - 368 .LBE8: - 207:Src/stm32f0xx_hal_msp.c **** GPIO_InitStruct.Mode = GPIO_MODE_AF_OD; - 369 .loc 1 207 0 - 370 0078 C023 movs r3, #192 - 371 007a 1B01 lsls r3, r3, #4 - 372 007c 0593 str r3, [sp, #20] - 208:Src/stm32f0xx_hal_msp.c **** GPIO_InitStruct.Pull = GPIO_PULLUP; - 373 .loc 1 208 0 - 374 007e 1223 movs r3, #18 - 375 0080 0693 str r3, [sp, #24] - 209:Src/stm32f0xx_hal_msp.c **** GPIO_InitStruct.Speed = GPIO_SPEED_FREQ_HIGH; - 376 .loc 1 209 0 - 377 0082 113B subs r3, r3, #17 - 378 0084 0793 str r3, [sp, #28] - 210:Src/stm32f0xx_hal_msp.c **** GPIO_InitStruct.Alternate = GPIO_AF1_I2C2; - 379 .loc 1 210 0 - 380 0086 0322 movs r2, #3 - 381 0088 0892 str r2, [sp, #32] - 211:Src/stm32f0xx_hal_msp.c **** HAL_GPIO_Init(GPIOB, &GPIO_InitStruct); - ARM GAS /tmp/cclHamwV.s page 12 - - - 382 .loc 1 211 0 - 383 008a 0993 str r3, [sp, #36] - 212:Src/stm32f0xx_hal_msp.c **** - 384 .loc 1 212 0 - 385 008c 05A9 add r1, sp, #20 - 386 008e 0948 ldr r0, .L19+12 - 387 0090 FFF7FEFF bl HAL_GPIO_Init - 388 .LVL23: - 389 .LBB9: - 215:Src/stm32f0xx_hal_msp.c **** /* USER CODE BEGIN I2C2_MspInit 1 */ - 390 .loc 1 215 0 - 391 0094 E269 ldr r2, [r4, #28] - 392 0096 8021 movs r1, #128 - 393 0098 C903 lsls r1, r1, #15 - 394 009a 0A43 orrs r2, r1 - 395 009c E261 str r2, [r4, #28] - 396 009e E369 ldr r3, [r4, #28] - 397 00a0 0B40 ands r3, r1 - 398 00a2 0493 str r3, [sp, #16] - 399 00a4 049B ldr r3, [sp, #16] - 400 .LBE9: - 401 .loc 1 221 0 - 402 00a6 BAE7 b .L14 - 403 .L20: - 404 .align 2 - 405 .L19: - 406 00a8 00540040 .word 1073763328 - 407 00ac 00580040 .word 1073764352 - 408 00b0 00100240 .word 1073876992 - 409 00b4 00040048 .word 1207960576 - 410 .cfi_endproc - 411 .LFE40: - 413 .section .text.HAL_I2C_MspDeInit,"ax",%progbits - 414 .align 1 - 415 .global HAL_I2C_MspDeInit - 416 .syntax unified - 417 .code 16 - 418 .thumb_func - 419 .fpu softvfp - 421 HAL_I2C_MspDeInit: - 422 .LFB41: - 222:Src/stm32f0xx_hal_msp.c **** - 223:Src/stm32f0xx_hal_msp.c **** /** - 224:Src/stm32f0xx_hal_msp.c **** * @brief I2C MSP De-Initialization - 225:Src/stm32f0xx_hal_msp.c **** * This function freeze the hardware resources used in this example - 226:Src/stm32f0xx_hal_msp.c **** * @param hi2c: I2C handle pointer - 227:Src/stm32f0xx_hal_msp.c **** * @retval None - 228:Src/stm32f0xx_hal_msp.c **** */ - 229:Src/stm32f0xx_hal_msp.c **** void HAL_I2C_MspDeInit(I2C_HandleTypeDef* hi2c) - 230:Src/stm32f0xx_hal_msp.c **** { - 423 .loc 1 230 0 - 424 .cfi_startproc - 425 @ args = 0, pretend = 0, frame = 0 - 426 @ frame_needed = 0, uses_anonymous_args = 0 - 427 .LVL24: - 428 0000 10B5 push {r4, lr} - 429 .LCFI6: - ARM GAS /tmp/cclHamwV.s page 13 - - - 430 .cfi_def_cfa_offset 8 - 431 .cfi_offset 4, -8 - 432 .cfi_offset 14, -4 - 231:Src/stm32f0xx_hal_msp.c **** if(hi2c->Instance==I2C1) - 433 .loc 1 231 0 - 434 0002 0368 ldr r3, [r0] - 435 0004 0D4A ldr r2, .L26 - 436 0006 9342 cmp r3, r2 - 437 0008 03D0 beq .L24 - 232:Src/stm32f0xx_hal_msp.c **** { - 233:Src/stm32f0xx_hal_msp.c **** /* USER CODE BEGIN I2C1_MspDeInit 0 */ - 234:Src/stm32f0xx_hal_msp.c **** - 235:Src/stm32f0xx_hal_msp.c **** /* USER CODE END I2C1_MspDeInit 0 */ - 236:Src/stm32f0xx_hal_msp.c **** /* Peripheral clock disable */ - 237:Src/stm32f0xx_hal_msp.c **** __HAL_RCC_I2C1_CLK_DISABLE(); - 238:Src/stm32f0xx_hal_msp.c **** - 239:Src/stm32f0xx_hal_msp.c **** /**I2C1 GPIO Configuration - 240:Src/stm32f0xx_hal_msp.c **** PB6 ------> I2C1_SCL - 241:Src/stm32f0xx_hal_msp.c **** PB7 ------> I2C1_SDA - 242:Src/stm32f0xx_hal_msp.c **** */ - 243:Src/stm32f0xx_hal_msp.c **** HAL_GPIO_DeInit(GPIOB, OLED_SCL_Pin|OLED_SDA_Pin); - 244:Src/stm32f0xx_hal_msp.c **** - 245:Src/stm32f0xx_hal_msp.c **** /* USER CODE BEGIN I2C1_MspDeInit 1 */ - 246:Src/stm32f0xx_hal_msp.c **** - 247:Src/stm32f0xx_hal_msp.c **** /* USER CODE END I2C1_MspDeInit 1 */ - 248:Src/stm32f0xx_hal_msp.c **** } - 249:Src/stm32f0xx_hal_msp.c **** else if(hi2c->Instance==I2C2) - 438 .loc 1 249 0 - 439 000a 0D4A ldr r2, .L26+4 - 440 000c 9342 cmp r3, r2 - 441 000e 0AD0 beq .L25 - 442 .LVL25: - 443 .L21: - 250:Src/stm32f0xx_hal_msp.c **** { - 251:Src/stm32f0xx_hal_msp.c **** /* USER CODE BEGIN I2C2_MspDeInit 0 */ - 252:Src/stm32f0xx_hal_msp.c **** - 253:Src/stm32f0xx_hal_msp.c **** /* USER CODE END I2C2_MspDeInit 0 */ - 254:Src/stm32f0xx_hal_msp.c **** /* Peripheral clock disable */ - 255:Src/stm32f0xx_hal_msp.c **** __HAL_RCC_I2C2_CLK_DISABLE(); - 256:Src/stm32f0xx_hal_msp.c **** - 257:Src/stm32f0xx_hal_msp.c **** /**I2C2 GPIO Configuration - 258:Src/stm32f0xx_hal_msp.c **** PB10 ------> I2C2_SCL - 259:Src/stm32f0xx_hal_msp.c **** PB11 ------> I2C2_SDA - 260:Src/stm32f0xx_hal_msp.c **** */ - 261:Src/stm32f0xx_hal_msp.c **** HAL_GPIO_DeInit(GPIOB, STUSB_SCL_Pin|STUSB_SDA_Pin); - 262:Src/stm32f0xx_hal_msp.c **** - 263:Src/stm32f0xx_hal_msp.c **** /* USER CODE BEGIN I2C2_MspDeInit 1 */ - 264:Src/stm32f0xx_hal_msp.c **** - 265:Src/stm32f0xx_hal_msp.c **** /* USER CODE END I2C2_MspDeInit 1 */ - 266:Src/stm32f0xx_hal_msp.c **** } - 267:Src/stm32f0xx_hal_msp.c **** - 268:Src/stm32f0xx_hal_msp.c **** } - 444 .loc 1 268 0 - 445 @ sp needed - 446 0010 10BD pop {r4, pc} - 447 .LVL26: - 448 .L24: - ARM GAS /tmp/cclHamwV.s page 14 - - - 237:Src/stm32f0xx_hal_msp.c **** - 449 .loc 1 237 0 - 450 0012 0C4A ldr r2, .L26+8 - 451 0014 D369 ldr r3, [r2, #28] - 452 0016 0C49 ldr r1, .L26+12 - 453 0018 0B40 ands r3, r1 - 454 001a D361 str r3, [r2, #28] - 243:Src/stm32f0xx_hal_msp.c **** - 455 .loc 1 243 0 - 456 001c C021 movs r1, #192 - 457 001e 0B48 ldr r0, .L26+16 - 458 .LVL27: - 459 0020 FFF7FEFF bl HAL_GPIO_DeInit - 460 .LVL28: - 461 0024 F4E7 b .L21 - 462 .LVL29: - 463 .L25: - 255:Src/stm32f0xx_hal_msp.c **** - 464 .loc 1 255 0 - 465 0026 074A ldr r2, .L26+8 - 466 0028 D369 ldr r3, [r2, #28] - 467 002a 0949 ldr r1, .L26+20 - 468 002c 0B40 ands r3, r1 - 469 002e D361 str r3, [r2, #28] - 261:Src/stm32f0xx_hal_msp.c **** - 470 .loc 1 261 0 - 471 0030 C021 movs r1, #192 - 472 0032 0901 lsls r1, r1, #4 - 473 0034 0548 ldr r0, .L26+16 - 474 .LVL30: - 475 0036 FFF7FEFF bl HAL_GPIO_DeInit - 476 .LVL31: - 477 .loc 1 268 0 - 478 003a E9E7 b .L21 - 479 .L27: - 480 .align 2 - 481 .L26: - 482 003c 00540040 .word 1073763328 - 483 0040 00580040 .word 1073764352 - 484 0044 00100240 .word 1073876992 - 485 0048 FFFFDFFF .word -2097153 - 486 004c 00040048 .word 1207960576 - 487 0050 FFFFBFFF .word -4194305 - 488 .cfi_endproc - 489 .LFE41: - 491 .section .text.HAL_TIM_PWM_MspInit,"ax",%progbits - 492 .align 1 - 493 .global HAL_TIM_PWM_MspInit - 494 .syntax unified - 495 .code 16 - 496 .thumb_func - 497 .fpu softvfp - 499 HAL_TIM_PWM_MspInit: - 500 .LFB42: - 269:Src/stm32f0xx_hal_msp.c **** - 270:Src/stm32f0xx_hal_msp.c **** /** - 271:Src/stm32f0xx_hal_msp.c **** * @brief TIM_PWM MSP Initialization - ARM GAS /tmp/cclHamwV.s page 15 - - - 272:Src/stm32f0xx_hal_msp.c **** * This function configures the hardware resources used in this example - 273:Src/stm32f0xx_hal_msp.c **** * @param htim_pwm: TIM_PWM handle pointer - 274:Src/stm32f0xx_hal_msp.c **** * @retval None - 275:Src/stm32f0xx_hal_msp.c **** */ - 276:Src/stm32f0xx_hal_msp.c **** void HAL_TIM_PWM_MspInit(TIM_HandleTypeDef* htim_pwm) - 277:Src/stm32f0xx_hal_msp.c **** { - 501 .loc 1 277 0 - 502 .cfi_startproc - 503 @ args = 0, pretend = 0, frame = 8 - 504 @ frame_needed = 0, uses_anonymous_args = 0 - 505 .LVL32: - 506 0000 00B5 push {lr} - 507 .LCFI7: - 508 .cfi_def_cfa_offset 4 - 509 .cfi_offset 14, -4 - 510 0002 83B0 sub sp, sp, #12 - 511 .LCFI8: - 512 .cfi_def_cfa_offset 16 - 278:Src/stm32f0xx_hal_msp.c **** if(htim_pwm->Instance==TIM1) - 513 .loc 1 278 0 - 514 0004 0268 ldr r2, [r0] - 515 0006 104B ldr r3, .L31 - 516 0008 9A42 cmp r2, r3 - 517 000a 01D0 beq .L30 - 518 .LVL33: - 519 .L28: - 279:Src/stm32f0xx_hal_msp.c **** { - 280:Src/stm32f0xx_hal_msp.c **** /* USER CODE BEGIN TIM1_MspInit 0 */ - 281:Src/stm32f0xx_hal_msp.c **** - 282:Src/stm32f0xx_hal_msp.c **** /* USER CODE END TIM1_MspInit 0 */ - 283:Src/stm32f0xx_hal_msp.c **** /* Peripheral clock enable */ - 284:Src/stm32f0xx_hal_msp.c **** __HAL_RCC_TIM1_CLK_ENABLE(); - 285:Src/stm32f0xx_hal_msp.c **** /* TIM1 interrupt Init */ - 286:Src/stm32f0xx_hal_msp.c **** HAL_NVIC_SetPriority(TIM1_BRK_UP_TRG_COM_IRQn, 0, 0); - 287:Src/stm32f0xx_hal_msp.c **** HAL_NVIC_EnableIRQ(TIM1_BRK_UP_TRG_COM_IRQn); - 288:Src/stm32f0xx_hal_msp.c **** HAL_NVIC_SetPriority(TIM1_CC_IRQn, 0, 0); - 289:Src/stm32f0xx_hal_msp.c **** HAL_NVIC_EnableIRQ(TIM1_CC_IRQn); - 290:Src/stm32f0xx_hal_msp.c **** /* USER CODE BEGIN TIM1_MspInit 1 */ - 291:Src/stm32f0xx_hal_msp.c **** - 292:Src/stm32f0xx_hal_msp.c **** /* USER CODE END TIM1_MspInit 1 */ - 293:Src/stm32f0xx_hal_msp.c **** } - 294:Src/stm32f0xx_hal_msp.c **** } - 520 .loc 1 294 0 - 521 000c 03B0 add sp, sp, #12 - 522 @ sp needed - 523 000e 00BD pop {pc} - 524 .LVL34: - 525 .L30: - 526 .LBB10: - 284:Src/stm32f0xx_hal_msp.c **** /* TIM1 interrupt Init */ - 527 .loc 1 284 0 - 528 0010 0E4A ldr r2, .L31+4 - 529 0012 9169 ldr r1, [r2, #24] - 530 0014 8020 movs r0, #128 - 531 .LVL35: - 532 0016 0001 lsls r0, r0, #4 - 533 0018 0143 orrs r1, r0 - ARM GAS /tmp/cclHamwV.s page 16 - - - 534 001a 9161 str r1, [r2, #24] - 535 001c 9369 ldr r3, [r2, #24] - 536 001e 0340 ands r3, r0 - 537 0020 0193 str r3, [sp, #4] - 538 0022 019B ldr r3, [sp, #4] - 539 .LBE10: - 286:Src/stm32f0xx_hal_msp.c **** HAL_NVIC_EnableIRQ(TIM1_BRK_UP_TRG_COM_IRQn); - 540 .loc 1 286 0 - 541 0024 0022 movs r2, #0 - 542 0026 0021 movs r1, #0 - 543 0028 0D20 movs r0, #13 - 544 002a FFF7FEFF bl HAL_NVIC_SetPriority - 545 .LVL36: - 287:Src/stm32f0xx_hal_msp.c **** HAL_NVIC_SetPriority(TIM1_CC_IRQn, 0, 0); - 546 .loc 1 287 0 - 547 002e 0D20 movs r0, #13 - 548 0030 FFF7FEFF bl HAL_NVIC_EnableIRQ - 549 .LVL37: - 288:Src/stm32f0xx_hal_msp.c **** HAL_NVIC_EnableIRQ(TIM1_CC_IRQn); - 550 .loc 1 288 0 - 551 0034 0022 movs r2, #0 - 552 0036 0021 movs r1, #0 - 553 0038 0E20 movs r0, #14 - 554 003a FFF7FEFF bl HAL_NVIC_SetPriority - 555 .LVL38: - 289:Src/stm32f0xx_hal_msp.c **** /* USER CODE BEGIN TIM1_MspInit 1 */ - 556 .loc 1 289 0 - 557 003e 0E20 movs r0, #14 - 558 0040 FFF7FEFF bl HAL_NVIC_EnableIRQ - 559 .LVL39: - 560 .loc 1 294 0 - 561 0044 E2E7 b .L28 - 562 .L32: - 563 0046 C046 .align 2 - 564 .L31: - 565 0048 002C0140 .word 1073818624 - 566 004c 00100240 .word 1073876992 - 567 .cfi_endproc - 568 .LFE42: - 570 .section .text.HAL_TIM_MspPostInit,"ax",%progbits - 571 .align 1 - 572 .global HAL_TIM_MspPostInit - 573 .syntax unified - 574 .code 16 - 575 .thumb_func - 576 .fpu softvfp - 578 HAL_TIM_MspPostInit: - 579 .LFB43: - 295:Src/stm32f0xx_hal_msp.c **** - 296:Src/stm32f0xx_hal_msp.c **** void HAL_TIM_MspPostInit(TIM_HandleTypeDef* htim) - 297:Src/stm32f0xx_hal_msp.c **** { - 580 .loc 1 297 0 - 581 .cfi_startproc - 582 @ args = 0, pretend = 0, frame = 32 - 583 @ frame_needed = 0, uses_anonymous_args = 0 - 584 .LVL40: - 585 0000 10B5 push {r4, lr} - ARM GAS /tmp/cclHamwV.s page 17 - - - 586 .LCFI9: - 587 .cfi_def_cfa_offset 8 - 588 .cfi_offset 4, -8 - 589 .cfi_offset 14, -4 - 590 0002 88B0 sub sp, sp, #32 - 591 .LCFI10: - 592 .cfi_def_cfa_offset 40 - 593 0004 0400 movs r4, r0 - 298:Src/stm32f0xx_hal_msp.c **** GPIO_InitTypeDef GPIO_InitStruct = {0}; - 594 .loc 1 298 0 - 595 0006 1422 movs r2, #20 - 596 0008 0021 movs r1, #0 - 597 000a 03A8 add r0, sp, #12 - 598 .LVL41: - 599 000c FFF7FEFF bl memset - 600 .LVL42: - 299:Src/stm32f0xx_hal_msp.c **** if(htim->Instance==TIM1) - 601 .loc 1 299 0 - 602 0010 2268 ldr r2, [r4] - 603 0012 124B ldr r3, .L36 - 604 0014 9A42 cmp r2, r3 - 605 0016 01D0 beq .L35 - 606 .L33: - 300:Src/stm32f0xx_hal_msp.c **** { - 301:Src/stm32f0xx_hal_msp.c **** /* USER CODE BEGIN TIM1_MspPostInit 0 */ - 302:Src/stm32f0xx_hal_msp.c **** - 303:Src/stm32f0xx_hal_msp.c **** /* USER CODE END TIM1_MspPostInit 0 */ - 304:Src/stm32f0xx_hal_msp.c **** __HAL_RCC_TIM1_CLK_ENABLE(); - 305:Src/stm32f0xx_hal_msp.c **** - 306:Src/stm32f0xx_hal_msp.c **** __HAL_RCC_GPIOA_CLK_ENABLE(); - 307:Src/stm32f0xx_hal_msp.c **** /**TIM1 GPIO Configuration - 308:Src/stm32f0xx_hal_msp.c **** PA8 ------> TIM1_CH1 - 309:Src/stm32f0xx_hal_msp.c **** */ - 310:Src/stm32f0xx_hal_msp.c **** GPIO_InitStruct.Pin = PWMOUT_Pin; - 311:Src/stm32f0xx_hal_msp.c **** GPIO_InitStruct.Mode = GPIO_MODE_AF_PP; - 312:Src/stm32f0xx_hal_msp.c **** GPIO_InitStruct.Pull = GPIO_NOPULL; - 313:Src/stm32f0xx_hal_msp.c **** GPIO_InitStruct.Speed = GPIO_SPEED_FREQ_LOW; - 314:Src/stm32f0xx_hal_msp.c **** GPIO_InitStruct.Alternate = GPIO_AF2_TIM1; - 315:Src/stm32f0xx_hal_msp.c **** HAL_GPIO_Init(PWMOUT_GPIO_Port, &GPIO_InitStruct); - 316:Src/stm32f0xx_hal_msp.c **** - 317:Src/stm32f0xx_hal_msp.c **** /* USER CODE BEGIN TIM1_MspPostInit 1 */ - 318:Src/stm32f0xx_hal_msp.c **** - 319:Src/stm32f0xx_hal_msp.c **** /* USER CODE END TIM1_MspPostInit 1 */ - 320:Src/stm32f0xx_hal_msp.c **** } - 321:Src/stm32f0xx_hal_msp.c **** - 322:Src/stm32f0xx_hal_msp.c **** } - 607 .loc 1 322 0 - 608 0018 08B0 add sp, sp, #32 - 609 @ sp needed - 610 .LVL43: - 611 001a 10BD pop {r4, pc} - 612 .LVL44: - 613 .L35: - 614 .LBB11: - 304:Src/stm32f0xx_hal_msp.c **** - 615 .loc 1 304 0 - 616 001c 104B ldr r3, .L36+4 - ARM GAS /tmp/cclHamwV.s page 18 - - - 617 001e 9969 ldr r1, [r3, #24] - 618 0020 8020 movs r0, #128 - 619 0022 0001 lsls r0, r0, #4 - 620 0024 0143 orrs r1, r0 - 621 0026 9961 str r1, [r3, #24] - 622 0028 9A69 ldr r2, [r3, #24] - 623 002a 0240 ands r2, r0 - 624 002c 0192 str r2, [sp, #4] - 625 002e 019A ldr r2, [sp, #4] - 626 .LBE11: - 627 .LBB12: - 306:Src/stm32f0xx_hal_msp.c **** /**TIM1 GPIO Configuration - 628 .loc 1 306 0 - 629 0030 5A69 ldr r2, [r3, #20] - 630 0032 8021 movs r1, #128 - 631 0034 8902 lsls r1, r1, #10 - 632 0036 0A43 orrs r2, r1 - 633 0038 5A61 str r2, [r3, #20] - 634 003a 5B69 ldr r3, [r3, #20] - 635 003c 0B40 ands r3, r1 - 636 003e 0293 str r3, [sp, #8] - 637 0040 029B ldr r3, [sp, #8] - 638 .LBE12: - 310:Src/stm32f0xx_hal_msp.c **** GPIO_InitStruct.Mode = GPIO_MODE_AF_PP; - 639 .loc 1 310 0 - 640 0042 8023 movs r3, #128 - 641 0044 5B00 lsls r3, r3, #1 - 642 0046 0393 str r3, [sp, #12] - 311:Src/stm32f0xx_hal_msp.c **** GPIO_InitStruct.Pull = GPIO_NOPULL; - 643 .loc 1 311 0 - 644 0048 FE3B subs r3, r3, #254 - 645 004a 0493 str r3, [sp, #16] - 314:Src/stm32f0xx_hal_msp.c **** HAL_GPIO_Init(PWMOUT_GPIO_Port, &GPIO_InitStruct); - 646 .loc 1 314 0 - 647 004c 0793 str r3, [sp, #28] - 315:Src/stm32f0xx_hal_msp.c **** - 648 .loc 1 315 0 - 649 004e 9020 movs r0, #144 - 650 0050 03A9 add r1, sp, #12 - 651 0052 C005 lsls r0, r0, #23 - 652 0054 FFF7FEFF bl HAL_GPIO_Init - 653 .LVL45: - 654 .loc 1 322 0 - 655 0058 DEE7 b .L33 - 656 .L37: - 657 005a C046 .align 2 - 658 .L36: - 659 005c 002C0140 .word 1073818624 - 660 0060 00100240 .word 1073876992 - 661 .cfi_endproc - 662 .LFE43: - 664 .section .text.HAL_TIM_PWM_MspDeInit,"ax",%progbits - 665 .align 1 - 666 .global HAL_TIM_PWM_MspDeInit - 667 .syntax unified - 668 .code 16 - 669 .thumb_func - ARM GAS /tmp/cclHamwV.s page 19 - - - 670 .fpu softvfp - 672 HAL_TIM_PWM_MspDeInit: - 673 .LFB44: - 323:Src/stm32f0xx_hal_msp.c **** /** - 324:Src/stm32f0xx_hal_msp.c **** * @brief TIM_PWM MSP De-Initialization - 325:Src/stm32f0xx_hal_msp.c **** * This function freeze the hardware resources used in this example - 326:Src/stm32f0xx_hal_msp.c **** * @param htim_pwm: TIM_PWM handle pointer - 327:Src/stm32f0xx_hal_msp.c **** * @retval None - 328:Src/stm32f0xx_hal_msp.c **** */ - 329:Src/stm32f0xx_hal_msp.c **** void HAL_TIM_PWM_MspDeInit(TIM_HandleTypeDef* htim_pwm) - 330:Src/stm32f0xx_hal_msp.c **** { - 674 .loc 1 330 0 - 675 .cfi_startproc - 676 @ args = 0, pretend = 0, frame = 0 - 677 @ frame_needed = 0, uses_anonymous_args = 0 - 678 .LVL46: - 679 0000 10B5 push {r4, lr} - 680 .LCFI11: - 681 .cfi_def_cfa_offset 8 - 682 .cfi_offset 4, -8 - 683 .cfi_offset 14, -4 - 331:Src/stm32f0xx_hal_msp.c **** if(htim_pwm->Instance==TIM1) - 684 .loc 1 331 0 - 685 0002 0268 ldr r2, [r0] - 686 0004 074B ldr r3, .L41 - 687 0006 9A42 cmp r2, r3 - 688 0008 00D0 beq .L40 - 689 .LVL47: - 690 .L38: - 332:Src/stm32f0xx_hal_msp.c **** { - 333:Src/stm32f0xx_hal_msp.c **** /* USER CODE BEGIN TIM1_MspDeInit 0 */ - 334:Src/stm32f0xx_hal_msp.c **** - 335:Src/stm32f0xx_hal_msp.c **** /* USER CODE END TIM1_MspDeInit 0 */ - 336:Src/stm32f0xx_hal_msp.c **** /* Peripheral clock disable */ - 337:Src/stm32f0xx_hal_msp.c **** __HAL_RCC_TIM1_CLK_DISABLE(); - 338:Src/stm32f0xx_hal_msp.c **** - 339:Src/stm32f0xx_hal_msp.c **** /* TIM1 interrupt DeInit */ - 340:Src/stm32f0xx_hal_msp.c **** HAL_NVIC_DisableIRQ(TIM1_BRK_UP_TRG_COM_IRQn); - 341:Src/stm32f0xx_hal_msp.c **** HAL_NVIC_DisableIRQ(TIM1_CC_IRQn); - 342:Src/stm32f0xx_hal_msp.c **** /* USER CODE BEGIN TIM1_MspDeInit 1 */ - 343:Src/stm32f0xx_hal_msp.c **** - 344:Src/stm32f0xx_hal_msp.c **** /* USER CODE END TIM1_MspDeInit 1 */ - 345:Src/stm32f0xx_hal_msp.c **** } - 346:Src/stm32f0xx_hal_msp.c **** - 347:Src/stm32f0xx_hal_msp.c **** } - 691 .loc 1 347 0 - 692 @ sp needed - 693 000a 10BD pop {r4, pc} - 694 .LVL48: - 695 .L40: - 337:Src/stm32f0xx_hal_msp.c **** - 696 .loc 1 337 0 - 697 000c 064A ldr r2, .L41+4 - 698 000e 9369 ldr r3, [r2, #24] - 699 0010 0649 ldr r1, .L41+8 - 700 0012 0B40 ands r3, r1 - 701 0014 9361 str r3, [r2, #24] - ARM GAS /tmp/cclHamwV.s page 20 - - - 340:Src/stm32f0xx_hal_msp.c **** HAL_NVIC_DisableIRQ(TIM1_CC_IRQn); - 702 .loc 1 340 0 - 703 0016 0D20 movs r0, #13 - 704 .LVL49: - 705 0018 FFF7FEFF bl HAL_NVIC_DisableIRQ - 706 .LVL50: - 341:Src/stm32f0xx_hal_msp.c **** /* USER CODE BEGIN TIM1_MspDeInit 1 */ - 707 .loc 1 341 0 - 708 001c 0E20 movs r0, #14 - 709 001e FFF7FEFF bl HAL_NVIC_DisableIRQ - 710 .LVL51: - 711 .loc 1 347 0 - 712 0022 F2E7 b .L38 - 713 .L42: - 714 .align 2 - 715 .L41: - 716 0024 002C0140 .word 1073818624 - 717 0028 00100240 .word 1073876992 - 718 002c FFF7FFFF .word -2049 - 719 .cfi_endproc - 720 .LFE44: - 722 .section .text.HAL_PCD_MspInit,"ax",%progbits - 723 .align 1 - 724 .global HAL_PCD_MspInit - 725 .syntax unified - 726 .code 16 - 727 .thumb_func - 728 .fpu softvfp - 730 HAL_PCD_MspInit: - 731 .LFB45: - 348:Src/stm32f0xx_hal_msp.c **** - 349:Src/stm32f0xx_hal_msp.c **** /** - 350:Src/stm32f0xx_hal_msp.c **** * @brief PCD MSP Initialization - 351:Src/stm32f0xx_hal_msp.c **** * This function configures the hardware resources used in this example - 352:Src/stm32f0xx_hal_msp.c **** * @param hpcd: PCD handle pointer - 353:Src/stm32f0xx_hal_msp.c **** * @retval None - 354:Src/stm32f0xx_hal_msp.c **** */ - 355:Src/stm32f0xx_hal_msp.c **** void HAL_PCD_MspInit(PCD_HandleTypeDef* hpcd) - 356:Src/stm32f0xx_hal_msp.c **** { - 732 .loc 1 356 0 - 733 .cfi_startproc - 734 @ args = 0, pretend = 0, frame = 8 - 735 @ frame_needed = 0, uses_anonymous_args = 0 - 736 @ link register save eliminated. - 737 .LVL52: - 738 0000 82B0 sub sp, sp, #8 - 739 .LCFI12: - 740 .cfi_def_cfa_offset 8 - 357:Src/stm32f0xx_hal_msp.c **** if(hpcd->Instance==USB) - 741 .loc 1 357 0 - 742 0002 0268 ldr r2, [r0] - 743 0004 074B ldr r3, .L46 - 744 0006 9A42 cmp r2, r3 - 745 0008 01D0 beq .L45 - 746 .LVL53: - 747 .L43: - 358:Src/stm32f0xx_hal_msp.c **** { - ARM GAS /tmp/cclHamwV.s page 21 - - - 359:Src/stm32f0xx_hal_msp.c **** /* USER CODE BEGIN USB_MspInit 0 */ - 360:Src/stm32f0xx_hal_msp.c **** - 361:Src/stm32f0xx_hal_msp.c **** /* USER CODE END USB_MspInit 0 */ - 362:Src/stm32f0xx_hal_msp.c **** /* Peripheral clock enable */ - 363:Src/stm32f0xx_hal_msp.c **** __HAL_RCC_USB_CLK_ENABLE(); - 364:Src/stm32f0xx_hal_msp.c **** /* USER CODE BEGIN USB_MspInit 1 */ - 365:Src/stm32f0xx_hal_msp.c **** - 366:Src/stm32f0xx_hal_msp.c **** /* USER CODE END USB_MspInit 1 */ - 367:Src/stm32f0xx_hal_msp.c **** } - 368:Src/stm32f0xx_hal_msp.c **** - 369:Src/stm32f0xx_hal_msp.c **** } - 748 .loc 1 369 0 - 749 000a 02B0 add sp, sp, #8 - 750 @ sp needed - 751 000c 7047 bx lr - 752 .LVL54: - 753 .L45: - 754 .LBB13: - 363:Src/stm32f0xx_hal_msp.c **** /* USER CODE BEGIN USB_MspInit 1 */ - 755 .loc 1 363 0 - 756 000e 064A ldr r2, .L46+4 - 757 0010 D169 ldr r1, [r2, #28] - 758 0012 8020 movs r0, #128 - 759 .LVL55: - 760 0014 0004 lsls r0, r0, #16 - 761 0016 0143 orrs r1, r0 - 762 0018 D161 str r1, [r2, #28] - 763 001a D369 ldr r3, [r2, #28] - 764 001c 0340 ands r3, r0 - 765 001e 0193 str r3, [sp, #4] - 766 0020 019B ldr r3, [sp, #4] - 767 .LBE13: - 768 .loc 1 369 0 - 769 0022 F2E7 b .L43 - 770 .L47: - 771 .align 2 - 772 .L46: - 773 0024 005C0040 .word 1073765376 - 774 0028 00100240 .word 1073876992 - 775 .cfi_endproc - 776 .LFE45: - 778 .section .text.HAL_PCD_MspDeInit,"ax",%progbits - 779 .align 1 - 780 .global HAL_PCD_MspDeInit - 781 .syntax unified - 782 .code 16 - 783 .thumb_func - 784 .fpu softvfp - 786 HAL_PCD_MspDeInit: - 787 .LFB46: - 370:Src/stm32f0xx_hal_msp.c **** - 371:Src/stm32f0xx_hal_msp.c **** /** - 372:Src/stm32f0xx_hal_msp.c **** * @brief PCD MSP De-Initialization - 373:Src/stm32f0xx_hal_msp.c **** * This function freeze the hardware resources used in this example - 374:Src/stm32f0xx_hal_msp.c **** * @param hpcd: PCD handle pointer - 375:Src/stm32f0xx_hal_msp.c **** * @retval None - 376:Src/stm32f0xx_hal_msp.c **** */ - ARM GAS /tmp/cclHamwV.s page 22 - - - 377:Src/stm32f0xx_hal_msp.c **** void HAL_PCD_MspDeInit(PCD_HandleTypeDef* hpcd) - 378:Src/stm32f0xx_hal_msp.c **** { - 788 .loc 1 378 0 - 789 .cfi_startproc - 790 @ args = 0, pretend = 0, frame = 0 - 791 @ frame_needed = 0, uses_anonymous_args = 0 - 792 @ link register save eliminated. - 793 .LVL56: - 379:Src/stm32f0xx_hal_msp.c **** if(hpcd->Instance==USB) - 794 .loc 1 379 0 - 795 0000 0268 ldr r2, [r0] - 796 0002 054B ldr r3, .L51 - 797 0004 9A42 cmp r2, r3 - 798 0006 00D0 beq .L50 - 799 .L48: - 380:Src/stm32f0xx_hal_msp.c **** { - 381:Src/stm32f0xx_hal_msp.c **** /* USER CODE BEGIN USB_MspDeInit 0 */ - 382:Src/stm32f0xx_hal_msp.c **** - 383:Src/stm32f0xx_hal_msp.c **** /* USER CODE END USB_MspDeInit 0 */ - 384:Src/stm32f0xx_hal_msp.c **** /* Peripheral clock disable */ - 385:Src/stm32f0xx_hal_msp.c **** __HAL_RCC_USB_CLK_DISABLE(); - 386:Src/stm32f0xx_hal_msp.c **** /* USER CODE BEGIN USB_MspDeInit 1 */ - 387:Src/stm32f0xx_hal_msp.c **** - 388:Src/stm32f0xx_hal_msp.c **** /* USER CODE END USB_MspDeInit 1 */ - 389:Src/stm32f0xx_hal_msp.c **** } - 390:Src/stm32f0xx_hal_msp.c **** - 391:Src/stm32f0xx_hal_msp.c **** } - 800 .loc 1 391 0 - 801 @ sp needed - 802 0008 7047 bx lr - 803 .L50: - 385:Src/stm32f0xx_hal_msp.c **** /* USER CODE BEGIN USB_MspDeInit 1 */ - 804 .loc 1 385 0 - 805 000a 044A ldr r2, .L51+4 - 806 000c D369 ldr r3, [r2, #28] - 807 000e 0449 ldr r1, .L51+8 - 808 0010 0B40 ands r3, r1 - 809 0012 D361 str r3, [r2, #28] - 810 .loc 1 391 0 - 811 0014 F8E7 b .L48 - 812 .L52: - 813 0016 C046 .align 2 - 814 .L51: - 815 0018 005C0040 .word 1073765376 - 816 001c 00100240 .word 1073876992 - 817 0020 FFFF7FFF .word -8388609 - 818 .cfi_endproc - 819 .LFE46: - 821 .text - 822 .Letext0: - 823 .file 2 "/home/janhenrik/programme/gcc-arm-none-eabi-7-2018-q2-update/arm-none-eabi/include/machin - 824 .file 3 "/home/janhenrik/programme/gcc-arm-none-eabi-7-2018-q2-update/arm-none-eabi/include/sys/_s - 825 .file 4 "Drivers/CMSIS/Device/ST/STM32F0xx/Include/system_stm32f0xx.h" - 826 .file 5 "Drivers/CMSIS/Device/ST/STM32F0xx/Include/stm32f072xb.h" - 827 .file 6 "/home/janhenrik/programme/gcc-arm-none-eabi-7-2018-q2-update/arm-none-eabi/include/sys/lo - 828 .file 7 "/home/janhenrik/programme/gcc-arm-none-eabi-7-2018-q2-update/arm-none-eabi/include/sys/_t - 829 .file 8 "/home/janhenrik/programme/gcc-arm-none-eabi-7-2018-q2-update/lib/gcc/arm-none-eabi/7.3.1/ - ARM GAS /tmp/cclHamwV.s page 23 - - - 830 .file 9 "/home/janhenrik/programme/gcc-arm-none-eabi-7-2018-q2-update/arm-none-eabi/include/sys/re - 831 .file 10 "Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_def.h" - 832 .file 11 "Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_gpio.h" - 833 .file 12 "Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_dma.h" - 834 .file 13 "Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_adc.h" - 835 .file 14 "Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_i2c.h" - 836 .file 15 "Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_pcd.h" - 837 .file 16 "Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_tim.h" - 838 .file 17 "Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_cortex.h" - 839 .file 18 "" - ARM GAS /tmp/cclHamwV.s page 24 - - -DEFINED SYMBOLS - *ABS*:0000000000000000 stm32f0xx_hal_msp.c - /tmp/cclHamwV.s:16 .text.HAL_MspInit:0000000000000000 $t - /tmp/cclHamwV.s:23 .text.HAL_MspInit:0000000000000000 HAL_MspInit - /tmp/cclHamwV.s:65 .text.HAL_MspInit:000000000000002c $d - /tmp/cclHamwV.s:70 .text.HAL_ADC_MspInit:0000000000000000 $t - /tmp/cclHamwV.s:77 .text.HAL_ADC_MspInit:0000000000000000 HAL_ADC_MspInit - /tmp/cclHamwV.s:190 .text.HAL_ADC_MspInit:0000000000000088 $d - /tmp/cclHamwV.s:198 .text.HAL_ADC_MspDeInit:0000000000000000 $t - /tmp/cclHamwV.s:205 .text.HAL_ADC_MspDeInit:0000000000000000 HAL_ADC_MspDeInit - /tmp/cclHamwV.s:253 .text.HAL_ADC_MspDeInit:000000000000002c $d - /tmp/cclHamwV.s:260 .text.HAL_I2C_MspInit:0000000000000000 $t - /tmp/cclHamwV.s:267 .text.HAL_I2C_MspInit:0000000000000000 HAL_I2C_MspInit - /tmp/cclHamwV.s:406 .text.HAL_I2C_MspInit:00000000000000a8 $d - /tmp/cclHamwV.s:414 .text.HAL_I2C_MspDeInit:0000000000000000 $t - /tmp/cclHamwV.s:421 .text.HAL_I2C_MspDeInit:0000000000000000 HAL_I2C_MspDeInit - /tmp/cclHamwV.s:482 .text.HAL_I2C_MspDeInit:000000000000003c $d - /tmp/cclHamwV.s:492 .text.HAL_TIM_PWM_MspInit:0000000000000000 $t - /tmp/cclHamwV.s:499 .text.HAL_TIM_PWM_MspInit:0000000000000000 HAL_TIM_PWM_MspInit - /tmp/cclHamwV.s:565 .text.HAL_TIM_PWM_MspInit:0000000000000048 $d - /tmp/cclHamwV.s:571 .text.HAL_TIM_MspPostInit:0000000000000000 $t - /tmp/cclHamwV.s:578 .text.HAL_TIM_MspPostInit:0000000000000000 HAL_TIM_MspPostInit - /tmp/cclHamwV.s:659 .text.HAL_TIM_MspPostInit:000000000000005c $d - /tmp/cclHamwV.s:665 .text.HAL_TIM_PWM_MspDeInit:0000000000000000 $t - /tmp/cclHamwV.s:672 .text.HAL_TIM_PWM_MspDeInit:0000000000000000 HAL_TIM_PWM_MspDeInit - /tmp/cclHamwV.s:716 .text.HAL_TIM_PWM_MspDeInit:0000000000000024 $d - /tmp/cclHamwV.s:723 .text.HAL_PCD_MspInit:0000000000000000 $t - /tmp/cclHamwV.s:730 .text.HAL_PCD_MspInit:0000000000000000 HAL_PCD_MspInit - /tmp/cclHamwV.s:773 .text.HAL_PCD_MspInit:0000000000000024 $d - /tmp/cclHamwV.s:779 .text.HAL_PCD_MspDeInit:0000000000000000 $t - /tmp/cclHamwV.s:786 .text.HAL_PCD_MspDeInit:0000000000000000 HAL_PCD_MspDeInit - /tmp/cclHamwV.s:815 .text.HAL_PCD_MspDeInit:0000000000000018 $d - -UNDEFINED SYMBOLS -memset -HAL_GPIO_Init -HAL_DMA_Init -hdma_adc -HAL_GPIO_DeInit -HAL_DMA_DeInit -HAL_NVIC_SetPriority -HAL_NVIC_EnableIRQ -HAL_NVIC_DisableIRQ diff --git a/firmware/build/stm32f0xx_hal_msp.o b/firmware/build/stm32f0xx_hal_msp.o deleted file mode 100644 index 0a625b7..0000000 Binary files a/firmware/build/stm32f0xx_hal_msp.o and /dev/null differ diff --git a/firmware/build/stm32f0xx_hal_pcd.d b/firmware/build/stm32f0xx_hal_pcd.d deleted file mode 100644 index 6077d70..0000000 --- a/firmware/build/stm32f0xx_hal_pcd.d +++ /dev/null @@ -1,87 +0,0 @@ -build/stm32f0xx_hal_pcd.o: \ - Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c \ - Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal.h \ - Inc/stm32f0xx_hal_conf.h \ - Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_rcc.h \ - Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_def.h \ - Drivers/CMSIS/Device/ST/STM32F0xx/Include/stm32f0xx.h \ - Drivers/CMSIS/Device/ST/STM32F0xx/Include/stm32f072xb.h \ - Drivers/CMSIS/Include/core_cm0.h Drivers/CMSIS/Include/core_cmInstr.h \ - Drivers/CMSIS/Include/cmsis_gcc.h Drivers/CMSIS/Include/core_cmFunc.h \ - Drivers/CMSIS/Device/ST/STM32F0xx/Include/system_stm32f0xx.h \ - Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_rcc_ex.h \ - Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_gpio.h \ - Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_gpio_ex.h \ - Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_dma.h \ - Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_dma_ex.h \ - Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_cortex.h \ - Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_adc.h \ - Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_adc_ex.h \ - Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_flash.h \ - Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_flash_ex.h \ - Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_i2c.h \ - Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_i2c_ex.h \ - Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_pcd.h \ - Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_pcd_ex.h \ - Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_pwr.h \ - Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_pwr_ex.h \ - Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_tim.h \ - Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_tim_ex.h - -Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal.h: - -Inc/stm32f0xx_hal_conf.h: - -Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_rcc.h: - -Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_def.h: - -Drivers/CMSIS/Device/ST/STM32F0xx/Include/stm32f0xx.h: - -Drivers/CMSIS/Device/ST/STM32F0xx/Include/stm32f072xb.h: - -Drivers/CMSIS/Include/core_cm0.h: - -Drivers/CMSIS/Include/core_cmInstr.h: - -Drivers/CMSIS/Include/cmsis_gcc.h: - -Drivers/CMSIS/Include/core_cmFunc.h: - -Drivers/CMSIS/Device/ST/STM32F0xx/Include/system_stm32f0xx.h: - -Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_rcc_ex.h: - -Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_gpio.h: - -Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_gpio_ex.h: - -Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_dma.h: - -Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_dma_ex.h: - -Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_cortex.h: - -Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_adc.h: - -Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_adc_ex.h: - -Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_flash.h: - -Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_flash_ex.h: - -Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_i2c.h: - -Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_i2c_ex.h: - -Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_pcd.h: - -Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_pcd_ex.h: - -Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_pwr.h: - -Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_pwr_ex.h: - -Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_tim.h: - -Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_tim_ex.h: diff --git a/firmware/build/stm32f0xx_hal_pcd.lst b/firmware/build/stm32f0xx_hal_pcd.lst deleted file mode 100644 index e2fccb3..0000000 --- a/firmware/build/stm32f0xx_hal_pcd.lst +++ /dev/null @@ -1,6281 +0,0 @@ -ARM GAS /tmp/ccY9uCYJ.s page 1 - - - 1 .cpu cortex-m0 - 2 .eabi_attribute 20, 1 - 3 .eabi_attribute 21, 1 - 4 .eabi_attribute 23, 3 - 5 .eabi_attribute 24, 1 - 6 .eabi_attribute 25, 1 - 7 .eabi_attribute 26, 1 - 8 .eabi_attribute 30, 1 - 9 .eabi_attribute 34, 0 - 10 .eabi_attribute 18, 4 - 11 .file "stm32f0xx_hal_pcd.c" - 12 .text - 13 .Ltext0: - 14 .cfi_sections .debug_frame - 15 .section .text.HAL_PCD_MspInit,"ax",%progbits - 16 .align 1 - 17 .weak HAL_PCD_MspInit - 18 .syntax unified - 19 .code 16 - 20 .thumb_func - 21 .fpu softvfp - 23 HAL_PCD_MspInit: - 24 .LFB39: - 25 .file 1 "Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c" - 1:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** /** - 2:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** ****************************************************************************** - 3:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** * @file stm32f0xx_hal_pcd.c - 4:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** * @author MCD Application Team - 5:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** * @brief PCD HAL module driver. - 6:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** * This file provides firmware functions to manage the following - 7:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** * functionalities of the USB Peripheral Controller: - 8:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** * + Initialization and de-initialization functions - 9:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** * + IO operation functions - 10:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** * + Peripheral Control functions - 11:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** * + Peripheral State functions - 12:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** * - 13:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** @verbatim - 14:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** ============================================================================== - 15:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** ##### How to use this driver ##### - 16:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** ============================================================================== - 17:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** [..] - 18:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** The PCD HAL driver can be used as follows: - 19:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** - 20:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** (#) Declare a PCD_HandleTypeDef handle structure, for example: - 21:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** PCD_HandleTypeDef hpcd; - 22:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** - 23:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** (#) Fill parameters of Init structure in HCD handle - 24:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** - 25:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** (#) Call HAL_PCD_Init() API to initialize the HCD peripheral (Core, Device core, ...) - 26:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** - 27:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** (#) Initialize the PCD low level resources through the HAL_PCD_MspInit() API: - 28:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** (##) Enable the PCD/USB Low Level interface clock using - 29:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** (+++) __HAL_RCC_USB_CLK_ENABLE); - 30:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** - 31:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** (##) Initialize the related GPIO clocks - 32:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** (##) Configure PCD pin-out - 33:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** (##) Configure PCD NVIC interrupt - ARM GAS /tmp/ccY9uCYJ.s page 2 - - - 34:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** - 35:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** (#)Associate the Upper USB device stack to the HAL PCD Driver: - 36:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** (##) hpcd.pData = pdev; - 37:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** - 38:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** (#)Enable HCD transmission and reception: - 39:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** (##) HAL_PCD_Start(); - 40:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** - 41:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** @endverbatim - 42:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** ****************************************************************************** - 43:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** * @attention - 44:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** * - 45:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** *

© COPYRIGHT(c) 2016 STMicroelectronics

- 46:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** * - 47:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** * Redistribution and use in source and binary forms, with or without modification, - 48:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** * are permitted provided that the following conditions are met: - 49:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** * 1. Redistributions of source code must retain the above copyright notice, - 50:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** * this list of conditions and the following disclaimer. - 51:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** * 2. Redistributions in binary form must reproduce the above copyright notice, - 52:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** * this list of conditions and the following disclaimer in the documentation - 53:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** * and/or other materials provided with the distribution. - 54:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** * 3. Neither the name of STMicroelectronics nor the names of its contributors - 55:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** * may be used to endorse or promote products derived from this software - 56:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** * without specific prior written permission. - 57:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** * - 58:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" - 59:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE - 60:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE - 61:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** * DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE - 62:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL - 63:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR - 64:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** * SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER - 65:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** * CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, - 66:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE - 67:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. - 68:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** * - 69:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** ****************************************************************************** - 70:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** */ - 71:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** - 72:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** /* Includes ------------------------------------------------------------------*/ - 73:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** #include "stm32f0xx_hal.h" - 74:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** - 75:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** /** @addtogroup STM32F0xx_HAL_Driver - 76:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** * @{ - 77:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** */ - 78:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** - 79:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** #ifdef HAL_PCD_MODULE_ENABLED - 80:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** - 81:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** #if defined(STM32F042x6) || defined(STM32F048xx) || defined(STM32F072xB) || defined(STM32F078xx) || - 82:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** - 83:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** /** @defgroup PCD PCD - 84:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** * @brief PCD HAL module driver - 85:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** * @{ - 86:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** */ - 87:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** - 88:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** /* Private typedef -----------------------------------------------------------*/ - 89:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** /* Private define ------------------------------------------------------------*/ - 90:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** - ARM GAS /tmp/ccY9uCYJ.s page 3 - - - 91:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** /** @defgroup PCD_Private_Define PCD Private Define - 92:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** * @{ - 93:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** */ - 94:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** #define BTABLE_ADDRESS (0x000) - 95:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** /** - 96:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** * @} - 97:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** */ - 98:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** - 99:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** /* Private macro -------------------------------------------------------------*/ - 100:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** /* Private variables ---------------------------------------------------------*/ - 101:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** /* Private function prototypes -----------------------------------------------*/ - 102:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** /** @defgroup PCD_Private_Functions PCD Private Functions - 103:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** * @{ - 104:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** */ - 105:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** static HAL_StatusTypeDef PCD_EP_ISR_Handler(PCD_HandleTypeDef *hpcd); - 106:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** void PCD_WritePMA(USB_TypeDef *USBx, uint8_t *pbUsrBuf, uint16_t wPMABufAddr, uint16_t wNBytes); - 107:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** void PCD_ReadPMA(USB_TypeDef *USBx, uint8_t *pbUsrBuf, uint16_t wPMABufAddr, uint16_t wNBytes); - 108:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** /** - 109:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** * @} - 110:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** */ - 111:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** - 112:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** /* Exported functions --------------------------------------------------------*/ - 113:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** /** @defgroup PCD_Exported_Functions PCD Exported Functions - 114:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** * @{ - 115:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** */ - 116:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** - 117:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** /** @defgroup PCD_Exported_Functions_Group1 Initialization and de-initialization functions - 118:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** * @brief Initialization and Configuration functions - 119:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** * - 120:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** @verbatim - 121:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** =============================================================================== - 122:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** ##### Initialization and de-initialization functions ##### - 123:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** =============================================================================== - 124:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** [..] This section provides functions allowing to: - 125:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** - 126:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** @endverbatim - 127:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** * @{ - 128:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** */ - 129:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** - 130:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** /** - 131:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** * @brief Initializes the PCD according to the specified - 132:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** * parameters in the PCD_InitTypeDef and create the associated handle. - 133:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** * @param hpcd PCD handle - 134:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** * @retval HAL status - 135:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** */ - 136:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** HAL_StatusTypeDef HAL_PCD_Init(PCD_HandleTypeDef *hpcd) - 137:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** { - 138:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** uint32_t i = 0U; - 139:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** - 140:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** uint32_t wInterrupt_Mask = 0U; - 141:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** - 142:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** /* Check the PCD handle allocation */ - 143:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** if(hpcd == NULL) - 144:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** { - 145:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** return HAL_ERROR; - 146:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** } - 147:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** - ARM GAS /tmp/ccY9uCYJ.s page 4 - - - 148:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** /* Check the parameters */ - 149:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** assert_param(IS_PCD_ALL_INSTANCE(hpcd->Instance)); - 150:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** - 151:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** if(hpcd->State == HAL_PCD_STATE_RESET) - 152:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** { - 153:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** /* Allocate lock resource and initialize it */ - 154:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** hpcd->Lock = HAL_UNLOCKED; - 155:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** - 156:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** /* Init the low level hardware : GPIO, CLOCK, NVIC... */ - 157:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** HAL_PCD_MspInit(hpcd); - 158:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** } - 159:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** - 160:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** hpcd->State = HAL_PCD_STATE_BUSY; - 161:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** - 162:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** /* Init endpoints structures */ - 163:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** for (i = 0U; i < hpcd->Init.dev_endpoints ; i++) - 164:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** { - 165:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** /* Init ep structure */ - 166:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** hpcd->IN_ep[i].is_in = 1U; - 167:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** hpcd->IN_ep[i].num = i; - 168:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** /* Control until ep is actvated */ - 169:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** hpcd->IN_ep[i].type = PCD_EP_TYPE_CTRL; - 170:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** hpcd->IN_ep[i].maxpacket = 0U; - 171:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** hpcd->IN_ep[i].xfer_buff = 0U; - 172:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** hpcd->IN_ep[i].xfer_len = 0U; - 173:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** } - 174:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** - 175:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** for (i = 0U; i < hpcd->Init.dev_endpoints ; i++) - 176:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** { - 177:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** hpcd->OUT_ep[i].is_in = 0U; - 178:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** hpcd->OUT_ep[i].num = i; - 179:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** /* Control until ep is activated */ - 180:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** hpcd->OUT_ep[i].type = PCD_EP_TYPE_CTRL; - 181:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** hpcd->OUT_ep[i].maxpacket = 0U; - 182:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** hpcd->OUT_ep[i].xfer_buff = 0U; - 183:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** hpcd->OUT_ep[i].xfer_len = 0U; - 184:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** } - 185:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** - 186:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** /* Init Device */ - 187:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** /*CNTR_FRES = 1*/ - 188:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** hpcd->Instance->CNTR = USB_CNTR_FRES; - 189:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** - 190:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** /*CNTR_FRES = 0*/ - 191:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** hpcd->Instance->CNTR = 0; - 192:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** - 193:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** /*Clear pending interrupts*/ - 194:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** hpcd->Instance->ISTR = 0; - 195:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** - 196:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** /*Set Btable Adress*/ - 197:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** hpcd->Instance->BTABLE = BTABLE_ADDRESS; - 198:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** - 199:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** /*set wInterrupt_Mask global variable*/ - 200:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** wInterrupt_Mask = USB_CNTR_CTRM | USB_CNTR_WKUPM | USB_CNTR_SUSPM | USB_CNTR_ERRM \ - 201:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** | USB_CNTR_SOFM | USB_CNTR_ESOFM | USB_CNTR_RESETM; - 202:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** - 203:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** /*Set interrupt mask*/ - 204:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** hpcd->Instance->CNTR = wInterrupt_Mask; - ARM GAS /tmp/ccY9uCYJ.s page 5 - - - 205:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** - 206:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** hpcd->USB_Address = 0U; - 207:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** hpcd->State= HAL_PCD_STATE_READY; - 208:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** - 209:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** return HAL_OK; - 210:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** } - 211:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** - 212:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** /** - 213:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** * @brief DeInitializes the PCD peripheral - 214:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** * @param hpcd PCD handle - 215:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** * @retval HAL status - 216:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** */ - 217:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** HAL_StatusTypeDef HAL_PCD_DeInit(PCD_HandleTypeDef *hpcd) - 218:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** { - 219:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** /* Check the PCD handle allocation */ - 220:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** if(hpcd == NULL) - 221:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** { - 222:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** return HAL_ERROR; - 223:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** } - 224:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** - 225:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** hpcd->State = HAL_PCD_STATE_BUSY; - 226:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** - 227:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** /* Stop Device */ - 228:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** HAL_PCD_Stop(hpcd); - 229:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** - 230:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** /* DeInit the low level hardware */ - 231:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** HAL_PCD_MspDeInit(hpcd); - 232:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** - 233:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** hpcd->State = HAL_PCD_STATE_RESET; - 234:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** - 235:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** return HAL_OK; - 236:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** } - 237:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** - 238:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** /** - 239:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** * @brief Initializes the PCD MSP. - 240:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** * @param hpcd PCD handle - 241:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** * @retval None - 242:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** */ - 243:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** __weak void HAL_PCD_MspInit(PCD_HandleTypeDef *hpcd) - 244:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** { - 26 .loc 1 244 0 - 27 .cfi_startproc - 28 @ args = 0, pretend = 0, frame = 0 - 29 @ frame_needed = 0, uses_anonymous_args = 0 - 30 @ link register save eliminated. - 31 .LVL0: - 245:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** /* Prevent unused argument(s) compilation warning */ - 246:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** UNUSED(hpcd); - 247:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** - 248:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** /* NOTE : This function Should not be modified, when the callback is needed, - 249:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** the HAL_PCD_MspInit could be implemented in the user file - 250:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** */ - 251:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** } - 32 .loc 1 251 0 - 33 @ sp needed - 34 0000 7047 bx lr - 35 .cfi_endproc - ARM GAS /tmp/ccY9uCYJ.s page 6 - - - 36 .LFE39: - 38 .section .text.HAL_PCD_Init,"ax",%progbits - 39 .align 1 - 40 .global HAL_PCD_Init - 41 .syntax unified - 42 .code 16 - 43 .thumb_func - 44 .fpu softvfp - 46 HAL_PCD_Init: - 47 .LFB37: - 137:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** uint32_t i = 0U; - 48 .loc 1 137 0 - 49 .cfi_startproc - 50 @ args = 0, pretend = 0, frame = 0 - 51 @ frame_needed = 0, uses_anonymous_args = 0 - 52 .LVL1: - 53 0000 70B5 push {r4, r5, r6, lr} - 54 .LCFI0: - 55 .cfi_def_cfa_offset 16 - 56 .cfi_offset 4, -16 - 57 .cfi_offset 5, -12 - 58 .cfi_offset 6, -8 - 59 .cfi_offset 14, -4 - 60 0002 041E subs r4, r0, #0 - 61 .LVL2: - 143:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** { - 62 .loc 1 143 0 - 63 0004 58D0 beq .L9 - 151:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** { - 64 .loc 1 151 0 - 65 0006 EA23 movs r3, #234 - 66 0008 FF33 adds r3, r3, #255 - 67 000a C35C ldrb r3, [r0, r3] - 68 000c 002B cmp r3, #0 - 69 000e 05D0 beq .L10 - 70 .LVL3: - 71 .L4: - 160:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** - 72 .loc 1 160 0 - 73 0010 EA23 movs r3, #234 - 74 0012 FF33 adds r3, r3, #255 - 75 0014 0322 movs r2, #3 - 76 0016 E254 strb r2, [r4, r3] - 163:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** { - 77 .loc 1 163 0 - 78 0018 0022 movs r2, #0 - 79 001a 18E0 b .L5 - 80 .LVL4: - 81 .L10: - 154:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** - 82 .loc 1 154 0 - 83 001c E933 adds r3, r3, #233 - 84 001e FF33 adds r3, r3, #255 - 85 0020 0022 movs r2, #0 - 86 0022 C254 strb r2, [r0, r3] - 157:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** } - 87 .loc 1 157 0 - ARM GAS /tmp/ccY9uCYJ.s page 7 - - - 88 0024 FFF7FEFF bl HAL_PCD_MspInit - 89 .LVL5: - 90 0028 F2E7 b .L4 - 91 .LVL6: - 92 .L6: - 166:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** hpcd->IN_ep[i].num = i; - 93 .loc 1 166 0 discriminator 3 - 94 002a D100 lsls r1, r2, #3 - 95 002c 891A subs r1, r1, r2 - 96 002e 8B00 lsls r3, r1, #2 - 97 0030 E318 adds r3, r4, r3 - 98 0032 1900 movs r1, r3 - 99 0034 2931 adds r1, r1, #41 - 100 0036 0120 movs r0, #1 - 101 0038 0870 strb r0, [r1] - 167:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** /* Control until ep is actvated */ - 102 .loc 1 167 0 discriminator 3 - 103 003a 0139 subs r1, r1, #1 - 104 003c 0A70 strb r2, [r1] - 169:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** hpcd->IN_ep[i].maxpacket = 0U; - 105 .loc 1 169 0 discriminator 3 - 106 003e 1800 movs r0, r3 - 107 0040 2B30 adds r0, r0, #43 - 108 0042 0021 movs r1, #0 - 109 0044 0170 strb r1, [r0] - 170:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** hpcd->IN_ep[i].xfer_buff = 0U; - 110 .loc 1 170 0 discriminator 3 - 111 0046 5963 str r1, [r3, #52] - 171:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** hpcd->IN_ep[i].xfer_len = 0U; - 112 .loc 1 171 0 discriminator 3 - 113 0048 9963 str r1, [r3, #56] - 172:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** } - 114 .loc 1 172 0 discriminator 3 - 115 004a D963 str r1, [r3, #60] - 163:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** { - 116 .loc 1 163 0 discriminator 3 - 117 004c 0132 adds r2, r2, #1 - 118 .LVL7: - 119 .L5: - 163:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** { - 120 .loc 1 163 0 is_stmt 0 discriminator 1 - 121 004e 6068 ldr r0, [r4, #4] - 122 0050 9042 cmp r0, r2 - 123 0052 EAD8 bhi .L6 - 175:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** { - 124 .loc 1 175 0 is_stmt 1 - 125 0054 0022 movs r2, #0 - 126 .LVL8: - 127 0056 14E0 b .L7 - 128 .LVL9: - 129 .L8: - 177:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** hpcd->OUT_ep[i].num = i; - 130 .loc 1 177 0 discriminator 3 - 131 0058 D100 lsls r1, r2, #3 - 132 005a 891A subs r1, r1, r2 - 133 005c 8B00 lsls r3, r1, #2 - 134 005e E318 adds r3, r4, r3 - ARM GAS /tmp/ccY9uCYJ.s page 8 - - - 135 0060 1D00 movs r5, r3 - 136 0062 0A35 adds r5, r5, #10 - 137 0064 FF35 adds r5, r5, #255 - 138 0066 0021 movs r1, #0 - 139 0068 2970 strb r1, [r5] - 178:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** /* Control until ep is activated */ - 140 .loc 1 178 0 discriminator 3 - 141 006a 013D subs r5, r5, #1 - 142 006c 2A70 strb r2, [r5] - 180:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** hpcd->OUT_ep[i].maxpacket = 0U; - 143 .loc 1 180 0 discriminator 3 - 144 006e 0335 adds r5, r5, #3 - 145 0070 2970 strb r1, [r5] - 181:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** hpcd->OUT_ep[i].xfer_buff = 0U; - 146 .loc 1 181 0 discriminator 3 - 147 0072 0935 adds r5, r5, #9 - 148 0074 2960 str r1, [r5] - 182:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** hpcd->OUT_ep[i].xfer_len = 0U; - 149 .loc 1 182 0 discriminator 3 - 150 0076 0435 adds r5, r5, #4 - 151 0078 2960 str r1, [r5] - 183:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** } - 152 .loc 1 183 0 discriminator 3 - 153 007a 1D33 adds r3, r3, #29 - 154 007c FF33 adds r3, r3, #255 - 155 007e 1960 str r1, [r3] - 175:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** { - 156 .loc 1 175 0 discriminator 3 - 157 0080 0132 adds r2, r2, #1 - 158 .LVL10: - 159 .L7: - 175:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** { - 160 .loc 1 175 0 is_stmt 0 discriminator 1 - 161 0082 9042 cmp r0, r2 - 162 0084 E8D8 bhi .L8 - 188:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** - 163 .loc 1 188 0 is_stmt 1 - 164 0086 4023 movs r3, #64 - 165 0088 0122 movs r2, #1 - 166 .LVL11: - 167 008a 2168 ldr r1, [r4] - 168 008c CA52 strh r2, [r1, r3] - 191:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** - 169 .loc 1 191 0 - 170 008e 0022 movs r2, #0 - 171 0090 2168 ldr r1, [r4] - 172 0092 CA52 strh r2, [r1, r3] - 194:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** - 173 .loc 1 194 0 - 174 0094 4421 movs r1, #68 - 175 0096 2068 ldr r0, [r4] - 176 0098 4252 strh r2, [r0, r1] - 197:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** - 177 .loc 1 197 0 - 178 009a 0C31 adds r1, r1, #12 - 179 009c 2068 ldr r0, [r4] - 180 009e 4252 strh r2, [r0, r1] - ARM GAS /tmp/ccY9uCYJ.s page 9 - - - 181 .LVL12: - 204:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** - 182 .loc 1 204 0 - 183 00a0 064A ldr r2, .L11 - 184 00a2 2168 ldr r1, [r4] - 185 00a4 CA52 strh r2, [r1, r3] - 206:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** hpcd->State= HAL_PCD_STATE_READY; - 186 .loc 1 206 0 - 187 00a6 0022 movs r2, #0 - 188 00a8 1C3B subs r3, r3, #28 - 189 00aa E254 strb r2, [r4, r3] - 207:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** - 190 .loc 1 207 0 - 191 00ac 0122 movs r2, #1 - 192 00ae EA23 movs r3, #234 - 193 00b0 FF33 adds r3, r3, #255 - 194 00b2 E254 strb r2, [r4, r3] - 209:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** } - 195 .loc 1 209 0 - 196 00b4 0020 movs r0, #0 - 197 .LVL13: - 198 .L3: - 210:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** - 199 .loc 1 210 0 - 200 @ sp needed - 201 .LVL14: - 202 00b6 70BD pop {r4, r5, r6, pc} - 203 .LVL15: - 204 .L9: - 145:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** } - 205 .loc 1 145 0 - 206 00b8 0120 movs r0, #1 - 207 .LVL16: - 208 00ba FCE7 b .L3 - 209 .L12: - 210 .align 2 - 211 .L11: - 212 00bc 00BFFFFF .word -16640 - 213 .cfi_endproc - 214 .LFE37: - 216 .section .text.HAL_PCD_MspDeInit,"ax",%progbits - 217 .align 1 - 218 .weak HAL_PCD_MspDeInit - 219 .syntax unified - 220 .code 16 - 221 .thumb_func - 222 .fpu softvfp - 224 HAL_PCD_MspDeInit: - 225 .LFB40: - 252:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** - 253:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** /** - 254:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** * @brief DeInitializes PCD MSP. - 255:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** * @param hpcd PCD handle - 256:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** * @retval None - 257:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** */ - 258:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** __weak void HAL_PCD_MspDeInit(PCD_HandleTypeDef *hpcd) - 259:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** { - ARM GAS /tmp/ccY9uCYJ.s page 10 - - - 226 .loc 1 259 0 - 227 .cfi_startproc - 228 @ args = 0, pretend = 0, frame = 0 - 229 @ frame_needed = 0, uses_anonymous_args = 0 - 230 @ link register save eliminated. - 231 .LVL17: - 260:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** /* Prevent unused argument(s) compilation warning */ - 261:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** UNUSED(hpcd); - 262:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** - 263:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** /* NOTE : This function Should not be modified, when the callback is needed, - 264:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** the HAL_PCD_MspDeInit could be implemented in the user file - 265:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** */ - 266:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** } - 232 .loc 1 266 0 - 233 @ sp needed - 234 0000 7047 bx lr - 235 .cfi_endproc - 236 .LFE40: - 238 .section .text.HAL_PCD_Start,"ax",%progbits - 239 .align 1 - 240 .global HAL_PCD_Start - 241 .syntax unified - 242 .code 16 - 243 .thumb_func - 244 .fpu softvfp - 246 HAL_PCD_Start: - 247 .LFB41: - 267:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** - 268:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** /** - 269:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** * @} - 270:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** */ - 271:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** - 272:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** /** @defgroup PCD_Exported_Functions_Group2 IO operation functions - 273:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** * @brief Data transfers functions - 274:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** * - 275:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** @verbatim - 276:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** =============================================================================== - 277:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** ##### IO operation functions ##### - 278:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** =============================================================================== - 279:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** [..] - 280:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** This subsection provides a set of functions allowing to manage the PCD data - 281:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** transfers. - 282:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** - 283:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** @endverbatim - 284:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** * @{ - 285:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** */ - 286:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** - 287:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** /** - 288:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** * @brief Start the USB device. - 289:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** * @param hpcd PCD handle - 290:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** * @retval HAL status - 291:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** */ - 292:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** HAL_StatusTypeDef HAL_PCD_Start(PCD_HandleTypeDef *hpcd) - 293:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** { - 248 .loc 1 293 0 - 249 .cfi_startproc - 250 @ args = 0, pretend = 0, frame = 0 - ARM GAS /tmp/ccY9uCYJ.s page 11 - - - 251 @ frame_needed = 0, uses_anonymous_args = 0 - 252 @ link register save eliminated. - 253 .LVL18: - 294:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** /* Enabling DP Pull-Down bit to Connect internal pull-up on USB DP line */ - 295:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** hpcd->Instance->BCDR |= USB_BCDR_DPPU; - 254 .loc 1 295 0 - 255 0000 0168 ldr r1, [r0] - 256 0002 5822 movs r2, #88 - 257 0004 8B5A ldrh r3, [r1, r2] - 258 0006 0348 ldr r0, .L15 - 259 .LVL19: - 260 0008 0343 orrs r3, r0 - 261 000a 9BB2 uxth r3, r3 - 262 000c 8B52 strh r3, [r1, r2] - 296:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** - 297:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** return HAL_OK; - 298:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** } - 263 .loc 1 298 0 - 264 000e 0020 movs r0, #0 - 265 @ sp needed - 266 0010 7047 bx lr - 267 .L16: - 268 0012 C046 .align 2 - 269 .L15: - 270 0014 0080FFFF .word -32768 - 271 .cfi_endproc - 272 .LFE41: - 274 .section .text.HAL_PCD_Stop,"ax",%progbits - 275 .align 1 - 276 .global HAL_PCD_Stop - 277 .syntax unified - 278 .code 16 - 279 .thumb_func - 280 .fpu softvfp - 282 HAL_PCD_Stop: - 283 .LFB42: - 299:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** - 300:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** /** - 301:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** * @brief Stop the USB device. - 302:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** * @param hpcd PCD handle - 303:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** * @retval HAL status - 304:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** */ - 305:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** HAL_StatusTypeDef HAL_PCD_Stop(PCD_HandleTypeDef *hpcd) - 306:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** { - 284 .loc 1 306 0 - 285 .cfi_startproc - 286 @ args = 0, pretend = 0, frame = 0 - 287 @ frame_needed = 0, uses_anonymous_args = 0 - 288 .LVL20: - 289 0000 10B5 push {r4, lr} - 290 .LCFI1: - 291 .cfi_def_cfa_offset 8 - 292 .cfi_offset 4, -8 - 293 .cfi_offset 14, -4 - 307:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** __HAL_LOCK(hpcd); - 294 .loc 1 307 0 - 295 0002 F423 movs r3, #244 - ARM GAS /tmp/ccY9uCYJ.s page 12 - - - 296 0004 5B00 lsls r3, r3, #1 - 297 0006 C35C ldrb r3, [r0, r3] - 298 0008 012B cmp r3, #1 - 299 000a 10D0 beq .L19 - 308:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** - 309:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** /* disable all interrupts and force USB reset */ - 310:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** hpcd->Instance->CNTR = USB_CNTR_FRES; - 300 .loc 1 310 0 discriminator 2 - 301 000c 4023 movs r3, #64 - 302 000e 0122 movs r2, #1 - 303 0010 0168 ldr r1, [r0] - 304 0012 CA52 strh r2, [r1, r3] - 311:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** - 312:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** /* clear interrupt status register */ - 313:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** hpcd->Instance->ISTR = 0; - 305 .loc 1 313 0 discriminator 2 - 306 0014 4332 adds r2, r2, #67 - 307 0016 0021 movs r1, #0 - 308 0018 0468 ldr r4, [r0] - 309 001a A152 strh r1, [r4, r2] - 314:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** - 315:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** /* switch-off device */ - 316:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** hpcd->Instance->CNTR = (USB_CNTR_FRES | USB_CNTR_PDWN); - 310 .loc 1 316 0 discriminator 2 - 311 001c 413A subs r2, r2, #65 - 312 001e 0168 ldr r1, [r0] - 313 0020 CA52 strh r2, [r1, r3] - 317:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** - 318:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** __HAL_UNLOCK(hpcd); - 314 .loc 1 318 0 discriminator 2 - 315 0022 0022 movs r2, #0 - 316 0024 A933 adds r3, r3, #169 - 317 0026 FF33 adds r3, r3, #255 - 318 0028 C254 strb r2, [r0, r3] - 319:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** return HAL_OK; - 319 .loc 1 319 0 discriminator 2 - 320 002a 0020 movs r0, #0 - 321 .LVL21: - 322 .L18: - 320:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** } - 323 .loc 1 320 0 - 324 @ sp needed - 325 002c 10BD pop {r4, pc} - 326 .LVL22: - 327 .L19: - 307:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** - 328 .loc 1 307 0 - 329 002e 0220 movs r0, #2 - 330 .LVL23: - 331 0030 FCE7 b .L18 - 332 .cfi_endproc - 333 .LFE42: - 335 .section .text.HAL_PCD_DeInit,"ax",%progbits - 336 .align 1 - 337 .global HAL_PCD_DeInit - 338 .syntax unified - 339 .code 16 - ARM GAS /tmp/ccY9uCYJ.s page 13 - - - 340 .thumb_func - 341 .fpu softvfp - 343 HAL_PCD_DeInit: - 344 .LFB38: - 218:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** /* Check the PCD handle allocation */ - 345 .loc 1 218 0 - 346 .cfi_startproc - 347 @ args = 0, pretend = 0, frame = 0 - 348 @ frame_needed = 0, uses_anonymous_args = 0 - 349 .LVL24: - 350 0000 70B5 push {r4, r5, r6, lr} - 351 .LCFI2: - 352 .cfi_def_cfa_offset 16 - 353 .cfi_offset 4, -16 - 354 .cfi_offset 5, -12 - 355 .cfi_offset 6, -8 - 356 .cfi_offset 14, -4 - 357 0002 041E subs r4, r0, #0 - 220:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** { - 358 .loc 1 220 0 - 359 0004 0CD0 beq .L22 - 225:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** - 360 .loc 1 225 0 - 361 0006 EA25 movs r5, #234 - 362 0008 FF35 adds r5, r5, #255 - 363 000a 0323 movs r3, #3 - 364 000c 4355 strb r3, [r0, r5] - 228:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** - 365 .loc 1 228 0 - 366 000e FFF7FEFF bl HAL_PCD_Stop - 367 .LVL25: - 231:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** - 368 .loc 1 231 0 - 369 0012 2000 movs r0, r4 - 370 0014 FFF7FEFF bl HAL_PCD_MspDeInit - 371 .LVL26: - 233:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** - 372 .loc 1 233 0 - 373 0018 0023 movs r3, #0 - 374 001a 6355 strb r3, [r4, r5] - 235:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** } - 375 .loc 1 235 0 - 376 001c 0020 movs r0, #0 - 377 .L21: - 236:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** - 378 .loc 1 236 0 - 379 @ sp needed - 380 .LVL27: - 381 001e 70BD pop {r4, r5, r6, pc} - 382 .LVL28: - 383 .L22: - 222:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** } - 384 .loc 1 222 0 - 385 0020 0120 movs r0, #1 - 386 .LVL29: - 387 0022 FCE7 b .L21 - 388 .cfi_endproc - ARM GAS /tmp/ccY9uCYJ.s page 14 - - - 389 .LFE38: - 391 .section .text.HAL_PCD_DataOutStageCallback,"ax",%progbits - 392 .align 1 - 393 .weak HAL_PCD_DataOutStageCallback - 394 .syntax unified - 395 .code 16 - 396 .thumb_func - 397 .fpu softvfp - 399 HAL_PCD_DataOutStageCallback: - 400 .LFB44: - 321:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** - 322:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** /** - 323:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** * @brief This function handles PCD interrupt request. - 324:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** * @param hpcd PCD handle - 325:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** * @retval HAL status - 326:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** */ - 327:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** void HAL_PCD_IRQHandler(PCD_HandleTypeDef *hpcd) - 328:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** { - 329:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** uint32_t wInterrupt_Mask = 0U; - 330:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** - 331:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** if (__HAL_PCD_GET_FLAG (hpcd, USB_ISTR_CTR)) - 332:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** { - 333:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** /* servicing of the endpoint correct transfer interrupt */ - 334:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** /* clear of the CTR flag into the sub */ - 335:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** PCD_EP_ISR_Handler(hpcd); - 336:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** } - 337:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** - 338:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** if (__HAL_PCD_GET_FLAG (hpcd, USB_ISTR_RESET)) - 339:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** { - 340:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** __HAL_PCD_CLEAR_FLAG(hpcd, USB_ISTR_RESET); - 341:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** HAL_PCD_ResetCallback(hpcd); - 342:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** HAL_PCD_SetAddress(hpcd, 0U); - 343:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** } - 344:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** - 345:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** if (__HAL_PCD_GET_FLAG (hpcd, USB_ISTR_PMAOVR)) - 346:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** { - 347:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** __HAL_PCD_CLEAR_FLAG(hpcd, USB_ISTR_PMAOVR); - 348:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** } - 349:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** - 350:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** if (__HAL_PCD_GET_FLAG (hpcd, USB_ISTR_ERR)) - 351:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** { - 352:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** __HAL_PCD_CLEAR_FLAG(hpcd, USB_ISTR_ERR); - 353:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** } - 354:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** - 355:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** if (__HAL_PCD_GET_FLAG (hpcd, USB_ISTR_WKUP)) - 356:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** { - 357:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** - 358:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** hpcd->Instance->CNTR &= (uint16_t)(~(USB_CNTR_LPMODE)); - 359:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** - 360:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** /*set wInterrupt_Mask global variable*/ - 361:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** wInterrupt_Mask = USB_CNTR_CTRM | USB_CNTR_WKUPM | USB_CNTR_SUSPM | USB_CNTR_ERRM \ - 362:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** | USB_CNTR_ESOFM | USB_CNTR_RESETM; - 363:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** - 364:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** /*Set interrupt mask*/ - 365:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** hpcd->Instance->CNTR = wInterrupt_Mask; - 366:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** - 367:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** HAL_PCD_ResumeCallback(hpcd); - ARM GAS /tmp/ccY9uCYJ.s page 15 - - - 368:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** - 369:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** __HAL_PCD_CLEAR_FLAG(hpcd, USB_ISTR_WKUP); - 370:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** } - 371:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** - 372:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** if (__HAL_PCD_GET_FLAG (hpcd, USB_ISTR_SUSP)) - 373:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** { - 374:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** /* clear of the ISTR bit must be done after setting of CNTR_FSUSP */ - 375:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** __HAL_PCD_CLEAR_FLAG(hpcd, USB_ISTR_SUSP); - 376:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** - 377:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** /* Force low-power mode in the macrocell */ - 378:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** hpcd->Instance->CNTR |= USB_CNTR_FSUSP; - 379:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** hpcd->Instance->CNTR |= USB_CNTR_LPMODE; - 380:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** - 381:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** if (__HAL_PCD_GET_FLAG (hpcd, USB_ISTR_WKUP) == 0) - 382:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** { - 383:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** HAL_PCD_SuspendCallback(hpcd); - 384:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** } - 385:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** } - 386:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** - 387:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** if (__HAL_PCD_GET_FLAG (hpcd, USB_ISTR_SOF)) - 388:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** { - 389:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** __HAL_PCD_CLEAR_FLAG(hpcd, USB_ISTR_SOF); - 390:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** HAL_PCD_SOFCallback(hpcd); - 391:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** } - 392:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** - 393:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** if (__HAL_PCD_GET_FLAG (hpcd, USB_ISTR_ESOF)) - 394:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** { - 395:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** /* clear ESOF flag in ISTR */ - 396:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** __HAL_PCD_CLEAR_FLAG(hpcd, USB_ISTR_ESOF); - 397:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** } - 398:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** } - 399:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** - 400:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** /** - 401:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** * @brief Data out stage callbacks - 402:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** * @param hpcd PCD handle - 403:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** * @param epnum endpoint number - 404:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** * @retval None - 405:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** */ - 406:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** __weak void HAL_PCD_DataOutStageCallback(PCD_HandleTypeDef *hpcd, uint8_t epnum) - 407:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** { - 401 .loc 1 407 0 - 402 .cfi_startproc - 403 @ args = 0, pretend = 0, frame = 0 - 404 @ frame_needed = 0, uses_anonymous_args = 0 - 405 @ link register save eliminated. - 406 .LVL30: - 408:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** /* Prevent unused argument(s) compilation warning */ - 409:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** UNUSED(hpcd); - 410:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** UNUSED(epnum); - 411:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** - 412:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** /* NOTE : This function Should not be modified, when the callback is needed, - 413:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** the HAL_PCD_DataOutStageCallback could be implemented in the user file - 414:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** */ - 415:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** } - 407 .loc 1 415 0 - 408 @ sp needed - 409 0000 7047 bx lr - ARM GAS /tmp/ccY9uCYJ.s page 16 - - - 410 .cfi_endproc - 411 .LFE44: - 413 .section .text.HAL_PCD_DataInStageCallback,"ax",%progbits - 414 .align 1 - 415 .weak HAL_PCD_DataInStageCallback - 416 .syntax unified - 417 .code 16 - 418 .thumb_func - 419 .fpu softvfp - 421 HAL_PCD_DataInStageCallback: - 422 .LFB45: - 416:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** - 417:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** /** - 418:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** * @brief Data IN stage callbacks - 419:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** * @param hpcd PCD handle - 420:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** * @param epnum endpoint number - 421:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** * @retval None - 422:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** */ - 423:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** __weak void HAL_PCD_DataInStageCallback(PCD_HandleTypeDef *hpcd, uint8_t epnum) - 424:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** { - 423 .loc 1 424 0 - 424 .cfi_startproc - 425 @ args = 0, pretend = 0, frame = 0 - 426 @ frame_needed = 0, uses_anonymous_args = 0 - 427 @ link register save eliminated. - 428 .LVL31: - 425:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** /* Prevent unused argument(s) compilation warning */ - 426:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** UNUSED(hpcd); - 427:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** UNUSED(epnum); - 428:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** - 429:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** /* NOTE : This function Should not be modified, when the callback is needed, - 430:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** the HAL_PCD_DataInStageCallback could be implemented in the user file - 431:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** */ - 432:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** } - 429 .loc 1 432 0 - 430 @ sp needed - 431 0000 7047 bx lr - 432 .cfi_endproc - 433 .LFE45: - 435 .section .text.HAL_PCD_SetupStageCallback,"ax",%progbits - 436 .align 1 - 437 .weak HAL_PCD_SetupStageCallback - 438 .syntax unified - 439 .code 16 - 440 .thumb_func - 441 .fpu softvfp - 443 HAL_PCD_SetupStageCallback: - 444 .LFB46: - 433:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** /** - 434:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** * @brief Setup stage callback - 435:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** * @param hpcd PCD handle - 436:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** * @retval None - 437:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** */ - 438:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** __weak void HAL_PCD_SetupStageCallback(PCD_HandleTypeDef *hpcd) - 439:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** { - 445 .loc 1 439 0 - 446 .cfi_startproc - ARM GAS /tmp/ccY9uCYJ.s page 17 - - - 447 @ args = 0, pretend = 0, frame = 0 - 448 @ frame_needed = 0, uses_anonymous_args = 0 - 449 @ link register save eliminated. - 450 .LVL32: - 440:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** /* Prevent unused argument(s) compilation warning */ - 441:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** UNUSED(hpcd); - 442:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** - 443:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** /* NOTE : This function Should not be modified, when the callback is needed, - 444:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** the HAL_PCD_SetupStageCallback could be implemented in the user file - 445:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** */ - 446:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** } - 451 .loc 1 446 0 - 452 @ sp needed - 453 0000 7047 bx lr - 454 .cfi_endproc - 455 .LFE46: - 457 .section .text.HAL_PCD_SOFCallback,"ax",%progbits - 458 .align 1 - 459 .weak HAL_PCD_SOFCallback - 460 .syntax unified - 461 .code 16 - 462 .thumb_func - 463 .fpu softvfp - 465 HAL_PCD_SOFCallback: - 466 .LFB47: - 447:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** - 448:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** /** - 449:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** * @brief USB Start Of Frame callbacks - 450:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** * @param hpcd PCD handle - 451:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** * @retval None - 452:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** */ - 453:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** __weak void HAL_PCD_SOFCallback(PCD_HandleTypeDef *hpcd) - 454:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** { - 467 .loc 1 454 0 - 468 .cfi_startproc - 469 @ args = 0, pretend = 0, frame = 0 - 470 @ frame_needed = 0, uses_anonymous_args = 0 - 471 @ link register save eliminated. - 472 .LVL33: - 455:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** /* Prevent unused argument(s) compilation warning */ - 456:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** UNUSED(hpcd); - 457:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** - 458:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** /* NOTE : This function Should not be modified, when the callback is needed, - 459:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** the HAL_PCD_SOFCallback could be implemented in the user file - 460:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** */ - 461:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** } - 473 .loc 1 461 0 - 474 @ sp needed - 475 0000 7047 bx lr - 476 .cfi_endproc - 477 .LFE47: - 479 .section .text.HAL_PCD_ResetCallback,"ax",%progbits - 480 .align 1 - 481 .weak HAL_PCD_ResetCallback - 482 .syntax unified - 483 .code 16 - 484 .thumb_func - ARM GAS /tmp/ccY9uCYJ.s page 18 - - - 485 .fpu softvfp - 487 HAL_PCD_ResetCallback: - 488 .LFB48: - 462:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** - 463:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** /** - 464:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** * @brief USB Reset callbacks - 465:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** * @param hpcd PCD handle - 466:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** * @retval None - 467:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** */ - 468:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** __weak void HAL_PCD_ResetCallback(PCD_HandleTypeDef *hpcd) - 469:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** { - 489 .loc 1 469 0 - 490 .cfi_startproc - 491 @ args = 0, pretend = 0, frame = 0 - 492 @ frame_needed = 0, uses_anonymous_args = 0 - 493 @ link register save eliminated. - 494 .LVL34: - 470:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** /* Prevent unused argument(s) compilation warning */ - 471:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** UNUSED(hpcd); - 472:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** - 473:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** /* NOTE : This function Should not be modified, when the callback is needed, - 474:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** the HAL_PCD_ResetCallback could be implemented in the user file - 475:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** */ - 476:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** } - 495 .loc 1 476 0 - 496 @ sp needed - 497 0000 7047 bx lr - 498 .cfi_endproc - 499 .LFE48: - 501 .section .text.HAL_PCD_SuspendCallback,"ax",%progbits - 502 .align 1 - 503 .weak HAL_PCD_SuspendCallback - 504 .syntax unified - 505 .code 16 - 506 .thumb_func - 507 .fpu softvfp - 509 HAL_PCD_SuspendCallback: - 510 .LFB49: - 477:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** - 478:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** /** - 479:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** * @brief Suspend event callbacks - 480:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** * @param hpcd PCD handle - 481:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** * @retval None - 482:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** */ - 483:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** __weak void HAL_PCD_SuspendCallback(PCD_HandleTypeDef *hpcd) - 484:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** { - 511 .loc 1 484 0 - 512 .cfi_startproc - 513 @ args = 0, pretend = 0, frame = 0 - 514 @ frame_needed = 0, uses_anonymous_args = 0 - 515 @ link register save eliminated. - 516 .LVL35: - 485:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** /* Prevent unused argument(s) compilation warning */ - 486:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** UNUSED(hpcd); - 487:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** - 488:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** /* NOTE : This function Should not be modified, when the callback is needed, - 489:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** the HAL_PCD_SuspendCallback could be implemented in the user file - ARM GAS /tmp/ccY9uCYJ.s page 19 - - - 490:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** */ - 491:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** } - 517 .loc 1 491 0 - 518 @ sp needed - 519 0000 7047 bx lr - 520 .cfi_endproc - 521 .LFE49: - 523 .section .text.HAL_PCD_ResumeCallback,"ax",%progbits - 524 .align 1 - 525 .weak HAL_PCD_ResumeCallback - 526 .syntax unified - 527 .code 16 - 528 .thumb_func - 529 .fpu softvfp - 531 HAL_PCD_ResumeCallback: - 532 .LFB50: - 492:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** - 493:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** /** - 494:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** * @brief Resume event callbacks - 495:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** * @param hpcd PCD handle - 496:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** * @retval None - 497:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** */ - 498:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** __weak void HAL_PCD_ResumeCallback(PCD_HandleTypeDef *hpcd) - 499:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** { - 533 .loc 1 499 0 - 534 .cfi_startproc - 535 @ args = 0, pretend = 0, frame = 0 - 536 @ frame_needed = 0, uses_anonymous_args = 0 - 537 @ link register save eliminated. - 538 .LVL36: - 500:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** /* Prevent unused argument(s) compilation warning */ - 501:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** UNUSED(hpcd); - 502:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** - 503:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** /* NOTE : This function Should not be modified, when the callback is needed, - 504:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** the HAL_PCD_ResumeCallback could be implemented in the user file - 505:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** */ - 506:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** } - 539 .loc 1 506 0 - 540 @ sp needed - 541 0000 7047 bx lr - 542 .cfi_endproc - 543 .LFE50: - 545 .section .text.HAL_PCD_ISOOUTIncompleteCallback,"ax",%progbits - 546 .align 1 - 547 .weak HAL_PCD_ISOOUTIncompleteCallback - 548 .syntax unified - 549 .code 16 - 550 .thumb_func - 551 .fpu softvfp - 553 HAL_PCD_ISOOUTIncompleteCallback: - 554 .LFB51: - 507:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** - 508:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** /** - 509:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** * @brief Incomplete ISO OUT callbacks - 510:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** * @param hpcd PCD handle - 511:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** * @param epnum endpoint number - 512:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** * @retval None - ARM GAS /tmp/ccY9uCYJ.s page 20 - - - 513:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** */ - 514:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** __weak void HAL_PCD_ISOOUTIncompleteCallback(PCD_HandleTypeDef *hpcd, uint8_t epnum) - 515:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** { - 555 .loc 1 515 0 - 556 .cfi_startproc - 557 @ args = 0, pretend = 0, frame = 0 - 558 @ frame_needed = 0, uses_anonymous_args = 0 - 559 @ link register save eliminated. - 560 .LVL37: - 516:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** /* Prevent unused argument(s) compilation warning */ - 517:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** UNUSED(hpcd); - 518:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** UNUSED(epnum); - 519:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** - 520:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** /* NOTE : This function Should not be modified, when the callback is needed, - 521:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** the HAL_PCD_ISOOUTIncompleteCallback could be implemented in the user file - 522:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** */ - 523:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** } - 561 .loc 1 523 0 - 562 @ sp needed - 563 0000 7047 bx lr - 564 .cfi_endproc - 565 .LFE51: - 567 .section .text.HAL_PCD_ISOINIncompleteCallback,"ax",%progbits - 568 .align 1 - 569 .weak HAL_PCD_ISOINIncompleteCallback - 570 .syntax unified - 571 .code 16 - 572 .thumb_func - 573 .fpu softvfp - 575 HAL_PCD_ISOINIncompleteCallback: - 576 .LFB52: - 524:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** - 525:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** /** - 526:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** * @brief Incomplete ISO IN callbacks - 527:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** * @param hpcd PCD handle - 528:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** * @param epnum endpoint number - 529:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** * @retval None - 530:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** */ - 531:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** __weak void HAL_PCD_ISOINIncompleteCallback(PCD_HandleTypeDef *hpcd, uint8_t epnum) - 532:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** { - 577 .loc 1 532 0 - 578 .cfi_startproc - 579 @ args = 0, pretend = 0, frame = 0 - 580 @ frame_needed = 0, uses_anonymous_args = 0 - 581 @ link register save eliminated. - 582 .LVL38: - 533:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** /* Prevent unused argument(s) compilation warning */ - 534:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** UNUSED(hpcd); - 535:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** UNUSED(epnum); - 536:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** - 537:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** /* NOTE : This function Should not be modified, when the callback is needed, - 538:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** the HAL_PCD_ISOINIncompleteCallback could be implemented in the user file - 539:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** */ - 540:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** } - 583 .loc 1 540 0 - 584 @ sp needed - 585 0000 7047 bx lr - ARM GAS /tmp/ccY9uCYJ.s page 21 - - - 586 .cfi_endproc - 587 .LFE52: - 589 .section .text.HAL_PCD_ConnectCallback,"ax",%progbits - 590 .align 1 - 591 .weak HAL_PCD_ConnectCallback - 592 .syntax unified - 593 .code 16 - 594 .thumb_func - 595 .fpu softvfp - 597 HAL_PCD_ConnectCallback: - 598 .LFB53: - 541:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** - 542:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** /** - 543:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** * @brief Connection event callbacks - 544:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** * @param hpcd PCD handle - 545:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** * @retval None - 546:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** */ - 547:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** __weak void HAL_PCD_ConnectCallback(PCD_HandleTypeDef *hpcd) - 548:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** { - 599 .loc 1 548 0 - 600 .cfi_startproc - 601 @ args = 0, pretend = 0, frame = 0 - 602 @ frame_needed = 0, uses_anonymous_args = 0 - 603 @ link register save eliminated. - 604 .LVL39: - 549:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** /* Prevent unused argument(s) compilation warning */ - 550:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** UNUSED(hpcd); - 551:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** - 552:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** /* NOTE : This function Should not be modified, when the callback is needed, - 553:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** the HAL_PCD_ConnectCallback could be implemented in the user file - 554:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** */ - 555:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** } - 605 .loc 1 555 0 - 606 @ sp needed - 607 0000 7047 bx lr - 608 .cfi_endproc - 609 .LFE53: - 611 .section .text.HAL_PCD_DisconnectCallback,"ax",%progbits - 612 .align 1 - 613 .weak HAL_PCD_DisconnectCallback - 614 .syntax unified - 615 .code 16 - 616 .thumb_func - 617 .fpu softvfp - 619 HAL_PCD_DisconnectCallback: - 620 .LFB54: - 556:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** - 557:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** /** - 558:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** * @brief Disconnection event callbacks - 559:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** * @param hpcd PCD handle - 560:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** * @retval None - 561:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** */ - 562:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** __weak void HAL_PCD_DisconnectCallback(PCD_HandleTypeDef *hpcd) - 563:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** { - 621 .loc 1 563 0 - 622 .cfi_startproc - 623 @ args = 0, pretend = 0, frame = 0 - ARM GAS /tmp/ccY9uCYJ.s page 22 - - - 624 @ frame_needed = 0, uses_anonymous_args = 0 - 625 @ link register save eliminated. - 626 .LVL40: - 564:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** /* Prevent unused argument(s) compilation warning */ - 565:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** UNUSED(hpcd); - 566:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** - 567:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** /* NOTE : This function Should not be modified, when the callback is needed, - 568:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** the HAL_PCD_DisconnectCallback could be implemented in the user file - 569:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** */ - 570:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** } - 627 .loc 1 570 0 - 628 @ sp needed - 629 0000 7047 bx lr - 630 .cfi_endproc - 631 .LFE54: - 633 .section .text.HAL_PCD_DevConnect,"ax",%progbits - 634 .align 1 - 635 .global HAL_PCD_DevConnect - 636 .syntax unified - 637 .code 16 - 638 .thumb_func - 639 .fpu softvfp - 641 HAL_PCD_DevConnect: - 642 .LFB55: - 571:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** /** - 572:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** * @} - 573:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** */ - 574:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** - 575:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** /** @defgroup PCD_Exported_Functions_Group3 Peripheral Control functions - 576:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** * @brief management functions - 577:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** * - 578:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** @verbatim - 579:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** =============================================================================== - 580:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** ##### Peripheral Control functions ##### - 581:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** =============================================================================== - 582:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** [..] - 583:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** This subsection provides a set of functions allowing to control the PCD data - 584:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** transfers. - 585:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** - 586:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** @endverbatim - 587:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** * @{ - 588:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** */ - 589:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** - 590:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** /** - 591:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** * @brief Connect the USB device - 592:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** * @param hpcd PCD handle - 593:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** * @retval HAL status - 594:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** */ - 595:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** HAL_StatusTypeDef HAL_PCD_DevConnect(PCD_HandleTypeDef *hpcd) - 596:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** { - 643 .loc 1 596 0 - 644 .cfi_startproc - 645 @ args = 0, pretend = 0, frame = 0 - 646 @ frame_needed = 0, uses_anonymous_args = 0 - 647 .LVL41: - 648 0000 30B5 push {r4, r5, lr} - 649 .LCFI3: - ARM GAS /tmp/ccY9uCYJ.s page 23 - - - 650 .cfi_def_cfa_offset 12 - 651 .cfi_offset 4, -12 - 652 .cfi_offset 5, -8 - 653 .cfi_offset 14, -4 - 597:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** __HAL_LOCK(hpcd); - 654 .loc 1 597 0 - 655 0002 F423 movs r3, #244 - 656 0004 5B00 lsls r3, r3, #1 - 657 0006 C35C ldrb r3, [r0, r3] - 658 0008 012B cmp r3, #1 - 659 000a 0ED0 beq .L36 - 660 .loc 1 597 0 is_stmt 0 discriminator 2 - 661 000c F422 movs r2, #244 - 662 000e 5200 lsls r2, r2, #1 - 663 0010 0123 movs r3, #1 - 664 0012 8354 strb r3, [r0, r2] - 598:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** - 599:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** /* Enabling DP Pull-Down bit to Connect internal pull-up on USB DP line */ - 600:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** hpcd->Instance->BCDR |= USB_BCDR_DPPU; - 665 .loc 1 600 0 is_stmt 1 discriminator 2 - 666 0014 0468 ldr r4, [r0] - 667 0016 5821 movs r1, #88 - 668 0018 635A ldrh r3, [r4, r1] - 669 001a 054D ldr r5, .L37 - 670 001c 2B43 orrs r3, r5 - 671 001e 9BB2 uxth r3, r3 - 672 0020 6352 strh r3, [r4, r1] - 601:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** - 602:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** __HAL_UNLOCK(hpcd); - 673 .loc 1 602 0 discriminator 2 - 674 0022 0023 movs r3, #0 - 675 0024 8354 strb r3, [r0, r2] - 603:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** return HAL_OK; - 676 .loc 1 603 0 discriminator 2 - 677 0026 0020 movs r0, #0 - 678 .LVL42: - 679 .L35: - 604:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** } - 680 .loc 1 604 0 - 681 @ sp needed - 682 0028 30BD pop {r4, r5, pc} - 683 .LVL43: - 684 .L36: - 597:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** - 685 .loc 1 597 0 - 686 002a 0220 movs r0, #2 - 687 .LVL44: - 688 002c FCE7 b .L35 - 689 .L38: - 690 002e C046 .align 2 - 691 .L37: - 692 0030 0080FFFF .word -32768 - 693 .cfi_endproc - 694 .LFE55: - 696 .section .text.HAL_PCD_DevDisconnect,"ax",%progbits - 697 .align 1 - 698 .global HAL_PCD_DevDisconnect - ARM GAS /tmp/ccY9uCYJ.s page 24 - - - 699 .syntax unified - 700 .code 16 - 701 .thumb_func - 702 .fpu softvfp - 704 HAL_PCD_DevDisconnect: - 705 .LFB56: - 605:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** - 606:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** /** - 607:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** * @brief Disconnect the USB device - 608:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** * @param hpcd PCD handle - 609:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** * @retval HAL status - 610:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** */ - 611:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** HAL_StatusTypeDef HAL_PCD_DevDisconnect(PCD_HandleTypeDef *hpcd) - 612:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** { - 706 .loc 1 612 0 - 707 .cfi_startproc - 708 @ args = 0, pretend = 0, frame = 0 - 709 @ frame_needed = 0, uses_anonymous_args = 0 - 710 .LVL45: - 711 0000 10B5 push {r4, lr} - 712 .LCFI4: - 713 .cfi_def_cfa_offset 8 - 714 .cfi_offset 4, -8 - 715 .cfi_offset 14, -4 - 613:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** __HAL_LOCK(hpcd); - 716 .loc 1 613 0 - 717 0002 F423 movs r3, #244 - 718 0004 5B00 lsls r3, r3, #1 - 719 0006 C35C ldrb r3, [r0, r3] - 720 0008 012B cmp r3, #1 - 721 000a 0DD0 beq .L41 - 722 .loc 1 613 0 is_stmt 0 discriminator 2 - 723 000c F422 movs r2, #244 - 724 000e 5200 lsls r2, r2, #1 - 725 0010 0123 movs r3, #1 - 726 0012 8354 strb r3, [r0, r2] - 614:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** - 615:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** /* Disable DP Pull-Down bit*/ - 616:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** hpcd->Instance->BCDR &= (uint16_t)(~(USB_BCDR_DPPU)); - 727 .loc 1 616 0 is_stmt 1 discriminator 2 - 728 0014 0468 ldr r4, [r0] - 729 0016 5821 movs r1, #88 - 730 0018 635A ldrh r3, [r4, r1] - 731 001a 5B04 lsls r3, r3, #17 - 732 001c 5B0C lsrs r3, r3, #17 - 733 001e 6352 strh r3, [r4, r1] - 617:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** - 618:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** __HAL_UNLOCK(hpcd); - 734 .loc 1 618 0 discriminator 2 - 735 0020 0023 movs r3, #0 - 736 0022 8354 strb r3, [r0, r2] - 619:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** return HAL_OK; - 737 .loc 1 619 0 discriminator 2 - 738 0024 0020 movs r0, #0 - 739 .LVL46: - 740 .L40: - 620:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** } - ARM GAS /tmp/ccY9uCYJ.s page 25 - - - 741 .loc 1 620 0 - 742 @ sp needed - 743 0026 10BD pop {r4, pc} - 744 .LVL47: - 745 .L41: - 613:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** - 746 .loc 1 613 0 - 747 0028 0220 movs r0, #2 - 748 .LVL48: - 749 002a FCE7 b .L40 - 750 .cfi_endproc - 751 .LFE56: - 753 .section .text.HAL_PCD_SetAddress,"ax",%progbits - 754 .align 1 - 755 .global HAL_PCD_SetAddress - 756 .syntax unified - 757 .code 16 - 758 .thumb_func - 759 .fpu softvfp - 761 HAL_PCD_SetAddress: - 762 .LFB57: - 621:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** - 622:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** /** - 623:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** * @brief Set the USB Device address - 624:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** * @param hpcd PCD handle - 625:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** * @param address new device address - 626:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** * @retval HAL status - 627:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** */ - 628:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** HAL_StatusTypeDef HAL_PCD_SetAddress(PCD_HandleTypeDef *hpcd, uint8_t address) - 629:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** { - 763 .loc 1 629 0 - 764 .cfi_startproc - 765 @ args = 0, pretend = 0, frame = 0 - 766 @ frame_needed = 0, uses_anonymous_args = 0 - 767 @ link register save eliminated. - 768 .LVL49: - 630:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** __HAL_LOCK(hpcd); - 769 .loc 1 630 0 - 770 0000 F423 movs r3, #244 - 771 0002 5B00 lsls r3, r3, #1 - 772 0004 C35C ldrb r3, [r0, r3] - 773 0006 012B cmp r3, #1 - 774 0008 13D0 beq .L46 - 775 .loc 1 630 0 is_stmt 0 discriminator 2 - 776 000a F423 movs r3, #244 - 777 000c 5B00 lsls r3, r3, #1 - 778 000e 0122 movs r2, #1 - 779 0010 C254 strb r2, [r0, r3] - 631:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** - 632:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** if(address == 0U) - 780 .loc 1 632 0 is_stmt 1 discriminator 2 - 781 0012 0029 cmp r1, #0 - 782 0014 0AD1 bne .L44 - 633:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** { - 634:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** /* set device address and enable function */ - 635:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** hpcd->Instance->DADDR = USB_DADDR_EF; - 783 .loc 1 635 0 - ARM GAS /tmp/ccY9uCYJ.s page 26 - - - 784 0016 9D3B subs r3, r3, #157 - 785 0018 FF3B subs r3, r3, #255 - 786 001a 7F32 adds r2, r2, #127 - 787 001c 0168 ldr r1, [r0] - 788 .LVL50: - 789 001e CA52 strh r2, [r1, r3] - 790 .L45: - 636:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** } - 637:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** else /* USB Address will be applied later */ - 638:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** { - 639:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** hpcd->USB_Address = address; - 640:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** } - 641:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** - 642:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** __HAL_UNLOCK(hpcd); - 791 .loc 1 642 0 - 792 0020 F423 movs r3, #244 - 793 0022 5B00 lsls r3, r3, #1 - 794 0024 0022 movs r2, #0 - 795 0026 C254 strb r2, [r0, r3] - 643:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** return HAL_OK; - 796 .loc 1 643 0 - 797 0028 0020 movs r0, #0 - 798 .LVL51: - 799 .L43: - 644:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** } - 800 .loc 1 644 0 - 801 @ sp needed - 802 002a 7047 bx lr - 803 .LVL52: - 804 .L44: - 639:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** } - 805 .loc 1 639 0 - 806 002c 2423 movs r3, #36 - 807 002e C154 strb r1, [r0, r3] - 808 0030 F6E7 b .L45 - 809 .L46: - 630:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** - 810 .loc 1 630 0 - 811 0032 0220 movs r0, #2 - 812 .LVL53: - 813 0034 F9E7 b .L43 - 814 .cfi_endproc - 815 .LFE57: - 817 .section .text.HAL_PCD_EP_Open,"ax",%progbits - 818 .align 1 - 819 .global HAL_PCD_EP_Open - 820 .syntax unified - 821 .code 16 - 822 .thumb_func - 823 .fpu softvfp - 825 HAL_PCD_EP_Open: - 826 .LFB58: - 645:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** /** - 646:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** * @brief Open and configure an endpoint - 647:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** * @param hpcd PCD handle - 648:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** * @param ep_addr endpoint address - 649:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** * @param ep_mps endpoint max packert size - ARM GAS /tmp/ccY9uCYJ.s page 27 - - - 650:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** * @param ep_type endpoint type - 651:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** * @retval HAL status - 652:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** */ - 653:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** HAL_StatusTypeDef HAL_PCD_EP_Open(PCD_HandleTypeDef *hpcd, uint8_t ep_addr, uint16_t ep_mps, uint8_ - 654:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** { - 827 .loc 1 654 0 - 828 .cfi_startproc - 829 @ args = 0, pretend = 0, frame = 0 - 830 @ frame_needed = 0, uses_anonymous_args = 0 - 831 .LVL54: - 832 0000 F0B5 push {r4, r5, r6, r7, lr} - 833 .LCFI5: - 834 .cfi_def_cfa_offset 20 - 835 .cfi_offset 4, -20 - 836 .cfi_offset 5, -16 - 837 .cfi_offset 6, -12 - 838 .cfi_offset 7, -8 - 839 .cfi_offset 14, -4 - 840 .LVL55: - 655:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** HAL_StatusTypeDef ret = HAL_OK; - 656:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** PCD_EPTypeDef *ep; - 657:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** - 658:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** if ((ep_addr & 0x80U) == 0x80U) - 841 .loc 1 658 0 - 842 0002 4DB2 sxtb r5, r1 - 843 0004 002D cmp r5, #0 - 844 0006 00DA bge .LCB638 - 845 0008 6AE0 b .L71 @long jump - 846 .LCB638: - 659:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** { - 660:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** ep = &hpcd->IN_ep[ep_addr & 0x7FU]; - 661:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** } - 662:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** else - 663:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** { - 664:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** ep = &hpcd->OUT_ep[ep_addr & 0x7FU]; - 847 .loc 1 664 0 - 848 000a 7F24 movs r4, #127 - 849 000c 0C40 ands r4, r1 - 850 000e E600 lsls r6, r4, #3 - 851 0010 361B subs r6, r6, r4 - 852 0012 B400 lsls r4, r6, #2 - 853 0014 0934 adds r4, r4, #9 - 854 0016 FF34 adds r4, r4, #255 - 855 0018 0419 adds r4, r0, r4 - 856 .LVL56: - 857 .L49: - 665:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** } - 666:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** ep->num = ep_addr & 0x7FU; - 858 .loc 1 666 0 - 859 001a 7F26 movs r6, #127 - 860 001c 3140 ands r1, r6 - 861 .LVL57: - 862 001e 2170 strb r1, [r4] - 667:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** - 668:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** ep->is_in = (0x80U & ep_addr) != 0U; - 863 .loc 1 668 0 - 864 0020 ED0F lsrs r5, r5, #31 - ARM GAS /tmp/ccY9uCYJ.s page 28 - - - 865 .LVL58: - 866 0022 6570 strb r5, [r4, #1] - 669:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** ep->maxpacket = ep_mps; - 867 .loc 1 669 0 - 868 0024 E260 str r2, [r4, #12] - 670:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** ep->type = ep_type; - 869 .loc 1 670 0 - 870 0026 E370 strb r3, [r4, #3] - 671:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** - 672:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** __HAL_LOCK(hpcd); - 871 .loc 1 672 0 - 872 0028 F423 movs r3, #244 - 873 .LVL59: - 874 002a 5B00 lsls r3, r3, #1 - 875 002c C35C ldrb r3, [r0, r3] - 876 002e 012B cmp r3, #1 - 877 0030 00D1 bne .LCB670 - 878 0032 8FE1 b .L70 @long jump - 879 .LCB670: - 880 .loc 1 672 0 is_stmt 0 discriminator 2 - 881 0034 F423 movs r3, #244 - 882 0036 5B00 lsls r3, r3, #1 - 883 0038 0122 movs r2, #1 - 884 .LVL60: - 885 003a C254 strb r2, [r0, r3] - 886 .LVL61: - 673:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** - 674:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** /* initialize Endpoint */ - 675:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** switch (ep->type) - 887 .loc 1 675 0 is_stmt 1 discriminator 2 - 888 003c E378 ldrb r3, [r4, #3] - 889 003e 012B cmp r3, #1 - 890 0040 00D1 bne .LCB681 - 891 0042 7CE0 b .L52 @long jump - 892 .LCB681: - 893 0044 002B cmp r3, #0 - 894 0046 53D0 beq .L53 - 895 0048 022B cmp r3, #2 - 896 004a 5ED0 beq .L54 - 897 004c 032B cmp r3, #3 - 898 004e 00D1 bne .LCB687 - 899 0050 68E0 b .L55 @long jump - 900 .LCB687: - 901 .L51: - 676:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** { - 677:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** case PCD_EP_TYPE_CTRL: - 678:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** PCD_SET_EPTYPE(hpcd->Instance, ep->num, USB_EP_CONTROL); - 679:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** break; - 680:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** case PCD_EP_TYPE_BULK: - 681:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** PCD_SET_EPTYPE(hpcd->Instance, ep->num, USB_EP_BULK); - 682:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** break; - 683:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** case PCD_EP_TYPE_INTR: - 684:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** PCD_SET_EPTYPE(hpcd->Instance, ep->num, USB_EP_INTERRUPT); - 685:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** break; - 686:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** case PCD_EP_TYPE_ISOC: - 687:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** PCD_SET_EPTYPE(hpcd->Instance, ep->num, USB_EP_ISOCHRONOUS); - 688:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** break; - ARM GAS /tmp/ccY9uCYJ.s page 29 - - - 689:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** default: - 690:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** break; - 691:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** } - 692:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** - 693:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** PCD_SET_EP_ADDRESS(hpcd->Instance, ep->num, ep->num); - 902 .loc 1 693 0 - 903 0052 2378 ldrb r3, [r4] - 904 0054 9A00 lsls r2, r3, #2 - 905 0056 0168 ldr r1, [r0] - 906 0058 8C46 mov ip, r1 - 907 005a 6244 add r2, r2, ip - 908 005c 1188 ldrh r1, [r2] - 909 005e BE4D ldr r5, .L72 - 910 0060 2940 ands r1, r5 - 911 0062 1943 orrs r1, r3 - 912 0064 BD4B ldr r3, .L72+4 - 913 0066 0B43 orrs r3, r1 - 914 0068 9BB2 uxth r3, r3 - 915 006a 1380 strh r3, [r2] - 694:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** - 695:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** if (ep->doublebuffer == 0U) - 916 .loc 1 695 0 - 917 006c A37A ldrb r3, [r4, #10] - 918 006e 002B cmp r3, #0 - 919 0070 00D0 beq .LCB709 - 920 0072 BEE0 b .L56 @long jump - 921 .LCB709: - 696:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** { - 697:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** if (ep->is_in) - 922 .loc 1 697 0 - 923 0074 6378 ldrb r3, [r4, #1] - 924 0076 002B cmp r3, #0 - 925 0078 00D1 bne .LCB712 - 926 007a 6DE0 b .L57 @long jump - 927 .LCB712: - 698:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** { - 699:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** /*Set the endpoint Transmit buffer address */ - 700:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** PCD_SET_EP_TX_ADDRESS(hpcd->Instance, ep->num, ep->pmaadress); - 928 .loc 1 700 0 - 929 007c A288 ldrh r2, [r4, #4] - 930 007e 0568 ldr r5, [r0] - 931 0080 5023 movs r3, #80 - 932 0082 EB5A ldrh r3, [r5, r3] - 933 0084 2178 ldrb r1, [r4] - 934 0086 C900 lsls r1, r1, #3 - 935 0088 5B18 adds r3, r3, r1 - 936 008a 5B19 adds r3, r3, r5 - 937 008c 8021 movs r1, #128 - 938 008e C900 lsls r1, r1, #3 - 939 0090 8C46 mov ip, r1 - 940 0092 6344 add r3, r3, ip - 941 0094 0121 movs r1, #1 - 942 0096 8A43 bics r2, r1 - 943 0098 1A80 strh r2, [r3] - 701:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** PCD_CLEAR_TX_DTOG(hpcd->Instance, ep->num) - 944 .loc 1 701 0 - 945 009a 2378 ldrb r3, [r4] - ARM GAS /tmp/ccY9uCYJ.s page 30 - - - 946 009c 9B00 lsls r3, r3, #2 - 947 009e 0268 ldr r2, [r0] - 948 00a0 9446 mov ip, r2 - 949 00a2 6344 add r3, r3, ip - 950 00a4 1A88 ldrh r2, [r3] - 951 00a6 5206 lsls r2, r2, #25 - 952 00a8 06D5 bpl .L58 - 953 .loc 1 701 0 is_stmt 0 discriminator 1 - 954 00aa 1A88 ldrh r2, [r3] - 955 00ac AA49 ldr r1, .L72 - 956 00ae 1140 ands r1, r2 - 957 00b0 AB4A ldr r2, .L72+8 - 958 00b2 0A43 orrs r2, r1 - 959 00b4 92B2 uxth r2, r2 - 960 00b6 1A80 strh r2, [r3] - 961 .L58: - 962 .LBB2: - 702:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** /* Configure NAK status for the Endpoint*/ - 703:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** PCD_SET_EP_TX_STATUS(hpcd->Instance, ep->num, USB_EP_TX_NAK) - 963 .loc 1 703 0 is_stmt 1 - 964 00b8 2178 ldrb r1, [r4] - 965 00ba 8900 lsls r1, r1, #2 - 966 00bc 0368 ldr r3, [r0] - 967 00be 9C46 mov ip, r3 - 968 00c0 6144 add r1, r1, ip - 969 00c2 0B88 ldrh r3, [r1] - 970 00c4 A74A ldr r2, .L72+12 - 971 00c6 1340 ands r3, r2 - 972 .LVL62: - 973 00c8 2022 movs r2, #32 - 974 00ca 5A40 eors r2, r3 - 975 .LVL63: - 976 00cc A34B ldr r3, .L72+4 - 977 00ce 1343 orrs r3, r2 - 978 00d0 9BB2 uxth r3, r3 - 979 00d2 0B80 strh r3, [r1] - 980 .LVL64: - 981 .L59: - 982 .LBE2: - 704:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** } - 705:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** else - 706:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** { - 707:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** /*Set the endpoint Receive buffer address */ - 708:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** PCD_SET_EP_RX_ADDRESS(hpcd->Instance, ep->num, ep->pmaadress); - 709:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** /*Set the endpoint Receive buffer counter*/ - 710:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** PCD_SET_EP_RX_CNT(hpcd->Instance, ep->num, ep->maxpacket) - 711:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** PCD_CLEAR_RX_DTOG(hpcd->Instance, ep->num) - 712:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** /* Configure VALID status for the Endpoint*/ - 713:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** PCD_SET_EP_RX_STATUS(hpcd->Instance, ep->num, USB_EP_RX_VALID) - 714:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** } - 715:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** } - 716:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** /*Double Buffer*/ - 717:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** else - 718:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** { - 719:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** /*Set the endpoint as double buffered*/ - 720:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** PCD_SET_EP_DBUF(hpcd->Instance, ep->num); - 721:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** /*Set buffer address for double buffered mode*/ - ARM GAS /tmp/ccY9uCYJ.s page 31 - - - 722:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** PCD_SET_EP_DBUF_ADDR(hpcd->Instance, ep->num,ep->pmaaddr0, ep->pmaaddr1) - 723:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** - 724:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** if (ep->is_in==0U) - 725:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** { - 726:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** /* Clear the data toggle bits for the endpoint IN/OUT*/ - 727:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** PCD_CLEAR_RX_DTOG(hpcd->Instance, ep->num) - 728:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** PCD_CLEAR_TX_DTOG(hpcd->Instance, ep->num) - 729:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** - 730:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** /* Reset value of the data toggle bits for the endpoint out*/ - 731:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** PCD_TX_DTOG(hpcd->Instance, ep->num); - 732:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** - 733:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** PCD_SET_EP_RX_STATUS(hpcd->Instance, ep->num, USB_EP_RX_VALID) - 734:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** PCD_SET_EP_TX_STATUS(hpcd->Instance, ep->num, USB_EP_TX_DIS) - 735:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** } - 736:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** else - 737:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** { - 738:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** /* Clear the data toggle bits for the endpoint IN/OUT*/ - 739:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** PCD_CLEAR_RX_DTOG(hpcd->Instance, ep->num) - 740:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** PCD_CLEAR_TX_DTOG(hpcd->Instance, ep->num) - 741:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** PCD_RX_DTOG(hpcd->Instance, ep->num); - 742:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** /* Configure DISABLE status for the Endpoint*/ - 743:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** PCD_SET_EP_TX_STATUS(hpcd->Instance, ep->num, USB_EP_TX_DIS) - 744:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** PCD_SET_EP_RX_STATUS(hpcd->Instance, ep->num, USB_EP_RX_DIS) - 745:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** } - 746:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** } - 747:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** - 748:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** __HAL_UNLOCK(hpcd); - 983 .loc 1 748 0 - 984 00d4 F423 movs r3, #244 - 985 00d6 5B00 lsls r3, r3, #1 - 986 00d8 0022 movs r2, #0 - 987 00da C254 strb r2, [r0, r3] - 749:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** return ret; - 988 .loc 1 749 0 - 989 00dc 0020 movs r0, #0 - 990 .LVL65: - 991 .L50: - 750:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** } - 992 .loc 1 750 0 - 993 @ sp needed - 994 00de F0BD pop {r4, r5, r6, r7, pc} - 995 .LVL66: - 996 .L71: - 660:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** } - 997 .loc 1 660 0 - 998 00e0 7F24 movs r4, #127 - 999 00e2 0C40 ands r4, r1 - 1000 00e4 E600 lsls r6, r4, #3 - 1001 00e6 361B subs r6, r6, r4 - 1002 00e8 B400 lsls r4, r6, #2 - 1003 00ea 2834 adds r4, r4, #40 - 1004 00ec 0419 adds r4, r0, r4 - 1005 .LVL67: - 1006 00ee 94E7 b .L49 - 1007 .LVL68: - 1008 .L53: - 678:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** break; - ARM GAS /tmp/ccY9uCYJ.s page 32 - - - 1009 .loc 1 678 0 - 1010 00f0 2278 ldrb r2, [r4] - 1011 00f2 9200 lsls r2, r2, #2 - 1012 00f4 0368 ldr r3, [r0] - 1013 00f6 9C46 mov ip, r3 - 1014 00f8 6244 add r2, r2, ip - 1015 00fa 1388 ldrh r3, [r2] - 1016 00fc 9A49 ldr r1, .L72+16 - 1017 00fe 1940 ands r1, r3 - 1018 0100 9A4B ldr r3, .L72+20 - 1019 0102 0B43 orrs r3, r1 - 1020 0104 9BB2 uxth r3, r3 - 1021 0106 1380 strh r3, [r2] - 679:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** case PCD_EP_TYPE_BULK: - 1022 .loc 1 679 0 - 1023 0108 A3E7 b .L51 - 1024 .L54: - 681:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** break; - 1025 .loc 1 681 0 - 1026 010a 2278 ldrb r2, [r4] - 1027 010c 9200 lsls r2, r2, #2 - 1028 010e 0368 ldr r3, [r0] - 1029 0110 9C46 mov ip, r3 - 1030 0112 6244 add r2, r2, ip - 1031 0114 1388 ldrh r3, [r2] - 1032 0116 9449 ldr r1, .L72+16 - 1033 0118 1940 ands r1, r3 - 1034 011a 904B ldr r3, .L72+4 - 1035 011c 0B43 orrs r3, r1 - 1036 011e 9BB2 uxth r3, r3 - 1037 0120 1380 strh r3, [r2] - 682:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** case PCD_EP_TYPE_INTR: - 1038 .loc 1 682 0 - 1039 0122 96E7 b .L51 - 1040 .L55: - 684:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** break; - 1041 .loc 1 684 0 - 1042 0124 2278 ldrb r2, [r4] - 1043 0126 9200 lsls r2, r2, #2 - 1044 0128 0368 ldr r3, [r0] - 1045 012a 9C46 mov ip, r3 - 1046 012c 6244 add r2, r2, ip - 1047 012e 1388 ldrh r3, [r2] - 1048 0130 8D49 ldr r1, .L72+16 - 1049 0132 1940 ands r1, r3 - 1050 0134 8E4B ldr r3, .L72+24 - 1051 0136 0B43 orrs r3, r1 - 1052 0138 9BB2 uxth r3, r3 - 1053 013a 1380 strh r3, [r2] - 685:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** case PCD_EP_TYPE_ISOC: - 1054 .loc 1 685 0 - 1055 013c 89E7 b .L51 - 1056 .L52: - 687:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** break; - 1057 .loc 1 687 0 - 1058 013e 2278 ldrb r2, [r4] - 1059 0140 9200 lsls r2, r2, #2 - ARM GAS /tmp/ccY9uCYJ.s page 33 - - - 1060 0142 0368 ldr r3, [r0] - 1061 0144 9C46 mov ip, r3 - 1062 0146 6244 add r2, r2, ip - 1063 0148 1388 ldrh r3, [r2] - 1064 014a 8749 ldr r1, .L72+16 - 1065 014c 1940 ands r1, r3 - 1066 014e 894B ldr r3, .L72+28 - 1067 0150 0B43 orrs r3, r1 - 1068 0152 9BB2 uxth r3, r3 - 1069 0154 1380 strh r3, [r2] - 688:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** default: - 1070 .loc 1 688 0 - 1071 0156 7CE7 b .L51 - 1072 .L57: - 708:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** /*Set the endpoint Receive buffer counter*/ - 1073 .loc 1 708 0 - 1074 0158 A288 ldrh r2, [r4, #4] - 1075 015a 0568 ldr r5, [r0] - 1076 015c 5026 movs r6, #80 - 1077 015e AB5B ldrh r3, [r5, r6] - 1078 0160 2178 ldrb r1, [r4] - 1079 0162 C900 lsls r1, r1, #3 - 1080 0164 5B18 adds r3, r3, r1 - 1081 0166 5B19 adds r3, r3, r5 - 1082 0168 8349 ldr r1, .L72+32 - 1083 016a 8C46 mov ip, r1 - 1084 016c 6344 add r3, r3, ip - 1085 016e 0121 movs r1, #1 - 1086 0170 8A43 bics r2, r1 - 1087 0172 1A80 strh r2, [r3] - 1088 .LBB3: - 710:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** PCD_CLEAR_RX_DTOG(hpcd->Instance, ep->num) - 1089 .loc 1 710 0 - 1090 0174 0168 ldr r1, [r0] - 1091 0176 8B5B ldrh r3, [r1, r6] - 1092 0178 2278 ldrb r2, [r4] - 1093 017a D200 lsls r2, r2, #3 - 1094 017c 9B18 adds r3, r3, r2 - 1095 017e 5B18 adds r3, r3, r1 - 1096 0180 7E4A ldr r2, .L72+36 - 1097 0182 9446 mov ip, r2 - 1098 0184 6344 add r3, r3, ip - 1099 .LVL69: - 1100 .LBB4: - 1101 0186 E168 ldr r1, [r4, #12] - 1102 0188 3E29 cmp r1, #62 - 1103 018a 29D9 bls .L60 - 710:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** PCD_CLEAR_RX_DTOG(hpcd->Instance, ep->num) - 1104 .loc 1 710 0 is_stmt 0 discriminator 1 - 1105 018c 4A09 lsrs r2, r1, #5 - 1106 018e 92B2 uxth r2, r2 - 1107 .LVL70: - 1108 0190 C906 lsls r1, r1, #27 - 1109 0192 01D1 bne .L61 - 710:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** PCD_CLEAR_RX_DTOG(hpcd->Instance, ep->num) - 1110 .loc 1 710 0 discriminator 3 - 1111 0194 013A subs r2, r2, #1 - ARM GAS /tmp/ccY9uCYJ.s page 34 - - - 1112 .LVL71: - 1113 0196 92B2 uxth r2, r2 - 1114 .LVL72: - 1115 .L61: - 710:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** PCD_CLEAR_RX_DTOG(hpcd->Instance, ep->num) - 1116 .loc 1 710 0 discriminator 5 - 1117 0198 9202 lsls r2, r2, #10 - 1118 .LVL73: - 1119 019a 92B2 uxth r2, r2 - 1120 019c 7849 ldr r1, .L72+40 - 1121 019e 0A43 orrs r2, r1 - 1122 01a0 1A80 strh r2, [r3] - 1123 .L62: - 1124 .LBE4: - 1125 .LBE3: - 711:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** /* Configure VALID status for the Endpoint*/ - 1126 .loc 1 711 0 is_stmt 1 - 1127 01a2 2378 ldrb r3, [r4] - 1128 .LVL74: - 1129 01a4 9B00 lsls r3, r3, #2 - 1130 01a6 0268 ldr r2, [r0] - 1131 01a8 9446 mov ip, r2 - 1132 01aa 6344 add r3, r3, ip - 1133 01ac 1A88 ldrh r2, [r3] - 1134 01ae 5204 lsls r2, r2, #17 - 1135 01b0 06D5 bpl .L64 - 711:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** /* Configure VALID status for the Endpoint*/ - 1136 .loc 1 711 0 is_stmt 0 discriminator 1 - 1137 01b2 1A88 ldrh r2, [r3] - 1138 01b4 6849 ldr r1, .L72 - 1139 01b6 1140 ands r1, r2 - 1140 01b8 724A ldr r2, .L72+44 - 1141 01ba 0A43 orrs r2, r1 - 1142 01bc 92B2 uxth r2, r2 - 1143 01be 1A80 strh r2, [r3] - 1144 .L64: - 1145 .LBB6: - 713:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** } - 1146 .loc 1 713 0 is_stmt 1 - 1147 01c0 2278 ldrb r2, [r4] - 1148 01c2 9200 lsls r2, r2, #2 - 1149 01c4 0368 ldr r3, [r0] - 1150 01c6 9C46 mov ip, r3 - 1151 01c8 6244 add r2, r2, ip - 1152 01ca 1188 ldrh r1, [r2] - 1153 01cc 6E4B ldr r3, .L72+48 - 1154 01ce 1940 ands r1, r3 - 1155 .LVL75: - 1156 01d0 C023 movs r3, #192 - 1157 01d2 9B01 lsls r3, r3, #6 - 1158 01d4 5940 eors r1, r3 - 1159 .LVL76: - 1160 01d6 614B ldr r3, .L72+4 - 1161 01d8 0B43 orrs r3, r1 - 1162 01da 9BB2 uxth r3, r3 - 1163 01dc 1380 strh r3, [r2] - 1164 01de 79E7 b .L59 - ARM GAS /tmp/ccY9uCYJ.s page 35 - - - 1165 .LVL77: - 1166 .L60: - 1167 .LBE6: - 1168 .LBB7: - 1169 .LBB5: - 710:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** PCD_CLEAR_RX_DTOG(hpcd->Instance, ep->num) - 1170 .loc 1 710 0 discriminator 2 - 1171 01e0 4A08 lsrs r2, r1, #1 - 1172 01e2 92B2 uxth r2, r2 - 1173 .LVL78: - 1174 01e4 C907 lsls r1, r1, #31 - 1175 01e6 01D5 bpl .L63 - 710:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** PCD_CLEAR_RX_DTOG(hpcd->Instance, ep->num) - 1176 .loc 1 710 0 is_stmt 0 discriminator 6 - 1177 01e8 0132 adds r2, r2, #1 - 1178 .LVL79: - 1179 01ea 92B2 uxth r2, r2 - 1180 .LVL80: - 1181 .L63: - 710:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** PCD_CLEAR_RX_DTOG(hpcd->Instance, ep->num) - 1182 .loc 1 710 0 discriminator 8 - 1183 01ec 9202 lsls r2, r2, #10 - 1184 .LVL81: - 1185 01ee 1A80 strh r2, [r3] - 1186 01f0 D7E7 b .L62 - 1187 .LVL82: - 1188 .L56: - 1189 .LBE5: - 1190 .LBE7: - 720:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** /*Set buffer address for double buffered mode*/ - 1191 .loc 1 720 0 is_stmt 1 - 1192 01f2 2278 ldrb r2, [r4] - 1193 01f4 9200 lsls r2, r2, #2 - 1194 01f6 0368 ldr r3, [r0] - 1195 01f8 9C46 mov ip, r3 - 1196 01fa 6244 add r2, r2, ip - 1197 01fc 1388 ldrh r3, [r2] - 1198 01fe 6349 ldr r1, .L72+52 - 1199 0200 1940 ands r1, r3 - 1200 0202 634B ldr r3, .L72+56 - 1201 0204 0B43 orrs r3, r1 - 1202 0206 9BB2 uxth r3, r3 - 1203 0208 1380 strh r3, [r2] - 722:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** - 1204 .loc 1 722 0 - 1205 020a E288 ldrh r2, [r4, #6] - 1206 020c 0568 ldr r5, [r0] - 1207 020e 5027 movs r7, #80 - 1208 0210 EB5B ldrh r3, [r5, r7] - 1209 0212 2178 ldrb r1, [r4] - 1210 0214 C900 lsls r1, r1, #3 - 1211 0216 5B18 adds r3, r3, r1 - 1212 0218 5B19 adds r3, r3, r5 - 1213 021a 8021 movs r1, #128 - 1214 021c C900 lsls r1, r1, #3 - 1215 021e 8C46 mov ip, r1 - 1216 0220 6344 add r3, r3, ip - ARM GAS /tmp/ccY9uCYJ.s page 36 - - - 1217 0222 0126 movs r6, #1 - 1218 0224 B243 bics r2, r6 - 1219 0226 1A80 strh r2, [r3] - 1220 0228 2289 ldrh r2, [r4, #8] - 1221 022a 0568 ldr r5, [r0] - 1222 022c EB5B ldrh r3, [r5, r7] - 1223 022e 2178 ldrb r1, [r4] - 1224 0230 C900 lsls r1, r1, #3 - 1225 0232 5B18 adds r3, r3, r1 - 1226 0234 5B19 adds r3, r3, r5 - 1227 0236 5049 ldr r1, .L72+32 - 1228 0238 8C46 mov ip, r1 - 1229 023a 6344 add r3, r3, ip - 1230 023c B243 bics r2, r6 - 1231 023e 1A80 strh r2, [r3] - 724:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** { - 1232 .loc 1 724 0 - 1233 0240 6378 ldrb r3, [r4, #1] - 1234 0242 002B cmp r3, #0 - 1235 0244 44D1 bne .L65 - 727:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** PCD_CLEAR_TX_DTOG(hpcd->Instance, ep->num) - 1236 .loc 1 727 0 - 1237 0246 2378 ldrb r3, [r4] - 1238 0248 9B00 lsls r3, r3, #2 - 1239 024a 0268 ldr r2, [r0] - 1240 024c 9446 mov ip, r2 - 1241 024e 6344 add r3, r3, ip - 1242 0250 1A88 ldrh r2, [r3] - 1243 0252 5204 lsls r2, r2, #17 - 1244 0254 06D5 bpl .L66 - 727:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** PCD_CLEAR_TX_DTOG(hpcd->Instance, ep->num) - 1245 .loc 1 727 0 is_stmt 0 discriminator 1 - 1246 0256 1A88 ldrh r2, [r3] - 1247 0258 3F49 ldr r1, .L72 - 1248 025a 1140 ands r1, r2 - 1249 025c 494A ldr r2, .L72+44 - 1250 025e 0A43 orrs r2, r1 - 1251 0260 92B2 uxth r2, r2 - 1252 0262 1A80 strh r2, [r3] - 1253 .L66: - 728:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** - 1254 .loc 1 728 0 is_stmt 1 - 1255 0264 2378 ldrb r3, [r4] - 1256 0266 9B00 lsls r3, r3, #2 - 1257 0268 0268 ldr r2, [r0] - 1258 026a 9446 mov ip, r2 - 1259 026c 6344 add r3, r3, ip - 1260 026e 1A88 ldrh r2, [r3] - 1261 0270 5206 lsls r2, r2, #25 - 1262 0272 06D5 bpl .L67 - 728:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** - 1263 .loc 1 728 0 is_stmt 0 discriminator 1 - 1264 0274 1A88 ldrh r2, [r3] - 1265 0276 3849 ldr r1, .L72 - 1266 0278 1140 ands r1, r2 - 1267 027a 394A ldr r2, .L72+8 - 1268 027c 0A43 orrs r2, r1 - ARM GAS /tmp/ccY9uCYJ.s page 37 - - - 1269 027e 92B2 uxth r2, r2 - 1270 0280 1A80 strh r2, [r3] - 1271 .L67: - 731:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** - 1272 .loc 1 731 0 is_stmt 1 - 1273 0282 2278 ldrb r2, [r4] - 1274 0284 9200 lsls r2, r2, #2 - 1275 0286 0368 ldr r3, [r0] - 1276 0288 9C46 mov ip, r3 - 1277 028a 6244 add r2, r2, ip - 1278 028c 1388 ldrh r3, [r2] - 1279 028e 3249 ldr r1, .L72 - 1280 0290 1940 ands r1, r3 - 1281 0292 334B ldr r3, .L72+8 - 1282 0294 0B43 orrs r3, r1 - 1283 0296 9BB2 uxth r3, r3 - 1284 0298 1380 strh r3, [r2] - 1285 .LBB8: - 733:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** PCD_SET_EP_TX_STATUS(hpcd->Instance, ep->num, USB_EP_TX_DIS) - 1286 .loc 1 733 0 - 1287 029a 2178 ldrb r1, [r4] - 1288 029c 8900 lsls r1, r1, #2 - 1289 029e 0368 ldr r3, [r0] - 1290 02a0 9C46 mov ip, r3 - 1291 02a2 6144 add r1, r1, ip - 1292 02a4 0B88 ldrh r3, [r1] - 1293 02a6 384A ldr r2, .L72+48 - 1294 02a8 1A40 ands r2, r3 - 1295 .LVL83: - 1296 02aa C023 movs r3, #192 - 1297 02ac 9B01 lsls r3, r3, #6 - 1298 02ae 5340 eors r3, r2 - 1299 .LVL84: - 1300 02b0 2A4A ldr r2, .L72+4 - 1301 02b2 1343 orrs r3, r2 - 1302 .LVL85: - 1303 02b4 9BB2 uxth r3, r3 - 1304 02b6 0B80 strh r3, [r1] - 1305 .LBE8: - 1306 .LBB9: - 734:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** } - 1307 .loc 1 734 0 - 1308 02b8 2378 ldrb r3, [r4] - 1309 02ba 9B00 lsls r3, r3, #2 - 1310 02bc 0168 ldr r1, [r0] - 1311 02be 8C46 mov ip, r1 - 1312 02c0 6344 add r3, r3, ip - 1313 02c2 1988 ldrh r1, [r3] - 1314 02c4 274C ldr r4, .L72+12 - 1315 .LVL86: - 1316 02c6 2140 ands r1, r4 - 1317 .LVL87: - 1318 02c8 0A43 orrs r2, r1 - 1319 02ca 92B2 uxth r2, r2 - 1320 02cc 1A80 strh r2, [r3] - 1321 .LBE9: - 1322 02ce 01E7 b .L59 - ARM GAS /tmp/ccY9uCYJ.s page 38 - - - 1323 .LVL88: - 1324 .L65: - 739:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** PCD_CLEAR_TX_DTOG(hpcd->Instance, ep->num) - 1325 .loc 1 739 0 - 1326 02d0 2378 ldrb r3, [r4] - 1327 02d2 9B00 lsls r3, r3, #2 - 1328 02d4 0268 ldr r2, [r0] - 1329 02d6 9446 mov ip, r2 - 1330 02d8 6344 add r3, r3, ip - 1331 02da 1A88 ldrh r2, [r3] - 1332 02dc 5204 lsls r2, r2, #17 - 1333 02de 06D5 bpl .L68 - 739:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** PCD_CLEAR_TX_DTOG(hpcd->Instance, ep->num) - 1334 .loc 1 739 0 is_stmt 0 discriminator 1 - 1335 02e0 1A88 ldrh r2, [r3] - 1336 02e2 1D49 ldr r1, .L72 - 1337 02e4 1140 ands r1, r2 - 1338 02e6 274A ldr r2, .L72+44 - 1339 02e8 0A43 orrs r2, r1 - 1340 02ea 92B2 uxth r2, r2 - 1341 02ec 1A80 strh r2, [r3] - 1342 .L68: - 740:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** PCD_RX_DTOG(hpcd->Instance, ep->num); - 1343 .loc 1 740 0 is_stmt 1 - 1344 02ee 2378 ldrb r3, [r4] - 1345 02f0 9B00 lsls r3, r3, #2 - 1346 02f2 0268 ldr r2, [r0] - 1347 02f4 9446 mov ip, r2 - 1348 02f6 6344 add r3, r3, ip - 1349 02f8 1A88 ldrh r2, [r3] - 1350 02fa 5206 lsls r2, r2, #25 - 1351 02fc 06D5 bpl .L69 - 740:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** PCD_RX_DTOG(hpcd->Instance, ep->num); - 1352 .loc 1 740 0 is_stmt 0 discriminator 1 - 1353 02fe 1A88 ldrh r2, [r3] - 1354 0300 1549 ldr r1, .L72 - 1355 0302 1140 ands r1, r2 - 1356 0304 164A ldr r2, .L72+8 - 1357 0306 0A43 orrs r2, r1 - 1358 0308 92B2 uxth r2, r2 - 1359 030a 1A80 strh r2, [r3] - 1360 .L69: - 741:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** /* Configure DISABLE status for the Endpoint*/ - 1361 .loc 1 741 0 is_stmt 1 - 1362 030c 2278 ldrb r2, [r4] - 1363 030e 9200 lsls r2, r2, #2 - 1364 0310 0368 ldr r3, [r0] - 1365 0312 9C46 mov ip, r3 - 1366 0314 6244 add r2, r2, ip - 1367 0316 1388 ldrh r3, [r2] - 1368 0318 0F49 ldr r1, .L72 - 1369 031a 1940 ands r1, r3 - 1370 031c 194B ldr r3, .L72+44 - 1371 031e 0B43 orrs r3, r1 - 1372 0320 9BB2 uxth r3, r3 - 1373 0322 1380 strh r3, [r2] - 1374 .LBB10: - ARM GAS /tmp/ccY9uCYJ.s page 39 - - - 743:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** PCD_SET_EP_RX_STATUS(hpcd->Instance, ep->num, USB_EP_RX_DIS) - 1375 .loc 1 743 0 - 1376 0324 2178 ldrb r1, [r4] - 1377 0326 8900 lsls r1, r1, #2 - 1378 0328 0368 ldr r3, [r0] - 1379 032a 9C46 mov ip, r3 - 1380 032c 6144 add r1, r1, ip - 1381 032e 0B88 ldrh r3, [r1] - 1382 0330 0C4A ldr r2, .L72+12 - 1383 0332 1340 ands r3, r2 - 1384 .LVL89: - 1385 0334 094A ldr r2, .L72+4 - 1386 0336 1343 orrs r3, r2 - 1387 .LVL90: - 1388 0338 9BB2 uxth r3, r3 - 1389 033a 0B80 strh r3, [r1] - 1390 .LBE10: - 1391 .LBB11: - 744:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** } - 1392 .loc 1 744 0 - 1393 033c 2378 ldrb r3, [r4] - 1394 033e 9B00 lsls r3, r3, #2 - 1395 0340 0168 ldr r1, [r0] - 1396 0342 8C46 mov ip, r1 - 1397 0344 6344 add r3, r3, ip - 1398 0346 1988 ldrh r1, [r3] - 1399 0348 0F4C ldr r4, .L72+48 - 1400 .LVL91: - 1401 034a 2140 ands r1, r4 - 1402 .LVL92: - 1403 034c 0A43 orrs r2, r1 - 1404 034e 92B2 uxth r2, r2 - 1405 0350 1A80 strh r2, [r3] - 1406 0352 BFE6 b .L59 - 1407 .LVL93: - 1408 .L70: - 1409 .LBE11: - 672:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** - 1410 .loc 1 672 0 - 1411 0354 0220 movs r0, #2 - 1412 .LVL94: - 1413 0356 C2E6 b .L50 - 1414 .L73: - 1415 .align 2 - 1416 .L72: - 1417 0358 0F0F0000 .word 3855 - 1418 035c 8080FFFF .word -32640 - 1419 0360 C080FFFF .word -32576 - 1420 0364 BF8FFFFF .word -28737 - 1421 0368 0F090000 .word 2319 - 1422 036c 8082FFFF .word -32128 - 1423 0370 8086FFFF .word -31104 - 1424 0374 8084FFFF .word -31616 - 1425 0378 04040000 .word 1028 - 1426 037c 06040000 .word 1030 - 1427 0380 0080FFFF .word -32768 - 1428 0384 80C0FFFF .word -16256 - ARM GAS /tmp/ccY9uCYJ.s page 40 - - - 1429 0388 8FBFFFFF .word -16497 - 1430 038c 0F0E0000 .word 3599 - 1431 0390 8081FFFF .word -32384 - 1432 .cfi_endproc - 1433 .LFE58: - 1435 .section .text.HAL_PCD_EP_Close,"ax",%progbits - 1436 .align 1 - 1437 .global HAL_PCD_EP_Close - 1438 .syntax unified - 1439 .code 16 - 1440 .thumb_func - 1441 .fpu softvfp - 1443 HAL_PCD_EP_Close: - 1444 .LFB59: - 751:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** - 752:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** - 753:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** /** - 754:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** * @brief Deactivate an endpoint - 755:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** * @param hpcd PCD handle - 756:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** * @param ep_addr endpoint address - 757:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** * @retval HAL status - 758:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** */ - 759:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** HAL_StatusTypeDef HAL_PCD_EP_Close(PCD_HandleTypeDef *hpcd, uint8_t ep_addr) - 760:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** { - 1445 .loc 1 760 0 - 1446 .cfi_startproc - 1447 @ args = 0, pretend = 0, frame = 0 - 1448 @ frame_needed = 0, uses_anonymous_args = 0 - 1449 .LVL95: - 1450 0000 10B5 push {r4, lr} - 1451 .LCFI6: - 1452 .cfi_def_cfa_offset 8 - 1453 .cfi_offset 4, -8 - 1454 .cfi_offset 14, -4 - 761:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** PCD_EPTypeDef *ep; - 762:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** - 763:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** if ((ep_addr & 0x80U) == 0x80U) - 1455 .loc 1 763 0 - 1456 0002 4AB2 sxtb r2, r1 - 1457 0004 002A cmp r2, #0 - 1458 0006 3DDB blt .L89 - 764:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** { - 765:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** ep = &hpcd->IN_ep[ep_addr & 0x7FU]; - 766:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** } - 767:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** else - 768:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** { - 769:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** ep = &hpcd->OUT_ep[ep_addr & 0x7FU]; - 1459 .loc 1 769 0 - 1460 0008 7F23 movs r3, #127 - 1461 000a 0B40 ands r3, r1 - 1462 000c DC00 lsls r4, r3, #3 - 1463 000e E41A subs r4, r4, r3 - 1464 0010 A300 lsls r3, r4, #2 - 1465 0012 0933 adds r3, r3, #9 - 1466 0014 FF33 adds r3, r3, #255 - 1467 0016 C318 adds r3, r0, r3 - 1468 .LVL96: - ARM GAS /tmp/ccY9uCYJ.s page 41 - - - 1469 .L76: - 770:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** } - 771:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** ep->num = ep_addr & 0x7FU; - 1470 .loc 1 771 0 - 1471 0018 7F24 movs r4, #127 - 1472 001a 2140 ands r1, r4 - 1473 .LVL97: - 1474 001c 1970 strb r1, [r3] - 772:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** - 773:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** ep->is_in = (0x80U & ep_addr) != 0U; - 1475 .loc 1 773 0 - 1476 001e D20F lsrs r2, r2, #31 - 1477 .LVL98: - 1478 0020 5A70 strb r2, [r3, #1] - 774:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** - 775:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** __HAL_LOCK(hpcd); - 1479 .loc 1 775 0 - 1480 0022 F422 movs r2, #244 - 1481 0024 5200 lsls r2, r2, #1 - 1482 0026 825C ldrb r2, [r0, r2] - 1483 0028 012A cmp r2, #1 - 1484 002a 00D1 bne .LCB1399 - 1485 002c D5E0 b .L88 @long jump - 1486 .LCB1399: - 1487 .loc 1 775 0 is_stmt 0 discriminator 2 - 1488 002e F422 movs r2, #244 - 1489 0030 5200 lsls r2, r2, #1 - 1490 0032 0121 movs r1, #1 - 1491 0034 8154 strb r1, [r0, r2] - 776:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** - 777:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** if (ep->doublebuffer == 0U) - 1492 .loc 1 777 0 is_stmt 1 discriminator 2 - 1493 0036 9A7A ldrb r2, [r3, #10] - 1494 0038 002A cmp r2, #0 - 1495 003a 47D1 bne .L78 - 778:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** { - 779:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** if (ep->is_in) - 1496 .loc 1 779 0 - 1497 003c 5A78 ldrb r2, [r3, #1] - 1498 003e 002A cmp r2, #0 - 1499 0040 28D0 beq .L79 - 780:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** { - 781:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** PCD_CLEAR_TX_DTOG(hpcd->Instance, ep->num) - 1500 .loc 1 781 0 - 1501 0042 1A78 ldrb r2, [r3] - 1502 0044 9200 lsls r2, r2, #2 - 1503 0046 0168 ldr r1, [r0] - 1504 0048 8C46 mov ip, r1 - 1505 004a 6244 add r2, r2, ip - 1506 004c 1188 ldrh r1, [r2] - 1507 004e 4906 lsls r1, r1, #25 - 1508 0050 06D5 bpl .L80 - 1509 .loc 1 781 0 is_stmt 0 discriminator 1 - 1510 0052 1188 ldrh r1, [r2] - 1511 0054 624C ldr r4, .L90 - 1512 0056 0C40 ands r4, r1 - 1513 0058 6249 ldr r1, .L90+4 - ARM GAS /tmp/ccY9uCYJ.s page 42 - - - 1514 005a 2143 orrs r1, r4 - 1515 005c 89B2 uxth r1, r1 - 1516 005e 1180 strh r1, [r2] - 1517 .L80: - 1518 .LBB12: - 782:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** /* Configure DISABLE status for the Endpoint*/ - 783:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** PCD_SET_EP_TX_STATUS(hpcd->Instance, ep->num, USB_EP_TX_DIS) - 1519 .loc 1 783 0 is_stmt 1 - 1520 0060 1A78 ldrb r2, [r3] - 1521 0062 9200 lsls r2, r2, #2 - 1522 0064 0368 ldr r3, [r0] - 1523 .LVL99: - 1524 0066 9C46 mov ip, r3 - 1525 0068 6244 add r2, r2, ip - 1526 006a 1388 ldrh r3, [r2] - 1527 006c 5E49 ldr r1, .L90+8 - 1528 006e 1940 ands r1, r3 - 1529 .LVL100: - 1530 0070 5E4B ldr r3, .L90+12 - 1531 0072 0B43 orrs r3, r1 - 1532 0074 9BB2 uxth r3, r3 - 1533 0076 1380 strh r3, [r2] - 1534 .LVL101: - 1535 .L81: - 1536 .LBE12: - 784:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** } - 785:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** else - 786:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** { - 787:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** PCD_CLEAR_RX_DTOG(hpcd->Instance, ep->num) - 788:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** /* Configure DISABLE status for the Endpoint*/ - 789:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** PCD_SET_EP_RX_STATUS(hpcd->Instance, ep->num, USB_EP_RX_DIS) - 790:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** } - 791:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** } - 792:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** /*Double Buffer*/ - 793:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** else - 794:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** { - 795:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** if (ep->is_in==0U) - 796:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** { - 797:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** /* Clear the data toggle bits for the endpoint IN/OUT*/ - 798:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** PCD_CLEAR_RX_DTOG(hpcd->Instance, ep->num) - 799:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** PCD_CLEAR_TX_DTOG(hpcd->Instance, ep->num) - 800:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** - 801:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** /* Reset value of the data toggle bits for the endpoint out*/ - 802:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** PCD_TX_DTOG(hpcd->Instance, ep->num); - 803:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** - 804:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** PCD_SET_EP_RX_STATUS(hpcd->Instance, ep->num, USB_EP_RX_DIS) - 805:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** PCD_SET_EP_TX_STATUS(hpcd->Instance, ep->num, USB_EP_TX_DIS) - 806:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** } - 807:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** else - 808:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** { - 809:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** /* Clear the data toggle bits for the endpoint IN/OUT*/ - 810:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** PCD_CLEAR_RX_DTOG(hpcd->Instance, ep->num) - 811:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** PCD_CLEAR_TX_DTOG(hpcd->Instance, ep->num) - 812:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** PCD_RX_DTOG(hpcd->Instance, ep->num); - 813:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** /* Configure DISABLE status for the Endpoint*/ - 814:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** PCD_SET_EP_TX_STATUS(hpcd->Instance, ep->num, USB_EP_TX_DIS) - 815:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** PCD_SET_EP_RX_STATUS(hpcd->Instance, ep->num, USB_EP_RX_DIS) - ARM GAS /tmp/ccY9uCYJ.s page 43 - - - 816:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** } - 817:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** } - 818:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** - 819:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** __HAL_UNLOCK(hpcd); - 1537 .loc 1 819 0 - 1538 0078 F423 movs r3, #244 - 1539 007a 5B00 lsls r3, r3, #1 - 1540 007c 0022 movs r2, #0 - 1541 007e C254 strb r2, [r0, r3] - 820:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** return HAL_OK; - 1542 .loc 1 820 0 - 1543 0080 0020 movs r0, #0 - 1544 .LVL102: - 1545 .L77: - 821:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** } - 1546 .loc 1 821 0 - 1547 @ sp needed - 1548 0082 10BD pop {r4, pc} - 1549 .LVL103: - 1550 .L89: - 765:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** } - 1551 .loc 1 765 0 - 1552 0084 7F23 movs r3, #127 - 1553 0086 0B40 ands r3, r1 - 1554 0088 DC00 lsls r4, r3, #3 - 1555 008a E41A subs r4, r4, r3 - 1556 008c A300 lsls r3, r4, #2 - 1557 008e 2833 adds r3, r3, #40 - 1558 0090 C318 adds r3, r0, r3 - 1559 .LVL104: - 1560 0092 C1E7 b .L76 - 1561 .LVL105: - 1562 .L79: - 787:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** /* Configure DISABLE status for the Endpoint*/ - 1563 .loc 1 787 0 - 1564 0094 1A78 ldrb r2, [r3] - 1565 0096 9200 lsls r2, r2, #2 - 1566 0098 0168 ldr r1, [r0] - 1567 009a 8C46 mov ip, r1 - 1568 009c 6244 add r2, r2, ip - 1569 009e 1188 ldrh r1, [r2] - 1570 00a0 4904 lsls r1, r1, #17 - 1571 00a2 06D5 bpl .L82 - 787:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** /* Configure DISABLE status for the Endpoint*/ - 1572 .loc 1 787 0 is_stmt 0 discriminator 1 - 1573 00a4 1188 ldrh r1, [r2] - 1574 00a6 4E4C ldr r4, .L90 - 1575 00a8 0C40 ands r4, r1 - 1576 00aa 5149 ldr r1, .L90+16 - 1577 00ac 2143 orrs r1, r4 - 1578 00ae 89B2 uxth r1, r1 - 1579 00b0 1180 strh r1, [r2] - 1580 .L82: - 1581 .LBB13: - 789:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** } - 1582 .loc 1 789 0 is_stmt 1 - 1583 00b2 1A78 ldrb r2, [r3] - ARM GAS /tmp/ccY9uCYJ.s page 44 - - - 1584 00b4 9200 lsls r2, r2, #2 - 1585 00b6 0368 ldr r3, [r0] - 1586 .LVL106: - 1587 00b8 9C46 mov ip, r3 - 1588 00ba 6244 add r2, r2, ip - 1589 00bc 1388 ldrh r3, [r2] - 1590 00be 4D49 ldr r1, .L90+20 - 1591 00c0 1940 ands r1, r3 - 1592 .LVL107: - 1593 00c2 4A4B ldr r3, .L90+12 - 1594 00c4 0B43 orrs r3, r1 - 1595 00c6 9BB2 uxth r3, r3 - 1596 00c8 1380 strh r3, [r2] - 1597 00ca D5E7 b .L81 - 1598 .LVL108: - 1599 .L78: - 1600 .LBE13: - 795:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** { - 1601 .loc 1 795 0 - 1602 00cc 5A78 ldrb r2, [r3, #1] - 1603 00ce 002A cmp r2, #0 - 1604 00d0 41D1 bne .L83 - 798:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** PCD_CLEAR_TX_DTOG(hpcd->Instance, ep->num) - 1605 .loc 1 798 0 - 1606 00d2 1A78 ldrb r2, [r3] - 1607 00d4 9200 lsls r2, r2, #2 - 1608 00d6 0168 ldr r1, [r0] - 1609 00d8 8C46 mov ip, r1 - 1610 00da 6244 add r2, r2, ip - 1611 00dc 1188 ldrh r1, [r2] - 1612 00de 4904 lsls r1, r1, #17 - 1613 00e0 06D5 bpl .L84 - 798:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** PCD_CLEAR_TX_DTOG(hpcd->Instance, ep->num) - 1614 .loc 1 798 0 is_stmt 0 discriminator 1 - 1615 00e2 1188 ldrh r1, [r2] - 1616 00e4 3E4C ldr r4, .L90 - 1617 00e6 0C40 ands r4, r1 - 1618 00e8 4149 ldr r1, .L90+16 - 1619 00ea 2143 orrs r1, r4 - 1620 00ec 89B2 uxth r1, r1 - 1621 00ee 1180 strh r1, [r2] - 1622 .L84: - 799:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** - 1623 .loc 1 799 0 is_stmt 1 - 1624 00f0 1A78 ldrb r2, [r3] - 1625 00f2 9200 lsls r2, r2, #2 - 1626 00f4 0168 ldr r1, [r0] - 1627 00f6 8C46 mov ip, r1 - 1628 00f8 6244 add r2, r2, ip - 1629 00fa 1188 ldrh r1, [r2] - 1630 00fc 4906 lsls r1, r1, #25 - 1631 00fe 06D5 bpl .L85 - 799:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** - 1632 .loc 1 799 0 is_stmt 0 discriminator 1 - 1633 0100 1188 ldrh r1, [r2] - 1634 0102 374C ldr r4, .L90 - 1635 0104 0C40 ands r4, r1 - ARM GAS /tmp/ccY9uCYJ.s page 45 - - - 1636 0106 3749 ldr r1, .L90+4 - 1637 0108 2143 orrs r1, r4 - 1638 010a 89B2 uxth r1, r1 - 1639 010c 1180 strh r1, [r2] - 1640 .L85: - 802:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** - 1641 .loc 1 802 0 is_stmt 1 - 1642 010e 1978 ldrb r1, [r3] - 1643 0110 8900 lsls r1, r1, #2 - 1644 0112 0268 ldr r2, [r0] - 1645 0114 9446 mov ip, r2 - 1646 0116 6144 add r1, r1, ip - 1647 0118 0A88 ldrh r2, [r1] - 1648 011a 314C ldr r4, .L90 - 1649 011c 1440 ands r4, r2 - 1650 011e 314A ldr r2, .L90+4 - 1651 0120 2243 orrs r2, r4 - 1652 0122 92B2 uxth r2, r2 - 1653 0124 0A80 strh r2, [r1] - 1654 .LBB14: - 804:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** PCD_SET_EP_TX_STATUS(hpcd->Instance, ep->num, USB_EP_TX_DIS) - 1655 .loc 1 804 0 - 1656 0126 1C78 ldrb r4, [r3] - 1657 0128 A400 lsls r4, r4, #2 - 1658 012a 0268 ldr r2, [r0] - 1659 012c 9446 mov ip, r2 - 1660 012e 6444 add r4, r4, ip - 1661 0130 2288 ldrh r2, [r4] - 1662 0132 3049 ldr r1, .L90+20 - 1663 0134 0A40 ands r2, r1 - 1664 .LVL109: - 1665 0136 2D49 ldr r1, .L90+12 - 1666 0138 0A43 orrs r2, r1 - 1667 .LVL110: - 1668 013a 92B2 uxth r2, r2 - 1669 013c 2280 strh r2, [r4] - 1670 .LBE14: - 1671 .LBB15: - 805:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** } - 1672 .loc 1 805 0 - 1673 013e 1B78 ldrb r3, [r3] - 1674 .LVL111: - 1675 0140 9B00 lsls r3, r3, #2 - 1676 0142 0268 ldr r2, [r0] - 1677 0144 9446 mov ip, r2 - 1678 0146 6344 add r3, r3, ip - 1679 0148 1A88 ldrh r2, [r3] - 1680 014a 274C ldr r4, .L90+8 - 1681 014c 2240 ands r2, r4 - 1682 .LVL112: - 1683 014e 1143 orrs r1, r2 - 1684 0150 89B2 uxth r1, r1 - 1685 0152 1980 strh r1, [r3] - 1686 .LBE15: - 1687 0154 90E7 b .L81 - 1688 .LVL113: - 1689 .L83: - ARM GAS /tmp/ccY9uCYJ.s page 46 - - - 810:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** PCD_CLEAR_TX_DTOG(hpcd->Instance, ep->num) - 1690 .loc 1 810 0 - 1691 0156 1A78 ldrb r2, [r3] - 1692 0158 9200 lsls r2, r2, #2 - 1693 015a 0168 ldr r1, [r0] - 1694 015c 8C46 mov ip, r1 - 1695 015e 6244 add r2, r2, ip - 1696 0160 1188 ldrh r1, [r2] - 1697 0162 4904 lsls r1, r1, #17 - 1698 0164 06D5 bpl .L86 - 810:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** PCD_CLEAR_TX_DTOG(hpcd->Instance, ep->num) - 1699 .loc 1 810 0 is_stmt 0 discriminator 1 - 1700 0166 1188 ldrh r1, [r2] - 1701 0168 1D4C ldr r4, .L90 - 1702 016a 0C40 ands r4, r1 - 1703 016c 2049 ldr r1, .L90+16 - 1704 016e 2143 orrs r1, r4 - 1705 0170 89B2 uxth r1, r1 - 1706 0172 1180 strh r1, [r2] - 1707 .L86: - 811:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** PCD_RX_DTOG(hpcd->Instance, ep->num); - 1708 .loc 1 811 0 is_stmt 1 - 1709 0174 1A78 ldrb r2, [r3] - 1710 0176 9200 lsls r2, r2, #2 - 1711 0178 0168 ldr r1, [r0] - 1712 017a 8C46 mov ip, r1 - 1713 017c 6244 add r2, r2, ip - 1714 017e 1188 ldrh r1, [r2] - 1715 0180 4906 lsls r1, r1, #25 - 1716 0182 06D5 bpl .L87 - 811:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** PCD_RX_DTOG(hpcd->Instance, ep->num); - 1717 .loc 1 811 0 is_stmt 0 discriminator 1 - 1718 0184 1188 ldrh r1, [r2] - 1719 0186 164C ldr r4, .L90 - 1720 0188 0C40 ands r4, r1 - 1721 018a 1649 ldr r1, .L90+4 - 1722 018c 2143 orrs r1, r4 - 1723 018e 89B2 uxth r1, r1 - 1724 0190 1180 strh r1, [r2] - 1725 .L87: - 812:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** /* Configure DISABLE status for the Endpoint*/ - 1726 .loc 1 812 0 is_stmt 1 - 1727 0192 1978 ldrb r1, [r3] - 1728 0194 8900 lsls r1, r1, #2 - 1729 0196 0268 ldr r2, [r0] - 1730 0198 9446 mov ip, r2 - 1731 019a 6144 add r1, r1, ip - 1732 019c 0A88 ldrh r2, [r1] - 1733 019e 104C ldr r4, .L90 - 1734 01a0 1440 ands r4, r2 - 1735 01a2 134A ldr r2, .L90+16 - 1736 01a4 2243 orrs r2, r4 - 1737 01a6 92B2 uxth r2, r2 - 1738 01a8 0A80 strh r2, [r1] - 1739 .LBB16: - 814:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** PCD_SET_EP_RX_STATUS(hpcd->Instance, ep->num, USB_EP_RX_DIS) - 1740 .loc 1 814 0 - ARM GAS /tmp/ccY9uCYJ.s page 47 - - - 1741 01aa 1C78 ldrb r4, [r3] - 1742 01ac A400 lsls r4, r4, #2 - 1743 01ae 0268 ldr r2, [r0] - 1744 01b0 9446 mov ip, r2 - 1745 01b2 6444 add r4, r4, ip - 1746 01b4 2288 ldrh r2, [r4] - 1747 01b6 0C49 ldr r1, .L90+8 - 1748 01b8 0A40 ands r2, r1 - 1749 .LVL114: - 1750 01ba 0C49 ldr r1, .L90+12 - 1751 01bc 0A43 orrs r2, r1 - 1752 .LVL115: - 1753 01be 92B2 uxth r2, r2 - 1754 01c0 2280 strh r2, [r4] - 1755 .LBE16: - 1756 .LBB17: - 815:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** } - 1757 .loc 1 815 0 - 1758 01c2 1B78 ldrb r3, [r3] - 1759 .LVL116: - 1760 01c4 9B00 lsls r3, r3, #2 - 1761 01c6 0268 ldr r2, [r0] - 1762 01c8 9446 mov ip, r2 - 1763 01ca 6344 add r3, r3, ip - 1764 01cc 1A88 ldrh r2, [r3] - 1765 01ce 094C ldr r4, .L90+20 - 1766 01d0 2240 ands r2, r4 - 1767 .LVL117: - 1768 01d2 1143 orrs r1, r2 - 1769 01d4 89B2 uxth r1, r1 - 1770 01d6 1980 strh r1, [r3] - 1771 01d8 4EE7 b .L81 - 1772 .LVL118: - 1773 .L88: - 1774 .LBE17: - 775:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** - 1775 .loc 1 775 0 - 1776 01da 0220 movs r0, #2 - 1777 .LVL119: - 1778 01dc 51E7 b .L77 - 1779 .L91: - 1780 01de C046 .align 2 - 1781 .L90: - 1782 01e0 0F0F0000 .word 3855 - 1783 01e4 C080FFFF .word -32576 - 1784 01e8 BF8FFFFF .word -28737 - 1785 01ec 8080FFFF .word -32640 - 1786 01f0 80C0FFFF .word -16256 - 1787 01f4 8FBFFFFF .word -16497 - 1788 .cfi_endproc - 1789 .LFE59: - 1791 .section .text.HAL_PCD_EP_Receive,"ax",%progbits - 1792 .align 1 - 1793 .global HAL_PCD_EP_Receive - 1794 .syntax unified - 1795 .code 16 - 1796 .thumb_func - ARM GAS /tmp/ccY9uCYJ.s page 48 - - - 1797 .fpu softvfp - 1799 HAL_PCD_EP_Receive: - 1800 .LFB60: - 822:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** - 823:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** - 824:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** /** - 825:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** * @brief Receive an amount of data - 826:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** * @param hpcd PCD handle - 827:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** * @param ep_addr endpoint address - 828:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** * @param pBuf pointer to the reception buffer - 829:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** * @param len amount of data to be received - 830:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** * @retval HAL status - 831:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** */ - 832:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** HAL_StatusTypeDef HAL_PCD_EP_Receive(PCD_HandleTypeDef *hpcd, uint8_t ep_addr, uint8_t *pBuf, uint3 - 833:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** { - 1801 .loc 1 833 0 - 1802 .cfi_startproc - 1803 @ args = 0, pretend = 0, frame = 0 - 1804 @ frame_needed = 0, uses_anonymous_args = 0 - 1805 .LVL120: - 1806 0000 70B5 push {r4, r5, r6, lr} - 1807 .LCFI7: - 1808 .cfi_def_cfa_offset 16 - 1809 .cfi_offset 4, -16 - 1810 .cfi_offset 5, -12 - 1811 .cfi_offset 6, -8 - 1812 .cfi_offset 14, -4 - 1813 0002 7F24 movs r4, #127 - 1814 0004 2140 ands r1, r4 - 1815 .LVL121: - 834:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** - 835:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** PCD_EPTypeDef *ep; - 836:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** - 837:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** ep = &hpcd->OUT_ep[ep_addr & 0x7FU]; - 838:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** - 839:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** /*setup and start the Xfer */ - 840:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** ep->xfer_buff = pBuf; - 1816 .loc 1 840 0 - 1817 0006 CD00 lsls r5, r1, #3 - 1818 0008 6D1A subs r5, r5, r1 - 1819 000a AC00 lsls r4, r5, #2 - 1820 000c 0419 adds r4, r0, r4 - 1821 000e 2500 movs r5, r4 - 1822 0010 1935 adds r5, r5, #25 - 1823 0012 FF35 adds r5, r5, #255 - 1824 0014 2A60 str r2, [r5] - 841:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** ep->xfer_len = len; - 1825 .loc 1 841 0 - 1826 0016 2200 movs r2, r4 - 1827 .LVL122: - 1828 0018 1D32 adds r2, r2, #29 - 1829 001a FF32 adds r2, r2, #255 - 1830 001c 1360 str r3, [r2] - 842:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** ep->xfer_count = 0U; - 1831 .loc 1 842 0 - 1832 001e 0835 adds r5, r5, #8 - 1833 .LVL123: - ARM GAS /tmp/ccY9uCYJ.s page 49 - - - 1834 0020 0022 movs r2, #0 - 1835 0022 2A60 str r2, [r5] - 843:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** ep->is_in = 0U; - 1836 .loc 1 843 0 - 1837 0024 173D subs r5, r5, #23 - 1838 .LVL124: - 1839 0026 2A70 strb r2, [r5] - 844:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** ep->num = ep_addr & 0x7FU; - 1840 .loc 1 844 0 - 1841 0028 2200 movs r2, r4 - 1842 002a 0932 adds r2, r2, #9 - 1843 002c FF32 adds r2, r2, #255 - 1844 002e 1170 strb r1, [r2] - 845:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** - 846:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** /* Multi packet transfer*/ - 847:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** if (ep->xfer_len > ep->maxpacket) - 1845 .loc 1 847 0 - 1846 0030 1534 adds r4, r4, #21 - 1847 0032 FF34 adds r4, r4, #255 - 1848 0034 2268 ldr r2, [r4] - 1849 0036 9342 cmp r3, r2 - 1850 0038 41D9 bls .L93 - 1851 .LVL125: - 848:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** { - 849:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** len=ep->maxpacket; - 850:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** ep->xfer_len-=len; - 1852 .loc 1 850 0 - 1853 003a CD00 lsls r5, r1, #3 - 1854 .LVL126: - 1855 003c 6D1A subs r5, r5, r1 - 1856 003e AC00 lsls r4, r5, #2 - 1857 .LVL127: - 1858 0040 0419 adds r4, r0, r4 - 1859 .LVL128: - 1860 0042 1D34 adds r4, r4, #29 - 1861 .LVL129: - 1862 0044 FF34 adds r4, r4, #255 - 1863 .LVL130: - 1864 0046 9B1A subs r3, r3, r2 - 1865 0048 2360 str r3, [r4] - 1866 .LVL131: - 1867 .L94: - 851:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** } - 852:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** else - 853:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** { - 854:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** len=ep->xfer_len; - 855:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** ep->xfer_len =0U; - 856:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** } - 857:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** - 858:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** /* configure and validate Rx endpoint */ - 859:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** if (ep->doublebuffer == 0) - 1868 .loc 1 859 0 - 1869 004a CC00 lsls r4, r1, #3 - 1870 004c 641A subs r4, r4, r1 - 1871 004e A300 lsls r3, r4, #2 - 1872 0050 1C00 movs r4, r3 - 1873 0052 C318 adds r3, r0, r3 - ARM GAS /tmp/ccY9uCYJ.s page 50 - - - 1874 0054 1333 adds r3, r3, #19 - 1875 0056 FF33 adds r3, r3, #255 - 1876 0058 1B78 ldrb r3, [r3] - 1877 005a 002B cmp r3, #0 - 1878 005c 42D1 bne .L95 - 1879 .LBB18: - 860:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** { - 861:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** /*Set RX buffer count*/ - 862:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** PCD_SET_EP_RX_CNT(hpcd->Instance, ep->num, len) - 1880 .loc 1 862 0 - 1881 005e 0568 ldr r5, [r0] - 1882 0060 5033 adds r3, r3, #80 - 1883 0062 EB5A ldrh r3, [r5, r3] - 1884 0064 0419 adds r4, r0, r4 - 1885 0066 0934 adds r4, r4, #9 - 1886 0068 FF34 adds r4, r4, #255 - 1887 006a 2478 ldrb r4, [r4] - 1888 006c E400 lsls r4, r4, #3 - 1889 006e 1B19 adds r3, r3, r4 - 1890 0070 5B19 adds r3, r3, r5 - 1891 0072 5F4C ldr r4, .L110 - 1892 0074 A446 mov ip, r4 - 1893 0076 6344 add r3, r3, ip - 1894 .LVL132: - 1895 .LBB19: - 1896 0078 3E2A cmp r2, #62 - 1897 007a 2AD9 bls .L96 - 1898 .loc 1 862 0 is_stmt 0 discriminator 1 - 1899 007c 5409 lsrs r4, r2, #5 - 1900 007e A4B2 uxth r4, r4 - 1901 .LVL133: - 1902 0080 D206 lsls r2, r2, #27 - 1903 0082 01D1 bne .L97 - 1904 .LVL134: - 1905 .loc 1 862 0 discriminator 3 - 1906 0084 013C subs r4, r4, #1 - 1907 .LVL135: - 1908 0086 A4B2 uxth r4, r4 - 1909 .LVL136: - 1910 .L97: - 1911 .loc 1 862 0 discriminator 5 - 1912 0088 A402 lsls r4, r4, #10 - 1913 .LVL137: - 1914 008a A4B2 uxth r4, r4 - 1915 008c 594A ldr r2, .L110+4 - 1916 008e 1443 orrs r4, r2 - 1917 0090 1C80 strh r4, [r3] - 1918 .LVL138: - 1919 .L98: - 1920 .LBE19: - 1921 .LBE18: - 1922 .LBB21: - 863:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** } - 864:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** else - 865:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** { - 866:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** /*Set the Double buffer counter*/ - 867:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** PCD_SET_EP_DBUF_CNT(hpcd->Instance, ep->num, ep->is_in, len) - ARM GAS /tmp/ccY9uCYJ.s page 51 - - - 868:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** } - 869:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** - 870:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** PCD_SET_EP_RX_STATUS(hpcd->Instance, ep->num, USB_EP_RX_VALID) - 1923 .loc 1 870 0 is_stmt 1 - 1924 0092 0268 ldr r2, [r0] - 1925 0094 CB00 lsls r3, r1, #3 - 1926 0096 591A subs r1, r3, r1 - 1927 .LVL139: - 1928 0098 8B00 lsls r3, r1, #2 - 1929 009a C018 adds r0, r0, r3 - 1930 .LVL140: - 1931 009c 0930 adds r0, r0, #9 - 1932 009e FF30 adds r0, r0, #255 - 1933 00a0 0378 ldrb r3, [r0] - 1934 00a2 9B00 lsls r3, r3, #2 - 1935 00a4 D218 adds r2, r2, r3 - 1936 00a6 1188 ldrh r1, [r2] - 1937 00a8 534B ldr r3, .L110+8 - 1938 00aa 1940 ands r1, r3 - 1939 .LVL141: - 1940 00ac C023 movs r3, #192 - 1941 00ae 9B01 lsls r3, r3, #6 - 1942 00b0 5940 eors r1, r3 - 1943 .LVL142: - 1944 00b2 524B ldr r3, .L110+12 - 1945 00b4 0B43 orrs r3, r1 - 1946 00b6 9BB2 uxth r3, r3 - 1947 00b8 1380 strh r3, [r2] - 1948 .LBE21: - 871:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** - 872:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** return HAL_OK; - 873:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** } - 1949 .loc 1 873 0 - 1950 00ba 0020 movs r0, #0 - 1951 @ sp needed - 1952 00bc 70BD pop {r4, r5, r6, pc} - 1953 .LVL143: - 1954 .L93: - 855:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** } - 1955 .loc 1 855 0 - 1956 00be CC00 lsls r4, r1, #3 - 1957 00c0 641A subs r4, r4, r1 - 1958 00c2 A200 lsls r2, r4, #2 - 1959 00c4 8218 adds r2, r0, r2 - 1960 00c6 1D32 adds r2, r2, #29 - 1961 00c8 FF32 adds r2, r2, #255 - 1962 00ca 0024 movs r4, #0 - 1963 00cc 1460 str r4, [r2] - 1964 .LVL144: - 854:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** ep->xfer_len =0U; - 1965 .loc 1 854 0 - 1966 00ce 1A00 movs r2, r3 - 1967 00d0 BBE7 b .L94 - 1968 .LVL145: - 1969 .L96: - 1970 .LBB22: - 1971 .LBB20: - ARM GAS /tmp/ccY9uCYJ.s page 52 - - - 862:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** } - 1972 .loc 1 862 0 discriminator 2 - 1973 00d2 5408 lsrs r4, r2, #1 - 1974 00d4 A4B2 uxth r4, r4 - 1975 .LVL146: - 1976 00d6 D207 lsls r2, r2, #31 - 1977 00d8 01D5 bpl .L99 - 1978 .LVL147: - 862:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** } - 1979 .loc 1 862 0 is_stmt 0 discriminator 6 - 1980 00da 0134 adds r4, r4, #1 - 1981 .LVL148: - 1982 00dc A4B2 uxth r4, r4 - 1983 .LVL149: - 1984 .L99: - 862:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** } - 1985 .loc 1 862 0 discriminator 8 - 1986 00de A402 lsls r4, r4, #10 - 1987 .LVL150: - 1988 00e0 1C80 strh r4, [r3] - 1989 00e2 D6E7 b .L98 - 1990 .LVL151: - 1991 .L95: - 1992 .LBE20: - 1993 .LBE22: - 867:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** } - 1994 .loc 1 867 0 is_stmt 1 - 1995 00e4 CC00 lsls r4, r1, #3 - 1996 00e6 641A subs r4, r4, r1 - 1997 00e8 A300 lsls r3, r4, #2 - 1998 00ea 1C00 movs r4, r3 - 1999 00ec C318 adds r3, r0, r3 - 2000 00ee 0A33 adds r3, r3, #10 - 2001 00f0 FF33 adds r3, r3, #255 - 2002 00f2 1B78 ldrb r3, [r3] - 2003 00f4 002B cmp r3, #0 - 2004 00f6 23D1 bne .L100 - 2005 .LBB23: - 867:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** } - 2006 .loc 1 867 0 is_stmt 0 discriminator 1 - 2007 00f8 0568 ldr r5, [r0] - 2008 00fa 5033 adds r3, r3, #80 - 2009 00fc EB5A ldrh r3, [r5, r3] - 2010 00fe 0419 adds r4, r0, r4 - 2011 0100 0934 adds r4, r4, #9 - 2012 0102 FF34 adds r4, r4, #255 - 2013 0104 2478 ldrb r4, [r4] - 2014 0106 E400 lsls r4, r4, #3 - 2015 0108 1B19 adds r3, r3, r4 - 2016 010a 5B19 adds r3, r3, r5 - 2017 010c 3C4C ldr r4, .L110+16 - 2018 010e A446 mov ip, r4 - 2019 0110 6344 add r3, r3, ip - 2020 .LVL152: - 2021 .LBB24: - 2022 0112 3E2A cmp r2, #62 - 2023 0114 0BD9 bls .L101 - ARM GAS /tmp/ccY9uCYJ.s page 53 - - - 867:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** } - 2024 .loc 1 867 0 discriminator 3 - 2025 0116 5409 lsrs r4, r2, #5 - 2026 0118 A4B2 uxth r4, r4 - 2027 .LVL153: - 2028 011a D506 lsls r5, r2, #27 - 2029 011c 01D1 bne .L102 - 867:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** } - 2030 .loc 1 867 0 discriminator 5 - 2031 011e 013C subs r4, r4, #1 - 2032 .LVL154: - 2033 0120 A4B2 uxth r4, r4 - 2034 .LVL155: - 2035 .L102: - 867:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** } - 2036 .loc 1 867 0 discriminator 7 - 2037 0122 A402 lsls r4, r4, #10 - 2038 .LVL156: - 2039 0124 A4B2 uxth r4, r4 - 2040 0126 334D ldr r5, .L110+4 - 2041 0128 2C43 orrs r4, r5 - 2042 012a 1C80 strh r4, [r3] - 2043 012c 0AE0 b .L103 - 2044 .L101: - 867:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** } - 2045 .loc 1 867 0 discriminator 4 - 2046 012e 5408 lsrs r4, r2, #1 - 2047 0130 A4B2 uxth r4, r4 - 2048 .LVL157: - 2049 0132 D507 lsls r5, r2, #31 - 2050 0134 01D5 bpl .L104 - 867:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** } - 2051 .loc 1 867 0 discriminator 8 - 2052 0136 0134 adds r4, r4, #1 - 2053 .LVL158: - 2054 0138 A4B2 uxth r4, r4 - 2055 .LVL159: - 2056 .L104: - 867:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** } - 2057 .loc 1 867 0 discriminator 10 - 2058 013a A402 lsls r4, r4, #10 - 2059 .LVL160: - 2060 013c 1C80 strh r4, [r3] - 2061 013e 01E0 b .L103 - 2062 .LVL161: - 2063 .L100: - 2064 .LBE24: - 2065 .LBE23: - 867:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** } - 2066 .loc 1 867 0 discriminator 2 - 2067 0140 012B cmp r3, #1 - 2068 0142 24D0 beq .L109 - 2069 .L103: - 867:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** } - 2070 .loc 1 867 0 discriminator 13 - 2071 0144 CC00 lsls r4, r1, #3 - 2072 0146 641A subs r4, r4, r1 - ARM GAS /tmp/ccY9uCYJ.s page 54 - - - 2073 0148 A300 lsls r3, r4, #2 - 2074 014a 1C00 movs r4, r3 - 2075 014c C318 adds r3, r0, r3 - 2076 014e 0A33 adds r3, r3, #10 - 2077 0150 FF33 adds r3, r3, #255 - 2078 0152 1B78 ldrb r3, [r3] - 2079 0154 002B cmp r3, #0 - 2080 0156 35D1 bne .L105 - 2081 .LBB25: - 867:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** } - 2082 .loc 1 867 0 discriminator 14 - 2083 0158 0568 ldr r5, [r0] - 2084 015a 5033 adds r3, r3, #80 - 2085 015c EB5A ldrh r3, [r5, r3] - 2086 015e 0419 adds r4, r0, r4 - 2087 0160 0934 adds r4, r4, #9 - 2088 0162 FF34 adds r4, r4, #255 - 2089 0164 2478 ldrb r4, [r4] - 2090 0166 E400 lsls r4, r4, #3 - 2091 0168 1B19 adds r3, r3, r4 - 2092 016a 5B19 adds r3, r3, r5 - 2093 016c 204C ldr r4, .L110 - 2094 016e A446 mov ip, r4 - 2095 0170 6344 add r3, r3, ip - 2096 .LVL162: - 2097 .LBB26: - 2098 0172 3E2A cmp r2, #62 - 2099 0174 1DD9 bls .L106 - 867:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** } - 2100 .loc 1 867 0 discriminator 16 - 2101 0176 5409 lsrs r4, r2, #5 - 2102 0178 A4B2 uxth r4, r4 - 2103 .LVL163: - 2104 017a D206 lsls r2, r2, #27 - 2105 017c 01D1 bne .L107 - 2106 .LVL164: - 867:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** } - 2107 .loc 1 867 0 discriminator 18 - 2108 017e 013C subs r4, r4, #1 - 2109 .LVL165: - 2110 0180 A4B2 uxth r4, r4 - 2111 .LVL166: - 2112 .L107: - 867:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** } - 2113 .loc 1 867 0 discriminator 20 - 2114 0182 A402 lsls r4, r4, #10 - 2115 .LVL167: - 2116 0184 A4B2 uxth r4, r4 - 2117 0186 1B4A ldr r2, .L110+4 - 2118 0188 1443 orrs r4, r2 - 2119 018a 1C80 strh r4, [r3] - 2120 018c 81E7 b .L98 - 2121 .LVL168: - 2122 .L109: - 2123 .LBE26: - 2124 .LBE25: - 867:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** } - ARM GAS /tmp/ccY9uCYJ.s page 55 - - - 2125 .loc 1 867 0 discriminator 11 - 2126 018e 0568 ldr r5, [r0] - 2127 0190 4F33 adds r3, r3, #79 - 2128 0192 EB5A ldrh r3, [r5, r3] - 2129 0194 CE00 lsls r6, r1, #3 - 2130 0196 761A subs r6, r6, r1 - 2131 0198 B400 lsls r4, r6, #2 - 2132 019a 0419 adds r4, r0, r4 - 2133 019c 0934 adds r4, r4, #9 - 2134 019e FF34 adds r4, r4, #255 - 2135 01a0 2478 ldrb r4, [r4] - 2136 01a2 E400 lsls r4, r4, #3 - 2137 01a4 1B19 adds r3, r3, r4 - 2138 01a6 5B19 adds r3, r3, r5 - 2139 01a8 154C ldr r4, .L110+16 - 2140 01aa A446 mov ip, r4 - 2141 01ac 6344 add r3, r3, ip - 2142 01ae 1A80 strh r2, [r3] - 2143 01b0 C8E7 b .L103 - 2144 .LVL169: - 2145 .L106: - 2146 .LBB28: - 2147 .LBB27: - 867:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** } - 2148 .loc 1 867 0 discriminator 17 - 2149 01b2 5408 lsrs r4, r2, #1 - 2150 01b4 A4B2 uxth r4, r4 - 2151 .LVL170: - 2152 01b6 D207 lsls r2, r2, #31 - 2153 01b8 01D5 bpl .L108 - 2154 .LVL171: - 867:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** } - 2155 .loc 1 867 0 discriminator 21 - 2156 01ba 0134 adds r4, r4, #1 - 2157 .LVL172: - 2158 01bc A4B2 uxth r4, r4 - 2159 .LVL173: - 2160 .L108: - 867:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** } - 2161 .loc 1 867 0 discriminator 23 - 2162 01be A402 lsls r4, r4, #10 - 2163 .LVL174: - 2164 01c0 1C80 strh r4, [r3] - 2165 01c2 66E7 b .L98 - 2166 .LVL175: - 2167 .L105: - 2168 .LBE27: - 2169 .LBE28: - 867:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** } - 2170 .loc 1 867 0 discriminator 15 - 2171 01c4 012B cmp r3, #1 - 2172 01c6 00D0 beq .LCB2227 - 2173 01c8 63E7 b .L98 @long jump - 2174 .LCB2227: - 867:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** } - 2175 .loc 1 867 0 discriminator 24 - 2176 01ca 0568 ldr r5, [r0] - ARM GAS /tmp/ccY9uCYJ.s page 56 - - - 2177 01cc 4F33 adds r3, r3, #79 - 2178 01ce EB5A ldrh r3, [r5, r3] - 2179 01d0 CE00 lsls r6, r1, #3 - 2180 01d2 761A subs r6, r6, r1 - 2181 01d4 B400 lsls r4, r6, #2 - 2182 01d6 0419 adds r4, r0, r4 - 2183 01d8 0934 adds r4, r4, #9 - 2184 01da FF34 adds r4, r4, #255 - 2185 01dc 2478 ldrb r4, [r4] - 2186 01de E400 lsls r4, r4, #3 - 2187 01e0 1B19 adds r3, r3, r4 - 2188 01e2 5B19 adds r3, r3, r5 - 2189 01e4 024C ldr r4, .L110 - 2190 01e6 A446 mov ip, r4 - 2191 01e8 6344 add r3, r3, ip - 2192 01ea 1A80 strh r2, [r3] - 2193 01ec 51E7 b .L98 - 2194 .L111: - 2195 01ee C046 .align 2 - 2196 .L110: - 2197 01f0 06040000 .word 1030 - 2198 01f4 0080FFFF .word -32768 - 2199 01f8 8FBFFFFF .word -16497 - 2200 01fc 8080FFFF .word -32640 - 2201 0200 02040000 .word 1026 - 2202 .cfi_endproc - 2203 .LFE60: - 2205 .section .text.HAL_PCD_EP_GetRxCount,"ax",%progbits - 2206 .align 1 - 2207 .global HAL_PCD_EP_GetRxCount - 2208 .syntax unified - 2209 .code 16 - 2210 .thumb_func - 2211 .fpu softvfp - 2213 HAL_PCD_EP_GetRxCount: - 2214 .LFB61: - 874:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** - 875:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** /** - 876:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** * @brief Get Received Data Size - 877:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** * @param hpcd PCD handle - 878:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** * @param ep_addr endpoint address - 879:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** * @retval Data Size - 880:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** */ - 881:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** uint16_t HAL_PCD_EP_GetRxCount(PCD_HandleTypeDef *hpcd, uint8_t ep_addr) - 882:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** { - 2215 .loc 1 882 0 is_stmt 1 - 2216 .cfi_startproc - 2217 @ args = 0, pretend = 0, frame = 0 - 2218 @ frame_needed = 0, uses_anonymous_args = 0 - 2219 @ link register save eliminated. - 2220 .LVL176: - 883:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** return hpcd->OUT_ep[ep_addr & 0x7FU].xfer_count; - 2221 .loc 1 883 0 - 2222 0000 7F23 movs r3, #127 - 2223 0002 1940 ands r1, r3 - 2224 .LVL177: - 2225 0004 CB00 lsls r3, r1, #3 - ARM GAS /tmp/ccY9uCYJ.s page 57 - - - 2226 0006 591A subs r1, r3, r1 - 2227 0008 8B00 lsls r3, r1, #2 - 2228 000a C018 adds r0, r0, r3 - 2229 .LVL178: - 2230 000c 2130 adds r0, r0, #33 - 2231 000e FF30 adds r0, r0, #255 - 2232 0010 0088 ldrh r0, [r0] - 884:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** } - 2233 .loc 1 884 0 - 2234 @ sp needed - 2235 0012 7047 bx lr - 2236 .cfi_endproc - 2237 .LFE61: - 2239 .section .text.HAL_PCD_EP_SetStall,"ax",%progbits - 2240 .align 1 - 2241 .global HAL_PCD_EP_SetStall - 2242 .syntax unified - 2243 .code 16 - 2244 .thumb_func - 2245 .fpu softvfp - 2247 HAL_PCD_EP_SetStall: - 2248 .LFB63: - 885:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** /** - 886:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** * @brief Send an amount of data - 887:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** * @param hpcd PCD handle - 888:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** * @param ep_addr endpoint address - 889:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** * @param pBuf pointer to the transmission buffer - 890:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** * @param len amount of data to be sent - 891:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** * @retval HAL status - 892:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** */ - 893:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** HAL_StatusTypeDef HAL_PCD_EP_Transmit(PCD_HandleTypeDef *hpcd, uint8_t ep_addr, uint8_t *pBuf, uint - 894:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** { - 895:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** PCD_EPTypeDef *ep; - 896:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** uint16_t pmabuffer = 0U; - 897:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** - 898:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** ep = &hpcd->IN_ep[ep_addr & 0x7FU]; - 899:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** - 900:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** /*setup and start the Xfer */ - 901:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** ep->xfer_buff = pBuf; - 902:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** ep->xfer_len = len; - 903:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** ep->xfer_count = 0U; - 904:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** ep->is_in = 1U; - 905:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** ep->num = ep_addr & 0x7FU; - 906:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** - 907:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** /*Multi packet transfer*/ - 908:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** if (ep->xfer_len > ep->maxpacket) - 909:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** { - 910:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** len=ep->maxpacket; - 911:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** ep->xfer_len-=len; - 912:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** } - 913:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** else - 914:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** { - 915:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** len=ep->xfer_len; - 916:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** ep->xfer_len =0U; - 917:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** } - 918:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** - 919:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** /* configure and validate Tx endpoint */ - ARM GAS /tmp/ccY9uCYJ.s page 58 - - - 920:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** if (ep->doublebuffer == 0U) - 921:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** { - 922:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** PCD_WritePMA(hpcd->Instance, ep->xfer_buff, ep->pmaadress, len); - 923:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** PCD_SET_EP_TX_CNT(hpcd->Instance, ep->num, len); - 924:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** } - 925:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** else - 926:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** { - 927:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** /*Write the data to the USB endpoint*/ - 928:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** if ((PCD_GET_ENDPOINT(hpcd->Instance, ep->num)& USB_EP_DTOG_TX) == USB_EP_DTOG_TX) - 929:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** { - 930:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** /*Set the Double buffer counter for pmabuffer1*/ - 931:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** PCD_SET_EP_DBUF1_CNT(hpcd->Instance, ep->num, ep->is_in, len) - 932:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** pmabuffer = ep->pmaaddr1; - 933:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** } - 934:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** else - 935:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** { - 936:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** /*Set the Double buffer counter for pmabuffer0*/ - 937:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** PCD_SET_EP_DBUF0_CNT(hpcd->Instance, ep->num, ep->is_in, len) - 938:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** pmabuffer = ep->pmaaddr0; - 939:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** } - 940:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** - 941:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** PCD_WritePMA(hpcd->Instance, ep->xfer_buff, pmabuffer, len); - 942:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** PCD_FreeUserBuffer(hpcd->Instance, ep->num, ep->is_in) - 943:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** } - 944:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** - 945:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** PCD_SET_EP_TX_STATUS(hpcd->Instance, ep->num, USB_EP_TX_VALID) - 946:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** - 947:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** return HAL_OK; - 948:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** } - 949:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** - 950:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** /** - 951:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** * @brief Set a STALL condition over an endpoint - 952:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** * @param hpcd PCD handle - 953:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** * @param ep_addr endpoint address - 954:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** * @retval HAL status - 955:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** */ - 956:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** HAL_StatusTypeDef HAL_PCD_EP_SetStall(PCD_HandleTypeDef *hpcd, uint8_t ep_addr) - 957:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** { - 2249 .loc 1 957 0 - 2250 .cfi_startproc - 2251 @ args = 0, pretend = 0, frame = 0 - 2252 @ frame_needed = 0, uses_anonymous_args = 0 - 2253 .LVL179: - 2254 0000 10B5 push {r4, lr} - 2255 .LCFI8: - 2256 .cfi_def_cfa_offset 8 - 2257 .cfi_offset 4, -8 - 2258 .cfi_offset 14, -4 - 958:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** PCD_EPTypeDef *ep; - 959:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** - 960:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** __HAL_LOCK(hpcd); - 2259 .loc 1 960 0 - 2260 0002 F423 movs r3, #244 - 2261 0004 5B00 lsls r3, r3, #1 - 2262 0006 C35C ldrb r3, [r0, r3] - 2263 0008 012B cmp r3, #1 - 2264 000a 50D0 beq .L120 - ARM GAS /tmp/ccY9uCYJ.s page 59 - - - 2265 .loc 1 960 0 is_stmt 0 discriminator 2 - 2266 000c F423 movs r3, #244 - 2267 000e 5B00 lsls r3, r3, #1 - 2268 0010 0122 movs r2, #1 - 2269 0012 C254 strb r2, [r0, r3] - 961:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** - 962:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** if ((0x80U & ep_addr) == 0x80U) - 2270 .loc 1 962 0 is_stmt 1 discriminator 2 - 2271 0014 4CB2 sxtb r4, r1 - 2272 0016 002C cmp r4, #0 - 2273 0018 21DB blt .L121 - 963:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** { - 964:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** ep = &hpcd->IN_ep[ep_addr & 0x7FU]; - 965:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** } - 966:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** else - 967:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** { - 968:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** ep = &hpcd->OUT_ep[ep_addr]; - 2274 .loc 1 968 0 - 2275 001a CA00 lsls r2, r1, #3 - 2276 001c 521A subs r2, r2, r1 - 2277 001e 9300 lsls r3, r2, #2 - 2278 0020 0933 adds r3, r3, #9 - 2279 0022 FF33 adds r3, r3, #255 - 2280 0024 C318 adds r3, r0, r3 - 2281 .LVL180: - 2282 .L116: - 969:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** } - 970:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** - 971:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** ep->is_stall = 1; - 2283 .loc 1 971 0 - 2284 0026 0122 movs r2, #1 - 2285 0028 9A70 strb r2, [r3, #2] - 972:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** ep->num = ep_addr & 0x7FU; - 2286 .loc 1 972 0 - 2287 002a 7E32 adds r2, r2, #126 - 2288 002c 1140 ands r1, r2 - 2289 .LVL181: - 2290 002e 1970 strb r1, [r3] - 973:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** ep->is_in = ((ep_addr & 0x80U) == 0x80U); - 2291 .loc 1 973 0 - 2292 0030 E40F lsrs r4, r4, #31 - 2293 .LVL182: - 2294 0032 5C70 strb r4, [r3, #1] - 974:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** - 975:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** if (ep->num == 0U) - 2295 .loc 1 975 0 - 2296 0034 0029 cmp r1, #0 - 2297 0036 1BD1 bne .L117 - 2298 .LBB29: - 976:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** { - 977:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** /* This macro sets STALL status for RX & TX*/ - 978:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** PCD_SET_EP_TXRX_STATUS(hpcd->Instance, ep->num, USB_EP_RX_STALL, USB_EP_TX_STALL) - 2299 .loc 1 978 0 - 2300 0038 8900 lsls r1, r1, #2 - 2301 003a 0368 ldr r3, [r0] - 2302 .LVL183: - 2303 003c 9C46 mov ip, r3 - ARM GAS /tmp/ccY9uCYJ.s page 60 - - - 2304 003e 6144 add r1, r1, ip - 2305 0040 0A88 ldrh r2, [r1] - 2306 .LVL184: - 2307 0042 1C4B ldr r3, .L122 - 2308 0044 1A40 ands r2, r3 - 2309 .LVL185: - 2310 0046 1C4B ldr r3, .L122+4 - 2311 0048 5A40 eors r2, r3 - 2312 004a 1C4B ldr r3, .L122+8 - 2313 004c 1343 orrs r3, r2 - 2314 004e 9BB2 uxth r3, r3 - 2315 0050 0B80 strh r3, [r1] - 2316 .L118: - 2317 .LBE29: - 979:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** } - 980:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** else - 981:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** { - 982:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** if (ep->is_in) - 983:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** { - 984:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** PCD_SET_EP_TX_STATUS(hpcd->Instance, ep->num , USB_EP_TX_STALL) - 985:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** } - 986:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** else - 987:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** { - 988:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** PCD_SET_EP_RX_STATUS(hpcd->Instance, ep->num , USB_EP_RX_STALL) - 989:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** } - 990:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** } - 991:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** __HAL_UNLOCK(hpcd); - 2318 .loc 1 991 0 - 2319 0052 F423 movs r3, #244 - 2320 0054 5B00 lsls r3, r3, #1 - 2321 0056 0022 movs r2, #0 - 2322 0058 C254 strb r2, [r0, r3] - 992:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** - 993:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** return HAL_OK; - 2323 .loc 1 993 0 - 2324 005a 0020 movs r0, #0 - 2325 .LVL186: - 2326 .L114: - 994:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** } - 2327 .loc 1 994 0 - 2328 @ sp needed - 2329 005c 10BD pop {r4, pc} - 2330 .LVL187: - 2331 .L121: - 964:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** } - 2332 .loc 1 964 0 - 2333 005e 6A3B subs r3, r3, #106 - 2334 0060 FF3B subs r3, r3, #255 - 2335 0062 0B40 ands r3, r1 - 2336 0064 DA00 lsls r2, r3, #3 - 2337 0066 D21A subs r2, r2, r3 - 2338 0068 9300 lsls r3, r2, #2 - 2339 006a 2833 adds r3, r3, #40 - 2340 006c C318 adds r3, r0, r3 - 2341 .LVL188: - 2342 006e DAE7 b .L116 - 2343 .LVL189: - ARM GAS /tmp/ccY9uCYJ.s page 61 - - - 2344 .L117: - 982:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** { - 2345 .loc 1 982 0 - 2346 0070 002C cmp r4, #0 - 2347 0072 0DD0 beq .L119 - 2348 .LBB30: - 984:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** } - 2349 .loc 1 984 0 - 2350 0074 8900 lsls r1, r1, #2 - 2351 0076 0368 ldr r3, [r0] - 2352 .LVL190: - 2353 0078 9C46 mov ip, r3 - 2354 007a 6144 add r1, r1, ip - 2355 007c 0B88 ldrh r3, [r1] - 2356 007e 104A ldr r2, .L122+12 - 2357 0080 1340 ands r3, r2 - 2358 .LVL191: - 2359 0082 1022 movs r2, #16 - 2360 0084 5A40 eors r2, r3 - 2361 .LVL192: - 2362 0086 0D4B ldr r3, .L122+8 - 2363 0088 1343 orrs r3, r2 - 2364 008a 9BB2 uxth r3, r3 - 2365 008c 0B80 strh r3, [r1] - 2366 .LBE30: - 2367 008e E0E7 b .L118 - 2368 .LVL193: - 2369 .L119: - 2370 .LBB31: - 988:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** } - 2371 .loc 1 988 0 - 2372 0090 8900 lsls r1, r1, #2 - 2373 0092 0368 ldr r3, [r0] - 2374 .LVL194: - 2375 0094 9C46 mov ip, r3 - 2376 0096 6144 add r1, r1, ip - 2377 0098 0A88 ldrh r2, [r1] - 2378 009a 0A4B ldr r3, .L122+16 - 2379 009c 1A40 ands r2, r3 - 2380 .LVL195: - 2381 009e 8023 movs r3, #128 - 2382 00a0 5B01 lsls r3, r3, #5 - 2383 00a2 5A40 eors r2, r3 - 2384 .LVL196: - 2385 00a4 054B ldr r3, .L122+8 - 2386 00a6 1343 orrs r3, r2 - 2387 00a8 9BB2 uxth r3, r3 - 2388 00aa 0B80 strh r3, [r1] - 2389 00ac D1E7 b .L118 - 2390 .LVL197: - 2391 .L120: - 2392 .LBE31: - 960:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** - 2393 .loc 1 960 0 - 2394 00ae 0220 movs r0, #2 - 2395 .LVL198: - 2396 00b0 D4E7 b .L114 - ARM GAS /tmp/ccY9uCYJ.s page 62 - - - 2397 .L123: - 2398 00b2 C046 .align 2 - 2399 .L122: - 2400 00b4 BFBFFFFF .word -16449 - 2401 00b8 10100000 .word 4112 - 2402 00bc 8080FFFF .word -32640 - 2403 00c0 BF8FFFFF .word -28737 - 2404 00c4 8FBFFFFF .word -16497 - 2405 .cfi_endproc - 2406 .LFE63: - 2408 .section .text.HAL_PCD_EP_ClrStall,"ax",%progbits - 2409 .align 1 - 2410 .global HAL_PCD_EP_ClrStall - 2411 .syntax unified - 2412 .code 16 - 2413 .thumb_func - 2414 .fpu softvfp - 2416 HAL_PCD_EP_ClrStall: - 2417 .LFB64: - 995:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** - 996:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** /** - 997:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** * @brief Clear a STALL condition over in an endpoint - 998:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** * @param hpcd PCD handle - 999:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** * @param ep_addr endpoint address -1000:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** * @retval HAL status -1001:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** */ -1002:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** HAL_StatusTypeDef HAL_PCD_EP_ClrStall(PCD_HandleTypeDef *hpcd, uint8_t ep_addr) -1003:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** { - 2418 .loc 1 1003 0 - 2419 .cfi_startproc - 2420 @ args = 0, pretend = 0, frame = 0 - 2421 @ frame_needed = 0, uses_anonymous_args = 0 - 2422 .LVL199: - 2423 0000 10B5 push {r4, lr} - 2424 .LCFI9: - 2425 .cfi_def_cfa_offset 8 - 2426 .cfi_offset 4, -8 - 2427 .cfi_offset 14, -4 -1004:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** PCD_EPTypeDef *ep; -1005:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** -1006:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** if ((0x80U & ep_addr) == 0x80U) - 2428 .loc 1 1006 0 - 2429 0002 4AB2 sxtb r2, r1 - 2430 0004 002A cmp r2, #0 - 2431 0006 3BDB blt .L133 -1007:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** { -1008:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** ep = &hpcd->IN_ep[ep_addr & 0x7FU]; -1009:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** } -1010:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** else -1011:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** { -1012:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** ep = &hpcd->OUT_ep[ep_addr]; - 2432 .loc 1 1012 0 - 2433 0008 CC00 lsls r4, r1, #3 - 2434 000a 641A subs r4, r4, r1 - 2435 000c A300 lsls r3, r4, #2 - 2436 000e 0933 adds r3, r3, #9 - 2437 0010 FF33 adds r3, r3, #255 - ARM GAS /tmp/ccY9uCYJ.s page 63 - - - 2438 0012 C318 adds r3, r0, r3 - 2439 .LVL200: - 2440 .L126: -1013:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** } -1014:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** -1015:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** ep->is_stall = 0U; - 2441 .loc 1 1015 0 - 2442 0014 0024 movs r4, #0 - 2443 0016 9C70 strb r4, [r3, #2] -1016:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** ep->num = ep_addr & 0x7FU; - 2444 .loc 1 1016 0 - 2445 0018 7F34 adds r4, r4, #127 - 2446 001a 2140 ands r1, r4 - 2447 .LVL201: - 2448 001c 1970 strb r1, [r3] -1017:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** ep->is_in = ((ep_addr & 0x80U) == 0x80U); - 2449 .loc 1 1017 0 - 2450 001e D20F lsrs r2, r2, #31 - 2451 .LVL202: - 2452 0020 5A70 strb r2, [r3, #1] -1018:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** -1019:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** __HAL_LOCK(hpcd); - 2453 .loc 1 1019 0 - 2454 0022 F422 movs r2, #244 - 2455 0024 5200 lsls r2, r2, #1 - 2456 0026 825C ldrb r2, [r0, r2] - 2457 0028 012A cmp r2, #1 - 2458 002a 50D0 beq .L132 - 2459 .loc 1 1019 0 is_stmt 0 discriminator 2 - 2460 002c F422 movs r2, #244 - 2461 002e 5200 lsls r2, r2, #1 - 2462 0030 0121 movs r1, #1 - 2463 0032 8154 strb r1, [r0, r2] -1020:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** -1021:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** if (ep->is_in) - 2464 .loc 1 1021 0 is_stmt 1 discriminator 2 - 2465 0034 5A78 ldrb r2, [r3, #1] - 2466 0036 002A cmp r2, #0 - 2467 0038 2AD0 beq .L128 -1022:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** { -1023:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** PCD_CLEAR_TX_DTOG(hpcd->Instance, ep->num) - 2468 .loc 1 1023 0 - 2469 003a 1A78 ldrb r2, [r3] - 2470 003c 9200 lsls r2, r2, #2 - 2471 003e 0168 ldr r1, [r0] - 2472 0040 8C46 mov ip, r1 - 2473 0042 6244 add r2, r2, ip - 2474 0044 1188 ldrh r1, [r2] - 2475 0046 4906 lsls r1, r1, #25 - 2476 0048 06D5 bpl .L129 - 2477 .loc 1 1023 0 is_stmt 0 discriminator 1 - 2478 004a 1188 ldrh r1, [r2] - 2479 004c 214C ldr r4, .L134 - 2480 004e 0C40 ands r4, r1 - 2481 0050 2149 ldr r1, .L134+4 - 2482 0052 2143 orrs r1, r4 - 2483 0054 89B2 uxth r1, r1 - ARM GAS /tmp/ccY9uCYJ.s page 64 - - - 2484 0056 1180 strh r1, [r2] - 2485 .L129: - 2486 .LBB32: -1024:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** PCD_SET_EP_TX_STATUS(hpcd->Instance, ep->num, USB_EP_TX_VALID) - 2487 .loc 1 1024 0 is_stmt 1 - 2488 0058 1978 ldrb r1, [r3] - 2489 005a 8900 lsls r1, r1, #2 - 2490 005c 0368 ldr r3, [r0] - 2491 .LVL203: - 2492 005e 9C46 mov ip, r3 - 2493 0060 6144 add r1, r1, ip - 2494 0062 0B88 ldrh r3, [r1] - 2495 0064 1D4A ldr r2, .L134+8 - 2496 0066 1340 ands r3, r2 - 2497 .LVL204: - 2498 0068 3022 movs r2, #48 - 2499 006a 5A40 eors r2, r3 - 2500 .LVL205: - 2501 006c 1C4B ldr r3, .L134+12 - 2502 006e 1343 orrs r3, r2 - 2503 0070 9BB2 uxth r3, r3 - 2504 0072 0B80 strh r3, [r1] - 2505 .LVL206: - 2506 .L130: - 2507 .LBE32: -1025:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** } -1026:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** else -1027:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** { -1028:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** PCD_CLEAR_RX_DTOG(hpcd->Instance, ep->num) -1029:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** PCD_SET_EP_RX_STATUS(hpcd->Instance, ep->num, USB_EP_RX_VALID) -1030:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** } -1031:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** __HAL_UNLOCK(hpcd); - 2508 .loc 1 1031 0 - 2509 0074 F423 movs r3, #244 - 2510 0076 5B00 lsls r3, r3, #1 - 2511 0078 0022 movs r2, #0 - 2512 007a C254 strb r2, [r0, r3] -1032:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** -1033:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** return HAL_OK; - 2513 .loc 1 1033 0 - 2514 007c 0020 movs r0, #0 - 2515 .LVL207: - 2516 .L127: -1034:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** } - 2517 .loc 1 1034 0 - 2518 @ sp needed - 2519 007e 10BD pop {r4, pc} - 2520 .LVL208: - 2521 .L133: -1008:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** } - 2522 .loc 1 1008 0 - 2523 0080 7F23 movs r3, #127 - 2524 0082 0B40 ands r3, r1 - 2525 0084 DC00 lsls r4, r3, #3 - 2526 0086 E41A subs r4, r4, r3 - 2527 0088 A300 lsls r3, r4, #2 - 2528 008a 2833 adds r3, r3, #40 - ARM GAS /tmp/ccY9uCYJ.s page 65 - - - 2529 008c C318 adds r3, r0, r3 - 2530 .LVL209: - 2531 008e C1E7 b .L126 - 2532 .LVL210: - 2533 .L128: -1028:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** PCD_SET_EP_RX_STATUS(hpcd->Instance, ep->num, USB_EP_RX_VALID) - 2534 .loc 1 1028 0 - 2535 0090 1A78 ldrb r2, [r3] - 2536 0092 9200 lsls r2, r2, #2 - 2537 0094 0168 ldr r1, [r0] - 2538 0096 8C46 mov ip, r1 - 2539 0098 6244 add r2, r2, ip - 2540 009a 1188 ldrh r1, [r2] - 2541 009c 4904 lsls r1, r1, #17 - 2542 009e 06D5 bpl .L131 -1028:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** PCD_SET_EP_RX_STATUS(hpcd->Instance, ep->num, USB_EP_RX_VALID) - 2543 .loc 1 1028 0 is_stmt 0 discriminator 1 - 2544 00a0 1188 ldrh r1, [r2] - 2545 00a2 0C4C ldr r4, .L134 - 2546 00a4 0C40 ands r4, r1 - 2547 00a6 0F49 ldr r1, .L134+16 - 2548 00a8 2143 orrs r1, r4 - 2549 00aa 89B2 uxth r1, r1 - 2550 00ac 1180 strh r1, [r2] - 2551 .L131: - 2552 .LBB33: -1029:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** } - 2553 .loc 1 1029 0 is_stmt 1 - 2554 00ae 1A78 ldrb r2, [r3] - 2555 00b0 9200 lsls r2, r2, #2 - 2556 00b2 0368 ldr r3, [r0] - 2557 .LVL211: - 2558 00b4 9C46 mov ip, r3 - 2559 00b6 6244 add r2, r2, ip - 2560 00b8 1188 ldrh r1, [r2] - 2561 00ba 0B4B ldr r3, .L134+20 - 2562 00bc 1940 ands r1, r3 - 2563 .LVL212: - 2564 00be C023 movs r3, #192 - 2565 00c0 9B01 lsls r3, r3, #6 - 2566 00c2 5940 eors r1, r3 - 2567 .LVL213: - 2568 00c4 064B ldr r3, .L134+12 - 2569 00c6 0B43 orrs r3, r1 - 2570 00c8 9BB2 uxth r3, r3 - 2571 00ca 1380 strh r3, [r2] - 2572 00cc D2E7 b .L130 - 2573 .LVL214: - 2574 .L132: - 2575 .LBE33: -1019:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** - 2576 .loc 1 1019 0 - 2577 00ce 0220 movs r0, #2 - 2578 .LVL215: - 2579 00d0 D5E7 b .L127 - 2580 .L135: - 2581 00d2 C046 .align 2 - ARM GAS /tmp/ccY9uCYJ.s page 66 - - - 2582 .L134: - 2583 00d4 0F0F0000 .word 3855 - 2584 00d8 C080FFFF .word -32576 - 2585 00dc BF8FFFFF .word -28737 - 2586 00e0 8080FFFF .word -32640 - 2587 00e4 80C0FFFF .word -16256 - 2588 00e8 8FBFFFFF .word -16497 - 2589 .cfi_endproc - 2590 .LFE64: - 2592 .section .text.HAL_PCD_EP_Flush,"ax",%progbits - 2593 .align 1 - 2594 .global HAL_PCD_EP_Flush - 2595 .syntax unified - 2596 .code 16 - 2597 .thumb_func - 2598 .fpu softvfp - 2600 HAL_PCD_EP_Flush: - 2601 .LFB65: -1035:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** -1036:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** /** -1037:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** * @brief Flush an endpoint -1038:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** * @param hpcd PCD handle -1039:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** * @param ep_addr endpoint address -1040:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** * @retval HAL status -1041:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** */ -1042:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** HAL_StatusTypeDef HAL_PCD_EP_Flush(PCD_HandleTypeDef *hpcd, uint8_t ep_addr) -1043:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** { - 2602 .loc 1 1043 0 - 2603 .cfi_startproc - 2604 @ args = 0, pretend = 0, frame = 0 - 2605 @ frame_needed = 0, uses_anonymous_args = 0 - 2606 @ link register save eliminated. - 2607 .LVL216: -1044:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** return HAL_OK; -1045:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** } - 2608 .loc 1 1045 0 - 2609 0000 0020 movs r0, #0 - 2610 .LVL217: - 2611 @ sp needed - 2612 0002 7047 bx lr - 2613 .cfi_endproc - 2614 .LFE65: - 2616 .section .text.HAL_PCD_ActivateRemoteWakeup,"ax",%progbits - 2617 .align 1 - 2618 .global HAL_PCD_ActivateRemoteWakeup - 2619 .syntax unified - 2620 .code 16 - 2621 .thumb_func - 2622 .fpu softvfp - 2624 HAL_PCD_ActivateRemoteWakeup: - 2625 .LFB66: -1046:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** -1047:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** /** -1048:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** * @brief HAL_PCD_ActivateRemoteWakeup : active remote wakeup signalling -1049:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** * @param hpcd PCD handle -1050:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** * @retval HAL status -1051:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** */ - ARM GAS /tmp/ccY9uCYJ.s page 67 - - -1052:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** HAL_StatusTypeDef HAL_PCD_ActivateRemoteWakeup(PCD_HandleTypeDef *hpcd) -1053:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** { - 2626 .loc 1 1053 0 - 2627 .cfi_startproc - 2628 @ args = 0, pretend = 0, frame = 0 - 2629 @ frame_needed = 0, uses_anonymous_args = 0 - 2630 @ link register save eliminated. - 2631 .LVL218: -1054:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** if (hpcd->Init.lpm_enable ==1) - 2632 .loc 1 1054 0 - 2633 0000 C369 ldr r3, [r0, #28] - 2634 0002 012B cmp r3, #1 - 2635 0004 07D0 beq .L140 -1055:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** { -1056:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** /* Apply L1 Resume */ -1057:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** hpcd->Instance->CNTR |= USB_CNTR_L1RESUME; -1058:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** } -1059:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** else -1060:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** { -1061:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** /* Apply L2 Resume */ -1062:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** hpcd->Instance->CNTR |= USB_CNTR_RESUME; - 2636 .loc 1 1062 0 - 2637 0006 0168 ldr r1, [r0] - 2638 0008 4022 movs r2, #64 - 2639 000a 8B5A ldrh r3, [r1, r2] - 2640 000c 1020 movs r0, #16 - 2641 .LVL219: - 2642 000e 0343 orrs r3, r0 - 2643 0010 8B52 strh r3, [r1, r2] - 2644 .L139: -1063:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** } -1064:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** -1065:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** return (HAL_OK); -1066:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** } - 2645 .loc 1 1066 0 - 2646 0012 0020 movs r0, #0 - 2647 @ sp needed - 2648 0014 7047 bx lr - 2649 .LVL220: - 2650 .L140: -1057:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** } - 2651 .loc 1 1057 0 - 2652 0016 0168 ldr r1, [r0] - 2653 0018 4022 movs r2, #64 - 2654 001a 8B5A ldrh r3, [r1, r2] - 2655 001c 2020 movs r0, #32 - 2656 .LVL221: - 2657 001e 0343 orrs r3, r0 - 2658 0020 8B52 strh r3, [r1, r2] - 2659 0022 F6E7 b .L139 - 2660 .cfi_endproc - 2661 .LFE66: - 2663 .section .text.HAL_PCD_DeActivateRemoteWakeup,"ax",%progbits - 2664 .align 1 - 2665 .global HAL_PCD_DeActivateRemoteWakeup - 2666 .syntax unified - 2667 .code 16 - ARM GAS /tmp/ccY9uCYJ.s page 68 - - - 2668 .thumb_func - 2669 .fpu softvfp - 2671 HAL_PCD_DeActivateRemoteWakeup: - 2672 .LFB67: -1067:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** -1068:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** /** -1069:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** * @brief HAL_PCD_DeActivateRemoteWakeup : de-active remote wakeup signalling -1070:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** * @param hpcd PCD handle -1071:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** * @retval HAL status -1072:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** */ -1073:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** HAL_StatusTypeDef HAL_PCD_DeActivateRemoteWakeup(PCD_HandleTypeDef *hpcd) -1074:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** { - 2673 .loc 1 1074 0 - 2674 .cfi_startproc - 2675 @ args = 0, pretend = 0, frame = 0 - 2676 @ frame_needed = 0, uses_anonymous_args = 0 - 2677 @ link register save eliminated. - 2678 .LVL222: -1075:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** if (hpcd->Init.lpm_enable ==1) - 2679 .loc 1 1075 0 - 2680 0000 C369 ldr r3, [r0, #28] - 2681 0002 012B cmp r3, #1 - 2682 0004 07D0 beq .L144 -1076:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** { -1077:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** /* Release L1 Resume */ -1078:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** hpcd->Instance->CNTR &= ((uint16_t)(~ USB_CNTR_L1RESUME)); -1079:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** } -1080:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** else -1081:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** { -1082:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** /* Release L2 Resume */ -1083:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** hpcd->Instance->CNTR &= ((uint16_t)(~ USB_CNTR_RESUME)) ; - 2683 .loc 1 1083 0 - 2684 0006 0168 ldr r1, [r0] - 2685 0008 4022 movs r2, #64 - 2686 000a 8B5A ldrh r3, [r1, r2] - 2687 000c 1020 movs r0, #16 - 2688 .LVL223: - 2689 000e 8343 bics r3, r0 - 2690 0010 8B52 strh r3, [r1, r2] - 2691 .L143: -1084:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** } -1085:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** -1086:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** return (HAL_OK); -1087:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** } - 2692 .loc 1 1087 0 - 2693 0012 0020 movs r0, #0 - 2694 @ sp needed - 2695 0014 7047 bx lr - 2696 .LVL224: - 2697 .L144: -1078:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** } - 2698 .loc 1 1078 0 - 2699 0016 0168 ldr r1, [r0] - 2700 0018 4022 movs r2, #64 - 2701 001a 8B5A ldrh r3, [r1, r2] - 2702 001c 2020 movs r0, #32 - 2703 .LVL225: - ARM GAS /tmp/ccY9uCYJ.s page 69 - - - 2704 001e 8343 bics r3, r0 - 2705 0020 8B52 strh r3, [r1, r2] - 2706 0022 F6E7 b .L143 - 2707 .cfi_endproc - 2708 .LFE67: - 2710 .section .text.HAL_PCD_GetState,"ax",%progbits - 2711 .align 1 - 2712 .global HAL_PCD_GetState - 2713 .syntax unified - 2714 .code 16 - 2715 .thumb_func - 2716 .fpu softvfp - 2718 HAL_PCD_GetState: - 2719 .LFB68: -1088:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** /** -1089:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** * @} -1090:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** */ -1091:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** -1092:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** /** @defgroup PCD_Exported_Functions_Group4 Peripheral State functions -1093:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** * @brief Peripheral State functions -1094:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** * -1095:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** @verbatim -1096:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** =============================================================================== -1097:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** ##### Peripheral State functions ##### -1098:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** =============================================================================== -1099:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** [..] -1100:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** This subsection permits to get in run-time the status of the peripheral -1101:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** and the data flow. -1102:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** -1103:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** @endverbatim -1104:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** * @{ -1105:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** */ -1106:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** -1107:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** /** -1108:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** * @brief Return the PCD state -1109:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** * @param hpcd PCD handle -1110:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** * @retval HAL state -1111:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** */ -1112:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** PCD_StateTypeDef HAL_PCD_GetState(PCD_HandleTypeDef *hpcd) -1113:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** { - 2720 .loc 1 1113 0 - 2721 .cfi_startproc - 2722 @ args = 0, pretend = 0, frame = 0 - 2723 @ frame_needed = 0, uses_anonymous_args = 0 - 2724 @ link register save eliminated. - 2725 .LVL226: -1114:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** return hpcd->State; - 2726 .loc 1 1114 0 - 2727 0000 EA23 movs r3, #234 - 2728 0002 FF33 adds r3, r3, #255 - 2729 0004 C05C ldrb r0, [r0, r3] - 2730 .LVL227: - 2731 0006 C0B2 uxtb r0, r0 -1115:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** } - 2732 .loc 1 1115 0 - 2733 @ sp needed - 2734 0008 7047 bx lr - ARM GAS /tmp/ccY9uCYJ.s page 70 - - - 2735 .cfi_endproc - 2736 .LFE68: - 2738 .section .text.PCD_WritePMA,"ax",%progbits - 2739 .align 1 - 2740 .global PCD_WritePMA - 2741 .syntax unified - 2742 .code 16 - 2743 .thumb_func - 2744 .fpu softvfp - 2746 PCD_WritePMA: - 2747 .LFB69: -1116:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** /** -1117:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** * @} -1118:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** */ -1119:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** -1120:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** /** -1121:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** * @} -1122:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** */ -1123:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** -1124:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** /** @addtogroup PCD_Private_Functions -1125:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** * @{ -1126:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** */ -1127:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** /** -1128:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** * @brief Copy a buffer from user memory area to packet memory area (PMA) -1129:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** * @param USBx USB peripheral instance register address. -1130:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** * @param pbUsrBuf pointer to user memory area. -1131:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** * @param wPMABufAddr address into PMA. -1132:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** * @param wNBytes no. of bytes to be copied. -1133:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** * @retval None -1134:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** */ -1135:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** void PCD_WritePMA(USB_TypeDef *USBx, uint8_t *pbUsrBuf, uint16_t wPMABufAddr, uint16_t wNBytes) -1136:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** { - 2748 .loc 1 1136 0 - 2749 .cfi_startproc - 2750 @ args = 0, pretend = 0, frame = 0 - 2751 @ frame_needed = 0, uses_anonymous_args = 0 - 2752 .LVL228: - 2753 0000 10B5 push {r4, lr} - 2754 .LCFI10: - 2755 .cfi_def_cfa_offset 8 - 2756 .cfi_offset 4, -8 - 2757 .cfi_offset 14, -4 -1137:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** uint32_t n = ((uint32_t)((uint32_t)wNBytes + 1U)) >> 1U; - 2758 .loc 1 1137 0 - 2759 0002 0133 adds r3, r3, #1 - 2760 .LVL229: - 2761 0004 5B08 lsrs r3, r3, #1 - 2762 .LVL230: -1138:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** uint32_t i; -1139:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** uint16_t temp1, temp2; -1140:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** uint16_t *pdwVal; -1141:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** pdwVal = (uint16_t *)((uint32_t)(wPMABufAddr + (uint32_t)USBx + 0x400U)); - 2763 .loc 1 1141 0 - 2764 0006 1218 adds r2, r2, r0 - 2765 .LVL231: - 2766 0008 8020 movs r0, #128 - 2767 .LVL232: - ARM GAS /tmp/ccY9uCYJ.s page 71 - - - 2768 000a C000 lsls r0, r0, #3 - 2769 000c 8446 mov ip, r0 - 2770 000e 6244 add r2, r2, ip - 2771 .LVL233: -1142:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** -1143:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** for (i = n; i != 0; i--) - 2772 .loc 1 1143 0 - 2773 0010 07E0 b .L147 - 2774 .LVL234: - 2775 .L148: -1144:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** { -1145:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** temp1 = (uint16_t) * pbUsrBuf; - 2776 .loc 1 1145 0 discriminator 3 - 2777 0012 0878 ldrb r0, [r1] - 2778 .LVL235: -1146:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** pbUsrBuf++; -1147:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** temp2 = temp1 | ((uint16_t)((uint16_t) * pbUsrBuf << 8U)) ; - 2779 .loc 1 1147 0 discriminator 3 - 2780 0014 4C78 ldrb r4, [r1, #1] - 2781 0016 2402 lsls r4, r4, #8 - 2782 0018 0443 orrs r4, r0 - 2783 .LVL236: -1148:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** *pdwVal++ = temp2; - 2784 .loc 1 1148 0 discriminator 3 - 2785 001a 1480 strh r4, [r2] -1149:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** pbUsrBuf++; - 2786 .loc 1 1149 0 discriminator 3 - 2787 001c 0231 adds r1, r1, #2 - 2788 .LVL237: -1143:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** { - 2789 .loc 1 1143 0 discriminator 3 - 2790 001e 013B subs r3, r3, #1 - 2791 .LVL238: -1148:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** *pdwVal++ = temp2; - 2792 .loc 1 1148 0 discriminator 3 - 2793 0020 0232 adds r2, r2, #2 - 2794 .LVL239: - 2795 .L147: -1143:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** { - 2796 .loc 1 1143 0 discriminator 1 - 2797 0022 002B cmp r3, #0 - 2798 0024 F5D1 bne .L148 -1150:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** } -1151:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** } - 2799 .loc 1 1151 0 - 2800 @ sp needed - 2801 0026 10BD pop {r4, pc} - 2802 .cfi_endproc - 2803 .LFE69: - 2805 .section .text.HAL_PCD_EP_Transmit,"ax",%progbits - 2806 .align 1 - 2807 .global HAL_PCD_EP_Transmit - 2808 .syntax unified - 2809 .code 16 - 2810 .thumb_func - 2811 .fpu softvfp - 2813 HAL_PCD_EP_Transmit: - ARM GAS /tmp/ccY9uCYJ.s page 72 - - - 2814 .LFB62: - 894:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** PCD_EPTypeDef *ep; - 2815 .loc 1 894 0 - 2816 .cfi_startproc - 2817 @ args = 0, pretend = 0, frame = 0 - 2818 @ frame_needed = 0, uses_anonymous_args = 0 - 2819 .LVL240: - 2820 0000 F8B5 push {r3, r4, r5, r6, r7, lr} - 2821 .LCFI11: - 2822 .cfi_def_cfa_offset 24 - 2823 .cfi_offset 3, -24 - 2824 .cfi_offset 4, -20 - 2825 .cfi_offset 5, -16 - 2826 .cfi_offset 6, -12 - 2827 .cfi_offset 7, -8 - 2828 .cfi_offset 14, -4 - 2829 0002 0500 movs r5, r0 - 2830 .LVL241: - 2831 0004 7F24 movs r4, #127 - 2832 0006 0C40 ands r4, r1 - 2833 .LVL242: - 901:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** ep->xfer_len = len; - 2834 .loc 1 901 0 - 2835 0008 E000 lsls r0, r4, #3 - 2836 .LVL243: - 2837 000a 001B subs r0, r0, r4 - 2838 000c 8100 lsls r1, r0, #2 - 2839 .LVL244: - 2840 000e 6918 adds r1, r5, r1 - 2841 0010 8A63 str r2, [r1, #56] - 902:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** ep->xfer_count = 0U; - 2842 .loc 1 902 0 - 2843 0012 CB63 str r3, [r1, #60] - 903:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** ep->is_in = 1U; - 2844 .loc 1 903 0 - 2845 0014 0022 movs r2, #0 - 2846 .LVL245: - 2847 0016 0A64 str r2, [r1, #64] - 904:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** ep->num = ep_addr & 0x7FU; - 2848 .loc 1 904 0 - 2849 0018 0A00 movs r2, r1 - 2850 001a 2932 adds r2, r2, #41 - 2851 001c 0120 movs r0, #1 - 2852 001e 1070 strb r0, [r2] - 905:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** - 2853 .loc 1 905 0 - 2854 0020 013A subs r2, r2, #1 - 2855 0022 1470 strb r4, [r2] - 908:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** { - 2856 .loc 1 908 0 - 2857 0024 4F6B ldr r7, [r1, #52] - 2858 0026 BB42 cmp r3, r7 - 2859 0028 34D9 bls .L150 - 2860 .LVL246: - 911:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** } - 2861 .loc 1 911 0 - 2862 002a DB1B subs r3, r3, r7 - ARM GAS /tmp/ccY9uCYJ.s page 73 - - - 2863 002c CB63 str r3, [r1, #60] - 2864 .LVL247: - 2865 .L151: - 920:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** { - 2866 .loc 1 920 0 - 2867 002e E200 lsls r2, r4, #3 - 2868 0030 121B subs r2, r2, r4 - 2869 0032 9300 lsls r3, r2, #2 - 2870 0034 1A00 movs r2, r3 - 2871 0036 EB18 adds r3, r5, r3 - 2872 0038 3233 adds r3, r3, #50 - 2873 003a 1B78 ldrb r3, [r3] - 2874 003c 002B cmp r3, #0 - 2875 003e 31D0 beq .L167 - 928:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** { - 2876 .loc 1 928 0 - 2877 0040 2868 ldr r0, [r5] - 2878 0042 E200 lsls r2, r4, #3 - 2879 0044 121B subs r2, r2, r4 - 2880 0046 9300 lsls r3, r2, #2 - 2881 0048 EB18 adds r3, r5, r3 - 2882 004a 2833 adds r3, r3, #40 - 2883 004c 1B78 ldrb r3, [r3] - 2884 004e 9A00 lsls r2, r3, #2 - 2885 0050 8218 adds r2, r0, r2 - 2886 0052 1288 ldrh r2, [r2] - 2887 0054 5206 lsls r2, r2, #25 - 2888 0056 75D5 bpl .L154 - 931:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** pmabuffer = ep->pmaaddr1; - 2889 .loc 1 931 0 - 2890 0058 E600 lsls r6, r4, #3 - 2891 005a 361B subs r6, r6, r4 - 2892 005c B200 lsls r2, r6, #2 - 2893 005e AA18 adds r2, r5, r2 - 2894 0060 2932 adds r2, r2, #41 - 2895 0062 1278 ldrb r2, [r2] - 2896 0064 002A cmp r2, #0 - 2897 0066 3BD1 bne .L155 - 2898 .LBB34: - 931:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** pmabuffer = ep->pmaaddr1; - 2899 .loc 1 931 0 is_stmt 0 discriminator 1 - 2900 0068 5032 adds r2, r2, #80 - 2901 006a 825A ldrh r2, [r0, r2] - 2902 006c DB00 lsls r3, r3, #3 - 2903 006e D318 adds r3, r2, r3 - 2904 0070 1818 adds r0, r3, r0 - 2905 0072 634B ldr r3, .L171 - 2906 0074 9C46 mov ip, r3 - 2907 0076 6044 add r0, r0, ip - 2908 .LVL248: - 2909 .LBB35: - 2910 0078 3E2F cmp r7, #62 - 2911 007a 28D9 bls .L156 - 931:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** pmabuffer = ep->pmaaddr1; - 2912 .loc 1 931 0 discriminator 3 - 2913 007c 7B09 lsrs r3, r7, #5 - 2914 007e 9BB2 uxth r3, r3 - ARM GAS /tmp/ccY9uCYJ.s page 74 - - - 2915 .LVL249: - 2916 0080 FA06 lsls r2, r7, #27 - 2917 0082 01D1 bne .L157 - 931:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** pmabuffer = ep->pmaaddr1; - 2918 .loc 1 931 0 discriminator 5 - 2919 0084 013B subs r3, r3, #1 - 2920 .LVL250: - 2921 0086 9BB2 uxth r3, r3 - 2922 .LVL251: - 2923 .L157: - 931:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** pmabuffer = ep->pmaaddr1; - 2924 .loc 1 931 0 discriminator 7 - 2925 0088 9B02 lsls r3, r3, #10 - 2926 .LVL252: - 2927 008a 9BB2 uxth r3, r3 - 2928 008c 5D4A ldr r2, .L171+4 - 2929 008e 1343 orrs r3, r2 - 2930 0090 0380 strh r3, [r0] - 2931 0092 27E0 b .L158 - 2932 .LVL253: - 2933 .L150: - 2934 .LBE35: - 2935 .LBE34: - 916:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** } - 2936 .loc 1 916 0 is_stmt 1 - 2937 0094 E100 lsls r1, r4, #3 - 2938 .LVL254: - 2939 0096 091B subs r1, r1, r4 - 2940 0098 8A00 lsls r2, r1, #2 - 2941 .LVL255: - 2942 009a AA18 adds r2, r5, r2 - 2943 009c 0021 movs r1, #0 - 2944 009e D163 str r1, [r2, #60] - 2945 .LVL256: - 915:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** ep->xfer_len =0U; - 2946 .loc 1 915 0 - 2947 00a0 1F00 movs r7, r3 - 2948 00a2 C4E7 b .L151 - 2949 .LVL257: - 2950 .L167: - 922:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** PCD_SET_EP_TX_CNT(hpcd->Instance, ep->num, len); - 2951 .loc 1 922 0 - 2952 00a4 BFB2 uxth r7, r7 - 2953 .LVL258: - 2954 00a6 AE18 adds r6, r5, r2 - 2955 00a8 B28D ldrh r2, [r6, #44] - 2956 00aa 3B00 movs r3, r7 - 2957 00ac B16B ldr r1, [r6, #56] - 2958 00ae 2868 ldr r0, [r5] - 2959 00b0 FFF7FEFF bl PCD_WritePMA - 2960 .LVL259: - 923:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** } - 2961 .loc 1 923 0 - 2962 00b4 2A68 ldr r2, [r5] - 2963 00b6 5023 movs r3, #80 - 2964 00b8 D35A ldrh r3, [r2, r3] - 2965 00ba 2836 adds r6, r6, #40 - ARM GAS /tmp/ccY9uCYJ.s page 75 - - - 2966 00bc 3178 ldrb r1, [r6] - 2967 00be C900 lsls r1, r1, #3 - 2968 00c0 5B18 adds r3, r3, r1 - 2969 00c2 9B18 adds r3, r3, r2 - 2970 00c4 504A ldr r2, .L171+8 - 2971 00c6 9446 mov ip, r2 - 2972 00c8 6344 add r3, r3, ip - 2973 00ca 1F80 strh r7, [r3] - 2974 00cc 84E0 b .L153 - 2975 .LVL260: - 2976 .L156: - 2977 .LBB37: - 2978 .LBB36: - 931:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** pmabuffer = ep->pmaaddr1; - 2979 .loc 1 931 0 discriminator 4 - 2980 00ce 7B08 lsrs r3, r7, #1 - 2981 00d0 9BB2 uxth r3, r3 - 2982 .LVL261: - 2983 00d2 FA07 lsls r2, r7, #31 - 2984 00d4 01D5 bpl .L159 - 931:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** pmabuffer = ep->pmaaddr1; - 2985 .loc 1 931 0 is_stmt 0 discriminator 8 - 2986 00d6 0133 adds r3, r3, #1 - 2987 .LVL262: - 2988 00d8 9BB2 uxth r3, r3 - 2989 .LVL263: - 2990 .L159: - 931:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** pmabuffer = ep->pmaaddr1; - 2991 .loc 1 931 0 discriminator 10 - 2992 00da 9B02 lsls r3, r3, #10 - 2993 .LVL264: - 2994 00dc 0380 strh r3, [r0] - 2995 00de 01E0 b .L158 - 2996 .LVL265: - 2997 .L155: - 2998 .LBE36: - 2999 .LBE37: - 931:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** pmabuffer = ep->pmaaddr1; - 3000 .loc 1 931 0 discriminator 2 - 3001 00e0 012A cmp r2, #1 - 3002 00e2 25D0 beq .L168 - 3003 .L158: - 932:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** } - 3004 .loc 1 932 0 is_stmt 1 - 3005 00e4 E200 lsls r2, r4, #3 - 3006 00e6 121B subs r2, r2, r4 - 3007 00e8 9300 lsls r3, r2, #2 - 3008 00ea EB18 adds r3, r5, r3 - 3009 00ec 1A8E ldrh r2, [r3, #48] - 3010 .LVL266: - 3011 .L160: - 941:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** PCD_FreeUserBuffer(hpcd->Instance, ep->num, ep->is_in) - 3012 .loc 1 941 0 - 3013 00ee BBB2 uxth r3, r7 - 3014 00f0 E100 lsls r1, r4, #3 - 3015 00f2 091B subs r1, r1, r4 - 3016 00f4 8E00 lsls r6, r1, #2 - ARM GAS /tmp/ccY9uCYJ.s page 76 - - - 3017 00f6 AE19 adds r6, r5, r6 - 3018 00f8 B16B ldr r1, [r6, #56] - 3019 00fa 2868 ldr r0, [r5] - 3020 00fc FFF7FEFF bl PCD_WritePMA - 3021 .LVL267: - 942:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** } - 3022 .loc 1 942 0 - 3023 0100 2936 adds r6, r6, #41 - 3024 0102 3378 ldrb r3, [r6] - 3025 0104 002B cmp r3, #0 - 3026 0106 56D0 beq .L169 - 942:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** } - 3027 .loc 1 942 0 is_stmt 0 discriminator 2 - 3028 0108 012B cmp r3, #1 - 3029 010a 65D1 bne .L153 - 942:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** } - 3030 .loc 1 942 0 discriminator 3 - 3031 010c E200 lsls r2, r4, #3 - 3032 010e 121B subs r2, r2, r4 - 3033 0110 9300 lsls r3, r2, #2 - 3034 0112 EB18 adds r3, r5, r3 - 3035 0114 2833 adds r3, r3, #40 - 3036 0116 1A78 ldrb r2, [r3] - 3037 0118 9200 lsls r2, r2, #2 - 3038 011a 2B68 ldr r3, [r5] - 3039 011c 9C46 mov ip, r3 - 3040 011e 6244 add r2, r2, ip - 3041 0120 1388 ldrh r3, [r2] - 3042 0122 3A49 ldr r1, .L171+12 - 3043 0124 1940 ands r1, r3 - 3044 0126 3A4B ldr r3, .L171+16 - 3045 0128 0B43 orrs r3, r1 - 3046 012a 9BB2 uxth r3, r3 - 3047 012c 1380 strh r3, [r2] - 3048 012e 53E0 b .L153 - 3049 .LVL268: - 3050 .L168: - 931:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** pmabuffer = ep->pmaaddr1; - 3051 .loc 1 931 0 is_stmt 1 discriminator 11 - 3052 0130 4F32 adds r2, r2, #79 - 3053 0132 825A ldrh r2, [r0, r2] - 3054 0134 DB00 lsls r3, r3, #3 - 3055 0136 D318 adds r3, r2, r3 - 3056 0138 1818 adds r0, r3, r0 - 3057 013a 314B ldr r3, .L171 - 3058 013c 9C46 mov ip, r3 - 3059 013e 6044 add r0, r0, ip - 3060 0140 0780 strh r7, [r0] - 3061 0142 CFE7 b .L158 - 3062 .L154: - 937:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** pmabuffer = ep->pmaaddr0; - 3063 .loc 1 937 0 - 3064 0144 E600 lsls r6, r4, #3 - 3065 0146 361B subs r6, r6, r4 - 3066 0148 B200 lsls r2, r6, #2 - 3067 014a AA18 adds r2, r5, r2 - 3068 014c 2932 adds r2, r2, #41 - ARM GAS /tmp/ccY9uCYJ.s page 77 - - - 3069 014e 1278 ldrb r2, [r2] - 3070 0150 002A cmp r2, #0 - 3071 0152 1ED1 bne .L161 - 3072 .LBB38: - 937:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** pmabuffer = ep->pmaaddr0; - 3073 .loc 1 937 0 is_stmt 0 discriminator 1 - 3074 0154 5032 adds r2, r2, #80 - 3075 0156 825A ldrh r2, [r0, r2] - 3076 0158 DB00 lsls r3, r3, #3 - 3077 015a D318 adds r3, r2, r3 - 3078 015c 1818 adds r0, r3, r0 - 3079 015e 2A4B ldr r3, .L171+8 - 3080 0160 9C46 mov ip, r3 - 3081 0162 6044 add r0, r0, ip - 3082 .LVL269: - 3083 .LBB39: - 3084 0164 3E2F cmp r7, #62 - 3085 0166 0BD9 bls .L162 - 937:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** pmabuffer = ep->pmaaddr0; - 3086 .loc 1 937 0 discriminator 3 - 3087 0168 7B09 lsrs r3, r7, #5 - 3088 016a 9BB2 uxth r3, r3 - 3089 .LVL270: - 3090 016c FA06 lsls r2, r7, #27 - 3091 016e 01D1 bne .L163 - 937:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** pmabuffer = ep->pmaaddr0; - 3092 .loc 1 937 0 discriminator 5 - 3093 0170 013B subs r3, r3, #1 - 3094 .LVL271: - 3095 0172 9BB2 uxth r3, r3 - 3096 .LVL272: - 3097 .L163: - 937:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** pmabuffer = ep->pmaaddr0; - 3098 .loc 1 937 0 discriminator 7 - 3099 0174 9B02 lsls r3, r3, #10 - 3100 .LVL273: - 3101 0176 9BB2 uxth r3, r3 - 3102 0178 224A ldr r2, .L171+4 - 3103 017a 1343 orrs r3, r2 - 3104 017c 0380 strh r3, [r0] - 3105 017e 0AE0 b .L164 - 3106 .L162: - 937:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** pmabuffer = ep->pmaaddr0; - 3107 .loc 1 937 0 discriminator 4 - 3108 0180 7B08 lsrs r3, r7, #1 - 3109 0182 9BB2 uxth r3, r3 - 3110 .LVL274: - 3111 0184 FA07 lsls r2, r7, #31 - 3112 0186 01D5 bpl .L165 - 937:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** pmabuffer = ep->pmaaddr0; - 3113 .loc 1 937 0 discriminator 8 - 3114 0188 0133 adds r3, r3, #1 - 3115 .LVL275: - 3116 018a 9BB2 uxth r3, r3 - 3117 .LVL276: - 3118 .L165: - 937:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** pmabuffer = ep->pmaaddr0; - ARM GAS /tmp/ccY9uCYJ.s page 78 - - - 3119 .loc 1 937 0 discriminator 10 - 3120 018c 9B02 lsls r3, r3, #10 - 3121 .LVL277: - 3122 018e 0380 strh r3, [r0] - 3123 0190 01E0 b .L164 - 3124 .LVL278: - 3125 .L161: - 3126 .LBE39: - 3127 .LBE38: - 937:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** pmabuffer = ep->pmaaddr0; - 3128 .loc 1 937 0 discriminator 2 - 3129 0192 012A cmp r2, #1 - 3130 0194 05D0 beq .L170 - 3131 .L164: - 938:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** } - 3132 .loc 1 938 0 is_stmt 1 - 3133 0196 E200 lsls r2, r4, #3 - 3134 0198 121B subs r2, r2, r4 - 3135 019a 9300 lsls r3, r2, #2 - 3136 019c EB18 adds r3, r5, r3 - 3137 019e DA8D ldrh r2, [r3, #46] - 3138 .LVL279: - 3139 01a0 A5E7 b .L160 - 3140 .LVL280: - 3141 .L170: - 937:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** pmabuffer = ep->pmaaddr0; - 3142 .loc 1 937 0 discriminator 11 - 3143 01a2 4F32 adds r2, r2, #79 - 3144 01a4 825A ldrh r2, [r0, r2] - 3145 01a6 DB00 lsls r3, r3, #3 - 3146 01a8 D318 adds r3, r2, r3 - 3147 01aa 1818 adds r0, r3, r0 - 3148 01ac 164B ldr r3, .L171+8 - 3149 01ae 9C46 mov ip, r3 - 3150 01b0 6044 add r0, r0, ip - 3151 01b2 0780 strh r7, [r0] - 3152 01b4 EFE7 b .L164 - 3153 .LVL281: - 3154 .L169: - 942:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** } - 3155 .loc 1 942 0 discriminator 1 - 3156 01b6 E200 lsls r2, r4, #3 - 3157 01b8 121B subs r2, r2, r4 - 3158 01ba 9300 lsls r3, r2, #2 - 3159 01bc EB18 adds r3, r5, r3 - 3160 01be 2833 adds r3, r3, #40 - 3161 01c0 1A78 ldrb r2, [r3] - 3162 01c2 9200 lsls r2, r2, #2 - 3163 01c4 2B68 ldr r3, [r5] - 3164 01c6 9C46 mov ip, r3 - 3165 01c8 6244 add r2, r2, ip - 3166 01ca 1388 ldrh r3, [r2] - 3167 01cc 0F49 ldr r1, .L171+12 - 3168 01ce 1940 ands r1, r3 - 3169 01d0 104B ldr r3, .L171+20 - 3170 01d2 0B43 orrs r3, r1 - 3171 01d4 9BB2 uxth r3, r3 - ARM GAS /tmp/ccY9uCYJ.s page 79 - - - 3172 01d6 1380 strh r3, [r2] - 3173 .LVL282: - 3174 .L153: - 3175 .LBB40: - 945:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** - 3176 .loc 1 945 0 - 3177 01d8 2968 ldr r1, [r5] - 3178 01da E300 lsls r3, r4, #3 - 3179 01dc 1C1B subs r4, r3, r4 - 3180 .LVL283: - 3181 01de A300 lsls r3, r4, #2 - 3182 01e0 ED18 adds r5, r5, r3 - 3183 .LVL284: - 3184 01e2 2835 adds r5, r5, #40 - 3185 01e4 2B78 ldrb r3, [r5] - 3186 01e6 9B00 lsls r3, r3, #2 - 3187 01e8 C918 adds r1, r1, r3 - 3188 01ea 0B88 ldrh r3, [r1] - 3189 01ec 0A4A ldr r2, .L171+24 - 3190 01ee 1340 ands r3, r2 - 3191 .LVL285: - 3192 01f0 3022 movs r2, #48 - 3193 01f2 5A40 eors r2, r3 - 3194 .LVL286: - 3195 01f4 094B ldr r3, .L171+28 - 3196 01f6 1343 orrs r3, r2 - 3197 01f8 9BB2 uxth r3, r3 - 3198 01fa 0B80 strh r3, [r1] - 3199 .LBE40: - 948:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** - 3200 .loc 1 948 0 - 3201 01fc 0020 movs r0, #0 - 3202 @ sp needed - 3203 01fe F8BD pop {r3, r4, r5, r6, r7, pc} - 3204 .L172: - 3205 .align 2 - 3206 .L171: - 3207 0200 06040000 .word 1030 - 3208 0204 0080FFFF .word -32768 - 3209 0208 02040000 .word 1026 - 3210 020c 0F0F0000 .word 3855 - 3211 0210 80C0FFFF .word -16256 - 3212 0214 C080FFFF .word -32576 - 3213 0218 BF8FFFFF .word -28737 - 3214 021c 8080FFFF .word -32640 - 3215 .cfi_endproc - 3216 .LFE62: - 3218 .section .text.PCD_ReadPMA,"ax",%progbits - 3219 .align 1 - 3220 .global PCD_ReadPMA - 3221 .syntax unified - 3222 .code 16 - 3223 .thumb_func - 3224 .fpu softvfp - 3226 PCD_ReadPMA: - 3227 .LFB70: -1152:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** - ARM GAS /tmp/ccY9uCYJ.s page 80 - - -1153:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** /** -1154:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** * @brief Copy a buffer from user memory area to packet memory area (PMA) -1155:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** * @param USBx USB peripheral instance register address. -1156:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** * @param pbUsrBuf = pointer to user memory area. -1157:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** * @param wPMABufAddr address into PMA. -1158:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** * @param wNBytes no. of bytes to be copied. -1159:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** * @retval None -1160:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** */ -1161:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** void PCD_ReadPMA(USB_TypeDef *USBx, uint8_t *pbUsrBuf, uint16_t wPMABufAddr, uint16_t wNBytes) -1162:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** { - 3228 .loc 1 1162 0 - 3229 .cfi_startproc - 3230 @ args = 0, pretend = 0, frame = 0 - 3231 @ frame_needed = 0, uses_anonymous_args = 0 - 3232 .LVL287: - 3233 0000 30B5 push {r4, r5, lr} - 3234 .LCFI12: - 3235 .cfi_def_cfa_offset 12 - 3236 .cfi_offset 4, -12 - 3237 .cfi_offset 5, -8 - 3238 .cfi_offset 14, -4 -1163:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** uint32_t n = (uint32_t)wNBytes >> 1U; - 3239 .loc 1 1163 0 - 3240 0002 5D08 lsrs r5, r3, #1 - 3241 .LVL288: -1164:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** uint32_t i; -1165:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** uint16_t *pdwVal; -1166:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** uint32_t temp; -1167:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** pdwVal = (uint16_t *)((uint32_t)(wPMABufAddr + (uint32_t)USBx + 0x400U)); - 3242 .loc 1 1167 0 - 3243 0004 1218 adds r2, r2, r0 - 3244 .LVL289: - 3245 0006 8020 movs r0, #128 - 3246 .LVL290: - 3247 0008 C000 lsls r0, r0, #3 - 3248 000a 8446 mov ip, r0 - 3249 000c 6244 add r2, r2, ip - 3250 .LVL291: -1168:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** -1169:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** for (i = n; i != 0U; i--) - 3251 .loc 1 1169 0 - 3252 000e 06E0 b .L174 - 3253 .LVL292: - 3254 .L175: -1170:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** { -1171:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** temp = *pdwVal++; - 3255 .loc 1 1171 0 discriminator 3 - 3256 0010 1488 ldrh r4, [r2] - 3257 .LVL293: -1172:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** *pbUsrBuf++ = ((temp >> 0) & 0xFF); - 3258 .loc 1 1172 0 discriminator 3 - 3259 0012 0C70 strb r4, [r1] -1173:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** *pbUsrBuf++ = ((temp >> 8) & 0xFF); - 3260 .loc 1 1173 0 discriminator 3 - 3261 0014 240A lsrs r4, r4, #8 - 3262 .LVL294: - 3263 0016 4C70 strb r4, [r1, #1] - ARM GAS /tmp/ccY9uCYJ.s page 81 - - -1169:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** { - 3264 .loc 1 1169 0 discriminator 3 - 3265 0018 013D subs r5, r5, #1 - 3266 .LVL295: -1171:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** *pbUsrBuf++ = ((temp >> 0) & 0xFF); - 3267 .loc 1 1171 0 discriminator 3 - 3268 001a 0232 adds r2, r2, #2 - 3269 .LVL296: - 3270 .loc 1 1173 0 discriminator 3 - 3271 001c 0231 adds r1, r1, #2 - 3272 .LVL297: - 3273 .L174: -1169:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** { - 3274 .loc 1 1169 0 discriminator 1 - 3275 001e 002D cmp r5, #0 - 3276 0020 F6D1 bne .L175 -1174:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** } -1175:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** -1176:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** if (wNBytes % 2) - 3277 .loc 1 1176 0 - 3278 0022 DB07 lsls r3, r3, #31 - 3279 0024 01D5 bpl .L173 - 3280 .LVL298: -1177:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** { -1178:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** temp = *pdwVal++; - 3281 .loc 1 1178 0 - 3282 0026 1388 ldrh r3, [r2] - 3283 .LVL299: -1179:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** *pbUsrBuf++ = ((temp >> 0) & 0xFF); - 3284 .loc 1 1179 0 - 3285 0028 0B70 strb r3, [r1] - 3286 .LVL300: - 3287 .L173: -1180:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** } -1181:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** } - 3288 .loc 1 1181 0 - 3289 @ sp needed - 3290 .LVL301: - 3291 002a 30BD pop {r4, r5, pc} - 3292 .cfi_endproc - 3293 .LFE70: - 3295 .section .text.PCD_EP_ISR_Handler,"ax",%progbits - 3296 .align 1 - 3297 .syntax unified - 3298 .code 16 - 3299 .thumb_func - 3300 .fpu softvfp - 3302 PCD_EP_ISR_Handler: - 3303 .LFB71: -1182:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** -1183:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** /** -1184:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** * @brief This function handles PCD Endpoint interrupt request. -1185:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** * @param hpcd PCD handle -1186:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** * @retval HAL status -1187:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** */ -1188:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** static HAL_StatusTypeDef PCD_EP_ISR_Handler(PCD_HandleTypeDef *hpcd) -1189:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** { - ARM GAS /tmp/ccY9uCYJ.s page 82 - - - 3304 .loc 1 1189 0 - 3305 .cfi_startproc - 3306 @ args = 0, pretend = 0, frame = 8 - 3307 @ frame_needed = 0, uses_anonymous_args = 0 - 3308 .LVL302: - 3309 0000 F0B5 push {r4, r5, r6, r7, lr} - 3310 .LCFI13: - 3311 .cfi_def_cfa_offset 20 - 3312 .cfi_offset 4, -20 - 3313 .cfi_offset 5, -16 - 3314 .cfi_offset 6, -12 - 3315 .cfi_offset 7, -8 - 3316 .cfi_offset 14, -4 - 3317 0002 83B0 sub sp, sp, #12 - 3318 .LCFI14: - 3319 .cfi_def_cfa_offset 32 - 3320 0004 0500 movs r5, r0 - 3321 .LVL303: -1190:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** PCD_EPTypeDef *ep; -1191:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** uint16_t count=0U; -1192:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** uint8_t EPindex; -1193:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** __IO uint16_t wIstr; -1194:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** __IO uint16_t wEPVal = 0U; - 3322 .loc 1 1194 0 - 3323 0006 01AB add r3, sp, #4 - 3324 0008 0022 movs r2, #0 - 3325 000a 1A80 strh r2, [r3] - 3326 .LVL304: - 3327 .L178: -1195:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** -1196:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** /* stay in loop while pending interrupts */ -1197:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** while (((wIstr = hpcd->Instance->ISTR) & USB_ISTR_CTR) != 0U) - 3328 .loc 1 1197 0 - 3329 000c 2868 ldr r0, [r5] - 3330 000e 4423 movs r3, #68 - 3331 0010 C35A ldrh r3, [r0, r3] - 3332 0012 9BB2 uxth r3, r3 - 3333 0014 6A46 mov r2, sp - 3334 0016 D380 strh r3, [r2, #6] - 3335 0018 1BB2 sxth r3, r3 - 3336 001a 002B cmp r3, #0 - 3337 001c 00DB blt .LCB3495 - 3338 001e 41E2 b .L201 @long jump - 3339 .LCB3495: -1198:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** { -1199:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** /* extract highest priority endpoint number */ -1200:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** EPindex = (uint8_t)(wIstr & USB_ISTR_EP_ID); - 3340 .loc 1 1200 0 - 3341 0020 6B46 mov r3, sp - 3342 0022 DC88 ldrh r4, [r3, #6] - 3343 0024 0F23 movs r3, #15 - 3344 0026 1C40 ands r4, r3 - 3345 .LVL305: -1201:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** -1202:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** if (EPindex == 0U) - 3346 .loc 1 1202 0 - 3347 0028 00D0 beq .LCB3505 - ARM GAS /tmp/ccY9uCYJ.s page 83 - - - 3348 002a B7E0 b .L179 @long jump - 3349 .LCB3505: -1203:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** { -1204:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** /* Decode and service control endpoint interrupt */ -1205:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** -1206:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** /* DIR bit = origin of the interrupt */ -1207:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** if ((wIstr & USB_ISTR_DIR) == 0U) - 3350 .loc 1 1207 0 - 3351 002c 6B46 mov r3, sp - 3352 002e 0633 adds r3, r3, #6 - 3353 0030 1B88 ldrh r3, [r3] - 3354 0032 DB06 lsls r3, r3, #27 - 3355 0034 4DD5 bpl .L202 - 3356 .LVL306: -1208:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** { -1209:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** /* DIR = 0 */ -1210:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** -1211:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** /* DIR = 0 => IN int */ -1212:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** /* DIR = 0 implies that (EP_CTR_TX = 1) always */ -1213:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** PCD_CLEAR_TX_EP_CTR(hpcd->Instance, PCD_ENDP0); -1214:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** ep = &hpcd->IN_ep[0]; -1215:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** -1216:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** ep->xfer_count = PCD_GET_EP_TX_CNT(hpcd->Instance, ep->num); -1217:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** ep->xfer_buff += ep->xfer_count; -1218:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** -1219:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** /* TX COMPLETE */ -1220:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** HAL_PCD_DataInStageCallback(hpcd, 0U); -1221:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** -1222:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** -1223:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** if((hpcd->USB_Address > 0U)&& ( ep->xfer_len == 0U)) -1224:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** { -1225:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** hpcd->Instance->DADDR = (hpcd->USB_Address | USB_DADDR_EF); -1226:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** hpcd->USB_Address = 0U; -1227:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** } -1228:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** -1229:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** } -1230:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** else -1231:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** { -1232:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** /* DIR = 1 */ -1233:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** -1234:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** /* DIR = 1 & CTR_RX => SETUP or OUT int */ -1235:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** /* DIR = 1 & (CTR_TX | CTR_RX) => 2 int pending */ -1236:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** ep = &hpcd->OUT_ep[0]; -1237:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** wEPVal = PCD_GET_ENDPOINT(hpcd->Instance, PCD_ENDP0); - 3357 .loc 1 1237 0 - 3358 0036 0388 ldrh r3, [r0] - 3359 0038 9BB2 uxth r3, r3 - 3360 003a 01AA add r2, sp, #4 - 3361 003c 1380 strh r3, [r2] -1238:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** -1239:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** if ((wEPVal & USB_EP_SETUP) != 0U) - 3362 .loc 1 1239 0 - 3363 003e 1388 ldrh r3, [r2] - 3364 0040 1B05 lsls r3, r3, #20 - 3365 0042 76D4 bmi .L203 -1240:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** { -1241:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** /* Get SETUP Packet*/ - ARM GAS /tmp/ccY9uCYJ.s page 84 - - -1242:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** ep->xfer_count = PCD_GET_EP_RX_CNT(hpcd->Instance, ep->num); -1243:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** PCD_ReadPMA(hpcd->Instance, (uint8_t*)(void*)hpcd->Setup ,ep->pmaadress , ep->xfer_count) -1244:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** /* SETUP bit kept frozen while CTR_RX = 1*/ -1245:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** PCD_CLEAR_RX_EP_CTR(hpcd->Instance, PCD_ENDP0); -1246:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** -1247:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** /* Process SETUP Packet*/ -1248:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** HAL_PCD_SetupStageCallback(hpcd); -1249:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** } -1250:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** -1251:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** else if ((wEPVal & USB_EP_CTR_RX) != 0U) - 3366 .loc 1 1251 0 - 3367 0044 01AB add r3, sp, #4 - 3368 0046 1B88 ldrh r3, [r3] - 3369 0048 1BB2 sxth r3, r3 - 3370 004a 002B cmp r3, #0 - 3371 004c DEDA bge .L178 -1252:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** { -1253:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** PCD_CLEAR_RX_EP_CTR(hpcd->Instance, PCD_ENDP0); - 3372 .loc 1 1253 0 - 3373 004e 0388 ldrh r3, [r0] - 3374 0050 CC4A ldr r2, .L208 - 3375 0052 1340 ands r3, r2 - 3376 0054 0380 strh r3, [r0] -1254:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** /* Get Control Data OUT Packet*/ -1255:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** ep->xfer_count = PCD_GET_EP_RX_CNT(hpcd->Instance, ep->num); - 3377 .loc 1 1255 0 - 3378 0056 2868 ldr r0, [r5] - 3379 0058 5023 movs r3, #80 - 3380 005a C35A ldrh r3, [r0, r3] - 3381 005c 8422 movs r2, #132 - 3382 005e 5200 lsls r2, r2, #1 - 3383 0060 AA5C ldrb r2, [r5, r2] - 3384 0062 D200 lsls r2, r2, #3 - 3385 0064 9B18 adds r3, r3, r2 - 3386 0066 1B18 adds r3, r3, r0 - 3387 0068 C74A ldr r2, .L208+4 - 3388 006a 9446 mov ip, r2 - 3389 006c 6344 add r3, r3, ip - 3390 006e 1B88 ldrh r3, [r3] - 3391 0070 9B05 lsls r3, r3, #22 - 3392 0072 9B0D lsrs r3, r3, #22 - 3393 0074 2A00 movs r2, r5 - 3394 0076 0932 adds r2, r2, #9 - 3395 0078 FF32 adds r2, r2, #255 - 3396 007a 9361 str r3, [r2, #24] -1256:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** -1257:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** if (ep->xfer_count != 0U) - 3397 .loc 1 1257 0 - 3398 007c 002B cmp r3, #0 - 3399 007e 00D0 beq .LCB3561 - 3400 0080 78E0 b .L204 @long jump - 3401 .LCB3561: - 3402 .LVL307: - 3403 .L183: -1258:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** { -1259:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** PCD_ReadPMA(hpcd->Instance, ep->xfer_buff, ep->pmaadress, ep->xfer_count); -1260:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** ep->xfer_buff+=ep->xfer_count; - ARM GAS /tmp/ccY9uCYJ.s page 85 - - -1261:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** } -1262:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** -1263:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** /* Process Control Data OUT Packet*/ -1264:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** HAL_PCD_DataOutStageCallback(hpcd, 0U); - 3404 .loc 1 1264 0 - 3405 0082 0021 movs r1, #0 - 3406 0084 2800 movs r0, r5 - 3407 0086 FFF7FEFF bl HAL_PCD_DataOutStageCallback - 3408 .LVL308: - 3409 .LBB41: -1265:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** -1266:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** PCD_SET_EP_RX_CNT(hpcd->Instance, PCD_ENDP0, ep->maxpacket) - 3410 .loc 1 1266 0 - 3411 008a 2B68 ldr r3, [r5] - 3412 008c 5022 movs r2, #80 - 3413 008e 9A5A ldrh r2, [r3, r2] - 3414 0090 9A18 adds r2, r3, r2 - 3415 0092 BD4B ldr r3, .L208+4 - 3416 0094 9C46 mov ip, r3 - 3417 0096 6244 add r2, r2, ip - 3418 .LVL309: - 3419 .LBB42: - 3420 0098 2B00 movs r3, r5 - 3421 009a 0933 adds r3, r3, #9 - 3422 009c FF33 adds r3, r3, #255 - 3423 009e D968 ldr r1, [r3, #12] - 3424 00a0 3E29 cmp r1, #62 - 3425 00a2 72D9 bls .L184 - 3426 .loc 1 1266 0 is_stmt 0 discriminator 1 - 3427 00a4 4B09 lsrs r3, r1, #5 - 3428 00a6 9BB2 uxth r3, r3 - 3429 .LVL310: - 3430 00a8 C906 lsls r1, r1, #27 - 3431 00aa 01D1 bne .L185 - 3432 .loc 1 1266 0 discriminator 3 - 3433 00ac 013B subs r3, r3, #1 - 3434 .LVL311: - 3435 00ae 9BB2 uxth r3, r3 - 3436 .LVL312: - 3437 .L185: - 3438 .loc 1 1266 0 discriminator 5 - 3439 00b0 9B02 lsls r3, r3, #10 - 3440 .LVL313: - 3441 00b2 9BB2 uxth r3, r3 - 3442 00b4 B549 ldr r1, .L208+8 - 3443 00b6 0B43 orrs r3, r1 - 3444 00b8 1380 strh r3, [r2] - 3445 .L186: - 3446 .LBE42: - 3447 .LBE41: - 3448 .LBB44: -1267:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** PCD_SET_EP_RX_STATUS(hpcd->Instance, PCD_ENDP0, USB_EP_RX_VALID) - 3449 .loc 1 1267 0 is_stmt 1 - 3450 00ba 2968 ldr r1, [r5] - 3451 00bc 0A88 ldrh r2, [r1] - 3452 .LVL314: - 3453 00be B44B ldr r3, .L208+12 - ARM GAS /tmp/ccY9uCYJ.s page 86 - - - 3454 00c0 1A40 ands r2, r3 - 3455 .LVL315: - 3456 00c2 C023 movs r3, #192 - 3457 00c4 9B01 lsls r3, r3, #6 - 3458 00c6 5A40 eors r2, r3 - 3459 .LVL316: - 3460 00c8 B24B ldr r3, .L208+16 - 3461 00ca 1343 orrs r3, r2 - 3462 00cc 9BB2 uxth r3, r3 - 3463 00ce 0B80 strh r3, [r1] - 3464 00d0 9CE7 b .L178 - 3465 .LVL317: - 3466 .L202: - 3467 .LBE44: -1213:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** ep = &hpcd->IN_ep[0]; - 3468 .loc 1 1213 0 - 3469 00d2 0388 ldrh r3, [r0] - 3470 00d4 B04A ldr r2, .L208+20 - 3471 00d6 1340 ands r3, r2 - 3472 00d8 0380 strh r3, [r0] - 3473 .LVL318: -1216:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** ep->xfer_buff += ep->xfer_count; - 3474 .loc 1 1216 0 - 3475 00da 2968 ldr r1, [r5] - 3476 00dc 5023 movs r3, #80 - 3477 00de CB5A ldrh r3, [r1, r3] - 3478 00e0 2822 movs r2, #40 - 3479 00e2 AA5C ldrb r2, [r5, r2] - 3480 00e4 D200 lsls r2, r2, #3 - 3481 00e6 9B18 adds r3, r3, r2 - 3482 00e8 5B18 adds r3, r3, r1 - 3483 00ea AC4A ldr r2, .L208+24 - 3484 00ec 9446 mov ip, r2 - 3485 00ee 6344 add r3, r3, ip - 3486 00f0 1B88 ldrh r3, [r3] - 3487 00f2 9B05 lsls r3, r3, #22 - 3488 00f4 9B0D lsrs r3, r3, #22 - 3489 00f6 2B64 str r3, [r5, #64] -1217:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** - 3490 .loc 1 1217 0 - 3491 00f8 AA6B ldr r2, [r5, #56] - 3492 00fa 9446 mov ip, r2 - 3493 00fc 6344 add r3, r3, ip - 3494 00fe AB63 str r3, [r5, #56] -1220:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** - 3495 .loc 1 1220 0 - 3496 0100 0021 movs r1, #0 - 3497 0102 2800 movs r0, r5 - 3498 0104 FFF7FEFF bl HAL_PCD_DataInStageCallback - 3499 .LVL319: -1223:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** { - 3500 .loc 1 1223 0 - 3501 0108 2423 movs r3, #36 - 3502 010a EB5C ldrb r3, [r5, r3] - 3503 010c 002B cmp r3, #0 - 3504 010e 00D1 bne .LCB3680 - 3505 0110 7CE7 b .L178 @long jump - ARM GAS /tmp/ccY9uCYJ.s page 87 - - - 3506 .LCB3680: -1223:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** { - 3507 .loc 1 1223 0 is_stmt 0 discriminator 1 - 3508 0112 EB6B ldr r3, [r5, #60] - 3509 0114 002B cmp r3, #0 - 3510 0116 00D0 beq .LCB3684 - 3511 0118 78E7 b .L178 @long jump - 3512 .LCB3684: -1225:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** hpcd->USB_Address = 0U; - 3513 .loc 1 1225 0 is_stmt 1 - 3514 011a 2422 movs r2, #36 - 3515 011c AB5C ldrb r3, [r5, r2] - 3516 011e 8021 movs r1, #128 - 3517 0120 4942 rsbs r1, r1, #0 - 3518 0122 0B43 orrs r3, r1 - 3519 0124 DBB2 uxtb r3, r3 - 3520 0126 CC31 adds r1, r1, #204 - 3521 0128 2868 ldr r0, [r5] - 3522 012a 4352 strh r3, [r0, r1] -1226:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** } - 3523 .loc 1 1226 0 - 3524 012c 0023 movs r3, #0 - 3525 012e AB54 strb r3, [r5, r2] - 3526 0130 6CE7 b .L178 - 3527 .LVL320: - 3528 .L203: -1242:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** PCD_ReadPMA(hpcd->Instance, (uint8_t*)(void*)hpcd->Setup ,ep->pmaadress , ep->xfer_count) - 3529 .loc 1 1242 0 - 3530 0132 5023 movs r3, #80 - 3531 0134 C35A ldrh r3, [r0, r3] - 3532 0136 8422 movs r2, #132 - 3533 0138 5200 lsls r2, r2, #1 - 3534 013a AA5C ldrb r2, [r5, r2] - 3535 013c D200 lsls r2, r2, #3 - 3536 013e 9B18 adds r3, r3, r2 - 3537 0140 1B18 adds r3, r3, r0 - 3538 0142 914A ldr r2, .L208+4 - 3539 0144 9446 mov ip, r2 - 3540 0146 6344 add r3, r3, ip - 3541 0148 1B88 ldrh r3, [r3] - 3542 014a 9B05 lsls r3, r3, #22 - 3543 014c 9B0D lsrs r3, r3, #22 - 3544 014e 2A00 movs r2, r5 - 3545 0150 0932 adds r2, r2, #9 - 3546 0152 FF32 adds r2, r2, #255 - 3547 0154 9361 str r3, [r2, #24] -1243:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** /* SETUP bit kept frozen while CTR_RX = 1*/ - 3548 .loc 1 1243 0 - 3549 0156 2900 movs r1, r5 - 3550 0158 ED31 adds r1, r1, #237 - 3551 015a FF31 adds r1, r1, #255 - 3552 015c 9288 ldrh r2, [r2, #4] - 3553 015e FFF7FEFF bl PCD_ReadPMA - 3554 .LVL321: -1245:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** - 3555 .loc 1 1245 0 - 3556 0162 2A68 ldr r2, [r5] - ARM GAS /tmp/ccY9uCYJ.s page 88 - - - 3557 0164 1388 ldrh r3, [r2] - 3558 0166 8749 ldr r1, .L208 - 3559 0168 0B40 ands r3, r1 - 3560 016a 1380 strh r3, [r2] -1248:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** } - 3561 .loc 1 1248 0 - 3562 016c 2800 movs r0, r5 - 3563 016e FFF7FEFF bl HAL_PCD_SetupStageCallback - 3564 .LVL322: - 3565 0172 4BE7 b .L178 - 3566 .L204: -1259:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** ep->xfer_buff+=ep->xfer_count; - 3567 .loc 1 1259 0 - 3568 0174 1400 movs r4, r2 - 3569 .LVL323: - 3570 0176 9288 ldrh r2, [r2, #4] - 3571 0178 2169 ldr r1, [r4, #16] - 3572 017a FFF7FEFF bl PCD_ReadPMA - 3573 .LVL324: -1260:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** } - 3574 .loc 1 1260 0 - 3575 017e 2369 ldr r3, [r4, #16] - 3576 0180 A269 ldr r2, [r4, #24] - 3577 0182 9446 mov ip, r2 - 3578 0184 6344 add r3, r3, ip - 3579 0186 2361 str r3, [r4, #16] - 3580 0188 7BE7 b .L183 - 3581 .LVL325: - 3582 .L184: - 3583 .LBB45: - 3584 .LBB43: -1266:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** PCD_SET_EP_RX_STATUS(hpcd->Instance, PCD_ENDP0, USB_EP_RX_VALID) - 3585 .loc 1 1266 0 discriminator 2 - 3586 018a 4B08 lsrs r3, r1, #1 - 3587 018c 9BB2 uxth r3, r3 - 3588 .LVL326: - 3589 018e C907 lsls r1, r1, #31 - 3590 0190 01D5 bpl .L187 -1266:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** PCD_SET_EP_RX_STATUS(hpcd->Instance, PCD_ENDP0, USB_EP_RX_VALID) - 3591 .loc 1 1266 0 is_stmt 0 discriminator 6 - 3592 0192 0133 adds r3, r3, #1 - 3593 .LVL327: - 3594 0194 9BB2 uxth r3, r3 - 3595 .LVL328: - 3596 .L187: -1266:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** PCD_SET_EP_RX_STATUS(hpcd->Instance, PCD_ENDP0, USB_EP_RX_VALID) - 3597 .loc 1 1266 0 discriminator 8 - 3598 0196 9B02 lsls r3, r3, #10 - 3599 .LVL329: - 3600 0198 1380 strh r3, [r2] - 3601 019a 8EE7 b .L186 - 3602 .LVL330: - 3603 .L179: - 3604 .LBE43: - 3605 .LBE45: -1268:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** } -1269:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** } - ARM GAS /tmp/ccY9uCYJ.s page 89 - - -1270:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** } -1271:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** else -1272:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** { -1273:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** -1274:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** /* Decode and service non control endpoints interrupt */ -1275:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** -1276:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** /* process related endpoint register */ -1277:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** wEPVal = PCD_GET_ENDPOINT(hpcd->Instance, EPindex); - 3606 .loc 1 1277 0 is_stmt 1 - 3607 019c A600 lsls r6, r4, #2 - 3608 019e 8019 adds r0, r0, r6 - 3609 01a0 0388 ldrh r3, [r0] - 3610 01a2 9BB2 uxth r3, r3 - 3611 01a4 01AA add r2, sp, #4 - 3612 01a6 1380 strh r3, [r2] -1278:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** if ((wEPVal & USB_EP_CTR_RX) != 0U) - 3613 .loc 1 1278 0 - 3614 01a8 1388 ldrh r3, [r2] - 3615 01aa 1BB2 sxth r3, r3 - 3616 01ac 002B cmp r3, #0 - 3617 01ae 31DB blt .L205 - 3618 .L188: -1279:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** { -1280:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** /* clear int flag */ -1281:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** PCD_CLEAR_RX_EP_CTR(hpcd->Instance, EPindex); -1282:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** ep = &hpcd->OUT_ep[EPindex]; -1283:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** -1284:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** /* OUT double Buffering*/ -1285:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** if (ep->doublebuffer == 0U) -1286:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** { -1287:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** count = PCD_GET_EP_RX_CNT(hpcd->Instance, ep->num); -1288:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** if (count != 0U) -1289:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** { -1290:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** PCD_ReadPMA(hpcd->Instance, ep->xfer_buff, ep->pmaadress, count); -1291:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** } -1292:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** } -1293:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** else -1294:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** { -1295:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** -1296:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** if ((PCD_GET_ENDPOINT(hpcd->Instance, ep->num)& USB_EP_DTOG_RX) == USB_EP_DTOG_RX) -1297:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** { -1298:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** /*read from endpoint BUF0Addr buffer*/ -1299:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** count = PCD_GET_EP_DBUF0_CNT(hpcd->Instance, ep->num); -1300:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** if (count != 0U) -1301:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** { -1302:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** PCD_ReadPMA(hpcd->Instance, ep->xfer_buff, ep->pmaaddr0, count); -1303:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** } -1304:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** } -1305:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** else -1306:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** { -1307:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** /*read from endpoint BUF1Addr buffer*/ -1308:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** count = PCD_GET_EP_DBUF1_CNT(hpcd->Instance, ep->num); -1309:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** if (count != 0U) -1310:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** { -1311:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** PCD_ReadPMA(hpcd->Instance, ep->xfer_buff, ep->pmaaddr1, count); -1312:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** } -1313:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** } - ARM GAS /tmp/ccY9uCYJ.s page 90 - - -1314:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** PCD_FreeUserBuffer(hpcd->Instance, ep->num, PCD_EP_DBUF_OUT) -1315:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** } -1316:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** /*multi-packet on the NON control OUT endpoint*/ -1317:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** ep->xfer_count+=count; -1318:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** ep->xfer_buff+=count; -1319:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** -1320:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** if ((ep->xfer_len == 0U) || (count < ep->maxpacket)) -1321:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** { -1322:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** /* RX COMPLETE */ -1323:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** HAL_PCD_DataOutStageCallback(hpcd, ep->num); -1324:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** } -1325:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** else -1326:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** { -1327:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** HAL_PCD_EP_Receive(hpcd, ep->num, ep->xfer_buff, ep->xfer_len); -1328:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** } -1329:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** -1330:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** } /* if((wEPVal & EP_CTR_RX) */ -1331:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** -1332:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** if ((wEPVal & USB_EP_CTR_TX) != 0U) - 3619 .loc 1 1332 0 - 3620 01b0 01AB add r3, sp, #4 - 3621 01b2 1B88 ldrh r3, [r3] - 3622 01b4 1B06 lsls r3, r3, #24 - 3623 01b6 00D4 bmi .LCB3820 - 3624 01b8 28E7 b .L178 @long jump - 3625 .LCB3820: - 3626 .LVL331: -1333:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** { -1334:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** ep = &hpcd->IN_ep[EPindex]; -1335:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** -1336:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** /* clear int flag */ -1337:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** PCD_CLEAR_TX_EP_CTR(hpcd->Instance, EPindex); - 3627 .loc 1 1337 0 - 3628 01ba 2B68 ldr r3, [r5] - 3629 01bc 9C46 mov ip, r3 - 3630 01be 6644 add r6, r6, ip - 3631 01c0 3388 ldrh r3, [r6] - 3632 01c2 754A ldr r2, .L208+20 - 3633 01c4 1340 ands r3, r2 - 3634 01c6 3380 strh r3, [r6] -1338:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** -1339:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** /* IN double Buffering*/ -1340:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** if (ep->doublebuffer == 0U) - 3635 .loc 1 1340 0 - 3636 01c8 E200 lsls r2, r4, #3 - 3637 01ca 121B subs r2, r2, r4 - 3638 01cc 9300 lsls r3, r2, #2 - 3639 01ce 1A00 movs r2, r3 - 3640 01d0 EB18 adds r3, r5, r3 - 3641 01d2 3233 adds r3, r3, #50 - 3642 01d4 1B78 ldrb r3, [r3] - 3643 01d6 002B cmp r3, #0 - 3644 01d8 00D0 beq .LCB3840 - 3645 01da E5E0 b .L195 @long jump - 3646 .LCB3840: -1341:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** { -1342:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** ep->xfer_count = PCD_GET_EP_TX_CNT(hpcd->Instance, ep->num); - ARM GAS /tmp/ccY9uCYJ.s page 91 - - - 3647 .loc 1 1342 0 - 3648 01dc 2868 ldr r0, [r5] - 3649 01de 5033 adds r3, r3, #80 - 3650 01e0 C35A ldrh r3, [r0, r3] - 3651 01e2 AA18 adds r2, r5, r2 - 3652 01e4 1100 movs r1, r2 - 3653 01e6 2831 adds r1, r1, #40 - 3654 01e8 0978 ldrb r1, [r1] - 3655 01ea C900 lsls r1, r1, #3 - 3656 01ec 5B18 adds r3, r3, r1 - 3657 01ee 1B18 adds r3, r3, r0 - 3658 01f0 6A49 ldr r1, .L208+24 - 3659 01f2 8C46 mov ip, r1 - 3660 01f4 6344 add r3, r3, ip - 3661 01f6 1B88 ldrh r3, [r3] - 3662 01f8 9B05 lsls r3, r3, #22 - 3663 01fa 9B0D lsrs r3, r3, #22 - 3664 01fc 1364 str r3, [r2, #64] -1343:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** if (ep->xfer_count != 0) - 3665 .loc 1 1343 0 - 3666 01fe 00D1 bne .LCB3862 - 3667 0200 02E1 b .L196 @long jump - 3668 .LCB3862: -1344:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** { -1345:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** PCD_WritePMA(hpcd->Instance, ep->xfer_buff, ep->pmaadress, ep->xfer_count); - 3669 .loc 1 1345 0 - 3670 0202 E200 lsls r2, r4, #3 - 3671 0204 121B subs r2, r2, r4 - 3672 0206 9100 lsls r1, r2, #2 - 3673 0208 6918 adds r1, r5, r1 - 3674 020a 8A8D ldrh r2, [r1, #44] - 3675 020c 896B ldr r1, [r1, #56] - 3676 020e FFF7FEFF bl PCD_WritePMA - 3677 .LVL332: - 3678 0212 F9E0 b .L196 - 3679 .LVL333: - 3680 .L205: -1281:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** ep = &hpcd->OUT_ep[EPindex]; - 3681 .loc 1 1281 0 - 3682 0214 0388 ldrh r3, [r0] - 3683 0216 5B4A ldr r2, .L208 - 3684 0218 1340 ands r3, r2 - 3685 021a 0380 strh r3, [r0] - 3686 .LVL334: -1285:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** { - 3687 .loc 1 1285 0 - 3688 021c E200 lsls r2, r4, #3 - 3689 021e 121B subs r2, r2, r4 - 3690 0220 9300 lsls r3, r2, #2 - 3691 0222 1A00 movs r2, r3 - 3692 0224 EB18 adds r3, r5, r3 - 3693 0226 1333 adds r3, r3, #19 - 3694 0228 FF33 adds r3, r3, #255 - 3695 022a 1B78 ldrb r3, [r3] - 3696 022c 002B cmp r3, #0 - 3697 022e 1DD1 bne .L189 -1287:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** if (count != 0U) - ARM GAS /tmp/ccY9uCYJ.s page 92 - - - 3698 .loc 1 1287 0 - 3699 0230 2868 ldr r0, [r5] - 3700 0232 5033 adds r3, r3, #80 - 3701 0234 C35A ldrh r3, [r0, r3] - 3702 0236 1100 movs r1, r2 - 3703 0238 AA18 adds r2, r5, r2 - 3704 023a 0932 adds r2, r2, #9 - 3705 023c FF32 adds r2, r2, #255 - 3706 023e 1278 ldrb r2, [r2] - 3707 0240 D200 lsls r2, r2, #3 - 3708 0242 9B18 adds r3, r3, r2 - 3709 0244 1B18 adds r3, r3, r0 - 3710 0246 504A ldr r2, .L208+4 - 3711 0248 9446 mov ip, r2 - 3712 024a 6344 add r3, r3, ip - 3713 024c 1F88 ldrh r7, [r3] - 3714 024e BF05 lsls r7, r7, #22 - 3715 0250 BF0D lsrs r7, r7, #22 - 3716 .LVL335: -1288:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** { - 3717 .loc 1 1288 0 - 3718 0252 36D0 beq .L190 -1290:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** } - 3719 .loc 1 1290 0 - 3720 0254 6B18 adds r3, r5, r1 - 3721 0256 1A00 movs r2, r3 - 3722 0258 0D32 adds r2, r2, #13 - 3723 025a FF32 adds r2, r2, #255 - 3724 025c 1288 ldrh r2, [r2] - 3725 025e 1933 adds r3, r3, #25 - 3726 0260 FF33 adds r3, r3, #255 - 3727 0262 1968 ldr r1, [r3] - 3728 0264 3B00 movs r3, r7 - 3729 0266 FFF7FEFF bl PCD_ReadPMA - 3730 .LVL336: - 3731 026a 2AE0 b .L190 - 3732 .LVL337: - 3733 .L189: -1296:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** { - 3734 .loc 1 1296 0 - 3735 026c 2868 ldr r0, [r5] - 3736 026e E200 lsls r2, r4, #3 - 3737 0270 121B subs r2, r2, r4 - 3738 0272 9300 lsls r3, r2, #2 - 3739 0274 EB18 adds r3, r5, r3 - 3740 0276 0933 adds r3, r3, #9 - 3741 0278 FF33 adds r3, r3, #255 - 3742 027a 1B78 ldrb r3, [r3] - 3743 027c 9A00 lsls r2, r3, #2 - 3744 027e 8218 adds r2, r0, r2 - 3745 0280 1288 ldrh r2, [r2] - 3746 0282 5204 lsls r2, r2, #17 - 3747 0284 57D5 bpl .L191 -1299:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** if (count != 0U) - 3748 .loc 1 1299 0 - 3749 0286 5022 movs r2, #80 - 3750 0288 825A ldrh r2, [r0, r2] - ARM GAS /tmp/ccY9uCYJ.s page 93 - - - 3751 028a DB00 lsls r3, r3, #3 - 3752 028c D318 adds r3, r2, r3 - 3753 028e 1B18 adds r3, r3, r0 - 3754 0290 424A ldr r2, .L208+24 - 3755 0292 9446 mov ip, r2 - 3756 0294 6344 add r3, r3, ip - 3757 0296 1F88 ldrh r7, [r3] - 3758 0298 BF05 lsls r7, r7, #22 - 3759 029a BF0D lsrs r7, r7, #22 - 3760 .LVL338: -1300:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** { - 3761 .loc 1 1300 0 - 3762 029c 3CD1 bne .L206 - 3763 .L192: -1314:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** } - 3764 .loc 1 1314 0 discriminator 1 - 3765 029e E200 lsls r2, r4, #3 - 3766 02a0 121B subs r2, r2, r4 - 3767 02a2 9300 lsls r3, r2, #2 - 3768 02a4 EB18 adds r3, r5, r3 - 3769 02a6 0933 adds r3, r3, #9 - 3770 02a8 FF33 adds r3, r3, #255 - 3771 02aa 1A78 ldrb r2, [r3] - 3772 02ac 9200 lsls r2, r2, #2 - 3773 02ae 2B68 ldr r3, [r5] - 3774 02b0 9C46 mov ip, r3 - 3775 02b2 6244 add r2, r2, ip - 3776 02b4 1388 ldrh r3, [r2] - 3777 02b6 3A49 ldr r1, .L208+28 - 3778 02b8 1940 ands r1, r3 - 3779 02ba 3A4B ldr r3, .L208+32 - 3780 02bc 0B43 orrs r3, r1 - 3781 02be 9BB2 uxth r3, r3 - 3782 02c0 1380 strh r3, [r2] - 3783 .L190: -1317:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** ep->xfer_buff+=count; - 3784 .loc 1 1317 0 - 3785 02c2 3900 movs r1, r7 - 3786 02c4 E200 lsls r2, r4, #3 - 3787 02c6 121B subs r2, r2, r4 - 3788 02c8 9300 lsls r3, r2, #2 - 3789 02ca EB18 adds r3, r5, r3 - 3790 02cc 1800 movs r0, r3 - 3791 02ce 2130 adds r0, r0, #33 - 3792 02d0 FF30 adds r0, r0, #255 - 3793 02d2 0268 ldr r2, [r0] - 3794 02d4 D219 adds r2, r2, r7 - 3795 02d6 0260 str r2, [r0] -1318:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** - 3796 .loc 1 1318 0 - 3797 02d8 1A00 movs r2, r3 - 3798 02da 1932 adds r2, r2, #25 - 3799 02dc FF32 adds r2, r2, #255 - 3800 02de 1068 ldr r0, [r2] - 3801 02e0 8446 mov ip, r0 - 3802 02e2 6744 add r7, r7, ip - 3803 .LVL339: - ARM GAS /tmp/ccY9uCYJ.s page 94 - - - 3804 02e4 1760 str r7, [r2] -1320:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** { - 3805 .loc 1 1320 0 - 3806 02e6 1D33 adds r3, r3, #29 - 3807 02e8 FF33 adds r3, r3, #255 - 3808 02ea 1B68 ldr r3, [r3] - 3809 02ec 002B cmp r3, #0 - 3810 02ee 08D0 beq .L193 -1320:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** { - 3811 .loc 1 1320 0 is_stmt 0 discriminator 1 - 3812 02f0 E200 lsls r2, r4, #3 - 3813 02f2 121B subs r2, r2, r4 - 3814 02f4 9000 lsls r0, r2, #2 - 3815 02f6 2818 adds r0, r5, r0 - 3816 02f8 1530 adds r0, r0, #21 - 3817 02fa FF30 adds r0, r0, #255 - 3818 02fc 0268 ldr r2, [r0] - 3819 02fe 9142 cmp r1, r2 - 3820 0300 34D2 bcs .L194 - 3821 .L193: -1323:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** } - 3822 .loc 1 1323 0 is_stmt 1 - 3823 0302 E200 lsls r2, r4, #3 - 3824 0304 121B subs r2, r2, r4 - 3825 0306 9300 lsls r3, r2, #2 - 3826 0308 EB18 adds r3, r5, r3 - 3827 030a 0933 adds r3, r3, #9 - 3828 030c FF33 adds r3, r3, #255 - 3829 030e 1978 ldrb r1, [r3] - 3830 0310 2800 movs r0, r5 - 3831 0312 FFF7FEFF bl HAL_PCD_DataOutStageCallback - 3832 .LVL340: - 3833 0316 4BE7 b .L188 - 3834 .LVL341: - 3835 .L206: -1302:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** } - 3836 .loc 1 1302 0 - 3837 0318 E200 lsls r2, r4, #3 - 3838 031a 121B subs r2, r2, r4 - 3839 031c 9300 lsls r3, r2, #2 - 3840 031e EB18 adds r3, r5, r3 - 3841 0320 1A00 movs r2, r3 - 3842 0322 0F32 adds r2, r2, #15 - 3843 0324 FF32 adds r2, r2, #255 - 3844 0326 1288 ldrh r2, [r2] - 3845 0328 1933 adds r3, r3, #25 - 3846 032a FF33 adds r3, r3, #255 - 3847 032c 1968 ldr r1, [r3] - 3848 032e 3B00 movs r3, r7 - 3849 0330 FFF7FEFF bl PCD_ReadPMA - 3850 .LVL342: - 3851 0334 B3E7 b .L192 - 3852 .LVL343: - 3853 .L191: -1308:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** if (count != 0U) - 3854 .loc 1 1308 0 - 3855 0336 5022 movs r2, #80 - ARM GAS /tmp/ccY9uCYJ.s page 95 - - - 3856 0338 825A ldrh r2, [r0, r2] - 3857 033a DB00 lsls r3, r3, #3 - 3858 033c D318 adds r3, r2, r3 - 3859 033e 1B18 adds r3, r3, r0 - 3860 0340 114A ldr r2, .L208+4 - 3861 0342 9446 mov ip, r2 - 3862 0344 6344 add r3, r3, ip - 3863 0346 1F88 ldrh r7, [r3] - 3864 0348 BF05 lsls r7, r7, #22 - 3865 034a BF0D lsrs r7, r7, #22 - 3866 .LVL344: -1309:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** { - 3867 .loc 1 1309 0 - 3868 034c A7D0 beq .L192 -1311:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** } - 3869 .loc 1 1311 0 - 3870 034e E200 lsls r2, r4, #3 - 3871 0350 121B subs r2, r2, r4 - 3872 0352 9300 lsls r3, r2, #2 - 3873 0354 EB18 adds r3, r5, r3 - 3874 0356 1A00 movs r2, r3 - 3875 0358 1132 adds r2, r2, #17 - 3876 035a FF32 adds r2, r2, #255 - 3877 035c 1288 ldrh r2, [r2] - 3878 035e 1933 adds r3, r3, #25 - 3879 0360 FF33 adds r3, r3, #255 - 3880 0362 1968 ldr r1, [r3] - 3881 0364 3B00 movs r3, r7 - 3882 0366 FFF7FEFF bl PCD_ReadPMA - 3883 .LVL345: - 3884 036a 98E7 b .L192 - 3885 .LVL346: - 3886 .L194: -1327:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** } - 3887 .loc 1 1327 0 - 3888 036c E100 lsls r1, r4, #3 - 3889 036e 091B subs r1, r1, r4 - 3890 0370 8A00 lsls r2, r1, #2 - 3891 0372 AA18 adds r2, r5, r2 - 3892 0374 0932 adds r2, r2, #9 - 3893 0376 FF32 adds r2, r2, #255 - 3894 0378 1178 ldrb r1, [r2] - 3895 037a 3A00 movs r2, r7 - 3896 037c 2800 movs r0, r5 - 3897 037e FFF7FEFF bl HAL_PCD_EP_Receive - 3898 .LVL347: - 3899 0382 15E7 b .L188 - 3900 .L209: - 3901 .align 2 - 3902 .L208: - 3903 0384 8F0F0000 .word 3983 - 3904 0388 06040000 .word 1030 - 3905 038c 0080FFFF .word -32768 - 3906 0390 8FBFFFFF .word -16497 - 3907 0394 8080FFFF .word -32640 - 3908 0398 0F8FFFFF .word -28913 - 3909 039c 02040000 .word 1026 - ARM GAS /tmp/ccY9uCYJ.s page 96 - - - 3910 03a0 0F0F0000 .word 3855 - 3911 03a4 C080FFFF .word -32576 - 3912 .LVL348: - 3913 .L195: -1346:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** } -1347:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** } -1348:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** else -1349:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** { -1350:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** if ((PCD_GET_ENDPOINT(hpcd->Instance, ep->num)& USB_EP_DTOG_TX) == USB_EP_DTOG_TX) - 3914 .loc 1 1350 0 - 3915 03a8 2868 ldr r0, [r5] - 3916 03aa E200 lsls r2, r4, #3 - 3917 03ac 121B subs r2, r2, r4 - 3918 03ae 9300 lsls r3, r2, #2 - 3919 03b0 EB18 adds r3, r5, r3 - 3920 03b2 2833 adds r3, r3, #40 - 3921 03b4 1B78 ldrb r3, [r3] - 3922 03b6 9A00 lsls r2, r3, #2 - 3923 03b8 8218 adds r2, r0, r2 - 3924 03ba 1288 ldrh r2, [r2] - 3925 03bc 5206 lsls r2, r2, #25 - 3926 03be 4ED5 bpl .L197 -1351:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** { -1352:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** /*read from endpoint BUF0Addr buffer*/ -1353:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** ep->xfer_count = PCD_GET_EP_DBUF0_CNT(hpcd->Instance, ep->num); - 3927 .loc 1 1353 0 - 3928 03c0 5022 movs r2, #80 - 3929 03c2 825A ldrh r2, [r0, r2] - 3930 03c4 DB00 lsls r3, r3, #3 - 3931 03c6 D318 adds r3, r2, r3 - 3932 03c8 1B18 adds r3, r3, r0 - 3933 03ca 384A ldr r2, .L210 - 3934 03cc 9446 mov ip, r2 - 3935 03ce 6344 add r3, r3, ip - 3936 03d0 1B88 ldrh r3, [r3] - 3937 03d2 9B05 lsls r3, r3, #22 - 3938 03d4 9B0D lsrs r3, r3, #22 - 3939 03d6 E100 lsls r1, r4, #3 - 3940 03d8 091B subs r1, r1, r4 - 3941 03da 8A00 lsls r2, r1, #2 - 3942 03dc 1100 movs r1, r2 - 3943 03de AA18 adds r2, r5, r2 - 3944 03e0 1364 str r3, [r2, #64] -1354:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** if (ep->xfer_count != 0U) - 3945 .loc 1 1354 0 - 3946 03e2 002B cmp r3, #0 - 3947 03e4 35D1 bne .L207 - 3948 .L198: -1355:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** { -1356:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** PCD_WritePMA(hpcd->Instance, ep->xfer_buff, ep->pmaaddr0, ep->xfer_count); -1357:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** } -1358:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** } -1359:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** else -1360:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** { -1361:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** /*read from endpoint BUF1Addr buffer*/ -1362:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** ep->xfer_count = PCD_GET_EP_DBUF1_CNT(hpcd->Instance, ep->num); -1363:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** if (ep->xfer_count != 0U) - ARM GAS /tmp/ccY9uCYJ.s page 97 - - -1364:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** { -1365:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** PCD_WritePMA(hpcd->Instance, ep->xfer_buff, ep->pmaaddr1, ep->xfer_count); -1366:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** } -1367:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** } -1368:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** PCD_FreeUserBuffer(hpcd->Instance, ep->num, PCD_EP_DBUF_IN) - 3949 .loc 1 1368 0 discriminator 3 - 3950 03e6 E200 lsls r2, r4, #3 - 3951 03e8 121B subs r2, r2, r4 - 3952 03ea 9300 lsls r3, r2, #2 - 3953 03ec EB18 adds r3, r5, r3 - 3954 03ee 2833 adds r3, r3, #40 - 3955 03f0 1A78 ldrb r2, [r3] - 3956 03f2 9200 lsls r2, r2, #2 - 3957 03f4 2B68 ldr r3, [r5] - 3958 03f6 9C46 mov ip, r3 - 3959 03f8 6244 add r2, r2, ip - 3960 03fa 1388 ldrh r3, [r2] - 3961 03fc 2C49 ldr r1, .L210+4 - 3962 03fe 1940 ands r1, r3 - 3963 0400 2C4B ldr r3, .L210+8 - 3964 0402 0B43 orrs r3, r1 - 3965 0404 9BB2 uxth r3, r3 - 3966 0406 1380 strh r3, [r2] - 3967 .L196: -1369:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** } -1370:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** /*multi-packet on the NON control IN endpoint*/ -1371:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** ep->xfer_count = PCD_GET_EP_TX_CNT(hpcd->Instance, ep->num); - 3968 .loc 1 1371 0 - 3969 0408 2868 ldr r0, [r5] - 3970 040a 5023 movs r3, #80 - 3971 040c C25A ldrh r2, [r0, r3] - 3972 040e E100 lsls r1, r4, #3 - 3973 0410 091B subs r1, r1, r4 - 3974 0412 8B00 lsls r3, r1, #2 - 3975 0414 EB18 adds r3, r5, r3 - 3976 0416 1900 movs r1, r3 - 3977 0418 2831 adds r1, r1, #40 - 3978 041a 0978 ldrb r1, [r1] - 3979 041c C900 lsls r1, r1, #3 - 3980 041e 5218 adds r2, r2, r1 - 3981 0420 1218 adds r2, r2, r0 - 3982 0422 2249 ldr r1, .L210 - 3983 0424 8C46 mov ip, r1 - 3984 0426 6244 add r2, r2, ip - 3985 0428 1288 ldrh r2, [r2] - 3986 042a 9205 lsls r2, r2, #22 - 3987 042c 920D lsrs r2, r2, #22 - 3988 042e 1A64 str r2, [r3, #64] -1372:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** ep->xfer_buff+=ep->xfer_count; - 3989 .loc 1 1372 0 - 3990 0430 996B ldr r1, [r3, #56] - 3991 0432 8C46 mov ip, r1 - 3992 0434 6244 add r2, r2, ip - 3993 0436 9A63 str r2, [r3, #56] -1373:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** -1374:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** /* Zero Length Packet? */ -1375:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** if (ep->xfer_len == 0U) - ARM GAS /tmp/ccY9uCYJ.s page 98 - - - 3994 .loc 1 1375 0 - 3995 0438 DB6B ldr r3, [r3, #60] - 3996 043a 002B cmp r3, #0 - 3997 043c 28D1 bne .L199 -1376:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** { -1377:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** /* TX COMPLETE */ -1378:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** HAL_PCD_DataInStageCallback(hpcd, ep->num); - 3998 .loc 1 1378 0 - 3999 043e E300 lsls r3, r4, #3 - 4000 0440 1C1B subs r4, r3, r4 - 4001 .LVL349: - 4002 0442 A300 lsls r3, r4, #2 - 4003 0444 EB18 adds r3, r5, r3 - 4004 0446 2833 adds r3, r3, #40 - 4005 0448 1978 ldrb r1, [r3] - 4006 044a 2800 movs r0, r5 - 4007 044c FFF7FEFF bl HAL_PCD_DataInStageCallback - 4008 .LVL350: - 4009 0450 DCE5 b .L178 - 4010 .LVL351: - 4011 .L207: -1356:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** } - 4012 .loc 1 1356 0 - 4013 0452 6918 adds r1, r5, r1 - 4014 0454 CA8D ldrh r2, [r1, #46] - 4015 0456 896B ldr r1, [r1, #56] - 4016 0458 FFF7FEFF bl PCD_WritePMA - 4017 .LVL352: - 4018 045c C3E7 b .L198 - 4019 .L197: -1362:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** if (ep->xfer_count != 0U) - 4020 .loc 1 1362 0 - 4021 045e 5022 movs r2, #80 - 4022 0460 825A ldrh r2, [r0, r2] - 4023 0462 DB00 lsls r3, r3, #3 - 4024 0464 D318 adds r3, r2, r3 - 4025 0466 1B18 adds r3, r3, r0 - 4026 0468 134A ldr r2, .L210+12 - 4027 046a 9446 mov ip, r2 - 4028 046c 6344 add r3, r3, ip - 4029 046e 1B88 ldrh r3, [r3] - 4030 0470 9B05 lsls r3, r3, #22 - 4031 0472 9B0D lsrs r3, r3, #22 - 4032 0474 E100 lsls r1, r4, #3 - 4033 0476 091B subs r1, r1, r4 - 4034 0478 8A00 lsls r2, r1, #2 - 4035 047a 1100 movs r1, r2 - 4036 047c AA18 adds r2, r5, r2 - 4037 047e 1364 str r3, [r2, #64] -1363:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** { - 4038 .loc 1 1363 0 - 4039 0480 002B cmp r3, #0 - 4040 0482 B0D0 beq .L198 -1365:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** } - 4041 .loc 1 1365 0 - 4042 0484 6918 adds r1, r5, r1 - 4043 0486 0A8E ldrh r2, [r1, #48] - ARM GAS /tmp/ccY9uCYJ.s page 99 - - - 4044 0488 896B ldr r1, [r1, #56] - 4045 048a FFF7FEFF bl PCD_WritePMA - 4046 .LVL353: - 4047 048e AAE7 b .L198 - 4048 .L199: -1379:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** } -1380:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** else -1381:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** { -1382:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** HAL_PCD_EP_Transmit(hpcd, ep->num, ep->xfer_buff, ep->xfer_len); - 4049 .loc 1 1382 0 - 4050 0490 E100 lsls r1, r4, #3 - 4051 0492 0C1B subs r4, r1, r4 - 4052 .LVL354: - 4053 0494 A100 lsls r1, r4, #2 - 4054 0496 6918 adds r1, r5, r1 - 4055 0498 2831 adds r1, r1, #40 - 4056 049a 0978 ldrb r1, [r1] - 4057 049c 2800 movs r0, r5 - 4058 049e FFF7FEFF bl HAL_PCD_EP_Transmit - 4059 .LVL355: - 4060 04a2 B3E5 b .L178 - 4061 .L201: -1383:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** } -1384:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** } -1385:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** } -1386:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** } -1387:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** return HAL_OK; -1388:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** } - 4062 .loc 1 1388 0 - 4063 04a4 0020 movs r0, #0 - 4064 04a6 03B0 add sp, sp, #12 - 4065 @ sp needed - 4066 .LVL356: - 4067 04a8 F0BD pop {r4, r5, r6, r7, pc} - 4068 .L211: - 4069 04aa C046 .align 2 - 4070 .L210: - 4071 04ac 02040000 .word 1026 - 4072 04b0 0F0F0000 .word 3855 - 4073 04b4 80C0FFFF .word -16256 - 4074 04b8 06040000 .word 1030 - 4075 .cfi_endproc - 4076 .LFE71: - 4078 .section .text.HAL_PCD_IRQHandler,"ax",%progbits - 4079 .align 1 - 4080 .global HAL_PCD_IRQHandler - 4081 .syntax unified - 4082 .code 16 - 4083 .thumb_func - 4084 .fpu softvfp - 4086 HAL_PCD_IRQHandler: - 4087 .LFB43: - 328:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** uint32_t wInterrupt_Mask = 0U; - 4088 .loc 1 328 0 - 4089 .cfi_startproc - 4090 @ args = 0, pretend = 0, frame = 0 - 4091 @ frame_needed = 0, uses_anonymous_args = 0 - ARM GAS /tmp/ccY9uCYJ.s page 100 - - - 4092 .LVL357: - 4093 0000 70B5 push {r4, r5, r6, lr} - 4094 .LCFI15: - 4095 .cfi_def_cfa_offset 16 - 4096 .cfi_offset 4, -16 - 4097 .cfi_offset 5, -12 - 4098 .cfi_offset 6, -8 - 4099 .cfi_offset 14, -4 - 4100 0002 0400 movs r4, r0 - 4101 .LVL358: - 331:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** { - 4102 .loc 1 331 0 - 4103 0004 4423 movs r3, #68 - 4104 0006 0268 ldr r2, [r0] - 4105 0008 D35A ldrh r3, [r2, r3] - 4106 000a 1BB2 sxth r3, r3 - 4107 000c 002B cmp r3, #0 - 4108 000e 46DB blt .L221 - 4109 .LVL359: - 4110 .L213: - 338:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** { - 4111 .loc 1 338 0 - 4112 0010 2368 ldr r3, [r4] - 4113 0012 4422 movs r2, #68 - 4114 0014 9A5A ldrh r2, [r3, r2] - 4115 0016 5205 lsls r2, r2, #21 - 4116 0018 44D4 bmi .L222 - 4117 .L214: - 345:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** { - 4118 .loc 1 345 0 - 4119 001a 2368 ldr r3, [r4] - 4120 001c 4422 movs r2, #68 - 4121 001e 9A5A ldrh r2, [r3, r2] - 4122 0020 5204 lsls r2, r2, #17 - 4123 0022 04D5 bpl .L215 - 347:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** } - 4124 .loc 1 347 0 - 4125 0024 4421 movs r1, #68 - 4126 0026 5A5A ldrh r2, [r3, r1] - 4127 0028 3448 ldr r0, .L226 - 4128 002a 0240 ands r2, r0 - 4129 002c 5A52 strh r2, [r3, r1] - 4130 .L215: - 350:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** { - 4131 .loc 1 350 0 - 4132 002e 2368 ldr r3, [r4] - 4133 0030 4422 movs r2, #68 - 4134 0032 9A5A ldrh r2, [r3, r2] - 4135 0034 9204 lsls r2, r2, #18 - 4136 0036 04D5 bpl .L216 - 352:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** } - 4137 .loc 1 352 0 - 4138 0038 4421 movs r1, #68 - 4139 003a 5A5A ldrh r2, [r3, r1] - 4140 003c 3048 ldr r0, .L226+4 - 4141 003e 0240 ands r2, r0 - 4142 0040 5A52 strh r2, [r3, r1] - ARM GAS /tmp/ccY9uCYJ.s page 101 - - - 4143 .L216: - 355:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** { - 4144 .loc 1 355 0 - 4145 0042 2368 ldr r3, [r4] - 4146 0044 4422 movs r2, #68 - 4147 0046 9A5A ldrh r2, [r3, r2] - 4148 0048 D204 lsls r2, r2, #19 - 4149 004a 38D4 bmi .L223 - 4150 .LVL360: - 4151 .L217: - 372:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** { - 4152 .loc 1 372 0 - 4153 004c 2368 ldr r3, [r4] - 4154 004e 4422 movs r2, #68 - 4155 0050 9A5A ldrh r2, [r3, r2] - 4156 0052 1205 lsls r2, r2, #20 - 4157 0054 13D5 bpl .L218 - 375:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** - 4158 .loc 1 375 0 - 4159 0056 4422 movs r2, #68 - 4160 0058 995A ldrh r1, [r3, r2] - 4161 005a 2A48 ldr r0, .L226+8 - 4162 005c 0140 ands r1, r0 - 4163 005e 9952 strh r1, [r3, r2] - 378:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** hpcd->Instance->CNTR |= USB_CNTR_LPMODE; - 4164 .loc 1 378 0 - 4165 0060 2068 ldr r0, [r4] - 4166 0062 4023 movs r3, #64 - 4167 0064 C15A ldrh r1, [r0, r3] - 4168 0066 0825 movs r5, #8 - 4169 0068 2943 orrs r1, r5 - 4170 006a C152 strh r1, [r0, r3] - 379:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** - 4171 .loc 1 379 0 - 4172 006c 2068 ldr r0, [r4] - 4173 006e C15A ldrh r1, [r0, r3] - 4174 0070 0425 movs r5, #4 - 4175 0072 2943 orrs r1, r5 - 4176 0074 C152 strh r1, [r0, r3] - 381:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** { - 4177 .loc 1 381 0 - 4178 0076 2368 ldr r3, [r4] - 4179 0078 9B5A ldrh r3, [r3, r2] - 4180 007a DB04 lsls r3, r3, #19 - 4181 007c 31D5 bpl .L224 - 4182 .L218: - 387:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** { - 4183 .loc 1 387 0 - 4184 007e 2368 ldr r3, [r4] - 4185 0080 4422 movs r2, #68 - 4186 0082 9A5A ldrh r2, [r3, r2] - 4187 0084 9205 lsls r2, r2, #22 - 4188 0086 30D4 bmi .L225 - 4189 .L219: - 393:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** { - 4190 .loc 1 393 0 - 4191 0088 2368 ldr r3, [r4] - ARM GAS /tmp/ccY9uCYJ.s page 102 - - - 4192 008a 4422 movs r2, #68 - 4193 008c 9A5A ldrh r2, [r3, r2] - 4194 008e D205 lsls r2, r2, #23 - 4195 0090 04D5 bpl .L212 - 396:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** } - 4196 .loc 1 396 0 - 4197 0092 4421 movs r1, #68 - 4198 0094 5A5A ldrh r2, [r3, r1] - 4199 0096 1C48 ldr r0, .L226+12 - 4200 0098 0240 ands r2, r0 - 4201 009a 5A52 strh r2, [r3, r1] - 4202 .L212: - 398:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** - 4203 .loc 1 398 0 - 4204 @ sp needed - 4205 .LVL361: - 4206 009c 70BD pop {r4, r5, r6, pc} - 4207 .LVL362: - 4208 .L221: - 335:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** } - 4209 .loc 1 335 0 - 4210 009e FFF7FEFF bl PCD_EP_ISR_Handler - 4211 .LVL363: - 4212 00a2 B5E7 b .L213 - 4213 .L222: - 340:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** HAL_PCD_ResetCallback(hpcd); - 4214 .loc 1 340 0 - 4215 00a4 4421 movs r1, #68 - 4216 00a6 5A5A ldrh r2, [r3, r1] - 4217 00a8 1848 ldr r0, .L226+16 - 4218 00aa 0240 ands r2, r0 - 4219 00ac 5A52 strh r2, [r3, r1] - 341:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** HAL_PCD_SetAddress(hpcd, 0U); - 4220 .loc 1 341 0 - 4221 00ae 2000 movs r0, r4 - 4222 00b0 FFF7FEFF bl HAL_PCD_ResetCallback - 4223 .LVL364: - 342:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** } - 4224 .loc 1 342 0 - 4225 00b4 0021 movs r1, #0 - 4226 00b6 2000 movs r0, r4 - 4227 00b8 FFF7FEFF bl HAL_PCD_SetAddress - 4228 .LVL365: - 4229 00bc ADE7 b .L214 - 4230 .L223: - 358:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** - 4231 .loc 1 358 0 - 4232 00be 4022 movs r2, #64 - 4233 00c0 995A ldrh r1, [r3, r2] - 4234 00c2 0420 movs r0, #4 - 4235 00c4 8143 bics r1, r0 - 4236 00c6 9952 strh r1, [r3, r2] - 4237 .LVL366: - 365:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** - 4238 .loc 1 365 0 - 4239 00c8 114B ldr r3, .L226+20 - 4240 00ca 2168 ldr r1, [r4] - ARM GAS /tmp/ccY9uCYJ.s page 103 - - - 4241 00cc 8B52 strh r3, [r1, r2] - 367:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** - 4242 .loc 1 367 0 - 4243 00ce 2000 movs r0, r4 - 4244 00d0 FFF7FEFF bl HAL_PCD_ResumeCallback - 4245 .LVL367: - 369:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** } - 4246 .loc 1 369 0 - 4247 00d4 2168 ldr r1, [r4] - 4248 00d6 4422 movs r2, #68 - 4249 00d8 8B5A ldrh r3, [r1, r2] - 4250 00da 0E48 ldr r0, .L226+24 - 4251 00dc 0340 ands r3, r0 - 4252 00de 8B52 strh r3, [r1, r2] - 4253 00e0 B4E7 b .L217 - 4254 .LVL368: - 4255 .L224: - 383:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** } - 4256 .loc 1 383 0 - 4257 00e2 2000 movs r0, r4 - 4258 00e4 FFF7FEFF bl HAL_PCD_SuspendCallback - 4259 .LVL369: - 4260 00e8 C9E7 b .L218 - 4261 .L225: - 389:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** HAL_PCD_SOFCallback(hpcd); - 4262 .loc 1 389 0 - 4263 00ea 4421 movs r1, #68 - 4264 00ec 5A5A ldrh r2, [r3, r1] - 4265 00ee 0A48 ldr r0, .L226+28 - 4266 00f0 0240 ands r2, r0 - 4267 00f2 5A52 strh r2, [r3, r1] - 390:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c **** } - 4268 .loc 1 390 0 - 4269 00f4 2000 movs r0, r4 - 4270 00f6 FFF7FEFF bl HAL_PCD_SOFCallback - 4271 .LVL370: - 4272 00fa C5E7 b .L219 - 4273 .L227: - 4274 .align 2 - 4275 .L226: - 4276 00fc FFBFFFFF .word -16385 - 4277 0100 FFDFFFFF .word -8193 - 4278 0104 FFF7FFFF .word -2049 - 4279 0108 FFFEFFFF .word -257 - 4280 010c FFFBFFFF .word -1025 - 4281 0110 00BDFFFF .word -17152 - 4282 0114 FFEFFFFF .word -4097 - 4283 0118 FFFDFFFF .word -513 - 4284 .cfi_endproc - 4285 .LFE43: - 4287 .text - 4288 .Letext0: - 4289 .file 2 "/home/janhenrik/programme/gcc-arm-none-eabi-7-2018-q2-update/arm-none-eabi/include/machin - 4290 .file 3 "/home/janhenrik/programme/gcc-arm-none-eabi-7-2018-q2-update/arm-none-eabi/include/sys/_s - 4291 .file 4 "Drivers/CMSIS/Device/ST/STM32F0xx/Include/system_stm32f0xx.h" - 4292 .file 5 "Drivers/CMSIS/Device/ST/STM32F0xx/Include/stm32f072xb.h" - 4293 .file 6 "/home/janhenrik/programme/gcc-arm-none-eabi-7-2018-q2-update/arm-none-eabi/include/sys/lo - ARM GAS /tmp/ccY9uCYJ.s page 104 - - - 4294 .file 7 "/home/janhenrik/programme/gcc-arm-none-eabi-7-2018-q2-update/arm-none-eabi/include/sys/_t - 4295 .file 8 "/home/janhenrik/programme/gcc-arm-none-eabi-7-2018-q2-update/lib/gcc/arm-none-eabi/7.3.1/ - 4296 .file 9 "/home/janhenrik/programme/gcc-arm-none-eabi-7-2018-q2-update/arm-none-eabi/include/sys/re - 4297 .file 10 "Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_def.h" - 4298 .file 11 "Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_pcd.h" - ARM GAS /tmp/ccY9uCYJ.s page 105 - - -DEFINED SYMBOLS - *ABS*:0000000000000000 stm32f0xx_hal_pcd.c - /tmp/ccY9uCYJ.s:16 .text.HAL_PCD_MspInit:0000000000000000 $t - /tmp/ccY9uCYJ.s:23 .text.HAL_PCD_MspInit:0000000000000000 HAL_PCD_MspInit - /tmp/ccY9uCYJ.s:39 .text.HAL_PCD_Init:0000000000000000 $t - /tmp/ccY9uCYJ.s:46 .text.HAL_PCD_Init:0000000000000000 HAL_PCD_Init - /tmp/ccY9uCYJ.s:212 .text.HAL_PCD_Init:00000000000000bc $d - /tmp/ccY9uCYJ.s:217 .text.HAL_PCD_MspDeInit:0000000000000000 $t - /tmp/ccY9uCYJ.s:224 .text.HAL_PCD_MspDeInit:0000000000000000 HAL_PCD_MspDeInit - /tmp/ccY9uCYJ.s:239 .text.HAL_PCD_Start:0000000000000000 $t - /tmp/ccY9uCYJ.s:246 .text.HAL_PCD_Start:0000000000000000 HAL_PCD_Start - /tmp/ccY9uCYJ.s:270 .text.HAL_PCD_Start:0000000000000014 $d - /tmp/ccY9uCYJ.s:275 .text.HAL_PCD_Stop:0000000000000000 $t - /tmp/ccY9uCYJ.s:282 .text.HAL_PCD_Stop:0000000000000000 HAL_PCD_Stop - /tmp/ccY9uCYJ.s:336 .text.HAL_PCD_DeInit:0000000000000000 $t - /tmp/ccY9uCYJ.s:343 .text.HAL_PCD_DeInit:0000000000000000 HAL_PCD_DeInit - /tmp/ccY9uCYJ.s:392 .text.HAL_PCD_DataOutStageCallback:0000000000000000 $t - /tmp/ccY9uCYJ.s:399 .text.HAL_PCD_DataOutStageCallback:0000000000000000 HAL_PCD_DataOutStageCallback - /tmp/ccY9uCYJ.s:414 .text.HAL_PCD_DataInStageCallback:0000000000000000 $t - /tmp/ccY9uCYJ.s:421 .text.HAL_PCD_DataInStageCallback:0000000000000000 HAL_PCD_DataInStageCallback - /tmp/ccY9uCYJ.s:436 .text.HAL_PCD_SetupStageCallback:0000000000000000 $t - /tmp/ccY9uCYJ.s:443 .text.HAL_PCD_SetupStageCallback:0000000000000000 HAL_PCD_SetupStageCallback - /tmp/ccY9uCYJ.s:458 .text.HAL_PCD_SOFCallback:0000000000000000 $t - /tmp/ccY9uCYJ.s:465 .text.HAL_PCD_SOFCallback:0000000000000000 HAL_PCD_SOFCallback - /tmp/ccY9uCYJ.s:480 .text.HAL_PCD_ResetCallback:0000000000000000 $t - /tmp/ccY9uCYJ.s:487 .text.HAL_PCD_ResetCallback:0000000000000000 HAL_PCD_ResetCallback - /tmp/ccY9uCYJ.s:502 .text.HAL_PCD_SuspendCallback:0000000000000000 $t - /tmp/ccY9uCYJ.s:509 .text.HAL_PCD_SuspendCallback:0000000000000000 HAL_PCD_SuspendCallback - /tmp/ccY9uCYJ.s:524 .text.HAL_PCD_ResumeCallback:0000000000000000 $t - /tmp/ccY9uCYJ.s:531 .text.HAL_PCD_ResumeCallback:0000000000000000 HAL_PCD_ResumeCallback - /tmp/ccY9uCYJ.s:546 .text.HAL_PCD_ISOOUTIncompleteCallback:0000000000000000 $t - /tmp/ccY9uCYJ.s:553 .text.HAL_PCD_ISOOUTIncompleteCallback:0000000000000000 HAL_PCD_ISOOUTIncompleteCallback - /tmp/ccY9uCYJ.s:568 .text.HAL_PCD_ISOINIncompleteCallback:0000000000000000 $t - /tmp/ccY9uCYJ.s:575 .text.HAL_PCD_ISOINIncompleteCallback:0000000000000000 HAL_PCD_ISOINIncompleteCallback - /tmp/ccY9uCYJ.s:590 .text.HAL_PCD_ConnectCallback:0000000000000000 $t - /tmp/ccY9uCYJ.s:597 .text.HAL_PCD_ConnectCallback:0000000000000000 HAL_PCD_ConnectCallback - /tmp/ccY9uCYJ.s:612 .text.HAL_PCD_DisconnectCallback:0000000000000000 $t - /tmp/ccY9uCYJ.s:619 .text.HAL_PCD_DisconnectCallback:0000000000000000 HAL_PCD_DisconnectCallback - /tmp/ccY9uCYJ.s:634 .text.HAL_PCD_DevConnect:0000000000000000 $t - /tmp/ccY9uCYJ.s:641 .text.HAL_PCD_DevConnect:0000000000000000 HAL_PCD_DevConnect - /tmp/ccY9uCYJ.s:692 .text.HAL_PCD_DevConnect:0000000000000030 $d - /tmp/ccY9uCYJ.s:697 .text.HAL_PCD_DevDisconnect:0000000000000000 $t - /tmp/ccY9uCYJ.s:704 .text.HAL_PCD_DevDisconnect:0000000000000000 HAL_PCD_DevDisconnect - /tmp/ccY9uCYJ.s:754 .text.HAL_PCD_SetAddress:0000000000000000 $t - /tmp/ccY9uCYJ.s:761 .text.HAL_PCD_SetAddress:0000000000000000 HAL_PCD_SetAddress - /tmp/ccY9uCYJ.s:818 .text.HAL_PCD_EP_Open:0000000000000000 $t - /tmp/ccY9uCYJ.s:825 .text.HAL_PCD_EP_Open:0000000000000000 HAL_PCD_EP_Open - /tmp/ccY9uCYJ.s:1417 .text.HAL_PCD_EP_Open:0000000000000358 $d - /tmp/ccY9uCYJ.s:1436 .text.HAL_PCD_EP_Close:0000000000000000 $t - /tmp/ccY9uCYJ.s:1443 .text.HAL_PCD_EP_Close:0000000000000000 HAL_PCD_EP_Close - /tmp/ccY9uCYJ.s:1782 .text.HAL_PCD_EP_Close:00000000000001e0 $d - /tmp/ccY9uCYJ.s:1792 .text.HAL_PCD_EP_Receive:0000000000000000 $t - /tmp/ccY9uCYJ.s:1799 .text.HAL_PCD_EP_Receive:0000000000000000 HAL_PCD_EP_Receive - /tmp/ccY9uCYJ.s:2197 .text.HAL_PCD_EP_Receive:00000000000001f0 $d - /tmp/ccY9uCYJ.s:2206 .text.HAL_PCD_EP_GetRxCount:0000000000000000 $t - /tmp/ccY9uCYJ.s:2213 .text.HAL_PCD_EP_GetRxCount:0000000000000000 HAL_PCD_EP_GetRxCount - /tmp/ccY9uCYJ.s:2240 .text.HAL_PCD_EP_SetStall:0000000000000000 $t - ARM GAS /tmp/ccY9uCYJ.s page 106 - - - /tmp/ccY9uCYJ.s:2247 .text.HAL_PCD_EP_SetStall:0000000000000000 HAL_PCD_EP_SetStall - /tmp/ccY9uCYJ.s:2400 .text.HAL_PCD_EP_SetStall:00000000000000b4 $d - /tmp/ccY9uCYJ.s:2409 .text.HAL_PCD_EP_ClrStall:0000000000000000 $t - /tmp/ccY9uCYJ.s:2416 .text.HAL_PCD_EP_ClrStall:0000000000000000 HAL_PCD_EP_ClrStall - /tmp/ccY9uCYJ.s:2583 .text.HAL_PCD_EP_ClrStall:00000000000000d4 $d - /tmp/ccY9uCYJ.s:2593 .text.HAL_PCD_EP_Flush:0000000000000000 $t - /tmp/ccY9uCYJ.s:2600 .text.HAL_PCD_EP_Flush:0000000000000000 HAL_PCD_EP_Flush - /tmp/ccY9uCYJ.s:2617 .text.HAL_PCD_ActivateRemoteWakeup:0000000000000000 $t - /tmp/ccY9uCYJ.s:2624 .text.HAL_PCD_ActivateRemoteWakeup:0000000000000000 HAL_PCD_ActivateRemoteWakeup - /tmp/ccY9uCYJ.s:2664 .text.HAL_PCD_DeActivateRemoteWakeup:0000000000000000 $t - /tmp/ccY9uCYJ.s:2671 .text.HAL_PCD_DeActivateRemoteWakeup:0000000000000000 HAL_PCD_DeActivateRemoteWakeup - /tmp/ccY9uCYJ.s:2711 .text.HAL_PCD_GetState:0000000000000000 $t - /tmp/ccY9uCYJ.s:2718 .text.HAL_PCD_GetState:0000000000000000 HAL_PCD_GetState - /tmp/ccY9uCYJ.s:2739 .text.PCD_WritePMA:0000000000000000 $t - /tmp/ccY9uCYJ.s:2746 .text.PCD_WritePMA:0000000000000000 PCD_WritePMA - /tmp/ccY9uCYJ.s:2806 .text.HAL_PCD_EP_Transmit:0000000000000000 $t - /tmp/ccY9uCYJ.s:2813 .text.HAL_PCD_EP_Transmit:0000000000000000 HAL_PCD_EP_Transmit - /tmp/ccY9uCYJ.s:3207 .text.HAL_PCD_EP_Transmit:0000000000000200 $d - /tmp/ccY9uCYJ.s:3219 .text.PCD_ReadPMA:0000000000000000 $t - /tmp/ccY9uCYJ.s:3226 .text.PCD_ReadPMA:0000000000000000 PCD_ReadPMA - /tmp/ccY9uCYJ.s:3296 .text.PCD_EP_ISR_Handler:0000000000000000 $t - /tmp/ccY9uCYJ.s:3302 .text.PCD_EP_ISR_Handler:0000000000000000 PCD_EP_ISR_Handler - /tmp/ccY9uCYJ.s:3903 .text.PCD_EP_ISR_Handler:0000000000000384 $d - /tmp/ccY9uCYJ.s:3915 .text.PCD_EP_ISR_Handler:00000000000003a8 $t - /tmp/ccY9uCYJ.s:4071 .text.PCD_EP_ISR_Handler:00000000000004ac $d - /tmp/ccY9uCYJ.s:4079 .text.HAL_PCD_IRQHandler:0000000000000000 $t - /tmp/ccY9uCYJ.s:4086 .text.HAL_PCD_IRQHandler:0000000000000000 HAL_PCD_IRQHandler - /tmp/ccY9uCYJ.s:4276 .text.HAL_PCD_IRQHandler:00000000000000fc $d - -NO UNDEFINED SYMBOLS diff --git a/firmware/build/stm32f0xx_hal_pcd.o b/firmware/build/stm32f0xx_hal_pcd.o deleted file mode 100644 index 81b4809..0000000 Binary files a/firmware/build/stm32f0xx_hal_pcd.o and /dev/null differ diff --git a/firmware/build/stm32f0xx_hal_pcd_ex.d b/firmware/build/stm32f0xx_hal_pcd_ex.d deleted file mode 100644 index 96facc8..0000000 --- a/firmware/build/stm32f0xx_hal_pcd_ex.d +++ /dev/null @@ -1,87 +0,0 @@ -build/stm32f0xx_hal_pcd_ex.o: \ - Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd_ex.c \ - Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal.h \ - Inc/stm32f0xx_hal_conf.h \ - Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_rcc.h \ - Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_def.h \ - Drivers/CMSIS/Device/ST/STM32F0xx/Include/stm32f0xx.h \ - Drivers/CMSIS/Device/ST/STM32F0xx/Include/stm32f072xb.h \ - Drivers/CMSIS/Include/core_cm0.h Drivers/CMSIS/Include/core_cmInstr.h \ - Drivers/CMSIS/Include/cmsis_gcc.h Drivers/CMSIS/Include/core_cmFunc.h \ - Drivers/CMSIS/Device/ST/STM32F0xx/Include/system_stm32f0xx.h \ - Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_rcc_ex.h \ - Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_gpio.h \ - Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_gpio_ex.h \ - Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_dma.h \ - Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_dma_ex.h \ - Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_cortex.h \ - Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_adc.h \ - Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_adc_ex.h \ - Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_flash.h \ - Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_flash_ex.h \ - Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_i2c.h \ - Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_i2c_ex.h \ - Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_pcd.h \ - Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_pcd_ex.h \ - Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_pwr.h \ - Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_pwr_ex.h \ - Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_tim.h \ - Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_tim_ex.h - -Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal.h: - -Inc/stm32f0xx_hal_conf.h: - -Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_rcc.h: - -Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_def.h: - -Drivers/CMSIS/Device/ST/STM32F0xx/Include/stm32f0xx.h: - -Drivers/CMSIS/Device/ST/STM32F0xx/Include/stm32f072xb.h: - -Drivers/CMSIS/Include/core_cm0.h: - -Drivers/CMSIS/Include/core_cmInstr.h: - -Drivers/CMSIS/Include/cmsis_gcc.h: - -Drivers/CMSIS/Include/core_cmFunc.h: - -Drivers/CMSIS/Device/ST/STM32F0xx/Include/system_stm32f0xx.h: - -Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_rcc_ex.h: - -Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_gpio.h: - -Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_gpio_ex.h: - -Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_dma.h: - -Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_dma_ex.h: - -Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_cortex.h: - -Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_adc.h: - -Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_adc_ex.h: - -Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_flash.h: - -Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_flash_ex.h: - -Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_i2c.h: - -Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_i2c_ex.h: - -Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_pcd.h: - -Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_pcd_ex.h: - -Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_pwr.h: - -Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_pwr_ex.h: - -Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_tim.h: - -Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_tim_ex.h: diff --git a/firmware/build/stm32f0xx_hal_pcd_ex.lst b/firmware/build/stm32f0xx_hal_pcd_ex.lst deleted file mode 100644 index ebd718f..0000000 --- a/firmware/build/stm32f0xx_hal_pcd_ex.lst +++ /dev/null @@ -1,259 +0,0 @@ -ARM GAS /tmp/cclUpeO8.s page 1 - - - 1 .cpu cortex-m0 - 2 .eabi_attribute 20, 1 - 3 .eabi_attribute 21, 1 - 4 .eabi_attribute 23, 3 - 5 .eabi_attribute 24, 1 - 6 .eabi_attribute 25, 1 - 7 .eabi_attribute 26, 1 - 8 .eabi_attribute 30, 1 - 9 .eabi_attribute 34, 0 - 10 .eabi_attribute 18, 4 - 11 .file "stm32f0xx_hal_pcd_ex.c" - 12 .text - 13 .Ltext0: - 14 .cfi_sections .debug_frame - 15 .section .text.HAL_PCDEx_PMAConfig,"ax",%progbits - 16 .align 1 - 17 .global HAL_PCDEx_PMAConfig - 18 .syntax unified - 19 .code 16 - 20 .thumb_func - 21 .fpu softvfp - 23 HAL_PCDEx_PMAConfig: - 24 .LFB37: - 25 .file 1 "Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd_ex.c" - 1:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd_ex.c **** /** - 2:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd_ex.c **** ****************************************************************************** - 3:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd_ex.c **** * @file stm32f0xx_hal_pcd_ex.c - 4:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd_ex.c **** * @author MCD Application Team - 5:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd_ex.c **** * @brief Extended PCD HAL module driver. - 6:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd_ex.c **** * This file provides firmware functions to manage the following - 7:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd_ex.c **** * functionalities of the USB Peripheral Controller: - 8:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd_ex.c **** * + Configuration of the PMA for EP - 9:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd_ex.c **** * - 10:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd_ex.c **** ****************************************************************************** - 11:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd_ex.c **** * @attention - 12:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd_ex.c **** * - 13:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd_ex.c **** *

© COPYRIGHT(c) 2016 STMicroelectronics

- 14:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd_ex.c **** * - 15:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd_ex.c **** * Redistribution and use in source and binary forms, with or without modification, - 16:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd_ex.c **** * are permitted provided that the following conditions are met: - 17:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd_ex.c **** * 1. Redistributions of source code must retain the above copyright notice, - 18:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd_ex.c **** * this list of conditions and the following disclaimer. - 19:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd_ex.c **** * 2. Redistributions in binary form must reproduce the above copyright notice, - 20:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd_ex.c **** * this list of conditions and the following disclaimer in the documentation - 21:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd_ex.c **** * and/or other materials provided with the distribution. - 22:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd_ex.c **** * 3. Neither the name of STMicroelectronics nor the names of its contributors - 23:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd_ex.c **** * may be used to endorse or promote products derived from this software - 24:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd_ex.c **** * without specific prior written permission. - 25:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd_ex.c **** * - 26:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd_ex.c **** * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" - 27:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd_ex.c **** * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE - 28:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd_ex.c **** * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE - 29:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd_ex.c **** * DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE - 30:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd_ex.c **** * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL - 31:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd_ex.c **** * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR - 32:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd_ex.c **** * SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER - 33:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd_ex.c **** * CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, - ARM GAS /tmp/cclUpeO8.s page 2 - - - 34:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd_ex.c **** * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE - 35:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd_ex.c **** * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. - 36:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd_ex.c **** * - 37:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd_ex.c **** ****************************************************************************** - 38:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd_ex.c **** */ - 39:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd_ex.c **** - 40:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd_ex.c **** /* Includes ------------------------------------------------------------------*/ - 41:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd_ex.c **** #include "stm32f0xx_hal.h" - 42:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd_ex.c **** - 43:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd_ex.c **** #ifdef HAL_PCD_MODULE_ENABLED - 44:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd_ex.c **** - 45:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd_ex.c **** #if defined(STM32F042x6) || defined(STM32F048xx) || defined(STM32F072xB) || defined(STM32F078xx) || - 46:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd_ex.c **** - 47:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd_ex.c **** /** @addtogroup STM32F0xx_HAL_Driver - 48:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd_ex.c **** * @{ - 49:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd_ex.c **** */ - 50:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd_ex.c **** - 51:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd_ex.c **** /** @defgroup PCDEx PCDEx - 52:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd_ex.c **** * @brief PCD Extended HAL module driver - 53:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd_ex.c **** * @{ - 54:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd_ex.c **** */ - 55:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd_ex.c **** - 56:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd_ex.c **** /* Private typedef -----------------------------------------------------------*/ - 57:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd_ex.c **** /* Private define ------------------------------------------------------------*/ - 58:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd_ex.c **** /* Private macro -------------------------------------------------------------*/ - 59:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd_ex.c **** /* Private variables ---------------------------------------------------------*/ - 60:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd_ex.c **** /* Private function prototypes -----------------------------------------------*/ - 61:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd_ex.c **** /* Exported functions ---------------------------------------------------------*/ - 62:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd_ex.c **** /** @defgroup PCDEx_Exported_Functions PCDEx Exported Functions - 63:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd_ex.c **** * @{ - 64:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd_ex.c **** */ - 65:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd_ex.c **** - 66:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd_ex.c **** /** @defgroup PCDEx_Exported_Functions_Group1 Peripheral Control functions - 67:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd_ex.c **** * @brief PCDEx control functions - 68:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd_ex.c **** * - 69:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd_ex.c **** @verbatim - 70:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd_ex.c **** =============================================================================== - 71:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd_ex.c **** ##### Extended Peripheral Control functions ##### - 72:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd_ex.c **** =============================================================================== - 73:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd_ex.c **** [..] This section provides functions allowing to: - 74:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd_ex.c **** (+) Update PMA configuration - 75:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd_ex.c **** - 76:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd_ex.c **** @endverbatim - 77:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd_ex.c **** * @{ - 78:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd_ex.c **** */ - 79:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd_ex.c **** - 80:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd_ex.c **** /** - 81:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd_ex.c **** * @brief Configure PMA for EP - 82:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd_ex.c **** * @param hpcd PCD handle - 83:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd_ex.c **** * @param ep_addr endpoint address - 84:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd_ex.c **** * @param ep_kind endpoint Kind - 85:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd_ex.c **** * @arg USB_SNG_BUF: Single Buffer used - 86:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd_ex.c **** * @arg USB_DBL_BUF: Double Buffer used - 87:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd_ex.c **** * @param pmaadress EP address in The PMA: In case of single buffer endpoint - 88:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd_ex.c **** * this parameter is 16-bit value providing the address - 89:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd_ex.c **** * in PMA allocated to endpoint. - 90:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd_ex.c **** * In case of double buffer endpoint this parameter - ARM GAS /tmp/cclUpeO8.s page 3 - - - 91:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd_ex.c **** * is a 32-bit value providing the endpoint buffer 0 address - 92:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd_ex.c **** * in the LSB part of 32-bit value and endpoint buffer 1 address - 93:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd_ex.c **** * in the MSB part of 32-bit value. - 94:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd_ex.c **** * @retval : status - 95:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd_ex.c **** */ - 96:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd_ex.c **** - 97:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd_ex.c **** HAL_StatusTypeDef HAL_PCDEx_PMAConfig(PCD_HandleTypeDef *hpcd, - 98:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd_ex.c **** uint16_t ep_addr, - 99:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd_ex.c **** uint16_t ep_kind, - 100:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd_ex.c **** uint32_t pmaadress) - 101:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd_ex.c **** - 102:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd_ex.c **** { - 26 .loc 1 102 0 - 27 .cfi_startproc - 28 @ args = 0, pretend = 0, frame = 0 - 29 @ frame_needed = 0, uses_anonymous_args = 0 - 30 .LVL0: - 31 0000 10B5 push {r4, lr} - 32 .LCFI0: - 33 .cfi_def_cfa_offset 8 - 34 .cfi_offset 4, -8 - 35 .cfi_offset 14, -4 - 103:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd_ex.c **** PCD_EPTypeDef *ep; - 104:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd_ex.c **** - 105:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd_ex.c **** /* initialize ep structure*/ - 106:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd_ex.c **** if ((0x80U & ep_addr) == 0x80U) - 36 .loc 1 106 0 - 37 0002 0C06 lsls r4, r1, #24 - 38 0004 0FD5 bpl .L2 - 107:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd_ex.c **** { - 108:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd_ex.c **** ep = &hpcd->IN_ep[ep_addr & 0x7FU]; - 39 .loc 1 108 0 - 40 0006 7F24 movs r4, #127 - 41 0008 2140 ands r1, r4 - 42 .LVL1: - 43 000a CC00 lsls r4, r1, #3 - 44 000c 611A subs r1, r4, r1 - 45 000e 8C00 lsls r4, r1, #2 - 46 0010 2834 adds r4, r4, #40 - 47 0012 0019 adds r0, r0, r4 - 48 .LVL2: - 49 .L3: - 109:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd_ex.c **** } - 110:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd_ex.c **** else - 111:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd_ex.c **** { - 112:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd_ex.c **** ep = &hpcd->OUT_ep[ep_addr]; - 113:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd_ex.c **** } - 114:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd_ex.c **** - 115:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd_ex.c **** /* Here we check if the endpoint is single or double Buffer*/ - 116:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd_ex.c **** if (ep_kind == PCD_SNG_BUF) - 50 .loc 1 116 0 - 51 0014 002A cmp r2, #0 - 52 0016 0DD0 beq .L6 - 117:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd_ex.c **** { - 118:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd_ex.c **** /*Single Buffer*/ - 119:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd_ex.c **** ep->doublebuffer = 0U; - 120:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd_ex.c **** /*Configure the PMA*/ - ARM GAS /tmp/cclUpeO8.s page 4 - - - 121:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd_ex.c **** ep->pmaadress = (uint16_t)pmaadress; - 122:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd_ex.c **** } - 123:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd_ex.c **** else /*USB_DBL_BUF*/ - 124:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd_ex.c **** { - 125:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd_ex.c **** /*Double Buffer Endpoint*/ - 126:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd_ex.c **** ep->doublebuffer = 1U; - 53 .loc 1 126 0 - 54 0018 0122 movs r2, #1 - 55 .LVL3: - 56 001a 8272 strb r2, [r0, #10] - 127:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd_ex.c **** /*Configure the PMA*/ - 128:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd_ex.c **** ep->pmaaddr0 = pmaadress & 0xFFFFU; - 57 .loc 1 128 0 - 58 001c C380 strh r3, [r0, #6] - 129:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd_ex.c **** ep->pmaaddr1 = (pmaadress & 0xFFFF0000U) >> 16U; - 59 .loc 1 129 0 - 60 001e 1B0C lsrs r3, r3, #16 - 61 .LVL4: - 62 0020 0381 strh r3, [r0, #8] - 63 .L5: - 130:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd_ex.c **** } - 131:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd_ex.c **** - 132:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd_ex.c **** return HAL_OK; - 133:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd_ex.c **** } - 64 .loc 1 133 0 - 65 0022 0020 movs r0, #0 - 66 .LVL5: - 67 @ sp needed - 68 0024 10BD pop {r4, pc} - 69 .LVL6: - 70 .L2: - 112:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd_ex.c **** } - 71 .loc 1 112 0 - 72 0026 CC00 lsls r4, r1, #3 - 73 0028 611A subs r1, r4, r1 - 74 .LVL7: - 75 002a 8C00 lsls r4, r1, #2 - 76 002c 0934 adds r4, r4, #9 - 77 002e FF34 adds r4, r4, #255 - 78 0030 0019 adds r0, r0, r4 - 79 .LVL8: - 80 0032 EFE7 b .L3 - 81 .L6: - 119:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd_ex.c **** /*Configure the PMA*/ - 82 .loc 1 119 0 - 83 0034 8272 strb r2, [r0, #10] - 121:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd_ex.c **** } - 84 .loc 1 121 0 - 85 0036 8380 strh r3, [r0, #4] - 86 0038 F3E7 b .L5 - 87 .cfi_endproc - 88 .LFE37: - 90 .text - 91 .Letext0: - 92 .file 2 "/home/janhenrik/programme/gcc-arm-none-eabi-7-2018-q2-update/arm-none-eabi/include/machin - 93 .file 3 "/home/janhenrik/programme/gcc-arm-none-eabi-7-2018-q2-update/arm-none-eabi/include/sys/_s - 94 .file 4 "Drivers/CMSIS/Device/ST/STM32F0xx/Include/system_stm32f0xx.h" - ARM GAS /tmp/cclUpeO8.s page 5 - - - 95 .file 5 "Drivers/CMSIS/Device/ST/STM32F0xx/Include/stm32f072xb.h" - 96 .file 6 "/home/janhenrik/programme/gcc-arm-none-eabi-7-2018-q2-update/arm-none-eabi/include/sys/lo - 97 .file 7 "/home/janhenrik/programme/gcc-arm-none-eabi-7-2018-q2-update/arm-none-eabi/include/sys/_t - 98 .file 8 "/home/janhenrik/programme/gcc-arm-none-eabi-7-2018-q2-update/lib/gcc/arm-none-eabi/7.3.1/ - 99 .file 9 "/home/janhenrik/programme/gcc-arm-none-eabi-7-2018-q2-update/arm-none-eabi/include/sys/re - 100 .file 10 "Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_def.h" - 101 .file 11 "Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_pcd.h" - ARM GAS /tmp/cclUpeO8.s page 6 - - -DEFINED SYMBOLS - *ABS*:0000000000000000 stm32f0xx_hal_pcd_ex.c - /tmp/cclUpeO8.s:16 .text.HAL_PCDEx_PMAConfig:0000000000000000 $t - /tmp/cclUpeO8.s:23 .text.HAL_PCDEx_PMAConfig:0000000000000000 HAL_PCDEx_PMAConfig - -NO UNDEFINED SYMBOLS diff --git a/firmware/build/stm32f0xx_hal_pcd_ex.o b/firmware/build/stm32f0xx_hal_pcd_ex.o deleted file mode 100644 index e4606c9..0000000 Binary files a/firmware/build/stm32f0xx_hal_pcd_ex.o and /dev/null differ diff --git a/firmware/build/stm32f0xx_hal_pwr.d b/firmware/build/stm32f0xx_hal_pwr.d deleted file mode 100644 index 6afd6ff..0000000 --- a/firmware/build/stm32f0xx_hal_pwr.d +++ /dev/null @@ -1,87 +0,0 @@ -build/stm32f0xx_hal_pwr.o: \ - Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pwr.c \ - Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal.h \ - Inc/stm32f0xx_hal_conf.h \ - Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_rcc.h \ - Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_def.h \ - Drivers/CMSIS/Device/ST/STM32F0xx/Include/stm32f0xx.h \ - Drivers/CMSIS/Device/ST/STM32F0xx/Include/stm32f072xb.h \ - Drivers/CMSIS/Include/core_cm0.h Drivers/CMSIS/Include/core_cmInstr.h \ - Drivers/CMSIS/Include/cmsis_gcc.h Drivers/CMSIS/Include/core_cmFunc.h \ - Drivers/CMSIS/Device/ST/STM32F0xx/Include/system_stm32f0xx.h \ - Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_rcc_ex.h \ - Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_gpio.h \ - Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_gpio_ex.h \ - Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_dma.h \ - Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_dma_ex.h \ - Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_cortex.h \ - Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_adc.h \ - Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_adc_ex.h \ - Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_flash.h \ - Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_flash_ex.h \ - Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_i2c.h \ - Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_i2c_ex.h \ - Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_pcd.h \ - Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_pcd_ex.h \ - Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_pwr.h \ - Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_pwr_ex.h \ - Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_tim.h \ - Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_tim_ex.h - -Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal.h: - -Inc/stm32f0xx_hal_conf.h: - -Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_rcc.h: - -Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_def.h: - -Drivers/CMSIS/Device/ST/STM32F0xx/Include/stm32f0xx.h: - -Drivers/CMSIS/Device/ST/STM32F0xx/Include/stm32f072xb.h: - -Drivers/CMSIS/Include/core_cm0.h: - -Drivers/CMSIS/Include/core_cmInstr.h: - -Drivers/CMSIS/Include/cmsis_gcc.h: - -Drivers/CMSIS/Include/core_cmFunc.h: - -Drivers/CMSIS/Device/ST/STM32F0xx/Include/system_stm32f0xx.h: - -Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_rcc_ex.h: - -Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_gpio.h: - -Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_gpio_ex.h: - -Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_dma.h: - -Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_dma_ex.h: - -Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_cortex.h: - -Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_adc.h: - -Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_adc_ex.h: - -Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_flash.h: - -Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_flash_ex.h: - -Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_i2c.h: - -Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_i2c_ex.h: - -Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_pcd.h: - -Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_pcd_ex.h: - -Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_pwr.h: - -Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_pwr_ex.h: - -Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_tim.h: - -Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_tim_ex.h: diff --git a/firmware/build/stm32f0xx_hal_pwr.lst b/firmware/build/stm32f0xx_hal_pwr.lst deleted file mode 100644 index 0fb81a1..0000000 --- a/firmware/build/stm32f0xx_hal_pwr.lst +++ /dev/null @@ -1,1513 +0,0 @@ -ARM GAS /tmp/cccM92VN.s page 1 - - - 1 .cpu cortex-m0 - 2 .eabi_attribute 20, 1 - 3 .eabi_attribute 21, 1 - 4 .eabi_attribute 23, 3 - 5 .eabi_attribute 24, 1 - 6 .eabi_attribute 25, 1 - 7 .eabi_attribute 26, 1 - 8 .eabi_attribute 30, 1 - 9 .eabi_attribute 34, 0 - 10 .eabi_attribute 18, 4 - 11 .file "stm32f0xx_hal_pwr.c" - 12 .text - 13 .Ltext0: - 14 .cfi_sections .debug_frame - 15 .section .text.HAL_PWR_DeInit,"ax",%progbits - 16 .align 1 - 17 .global HAL_PWR_DeInit - 18 .syntax unified - 19 .code 16 - 20 .thumb_func - 21 .fpu softvfp - 23 HAL_PWR_DeInit: - 24 .LFB37: - 25 .file 1 "Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pwr.c" - 1:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pwr.c **** /** - 2:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pwr.c **** ****************************************************************************** - 3:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pwr.c **** * @file stm32f0xx_hal_pwr.c - 4:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pwr.c **** * @author MCD Application Team - 5:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pwr.c **** * @brief PWR HAL module driver. - 6:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pwr.c **** * This file provides firmware functions to manage the following - 7:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pwr.c **** * functionalities of the Power Controller (PWR) peripheral: - 8:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pwr.c **** * + Initialization/de-initialization function - 9:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pwr.c **** * + Peripheral Control function - 10:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pwr.c **** * - 11:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pwr.c **** @verbatim - 12:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pwr.c **** ****************************************************************************** - 13:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pwr.c **** * @attention - 14:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pwr.c **** * - 15:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pwr.c **** *

© COPYRIGHT(c) 2016 STMicroelectronics

- 16:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pwr.c **** * - 17:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pwr.c **** * Redistribution and use in source and binary forms, with or without modification, - 18:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pwr.c **** * are permitted provided that the following conditions are met: - 19:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pwr.c **** * 1. Redistributions of source code must retain the above copyright notice, - 20:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pwr.c **** * this list of conditions and the following disclaimer. - 21:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pwr.c **** * 2. Redistributions in binary form must reproduce the above copyright notice, - 22:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pwr.c **** * this list of conditions and the following disclaimer in the documentation - 23:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pwr.c **** * and/or other materials provided with the distribution. - 24:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pwr.c **** * 3. Neither the name of STMicroelectronics nor the names of its contributors - 25:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pwr.c **** * may be used to endorse or promote products derived from this software - 26:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pwr.c **** * without specific prior written permission. - 27:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pwr.c **** * - 28:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pwr.c **** * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" - 29:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pwr.c **** * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE - 30:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pwr.c **** * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE - 31:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pwr.c **** * DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE - 32:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pwr.c **** * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL - 33:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pwr.c **** * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR - ARM GAS /tmp/cccM92VN.s page 2 - - - 34:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pwr.c **** * SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER - 35:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pwr.c **** * CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, - 36:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pwr.c **** * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE - 37:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pwr.c **** * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. - 38:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pwr.c **** * - 39:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pwr.c **** ****************************************************************************** - 40:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pwr.c **** */ - 41:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pwr.c **** - 42:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pwr.c **** /* Includes ------------------------------------------------------------------*/ - 43:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pwr.c **** #include "stm32f0xx_hal.h" - 44:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pwr.c **** - 45:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pwr.c **** /** @addtogroup STM32F0xx_HAL_Driver - 46:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pwr.c **** * @{ - 47:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pwr.c **** */ - 48:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pwr.c **** - 49:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pwr.c **** /** @defgroup PWR PWR - 50:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pwr.c **** * @brief PWR HAL module driver - 51:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pwr.c **** * @{ - 52:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pwr.c **** */ - 53:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pwr.c **** - 54:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pwr.c **** #ifdef HAL_PWR_MODULE_ENABLED - 55:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pwr.c **** - 56:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pwr.c **** /* Private typedef -----------------------------------------------------------*/ - 57:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pwr.c **** /* Private define ------------------------------------------------------------*/ - 58:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pwr.c **** /* Private macro -------------------------------------------------------------*/ - 59:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pwr.c **** /* Private variables ---------------------------------------------------------*/ - 60:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pwr.c **** /* Private function prototypes -----------------------------------------------*/ - 61:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pwr.c **** /* Private functions ---------------------------------------------------------*/ - 62:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pwr.c **** - 63:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pwr.c **** /** @defgroup PWR_Exported_Functions PWR Exported Functions - 64:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pwr.c **** * @{ - 65:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pwr.c **** */ - 66:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pwr.c **** - 67:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pwr.c **** /** @defgroup PWR_Exported_Functions_Group1 Initialization and de-initialization functions - 68:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pwr.c **** * @brief Initialization and de-initialization functions - 69:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pwr.c **** * - 70:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pwr.c **** @verbatim - 71:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pwr.c **** =============================================================================== - 72:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pwr.c **** ##### Initialization and de-initialization functions ##### - 73:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pwr.c **** =============================================================================== - 74:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pwr.c **** [..] - 75:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pwr.c **** After reset, the backup domain (RTC registers, RTC backup data - 76:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pwr.c **** registers) is protected against possible unwanted - 77:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pwr.c **** write accesses. - 78:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pwr.c **** To enable access to the RTC Domain and RTC registers, proceed as follows: - 79:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pwr.c **** (+) Enable the Power Controller (PWR) APB1 interface clock using the - 80:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pwr.c **** __HAL_RCC_PWR_CLK_ENABLE() macro. - 81:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pwr.c **** (+) Enable access to RTC domain using the HAL_PWR_EnableBkUpAccess() function. - 82:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pwr.c **** - 83:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pwr.c **** @endverbatim - 84:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pwr.c **** * @{ - 85:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pwr.c **** */ - 86:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pwr.c **** - 87:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pwr.c **** /** - 88:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pwr.c **** * @brief Deinitializes the PWR peripheral registers to their default reset values. - 89:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pwr.c **** * @retval None - 90:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pwr.c **** */ - ARM GAS /tmp/cccM92VN.s page 3 - - - 91:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pwr.c **** void HAL_PWR_DeInit(void) - 92:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pwr.c **** { - 26 .loc 1 92 0 - 27 .cfi_startproc - 28 @ args = 0, pretend = 0, frame = 0 - 29 @ frame_needed = 0, uses_anonymous_args = 0 - 30 @ link register save eliminated. - 93:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pwr.c **** __HAL_RCC_PWR_FORCE_RESET(); - 31 .loc 1 93 0 - 32 0000 054B ldr r3, .L2 - 33 0002 1969 ldr r1, [r3, #16] - 34 0004 8022 movs r2, #128 - 35 0006 5205 lsls r2, r2, #21 - 36 0008 0A43 orrs r2, r1 - 37 000a 1A61 str r2, [r3, #16] - 94:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pwr.c **** __HAL_RCC_PWR_RELEASE_RESET(); - 38 .loc 1 94 0 - 39 000c 1A69 ldr r2, [r3, #16] - 40 000e 0349 ldr r1, .L2+4 - 41 0010 0A40 ands r2, r1 - 42 0012 1A61 str r2, [r3, #16] - 95:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pwr.c **** } - 43 .loc 1 95 0 - 44 @ sp needed - 45 0014 7047 bx lr - 46 .L3: - 47 0016 C046 .align 2 - 48 .L2: - 49 0018 00100240 .word 1073876992 - 50 001c FFFFFFEF .word -268435457 - 51 .cfi_endproc - 52 .LFE37: - 54 .section .text.HAL_PWR_EnableBkUpAccess,"ax",%progbits - 55 .align 1 - 56 .global HAL_PWR_EnableBkUpAccess - 57 .syntax unified - 58 .code 16 - 59 .thumb_func - 60 .fpu softvfp - 62 HAL_PWR_EnableBkUpAccess: - 63 .LFB38: - 96:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pwr.c **** - 97:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pwr.c **** /** - 98:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pwr.c **** * @brief Enables access to the backup domain (RTC registers, RTC - 99:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pwr.c **** * backup data registers when present). - 100:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pwr.c **** * @note If the HSE divided by 32 is used as the RTC clock, the - 101:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pwr.c **** * Backup Domain Access should be kept enabled. - 102:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pwr.c **** * @retval None - 103:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pwr.c **** */ - 104:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pwr.c **** void HAL_PWR_EnableBkUpAccess(void) - 105:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pwr.c **** { - 64 .loc 1 105 0 - 65 .cfi_startproc - 66 @ args = 0, pretend = 0, frame = 0 - 67 @ frame_needed = 0, uses_anonymous_args = 0 - 68 @ link register save eliminated. - 106:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pwr.c **** PWR->CR |= (uint32_t)PWR_CR_DBP; - ARM GAS /tmp/cccM92VN.s page 4 - - - 69 .loc 1 106 0 - 70 0000 034A ldr r2, .L5 - 71 0002 1168 ldr r1, [r2] - 72 0004 8023 movs r3, #128 - 73 0006 5B00 lsls r3, r3, #1 - 74 0008 0B43 orrs r3, r1 - 75 000a 1360 str r3, [r2] - 107:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pwr.c **** } - 76 .loc 1 107 0 - 77 @ sp needed - 78 000c 7047 bx lr - 79 .L6: - 80 000e C046 .align 2 - 81 .L5: - 82 0010 00700040 .word 1073770496 - 83 .cfi_endproc - 84 .LFE38: - 86 .section .text.HAL_PWR_DisableBkUpAccess,"ax",%progbits - 87 .align 1 - 88 .global HAL_PWR_DisableBkUpAccess - 89 .syntax unified - 90 .code 16 - 91 .thumb_func - 92 .fpu softvfp - 94 HAL_PWR_DisableBkUpAccess: - 95 .LFB39: - 108:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pwr.c **** - 109:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pwr.c **** /** - 110:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pwr.c **** * @brief Disables access to the backup domain (RTC registers, RTC - 111:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pwr.c **** * backup data registers when present). - 112:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pwr.c **** * @note If the HSE divided by 32 is used as the RTC clock, the - 113:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pwr.c **** * Backup Domain Access should be kept enabled. - 114:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pwr.c **** * @retval None - 115:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pwr.c **** */ - 116:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pwr.c **** void HAL_PWR_DisableBkUpAccess(void) - 117:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pwr.c **** { - 96 .loc 1 117 0 - 97 .cfi_startproc - 98 @ args = 0, pretend = 0, frame = 0 - 99 @ frame_needed = 0, uses_anonymous_args = 0 - 100 @ link register save eliminated. - 118:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pwr.c **** PWR->CR &= ~((uint32_t)PWR_CR_DBP); - 101 .loc 1 118 0 - 102 0000 024A ldr r2, .L8 - 103 0002 1368 ldr r3, [r2] - 104 0004 0249 ldr r1, .L8+4 - 105 0006 0B40 ands r3, r1 - 106 0008 1360 str r3, [r2] - 119:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pwr.c **** } - 107 .loc 1 119 0 - 108 @ sp needed - 109 000a 7047 bx lr - 110 .L9: - 111 .align 2 - 112 .L8: - 113 000c 00700040 .word 1073770496 - 114 0010 FFFEFFFF .word -257 - ARM GAS /tmp/cccM92VN.s page 5 - - - 115 .cfi_endproc - 116 .LFE39: - 118 .section .text.HAL_PWR_EnableWakeUpPin,"ax",%progbits - 119 .align 1 - 120 .global HAL_PWR_EnableWakeUpPin - 121 .syntax unified - 122 .code 16 - 123 .thumb_func - 124 .fpu softvfp - 126 HAL_PWR_EnableWakeUpPin: - 127 .LFB40: - 120:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pwr.c **** - 121:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pwr.c **** /** - 122:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pwr.c **** * @} - 123:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pwr.c **** */ - 124:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pwr.c **** - 125:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pwr.c **** /** @defgroup PWR_Exported_Functions_Group2 Peripheral Control functions - 126:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pwr.c **** * @brief Low Power modes configuration functions - 127:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pwr.c **** * - 128:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pwr.c **** @verbatim - 129:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pwr.c **** - 130:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pwr.c **** =============================================================================== - 131:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pwr.c **** ##### Peripheral Control functions ##### - 132:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pwr.c **** =============================================================================== - 133:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pwr.c **** - 134:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pwr.c **** *** WakeUp pin configuration *** - 135:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pwr.c **** ================================ - 136:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pwr.c **** [..] - 137:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pwr.c **** (+) WakeUp pin is used to wakeup the system from Standby mode. This pin is - 138:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pwr.c **** forced in input pull down configuration and is active on rising edges. - 139:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pwr.c **** (+) There are two WakeUp pins, and up to eight Wakeup pins on STM32F07x & STM32F09x devices. - 140:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pwr.c **** (++)WakeUp Pin 1 on PA.00. - 141:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pwr.c **** (++)WakeUp Pin 2 on PC.13. - 142:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pwr.c **** (++)WakeUp Pin 3 on PE.06.(STM32F07x/STM32F09x) - 143:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pwr.c **** (++)WakeUp Pin 4 on PA.02.(STM32F07x/STM32F09x) - 144:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pwr.c **** (++)WakeUp Pin 5 on PC.05.(STM32F07x/STM32F09x) - 145:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pwr.c **** (++)WakeUp Pin 6 on PB.05.(STM32F07x/STM32F09x) - 146:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pwr.c **** (++)WakeUp Pin 7 on PB.15.(STM32F07x/STM32F09x) - 147:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pwr.c **** (++)WakeUp Pin 8 on PF.02.(STM32F07x/STM32F09x) - 148:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pwr.c **** - 149:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pwr.c **** *** Low Power modes configuration *** - 150:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pwr.c **** ===================================== - 151:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pwr.c **** [..] - 152:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pwr.c **** The devices feature 3 low-power modes: - 153:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pwr.c **** (+) Sleep mode: Cortex-M0 core stopped, peripherals kept running. - 154:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pwr.c **** (+) Stop mode: all clocks are stopped, regulator running, regulator - 155:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pwr.c **** in low power mode - 156:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pwr.c **** (+) Standby mode: 1.2V domain powered off (mode not available on STM32F0x8 devices). - 157:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pwr.c **** - 158:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pwr.c **** *** Sleep mode *** - 159:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pwr.c **** ================== - 160:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pwr.c **** [..] - 161:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pwr.c **** (+) Entry: - 162:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pwr.c **** The Sleep mode is entered by using the HAL_PWR_EnterSLEEPMode(PWR_MAINREGULATOR_ON, PWR_S - 163:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pwr.c **** functions with - 164:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pwr.c **** (++) PWR_SLEEPENTRY_WFI: enter SLEEP mode with WFI instruction - 165:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pwr.c **** (++) PWR_SLEEPENTRY_WFE: enter SLEEP mode with WFE instruction - ARM GAS /tmp/cccM92VN.s page 6 - - - 166:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pwr.c **** - 167:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pwr.c **** (+) Exit: - 168:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pwr.c **** (++) Any peripheral interrupt acknowledged by the nested vectored interrupt - 169:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pwr.c **** controller (NVIC) can wake up the device from Sleep mode. - 170:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pwr.c **** - 171:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pwr.c **** *** Stop mode *** - 172:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pwr.c **** ================= - 173:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pwr.c **** [..] - 174:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pwr.c **** In Stop mode, all clocks in the 1.8V domain are stopped, the PLL, the HSI, - 175:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pwr.c **** and the HSE RC oscillators are disabled. Internal SRAM and register contents - 176:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pwr.c **** are preserved. - 177:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pwr.c **** The voltage regulator can be configured either in normal or low-power mode. - 178:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pwr.c **** To minimize the consumption. - 179:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pwr.c **** - 180:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pwr.c **** (+) Entry: - 181:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pwr.c **** The Stop mode is entered using the HAL_PWR_EnterSTOPMode(PWR_MAINREGULATOR_ON, PWR_STOPEN - 182:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pwr.c **** function with: - 183:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pwr.c **** (++) Main regulator ON. - 184:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pwr.c **** (++) Low Power regulator ON. - 185:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pwr.c **** (++) PWR_STOPENTRY_WFI: enter STOP mode with WFI instruction - 186:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pwr.c **** (++) PWR_STOPENTRY_WFE: enter STOP mode with WFE instruction - 187:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pwr.c **** (+) Exit: - 188:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pwr.c **** (++) Any EXTI Line (Internal or External) configured in Interrupt/Event mode. - 189:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pwr.c **** (++) Some specific communication peripherals (CEC, USART, I2C) interrupts, - 190:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pwr.c **** when programmed in wakeup mode (the peripheral must be - 191:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pwr.c **** programmed in wakeup mode and the corresponding interrupt vector - 192:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pwr.c **** must be enabled in the NVIC) - 193:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pwr.c **** - 194:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pwr.c **** *** Standby mode *** - 195:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pwr.c **** ==================== - 196:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pwr.c **** [..] - 197:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pwr.c **** The Standby mode allows to achieve the lowest power consumption. It is based - 198:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pwr.c **** on the Cortex-M0 deep sleep mode, with the voltage regulator disabled. - 199:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pwr.c **** The 1.8V domain is consequently powered off. The PLL, the HSI oscillator and - 200:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pwr.c **** the HSE oscillator are also switched off. SRAM and register contents are lost - 201:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pwr.c **** except for the RTC registers, RTC backup registers and Standby circuitry. - 202:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pwr.c **** The voltage regulator is OFF. - 203:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pwr.c **** - 204:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pwr.c **** (+) Entry: - 205:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pwr.c **** (++) The Standby mode is entered using the HAL_PWR_EnterSTANDBYMode() function. - 206:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pwr.c **** (+) Exit: - 207:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pwr.c **** (++) WKUP pin rising edge, RTC alarm (Alarm A), RTC wakeup, - 208:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pwr.c **** tamper event, time-stamp event, external reset in NRST pin, IWDG reset. - 209:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pwr.c **** - 210:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pwr.c **** *** Auto-wakeup (AWU) from low-power mode *** - 211:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pwr.c **** ============================================= - 212:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pwr.c **** [..] - 213:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pwr.c **** The MCU can be woken up from low-power mode by an RTC Alarm event, an RTC - 214:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pwr.c **** Wakeup event, a tamper event, a time-stamp event, or a comparator event, - 215:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pwr.c **** without depending on an external interrupt (Auto-wakeup mode). - 216:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pwr.c **** - 217:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pwr.c **** (+) RTC auto-wakeup (AWU) from the Stop and Standby modes - 218:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pwr.c **** - 219:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pwr.c **** (++) To wake up from the Stop mode with an RTC alarm event, it is necessary to - 220:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pwr.c **** configure the RTC to generate the RTC alarm using the HAL_RTC_SetAlarm_IT() function. - 221:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pwr.c **** - 222:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pwr.c **** (++) To wake up from the Stop mode with an RTC Tamper or time stamp event, it - ARM GAS /tmp/cccM92VN.s page 7 - - - 223:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pwr.c **** is necessary to configure the RTC to detect the tamper or time stamp event using the - 224:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pwr.c **** HAL_RTC_SetTimeStamp_IT() or HAL_RTC_SetTamper_IT() functions. - 225:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pwr.c **** - 226:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pwr.c **** (++) To wake up from the Stop mode with an RTC WakeUp event, it is necessary to - 227:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pwr.c **** configure the RTC to generate the RTC WakeUp event using the HAL_RTC_SetWakeUpTimer_IT() - 228:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pwr.c **** - 229:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pwr.c **** (+) Comparator auto-wakeup (AWU) from the Stop mode - 230:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pwr.c **** - 231:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pwr.c **** (++) To wake up from the Stop mode with a comparator wakeup event, it is necessary to: - 232:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pwr.c **** (+++) Configure the EXTI Line associated with the comparator (example EXTI Line 22 for c - 233:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pwr.c **** to be sensitive to to the selected edges (falling, rising or falling - 234:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pwr.c **** and rising) (Interrupt or Event modes) using the EXTI_Init() function. - 235:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pwr.c **** (+++) Configure the comparator to generate the event. - 236:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pwr.c **** @endverbatim - 237:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pwr.c **** * @{ - 238:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pwr.c **** */ - 239:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pwr.c **** - 240:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pwr.c **** /** - 241:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pwr.c **** * @brief Enables the WakeUp PINx functionality. - 242:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pwr.c **** * @param WakeUpPinx Specifies the Power Wake-Up pin to enable. - 243:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pwr.c **** * This parameter can be value of : - 244:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pwr.c **** * @ref PWREx_WakeUp_Pins - 245:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pwr.c **** * @retval None - 246:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pwr.c **** */ - 247:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pwr.c **** void HAL_PWR_EnableWakeUpPin(uint32_t WakeUpPinx) - 248:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pwr.c **** { - 128 .loc 1 248 0 - 129 .cfi_startproc - 130 @ args = 0, pretend = 0, frame = 0 - 131 @ frame_needed = 0, uses_anonymous_args = 0 - 132 @ link register save eliminated. - 133 .LVL0: - 249:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pwr.c **** /* Check the parameters */ - 250:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pwr.c **** assert_param(IS_PWR_WAKEUP_PIN(WakeUpPinx)); - 251:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pwr.c **** /* Enable the EWUPx pin */ - 252:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pwr.c **** SET_BIT(PWR->CSR, WakeUpPinx); - 134 .loc 1 252 0 - 135 0000 024A ldr r2, .L11 - 136 0002 5368 ldr r3, [r2, #4] - 137 0004 1843 orrs r0, r3 - 138 .LVL1: - 139 0006 5060 str r0, [r2, #4] - 253:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pwr.c **** } - 140 .loc 1 253 0 - 141 @ sp needed - 142 0008 7047 bx lr - 143 .L12: - 144 000a C046 .align 2 - 145 .L11: - 146 000c 00700040 .word 1073770496 - 147 .cfi_endproc - 148 .LFE40: - 150 .section .text.HAL_PWR_DisableWakeUpPin,"ax",%progbits - 151 .align 1 - 152 .global HAL_PWR_DisableWakeUpPin - 153 .syntax unified - 154 .code 16 - ARM GAS /tmp/cccM92VN.s page 8 - - - 155 .thumb_func - 156 .fpu softvfp - 158 HAL_PWR_DisableWakeUpPin: - 159 .LFB41: - 254:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pwr.c **** - 255:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pwr.c **** /** - 256:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pwr.c **** * @brief Disables the WakeUp PINx functionality. - 257:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pwr.c **** * @param WakeUpPinx Specifies the Power Wake-Up pin to disable. - 258:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pwr.c **** * This parameter can be values of : - 259:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pwr.c **** * @ref PWREx_WakeUp_Pins - 260:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pwr.c **** * @retval None - 261:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pwr.c **** */ - 262:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pwr.c **** void HAL_PWR_DisableWakeUpPin(uint32_t WakeUpPinx) - 263:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pwr.c **** { - 160 .loc 1 263 0 - 161 .cfi_startproc - 162 @ args = 0, pretend = 0, frame = 0 - 163 @ frame_needed = 0, uses_anonymous_args = 0 - 164 @ link register save eliminated. - 165 .LVL2: - 264:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pwr.c **** /* Check the parameters */ - 265:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pwr.c **** assert_param(IS_PWR_WAKEUP_PIN(WakeUpPinx)); - 266:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pwr.c **** /* Disable the EWUPx pin */ - 267:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pwr.c **** CLEAR_BIT(PWR->CSR, WakeUpPinx); - 166 .loc 1 267 0 - 167 0000 024A ldr r2, .L14 - 168 0002 5368 ldr r3, [r2, #4] - 169 0004 8343 bics r3, r0 - 170 0006 5360 str r3, [r2, #4] - 268:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pwr.c **** } - 171 .loc 1 268 0 - 172 @ sp needed - 173 0008 7047 bx lr - 174 .L15: - 175 000a C046 .align 2 - 176 .L14: - 177 000c 00700040 .word 1073770496 - 178 .cfi_endproc - 179 .LFE41: - 181 .section .text.HAL_PWR_EnterSLEEPMode,"ax",%progbits - 182 .align 1 - 183 .global HAL_PWR_EnterSLEEPMode - 184 .syntax unified - 185 .code 16 - 186 .thumb_func - 187 .fpu softvfp - 189 HAL_PWR_EnterSLEEPMode: - 190 .LFB42: - 269:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pwr.c **** - 270:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pwr.c **** /** - 271:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pwr.c **** * @brief Enters Sleep mode. - 272:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pwr.c **** * @note In Sleep mode, all I/O pins keep the same state as in Run mode. - 273:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pwr.c **** * @param Regulator Specifies the regulator state in SLEEP mode. - 274:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pwr.c **** * On STM32F0 devices, this parameter is a dummy value and it is ignored - 275:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pwr.c **** * as regulator can't be modified in this mode. Parameter is kept for platform - 276:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pwr.c **** * compatibility. - 277:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pwr.c **** * @param SLEEPEntry Specifies if SLEEP mode is entered with WFI or WFE instruction. - ARM GAS /tmp/cccM92VN.s page 9 - - - 278:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pwr.c **** * When WFI entry is used, tick interrupt have to be disabled if not desired as - 279:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pwr.c **** * the interrupt wake up source. - 280:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pwr.c **** * This parameter can be one of the following values: - 281:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pwr.c **** * @arg PWR_SLEEPENTRY_WFI: enter SLEEP mode with WFI instruction - 282:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pwr.c **** * @arg PWR_SLEEPENTRY_WFE: enter SLEEP mode with WFE instruction - 283:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pwr.c **** * @retval None - 284:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pwr.c **** */ - 285:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pwr.c **** void HAL_PWR_EnterSLEEPMode(uint32_t Regulator, uint8_t SLEEPEntry) - 286:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pwr.c **** { - 191 .loc 1 286 0 - 192 .cfi_startproc - 193 @ args = 0, pretend = 0, frame = 0 - 194 @ frame_needed = 0, uses_anonymous_args = 0 - 195 @ link register save eliminated. - 196 .LVL3: - 287:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pwr.c **** /* Check the parameters */ - 288:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pwr.c **** assert_param(IS_PWR_REGULATOR(Regulator)); - 289:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pwr.c **** assert_param(IS_PWR_SLEEP_ENTRY(SLEEPEntry)); - 290:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pwr.c **** - 291:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pwr.c **** /* Clear SLEEPDEEP bit of Cortex System Control Register */ - 292:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pwr.c **** SCB->SCR &= (uint32_t)~((uint32_t)SCB_SCR_SLEEPDEEP_Msk); - 197 .loc 1 292 0 - 198 0000 064A ldr r2, .L20 - 199 0002 1369 ldr r3, [r2, #16] - 200 0004 0420 movs r0, #4 - 201 .LVL4: - 202 0006 8343 bics r3, r0 - 203 0008 1361 str r3, [r2, #16] - 293:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pwr.c **** - 294:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pwr.c **** /* Select SLEEP mode entry -------------------------------------------------*/ - 295:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pwr.c **** if(SLEEPEntry == PWR_SLEEPENTRY_WFI) - 204 .loc 1 295 0 - 205 000a 0129 cmp r1, #1 - 206 000c 03D0 beq .L19 - 207 .LBB20: - 208 .LBB21: - 209 .file 2 "Drivers/CMSIS/Include/cmsis_gcc.h" - 1:Drivers/CMSIS/Include/cmsis_gcc.h **** /**************************************************************************//** - 2:Drivers/CMSIS/Include/cmsis_gcc.h **** * @file cmsis_gcc.h - 3:Drivers/CMSIS/Include/cmsis_gcc.h **** * @brief CMSIS Cortex-M Core Function/Instruction Header File - 4:Drivers/CMSIS/Include/cmsis_gcc.h **** * @version V4.30 - 5:Drivers/CMSIS/Include/cmsis_gcc.h **** * @date 20. October 2015 - 6:Drivers/CMSIS/Include/cmsis_gcc.h **** ******************************************************************************/ - 7:Drivers/CMSIS/Include/cmsis_gcc.h **** /* Copyright (c) 2009 - 2015 ARM LIMITED - 8:Drivers/CMSIS/Include/cmsis_gcc.h **** - 9:Drivers/CMSIS/Include/cmsis_gcc.h **** All rights reserved. - 10:Drivers/CMSIS/Include/cmsis_gcc.h **** Redistribution and use in source and binary forms, with or without - 11:Drivers/CMSIS/Include/cmsis_gcc.h **** modification, are permitted provided that the following conditions are met: - 12:Drivers/CMSIS/Include/cmsis_gcc.h **** - Redistributions of source code must retain the above copyright - 13:Drivers/CMSIS/Include/cmsis_gcc.h **** notice, this list of conditions and the following disclaimer. - 14:Drivers/CMSIS/Include/cmsis_gcc.h **** - Redistributions in binary form must reproduce the above copyright - 15:Drivers/CMSIS/Include/cmsis_gcc.h **** notice, this list of conditions and the following disclaimer in the - 16:Drivers/CMSIS/Include/cmsis_gcc.h **** documentation and/or other materials provided with the distribution. - 17:Drivers/CMSIS/Include/cmsis_gcc.h **** - Neither the name of ARM nor the names of its contributors may be used - 18:Drivers/CMSIS/Include/cmsis_gcc.h **** to endorse or promote products derived from this software without - 19:Drivers/CMSIS/Include/cmsis_gcc.h **** specific prior written permission. - 20:Drivers/CMSIS/Include/cmsis_gcc.h **** * - ARM GAS /tmp/cccM92VN.s page 10 - - - 21:Drivers/CMSIS/Include/cmsis_gcc.h **** THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" - 22:Drivers/CMSIS/Include/cmsis_gcc.h **** AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE - 23:Drivers/CMSIS/Include/cmsis_gcc.h **** IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE - 24:Drivers/CMSIS/Include/cmsis_gcc.h **** ARE DISCLAIMED. IN NO EVENT SHALL COPYRIGHT HOLDERS AND CONTRIBUTORS BE - 25:Drivers/CMSIS/Include/cmsis_gcc.h **** LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR - 26:Drivers/CMSIS/Include/cmsis_gcc.h **** CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF - 27:Drivers/CMSIS/Include/cmsis_gcc.h **** SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS - 28:Drivers/CMSIS/Include/cmsis_gcc.h **** INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN - 29:Drivers/CMSIS/Include/cmsis_gcc.h **** CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) - 30:Drivers/CMSIS/Include/cmsis_gcc.h **** ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE - 31:Drivers/CMSIS/Include/cmsis_gcc.h **** POSSIBILITY OF SUCH DAMAGE. - 32:Drivers/CMSIS/Include/cmsis_gcc.h **** ---------------------------------------------------------------------------*/ - 33:Drivers/CMSIS/Include/cmsis_gcc.h **** - 34:Drivers/CMSIS/Include/cmsis_gcc.h **** - 35:Drivers/CMSIS/Include/cmsis_gcc.h **** #ifndef __CMSIS_GCC_H - 36:Drivers/CMSIS/Include/cmsis_gcc.h **** #define __CMSIS_GCC_H - 37:Drivers/CMSIS/Include/cmsis_gcc.h **** - 38:Drivers/CMSIS/Include/cmsis_gcc.h **** /* ignore some GCC warnings */ - 39:Drivers/CMSIS/Include/cmsis_gcc.h **** #if defined ( __GNUC__ ) - 40:Drivers/CMSIS/Include/cmsis_gcc.h **** #pragma GCC diagnostic push - 41:Drivers/CMSIS/Include/cmsis_gcc.h **** #pragma GCC diagnostic ignored "-Wsign-conversion" - 42:Drivers/CMSIS/Include/cmsis_gcc.h **** #pragma GCC diagnostic ignored "-Wconversion" - 43:Drivers/CMSIS/Include/cmsis_gcc.h **** #pragma GCC diagnostic ignored "-Wunused-parameter" - 44:Drivers/CMSIS/Include/cmsis_gcc.h **** #endif - 45:Drivers/CMSIS/Include/cmsis_gcc.h **** - 46:Drivers/CMSIS/Include/cmsis_gcc.h **** - 47:Drivers/CMSIS/Include/cmsis_gcc.h **** /* ########################### Core Function Access ########################### */ - 48:Drivers/CMSIS/Include/cmsis_gcc.h **** /** \ingroup CMSIS_Core_FunctionInterface - 49:Drivers/CMSIS/Include/cmsis_gcc.h **** \defgroup CMSIS_Core_RegAccFunctions CMSIS Core Register Access Functions - 50:Drivers/CMSIS/Include/cmsis_gcc.h **** @{ - 51:Drivers/CMSIS/Include/cmsis_gcc.h **** */ - 52:Drivers/CMSIS/Include/cmsis_gcc.h **** - 53:Drivers/CMSIS/Include/cmsis_gcc.h **** /** - 54:Drivers/CMSIS/Include/cmsis_gcc.h **** \brief Enable IRQ Interrupts - 55:Drivers/CMSIS/Include/cmsis_gcc.h **** \details Enables IRQ interrupts by clearing the I-bit in the CPSR. - 56:Drivers/CMSIS/Include/cmsis_gcc.h **** Can only be executed in Privileged modes. - 57:Drivers/CMSIS/Include/cmsis_gcc.h **** */ - 58:Drivers/CMSIS/Include/cmsis_gcc.h **** __attribute__( ( always_inline ) ) __STATIC_INLINE void __enable_irq(void) - 59:Drivers/CMSIS/Include/cmsis_gcc.h **** { - 60:Drivers/CMSIS/Include/cmsis_gcc.h **** __ASM volatile ("cpsie i" : : : "memory"); - 61:Drivers/CMSIS/Include/cmsis_gcc.h **** } - 62:Drivers/CMSIS/Include/cmsis_gcc.h **** - 63:Drivers/CMSIS/Include/cmsis_gcc.h **** - 64:Drivers/CMSIS/Include/cmsis_gcc.h **** /** - 65:Drivers/CMSIS/Include/cmsis_gcc.h **** \brief Disable IRQ Interrupts - 66:Drivers/CMSIS/Include/cmsis_gcc.h **** \details Disables IRQ interrupts by setting the I-bit in the CPSR. - 67:Drivers/CMSIS/Include/cmsis_gcc.h **** Can only be executed in Privileged modes. - 68:Drivers/CMSIS/Include/cmsis_gcc.h **** */ - 69:Drivers/CMSIS/Include/cmsis_gcc.h **** __attribute__( ( always_inline ) ) __STATIC_INLINE void __disable_irq(void) - 70:Drivers/CMSIS/Include/cmsis_gcc.h **** { - 71:Drivers/CMSIS/Include/cmsis_gcc.h **** __ASM volatile ("cpsid i" : : : "memory"); - 72:Drivers/CMSIS/Include/cmsis_gcc.h **** } - 73:Drivers/CMSIS/Include/cmsis_gcc.h **** - 74:Drivers/CMSIS/Include/cmsis_gcc.h **** - 75:Drivers/CMSIS/Include/cmsis_gcc.h **** /** - 76:Drivers/CMSIS/Include/cmsis_gcc.h **** \brief Get Control Register - 77:Drivers/CMSIS/Include/cmsis_gcc.h **** \details Returns the content of the Control Register. - ARM GAS /tmp/cccM92VN.s page 11 - - - 78:Drivers/CMSIS/Include/cmsis_gcc.h **** \return Control Register value - 79:Drivers/CMSIS/Include/cmsis_gcc.h **** */ - 80:Drivers/CMSIS/Include/cmsis_gcc.h **** __attribute__( ( always_inline ) ) __STATIC_INLINE uint32_t __get_CONTROL(void) - 81:Drivers/CMSIS/Include/cmsis_gcc.h **** { - 82:Drivers/CMSIS/Include/cmsis_gcc.h **** uint32_t result; - 83:Drivers/CMSIS/Include/cmsis_gcc.h **** - 84:Drivers/CMSIS/Include/cmsis_gcc.h **** __ASM volatile ("MRS %0, control" : "=r" (result) ); - 85:Drivers/CMSIS/Include/cmsis_gcc.h **** return(result); - 86:Drivers/CMSIS/Include/cmsis_gcc.h **** } - 87:Drivers/CMSIS/Include/cmsis_gcc.h **** - 88:Drivers/CMSIS/Include/cmsis_gcc.h **** - 89:Drivers/CMSIS/Include/cmsis_gcc.h **** /** - 90:Drivers/CMSIS/Include/cmsis_gcc.h **** \brief Set Control Register - 91:Drivers/CMSIS/Include/cmsis_gcc.h **** \details Writes the given value to the Control Register. - 92:Drivers/CMSIS/Include/cmsis_gcc.h **** \param [in] control Control Register value to set - 93:Drivers/CMSIS/Include/cmsis_gcc.h **** */ - 94:Drivers/CMSIS/Include/cmsis_gcc.h **** __attribute__( ( always_inline ) ) __STATIC_INLINE void __set_CONTROL(uint32_t control) - 95:Drivers/CMSIS/Include/cmsis_gcc.h **** { - 96:Drivers/CMSIS/Include/cmsis_gcc.h **** __ASM volatile ("MSR control, %0" : : "r" (control) : "memory"); - 97:Drivers/CMSIS/Include/cmsis_gcc.h **** } - 98:Drivers/CMSIS/Include/cmsis_gcc.h **** - 99:Drivers/CMSIS/Include/cmsis_gcc.h **** - 100:Drivers/CMSIS/Include/cmsis_gcc.h **** /** - 101:Drivers/CMSIS/Include/cmsis_gcc.h **** \brief Get IPSR Register - 102:Drivers/CMSIS/Include/cmsis_gcc.h **** \details Returns the content of the IPSR Register. - 103:Drivers/CMSIS/Include/cmsis_gcc.h **** \return IPSR Register value - 104:Drivers/CMSIS/Include/cmsis_gcc.h **** */ - 105:Drivers/CMSIS/Include/cmsis_gcc.h **** __attribute__( ( always_inline ) ) __STATIC_INLINE uint32_t __get_IPSR(void) - 106:Drivers/CMSIS/Include/cmsis_gcc.h **** { - 107:Drivers/CMSIS/Include/cmsis_gcc.h **** uint32_t result; - 108:Drivers/CMSIS/Include/cmsis_gcc.h **** - 109:Drivers/CMSIS/Include/cmsis_gcc.h **** __ASM volatile ("MRS %0, ipsr" : "=r" (result) ); - 110:Drivers/CMSIS/Include/cmsis_gcc.h **** return(result); - 111:Drivers/CMSIS/Include/cmsis_gcc.h **** } - 112:Drivers/CMSIS/Include/cmsis_gcc.h **** - 113:Drivers/CMSIS/Include/cmsis_gcc.h **** - 114:Drivers/CMSIS/Include/cmsis_gcc.h **** /** - 115:Drivers/CMSIS/Include/cmsis_gcc.h **** \brief Get APSR Register - 116:Drivers/CMSIS/Include/cmsis_gcc.h **** \details Returns the content of the APSR Register. - 117:Drivers/CMSIS/Include/cmsis_gcc.h **** \return APSR Register value - 118:Drivers/CMSIS/Include/cmsis_gcc.h **** */ - 119:Drivers/CMSIS/Include/cmsis_gcc.h **** __attribute__( ( always_inline ) ) __STATIC_INLINE uint32_t __get_APSR(void) - 120:Drivers/CMSIS/Include/cmsis_gcc.h **** { - 121:Drivers/CMSIS/Include/cmsis_gcc.h **** uint32_t result; - 122:Drivers/CMSIS/Include/cmsis_gcc.h **** - 123:Drivers/CMSIS/Include/cmsis_gcc.h **** __ASM volatile ("MRS %0, apsr" : "=r" (result) ); - 124:Drivers/CMSIS/Include/cmsis_gcc.h **** return(result); - 125:Drivers/CMSIS/Include/cmsis_gcc.h **** } - 126:Drivers/CMSIS/Include/cmsis_gcc.h **** - 127:Drivers/CMSIS/Include/cmsis_gcc.h **** - 128:Drivers/CMSIS/Include/cmsis_gcc.h **** /** - 129:Drivers/CMSIS/Include/cmsis_gcc.h **** \brief Get xPSR Register - 130:Drivers/CMSIS/Include/cmsis_gcc.h **** \details Returns the content of the xPSR Register. - 131:Drivers/CMSIS/Include/cmsis_gcc.h **** - 132:Drivers/CMSIS/Include/cmsis_gcc.h **** \return xPSR Register value - 133:Drivers/CMSIS/Include/cmsis_gcc.h **** */ - 134:Drivers/CMSIS/Include/cmsis_gcc.h **** __attribute__( ( always_inline ) ) __STATIC_INLINE uint32_t __get_xPSR(void) - ARM GAS /tmp/cccM92VN.s page 12 - - - 135:Drivers/CMSIS/Include/cmsis_gcc.h **** { - 136:Drivers/CMSIS/Include/cmsis_gcc.h **** uint32_t result; - 137:Drivers/CMSIS/Include/cmsis_gcc.h **** - 138:Drivers/CMSIS/Include/cmsis_gcc.h **** __ASM volatile ("MRS %0, xpsr" : "=r" (result) ); - 139:Drivers/CMSIS/Include/cmsis_gcc.h **** return(result); - 140:Drivers/CMSIS/Include/cmsis_gcc.h **** } - 141:Drivers/CMSIS/Include/cmsis_gcc.h **** - 142:Drivers/CMSIS/Include/cmsis_gcc.h **** - 143:Drivers/CMSIS/Include/cmsis_gcc.h **** /** - 144:Drivers/CMSIS/Include/cmsis_gcc.h **** \brief Get Process Stack Pointer - 145:Drivers/CMSIS/Include/cmsis_gcc.h **** \details Returns the current value of the Process Stack Pointer (PSP). - 146:Drivers/CMSIS/Include/cmsis_gcc.h **** \return PSP Register value - 147:Drivers/CMSIS/Include/cmsis_gcc.h **** */ - 148:Drivers/CMSIS/Include/cmsis_gcc.h **** __attribute__( ( always_inline ) ) __STATIC_INLINE uint32_t __get_PSP(void) - 149:Drivers/CMSIS/Include/cmsis_gcc.h **** { - 150:Drivers/CMSIS/Include/cmsis_gcc.h **** register uint32_t result; - 151:Drivers/CMSIS/Include/cmsis_gcc.h **** - 152:Drivers/CMSIS/Include/cmsis_gcc.h **** __ASM volatile ("MRS %0, psp\n" : "=r" (result) ); - 153:Drivers/CMSIS/Include/cmsis_gcc.h **** return(result); - 154:Drivers/CMSIS/Include/cmsis_gcc.h **** } - 155:Drivers/CMSIS/Include/cmsis_gcc.h **** - 156:Drivers/CMSIS/Include/cmsis_gcc.h **** - 157:Drivers/CMSIS/Include/cmsis_gcc.h **** /** - 158:Drivers/CMSIS/Include/cmsis_gcc.h **** \brief Set Process Stack Pointer - 159:Drivers/CMSIS/Include/cmsis_gcc.h **** \details Assigns the given value to the Process Stack Pointer (PSP). - 160:Drivers/CMSIS/Include/cmsis_gcc.h **** \param [in] topOfProcStack Process Stack Pointer value to set - 161:Drivers/CMSIS/Include/cmsis_gcc.h **** */ - 162:Drivers/CMSIS/Include/cmsis_gcc.h **** __attribute__( ( always_inline ) ) __STATIC_INLINE void __set_PSP(uint32_t topOfProcStack) - 163:Drivers/CMSIS/Include/cmsis_gcc.h **** { - 164:Drivers/CMSIS/Include/cmsis_gcc.h **** __ASM volatile ("MSR psp, %0\n" : : "r" (topOfProcStack) : "sp"); - 165:Drivers/CMSIS/Include/cmsis_gcc.h **** } - 166:Drivers/CMSIS/Include/cmsis_gcc.h **** - 167:Drivers/CMSIS/Include/cmsis_gcc.h **** - 168:Drivers/CMSIS/Include/cmsis_gcc.h **** /** - 169:Drivers/CMSIS/Include/cmsis_gcc.h **** \brief Get Main Stack Pointer - 170:Drivers/CMSIS/Include/cmsis_gcc.h **** \details Returns the current value of the Main Stack Pointer (MSP). - 171:Drivers/CMSIS/Include/cmsis_gcc.h **** \return MSP Register value - 172:Drivers/CMSIS/Include/cmsis_gcc.h **** */ - 173:Drivers/CMSIS/Include/cmsis_gcc.h **** __attribute__( ( always_inline ) ) __STATIC_INLINE uint32_t __get_MSP(void) - 174:Drivers/CMSIS/Include/cmsis_gcc.h **** { - 175:Drivers/CMSIS/Include/cmsis_gcc.h **** register uint32_t result; - 176:Drivers/CMSIS/Include/cmsis_gcc.h **** - 177:Drivers/CMSIS/Include/cmsis_gcc.h **** __ASM volatile ("MRS %0, msp\n" : "=r" (result) ); - 178:Drivers/CMSIS/Include/cmsis_gcc.h **** return(result); - 179:Drivers/CMSIS/Include/cmsis_gcc.h **** } - 180:Drivers/CMSIS/Include/cmsis_gcc.h **** - 181:Drivers/CMSIS/Include/cmsis_gcc.h **** - 182:Drivers/CMSIS/Include/cmsis_gcc.h **** /** - 183:Drivers/CMSIS/Include/cmsis_gcc.h **** \brief Set Main Stack Pointer - 184:Drivers/CMSIS/Include/cmsis_gcc.h **** \details Assigns the given value to the Main Stack Pointer (MSP). - 185:Drivers/CMSIS/Include/cmsis_gcc.h **** - 186:Drivers/CMSIS/Include/cmsis_gcc.h **** \param [in] topOfMainStack Main Stack Pointer value to set - 187:Drivers/CMSIS/Include/cmsis_gcc.h **** */ - 188:Drivers/CMSIS/Include/cmsis_gcc.h **** __attribute__( ( always_inline ) ) __STATIC_INLINE void __set_MSP(uint32_t topOfMainStack) - 189:Drivers/CMSIS/Include/cmsis_gcc.h **** { - 190:Drivers/CMSIS/Include/cmsis_gcc.h **** __ASM volatile ("MSR msp, %0\n" : : "r" (topOfMainStack) : "sp"); - 191:Drivers/CMSIS/Include/cmsis_gcc.h **** } - ARM GAS /tmp/cccM92VN.s page 13 - - - 192:Drivers/CMSIS/Include/cmsis_gcc.h **** - 193:Drivers/CMSIS/Include/cmsis_gcc.h **** - 194:Drivers/CMSIS/Include/cmsis_gcc.h **** /** - 195:Drivers/CMSIS/Include/cmsis_gcc.h **** \brief Get Priority Mask - 196:Drivers/CMSIS/Include/cmsis_gcc.h **** \details Returns the current state of the priority mask bit from the Priority Mask Register. - 197:Drivers/CMSIS/Include/cmsis_gcc.h **** \return Priority Mask value - 198:Drivers/CMSIS/Include/cmsis_gcc.h **** */ - 199:Drivers/CMSIS/Include/cmsis_gcc.h **** __attribute__( ( always_inline ) ) __STATIC_INLINE uint32_t __get_PRIMASK(void) - 200:Drivers/CMSIS/Include/cmsis_gcc.h **** { - 201:Drivers/CMSIS/Include/cmsis_gcc.h **** uint32_t result; - 202:Drivers/CMSIS/Include/cmsis_gcc.h **** - 203:Drivers/CMSIS/Include/cmsis_gcc.h **** __ASM volatile ("MRS %0, primask" : "=r" (result) ); - 204:Drivers/CMSIS/Include/cmsis_gcc.h **** return(result); - 205:Drivers/CMSIS/Include/cmsis_gcc.h **** } - 206:Drivers/CMSIS/Include/cmsis_gcc.h **** - 207:Drivers/CMSIS/Include/cmsis_gcc.h **** - 208:Drivers/CMSIS/Include/cmsis_gcc.h **** /** - 209:Drivers/CMSIS/Include/cmsis_gcc.h **** \brief Set Priority Mask - 210:Drivers/CMSIS/Include/cmsis_gcc.h **** \details Assigns the given value to the Priority Mask Register. - 211:Drivers/CMSIS/Include/cmsis_gcc.h **** \param [in] priMask Priority Mask - 212:Drivers/CMSIS/Include/cmsis_gcc.h **** */ - 213:Drivers/CMSIS/Include/cmsis_gcc.h **** __attribute__( ( always_inline ) ) __STATIC_INLINE void __set_PRIMASK(uint32_t priMask) - 214:Drivers/CMSIS/Include/cmsis_gcc.h **** { - 215:Drivers/CMSIS/Include/cmsis_gcc.h **** __ASM volatile ("MSR primask, %0" : : "r" (priMask) : "memory"); - 216:Drivers/CMSIS/Include/cmsis_gcc.h **** } - 217:Drivers/CMSIS/Include/cmsis_gcc.h **** - 218:Drivers/CMSIS/Include/cmsis_gcc.h **** - 219:Drivers/CMSIS/Include/cmsis_gcc.h **** #if (__CORTEX_M >= 0x03U) - 220:Drivers/CMSIS/Include/cmsis_gcc.h **** - 221:Drivers/CMSIS/Include/cmsis_gcc.h **** /** - 222:Drivers/CMSIS/Include/cmsis_gcc.h **** \brief Enable FIQ - 223:Drivers/CMSIS/Include/cmsis_gcc.h **** \details Enables FIQ interrupts by clearing the F-bit in the CPSR. - 224:Drivers/CMSIS/Include/cmsis_gcc.h **** Can only be executed in Privileged modes. - 225:Drivers/CMSIS/Include/cmsis_gcc.h **** */ - 226:Drivers/CMSIS/Include/cmsis_gcc.h **** __attribute__( ( always_inline ) ) __STATIC_INLINE void __enable_fault_irq(void) - 227:Drivers/CMSIS/Include/cmsis_gcc.h **** { - 228:Drivers/CMSIS/Include/cmsis_gcc.h **** __ASM volatile ("cpsie f" : : : "memory"); - 229:Drivers/CMSIS/Include/cmsis_gcc.h **** } - 230:Drivers/CMSIS/Include/cmsis_gcc.h **** - 231:Drivers/CMSIS/Include/cmsis_gcc.h **** - 232:Drivers/CMSIS/Include/cmsis_gcc.h **** /** - 233:Drivers/CMSIS/Include/cmsis_gcc.h **** \brief Disable FIQ - 234:Drivers/CMSIS/Include/cmsis_gcc.h **** \details Disables FIQ interrupts by setting the F-bit in the CPSR. - 235:Drivers/CMSIS/Include/cmsis_gcc.h **** Can only be executed in Privileged modes. - 236:Drivers/CMSIS/Include/cmsis_gcc.h **** */ - 237:Drivers/CMSIS/Include/cmsis_gcc.h **** __attribute__( ( always_inline ) ) __STATIC_INLINE void __disable_fault_irq(void) - 238:Drivers/CMSIS/Include/cmsis_gcc.h **** { - 239:Drivers/CMSIS/Include/cmsis_gcc.h **** __ASM volatile ("cpsid f" : : : "memory"); - 240:Drivers/CMSIS/Include/cmsis_gcc.h **** } - 241:Drivers/CMSIS/Include/cmsis_gcc.h **** - 242:Drivers/CMSIS/Include/cmsis_gcc.h **** - 243:Drivers/CMSIS/Include/cmsis_gcc.h **** /** - 244:Drivers/CMSIS/Include/cmsis_gcc.h **** \brief Get Base Priority - 245:Drivers/CMSIS/Include/cmsis_gcc.h **** \details Returns the current value of the Base Priority register. - 246:Drivers/CMSIS/Include/cmsis_gcc.h **** \return Base Priority register value - 247:Drivers/CMSIS/Include/cmsis_gcc.h **** */ - 248:Drivers/CMSIS/Include/cmsis_gcc.h **** __attribute__( ( always_inline ) ) __STATIC_INLINE uint32_t __get_BASEPRI(void) - ARM GAS /tmp/cccM92VN.s page 14 - - - 249:Drivers/CMSIS/Include/cmsis_gcc.h **** { - 250:Drivers/CMSIS/Include/cmsis_gcc.h **** uint32_t result; - 251:Drivers/CMSIS/Include/cmsis_gcc.h **** - 252:Drivers/CMSIS/Include/cmsis_gcc.h **** __ASM volatile ("MRS %0, basepri" : "=r" (result) ); - 253:Drivers/CMSIS/Include/cmsis_gcc.h **** return(result); - 254:Drivers/CMSIS/Include/cmsis_gcc.h **** } - 255:Drivers/CMSIS/Include/cmsis_gcc.h **** - 256:Drivers/CMSIS/Include/cmsis_gcc.h **** - 257:Drivers/CMSIS/Include/cmsis_gcc.h **** /** - 258:Drivers/CMSIS/Include/cmsis_gcc.h **** \brief Set Base Priority - 259:Drivers/CMSIS/Include/cmsis_gcc.h **** \details Assigns the given value to the Base Priority register. - 260:Drivers/CMSIS/Include/cmsis_gcc.h **** \param [in] basePri Base Priority value to set - 261:Drivers/CMSIS/Include/cmsis_gcc.h **** */ - 262:Drivers/CMSIS/Include/cmsis_gcc.h **** __attribute__( ( always_inline ) ) __STATIC_INLINE void __set_BASEPRI(uint32_t value) - 263:Drivers/CMSIS/Include/cmsis_gcc.h **** { - 264:Drivers/CMSIS/Include/cmsis_gcc.h **** __ASM volatile ("MSR basepri, %0" : : "r" (value) : "memory"); - 265:Drivers/CMSIS/Include/cmsis_gcc.h **** } - 266:Drivers/CMSIS/Include/cmsis_gcc.h **** - 267:Drivers/CMSIS/Include/cmsis_gcc.h **** - 268:Drivers/CMSIS/Include/cmsis_gcc.h **** /** - 269:Drivers/CMSIS/Include/cmsis_gcc.h **** \brief Set Base Priority with condition - 270:Drivers/CMSIS/Include/cmsis_gcc.h **** \details Assigns the given value to the Base Priority register only if BASEPRI masking is disable - 271:Drivers/CMSIS/Include/cmsis_gcc.h **** or the new value increases the BASEPRI priority level. - 272:Drivers/CMSIS/Include/cmsis_gcc.h **** \param [in] basePri Base Priority value to set - 273:Drivers/CMSIS/Include/cmsis_gcc.h **** */ - 274:Drivers/CMSIS/Include/cmsis_gcc.h **** __attribute__( ( always_inline ) ) __STATIC_INLINE void __set_BASEPRI_MAX(uint32_t value) - 275:Drivers/CMSIS/Include/cmsis_gcc.h **** { - 276:Drivers/CMSIS/Include/cmsis_gcc.h **** __ASM volatile ("MSR basepri_max, %0" : : "r" (value) : "memory"); - 277:Drivers/CMSIS/Include/cmsis_gcc.h **** } - 278:Drivers/CMSIS/Include/cmsis_gcc.h **** - 279:Drivers/CMSIS/Include/cmsis_gcc.h **** - 280:Drivers/CMSIS/Include/cmsis_gcc.h **** /** - 281:Drivers/CMSIS/Include/cmsis_gcc.h **** \brief Get Fault Mask - 282:Drivers/CMSIS/Include/cmsis_gcc.h **** \details Returns the current value of the Fault Mask register. - 283:Drivers/CMSIS/Include/cmsis_gcc.h **** \return Fault Mask register value - 284:Drivers/CMSIS/Include/cmsis_gcc.h **** */ - 285:Drivers/CMSIS/Include/cmsis_gcc.h **** __attribute__( ( always_inline ) ) __STATIC_INLINE uint32_t __get_FAULTMASK(void) - 286:Drivers/CMSIS/Include/cmsis_gcc.h **** { - 287:Drivers/CMSIS/Include/cmsis_gcc.h **** uint32_t result; - 288:Drivers/CMSIS/Include/cmsis_gcc.h **** - 289:Drivers/CMSIS/Include/cmsis_gcc.h **** __ASM volatile ("MRS %0, faultmask" : "=r" (result) ); - 290:Drivers/CMSIS/Include/cmsis_gcc.h **** return(result); - 291:Drivers/CMSIS/Include/cmsis_gcc.h **** } - 292:Drivers/CMSIS/Include/cmsis_gcc.h **** - 293:Drivers/CMSIS/Include/cmsis_gcc.h **** - 294:Drivers/CMSIS/Include/cmsis_gcc.h **** /** - 295:Drivers/CMSIS/Include/cmsis_gcc.h **** \brief Set Fault Mask - 296:Drivers/CMSIS/Include/cmsis_gcc.h **** \details Assigns the given value to the Fault Mask register. - 297:Drivers/CMSIS/Include/cmsis_gcc.h **** \param [in] faultMask Fault Mask value to set - 298:Drivers/CMSIS/Include/cmsis_gcc.h **** */ - 299:Drivers/CMSIS/Include/cmsis_gcc.h **** __attribute__( ( always_inline ) ) __STATIC_INLINE void __set_FAULTMASK(uint32_t faultMask) - 300:Drivers/CMSIS/Include/cmsis_gcc.h **** { - 301:Drivers/CMSIS/Include/cmsis_gcc.h **** __ASM volatile ("MSR faultmask, %0" : : "r" (faultMask) : "memory"); - 302:Drivers/CMSIS/Include/cmsis_gcc.h **** } - 303:Drivers/CMSIS/Include/cmsis_gcc.h **** - 304:Drivers/CMSIS/Include/cmsis_gcc.h **** #endif /* (__CORTEX_M >= 0x03U) */ - 305:Drivers/CMSIS/Include/cmsis_gcc.h **** - ARM GAS /tmp/cccM92VN.s page 15 - - - 306:Drivers/CMSIS/Include/cmsis_gcc.h **** - 307:Drivers/CMSIS/Include/cmsis_gcc.h **** #if (__CORTEX_M == 0x04U) || (__CORTEX_M == 0x07U) - 308:Drivers/CMSIS/Include/cmsis_gcc.h **** - 309:Drivers/CMSIS/Include/cmsis_gcc.h **** /** - 310:Drivers/CMSIS/Include/cmsis_gcc.h **** \brief Get FPSCR - 311:Drivers/CMSIS/Include/cmsis_gcc.h **** \details Returns the current value of the Floating Point Status/Control register. - 312:Drivers/CMSIS/Include/cmsis_gcc.h **** \return Floating Point Status/Control register value - 313:Drivers/CMSIS/Include/cmsis_gcc.h **** */ - 314:Drivers/CMSIS/Include/cmsis_gcc.h **** __attribute__( ( always_inline ) ) __STATIC_INLINE uint32_t __get_FPSCR(void) - 315:Drivers/CMSIS/Include/cmsis_gcc.h **** { - 316:Drivers/CMSIS/Include/cmsis_gcc.h **** #if (__FPU_PRESENT == 1U) && (__FPU_USED == 1U) - 317:Drivers/CMSIS/Include/cmsis_gcc.h **** uint32_t result; - 318:Drivers/CMSIS/Include/cmsis_gcc.h **** - 319:Drivers/CMSIS/Include/cmsis_gcc.h **** /* Empty asm statement works as a scheduling barrier */ - 320:Drivers/CMSIS/Include/cmsis_gcc.h **** __ASM volatile (""); - 321:Drivers/CMSIS/Include/cmsis_gcc.h **** __ASM volatile ("VMRS %0, fpscr" : "=r" (result) ); - 322:Drivers/CMSIS/Include/cmsis_gcc.h **** __ASM volatile (""); - 323:Drivers/CMSIS/Include/cmsis_gcc.h **** return(result); - 324:Drivers/CMSIS/Include/cmsis_gcc.h **** #else - 325:Drivers/CMSIS/Include/cmsis_gcc.h **** return(0); - 326:Drivers/CMSIS/Include/cmsis_gcc.h **** #endif - 327:Drivers/CMSIS/Include/cmsis_gcc.h **** } - 328:Drivers/CMSIS/Include/cmsis_gcc.h **** - 329:Drivers/CMSIS/Include/cmsis_gcc.h **** - 330:Drivers/CMSIS/Include/cmsis_gcc.h **** /** - 331:Drivers/CMSIS/Include/cmsis_gcc.h **** \brief Set FPSCR - 332:Drivers/CMSIS/Include/cmsis_gcc.h **** \details Assigns the given value to the Floating Point Status/Control register. - 333:Drivers/CMSIS/Include/cmsis_gcc.h **** \param [in] fpscr Floating Point Status/Control value to set - 334:Drivers/CMSIS/Include/cmsis_gcc.h **** */ - 335:Drivers/CMSIS/Include/cmsis_gcc.h **** __attribute__( ( always_inline ) ) __STATIC_INLINE void __set_FPSCR(uint32_t fpscr) - 336:Drivers/CMSIS/Include/cmsis_gcc.h **** { - 337:Drivers/CMSIS/Include/cmsis_gcc.h **** #if (__FPU_PRESENT == 1U) && (__FPU_USED == 1U) - 338:Drivers/CMSIS/Include/cmsis_gcc.h **** /* Empty asm statement works as a scheduling barrier */ - 339:Drivers/CMSIS/Include/cmsis_gcc.h **** __ASM volatile (""); - 340:Drivers/CMSIS/Include/cmsis_gcc.h **** __ASM volatile ("VMSR fpscr, %0" : : "r" (fpscr) : "vfpcc"); - 341:Drivers/CMSIS/Include/cmsis_gcc.h **** __ASM volatile (""); - 342:Drivers/CMSIS/Include/cmsis_gcc.h **** #endif - 343:Drivers/CMSIS/Include/cmsis_gcc.h **** } - 344:Drivers/CMSIS/Include/cmsis_gcc.h **** - 345:Drivers/CMSIS/Include/cmsis_gcc.h **** #endif /* (__CORTEX_M == 0x04U) || (__CORTEX_M == 0x07U) */ - 346:Drivers/CMSIS/Include/cmsis_gcc.h **** - 347:Drivers/CMSIS/Include/cmsis_gcc.h **** - 348:Drivers/CMSIS/Include/cmsis_gcc.h **** - 349:Drivers/CMSIS/Include/cmsis_gcc.h **** /*@} end of CMSIS_Core_RegAccFunctions */ - 350:Drivers/CMSIS/Include/cmsis_gcc.h **** - 351:Drivers/CMSIS/Include/cmsis_gcc.h **** - 352:Drivers/CMSIS/Include/cmsis_gcc.h **** /* ########################## Core Instruction Access ######################### */ - 353:Drivers/CMSIS/Include/cmsis_gcc.h **** /** \defgroup CMSIS_Core_InstructionInterface CMSIS Core Instruction Interface - 354:Drivers/CMSIS/Include/cmsis_gcc.h **** Access to dedicated instructions - 355:Drivers/CMSIS/Include/cmsis_gcc.h **** @{ - 356:Drivers/CMSIS/Include/cmsis_gcc.h **** */ - 357:Drivers/CMSIS/Include/cmsis_gcc.h **** - 358:Drivers/CMSIS/Include/cmsis_gcc.h **** /* Define macros for porting to both thumb1 and thumb2. - 359:Drivers/CMSIS/Include/cmsis_gcc.h **** * For thumb1, use low register (r0-r7), specified by constraint "l" - 360:Drivers/CMSIS/Include/cmsis_gcc.h **** * Otherwise, use general registers, specified by constraint "r" */ - 361:Drivers/CMSIS/Include/cmsis_gcc.h **** #if defined (__thumb__) && !defined (__thumb2__) - 362:Drivers/CMSIS/Include/cmsis_gcc.h **** #define __CMSIS_GCC_OUT_REG(r) "=l" (r) - ARM GAS /tmp/cccM92VN.s page 16 - - - 363:Drivers/CMSIS/Include/cmsis_gcc.h **** #define __CMSIS_GCC_USE_REG(r) "l" (r) - 364:Drivers/CMSIS/Include/cmsis_gcc.h **** #else - 365:Drivers/CMSIS/Include/cmsis_gcc.h **** #define __CMSIS_GCC_OUT_REG(r) "=r" (r) - 366:Drivers/CMSIS/Include/cmsis_gcc.h **** #define __CMSIS_GCC_USE_REG(r) "r" (r) - 367:Drivers/CMSIS/Include/cmsis_gcc.h **** #endif - 368:Drivers/CMSIS/Include/cmsis_gcc.h **** - 369:Drivers/CMSIS/Include/cmsis_gcc.h **** /** - 370:Drivers/CMSIS/Include/cmsis_gcc.h **** \brief No Operation - 371:Drivers/CMSIS/Include/cmsis_gcc.h **** \details No Operation does nothing. This instruction can be used for code alignment purposes. - 372:Drivers/CMSIS/Include/cmsis_gcc.h **** */ - 373:Drivers/CMSIS/Include/cmsis_gcc.h **** __attribute__((always_inline)) __STATIC_INLINE void __NOP(void) - 374:Drivers/CMSIS/Include/cmsis_gcc.h **** { - 375:Drivers/CMSIS/Include/cmsis_gcc.h **** __ASM volatile ("nop"); - 376:Drivers/CMSIS/Include/cmsis_gcc.h **** } - 377:Drivers/CMSIS/Include/cmsis_gcc.h **** - 378:Drivers/CMSIS/Include/cmsis_gcc.h **** - 379:Drivers/CMSIS/Include/cmsis_gcc.h **** /** - 380:Drivers/CMSIS/Include/cmsis_gcc.h **** \brief Wait For Interrupt - 381:Drivers/CMSIS/Include/cmsis_gcc.h **** \details Wait For Interrupt is a hint instruction that suspends execution until one of a number o - 382:Drivers/CMSIS/Include/cmsis_gcc.h **** */ - 383:Drivers/CMSIS/Include/cmsis_gcc.h **** __attribute__((always_inline)) __STATIC_INLINE void __WFI(void) - 384:Drivers/CMSIS/Include/cmsis_gcc.h **** { - 385:Drivers/CMSIS/Include/cmsis_gcc.h **** __ASM volatile ("wfi"); - 386:Drivers/CMSIS/Include/cmsis_gcc.h **** } - 387:Drivers/CMSIS/Include/cmsis_gcc.h **** - 388:Drivers/CMSIS/Include/cmsis_gcc.h **** - 389:Drivers/CMSIS/Include/cmsis_gcc.h **** /** - 390:Drivers/CMSIS/Include/cmsis_gcc.h **** \brief Wait For Event - 391:Drivers/CMSIS/Include/cmsis_gcc.h **** \details Wait For Event is a hint instruction that permits the processor to enter - 392:Drivers/CMSIS/Include/cmsis_gcc.h **** a low-power state until one of a number of events occurs. - 393:Drivers/CMSIS/Include/cmsis_gcc.h **** */ - 394:Drivers/CMSIS/Include/cmsis_gcc.h **** __attribute__((always_inline)) __STATIC_INLINE void __WFE(void) - 395:Drivers/CMSIS/Include/cmsis_gcc.h **** { - 396:Drivers/CMSIS/Include/cmsis_gcc.h **** __ASM volatile ("wfe"); - 397:Drivers/CMSIS/Include/cmsis_gcc.h **** } - 398:Drivers/CMSIS/Include/cmsis_gcc.h **** - 399:Drivers/CMSIS/Include/cmsis_gcc.h **** - 400:Drivers/CMSIS/Include/cmsis_gcc.h **** /** - 401:Drivers/CMSIS/Include/cmsis_gcc.h **** \brief Send Event - 402:Drivers/CMSIS/Include/cmsis_gcc.h **** \details Send Event is a hint instruction. It causes an event to be signaled to the CPU. - 403:Drivers/CMSIS/Include/cmsis_gcc.h **** */ - 404:Drivers/CMSIS/Include/cmsis_gcc.h **** __attribute__((always_inline)) __STATIC_INLINE void __SEV(void) - 405:Drivers/CMSIS/Include/cmsis_gcc.h **** { - 406:Drivers/CMSIS/Include/cmsis_gcc.h **** __ASM volatile ("sev"); - 210 .loc 2 406 0 - 211 .syntax divided - 212 @ 406 "Drivers/CMSIS/Include/cmsis_gcc.h" 1 - 213 000e 40BF sev - 214 @ 0 "" 2 - 215 .thumb - 216 .syntax unified - 217 .LBE21: - 218 .LBE20: - 219 .LBB22: - 220 .LBB23: - 396:Drivers/CMSIS/Include/cmsis_gcc.h **** } - 221 .loc 2 396 0 - ARM GAS /tmp/cccM92VN.s page 17 - - - 222 .syntax divided - 223 @ 396 "Drivers/CMSIS/Include/cmsis_gcc.h" 1 - 224 0010 20BF wfe - 225 @ 0 "" 2 - 226 .thumb - 227 .syntax unified - 228 .LBE23: - 229 .LBE22: - 230 .LBB24: - 231 .LBB25: - 232 .syntax divided - 233 @ 396 "Drivers/CMSIS/Include/cmsis_gcc.h" 1 - 234 0012 20BF wfe - 235 @ 0 "" 2 - 236 .thumb - 237 .syntax unified - 238 .L16: - 239 .LBE25: - 240 .LBE24: - 296:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pwr.c **** { - 297:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pwr.c **** /* Request Wait For Interrupt */ - 298:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pwr.c **** __WFI(); - 299:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pwr.c **** } - 300:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pwr.c **** else - 301:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pwr.c **** { - 302:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pwr.c **** /* Request Wait For Event */ - 303:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pwr.c **** __SEV(); - 304:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pwr.c **** __WFE(); - 305:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pwr.c **** __WFE(); - 306:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pwr.c **** } - 307:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pwr.c **** } - 241 .loc 1 307 0 - 242 @ sp needed - 243 0014 7047 bx lr - 244 .L19: - 245 .LBB26: - 246 .LBB27: - 385:Drivers/CMSIS/Include/cmsis_gcc.h **** } - 247 .loc 2 385 0 - 248 .syntax divided - 249 @ 385 "Drivers/CMSIS/Include/cmsis_gcc.h" 1 - 250 0016 30BF wfi - 251 @ 0 "" 2 - 252 .thumb - 253 .syntax unified - 254 0018 FCE7 b .L16 - 255 .L21: - 256 001a C046 .align 2 - 257 .L20: - 258 001c 00ED00E0 .word -536810240 - 259 .LBE27: - 260 .LBE26: - 261 .cfi_endproc - 262 .LFE42: - 264 .section .text.HAL_PWR_EnterSTOPMode,"ax",%progbits - 265 .align 1 - 266 .global HAL_PWR_EnterSTOPMode - ARM GAS /tmp/cccM92VN.s page 18 - - - 267 .syntax unified - 268 .code 16 - 269 .thumb_func - 270 .fpu softvfp - 272 HAL_PWR_EnterSTOPMode: - 273 .LFB43: - 308:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pwr.c **** - 309:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pwr.c **** /** - 310:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pwr.c **** * @brief Enters STOP mode. - 311:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pwr.c **** * @note In Stop mode, all I/O pins keep the same state as in Run mode. - 312:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pwr.c **** * @note When exiting Stop mode by issuing an interrupt or a wakeup event, - 313:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pwr.c **** * the HSI RC oscillator is selected as system clock. - 314:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pwr.c **** * @note When the voltage regulator operates in low power mode, an additional - 315:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pwr.c **** * startup delay is incurred when waking up from Stop mode. - 316:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pwr.c **** * By keeping the internal regulator ON during Stop mode, the consumption - 317:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pwr.c **** * is higher although the startup time is reduced. - 318:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pwr.c **** * @param Regulator Specifies the regulator state in STOP mode. - 319:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pwr.c **** * This parameter can be one of the following values: - 320:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pwr.c **** * @arg PWR_MAINREGULATOR_ON: STOP mode with regulator ON - 321:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pwr.c **** * @arg PWR_LOWPOWERREGULATOR_ON: STOP mode with low power regulator ON - 322:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pwr.c **** * @param STOPEntry specifies if STOP mode in entered with WFI or WFE instruction. - 323:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pwr.c **** * This parameter can be one of the following values: - 324:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pwr.c **** * @arg PWR_STOPENTRY_WFI:Enter STOP mode with WFI instruction - 325:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pwr.c **** * @arg PWR_STOPENTRY_WFE: Enter STOP mode with WFE instruction - 326:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pwr.c **** * @retval None - 327:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pwr.c **** */ - 328:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pwr.c **** void HAL_PWR_EnterSTOPMode(uint32_t Regulator, uint8_t STOPEntry) - 329:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pwr.c **** { - 274 .loc 1 329 0 - 275 .cfi_startproc - 276 @ args = 0, pretend = 0, frame = 0 - 277 @ frame_needed = 0, uses_anonymous_args = 0 - 278 .LVL5: - 279 0000 10B5 push {r4, lr} - 280 .LCFI0: - 281 .cfi_def_cfa_offset 8 - 282 .cfi_offset 4, -8 - 283 .cfi_offset 14, -4 - 284 .LVL6: - 330:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pwr.c **** uint32_t tmpreg = 0; - 331:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pwr.c **** - 332:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pwr.c **** /* Check the parameters */ - 333:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pwr.c **** assert_param(IS_PWR_REGULATOR(Regulator)); - 334:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pwr.c **** assert_param(IS_PWR_STOP_ENTRY(STOPEntry)); - 335:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pwr.c **** - 336:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pwr.c **** /* Select the regulator state in STOP mode ---------------------------------*/ - 337:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pwr.c **** tmpreg = PWR->CR; - 285 .loc 1 337 0 - 286 0002 0C4A ldr r2, .L26 - 287 0004 1368 ldr r3, [r2] - 288 .LVL7: - 338:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pwr.c **** - 339:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pwr.c **** /* Clear PDDS and LPDS bits */ - 340:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pwr.c **** tmpreg &= (uint32_t)~(PWR_CR_PDDS | PWR_CR_LPDS); - 289 .loc 1 340 0 - 290 0006 0324 movs r4, #3 - 291 0008 A343 bics r3, r4 - ARM GAS /tmp/cccM92VN.s page 19 - - - 292 .LVL8: - 341:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pwr.c **** - 342:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pwr.c **** /* Set LPDS bit according to Regulator value */ - 343:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pwr.c **** tmpreg |= Regulator; - 293 .loc 1 343 0 - 294 000a 1843 orrs r0, r3 - 295 .LVL9: - 344:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pwr.c **** - 345:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pwr.c **** /* Store the new value */ - 346:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pwr.c **** PWR->CR = tmpreg; - 296 .loc 1 346 0 - 297 000c 1060 str r0, [r2] - 347:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pwr.c **** - 348:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pwr.c **** /* Set SLEEPDEEP bit of Cortex System Control Register */ - 349:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pwr.c **** SCB->SCR |= SCB_SCR_SLEEPDEEP_Msk; - 298 .loc 1 349 0 - 299 000e 0A4A ldr r2, .L26+4 - 300 0010 1369 ldr r3, [r2, #16] - 301 0012 0420 movs r0, #4 - 302 .LVL10: - 303 0014 0343 orrs r3, r0 - 304 0016 1361 str r3, [r2, #16] - 305 .LVL11: - 350:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pwr.c **** - 351:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pwr.c **** /* Select STOP mode entry --------------------------------------------------*/ - 352:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pwr.c **** if(STOPEntry == PWR_STOPENTRY_WFI) - 306 .loc 1 352 0 - 307 0018 0129 cmp r1, #1 - 308 001a 08D0 beq .L25 - 309 .LBB28: - 310 .LBB29: - 311 .loc 2 406 0 - 312 .syntax divided - 313 @ 406 "Drivers/CMSIS/Include/cmsis_gcc.h" 1 - 314 001c 40BF sev - 315 @ 0 "" 2 - 316 .thumb - 317 .syntax unified - 318 .LBE29: - 319 .LBE28: - 320 .LBB30: - 321 .LBB31: - 396:Drivers/CMSIS/Include/cmsis_gcc.h **** } - 322 .loc 2 396 0 - 323 .syntax divided - 324 @ 396 "Drivers/CMSIS/Include/cmsis_gcc.h" 1 - 325 001e 20BF wfe - 326 @ 0 "" 2 - 327 .thumb - 328 .syntax unified - 329 .LBE31: - 330 .LBE30: - 331 .LBB32: - 332 .LBB33: - 333 .syntax divided - 334 @ 396 "Drivers/CMSIS/Include/cmsis_gcc.h" 1 - 335 0020 20BF wfe - ARM GAS /tmp/cccM92VN.s page 20 - - - 336 @ 0 "" 2 - 337 .thumb - 338 .syntax unified - 339 .L24: - 340 .LBE33: - 341 .LBE32: - 353:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pwr.c **** { - 354:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pwr.c **** /* Request Wait For Interrupt */ - 355:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pwr.c **** __WFI(); - 356:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pwr.c **** } - 357:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pwr.c **** else - 358:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pwr.c **** { - 359:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pwr.c **** /* Request Wait For Event */ - 360:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pwr.c **** __SEV(); - 361:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pwr.c **** __WFE(); - 362:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pwr.c **** __WFE(); - 363:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pwr.c **** } - 364:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pwr.c **** - 365:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pwr.c **** /* Reset SLEEPDEEP bit of Cortex System Control Register */ - 366:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pwr.c **** SCB->SCR &= (uint32_t)~((uint32_t)SCB_SCR_SLEEPDEEP_Msk); - 342 .loc 1 366 0 - 343 0022 054A ldr r2, .L26+4 - 344 0024 1369 ldr r3, [r2, #16] - 345 0026 0421 movs r1, #4 - 346 .LVL12: - 347 0028 8B43 bics r3, r1 - 348 002a 1361 str r3, [r2, #16] - 367:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pwr.c **** } - 349 .loc 1 367 0 - 350 @ sp needed - 351 002c 10BD pop {r4, pc} - 352 .LVL13: - 353 .L25: - 354 .LBB34: - 355 .LBB35: - 385:Drivers/CMSIS/Include/cmsis_gcc.h **** } - 356 .loc 2 385 0 - 357 .syntax divided - 358 @ 385 "Drivers/CMSIS/Include/cmsis_gcc.h" 1 - 359 002e 30BF wfi - 360 @ 0 "" 2 - 361 .thumb - 362 .syntax unified - 363 0030 F7E7 b .L24 - 364 .L27: - 365 0032 C046 .align 2 - 366 .L26: - 367 0034 00700040 .word 1073770496 - 368 0038 00ED00E0 .word -536810240 - 369 .LBE35: - 370 .LBE34: - 371 .cfi_endproc - 372 .LFE43: - 374 .section .text.HAL_PWR_EnterSTANDBYMode,"ax",%progbits - 375 .align 1 - 376 .global HAL_PWR_EnterSTANDBYMode - 377 .syntax unified - ARM GAS /tmp/cccM92VN.s page 21 - - - 378 .code 16 - 379 .thumb_func - 380 .fpu softvfp - 382 HAL_PWR_EnterSTANDBYMode: - 383 .LFB44: - 368:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pwr.c **** - 369:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pwr.c **** /** - 370:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pwr.c **** * @brief Enters STANDBY mode. - 371:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pwr.c **** * @note In Standby mode, all I/O pins are high impedance except for: - 372:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pwr.c **** * - Reset pad (still available) - 373:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pwr.c **** * - RTC alternate function pins if configured for tamper, time-stamp, RTC - 374:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pwr.c **** * Alarm out, or RTC clock calibration out. - 375:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pwr.c **** * - WKUP pins if enabled. - 376:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pwr.c **** * STM32F0x8 devices, the Stop mode is available, but it is - 377:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pwr.c **** * aningless to distinguish between voltage regulator in Low power - 378:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pwr.c **** * mode and voltage regulator in Run mode because the regulator - 379:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pwr.c **** * not used and the core is supplied directly from an external source. - 380:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pwr.c **** * Consequently, the Standby mode is not available on those devices. - 381:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pwr.c **** * @retval None - 382:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pwr.c **** */ - 383:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pwr.c **** void HAL_PWR_EnterSTANDBYMode(void) - 384:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pwr.c **** { - 384 .loc 1 384 0 - 385 .cfi_startproc - 386 @ args = 0, pretend = 0, frame = 0 - 387 @ frame_needed = 0, uses_anonymous_args = 0 - 388 @ link register save eliminated. - 385:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pwr.c **** /* Select STANDBY mode */ - 386:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pwr.c **** PWR->CR |= (uint32_t)PWR_CR_PDDS; - 389 .loc 1 386 0 - 390 0000 054A ldr r2, .L29 - 391 0002 1368 ldr r3, [r2] - 392 0004 0221 movs r1, #2 - 393 0006 0B43 orrs r3, r1 - 394 0008 1360 str r3, [r2] - 387:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pwr.c **** - 388:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pwr.c **** /* Set SLEEPDEEP bit of Cortex System Control Register */ - 389:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pwr.c **** SCB->SCR |= SCB_SCR_SLEEPDEEP_Msk; - 395 .loc 1 389 0 - 396 000a 044A ldr r2, .L29+4 - 397 000c 1369 ldr r3, [r2, #16] - 398 000e 0231 adds r1, r1, #2 - 399 0010 0B43 orrs r3, r1 - 400 0012 1361 str r3, [r2, #16] - 401 .LBB36: - 402 .LBB37: - 385:Drivers/CMSIS/Include/cmsis_gcc.h **** } - 403 .loc 2 385 0 - 404 .syntax divided - 405 @ 385 "Drivers/CMSIS/Include/cmsis_gcc.h" 1 - 406 0014 30BF wfi - 407 @ 0 "" 2 - 408 .thumb - 409 .syntax unified - 410 .LBE37: - 411 .LBE36: - 390:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pwr.c **** - ARM GAS /tmp/cccM92VN.s page 22 - - - 391:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pwr.c **** /* This option is used to ensure that store operations are completed */ - 392:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pwr.c **** #if defined ( __CC_ARM) - 393:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pwr.c **** __force_stores(); - 394:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pwr.c **** #endif - 395:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pwr.c **** /* Request Wait For Interrupt */ - 396:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pwr.c **** __WFI(); - 397:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pwr.c **** } - 412 .loc 1 397 0 - 413 @ sp needed - 414 0016 7047 bx lr - 415 .L30: - 416 .align 2 - 417 .L29: - 418 0018 00700040 .word 1073770496 - 419 001c 00ED00E0 .word -536810240 - 420 .cfi_endproc - 421 .LFE44: - 423 .section .text.HAL_PWR_EnableSleepOnExit,"ax",%progbits - 424 .align 1 - 425 .global HAL_PWR_EnableSleepOnExit - 426 .syntax unified - 427 .code 16 - 428 .thumb_func - 429 .fpu softvfp - 431 HAL_PWR_EnableSleepOnExit: - 432 .LFB45: - 398:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pwr.c **** - 399:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pwr.c **** /** - 400:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pwr.c **** * @brief Indicates Sleep-On-Exit when returning from Handler mode to Thread mode. - 401:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pwr.c **** * @note Set SLEEPONEXIT bit of SCR register. When this bit is set, the processor - 402:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pwr.c **** * re-enters SLEEP mode when an interruption handling is over. - 403:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pwr.c **** * Setting this bit is useful when the processor is expected to run only on - 404:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pwr.c **** * interruptions handling. - 405:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pwr.c **** * @retval None - 406:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pwr.c **** */ - 407:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pwr.c **** void HAL_PWR_EnableSleepOnExit(void) - 408:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pwr.c **** { - 433 .loc 1 408 0 - 434 .cfi_startproc - 435 @ args = 0, pretend = 0, frame = 0 - 436 @ frame_needed = 0, uses_anonymous_args = 0 - 437 @ link register save eliminated. - 409:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pwr.c **** /* Set SLEEPONEXIT bit of Cortex System Control Register */ - 410:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pwr.c **** SET_BIT(SCB->SCR, ((uint32_t)SCB_SCR_SLEEPONEXIT_Msk)); - 438 .loc 1 410 0 - 439 0000 024A ldr r2, .L32 - 440 0002 1369 ldr r3, [r2, #16] - 441 0004 0221 movs r1, #2 - 442 0006 0B43 orrs r3, r1 - 443 0008 1361 str r3, [r2, #16] - 411:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pwr.c **** } - 444 .loc 1 411 0 - 445 @ sp needed - 446 000a 7047 bx lr - 447 .L33: - 448 .align 2 - 449 .L32: - ARM GAS /tmp/cccM92VN.s page 23 - - - 450 000c 00ED00E0 .word -536810240 - 451 .cfi_endproc - 452 .LFE45: - 454 .section .text.HAL_PWR_DisableSleepOnExit,"ax",%progbits - 455 .align 1 - 456 .global HAL_PWR_DisableSleepOnExit - 457 .syntax unified - 458 .code 16 - 459 .thumb_func - 460 .fpu softvfp - 462 HAL_PWR_DisableSleepOnExit: - 463 .LFB46: - 412:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pwr.c **** - 413:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pwr.c **** - 414:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pwr.c **** /** - 415:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pwr.c **** * @brief Disables Sleep-On-Exit feature when returning from Handler mode to Thread mode. - 416:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pwr.c **** * @note Clears SLEEPONEXIT bit of SCR register. When this bit is set, the processor - 417:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pwr.c **** * re-enters SLEEP mode when an interruption handling is over. - 418:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pwr.c **** * @retval None - 419:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pwr.c **** */ - 420:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pwr.c **** void HAL_PWR_DisableSleepOnExit(void) - 421:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pwr.c **** { - 464 .loc 1 421 0 - 465 .cfi_startproc - 466 @ args = 0, pretend = 0, frame = 0 - 467 @ frame_needed = 0, uses_anonymous_args = 0 - 468 @ link register save eliminated. - 422:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pwr.c **** /* Clear SLEEPONEXIT bit of Cortex System Control Register */ - 423:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pwr.c **** CLEAR_BIT(SCB->SCR, ((uint32_t)SCB_SCR_SLEEPONEXIT_Msk)); - 469 .loc 1 423 0 - 470 0000 024A ldr r2, .L35 - 471 0002 1369 ldr r3, [r2, #16] - 472 0004 0221 movs r1, #2 - 473 0006 8B43 bics r3, r1 - 474 0008 1361 str r3, [r2, #16] - 424:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pwr.c **** } - 475 .loc 1 424 0 - 476 @ sp needed - 477 000a 7047 bx lr - 478 .L36: - 479 .align 2 - 480 .L35: - 481 000c 00ED00E0 .word -536810240 - 482 .cfi_endproc - 483 .LFE46: - 485 .section .text.HAL_PWR_EnableSEVOnPend,"ax",%progbits - 486 .align 1 - 487 .global HAL_PWR_EnableSEVOnPend - 488 .syntax unified - 489 .code 16 - 490 .thumb_func - 491 .fpu softvfp - 493 HAL_PWR_EnableSEVOnPend: - 494 .LFB47: - 425:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pwr.c **** - 426:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pwr.c **** - 427:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pwr.c **** - ARM GAS /tmp/cccM92VN.s page 24 - - - 428:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pwr.c **** /** - 429:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pwr.c **** * @brief Enables CORTEX M4 SEVONPEND bit. - 430:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pwr.c **** * @note Sets SEVONPEND bit of SCR register. When this bit is set, this causes - 431:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pwr.c **** * WFE to wake up when an interrupt moves from inactive to pended. - 432:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pwr.c **** * @retval None - 433:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pwr.c **** */ - 434:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pwr.c **** void HAL_PWR_EnableSEVOnPend(void) - 435:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pwr.c **** { - 495 .loc 1 435 0 - 496 .cfi_startproc - 497 @ args = 0, pretend = 0, frame = 0 - 498 @ frame_needed = 0, uses_anonymous_args = 0 - 499 @ link register save eliminated. - 436:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pwr.c **** /* Set SEVONPEND bit of Cortex System Control Register */ - 437:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pwr.c **** SET_BIT(SCB->SCR, ((uint32_t)SCB_SCR_SEVONPEND_Msk)); - 500 .loc 1 437 0 - 501 0000 024A ldr r2, .L38 - 502 0002 1369 ldr r3, [r2, #16] - 503 0004 1021 movs r1, #16 - 504 0006 0B43 orrs r3, r1 - 505 0008 1361 str r3, [r2, #16] - 438:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pwr.c **** } - 506 .loc 1 438 0 - 507 @ sp needed - 508 000a 7047 bx lr - 509 .L39: - 510 .align 2 - 511 .L38: - 512 000c 00ED00E0 .word -536810240 - 513 .cfi_endproc - 514 .LFE47: - 516 .section .text.HAL_PWR_DisableSEVOnPend,"ax",%progbits - 517 .align 1 - 518 .global HAL_PWR_DisableSEVOnPend - 519 .syntax unified - 520 .code 16 - 521 .thumb_func - 522 .fpu softvfp - 524 HAL_PWR_DisableSEVOnPend: - 525 .LFB48: - 439:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pwr.c **** - 440:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pwr.c **** - 441:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pwr.c **** /** - 442:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pwr.c **** * @brief Disables CORTEX M4 SEVONPEND bit. - 443:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pwr.c **** * @note Clears SEVONPEND bit of SCR register. When this bit is set, this causes - 444:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pwr.c **** * WFE to wake up when an interrupt moves from inactive to pended. - 445:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pwr.c **** * @retval None - 446:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pwr.c **** */ - 447:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pwr.c **** void HAL_PWR_DisableSEVOnPend(void) - 448:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pwr.c **** { - 526 .loc 1 448 0 - 527 .cfi_startproc - 528 @ args = 0, pretend = 0, frame = 0 - 529 @ frame_needed = 0, uses_anonymous_args = 0 - 530 @ link register save eliminated. - 449:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pwr.c **** /* Clear SEVONPEND bit of Cortex System Control Register */ - 450:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pwr.c **** CLEAR_BIT(SCB->SCR, ((uint32_t)SCB_SCR_SEVONPEND_Msk)); - ARM GAS /tmp/cccM92VN.s page 25 - - - 531 .loc 1 450 0 - 532 0000 024A ldr r2, .L41 - 533 0002 1369 ldr r3, [r2, #16] - 534 0004 1021 movs r1, #16 - 535 0006 8B43 bics r3, r1 - 536 0008 1361 str r3, [r2, #16] - 451:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pwr.c **** } - 537 .loc 1 451 0 - 538 @ sp needed - 539 000a 7047 bx lr - 540 .L42: - 541 .align 2 - 542 .L41: - 543 000c 00ED00E0 .word -536810240 - 544 .cfi_endproc - 545 .LFE48: - 547 .text - 548 .Letext0: - 549 .file 3 "/home/janhenrik/programme/gcc-arm-none-eabi-7-2018-q2-update/arm-none-eabi/include/machin - 550 .file 4 "/home/janhenrik/programme/gcc-arm-none-eabi-7-2018-q2-update/arm-none-eabi/include/sys/_s - 551 .file 5 "Drivers/CMSIS/Include/core_cm0.h" - 552 .file 6 "Drivers/CMSIS/Device/ST/STM32F0xx/Include/system_stm32f0xx.h" - 553 .file 7 "Drivers/CMSIS/Device/ST/STM32F0xx/Include/stm32f072xb.h" - 554 .file 8 "/home/janhenrik/programme/gcc-arm-none-eabi-7-2018-q2-update/arm-none-eabi/include/sys/lo - 555 .file 9 "/home/janhenrik/programme/gcc-arm-none-eabi-7-2018-q2-update/arm-none-eabi/include/sys/_t - 556 .file 10 "/home/janhenrik/programme/gcc-arm-none-eabi-7-2018-q2-update/lib/gcc/arm-none-eabi/7.3.1 - 557 .file 11 "/home/janhenrik/programme/gcc-arm-none-eabi-7-2018-q2-update/arm-none-eabi/include/sys/r - ARM GAS /tmp/cccM92VN.s page 26 - - -DEFINED SYMBOLS - *ABS*:0000000000000000 stm32f0xx_hal_pwr.c - /tmp/cccM92VN.s:16 .text.HAL_PWR_DeInit:0000000000000000 $t - /tmp/cccM92VN.s:23 .text.HAL_PWR_DeInit:0000000000000000 HAL_PWR_DeInit - /tmp/cccM92VN.s:49 .text.HAL_PWR_DeInit:0000000000000018 $d - /tmp/cccM92VN.s:55 .text.HAL_PWR_EnableBkUpAccess:0000000000000000 $t - /tmp/cccM92VN.s:62 .text.HAL_PWR_EnableBkUpAccess:0000000000000000 HAL_PWR_EnableBkUpAccess - /tmp/cccM92VN.s:82 .text.HAL_PWR_EnableBkUpAccess:0000000000000010 $d - /tmp/cccM92VN.s:87 .text.HAL_PWR_DisableBkUpAccess:0000000000000000 $t - /tmp/cccM92VN.s:94 .text.HAL_PWR_DisableBkUpAccess:0000000000000000 HAL_PWR_DisableBkUpAccess - /tmp/cccM92VN.s:113 .text.HAL_PWR_DisableBkUpAccess:000000000000000c $d - /tmp/cccM92VN.s:119 .text.HAL_PWR_EnableWakeUpPin:0000000000000000 $t - /tmp/cccM92VN.s:126 .text.HAL_PWR_EnableWakeUpPin:0000000000000000 HAL_PWR_EnableWakeUpPin - /tmp/cccM92VN.s:146 .text.HAL_PWR_EnableWakeUpPin:000000000000000c $d - /tmp/cccM92VN.s:151 .text.HAL_PWR_DisableWakeUpPin:0000000000000000 $t - /tmp/cccM92VN.s:158 .text.HAL_PWR_DisableWakeUpPin:0000000000000000 HAL_PWR_DisableWakeUpPin - /tmp/cccM92VN.s:177 .text.HAL_PWR_DisableWakeUpPin:000000000000000c $d - /tmp/cccM92VN.s:182 .text.HAL_PWR_EnterSLEEPMode:0000000000000000 $t - /tmp/cccM92VN.s:189 .text.HAL_PWR_EnterSLEEPMode:0000000000000000 HAL_PWR_EnterSLEEPMode - /tmp/cccM92VN.s:258 .text.HAL_PWR_EnterSLEEPMode:000000000000001c $d - /tmp/cccM92VN.s:265 .text.HAL_PWR_EnterSTOPMode:0000000000000000 $t - /tmp/cccM92VN.s:272 .text.HAL_PWR_EnterSTOPMode:0000000000000000 HAL_PWR_EnterSTOPMode - /tmp/cccM92VN.s:367 .text.HAL_PWR_EnterSTOPMode:0000000000000034 $d - /tmp/cccM92VN.s:375 .text.HAL_PWR_EnterSTANDBYMode:0000000000000000 $t - /tmp/cccM92VN.s:382 .text.HAL_PWR_EnterSTANDBYMode:0000000000000000 HAL_PWR_EnterSTANDBYMode - /tmp/cccM92VN.s:418 .text.HAL_PWR_EnterSTANDBYMode:0000000000000018 $d - /tmp/cccM92VN.s:424 .text.HAL_PWR_EnableSleepOnExit:0000000000000000 $t - /tmp/cccM92VN.s:431 .text.HAL_PWR_EnableSleepOnExit:0000000000000000 HAL_PWR_EnableSleepOnExit - /tmp/cccM92VN.s:450 .text.HAL_PWR_EnableSleepOnExit:000000000000000c $d - /tmp/cccM92VN.s:455 .text.HAL_PWR_DisableSleepOnExit:0000000000000000 $t - /tmp/cccM92VN.s:462 .text.HAL_PWR_DisableSleepOnExit:0000000000000000 HAL_PWR_DisableSleepOnExit - /tmp/cccM92VN.s:481 .text.HAL_PWR_DisableSleepOnExit:000000000000000c $d - /tmp/cccM92VN.s:486 .text.HAL_PWR_EnableSEVOnPend:0000000000000000 $t - /tmp/cccM92VN.s:493 .text.HAL_PWR_EnableSEVOnPend:0000000000000000 HAL_PWR_EnableSEVOnPend - /tmp/cccM92VN.s:512 .text.HAL_PWR_EnableSEVOnPend:000000000000000c $d - /tmp/cccM92VN.s:517 .text.HAL_PWR_DisableSEVOnPend:0000000000000000 $t - /tmp/cccM92VN.s:524 .text.HAL_PWR_DisableSEVOnPend:0000000000000000 HAL_PWR_DisableSEVOnPend - /tmp/cccM92VN.s:543 .text.HAL_PWR_DisableSEVOnPend:000000000000000c $d - -NO UNDEFINED SYMBOLS diff --git a/firmware/build/stm32f0xx_hal_pwr.o b/firmware/build/stm32f0xx_hal_pwr.o deleted file mode 100644 index 8259f51..0000000 Binary files a/firmware/build/stm32f0xx_hal_pwr.o and /dev/null differ diff --git a/firmware/build/stm32f0xx_hal_pwr_ex.d b/firmware/build/stm32f0xx_hal_pwr_ex.d deleted file mode 100644 index 6204681..0000000 --- a/firmware/build/stm32f0xx_hal_pwr_ex.d +++ /dev/null @@ -1,87 +0,0 @@ -build/stm32f0xx_hal_pwr_ex.o: \ - Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pwr_ex.c \ - Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal.h \ - Inc/stm32f0xx_hal_conf.h \ - Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_rcc.h \ - Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_def.h \ - Drivers/CMSIS/Device/ST/STM32F0xx/Include/stm32f0xx.h \ - Drivers/CMSIS/Device/ST/STM32F0xx/Include/stm32f072xb.h \ - Drivers/CMSIS/Include/core_cm0.h Drivers/CMSIS/Include/core_cmInstr.h \ - Drivers/CMSIS/Include/cmsis_gcc.h Drivers/CMSIS/Include/core_cmFunc.h \ - Drivers/CMSIS/Device/ST/STM32F0xx/Include/system_stm32f0xx.h \ - Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_rcc_ex.h \ - Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_gpio.h \ - Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_gpio_ex.h \ - Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_dma.h \ - Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_dma_ex.h \ - Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_cortex.h \ - Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_adc.h \ - Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_adc_ex.h \ - Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_flash.h \ - Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_flash_ex.h \ - Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_i2c.h \ - Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_i2c_ex.h \ - Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_pcd.h \ - Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_pcd_ex.h \ - Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_pwr.h \ - Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_pwr_ex.h \ - Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_tim.h \ - Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_tim_ex.h - -Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal.h: - -Inc/stm32f0xx_hal_conf.h: - -Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_rcc.h: - -Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_def.h: - -Drivers/CMSIS/Device/ST/STM32F0xx/Include/stm32f0xx.h: - -Drivers/CMSIS/Device/ST/STM32F0xx/Include/stm32f072xb.h: - -Drivers/CMSIS/Include/core_cm0.h: - -Drivers/CMSIS/Include/core_cmInstr.h: - -Drivers/CMSIS/Include/cmsis_gcc.h: - -Drivers/CMSIS/Include/core_cmFunc.h: - -Drivers/CMSIS/Device/ST/STM32F0xx/Include/system_stm32f0xx.h: - -Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_rcc_ex.h: - -Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_gpio.h: - -Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_gpio_ex.h: - -Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_dma.h: - -Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_dma_ex.h: - -Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_cortex.h: - -Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_adc.h: - -Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_adc_ex.h: - -Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_flash.h: - -Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_flash_ex.h: - -Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_i2c.h: - -Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_i2c_ex.h: - -Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_pcd.h: - -Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_pcd_ex.h: - -Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_pwr.h: - -Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_pwr_ex.h: - -Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_tim.h: - -Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_tim_ex.h: diff --git a/firmware/build/stm32f0xx_hal_pwr_ex.lst b/firmware/build/stm32f0xx_hal_pwr_ex.lst deleted file mode 100644 index 1922336..0000000 --- a/firmware/build/stm32f0xx_hal_pwr_ex.lst +++ /dev/null @@ -1,729 +0,0 @@ -ARM GAS /tmp/cclR6ys9.s page 1 - - - 1 .cpu cortex-m0 - 2 .eabi_attribute 20, 1 - 3 .eabi_attribute 21, 1 - 4 .eabi_attribute 23, 3 - 5 .eabi_attribute 24, 1 - 6 .eabi_attribute 25, 1 - 7 .eabi_attribute 26, 1 - 8 .eabi_attribute 30, 1 - 9 .eabi_attribute 34, 0 - 10 .eabi_attribute 18, 4 - 11 .file "stm32f0xx_hal_pwr_ex.c" - 12 .text - 13 .Ltext0: - 14 .cfi_sections .debug_frame - 15 .section .text.HAL_PWR_ConfigPVD,"ax",%progbits - 16 .align 1 - 17 .global HAL_PWR_ConfigPVD - 18 .syntax unified - 19 .code 16 - 20 .thumb_func - 21 .fpu softvfp - 23 HAL_PWR_ConfigPVD: - 24 .LFB37: - 25 .file 1 "Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pwr_ex.c" - 1:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pwr_ex.c **** /** - 2:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pwr_ex.c **** ****************************************************************************** - 3:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pwr_ex.c **** * @file stm32f0xx_hal_pwr_ex.c - 4:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pwr_ex.c **** * @author MCD Application Team - 5:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pwr_ex.c **** * @brief Extended PWR HAL module driver. - 6:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pwr_ex.c **** * This file provides firmware functions to manage the following - 7:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pwr_ex.c **** * functionalities of the Power Controller (PWR) peripheral: - 8:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pwr_ex.c **** * + Extended Initialization and de-initialization functions - 9:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pwr_ex.c **** * + Extended Peripheral Control functions - 10:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pwr_ex.c **** * - 11:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pwr_ex.c **** ****************************************************************************** - 12:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pwr_ex.c **** * @attention - 13:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pwr_ex.c **** * - 14:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pwr_ex.c **** *

© COPYRIGHT(c) 2016 STMicroelectronics

- 15:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pwr_ex.c **** * - 16:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pwr_ex.c **** * Redistribution and use in source and binary forms, with or without modification, - 17:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pwr_ex.c **** * are permitted provided that the following conditions are met: - 18:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pwr_ex.c **** * 1. Redistributions of source code must retain the above copyright notice, - 19:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pwr_ex.c **** * this list of conditions and the following disclaimer. - 20:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pwr_ex.c **** * 2. Redistributions in binary form must reproduce the above copyright notice, - 21:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pwr_ex.c **** * this list of conditions and the following disclaimer in the documentation - 22:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pwr_ex.c **** * and/or other materials provided with the distribution. - 23:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pwr_ex.c **** * 3. Neither the name of STMicroelectronics nor the names of its contributors - 24:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pwr_ex.c **** * may be used to endorse or promote products derived from this software - 25:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pwr_ex.c **** * without specific prior written permission. - 26:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pwr_ex.c **** * - 27:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pwr_ex.c **** * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" - 28:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pwr_ex.c **** * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE - 29:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pwr_ex.c **** * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE - 30:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pwr_ex.c **** * DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE - 31:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pwr_ex.c **** * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL - 32:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pwr_ex.c **** * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR - 33:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pwr_ex.c **** * SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER - ARM GAS /tmp/cclR6ys9.s page 2 - - - 34:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pwr_ex.c **** * CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, - 35:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pwr_ex.c **** * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE - 36:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pwr_ex.c **** * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. - 37:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pwr_ex.c **** * - 38:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pwr_ex.c **** ****************************************************************************** - 39:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pwr_ex.c **** */ - 40:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pwr_ex.c **** - 41:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pwr_ex.c **** /* Includes ------------------------------------------------------------------*/ - 42:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pwr_ex.c **** #include "stm32f0xx_hal.h" - 43:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pwr_ex.c **** - 44:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pwr_ex.c **** /** @addtogroup STM32F0xx_HAL_Driver - 45:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pwr_ex.c **** * @{ - 46:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pwr_ex.c **** */ - 47:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pwr_ex.c **** - 48:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pwr_ex.c **** /** @defgroup PWREx PWREx - 49:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pwr_ex.c **** * @brief PWREx HAL module driver - 50:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pwr_ex.c **** * @{ - 51:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pwr_ex.c **** */ - 52:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pwr_ex.c **** - 53:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pwr_ex.c **** #ifdef HAL_PWR_MODULE_ENABLED - 54:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pwr_ex.c **** - 55:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pwr_ex.c **** /* Private typedef -----------------------------------------------------------*/ - 56:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pwr_ex.c **** /* Private define ------------------------------------------------------------*/ - 57:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pwr_ex.c **** /** @defgroup PWREx_Private_Constants PWREx Private Constants - 58:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pwr_ex.c **** * @{ - 59:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pwr_ex.c **** */ - 60:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pwr_ex.c **** #define PVD_MODE_IT (0x00010000U) - 61:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pwr_ex.c **** #define PVD_MODE_EVT (0x00020000U) - 62:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pwr_ex.c **** #define PVD_RISING_EDGE (0x00000001U) - 63:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pwr_ex.c **** #define PVD_FALLING_EDGE (0x00000002U) - 64:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pwr_ex.c **** /** - 65:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pwr_ex.c **** * @} - 66:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pwr_ex.c **** */ - 67:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pwr_ex.c **** - 68:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pwr_ex.c **** /* Private macro -------------------------------------------------------------*/ - 69:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pwr_ex.c **** /* Private variables ---------------------------------------------------------*/ - 70:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pwr_ex.c **** /* Private function prototypes -----------------------------------------------*/ - 71:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pwr_ex.c **** /* Exported functions ---------------------------------------------------------*/ - 72:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pwr_ex.c **** - 73:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pwr_ex.c **** /** @defgroup PWREx_Exported_Functions PWREx Exported Functions - 74:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pwr_ex.c **** * @{ - 75:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pwr_ex.c **** */ - 76:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pwr_ex.c **** - 77:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pwr_ex.c **** /** @defgroup PWREx_Exported_Functions_Group1 Peripheral Extended Control Functions - 78:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pwr_ex.c **** * @brief Extended Peripheral Control functions - 79:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pwr_ex.c **** * - 80:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pwr_ex.c **** @verbatim - 81:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pwr_ex.c **** - 82:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pwr_ex.c **** =============================================================================== - 83:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pwr_ex.c **** ##### Peripheral extended control functions ##### - 84:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pwr_ex.c **** =============================================================================== - 85:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pwr_ex.c **** - 86:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pwr_ex.c **** *** PVD configuration *** - 87:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pwr_ex.c **** ========================= - 88:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pwr_ex.c **** [..] - 89:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pwr_ex.c **** (+) The PVD is used to monitor the VDD power supply by comparing it to a - 90:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pwr_ex.c **** threshold selected by the PVD Level (PLS[2:0] bits in the PWR_CR). - ARM GAS /tmp/cclR6ys9.s page 3 - - - 91:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pwr_ex.c **** (+) A PVDO flag is available to indicate if VDD/VDDA is higher or lower - 92:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pwr_ex.c **** than the PVD threshold. This event is internally connected to the EXTI - 93:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pwr_ex.c **** line16 and can generate an interrupt if enabled. This is done through - 94:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pwr_ex.c **** HAL_PWR_ConfigPVD(), HAL_PWR_EnablePVD() functions. - 95:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pwr_ex.c **** (+) The PVD is stopped in Standby mode. - 96:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pwr_ex.c **** -@- PVD is not available on STM32F030x4/x6/x8 - 97:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pwr_ex.c **** - 98:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pwr_ex.c **** *** VDDIO2 Monitor Configuration *** - 99:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pwr_ex.c **** ==================================== - 100:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pwr_ex.c **** [..] - 101:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pwr_ex.c **** (+) VDDIO2 monitor is used to monitor the VDDIO2 power supply by comparing it - 102:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pwr_ex.c **** to VREFInt Voltage - 103:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pwr_ex.c **** (+) This monitor is internally connected to the EXTI line31 - 104:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pwr_ex.c **** and can generate an interrupt if enabled. This is done through - 105:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pwr_ex.c **** HAL_PWREx_EnableVddio2Monitor() function. - 106:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pwr_ex.c **** -@- VDDIO2 is available on STM32F07x/09x/04x - 107:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pwr_ex.c **** - 108:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pwr_ex.c **** @endverbatim - 109:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pwr_ex.c **** * @{ - 110:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pwr_ex.c **** */ - 111:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pwr_ex.c **** - 112:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pwr_ex.c **** #if defined (STM32F031x6) || defined (STM32F051x8) || \ - 113:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pwr_ex.c **** defined (STM32F071xB) || defined (STM32F091xC) || \ - 114:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pwr_ex.c **** defined (STM32F042x6) || defined (STM32F072xB) - 115:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pwr_ex.c **** /** - 116:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pwr_ex.c **** * @brief Configures the voltage threshold detected by the Power Voltage Detector(PVD). - 117:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pwr_ex.c **** * @param sConfigPVD pointer to an PWR_PVDTypeDef structure that contains the configuration - 118:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pwr_ex.c **** * information for the PVD. - 119:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pwr_ex.c **** * @note Refer to the electrical characteristics of your device datasheet for - 120:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pwr_ex.c **** * more details about the voltage threshold corresponding to each - 121:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pwr_ex.c **** * detection level. - 122:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pwr_ex.c **** * @retval None - 123:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pwr_ex.c **** */ - 124:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pwr_ex.c **** void HAL_PWR_ConfigPVD(PWR_PVDTypeDef *sConfigPVD) - 125:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pwr_ex.c **** { - 26 .loc 1 125 0 - 27 .cfi_startproc - 28 @ args = 0, pretend = 0, frame = 0 - 29 @ frame_needed = 0, uses_anonymous_args = 0 - 30 @ link register save eliminated. - 31 .LVL0: - 126:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pwr_ex.c **** /* Check the parameters */ - 127:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pwr_ex.c **** assert_param(IS_PWR_PVD_LEVEL(sConfigPVD->PVDLevel)); - 128:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pwr_ex.c **** assert_param(IS_PWR_PVD_MODE(sConfigPVD->Mode)); - 129:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pwr_ex.c **** - 130:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pwr_ex.c **** /* Set PLS[7:5] bits according to PVDLevel value */ - 131:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pwr_ex.c **** MODIFY_REG(PWR->CR, PWR_CR_PLS, sConfigPVD->PVDLevel); - 32 .loc 1 131 0 - 33 0000 1C4A ldr r2, .L6 - 34 0002 1368 ldr r3, [r2] - 35 0004 E021 movs r1, #224 - 36 0006 8B43 bics r3, r1 - 37 0008 0168 ldr r1, [r0] - 38 000a 0B43 orrs r3, r1 - 39 000c 1360 str r3, [r2] - 132:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pwr_ex.c **** - 133:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pwr_ex.c **** /* Clear any previous config. Keep it clear if no event or IT mode is selected */ - ARM GAS /tmp/cclR6ys9.s page 4 - - - 134:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pwr_ex.c **** __HAL_PWR_PVD_EXTI_DISABLE_EVENT(); - 40 .loc 1 134 0 - 41 000e 1A4B ldr r3, .L6+4 - 42 0010 5968 ldr r1, [r3, #4] - 43 0012 1A4A ldr r2, .L6+8 - 44 0014 1140 ands r1, r2 - 45 0016 5960 str r1, [r3, #4] - 135:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pwr_ex.c **** __HAL_PWR_PVD_EXTI_DISABLE_IT(); - 46 .loc 1 135 0 - 47 0018 1968 ldr r1, [r3] - 48 001a 1140 ands r1, r2 - 49 001c 1960 str r1, [r3] - 136:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pwr_ex.c **** __HAL_PWR_PVD_EXTI_DISABLE_RISING_EDGE();__HAL_PWR_PVD_EXTI_DISABLE_FALLING_EDGE(); - 50 .loc 1 136 0 - 51 001e 9968 ldr r1, [r3, #8] - 52 0020 1140 ands r1, r2 - 53 0022 9960 str r1, [r3, #8] - 54 0024 D968 ldr r1, [r3, #12] - 55 0026 0A40 ands r2, r1 - 56 0028 DA60 str r2, [r3, #12] - 137:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pwr_ex.c **** - 138:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pwr_ex.c **** /* Configure interrupt mode */ - 139:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pwr_ex.c **** if((sConfigPVD->Mode & PVD_MODE_IT) == PVD_MODE_IT) - 57 .loc 1 139 0 - 58 002a 4368 ldr r3, [r0, #4] - 59 002c DB03 lsls r3, r3, #15 - 60 002e 05D5 bpl .L2 - 140:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pwr_ex.c **** { - 141:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pwr_ex.c **** __HAL_PWR_PVD_EXTI_ENABLE_IT(); - 61 .loc 1 141 0 - 62 0030 114A ldr r2, .L6+4 - 63 0032 1168 ldr r1, [r2] - 64 0034 8023 movs r3, #128 - 65 0036 5B02 lsls r3, r3, #9 - 66 0038 0B43 orrs r3, r1 - 67 003a 1360 str r3, [r2] - 68 .L2: - 142:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pwr_ex.c **** } - 143:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pwr_ex.c **** - 144:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pwr_ex.c **** /* Configure event mode */ - 145:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pwr_ex.c **** if((sConfigPVD->Mode & PVD_MODE_EVT) == PVD_MODE_EVT) - 69 .loc 1 145 0 - 70 003c 4368 ldr r3, [r0, #4] - 71 003e 9B03 lsls r3, r3, #14 - 72 0040 05D5 bpl .L3 - 146:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pwr_ex.c **** { - 147:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pwr_ex.c **** __HAL_PWR_PVD_EXTI_ENABLE_EVENT(); - 73 .loc 1 147 0 - 74 0042 0D4A ldr r2, .L6+4 - 75 0044 5168 ldr r1, [r2, #4] - 76 0046 8023 movs r3, #128 - 77 0048 5B02 lsls r3, r3, #9 - 78 004a 0B43 orrs r3, r1 - 79 004c 5360 str r3, [r2, #4] - 80 .L3: - 148:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pwr_ex.c **** } - 149:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pwr_ex.c **** - ARM GAS /tmp/cclR6ys9.s page 5 - - - 150:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pwr_ex.c **** /* Configure the edge */ - 151:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pwr_ex.c **** if((sConfigPVD->Mode & PVD_RISING_EDGE) == PVD_RISING_EDGE) - 81 .loc 1 151 0 - 82 004e 4368 ldr r3, [r0, #4] - 83 0050 DB07 lsls r3, r3, #31 - 84 0052 05D5 bpl .L4 - 152:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pwr_ex.c **** { - 153:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pwr_ex.c **** __HAL_PWR_PVD_EXTI_ENABLE_RISING_EDGE(); - 85 .loc 1 153 0 - 86 0054 084A ldr r2, .L6+4 - 87 0056 9168 ldr r1, [r2, #8] - 88 0058 8023 movs r3, #128 - 89 005a 5B02 lsls r3, r3, #9 - 90 005c 0B43 orrs r3, r1 - 91 005e 9360 str r3, [r2, #8] - 92 .L4: - 154:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pwr_ex.c **** } - 155:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pwr_ex.c **** - 156:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pwr_ex.c **** if((sConfigPVD->Mode & PVD_FALLING_EDGE) == PVD_FALLING_EDGE) - 93 .loc 1 156 0 - 94 0060 4368 ldr r3, [r0, #4] - 95 0062 9B07 lsls r3, r3, #30 - 96 0064 05D5 bpl .L1 - 157:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pwr_ex.c **** { - 158:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pwr_ex.c **** __HAL_PWR_PVD_EXTI_ENABLE_FALLING_EDGE(); - 97 .loc 1 158 0 - 98 0066 044A ldr r2, .L6+4 - 99 0068 D168 ldr r1, [r2, #12] - 100 006a 8023 movs r3, #128 - 101 006c 5B02 lsls r3, r3, #9 - 102 006e 0B43 orrs r3, r1 - 103 0070 D360 str r3, [r2, #12] - 104 .L1: - 159:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pwr_ex.c **** } - 160:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pwr_ex.c **** } - 105 .loc 1 160 0 - 106 @ sp needed - 107 0072 7047 bx lr - 108 .L7: - 109 .align 2 - 110 .L6: - 111 0074 00700040 .word 1073770496 - 112 0078 00040140 .word 1073808384 - 113 007c FFFFFEFF .word -65537 - 114 .cfi_endproc - 115 .LFE37: - 117 .section .text.HAL_PWR_EnablePVD,"ax",%progbits - 118 .align 1 - 119 .global HAL_PWR_EnablePVD - 120 .syntax unified - 121 .code 16 - 122 .thumb_func - 123 .fpu softvfp - 125 HAL_PWR_EnablePVD: - 126 .LFB38: - 161:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pwr_ex.c **** - 162:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pwr_ex.c **** /** - ARM GAS /tmp/cclR6ys9.s page 6 - - - 163:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pwr_ex.c **** * @brief Enables the Power Voltage Detector(PVD). - 164:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pwr_ex.c **** * @retval None - 165:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pwr_ex.c **** */ - 166:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pwr_ex.c **** void HAL_PWR_EnablePVD(void) - 167:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pwr_ex.c **** { - 127 .loc 1 167 0 - 128 .cfi_startproc - 129 @ args = 0, pretend = 0, frame = 0 - 130 @ frame_needed = 0, uses_anonymous_args = 0 - 131 @ link register save eliminated. - 168:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pwr_ex.c **** PWR->CR |= (uint32_t)PWR_CR_PVDE; - 132 .loc 1 168 0 - 133 0000 024A ldr r2, .L9 - 134 0002 1368 ldr r3, [r2] - 135 0004 1021 movs r1, #16 - 136 0006 0B43 orrs r3, r1 - 137 0008 1360 str r3, [r2] - 169:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pwr_ex.c **** } - 138 .loc 1 169 0 - 139 @ sp needed - 140 000a 7047 bx lr - 141 .L10: - 142 .align 2 - 143 .L9: - 144 000c 00700040 .word 1073770496 - 145 .cfi_endproc - 146 .LFE38: - 148 .section .text.HAL_PWR_DisablePVD,"ax",%progbits - 149 .align 1 - 150 .global HAL_PWR_DisablePVD - 151 .syntax unified - 152 .code 16 - 153 .thumb_func - 154 .fpu softvfp - 156 HAL_PWR_DisablePVD: - 157 .LFB39: - 170:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pwr_ex.c **** - 171:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pwr_ex.c **** /** - 172:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pwr_ex.c **** * @brief Disables the Power Voltage Detector(PVD). - 173:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pwr_ex.c **** * @retval None - 174:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pwr_ex.c **** */ - 175:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pwr_ex.c **** void HAL_PWR_DisablePVD(void) - 176:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pwr_ex.c **** { - 158 .loc 1 176 0 - 159 .cfi_startproc - 160 @ args = 0, pretend = 0, frame = 0 - 161 @ frame_needed = 0, uses_anonymous_args = 0 - 162 @ link register save eliminated. - 177:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pwr_ex.c **** PWR->CR &= ~((uint32_t)PWR_CR_PVDE); - 163 .loc 1 177 0 - 164 0000 024A ldr r2, .L12 - 165 0002 1368 ldr r3, [r2] - 166 0004 1021 movs r1, #16 - 167 0006 8B43 bics r3, r1 - 168 0008 1360 str r3, [r2] - 178:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pwr_ex.c **** } - 169 .loc 1 178 0 - ARM GAS /tmp/cclR6ys9.s page 7 - - - 170 @ sp needed - 171 000a 7047 bx lr - 172 .L13: - 173 .align 2 - 174 .L12: - 175 000c 00700040 .word 1073770496 - 176 .cfi_endproc - 177 .LFE39: - 179 .section .text.HAL_PWR_PVDCallback,"ax",%progbits - 180 .align 1 - 181 .weak HAL_PWR_PVDCallback - 182 .syntax unified - 183 .code 16 - 184 .thumb_func - 185 .fpu softvfp - 187 HAL_PWR_PVDCallback: - 188 .LFB41: - 179:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pwr_ex.c **** - 180:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pwr_ex.c **** /** - 181:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pwr_ex.c **** * @brief This function handles the PWR PVD interrupt request. - 182:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pwr_ex.c **** * @note This API should be called under the PVD_IRQHandler() or PVD_VDDIO2_IRQHandler(). - 183:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pwr_ex.c **** * @retval None - 184:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pwr_ex.c **** */ - 185:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pwr_ex.c **** void HAL_PWR_PVD_IRQHandler(void) - 186:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pwr_ex.c **** { - 187:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pwr_ex.c **** /* Check PWR exti flag */ - 188:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pwr_ex.c **** if(__HAL_PWR_PVD_EXTI_GET_FLAG() != RESET) - 189:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pwr_ex.c **** { - 190:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pwr_ex.c **** /* PWR PVD interrupt user callback */ - 191:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pwr_ex.c **** HAL_PWR_PVDCallback(); - 192:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pwr_ex.c **** - 193:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pwr_ex.c **** /* Clear PWR Exti pending bit */ - 194:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pwr_ex.c **** __HAL_PWR_PVD_EXTI_CLEAR_FLAG(); - 195:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pwr_ex.c **** } - 196:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pwr_ex.c **** } - 197:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pwr_ex.c **** - 198:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pwr_ex.c **** /** - 199:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pwr_ex.c **** * @brief PWR PVD interrupt callback - 200:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pwr_ex.c **** * @retval None - 201:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pwr_ex.c **** */ - 202:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pwr_ex.c **** __weak void HAL_PWR_PVDCallback(void) - 203:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pwr_ex.c **** { - 189 .loc 1 203 0 - 190 .cfi_startproc - 191 @ args = 0, pretend = 0, frame = 0 - 192 @ frame_needed = 0, uses_anonymous_args = 0 - 193 @ link register save eliminated. - 204:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pwr_ex.c **** /* NOTE : This function Should not be modified, when the callback is needed, - 205:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pwr_ex.c **** the HAL_PWR_PVDCallback could be implemented in the user file - 206:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pwr_ex.c **** */ - 207:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pwr_ex.c **** } - 194 .loc 1 207 0 - 195 @ sp needed - 196 0000 7047 bx lr - 197 .cfi_endproc - 198 .LFE41: - 200 .section .text.HAL_PWR_PVD_IRQHandler,"ax",%progbits - ARM GAS /tmp/cclR6ys9.s page 8 - - - 201 .align 1 - 202 .global HAL_PWR_PVD_IRQHandler - 203 .syntax unified - 204 .code 16 - 205 .thumb_func - 206 .fpu softvfp - 208 HAL_PWR_PVD_IRQHandler: - 209 .LFB40: - 186:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pwr_ex.c **** /* Check PWR exti flag */ - 210 .loc 1 186 0 - 211 .cfi_startproc - 212 @ args = 0, pretend = 0, frame = 0 - 213 @ frame_needed = 0, uses_anonymous_args = 0 - 214 0000 10B5 push {r4, lr} - 215 .LCFI0: - 216 .cfi_def_cfa_offset 8 - 217 .cfi_offset 4, -8 - 218 .cfi_offset 14, -4 - 188:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pwr_ex.c **** { - 219 .loc 1 188 0 - 220 0002 064B ldr r3, .L18 - 221 0004 5B69 ldr r3, [r3, #20] - 222 0006 DB03 lsls r3, r3, #15 - 223 0008 00D4 bmi .L17 - 224 .L15: - 196:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pwr_ex.c **** - 225 .loc 1 196 0 - 226 @ sp needed - 227 000a 10BD pop {r4, pc} - 228 .L17: - 191:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pwr_ex.c **** - 229 .loc 1 191 0 - 230 000c FFF7FEFF bl HAL_PWR_PVDCallback - 231 .LVL1: - 194:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pwr_ex.c **** } - 232 .loc 1 194 0 - 233 0010 024B ldr r3, .L18 - 234 0012 8022 movs r2, #128 - 235 0014 5202 lsls r2, r2, #9 - 236 0016 5A61 str r2, [r3, #20] - 196:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pwr_ex.c **** - 237 .loc 1 196 0 - 238 0018 F7E7 b .L15 - 239 .L19: - 240 001a C046 .align 2 - 241 .L18: - 242 001c 00040140 .word 1073808384 - 243 .cfi_endproc - 244 .LFE40: - 246 .section .text.HAL_PWREx_EnableVddio2Monitor,"ax",%progbits - 247 .align 1 - 248 .global HAL_PWREx_EnableVddio2Monitor - 249 .syntax unified - 250 .code 16 - 251 .thumb_func - 252 .fpu softvfp - 254 HAL_PWREx_EnableVddio2Monitor: - ARM GAS /tmp/cclR6ys9.s page 9 - - - 255 .LFB42: - 208:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pwr_ex.c **** - 209:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pwr_ex.c **** #endif /* defined (STM32F031x6) || defined (STM32F051x8) || */ - 210:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pwr_ex.c **** /* defined (STM32F071xB) || defined (STM32F091xC) || */ - 211:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pwr_ex.c **** /* defined (STM32F042x6) || defined (STM32F072xB) */ - 212:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pwr_ex.c **** - 213:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pwr_ex.c **** #if defined (STM32F042x6) || defined (STM32F048xx) || \ - 214:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pwr_ex.c **** defined (STM32F071xB) || defined (STM32F072xB) || defined (STM32F078xx) || \ - 215:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pwr_ex.c **** defined (STM32F091xC) || defined (STM32F098xx) - 216:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pwr_ex.c **** /** - 217:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pwr_ex.c **** * @brief Enable VDDIO2 monitor: enable Exti 31 and falling edge detection. - 218:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pwr_ex.c **** * @note If Exti 31 is enable correlty and VDDIO2 voltage goes below Vrefint, - 219:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pwr_ex.c **** an interrupt is generated Irq line 1. - 220:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pwr_ex.c **** NVIS has to be enable by user. - 221:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pwr_ex.c **** * @retval None - 222:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pwr_ex.c **** */ - 223:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pwr_ex.c **** void HAL_PWREx_EnableVddio2Monitor(void) - 224:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pwr_ex.c **** { - 256 .loc 1 224 0 - 257 .cfi_startproc - 258 @ args = 0, pretend = 0, frame = 0 - 259 @ frame_needed = 0, uses_anonymous_args = 0 - 260 @ link register save eliminated. - 225:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pwr_ex.c **** __HAL_PWR_VDDIO2_EXTI_ENABLE_IT(); - 261 .loc 1 225 0 - 262 0000 044B ldr r3, .L21 - 263 0002 1968 ldr r1, [r3] - 264 0004 8022 movs r2, #128 - 265 0006 1206 lsls r2, r2, #24 - 266 0008 1143 orrs r1, r2 - 267 000a 1960 str r1, [r3] - 226:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pwr_ex.c **** __HAL_PWR_VDDIO2_EXTI_ENABLE_FALLING_EDGE(); - 268 .loc 1 226 0 - 269 000c D968 ldr r1, [r3, #12] - 270 000e 0A43 orrs r2, r1 - 271 0010 DA60 str r2, [r3, #12] - 227:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pwr_ex.c **** } - 272 .loc 1 227 0 - 273 @ sp needed - 274 0012 7047 bx lr - 275 .L22: - 276 .align 2 - 277 .L21: - 278 0014 00040140 .word 1073808384 - 279 .cfi_endproc - 280 .LFE42: - 282 .section .text.HAL_PWREx_DisableVddio2Monitor,"ax",%progbits - 283 .align 1 - 284 .global HAL_PWREx_DisableVddio2Monitor - 285 .syntax unified - 286 .code 16 - 287 .thumb_func - 288 .fpu softvfp - 290 HAL_PWREx_DisableVddio2Monitor: - 291 .LFB43: - 228:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pwr_ex.c **** - 229:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pwr_ex.c **** /** - ARM GAS /tmp/cclR6ys9.s page 10 - - - 230:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pwr_ex.c **** * @brief Disable the Vddio2 Monitor. - 231:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pwr_ex.c **** * @retval None - 232:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pwr_ex.c **** */ - 233:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pwr_ex.c **** void HAL_PWREx_DisableVddio2Monitor(void) - 234:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pwr_ex.c **** { - 292 .loc 1 234 0 - 293 .cfi_startproc - 294 @ args = 0, pretend = 0, frame = 0 - 295 @ frame_needed = 0, uses_anonymous_args = 0 - 296 @ link register save eliminated. - 235:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pwr_ex.c **** __HAL_PWR_VDDIO2_EXTI_DISABLE_IT(); - 297 .loc 1 235 0 - 298 0000 064B ldr r3, .L24 - 299 0002 1A68 ldr r2, [r3] - 300 0004 5200 lsls r2, r2, #1 - 301 0006 5208 lsrs r2, r2, #1 - 302 0008 1A60 str r2, [r3] - 236:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pwr_ex.c **** __HAL_PWR_VDDIO2_EXTI_DISABLE_FALLING_EDGE(); - 303 .loc 1 236 0 - 304 000a DA68 ldr r2, [r3, #12] - 305 000c 5200 lsls r2, r2, #1 - 306 000e 5208 lsrs r2, r2, #1 - 307 0010 DA60 str r2, [r3, #12] - 308 0012 9A68 ldr r2, [r3, #8] - 309 0014 5200 lsls r2, r2, #1 - 310 0016 5208 lsrs r2, r2, #1 - 311 0018 9A60 str r2, [r3, #8] - 237:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pwr_ex.c **** - 238:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pwr_ex.c **** } - 312 .loc 1 238 0 - 313 @ sp needed - 314 001a 7047 bx lr - 315 .L25: - 316 .align 2 - 317 .L24: - 318 001c 00040140 .word 1073808384 - 319 .cfi_endproc - 320 .LFE43: - 322 .section .text.HAL_PWREx_Vddio2MonitorCallback,"ax",%progbits - 323 .align 1 - 324 .weak HAL_PWREx_Vddio2MonitorCallback - 325 .syntax unified - 326 .code 16 - 327 .thumb_func - 328 .fpu softvfp - 330 HAL_PWREx_Vddio2MonitorCallback: - 331 .LFB45: - 239:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pwr_ex.c **** - 240:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pwr_ex.c **** /** - 241:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pwr_ex.c **** * @brief This function handles the PWR Vddio2 monitor interrupt request. - 242:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pwr_ex.c **** * @note This API should be called under the VDDIO2_IRQHandler() PVD_VDDIO2_IRQHandler(). - 243:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pwr_ex.c **** * @retval None - 244:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pwr_ex.c **** */ - 245:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pwr_ex.c **** void HAL_PWREx_Vddio2Monitor_IRQHandler(void) - 246:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pwr_ex.c **** { - 247:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pwr_ex.c **** /* Check PWR exti flag */ - 248:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pwr_ex.c **** if(__HAL_PWR_VDDIO2_EXTI_GET_FLAG() != RESET) - ARM GAS /tmp/cclR6ys9.s page 11 - - - 249:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pwr_ex.c **** { - 250:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pwr_ex.c **** /* PWR Vddio2 monitor interrupt user callback */ - 251:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pwr_ex.c **** HAL_PWREx_Vddio2MonitorCallback(); - 252:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pwr_ex.c **** - 253:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pwr_ex.c **** /* Clear PWR Exti pending bit */ - 254:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pwr_ex.c **** __HAL_PWR_VDDIO2_EXTI_CLEAR_FLAG(); - 255:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pwr_ex.c **** } - 256:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pwr_ex.c **** } - 257:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pwr_ex.c **** - 258:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pwr_ex.c **** /** - 259:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pwr_ex.c **** * @brief PWR Vddio2 Monitor interrupt callback - 260:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pwr_ex.c **** * @retval None - 261:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pwr_ex.c **** */ - 262:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pwr_ex.c **** __weak void HAL_PWREx_Vddio2MonitorCallback(void) - 263:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pwr_ex.c **** { - 332 .loc 1 263 0 - 333 .cfi_startproc - 334 @ args = 0, pretend = 0, frame = 0 - 335 @ frame_needed = 0, uses_anonymous_args = 0 - 336 @ link register save eliminated. - 264:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pwr_ex.c **** /* NOTE : This function Should not be modified, when the callback is needed, - 265:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pwr_ex.c **** the HAL_PWREx_Vddio2MonitorCallback could be implemented in the user file - 266:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pwr_ex.c **** */ - 267:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pwr_ex.c **** } - 337 .loc 1 267 0 - 338 @ sp needed - 339 0000 7047 bx lr - 340 .cfi_endproc - 341 .LFE45: - 343 .section .text.HAL_PWREx_Vddio2Monitor_IRQHandler,"ax",%progbits - 344 .align 1 - 345 .global HAL_PWREx_Vddio2Monitor_IRQHandler - 346 .syntax unified - 347 .code 16 - 348 .thumb_func - 349 .fpu softvfp - 351 HAL_PWREx_Vddio2Monitor_IRQHandler: - 352 .LFB44: - 246:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pwr_ex.c **** /* Check PWR exti flag */ - 353 .loc 1 246 0 - 354 .cfi_startproc - 355 @ args = 0, pretend = 0, frame = 0 - 356 @ frame_needed = 0, uses_anonymous_args = 0 - 357 0000 10B5 push {r4, lr} - 358 .LCFI1: - 359 .cfi_def_cfa_offset 8 - 360 .cfi_offset 4, -8 - 361 .cfi_offset 14, -4 - 248:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pwr_ex.c **** { - 362 .loc 1 248 0 - 363 0002 064B ldr r3, .L30 - 364 0004 5B69 ldr r3, [r3, #20] - 365 0006 002B cmp r3, #0 - 366 0008 00DB blt .L29 - 367 .L27: - 256:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pwr_ex.c **** - 368 .loc 1 256 0 - ARM GAS /tmp/cclR6ys9.s page 12 - - - 369 @ sp needed - 370 000a 10BD pop {r4, pc} - 371 .L29: - 251:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pwr_ex.c **** - 372 .loc 1 251 0 - 373 000c FFF7FEFF bl HAL_PWREx_Vddio2MonitorCallback - 374 .LVL2: - 254:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pwr_ex.c **** } - 375 .loc 1 254 0 - 376 0010 024B ldr r3, .L30 - 377 0012 8022 movs r2, #128 - 378 0014 1206 lsls r2, r2, #24 - 379 0016 5A61 str r2, [r3, #20] - 256:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pwr_ex.c **** - 380 .loc 1 256 0 - 381 0018 F7E7 b .L27 - 382 .L31: - 383 001a C046 .align 2 - 384 .L30: - 385 001c 00040140 .word 1073808384 - 386 .cfi_endproc - 387 .LFE44: - 389 .text - 390 .Letext0: - 391 .file 2 "/home/janhenrik/programme/gcc-arm-none-eabi-7-2018-q2-update/arm-none-eabi/include/machin - 392 .file 3 "/home/janhenrik/programme/gcc-arm-none-eabi-7-2018-q2-update/arm-none-eabi/include/sys/_s - 393 .file 4 "Drivers/CMSIS/Device/ST/STM32F0xx/Include/system_stm32f0xx.h" - 394 .file 5 "Drivers/CMSIS/Device/ST/STM32F0xx/Include/stm32f072xb.h" - 395 .file 6 "/home/janhenrik/programme/gcc-arm-none-eabi-7-2018-q2-update/arm-none-eabi/include/sys/lo - 396 .file 7 "/home/janhenrik/programme/gcc-arm-none-eabi-7-2018-q2-update/arm-none-eabi/include/sys/_t - 397 .file 8 "/home/janhenrik/programme/gcc-arm-none-eabi-7-2018-q2-update/lib/gcc/arm-none-eabi/7.3.1/ - 398 .file 9 "/home/janhenrik/programme/gcc-arm-none-eabi-7-2018-q2-update/arm-none-eabi/include/sys/re - 399 .file 10 "Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_pwr_ex.h" - 400 .file 11 "Drivers/CMSIS/Device/ST/STM32F0xx/Include/stm32f0xx.h" - ARM GAS /tmp/cclR6ys9.s page 13 - - -DEFINED SYMBOLS - *ABS*:0000000000000000 stm32f0xx_hal_pwr_ex.c - /tmp/cclR6ys9.s:16 .text.HAL_PWR_ConfigPVD:0000000000000000 $t - /tmp/cclR6ys9.s:23 .text.HAL_PWR_ConfigPVD:0000000000000000 HAL_PWR_ConfigPVD - /tmp/cclR6ys9.s:111 .text.HAL_PWR_ConfigPVD:0000000000000074 $d - /tmp/cclR6ys9.s:118 .text.HAL_PWR_EnablePVD:0000000000000000 $t - /tmp/cclR6ys9.s:125 .text.HAL_PWR_EnablePVD:0000000000000000 HAL_PWR_EnablePVD - /tmp/cclR6ys9.s:144 .text.HAL_PWR_EnablePVD:000000000000000c $d - /tmp/cclR6ys9.s:149 .text.HAL_PWR_DisablePVD:0000000000000000 $t - /tmp/cclR6ys9.s:156 .text.HAL_PWR_DisablePVD:0000000000000000 HAL_PWR_DisablePVD - /tmp/cclR6ys9.s:175 .text.HAL_PWR_DisablePVD:000000000000000c $d - /tmp/cclR6ys9.s:180 .text.HAL_PWR_PVDCallback:0000000000000000 $t - /tmp/cclR6ys9.s:187 .text.HAL_PWR_PVDCallback:0000000000000000 HAL_PWR_PVDCallback - /tmp/cclR6ys9.s:201 .text.HAL_PWR_PVD_IRQHandler:0000000000000000 $t - /tmp/cclR6ys9.s:208 .text.HAL_PWR_PVD_IRQHandler:0000000000000000 HAL_PWR_PVD_IRQHandler - /tmp/cclR6ys9.s:242 .text.HAL_PWR_PVD_IRQHandler:000000000000001c $d - /tmp/cclR6ys9.s:247 .text.HAL_PWREx_EnableVddio2Monitor:0000000000000000 $t - /tmp/cclR6ys9.s:254 .text.HAL_PWREx_EnableVddio2Monitor:0000000000000000 HAL_PWREx_EnableVddio2Monitor - /tmp/cclR6ys9.s:278 .text.HAL_PWREx_EnableVddio2Monitor:0000000000000014 $d - /tmp/cclR6ys9.s:283 .text.HAL_PWREx_DisableVddio2Monitor:0000000000000000 $t - /tmp/cclR6ys9.s:290 .text.HAL_PWREx_DisableVddio2Monitor:0000000000000000 HAL_PWREx_DisableVddio2Monitor - /tmp/cclR6ys9.s:318 .text.HAL_PWREx_DisableVddio2Monitor:000000000000001c $d - /tmp/cclR6ys9.s:323 .text.HAL_PWREx_Vddio2MonitorCallback:0000000000000000 $t - /tmp/cclR6ys9.s:330 .text.HAL_PWREx_Vddio2MonitorCallback:0000000000000000 HAL_PWREx_Vddio2MonitorCallback - /tmp/cclR6ys9.s:344 .text.HAL_PWREx_Vddio2Monitor_IRQHandler:0000000000000000 $t - /tmp/cclR6ys9.s:351 .text.HAL_PWREx_Vddio2Monitor_IRQHandler:0000000000000000 HAL_PWREx_Vddio2Monitor_IRQHandler - /tmp/cclR6ys9.s:385 .text.HAL_PWREx_Vddio2Monitor_IRQHandler:000000000000001c $d - -NO UNDEFINED SYMBOLS diff --git a/firmware/build/stm32f0xx_hal_pwr_ex.o b/firmware/build/stm32f0xx_hal_pwr_ex.o deleted file mode 100644 index e29e8a6..0000000 Binary files a/firmware/build/stm32f0xx_hal_pwr_ex.o and /dev/null differ diff --git a/firmware/build/stm32f0xx_hal_rcc.d b/firmware/build/stm32f0xx_hal_rcc.d deleted file mode 100644 index e3120f1..0000000 --- a/firmware/build/stm32f0xx_hal_rcc.d +++ /dev/null @@ -1,87 +0,0 @@ -build/stm32f0xx_hal_rcc.o: \ - Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.c \ - Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal.h \ - Inc/stm32f0xx_hal_conf.h \ - Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_rcc.h \ - Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_def.h \ - Drivers/CMSIS/Device/ST/STM32F0xx/Include/stm32f0xx.h \ - Drivers/CMSIS/Device/ST/STM32F0xx/Include/stm32f072xb.h \ - Drivers/CMSIS/Include/core_cm0.h Drivers/CMSIS/Include/core_cmInstr.h \ - Drivers/CMSIS/Include/cmsis_gcc.h Drivers/CMSIS/Include/core_cmFunc.h \ - Drivers/CMSIS/Device/ST/STM32F0xx/Include/system_stm32f0xx.h \ - Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_rcc_ex.h \ - Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_gpio.h \ - Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_gpio_ex.h \ - Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_dma.h \ - Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_dma_ex.h \ - Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_cortex.h \ - Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_adc.h \ - Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_adc_ex.h \ - Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_flash.h \ - Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_flash_ex.h \ - Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_i2c.h \ - Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_i2c_ex.h \ - Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_pcd.h \ - Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_pcd_ex.h \ - Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_pwr.h \ - Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_pwr_ex.h \ - Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_tim.h \ - Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_tim_ex.h - -Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal.h: - -Inc/stm32f0xx_hal_conf.h: - -Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_rcc.h: - -Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_def.h: - -Drivers/CMSIS/Device/ST/STM32F0xx/Include/stm32f0xx.h: - -Drivers/CMSIS/Device/ST/STM32F0xx/Include/stm32f072xb.h: - -Drivers/CMSIS/Include/core_cm0.h: - -Drivers/CMSIS/Include/core_cmInstr.h: - -Drivers/CMSIS/Include/cmsis_gcc.h: - -Drivers/CMSIS/Include/core_cmFunc.h: - -Drivers/CMSIS/Device/ST/STM32F0xx/Include/system_stm32f0xx.h: - -Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_rcc_ex.h: - -Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_gpio.h: - -Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_gpio_ex.h: - -Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_dma.h: - -Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_dma_ex.h: - -Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_cortex.h: - -Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_adc.h: - -Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_adc_ex.h: - -Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_flash.h: - -Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_flash_ex.h: - -Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_i2c.h: - -Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_i2c_ex.h: - -Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_pcd.h: - -Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_pcd_ex.h: - -Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_pwr.h: - -Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_pwr_ex.h: - -Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_tim.h: - -Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_tim_ex.h: diff --git a/firmware/build/stm32f0xx_hal_rcc.lst b/firmware/build/stm32f0xx_hal_rcc.lst deleted file mode 100644 index dc5c0d4..0000000 --- a/firmware/build/stm32f0xx_hal_rcc.lst +++ /dev/null @@ -1,3651 +0,0 @@ -ARM GAS /tmp/ccpZPcfy.s page 1 - - - 1 .cpu cortex-m0 - 2 .eabi_attribute 20, 1 - 3 .eabi_attribute 21, 1 - 4 .eabi_attribute 23, 3 - 5 .eabi_attribute 24, 1 - 6 .eabi_attribute 25, 1 - 7 .eabi_attribute 26, 1 - 8 .eabi_attribute 30, 1 - 9 .eabi_attribute 34, 0 - 10 .eabi_attribute 18, 4 - 11 .file "stm32f0xx_hal_rcc.c" - 12 .text - 13 .Ltext0: - 14 .cfi_sections .debug_frame - 15 .section .text.HAL_RCC_DeInit,"ax",%progbits - 16 .align 1 - 17 .global HAL_RCC_DeInit - 18 .syntax unified - 19 .code 16 - 20 .thumb_func - 21 .fpu softvfp - 23 HAL_RCC_DeInit: - 24 .LFB37: - 25 .file 1 "Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.c" - 1:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.c **** /** - 2:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.c **** ****************************************************************************** - 3:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.c **** * @file stm32f0xx_hal_rcc.c - 4:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.c **** * @author MCD Application Team - 5:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.c **** * @brief RCC HAL module driver. - 6:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.c **** * This file provides firmware functions to manage the following - 7:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.c **** * functionalities of the Reset and Clock Control (RCC) peripheral: - 8:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.c **** * + Initialization and de-initialization functions - 9:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.c **** * + Peripheral Control functions - 10:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.c **** * - 11:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.c **** @verbatim - 12:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.c **** ============================================================================== - 13:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.c **** ##### RCC specific features ##### - 14:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.c **** ============================================================================== - 15:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.c **** [..] - 16:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.c **** After reset the device is running from Internal High Speed oscillator - 17:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.c **** (HSI 8MHz) with Flash 0 wait state, Flash prefetch buffer is enabled, - 18:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.c **** and all peripherals are off except internal SRAM, Flash and JTAG. - 19:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.c **** (+) There is no prescaler on High speed (AHB) and Low speed (APB) buses; - 20:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.c **** all peripherals mapped on these buses are running at HSI speed. - 21:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.c **** (+) The clock for all peripherals is switched off, except the SRAM and FLASH. - 22:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.c **** (+) All GPIOs are in input floating state, except the JTAG pins which - 23:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.c **** are assigned to be used for debug purpose. - 24:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.c **** [..] Once the device started from reset, the user application has to: - 25:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.c **** (+) Configure the clock source to be used to drive the System clock - 26:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.c **** (if the application needs higher frequency/performance) - 27:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.c **** (+) Configure the System clock frequency and Flash settings - 28:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.c **** (+) Configure the AHB and APB buses prescalers - 29:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.c **** (+) Enable the clock for the peripheral(s) to be used - 30:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.c **** (+) Configure the clock source(s) for peripherals whose clocks are not - 31:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.c **** derived from the System clock (RTC, ADC, I2C, USART, TIM, USB FS, etc..) - 32:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.c **** - 33:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.c **** ##### RCC Limitations ##### - ARM GAS /tmp/ccpZPcfy.s page 2 - - - 34:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.c **** ============================================================================== - 35:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.c **** [..] - 36:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.c **** A delay between an RCC peripheral clock enable and the effective peripheral - 37:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.c **** enabling should be taken into account in order to manage the peripheral read/write - 38:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.c **** from/to registers. - 39:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.c **** (+) This delay depends on the peripheral mapping. - 40:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.c **** (++) AHB & APB peripherals, 1 dummy read is necessary - 41:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.c **** - 42:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.c **** [..] - 43:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.c **** Workarounds: - 44:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.c **** (#) For AHB & APB peripherals, a dummy read to the peripheral register has been - 45:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.c **** inserted in each __HAL_RCC_PPP_CLK_ENABLE() macro. - 46:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.c **** - 47:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.c **** @endverbatim - 48:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.c **** ****************************************************************************** - 49:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.c **** * @attention - 50:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.c **** * - 51:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.c **** *

© COPYRIGHT(c) 2016 STMicroelectronics

- 52:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.c **** * - 53:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.c **** * Redistribution and use in source and binary forms, with or without modification, - 54:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.c **** * are permitted provided that the following conditions are met: - 55:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.c **** * 1. Redistributions of source code must retain the above copyright notice, - 56:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.c **** * this list of conditions and the following disclaimer. - 57:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.c **** * 2. Redistributions in binary form must reproduce the above copyright notice, - 58:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.c **** * this list of conditions and the following disclaimer in the documentation - 59:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.c **** * and/or other materials provided with the distribution. - 60:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.c **** * 3. Neither the name of STMicroelectronics nor the names of its contributors - 61:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.c **** * may be used to endorse or promote products derived from this software - 62:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.c **** * without specific prior written permission. - 63:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.c **** * - 64:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.c **** * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" - 65:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.c **** * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE - 66:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.c **** * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE - 67:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.c **** * DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE - 68:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.c **** * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL - 69:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.c **** * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR - 70:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.c **** * SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER - 71:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.c **** * CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, - 72:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.c **** * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE - 73:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.c **** * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. - 74:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.c **** * - 75:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.c **** ****************************************************************************** - 76:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.c **** */ - 77:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.c **** - 78:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.c **** /* Includes ------------------------------------------------------------------*/ - 79:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.c **** #include "stm32f0xx_hal.h" - 80:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.c **** - 81:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.c **** /** @addtogroup STM32F0xx_HAL_Driver - 82:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.c **** * @{ - 83:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.c **** */ - 84:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.c **** - 85:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.c **** /** @defgroup RCC RCC - 86:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.c **** * @brief RCC HAL module driver - 87:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.c **** * @{ - 88:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.c **** */ - 89:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.c **** - 90:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.c **** #ifdef HAL_RCC_MODULE_ENABLED - ARM GAS /tmp/ccpZPcfy.s page 3 - - - 91:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.c **** - 92:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.c **** /* Private typedef -----------------------------------------------------------*/ - 93:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.c **** /* Private define ------------------------------------------------------------*/ - 94:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.c **** /** @defgroup RCC_Private_Constants RCC Private Constants - 95:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.c **** * @{ - 96:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.c **** */ - 97:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.c **** /** - 98:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.c **** * @} - 99:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.c **** */ - 100:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.c **** /* Private macro -------------------------------------------------------------*/ - 101:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.c **** /** @defgroup RCC_Private_Macros RCC Private Macros - 102:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.c **** * @{ - 103:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.c **** */ - 104:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.c **** - 105:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.c **** #define MCO1_CLK_ENABLE() __HAL_RCC_GPIOA_CLK_ENABLE() - 106:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.c **** #define MCO1_GPIO_PORT GPIOA - 107:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.c **** #define MCO1_PIN GPIO_PIN_8 - 108:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.c **** - 109:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.c **** /** - 110:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.c **** * @} - 111:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.c **** */ - 112:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.c **** - 113:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.c **** /* Private variables ---------------------------------------------------------*/ - 114:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.c **** /** @defgroup RCC_Private_Variables RCC Private Variables - 115:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.c **** * @{ - 116:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.c **** */ - 117:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.c **** /** - 118:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.c **** * @} - 119:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.c **** */ - 120:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.c **** - 121:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.c **** /* Private function prototypes -----------------------------------------------*/ - 122:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.c **** /* Exported functions ---------------------------------------------------------*/ - 123:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.c **** - 124:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.c **** /** @defgroup RCC_Exported_Functions RCC Exported Functions - 125:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.c **** * @{ - 126:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.c **** */ - 127:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.c **** - 128:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.c **** /** @defgroup RCC_Exported_Functions_Group1 Initialization and de-initialization functions - 129:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.c **** * @brief Initialization and Configuration functions - 130:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.c **** * - 131:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.c **** @verbatim - 132:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.c **** =============================================================================== - 133:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.c **** ##### Initialization and de-initialization functions ##### - 134:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.c **** =============================================================================== - 135:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.c **** [..] - 136:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.c **** This section provides functions allowing to configure the internal/external oscillators - 137:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.c **** (HSE, HSI, HSI14, HSI48, LSE, LSI, PLL, CSS and MCO) and the System buses clocks (SYSCLK, - 138:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.c **** AHB and APB1). - 139:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.c **** - 140:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.c **** [..] Internal/external clock and PLL configuration - 141:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.c **** (#) HSI (high-speed internal), 8 MHz factory-trimmed RC used directly or through - 142:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.c **** the PLL as System clock source. - 143:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.c **** The HSI clock can be used also to clock the USART and I2C peripherals. - 144:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.c **** - 145:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.c **** (#) HSI14 (high-speed internal), 14 MHz factory-trimmed RC used directly to clock - 146:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.c **** the ADC peripheral. - 147:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.c **** - ARM GAS /tmp/ccpZPcfy.s page 4 - - - 148:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.c **** (#) LSI (low-speed internal), ~40 KHz low consumption RC used as IWDG and/or RTC - 149:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.c **** clock source. - 150:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.c **** - 151:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.c **** (#) HSE (high-speed external), 4 to 32 MHz crystal oscillator used directly or - 152:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.c **** through the PLL as System clock source. Can be used also as RTC clock source. - 153:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.c **** - 154:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.c **** (#) LSE (low-speed external), 32 KHz oscillator used as RTC clock source. - 155:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.c **** - 156:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.c **** (#) PLL (clocked by HSI, HSI48 or HSE), featuring different output clocks: - 157:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.c **** (++) The first output is used to generate the high speed system clock (up to 48 MHz) - 158:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.c **** (++) The second output is used to generate the clock for the USB FS (48 MHz) - 159:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.c **** (++) The third output may be used to generate the clock for the TIM, I2C and USART - 160:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.c **** peripherals (up to 48 MHz) - 161:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.c **** - 162:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.c **** (#) CSS (Clock security system), once enable using the macro __HAL_RCC_CSS_ENABLE() - 163:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.c **** and if a HSE clock failure occurs(HSE used directly or through PLL as System - 164:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.c **** clock source), the System clocks automatically switched to HSI and an interrupt - 165:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.c **** is generated if enabled. The interrupt is linked to the Cortex-M0 NMI - 166:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.c **** (Non-Maskable Interrupt) exception vector. - 167:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.c **** - 168:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.c **** (#) MCO (microcontroller clock output), used to output SYSCLK, HSI, HSE, LSI, LSE or PLL - 169:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.c **** clock (divided by 2) output on pin (such as PA8 pin). - 170:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.c **** - 171:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.c **** [..] System, AHB and APB buses clocks configuration - 172:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.c **** (#) Several clock sources can be used to drive the System clock (SYSCLK): HSI, - 173:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.c **** HSE and PLL. - 174:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.c **** The AHB clock (HCLK) is derived from System clock through configurable - 175:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.c **** prescaler and used to clock the CPU, memory and peripherals mapped - 176:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.c **** on AHB bus (DMA, GPIO...). APB1 (PCLK1) clock is derived - 177:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.c **** from AHB clock through configurable prescalers and used to clock - 178:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.c **** the peripherals mapped on these buses. You can use - 179:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.c **** "@ref HAL_RCC_GetSysClockFreq()" function to retrieve the frequencies of these clocks. - 180:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.c **** - 181:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.c **** (#) All the peripheral clocks are derived from the System clock (SYSCLK) except: - 182:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.c **** (++) The FLASH program/erase clock which is always HSI 8MHz clock. - 183:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.c **** (++) The USB 48 MHz clock which is derived from the PLL VCO clock. - 184:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.c **** (++) The USART clock which can be derived as well from HSI 8MHz, LSI or LSE. - 185:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.c **** (++) The I2C clock which can be derived as well from HSI 8MHz clock. - 186:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.c **** (++) The ADC clock which is derived from PLL output. - 187:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.c **** (++) The RTC clock which is derived from the LSE, LSI or 1 MHz HSE_RTC - 188:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.c **** (HSE divided by a programmable prescaler). The System clock (SYSCLK) - 189:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.c **** frequency must be higher or equal to the RTC clock frequency. - 190:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.c **** (++) IWDG clock which is always the LSI clock. - 191:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.c **** - 192:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.c **** (#) For the STM32F0xx devices, the maximum frequency of the SYSCLK, HCLK and PCLK1 is 48 MHz, - 193:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.c **** Depending on the SYSCLK frequency, the flash latency should be adapted accordingly. - 194:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.c **** - 195:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.c **** (#) After reset, the System clock source is the HSI (8 MHz) with 0 WS and - 196:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.c **** prefetch is disabled. - 197:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.c **** @endverbatim - 198:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.c **** * @{ - 199:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.c **** */ - 200:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.c **** - 201:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.c **** /* - 202:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.c **** Additional consideration on the SYSCLK based on Latency settings: - 203:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.c **** +-----------------------------------------------+ - 204:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.c **** | Latency | SYSCLK clock frequency (MHz) | - ARM GAS /tmp/ccpZPcfy.s page 5 - - - 205:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.c **** |---------------|-------------------------------| - 206:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.c **** |0WS(1CPU cycle)| 0 < SYSCLK <= 24 | - 207:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.c **** |---------------|-------------------------------| - 208:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.c **** |1WS(2CPU cycle)| 24 < SYSCLK <= 48 | - 209:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.c **** +-----------------------------------------------+ - 210:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.c **** */ - 211:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.c **** - 212:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.c **** /** - 213:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.c **** * @brief Resets the RCC clock configuration to the default reset state. - 214:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.c **** * @note The default reset state of the clock configuration is given below: - 215:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.c **** * - HSI ON and used as system clock source - 216:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.c **** * - HSE and PLL OFF - 217:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.c **** * - AHB, APB1 prescaler set to 1. - 218:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.c **** * - CSS and MCO1 OFF - 219:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.c **** * - All interrupts disabled - 220:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.c **** * @note This function does not modify the configuration of the - 221:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.c **** * - Peripheral clocks - 222:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.c **** * - LSI, LSE and RTC clocks - 223:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.c **** * @retval None - 224:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.c **** */ - 225:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.c **** void HAL_RCC_DeInit(void) - 226:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.c **** { - 26 .loc 1 226 0 - 27 .cfi_startproc - 28 @ args = 0, pretend = 0, frame = 0 - 29 @ frame_needed = 0, uses_anonymous_args = 0 - 30 @ link register save eliminated. - 227:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.c **** /* Set HSION bit, HSITRIM[4:0] bits to the reset value*/ - 228:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.c **** SET_BIT(RCC->CR, RCC_CR_HSION | RCC_CR_HSITRIM_4); - 31 .loc 1 228 0 - 32 0000 0C4B ldr r3, .L2 - 33 0002 1A68 ldr r2, [r3] - 34 0004 8121 movs r1, #129 - 35 0006 0A43 orrs r2, r1 - 36 0008 1A60 str r2, [r3] - 229:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.c **** - 230:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.c **** /* Reset SW[1:0], HPRE[3:0], PPRE[2:0] and MCOSEL[2:0] bits */ - 231:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.c **** CLEAR_BIT(RCC->CFGR, RCC_CFGR_SW | RCC_CFGR_HPRE | RCC_CFGR_PPRE | RCC_CFGR_MCO); - 37 .loc 1 231 0 - 38 000a 5A68 ldr r2, [r3, #4] - 39 000c 0A49 ldr r1, .L2+4 - 40 000e 0A40 ands r2, r1 - 41 0010 5A60 str r2, [r3, #4] - 232:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.c **** - 233:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.c **** /* Reset HSEON, CSSON, PLLON bits */ - 234:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.c **** CLEAR_BIT(RCC->CR, RCC_CR_PLLON | RCC_CR_CSSON | RCC_CR_HSEON); - 42 .loc 1 234 0 - 43 0012 1A68 ldr r2, [r3] - 44 0014 0949 ldr r1, .L2+8 - 45 0016 0A40 ands r2, r1 - 46 0018 1A60 str r2, [r3] - 235:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.c **** - 236:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.c **** /* Reset HSEBYP bit */ - 237:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.c **** CLEAR_BIT(RCC->CR, RCC_CR_HSEBYP); - 47 .loc 1 237 0 - 48 001a 1A68 ldr r2, [r3] - 49 001c 0849 ldr r1, .L2+12 - ARM GAS /tmp/ccpZPcfy.s page 6 - - - 50 001e 0A40 ands r2, r1 - 51 0020 1A60 str r2, [r3] - 238:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.c **** - 239:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.c **** /* Reset CFGR register */ - 240:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.c **** CLEAR_REG(RCC->CFGR); - 52 .loc 1 240 0 - 53 0022 0022 movs r2, #0 - 54 0024 5A60 str r2, [r3, #4] - 241:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.c **** - 242:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.c **** /* Reset CFGR2 register */ - 243:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.c **** CLEAR_REG(RCC->CFGR2); - 55 .loc 1 243 0 - 56 0026 DA62 str r2, [r3, #44] - 244:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.c **** - 245:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.c **** /* Reset CFGR3 register */ - 246:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.c **** CLEAR_REG(RCC->CFGR3); - 57 .loc 1 246 0 - 58 0028 1A63 str r2, [r3, #48] - 247:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.c **** - 248:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.c **** /* Disable all interrupts */ - 249:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.c **** CLEAR_REG(RCC->CIR); - 59 .loc 1 249 0 - 60 002a 9A60 str r2, [r3, #8] - 250:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.c **** - 251:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.c **** /* Update the SystemCoreClock global variable */ - 252:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.c **** SystemCoreClock = HSI_VALUE; - 61 .loc 1 252 0 - 62 002c 054B ldr r3, .L2+16 - 63 002e 064A ldr r2, .L2+20 - 64 0030 1A60 str r2, [r3] - 253:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.c **** } - 65 .loc 1 253 0 - 66 @ sp needed - 67 0032 7047 bx lr - 68 .L3: - 69 .align 2 - 70 .L2: - 71 0034 00100240 .word 1073876992 - 72 0038 0CF8FFF0 .word -251660276 - 73 003c FFFFF6FE .word -17367041 - 74 0040 FFFFFBFF .word -262145 - 75 0044 00000000 .word SystemCoreClock - 76 0048 00127A00 .word 8000000 - 77 .cfi_endproc - 78 .LFE37: - 80 .section .text.HAL_RCC_OscConfig,"ax",%progbits - 81 .align 1 - 82 .global HAL_RCC_OscConfig - 83 .syntax unified - 84 .code 16 - 85 .thumb_func - 86 .fpu softvfp - 88 HAL_RCC_OscConfig: - 89 .LFB38: - 254:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.c **** - 255:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.c **** /** - 256:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.c **** * @brief Initializes the RCC Oscillators according to the specified parameters in the - ARM GAS /tmp/ccpZPcfy.s page 7 - - - 257:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.c **** * RCC_OscInitTypeDef. - 258:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.c **** * @param RCC_OscInitStruct pointer to an RCC_OscInitTypeDef structure that - 259:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.c **** * contains the configuration information for the RCC Oscillators. - 260:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.c **** * @note The PLL is not disabled when used as system clock. - 261:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.c **** * @note Transitions LSE Bypass to LSE On and LSE On to LSE Bypass are not - 262:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.c **** * supported by this macro. User should request a transition to LSE Off - 263:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.c **** * first and then LSE On or LSE Bypass. - 264:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.c **** * @note Transition HSE Bypass to HSE On and HSE On to HSE Bypass are not - 265:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.c **** * supported by this macro. User should request a transition to HSE Off - 266:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.c **** * first and then HSE On or HSE Bypass. - 267:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.c **** * @retval HAL status - 268:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.c **** */ - 269:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.c **** HAL_StatusTypeDef HAL_RCC_OscConfig(RCC_OscInitTypeDef *RCC_OscInitStruct) - 270:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.c **** { - 90 .loc 1 270 0 - 91 .cfi_startproc - 92 @ args = 0, pretend = 0, frame = 8 - 93 @ frame_needed = 0, uses_anonymous_args = 0 - 94 .LVL0: - 95 0000 70B5 push {r4, r5, r6, lr} - 96 .LCFI0: - 97 .cfi_def_cfa_offset 16 - 98 .cfi_offset 4, -16 - 99 .cfi_offset 5, -12 - 100 .cfi_offset 6, -8 - 101 .cfi_offset 14, -4 - 102 0002 82B0 sub sp, sp, #8 - 103 .LCFI1: - 104 .cfi_def_cfa_offset 24 - 105 0004 0400 movs r4, r0 - 106 .LVL1: - 271:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.c **** uint32_t tickstart = 0U; - 272:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.c **** - 273:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.c **** /* Check the parameters */ - 274:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.c **** assert_param(RCC_OscInitStruct != NULL); - 275:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.c **** assert_param(IS_RCC_OSCILLATORTYPE(RCC_OscInitStruct->OscillatorType)); - 276:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.c **** - 277:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.c **** /*------------------------------- HSE Configuration ------------------------*/ - 278:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.c **** if(((RCC_OscInitStruct->OscillatorType) & RCC_OSCILLATORTYPE_HSE) == RCC_OSCILLATORTYPE_HSE) - 107 .loc 1 278 0 - 108 0006 0368 ldr r3, [r0] - 109 0008 DB07 lsls r3, r3, #31 - 110 000a 2BD5 bpl .L5 - 279:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.c **** { - 280:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.c **** /* Check the parameters */ - 281:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.c **** assert_param(IS_RCC_HSE(RCC_OscInitStruct->HSEState)); - 282:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.c **** - 283:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.c **** /* When the HSE is used as system clock or clock source for PLL in these cases it is not allowe - 284:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.c **** if((__HAL_RCC_GET_SYSCLK_SOURCE() == RCC_SYSCLKSOURCE_STATUS_HSE) - 111 .loc 1 284 0 - 112 000c B34B ldr r3, .L109 - 113 000e 5A68 ldr r2, [r3, #4] - 114 0010 0C23 movs r3, #12 - 115 0012 1340 ands r3, r2 - 116 0014 042B cmp r3, #4 - 117 0016 1DD0 beq .L6 - 285:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.c **** || ((__HAL_RCC_GET_SYSCLK_SOURCE() == RCC_SYSCLKSOURCE_STATUS_PLLCLK) && (__HAL_RCC_GET_PLL_ - ARM GAS /tmp/ccpZPcfy.s page 8 - - - 118 .loc 1 285 0 - 119 0018 B04B ldr r3, .L109 - 120 001a 5A68 ldr r2, [r3, #4] - 121 001c 0C23 movs r3, #12 - 122 001e 1340 ands r3, r2 - 123 0020 082B cmp r3, #8 - 124 0022 0ED0 beq .L92 - 125 .L7: - 286:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.c **** { - 287:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.c **** if((__HAL_RCC_GET_FLAG(RCC_FLAG_HSERDY) != RESET) && (RCC_OscInitStruct->HSEState == RCC_HSE_ - 288:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.c **** { - 289:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.c **** return HAL_ERROR; - 290:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.c **** } - 291:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.c **** } - 292:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.c **** else - 293:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.c **** { - 294:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.c **** /* Set the new HSE configuration ---------------------------------------*/ - 295:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.c **** __HAL_RCC_HSE_CONFIG(RCC_OscInitStruct->HSEState); - 126 .loc 1 295 0 - 127 0024 6368 ldr r3, [r4, #4] - 128 0026 012B cmp r3, #1 - 129 0028 41D0 beq .L93 - 130 .loc 1 295 0 is_stmt 0 discriminator 2 - 131 002a 002B cmp r3, #0 - 132 002c 56D1 bne .L11 - 133 .loc 1 295 0 discriminator 3 - 134 002e AB4B ldr r3, .L109 - 135 0030 1A68 ldr r2, [r3] - 136 0032 AB49 ldr r1, .L109+4 - 137 0034 0A40 ands r2, r1 - 138 0036 1A60 str r2, [r3] - 139 0038 1A68 ldr r2, [r3] - 140 003a AA49 ldr r1, .L109+8 - 141 003c 0A40 ands r2, r1 - 142 003e 1A60 str r2, [r3] - 143 0040 3BE0 b .L10 - 144 .L92: - 285:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.c **** || ((__HAL_RCC_GET_SYSCLK_SOURCE() == RCC_SYSCLKSOURCE_STATUS_PLLCLK) && (__HAL_RCC_GET_PLL_ - 145 .loc 1 285 0 is_stmt 1 discriminator 1 - 146 0042 A64B ldr r3, .L109 - 147 0044 5B68 ldr r3, [r3, #4] - 148 0046 C022 movs r2, #192 - 149 0048 5202 lsls r2, r2, #9 - 150 004a 1340 ands r3, r2 - 151 004c 8022 movs r2, #128 - 152 004e 5202 lsls r2, r2, #9 - 153 0050 9342 cmp r3, r2 - 154 0052 E7D1 bne .L7 - 155 .L6: - 287:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.c **** { - 156 .loc 1 287 0 - 157 0054 A14B ldr r3, .L109 - 158 0056 1B68 ldr r3, [r3] - 159 0058 9B03 lsls r3, r3, #14 - 160 005a 03D5 bpl .L5 - 287:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.c **** { - 161 .loc 1 287 0 is_stmt 0 discriminator 1 - ARM GAS /tmp/ccpZPcfy.s page 9 - - - 162 005c 6368 ldr r3, [r4, #4] - 163 005e 002B cmp r3, #0 - 164 0060 00D1 bne .LCB120 - 165 0062 39E2 b .L94 @long jump - 166 .LCB120: - 167 .LVL2: - 168 .L5: - 296:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.c **** - 297:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.c **** - 298:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.c **** /* Check the HSE State */ - 299:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.c **** if(RCC_OscInitStruct->HSEState != RCC_HSE_OFF) - 300:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.c **** { - 301:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.c **** /* Get Start Tick */ - 302:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.c **** tickstart = HAL_GetTick(); - 303:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.c **** - 304:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.c **** /* Wait till HSE is ready */ - 305:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.c **** while(__HAL_RCC_GET_FLAG(RCC_FLAG_HSERDY) == RESET) - 306:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.c **** { - 307:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.c **** if((HAL_GetTick() - tickstart ) > HSE_TIMEOUT_VALUE) - 308:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.c **** { - 309:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.c **** return HAL_TIMEOUT; - 310:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.c **** } - 311:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.c **** } - 312:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.c **** } - 313:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.c **** else - 314:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.c **** { - 315:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.c **** /* Get Start Tick */ - 316:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.c **** tickstart = HAL_GetTick(); - 317:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.c **** - 318:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.c **** /* Wait till HSE is disabled */ - 319:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.c **** while(__HAL_RCC_GET_FLAG(RCC_FLAG_HSERDY) != RESET) - 320:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.c **** { - 321:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.c **** if((HAL_GetTick() - tickstart ) > HSE_TIMEOUT_VALUE) - 322:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.c **** { - 323:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.c **** return HAL_TIMEOUT; - 324:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.c **** } - 325:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.c **** } - 326:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.c **** } - 327:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.c **** } - 328:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.c **** } - 329:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.c **** /*----------------------------- HSI Configuration --------------------------*/ - 330:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.c **** if(((RCC_OscInitStruct->OscillatorType) & RCC_OSCILLATORTYPE_HSI) == RCC_OSCILLATORTYPE_HSI) - 169 .loc 1 330 0 is_stmt 1 - 170 0064 2368 ldr r3, [r4] - 171 0066 9B07 lsls r3, r3, #30 - 172 0068 78D5 bpl .L18 - 331:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.c **** { - 332:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.c **** /* Check the parameters */ - 333:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.c **** assert_param(IS_RCC_HSI(RCC_OscInitStruct->HSIState)); - 334:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.c **** assert_param(IS_RCC_CALIBRATION_VALUE(RCC_OscInitStruct->HSICalibrationValue)); - 335:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.c **** - 336:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.c **** /* Check if HSI is used as system clock or as PLL source when PLL is selected as system clock * - 337:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.c **** if((__HAL_RCC_GET_SYSCLK_SOURCE() == RCC_SYSCLKSOURCE_STATUS_HSI) - 173 .loc 1 337 0 - 174 006a 9C4B ldr r3, .L109 - 175 006c 5B68 ldr r3, [r3, #4] - 176 006e 0C22 movs r2, #12 - ARM GAS /tmp/ccpZPcfy.s page 10 - - - 177 0070 1A42 tst r2, r3 - 178 0072 62D0 beq .L19 - 338:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.c **** || ((__HAL_RCC_GET_SYSCLK_SOURCE() == RCC_SYSCLKSOURCE_STATUS_PLLCLK) && (__HAL_RCC_GET_PLL_ - 179 .loc 1 338 0 - 180 0074 994B ldr r3, .L109 - 181 0076 5A68 ldr r2, [r3, #4] - 182 0078 0C23 movs r3, #12 - 183 007a 1340 ands r3, r2 - 184 007c 082B cmp r3, #8 - 185 007e 53D0 beq .L95 - 186 .L20: - 339:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.c **** { - 340:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.c **** /* When HSI is used as system clock it will not disabled */ - 341:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.c **** if((__HAL_RCC_GET_FLAG(RCC_FLAG_HSIRDY) != RESET) && (RCC_OscInitStruct->HSIState != RCC_HSI_ - 342:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.c **** { - 343:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.c **** return HAL_ERROR; - 344:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.c **** } - 345:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.c **** /* Otherwise, just the calibration is allowed */ - 346:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.c **** else - 347:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.c **** { - 348:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.c **** /* Adjusts the Internal High Speed oscillator (HSI) calibration value.*/ - 349:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.c **** __HAL_RCC_HSI_CALIBRATIONVALUE_ADJUST(RCC_OscInitStruct->HSICalibrationValue); - 350:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.c **** } - 351:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.c **** } - 352:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.c **** else - 353:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.c **** { - 354:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.c **** /* Check the HSI State */ - 355:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.c **** if(RCC_OscInitStruct->HSIState != RCC_HSI_OFF) - 187 .loc 1 355 0 - 188 0080 E368 ldr r3, [r4, #12] - 189 0082 002B cmp r3, #0 - 190 0084 00D1 bne .LCB146 - 191 0086 8BE0 b .L22 @long jump - 192 .LCB146: - 356:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.c **** { - 357:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.c **** /* Enable the Internal High Speed oscillator (HSI). */ - 358:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.c **** __HAL_RCC_HSI_ENABLE(); - 193 .loc 1 358 0 - 194 0088 944A ldr r2, .L109 - 195 008a 1368 ldr r3, [r2] - 196 008c 0121 movs r1, #1 - 197 008e 0B43 orrs r3, r1 - 198 0090 1360 str r3, [r2] - 359:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.c **** - 360:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.c **** /* Get Start Tick */ - 361:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.c **** tickstart = HAL_GetTick(); - 199 .loc 1 361 0 - 200 0092 FFF7FEFF bl HAL_GetTick - 201 .LVL3: - 202 0096 0500 movs r5, r0 - 203 .LVL4: - 204 .L23: - 362:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.c **** - 363:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.c **** /* Wait till HSI is ready */ - 364:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.c **** while(__HAL_RCC_GET_FLAG(RCC_FLAG_HSIRDY) == RESET) - 205 .loc 1 364 0 - 206 0098 904B ldr r3, .L109 - ARM GAS /tmp/ccpZPcfy.s page 11 - - - 207 009a 1B68 ldr r3, [r3] - 208 009c 9B07 lsls r3, r3, #30 - 209 009e 76D4 bmi .L96 - 365:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.c **** { - 366:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.c **** if((HAL_GetTick() - tickstart ) > HSI_TIMEOUT_VALUE) - 210 .loc 1 366 0 - 211 00a0 FFF7FEFF bl HAL_GetTick - 212 .LVL5: - 213 00a4 401B subs r0, r0, r5 - 214 00a6 0228 cmp r0, #2 - 215 00a8 F6D9 bls .L23 - 367:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.c **** { - 368:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.c **** return HAL_TIMEOUT; - 216 .loc 1 368 0 - 217 00aa 0320 movs r0, #3 - 218 00ac 17E2 b .L8 - 219 .LVL6: - 220 .L93: - 295:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.c **** - 221 .loc 1 295 0 discriminator 1 - 222 00ae 8B4A ldr r2, .L109 - 223 00b0 1168 ldr r1, [r2] - 224 00b2 8023 movs r3, #128 - 225 00b4 5B02 lsls r3, r3, #9 - 226 00b6 0B43 orrs r3, r1 - 227 00b8 1360 str r3, [r2] - 228 .L10: - 299:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.c **** { - 229 .loc 1 299 0 - 230 00ba 6368 ldr r3, [r4, #4] - 231 00bc 002B cmp r3, #0 - 232 00be 25D0 beq .L13 - 302:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.c **** - 233 .loc 1 302 0 - 234 00c0 FFF7FEFF bl HAL_GetTick - 235 .LVL7: - 236 00c4 0500 movs r5, r0 - 237 .LVL8: - 238 .L14: - 305:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.c **** { - 239 .loc 1 305 0 - 240 00c6 854B ldr r3, .L109 - 241 00c8 1B68 ldr r3, [r3] - 242 00ca 9B03 lsls r3, r3, #14 - 243 00cc CAD4 bmi .L5 - 307:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.c **** { - 244 .loc 1 307 0 - 245 00ce FFF7FEFF bl HAL_GetTick - 246 .LVL9: - 247 00d2 401B subs r0, r0, r5 - 248 00d4 6428 cmp r0, #100 - 249 00d6 F6D9 bls .L14 - 309:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.c **** } - 250 .loc 1 309 0 - 251 00d8 0320 movs r0, #3 - 252 00da 00E2 b .L8 - 253 .LVL10: - ARM GAS /tmp/ccpZPcfy.s page 12 - - - 254 .L11: - 295:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.c **** - 255 .loc 1 295 0 discriminator 4 - 256 00dc 052B cmp r3, #5 - 257 00de 09D0 beq .L97 - 295:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.c **** - 258 .loc 1 295 0 is_stmt 0 discriminator 6 - 259 00e0 7E4B ldr r3, .L109 - 260 00e2 1A68 ldr r2, [r3] - 261 00e4 7E49 ldr r1, .L109+4 - 262 00e6 0A40 ands r2, r1 - 263 00e8 1A60 str r2, [r3] - 264 00ea 1A68 ldr r2, [r3] - 265 00ec 7D49 ldr r1, .L109+8 - 266 00ee 0A40 ands r2, r1 - 267 00f0 1A60 str r2, [r3] - 268 00f2 E2E7 b .L10 - 269 .L97: - 295:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.c **** - 270 .loc 1 295 0 discriminator 5 - 271 00f4 794B ldr r3, .L109 - 272 00f6 1968 ldr r1, [r3] - 273 00f8 8022 movs r2, #128 - 274 00fa D202 lsls r2, r2, #11 - 275 00fc 0A43 orrs r2, r1 - 276 00fe 1A60 str r2, [r3] - 277 0100 1968 ldr r1, [r3] - 278 0102 8022 movs r2, #128 - 279 0104 5202 lsls r2, r2, #9 - 280 0106 0A43 orrs r2, r1 - 281 0108 1A60 str r2, [r3] - 282 010a D6E7 b .L10 - 283 .L13: - 316:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.c **** - 284 .loc 1 316 0 is_stmt 1 - 285 010c FFF7FEFF bl HAL_GetTick - 286 .LVL11: - 287 0110 0500 movs r5, r0 - 288 .LVL12: - 289 .L16: - 319:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.c **** { - 290 .loc 1 319 0 - 291 0112 724B ldr r3, .L109 - 292 0114 1B68 ldr r3, [r3] - 293 0116 9B03 lsls r3, r3, #14 - 294 0118 A4D5 bpl .L5 - 321:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.c **** { - 295 .loc 1 321 0 - 296 011a FFF7FEFF bl HAL_GetTick - 297 .LVL13: - 298 011e 401B subs r0, r0, r5 - 299 0120 6428 cmp r0, #100 - 300 0122 F6D9 bls .L16 - 323:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.c **** } - 301 .loc 1 323 0 - 302 0124 0320 movs r0, #3 - 303 0126 DAE1 b .L8 - ARM GAS /tmp/ccpZPcfy.s page 13 - - - 304 .LVL14: - 305 .L95: - 338:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.c **** { - 306 .loc 1 338 0 discriminator 1 - 307 0128 6C4B ldr r3, .L109 - 308 012a 5B68 ldr r3, [r3, #4] - 309 012c C022 movs r2, #192 - 310 012e 5202 lsls r2, r2, #9 - 311 0130 1340 ands r3, r2 - 312 0132 8022 movs r2, #128 - 313 0134 1202 lsls r2, r2, #8 - 314 0136 9342 cmp r3, r2 - 315 0138 A2D1 bne .L20 - 316 .L19: - 341:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.c **** { - 317 .loc 1 341 0 - 318 013a 684B ldr r3, .L109 - 319 013c 1B68 ldr r3, [r3] - 320 013e 9B07 lsls r3, r3, #30 - 321 0140 04D5 bpl .L21 - 341:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.c **** { - 322 .loc 1 341 0 is_stmt 0 discriminator 1 - 323 0142 E368 ldr r3, [r4, #12] - 324 0144 012B cmp r3, #1 - 325 0146 01D0 beq .L21 - 343:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.c **** } - 326 .loc 1 343 0 is_stmt 1 - 327 0148 0120 movs r0, #1 - 328 014a C8E1 b .L8 - 329 .L21: - 349:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.c **** } - 330 .loc 1 349 0 - 331 014c 6349 ldr r1, .L109 - 332 014e 0B68 ldr r3, [r1] - 333 0150 F822 movs r2, #248 - 334 0152 9343 bics r3, r2 - 335 0154 2269 ldr r2, [r4, #16] - 336 0156 D200 lsls r2, r2, #3 - 337 0158 1343 orrs r3, r2 - 338 015a 0B60 str r3, [r1] - 339 .L18: - 369:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.c **** } - 370:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.c **** } - 371:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.c **** - 372:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.c **** /* Adjusts the Internal High Speed oscillator (HSI) calibration value.*/ - 373:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.c **** __HAL_RCC_HSI_CALIBRATIONVALUE_ADJUST(RCC_OscInitStruct->HSICalibrationValue); - 374:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.c **** } - 375:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.c **** else - 376:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.c **** { - 377:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.c **** /* Disable the Internal High Speed oscillator (HSI). */ - 378:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.c **** __HAL_RCC_HSI_DISABLE(); - 379:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.c **** - 380:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.c **** /* Get Start Tick */ - 381:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.c **** tickstart = HAL_GetTick(); - 382:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.c **** - 383:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.c **** /* Wait till HSI is disabled */ - 384:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.c **** while(__HAL_RCC_GET_FLAG(RCC_FLAG_HSIRDY) != RESET) - ARM GAS /tmp/ccpZPcfy.s page 14 - - - 385:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.c **** { - 386:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.c **** if((HAL_GetTick() - tickstart ) > HSI_TIMEOUT_VALUE) - 387:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.c **** { - 388:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.c **** return HAL_TIMEOUT; - 389:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.c **** } - 390:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.c **** } - 391:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.c **** } - 392:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.c **** } - 393:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.c **** } - 394:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.c **** /*------------------------------ LSI Configuration -------------------------*/ - 395:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.c **** if(((RCC_OscInitStruct->OscillatorType) & RCC_OSCILLATORTYPE_LSI) == RCC_OSCILLATORTYPE_LSI) - 340 .loc 1 395 0 - 341 015c 2368 ldr r3, [r4] - 342 015e 1B07 lsls r3, r3, #28 - 343 0160 44D5 bpl .L27 - 396:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.c **** { - 397:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.c **** /* Check the parameters */ - 398:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.c **** assert_param(IS_RCC_LSI(RCC_OscInitStruct->LSIState)); - 399:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.c **** - 400:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.c **** /* Check the LSI State */ - 401:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.c **** if(RCC_OscInitStruct->LSIState != RCC_LSI_OFF) - 344 .loc 1 401 0 - 345 0162 E369 ldr r3, [r4, #28] - 346 0164 002B cmp r3, #0 - 347 0166 2ED0 beq .L28 - 402:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.c **** { - 403:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.c **** /* Enable the Internal Low Speed oscillator (LSI). */ - 404:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.c **** __HAL_RCC_LSI_ENABLE(); - 348 .loc 1 404 0 - 349 0168 5C4A ldr r2, .L109 - 350 016a 536A ldr r3, [r2, #36] - 351 016c 0121 movs r1, #1 - 352 016e 0B43 orrs r3, r1 - 353 0170 5362 str r3, [r2, #36] - 405:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.c **** - 406:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.c **** /* Get Start Tick */ - 407:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.c **** tickstart = HAL_GetTick(); - 354 .loc 1 407 0 - 355 0172 FFF7FEFF bl HAL_GetTick - 356 .LVL15: - 357 0176 0500 movs r5, r0 - 358 .LVL16: - 359 .L29: - 408:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.c **** - 409:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.c **** /* Wait till LSI is ready */ - 410:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.c **** while(__HAL_RCC_GET_FLAG(RCC_FLAG_LSIRDY) == RESET) - 360 .loc 1 410 0 - 361 0178 584B ldr r3, .L109 - 362 017a 5B6A ldr r3, [r3, #36] - 363 017c 9B07 lsls r3, r3, #30 - 364 017e 35D4 bmi .L27 - 411:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.c **** { - 412:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.c **** if((HAL_GetTick() - tickstart ) > LSI_TIMEOUT_VALUE) - 365 .loc 1 412 0 - 366 0180 FFF7FEFF bl HAL_GetTick - 367 .LVL17: - 368 0184 401B subs r0, r0, r5 - ARM GAS /tmp/ccpZPcfy.s page 15 - - - 369 0186 0228 cmp r0, #2 - 370 0188 F6D9 bls .L29 - 413:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.c **** { - 414:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.c **** return HAL_TIMEOUT; - 371 .loc 1 414 0 - 372 018a 0320 movs r0, #3 - 373 018c A7E1 b .L8 - 374 .L96: - 373:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.c **** } - 375 .loc 1 373 0 - 376 018e 5349 ldr r1, .L109 - 377 0190 0B68 ldr r3, [r1] - 378 0192 F822 movs r2, #248 - 379 0194 9343 bics r3, r2 - 380 0196 2269 ldr r2, [r4, #16] - 381 0198 D200 lsls r2, r2, #3 - 382 019a 1343 orrs r3, r2 - 383 019c 0B60 str r3, [r1] - 384 019e DDE7 b .L18 - 385 .LVL18: - 386 .L22: - 378:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.c **** - 387 .loc 1 378 0 - 388 01a0 4E4A ldr r2, .L109 - 389 01a2 1368 ldr r3, [r2] - 390 01a4 0121 movs r1, #1 - 391 01a6 8B43 bics r3, r1 - 392 01a8 1360 str r3, [r2] - 381:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.c **** - 393 .loc 1 381 0 - 394 01aa FFF7FEFF bl HAL_GetTick - 395 .LVL19: - 396 01ae 0500 movs r5, r0 - 397 .LVL20: - 398 .L25: - 384:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.c **** { - 399 .loc 1 384 0 - 400 01b0 4A4B ldr r3, .L109 - 401 01b2 1B68 ldr r3, [r3] - 402 01b4 9B07 lsls r3, r3, #30 - 403 01b6 D1D5 bpl .L18 - 386:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.c **** { - 404 .loc 1 386 0 - 405 01b8 FFF7FEFF bl HAL_GetTick - 406 .LVL21: - 407 01bc 401B subs r0, r0, r5 - 408 01be 0228 cmp r0, #2 - 409 01c0 F6D9 bls .L25 - 388:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.c **** } - 410 .loc 1 388 0 - 411 01c2 0320 movs r0, #3 - 412 01c4 8BE1 b .L8 - 413 .LVL22: - 414 .L28: - 415:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.c **** } - 416:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.c **** } - 417:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.c **** } - ARM GAS /tmp/ccpZPcfy.s page 16 - - - 418:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.c **** else - 419:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.c **** { - 420:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.c **** /* Disable the Internal Low Speed oscillator (LSI). */ - 421:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.c **** __HAL_RCC_LSI_DISABLE(); - 415 .loc 1 421 0 - 416 01c6 454A ldr r2, .L109 - 417 01c8 536A ldr r3, [r2, #36] - 418 01ca 0121 movs r1, #1 - 419 01cc 8B43 bics r3, r1 - 420 01ce 5362 str r3, [r2, #36] - 422:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.c **** - 423:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.c **** /* Get Start Tick */ - 424:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.c **** tickstart = HAL_GetTick(); - 421 .loc 1 424 0 - 422 01d0 FFF7FEFF bl HAL_GetTick - 423 .LVL23: - 424 01d4 0500 movs r5, r0 - 425 .LVL24: - 426 .L31: - 425:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.c **** - 426:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.c **** /* Wait till LSI is disabled */ - 427:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.c **** while(__HAL_RCC_GET_FLAG(RCC_FLAG_LSIRDY) != RESET) - 427 .loc 1 427 0 - 428 01d6 414B ldr r3, .L109 - 429 01d8 5B6A ldr r3, [r3, #36] - 430 01da 9B07 lsls r3, r3, #30 - 431 01dc 06D5 bpl .L27 - 428:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.c **** { - 429:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.c **** if((HAL_GetTick() - tickstart ) > LSI_TIMEOUT_VALUE) - 432 .loc 1 429 0 - 433 01de FFF7FEFF bl HAL_GetTick - 434 .LVL25: - 435 01e2 401B subs r0, r0, r5 - 436 01e4 0228 cmp r0, #2 - 437 01e6 F6D9 bls .L31 - 430:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.c **** { - 431:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.c **** return HAL_TIMEOUT; - 438 .loc 1 431 0 - 439 01e8 0320 movs r0, #3 - 440 01ea 78E1 b .L8 - 441 .LVL26: - 442 .L27: - 432:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.c **** } - 433:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.c **** } - 434:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.c **** } - 435:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.c **** } - 436:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.c **** /*------------------------------ LSE Configuration -------------------------*/ - 437:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.c **** if(((RCC_OscInitStruct->OscillatorType) & RCC_OSCILLATORTYPE_LSE) == RCC_OSCILLATORTYPE_LSE) - 443 .loc 1 437 0 - 444 01ec 2368 ldr r3, [r4] - 445 01ee 5B07 lsls r3, r3, #29 - 446 01f0 00D4 bmi .LCB429 - 447 01f2 7FE0 b .L33 @long jump - 448 .LCB429: - 449 .LVL27: - 450 .LBB2: - 438:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.c **** { - ARM GAS /tmp/ccpZPcfy.s page 17 - - - 439:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.c **** FlagStatus pwrclkchanged = RESET; - 440:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.c **** - 441:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.c **** /* Check the parameters */ - 442:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.c **** assert_param(IS_RCC_LSE(RCC_OscInitStruct->LSEState)); - 443:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.c **** - 444:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.c **** /* Update LSE configuration in Backup Domain control register */ - 445:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.c **** /* Requires to enable write access to Backup Domain of necessary */ - 446:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.c **** if(__HAL_RCC_PWR_IS_CLK_DISABLED()) - 451 .loc 1 446 0 - 452 01f4 394B ldr r3, .L109 - 453 01f6 DB69 ldr r3, [r3, #28] - 454 01f8 DB00 lsls r3, r3, #3 - 455 01fa 1DD4 bmi .L78 - 456 .LBB3: - 447:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.c **** { - 448:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.c **** __HAL_RCC_PWR_CLK_ENABLE(); - 457 .loc 1 448 0 - 458 01fc 374A ldr r2, .L109 - 459 01fe D169 ldr r1, [r2, #28] - 460 0200 8020 movs r0, #128 - 461 0202 4005 lsls r0, r0, #21 - 462 0204 0143 orrs r1, r0 - 463 0206 D161 str r1, [r2, #28] - 464 0208 D369 ldr r3, [r2, #28] - 465 020a 0340 ands r3, r0 - 466 020c 0193 str r3, [sp, #4] - 467 020e 019B ldr r3, [sp, #4] - 468 .LVL28: - 469 .LBE3: - 449:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.c **** pwrclkchanged = SET; - 470 .loc 1 449 0 - 471 0210 0125 movs r5, #1 - 472 .LVL29: - 473 .L34: - 450:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.c **** } - 451:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.c **** - 452:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.c **** if(HAL_IS_BIT_CLR(PWR->CR, PWR_CR_DBP)) - 474 .loc 1 452 0 - 475 0212 354B ldr r3, .L109+12 - 476 0214 1B68 ldr r3, [r3] - 477 0216 DB05 lsls r3, r3, #23 - 478 0218 10D5 bpl .L98 - 479 .L35: - 453:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.c **** { - 454:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.c **** /* Enable write access to Backup domain */ - 455:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.c **** SET_BIT(PWR->CR, PWR_CR_DBP); - 456:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.c **** - 457:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.c **** /* Wait for Backup domain Write protection disable */ - 458:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.c **** tickstart = HAL_GetTick(); - 459:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.c **** - 460:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.c **** while(HAL_IS_BIT_CLR(PWR->CR, PWR_CR_DBP)) - 461:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.c **** { - 462:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.c **** if((HAL_GetTick() - tickstart) > RCC_DBP_TIMEOUT_VALUE) - 463:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.c **** { - 464:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.c **** return HAL_TIMEOUT; - 465:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.c **** } - 466:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.c **** } - ARM GAS /tmp/ccpZPcfy.s page 18 - - - 467:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.c **** } - 468:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.c **** - 469:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.c **** /* Set the new LSE configuration -----------------------------------------*/ - 470:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.c **** __HAL_RCC_LSE_CONFIG(RCC_OscInitStruct->LSEState); - 480 .loc 1 470 0 - 481 021a A368 ldr r3, [r4, #8] - 482 021c 012B cmp r3, #1 - 483 021e 21D0 beq .L99 - 484 .loc 1 470 0 is_stmt 0 discriminator 2 - 485 0220 002B cmp r3, #0 - 486 0222 36D1 bne .L40 - 487 .loc 1 470 0 discriminator 3 - 488 0224 2D4B ldr r3, .L109 - 489 0226 1A6A ldr r2, [r3, #32] - 490 0228 0121 movs r1, #1 - 491 022a 8A43 bics r2, r1 - 492 022c 1A62 str r2, [r3, #32] - 493 022e 1A6A ldr r2, [r3, #32] - 494 0230 0331 adds r1, r1, #3 - 495 0232 8A43 bics r2, r1 - 496 0234 1A62 str r2, [r3, #32] - 497 0236 1AE0 b .L39 - 498 .LVL30: - 499 .L78: - 439:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.c **** - 500 .loc 1 439 0 is_stmt 1 - 501 0238 0025 movs r5, #0 - 502 023a EAE7 b .L34 - 503 .LVL31: - 504 .L98: - 455:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.c **** - 505 .loc 1 455 0 - 506 023c 2A4A ldr r2, .L109+12 - 507 023e 1168 ldr r1, [r2] - 508 0240 8023 movs r3, #128 - 509 0242 5B00 lsls r3, r3, #1 - 510 0244 0B43 orrs r3, r1 - 511 0246 1360 str r3, [r2] - 458:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.c **** - 512 .loc 1 458 0 - 513 0248 FFF7FEFF bl HAL_GetTick - 514 .LVL32: - 515 024c 0600 movs r6, r0 - 516 .LVL33: - 517 .L36: - 460:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.c **** { - 518 .loc 1 460 0 - 519 024e 264B ldr r3, .L109+12 - 520 0250 1B68 ldr r3, [r3] - 521 0252 DB05 lsls r3, r3, #23 - 522 0254 E1D4 bmi .L35 - 462:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.c **** { - 523 .loc 1 462 0 - 524 0256 FFF7FEFF bl HAL_GetTick - 525 .LVL34: - 526 025a 801B subs r0, r0, r6 - 527 025c 6428 cmp r0, #100 - ARM GAS /tmp/ccpZPcfy.s page 19 - - - 528 025e F6D9 bls .L36 - 464:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.c **** } - 529 .loc 1 464 0 - 530 0260 0320 movs r0, #3 - 531 0262 3CE1 b .L8 - 532 .LVL35: - 533 .L99: - 534 .loc 1 470 0 discriminator 1 - 535 0264 1D4A ldr r2, .L109 - 536 0266 136A ldr r3, [r2, #32] - 537 0268 0121 movs r1, #1 - 538 026a 0B43 orrs r3, r1 - 539 026c 1362 str r3, [r2, #32] - 540 .L39: - 471:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.c **** /* Check the LSE State */ - 472:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.c **** if(RCC_OscInitStruct->LSEState != RCC_LSE_OFF) - 541 .loc 1 472 0 - 542 026e A368 ldr r3, [r4, #8] - 543 0270 002B cmp r3, #0 - 544 0272 24D0 beq .L42 - 473:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.c **** { - 474:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.c **** /* Get Start Tick */ - 475:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.c **** tickstart = HAL_GetTick(); - 545 .loc 1 475 0 - 546 0274 FFF7FEFF bl HAL_GetTick - 547 .LVL36: - 548 0278 0600 movs r6, r0 - 549 .LVL37: - 550 .L43: - 476:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.c **** - 477:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.c **** /* Wait till LSE is ready */ - 478:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.c **** while(__HAL_RCC_GET_FLAG(RCC_FLAG_LSERDY) == RESET) - 551 .loc 1 478 0 - 552 027a 184B ldr r3, .L109 - 553 027c 1B6A ldr r3, [r3, #32] - 554 027e 9B07 lsls r3, r3, #30 - 555 0280 36D4 bmi .L45 - 479:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.c **** { - 480:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.c **** if((HAL_GetTick() - tickstart ) > RCC_LSE_TIMEOUT_VALUE) - 556 .loc 1 480 0 - 557 0282 FFF7FEFF bl HAL_GetTick - 558 .LVL38: - 559 0286 801B subs r0, r0, r6 - 560 0288 184B ldr r3, .L109+16 - 561 028a 9842 cmp r0, r3 - 562 028c F5D9 bls .L43 - 481:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.c **** { - 482:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.c **** return HAL_TIMEOUT; - 563 .loc 1 482 0 - 564 028e 0320 movs r0, #3 - 565 0290 25E1 b .L8 - 566 .LVL39: - 567 .L40: - 470:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.c **** /* Check the LSE State */ - 568 .loc 1 470 0 discriminator 4 - 569 0292 052B cmp r3, #5 - 570 0294 09D0 beq .L100 - ARM GAS /tmp/ccpZPcfy.s page 20 - - - 470:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.c **** /* Check the LSE State */ - 571 .loc 1 470 0 is_stmt 0 discriminator 6 - 572 0296 114B ldr r3, .L109 - 573 0298 1A6A ldr r2, [r3, #32] - 574 029a 0121 movs r1, #1 - 575 029c 8A43 bics r2, r1 - 576 029e 1A62 str r2, [r3, #32] - 577 02a0 1A6A ldr r2, [r3, #32] - 578 02a2 0331 adds r1, r1, #3 - 579 02a4 8A43 bics r2, r1 - 580 02a6 1A62 str r2, [r3, #32] - 581 02a8 E1E7 b .L39 - 582 .L100: - 470:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.c **** /* Check the LSE State */ - 583 .loc 1 470 0 discriminator 5 - 584 02aa 0C4B ldr r3, .L109 - 585 02ac 1A6A ldr r2, [r3, #32] - 586 02ae 0421 movs r1, #4 - 587 02b0 0A43 orrs r2, r1 - 588 02b2 1A62 str r2, [r3, #32] - 589 02b4 1A6A ldr r2, [r3, #32] - 590 02b6 0339 subs r1, r1, #3 - 591 02b8 0A43 orrs r2, r1 - 592 02ba 1A62 str r2, [r3, #32] - 593 02bc D7E7 b .L39 - 594 .L42: - 483:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.c **** } - 484:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.c **** } - 485:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.c **** } - 486:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.c **** else - 487:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.c **** { - 488:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.c **** /* Get Start Tick */ - 489:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.c **** tickstart = HAL_GetTick(); - 595 .loc 1 489 0 is_stmt 1 - 596 02be FFF7FEFF bl HAL_GetTick - 597 .LVL40: - 598 02c2 0600 movs r6, r0 - 599 .LVL41: - 600 .L46: - 490:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.c **** - 491:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.c **** /* Wait till LSE is disabled */ - 492:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.c **** while(__HAL_RCC_GET_FLAG(RCC_FLAG_LSERDY) != RESET) - 601 .loc 1 492 0 - 602 02c4 054B ldr r3, .L109 - 603 02c6 1B6A ldr r3, [r3, #32] - 604 02c8 9B07 lsls r3, r3, #30 - 605 02ca 11D5 bpl .L45 - 493:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.c **** { - 494:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.c **** if((HAL_GetTick() - tickstart ) > RCC_LSE_TIMEOUT_VALUE) - 606 .loc 1 494 0 - 607 02cc FFF7FEFF bl HAL_GetTick - 608 .LVL42: - 609 02d0 801B subs r0, r0, r6 - 610 02d2 064B ldr r3, .L109+16 - 611 02d4 9842 cmp r0, r3 - 612 02d6 F5D9 bls .L46 - 495:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.c **** { - ARM GAS /tmp/ccpZPcfy.s page 21 - - - 496:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.c **** return HAL_TIMEOUT; - 613 .loc 1 496 0 - 614 02d8 0320 movs r0, #3 - 615 02da 00E1 b .L8 - 616 .L110: - 617 .align 2 - 618 .L109: - 619 02dc 00100240 .word 1073876992 - 620 02e0 FFFFFEFF .word -65537 - 621 02e4 FFFFFBFF .word -262145 - 622 02e8 00700040 .word 1073770496 - 623 02ec 88130000 .word 5000 - 624 .L45: - 497:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.c **** } - 498:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.c **** } - 499:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.c **** } - 500:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.c **** - 501:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.c **** /* Require to disable power clock if necessary */ - 502:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.c **** if(pwrclkchanged == SET) - 625 .loc 1 502 0 - 626 02f0 012D cmp r5, #1 - 627 02f2 3AD0 beq .L101 - 628 .LVL43: - 629 .L33: - 630 .LBE2: - 503:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.c **** { - 504:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.c **** __HAL_RCC_PWR_CLK_DISABLE(); - 505:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.c **** } - 506:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.c **** } - 507:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.c **** - 508:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.c **** /*----------------------------- HSI14 Configuration --------------------------*/ - 509:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.c **** if(((RCC_OscInitStruct->OscillatorType) & RCC_OSCILLATORTYPE_HSI14) == RCC_OSCILLATORTYPE_HSI14) - 631 .loc 1 509 0 - 632 02f4 2368 ldr r3, [r4] - 633 02f6 DB06 lsls r3, r3, #27 - 634 02f8 10D5 bpl .L48 - 510:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.c **** { - 511:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.c **** /* Check the parameters */ - 512:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.c **** assert_param(IS_RCC_HSI14(RCC_OscInitStruct->HSI14State)); - 513:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.c **** assert_param(IS_RCC_CALIBRATION_VALUE(RCC_OscInitStruct->HSI14CalibrationValue)); - 514:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.c **** - 515:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.c **** /* Check the HSI14 State */ - 516:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.c **** if(RCC_OscInitStruct->HSI14State == RCC_HSI14_ON) - 635 .loc 1 516 0 - 636 02fa 6369 ldr r3, [r4, #20] - 637 02fc 012B cmp r3, #1 - 638 02fe 3AD0 beq .L102 - 517:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.c **** { - 518:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.c **** /* Disable ADC control of the Internal High Speed oscillator HSI14 */ - 519:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.c **** __HAL_RCC_HSI14ADC_DISABLE(); - 520:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.c **** - 521:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.c **** /* Enable the Internal High Speed oscillator (HSI). */ - 522:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.c **** __HAL_RCC_HSI14_ENABLE(); - 523:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.c **** - 524:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.c **** /* Get Start Tick */ - 525:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.c **** tickstart = HAL_GetTick(); - 526:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.c **** - ARM GAS /tmp/ccpZPcfy.s page 22 - - - 527:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.c **** /* Wait till HSI is ready */ - 528:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.c **** while(__HAL_RCC_GET_FLAG(RCC_FLAG_HSI14RDY) == RESET) - 529:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.c **** { - 530:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.c **** if((HAL_GetTick() - tickstart) > HSI14_TIMEOUT_VALUE) - 531:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.c **** { - 532:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.c **** return HAL_TIMEOUT; - 533:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.c **** } - 534:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.c **** } - 535:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.c **** - 536:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.c **** /* Adjusts the Internal High Speed oscillator 14Mhz (HSI14) calibration value. */ - 537:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.c **** __HAL_RCC_HSI14_CALIBRATIONVALUE_ADJUST(RCC_OscInitStruct->HSI14CalibrationValue); - 538:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.c **** } - 539:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.c **** else if(RCC_OscInitStruct->HSI14State == RCC_HSI14_ADC_CONTROL) - 639 .loc 1 539 0 - 640 0300 0533 adds r3, r3, #5 - 641 0302 58D1 bne .L52 - 540:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.c **** { - 541:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.c **** /* Enable ADC control of the Internal High Speed oscillator HSI14 */ - 542:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.c **** __HAL_RCC_HSI14ADC_ENABLE(); - 642 .loc 1 542 0 - 643 0304 784A ldr r2, .L111 - 644 0306 536B ldr r3, [r2, #52] - 645 0308 0421 movs r1, #4 - 646 030a 8B43 bics r3, r1 - 647 030c 5363 str r3, [r2, #52] - 543:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.c **** - 544:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.c **** /* Adjusts the Internal High Speed oscillator 14Mhz (HSI14) calibration value. */ - 545:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.c **** __HAL_RCC_HSI14_CALIBRATIONVALUE_ADJUST(RCC_OscInitStruct->HSI14CalibrationValue); - 648 .loc 1 545 0 - 649 030e 536B ldr r3, [r2, #52] - 650 0310 F431 adds r1, r1, #244 - 651 0312 8B43 bics r3, r1 - 652 0314 A169 ldr r1, [r4, #24] - 653 0316 C900 lsls r1, r1, #3 - 654 0318 0B43 orrs r3, r1 - 655 031a 5363 str r3, [r2, #52] - 656 .L48: - 546:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.c **** } - 547:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.c **** else - 548:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.c **** { - 549:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.c **** /* Disable ADC control of the Internal High Speed oscillator HSI14 */ - 550:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.c **** __HAL_RCC_HSI14ADC_DISABLE(); - 551:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.c **** - 552:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.c **** /* Disable the Internal High Speed oscillator (HSI). */ - 553:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.c **** __HAL_RCC_HSI14_DISABLE(); - 554:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.c **** - 555:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.c **** /* Get Start Tick */ - 556:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.c **** tickstart = HAL_GetTick(); - 557:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.c **** - 558:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.c **** /* Wait till HSI is ready */ - 559:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.c **** while(__HAL_RCC_GET_FLAG(RCC_FLAG_HSI14RDY) != RESET) - 560:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.c **** { - 561:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.c **** if((HAL_GetTick() - tickstart) > HSI14_TIMEOUT_VALUE) - 562:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.c **** { - 563:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.c **** return HAL_TIMEOUT; - 564:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.c **** } - 565:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.c **** } - ARM GAS /tmp/ccpZPcfy.s page 23 - - - 566:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.c **** } - 567:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.c **** } - 568:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.c **** - 569:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.c **** #if defined(RCC_HSI48_SUPPORT) - 570:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.c **** /*----------------------------- HSI48 Configuration --------------------------*/ - 571:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.c **** if(((RCC_OscInitStruct->OscillatorType) & RCC_OSCILLATORTYPE_HSI48) == RCC_OSCILLATORTYPE_HSI48) - 657 .loc 1 571 0 - 658 031c 2368 ldr r3, [r4] - 659 031e 9B06 lsls r3, r3, #26 - 660 0320 00D4 bmi .LCB659 - 661 0322 82E0 b .L55 @long jump - 662 .LCB659: - 572:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.c **** { - 573:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.c **** /* Check the parameters */ - 574:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.c **** assert_param(IS_RCC_HSI48(RCC_OscInitStruct->HSI48State)); - 575:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.c **** - 576:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.c **** /* When the HSI48 is used as system clock it is not allowed to be disabled */ - 577:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.c **** if((__HAL_RCC_GET_SYSCLK_SOURCE() == RCC_SYSCLKSOURCE_STATUS_HSI48) || - 663 .loc 1 577 0 - 664 0324 704B ldr r3, .L111 - 665 0326 5A68 ldr r2, [r3, #4] - 666 0328 0C23 movs r3, #12 - 667 032a 1340 ands r3, r2 - 668 032c 0C2B cmp r3, #12 - 669 032e 60D0 beq .L56 - 578:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.c **** ((__HAL_RCC_GET_SYSCLK_SOURCE() == RCC_SYSCLKSOURCE_STATUS_PLLCLK) && (__HAL_RCC_GET_PLL_OSC - 670 .loc 1 578 0 discriminator 1 - 671 0330 6D4B ldr r3, .L111 - 672 0332 5A68 ldr r2, [r3, #4] - 673 0334 0C23 movs r3, #12 - 674 0336 1340 ands r3, r2 - 577:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.c **** ((__HAL_RCC_GET_SYSCLK_SOURCE() == RCC_SYSCLKSOURCE_STATUS_PLLCLK) && (__HAL_RCC_GET_PLL_OSC - 675 .loc 1 577 0 discriminator 1 - 676 0338 082B cmp r3, #8 - 677 033a 53D0 beq .L103 - 678 .L57: - 579:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.c **** { - 580:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.c **** if((__HAL_RCC_GET_FLAG(RCC_FLAG_HSI48RDY) != RESET) && (RCC_OscInitStruct->HSI48State != RCC_ - 581:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.c **** { - 582:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.c **** return HAL_ERROR; - 583:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.c **** } - 584:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.c **** } - 585:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.c **** else - 586:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.c **** { - 587:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.c **** /* Check the HSI48 State */ - 588:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.c **** if(RCC_OscInitStruct->HSI48State != RCC_HSI48_OFF) - 679 .loc 1 588 0 - 680 033c 236A ldr r3, [r4, #32] - 681 033e 002B cmp r3, #0 - 682 0340 60D0 beq .L58 - 589:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.c **** { - 590:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.c **** /* Enable the Internal High Speed oscillator (HSI48). */ - 591:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.c **** __HAL_RCC_HSI48_ENABLE(); - 683 .loc 1 591 0 - 684 0342 694A ldr r2, .L111 - 685 0344 516B ldr r1, [r2, #52] - 686 0346 8023 movs r3, #128 - ARM GAS /tmp/ccpZPcfy.s page 24 - - - 687 0348 5B02 lsls r3, r3, #9 - 688 034a 0B43 orrs r3, r1 - 689 034c 5363 str r3, [r2, #52] - 592:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.c **** - 593:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.c **** /* Get Start Tick */ - 594:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.c **** tickstart = HAL_GetTick(); - 690 .loc 1 594 0 - 691 034e FFF7FEFF bl HAL_GetTick - 692 .LVL44: - 693 0352 0500 movs r5, r0 - 694 .LVL45: - 695 .L59: - 595:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.c **** - 596:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.c **** /* Wait till HSI48 is ready */ - 597:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.c **** while(__HAL_RCC_GET_FLAG(RCC_FLAG_HSI48RDY) == RESET) - 696 .loc 1 597 0 - 697 0354 644B ldr r3, .L111 - 698 0356 5B6B ldr r3, [r3, #52] - 699 0358 DB03 lsls r3, r3, #15 - 700 035a 66D4 bmi .L55 - 598:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.c **** { - 599:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.c **** if((HAL_GetTick() - tickstart) > HSI48_TIMEOUT_VALUE) - 701 .loc 1 599 0 - 702 035c FFF7FEFF bl HAL_GetTick - 703 .LVL46: - 704 0360 401B subs r0, r0, r5 - 705 0362 0228 cmp r0, #2 - 706 0364 F6D9 bls .L59 - 600:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.c **** { - 601:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.c **** return HAL_TIMEOUT; - 707 .loc 1 601 0 - 708 0366 0320 movs r0, #3 - 709 0368 B9E0 b .L8 - 710 .LVL47: - 711 .L101: - 712 .LBB4: - 504:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.c **** } - 713 .loc 1 504 0 - 714 036a 5F4A ldr r2, .L111 - 715 036c D369 ldr r3, [r2, #28] - 716 036e 5F49 ldr r1, .L111+4 - 717 0370 0B40 ands r3, r1 - 718 0372 D361 str r3, [r2, #28] - 719 0374 BEE7 b .L33 - 720 .LVL48: - 721 .L102: - 722 .LBE4: - 519:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.c **** - 723 .loc 1 519 0 - 724 0376 5C4B ldr r3, .L111 - 725 0378 5A6B ldr r2, [r3, #52] - 726 037a 0421 movs r1, #4 - 727 037c 0A43 orrs r2, r1 - 728 037e 5A63 str r2, [r3, #52] - 522:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.c **** - 729 .loc 1 522 0 - 730 0380 5A6B ldr r2, [r3, #52] - ARM GAS /tmp/ccpZPcfy.s page 25 - - - 731 0382 0339 subs r1, r1, #3 - 732 0384 0A43 orrs r2, r1 - 733 0386 5A63 str r2, [r3, #52] - 525:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.c **** - 734 .loc 1 525 0 - 735 0388 FFF7FEFF bl HAL_GetTick - 736 .LVL49: - 737 038c 0500 movs r5, r0 - 738 .LVL50: - 739 .L50: - 528:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.c **** { - 740 .loc 1 528 0 - 741 038e 564B ldr r3, .L111 - 742 0390 5B6B ldr r3, [r3, #52] - 743 0392 9B07 lsls r3, r3, #30 - 744 0394 06D4 bmi .L104 - 530:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.c **** { - 745 .loc 1 530 0 - 746 0396 FFF7FEFF bl HAL_GetTick - 747 .LVL51: - 748 039a 401B subs r0, r0, r5 - 749 039c 0228 cmp r0, #2 - 750 039e F6D9 bls .L50 - 532:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.c **** } - 751 .loc 1 532 0 - 752 03a0 0320 movs r0, #3 - 753 03a2 9CE0 b .L8 - 754 .L104: - 537:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.c **** } - 755 .loc 1 537 0 - 756 03a4 5049 ldr r1, .L111 - 757 03a6 4B6B ldr r3, [r1, #52] - 758 03a8 F822 movs r2, #248 - 759 03aa 9343 bics r3, r2 - 760 03ac A269 ldr r2, [r4, #24] - 761 03ae D200 lsls r2, r2, #3 - 762 03b0 1343 orrs r3, r2 - 763 03b2 4B63 str r3, [r1, #52] - 764 03b4 B2E7 b .L48 - 765 .LVL52: - 766 .L52: - 550:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.c **** - 767 .loc 1 550 0 - 768 03b6 4C4B ldr r3, .L111 - 769 03b8 5A6B ldr r2, [r3, #52] - 770 03ba 0421 movs r1, #4 - 771 03bc 0A43 orrs r2, r1 - 772 03be 5A63 str r2, [r3, #52] - 553:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.c **** - 773 .loc 1 553 0 - 774 03c0 5A6B ldr r2, [r3, #52] - 775 03c2 0339 subs r1, r1, #3 - 776 03c4 8A43 bics r2, r1 - 777 03c6 5A63 str r2, [r3, #52] - 556:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.c **** - 778 .loc 1 556 0 - 779 03c8 FFF7FEFF bl HAL_GetTick - ARM GAS /tmp/ccpZPcfy.s page 26 - - - 780 .LVL53: - 781 03cc 0500 movs r5, r0 - 782 .LVL54: - 783 .L53: - 559:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.c **** { - 784 .loc 1 559 0 - 785 03ce 464B ldr r3, .L111 - 786 03d0 5B6B ldr r3, [r3, #52] - 787 03d2 9B07 lsls r3, r3, #30 - 788 03d4 A2D5 bpl .L48 - 561:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.c **** { - 789 .loc 1 561 0 - 790 03d6 FFF7FEFF bl HAL_GetTick - 791 .LVL55: - 792 03da 401B subs r0, r0, r5 - 793 03dc 0228 cmp r0, #2 - 794 03de F6D9 bls .L53 - 563:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.c **** } - 795 .loc 1 563 0 - 796 03e0 0320 movs r0, #3 - 797 03e2 7CE0 b .L8 - 798 .LVL56: - 799 .L103: - 578:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.c **** { - 800 .loc 1 578 0 - 801 03e4 404B ldr r3, .L111 - 802 03e6 5B68 ldr r3, [r3, #4] - 803 03e8 C022 movs r2, #192 - 804 03ea 5202 lsls r2, r2, #9 - 805 03ec 1340 ands r3, r2 - 806 03ee 9342 cmp r3, r2 - 807 03f0 A4D1 bne .L57 - 808 .L56: - 580:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.c **** { - 809 .loc 1 580 0 - 810 03f2 3D4B ldr r3, .L111 - 811 03f4 5B6B ldr r3, [r3, #52] - 812 03f6 DB03 lsls r3, r3, #15 - 813 03f8 17D5 bpl .L55 - 580:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.c **** { - 814 .loc 1 580 0 is_stmt 0 discriminator 1 - 815 03fa 236A ldr r3, [r4, #32] - 816 03fc 012B cmp r3, #1 - 817 03fe 14D0 beq .L55 - 582:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.c **** } - 818 .loc 1 582 0 is_stmt 1 - 819 0400 0120 movs r0, #1 - 820 0402 6CE0 b .L8 - 821 .L58: - 602:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.c **** } - 603:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.c **** } - 604:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.c **** } - 605:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.c **** else - 606:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.c **** { - 607:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.c **** /* Disable the Internal High Speed oscillator (HSI48). */ - 608:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.c **** __HAL_RCC_HSI48_DISABLE(); - 822 .loc 1 608 0 - ARM GAS /tmp/ccpZPcfy.s page 27 - - - 823 0404 384A ldr r2, .L111 - 824 0406 536B ldr r3, [r2, #52] - 825 0408 3949 ldr r1, .L111+8 - 826 040a 0B40 ands r3, r1 - 827 040c 5363 str r3, [r2, #52] - 609:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.c **** - 610:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.c **** /* Get Start Tick */ - 611:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.c **** tickstart = HAL_GetTick(); - 828 .loc 1 611 0 - 829 040e FFF7FEFF bl HAL_GetTick - 830 .LVL57: - 831 0412 0500 movs r5, r0 - 832 .LVL58: - 833 .L61: - 612:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.c **** - 613:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.c **** /* Wait till HSI48 is ready */ - 614:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.c **** while(__HAL_RCC_GET_FLAG(RCC_FLAG_HSI48RDY) != RESET) - 834 .loc 1 614 0 - 835 0414 344B ldr r3, .L111 - 836 0416 5B6B ldr r3, [r3, #52] - 837 0418 DB03 lsls r3, r3, #15 - 838 041a 06D5 bpl .L55 - 615:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.c **** { - 616:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.c **** if((HAL_GetTick() - tickstart) > HSI48_TIMEOUT_VALUE) - 839 .loc 1 616 0 - 840 041c FFF7FEFF bl HAL_GetTick - 841 .LVL59: - 842 0420 401B subs r0, r0, r5 - 843 0422 0228 cmp r0, #2 - 844 0424 F6D9 bls .L61 - 617:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.c **** { - 618:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.c **** return HAL_TIMEOUT; - 845 .loc 1 618 0 - 846 0426 0320 movs r0, #3 - 847 0428 59E0 b .L8 - 848 .LVL60: - 849 .L55: - 619:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.c **** } - 620:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.c **** } - 621:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.c **** } - 622:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.c **** } - 623:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.c **** } - 624:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.c **** #endif /* RCC_HSI48_SUPPORT */ - 625:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.c **** - 626:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.c **** /*-------------------------------- PLL Configuration -----------------------*/ - 627:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.c **** /* Check the parameters */ - 628:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.c **** assert_param(IS_RCC_PLL(RCC_OscInitStruct->PLL.PLLState)); - 629:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.c **** if ((RCC_OscInitStruct->PLL.PLLState) != RCC_PLL_NONE) - 850 .loc 1 629 0 - 851 042a 636A ldr r3, [r4, #36] - 852 042c 002B cmp r3, #0 - 853 042e 55D0 beq .L87 - 630:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.c **** { - 631:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.c **** /* Check if the PLL is used as system clock or not */ - 632:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.c **** if(__HAL_RCC_GET_SYSCLK_SOURCE() != RCC_SYSCLKSOURCE_STATUS_PLLCLK) - 854 .loc 1 632 0 - 855 0430 2D4A ldr r2, .L111 - ARM GAS /tmp/ccpZPcfy.s page 28 - - - 856 0432 5168 ldr r1, [r2, #4] - 857 0434 0C22 movs r2, #12 - 858 0436 0A40 ands r2, r1 - 859 0438 082A cmp r2, #8 - 860 043a 52D0 beq .L88 - 633:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.c **** { - 634:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.c **** if((RCC_OscInitStruct->PLL.PLLState) == RCC_PLL_ON) - 861 .loc 1 634 0 - 862 043c 022B cmp r3, #2 - 863 043e 12D0 beq .L105 - 635:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.c **** { - 636:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.c **** /* Check the parameters */ - 637:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.c **** assert_param(IS_RCC_PLLSOURCE(RCC_OscInitStruct->PLL.PLLSource)); - 638:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.c **** assert_param(IS_RCC_PLL_MUL(RCC_OscInitStruct->PLL.PLLMUL)); - 639:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.c **** assert_param(IS_RCC_PREDIV(RCC_OscInitStruct->PLL.PREDIV)); - 640:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.c **** - 641:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.c **** /* Disable the main PLL. */ - 642:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.c **** __HAL_RCC_PLL_DISABLE(); - 643:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.c **** - 644:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.c **** /* Get Start Tick */ - 645:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.c **** tickstart = HAL_GetTick(); - 646:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.c **** - 647:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.c **** /* Wait till PLL is disabled */ - 648:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.c **** while(__HAL_RCC_GET_FLAG(RCC_FLAG_PLLRDY) != RESET) - 649:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.c **** { - 650:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.c **** if((HAL_GetTick() - tickstart ) > PLL_TIMEOUT_VALUE) - 651:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.c **** { - 652:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.c **** return HAL_TIMEOUT; - 653:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.c **** } - 654:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.c **** } - 655:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.c **** - 656:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.c **** /* Configure the main PLL clock source, predivider and multiplication factor. */ - 657:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.c **** __HAL_RCC_PLL_CONFIG(RCC_OscInitStruct->PLL.PLLSource, - 658:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.c **** RCC_OscInitStruct->PLL.PREDIV, - 659:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.c **** RCC_OscInitStruct->PLL.PLLMUL); - 660:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.c **** /* Enable the main PLL. */ - 661:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.c **** __HAL_RCC_PLL_ENABLE(); - 662:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.c **** - 663:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.c **** /* Get Start Tick */ - 664:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.c **** tickstart = HAL_GetTick(); - 665:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.c **** - 666:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.c **** /* Wait till PLL is ready */ - 667:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.c **** while(__HAL_RCC_GET_FLAG(RCC_FLAG_PLLRDY) == RESET) - 668:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.c **** { - 669:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.c **** if((HAL_GetTick() - tickstart ) > PLL_TIMEOUT_VALUE) - 670:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.c **** { - 671:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.c **** return HAL_TIMEOUT; - 672:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.c **** } - 673:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.c **** } - 674:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.c **** } - 675:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.c **** else - 676:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.c **** { - 677:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.c **** /* Disable the main PLL. */ - 678:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.c **** __HAL_RCC_PLL_DISABLE(); - 864 .loc 1 678 0 - 865 0440 294A ldr r2, .L111 - 866 0442 1368 ldr r3, [r2] - ARM GAS /tmp/ccpZPcfy.s page 29 - - - 867 0444 2B49 ldr r1, .L111+12 - 868 0446 0B40 ands r3, r1 - 869 0448 1360 str r3, [r2] - 679:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.c **** - 680:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.c **** /* Get Start Tick */ - 681:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.c **** tickstart = HAL_GetTick(); - 870 .loc 1 681 0 - 871 044a FFF7FEFF bl HAL_GetTick - 872 .LVL61: - 873 044e 0400 movs r4, r0 - 874 .LVL62: - 875 .L68: - 682:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.c **** - 683:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.c **** /* Wait till PLL is disabled */ - 684:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.c **** while(__HAL_RCC_GET_FLAG(RCC_FLAG_PLLRDY) != RESET) - 876 .loc 1 684 0 - 877 0450 254B ldr r3, .L111 - 878 0452 1B68 ldr r3, [r3] - 879 0454 9B01 lsls r3, r3, #6 - 880 0456 3DD5 bpl .L106 - 685:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.c **** { - 686:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.c **** if((HAL_GetTick() - tickstart ) > PLL_TIMEOUT_VALUE) - 881 .loc 1 686 0 - 882 0458 FFF7FEFF bl HAL_GetTick - 883 .LVL63: - 884 045c 001B subs r0, r0, r4 - 885 045e 0228 cmp r0, #2 - 886 0460 F6D9 bls .L68 - 687:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.c **** { - 688:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.c **** return HAL_TIMEOUT; - 887 .loc 1 688 0 - 888 0462 0320 movs r0, #3 - 889 0464 3BE0 b .L8 - 890 .LVL64: - 891 .L105: - 642:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.c **** - 892 .loc 1 642 0 - 893 0466 204A ldr r2, .L111 - 894 0468 1368 ldr r3, [r2] - 895 046a 2249 ldr r1, .L111+12 - 896 046c 0B40 ands r3, r1 - 897 046e 1360 str r3, [r2] - 645:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.c **** - 898 .loc 1 645 0 - 899 0470 FFF7FEFF bl HAL_GetTick - 900 .LVL65: - 901 0474 0500 movs r5, r0 - 902 .LVL66: - 903 .L64: - 648:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.c **** { - 904 .loc 1 648 0 - 905 0476 1C4B ldr r3, .L111 - 906 0478 1B68 ldr r3, [r3] - 907 047a 9B01 lsls r3, r3, #6 - 908 047c 06D5 bpl .L107 - 650:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.c **** { - 909 .loc 1 650 0 - ARM GAS /tmp/ccpZPcfy.s page 30 - - - 910 047e FFF7FEFF bl HAL_GetTick - 911 .LVL67: - 912 0482 401B subs r0, r0, r5 - 913 0484 0228 cmp r0, #2 - 914 0486 F6D9 bls .L64 - 652:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.c **** } - 915 .loc 1 652 0 - 916 0488 0320 movs r0, #3 - 917 048a 28E0 b .L8 - 918 .L107: - 657:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.c **** RCC_OscInitStruct->PLL.PREDIV, - 919 .loc 1 657 0 - 920 048c 164B ldr r3, .L111 - 921 048e DA6A ldr r2, [r3, #44] - 922 0490 0F21 movs r1, #15 - 923 0492 8A43 bics r2, r1 - 924 0494 216B ldr r1, [r4, #48] - 925 0496 0A43 orrs r2, r1 - 926 0498 DA62 str r2, [r3, #44] - 927 049a 5A68 ldr r2, [r3, #4] - 928 049c 1649 ldr r1, .L111+16 - 929 049e 0A40 ands r2, r1 - 930 04a0 E16A ldr r1, [r4, #44] - 931 04a2 A06A ldr r0, [r4, #40] - 932 04a4 0143 orrs r1, r0 - 933 04a6 0A43 orrs r2, r1 - 934 04a8 5A60 str r2, [r3, #4] - 661:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.c **** - 935 .loc 1 661 0 - 936 04aa 1968 ldr r1, [r3] - 937 04ac 8022 movs r2, #128 - 938 04ae 5204 lsls r2, r2, #17 - 939 04b0 0A43 orrs r2, r1 - 940 04b2 1A60 str r2, [r3] - 664:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.c **** - 941 .loc 1 664 0 - 942 04b4 FFF7FEFF bl HAL_GetTick - 943 .LVL68: - 944 04b8 0400 movs r4, r0 - 945 .LVL69: - 946 .L66: - 667:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.c **** { - 947 .loc 1 667 0 - 948 04ba 0B4B ldr r3, .L111 - 949 04bc 1B68 ldr r3, [r3] - 950 04be 9B01 lsls r3, r3, #6 - 951 04c0 06D4 bmi .L108 - 669:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.c **** { - 952 .loc 1 669 0 - 953 04c2 FFF7FEFF bl HAL_GetTick - 954 .LVL70: - 955 04c6 001B subs r0, r0, r4 - 956 04c8 0228 cmp r0, #2 - 957 04ca F6D9 bls .L66 - 671:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.c **** } - 958 .loc 1 671 0 - 959 04cc 0320 movs r0, #3 - ARM GAS /tmp/ccpZPcfy.s page 31 - - - 960 04ce 06E0 b .L8 - 961 .L108: - 689:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.c **** } - 690:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.c **** } - 691:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.c **** } - 692:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.c **** } - 693:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.c **** else - 694:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.c **** { - 695:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.c **** return HAL_ERROR; - 696:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.c **** } - 697:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.c **** } - 698:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.c **** - 699:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.c **** return HAL_OK; - 962 .loc 1 699 0 - 963 04d0 0020 movs r0, #0 - 964 04d2 04E0 b .L8 - 965 .L106: - 966 04d4 0020 movs r0, #0 - 967 04d6 02E0 b .L8 - 968 .LVL71: - 969 .L94: - 289:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.c **** } - 970 .loc 1 289 0 - 971 04d8 0120 movs r0, #1 - 972 .LVL72: - 973 04da 00E0 b .L8 - 974 .LVL73: - 975 .L87: - 976 .loc 1 699 0 - 977 04dc 0020 movs r0, #0 - 978 .LVL74: - 979 .L8: - 700:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.c **** } - 980 .loc 1 700 0 - 981 04de 02B0 add sp, sp, #8 - 982 @ sp needed - 983 04e0 70BD pop {r4, r5, r6, pc} - 984 .LVL75: - 985 .L88: - 695:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.c **** } - 986 .loc 1 695 0 - 987 04e2 0120 movs r0, #1 - 988 04e4 FBE7 b .L8 - 989 .L112: - 990 04e6 C046 .align 2 - 991 .L111: - 992 04e8 00100240 .word 1073876992 - 993 04ec FFFFFFEF .word -268435457 - 994 04f0 FFFFFEFF .word -65537 - 995 04f4 FFFFFFFE .word -16777217 - 996 04f8 FF7FC2FF .word -4030465 - 997 .cfi_endproc - 998 .LFE38: - 1000 .section .text.HAL_RCC_MCOConfig,"ax",%progbits - 1001 .align 1 - 1002 .global HAL_RCC_MCOConfig - 1003 .syntax unified - ARM GAS /tmp/ccpZPcfy.s page 32 - - - 1004 .code 16 - 1005 .thumb_func - 1006 .fpu softvfp - 1008 HAL_RCC_MCOConfig: - 1009 .LFB40: - 701:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.c **** - 702:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.c **** /** - 703:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.c **** * @brief Initializes the CPU, AHB and APB buses clocks according to the specified - 704:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.c **** * parameters in the RCC_ClkInitStruct. - 705:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.c **** * @param RCC_ClkInitStruct pointer to an RCC_OscInitTypeDef structure that - 706:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.c **** * contains the configuration information for the RCC peripheral. - 707:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.c **** * @param FLatency FLASH Latency - 708:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.c **** * The value of this parameter depend on device used within the same series - 709:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.c **** * @note The SystemCoreClock CMSIS variable is used to store System Clock Frequency - 710:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.c **** * and updated by @ref HAL_RCC_GetHCLKFreq() function called within this function - 711:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.c **** * - 712:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.c **** * @note The HSI is used (enabled by hardware) as system clock source after - 713:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.c **** * start-up from Reset, wake-up from STOP and STANDBY mode, or in case - 714:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.c **** * of failure of the HSE used directly or indirectly as system clock - 715:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.c **** * (if the Clock Security System CSS is enabled). - 716:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.c **** * - 717:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.c **** * @note A switch from one clock source to another occurs only if the target - 718:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.c **** * clock source is ready (clock stable after start-up delay or PLL locked). - 719:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.c **** * If a clock source which is not yet ready is selected, the switch will - 720:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.c **** * occur when the clock source will be ready. - 721:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.c **** * You can use @ref HAL_RCC_GetClockConfig() function to know which clock is - 722:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.c **** * currently used as system clock source. - 723:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.c **** * @retval HAL status - 724:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.c **** */ - 725:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.c **** HAL_StatusTypeDef HAL_RCC_ClockConfig(RCC_ClkInitTypeDef *RCC_ClkInitStruct, uint32_t FLatency) - 726:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.c **** { - 727:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.c **** uint32_t tickstart = 0U; - 728:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.c **** - 729:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.c **** /* Check the parameters */ - 730:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.c **** assert_param(RCC_ClkInitStruct != NULL); - 731:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.c **** assert_param(IS_RCC_CLOCKTYPE(RCC_ClkInitStruct->ClockType)); - 732:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.c **** assert_param(IS_FLASH_LATENCY(FLatency)); - 733:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.c **** - 734:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.c **** /* To correctly read data from FLASH memory, the number of wait states (LATENCY) - 735:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.c **** must be correctly programmed according to the frequency of the CPU clock - 736:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.c **** (HCLK) of the device. */ - 737:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.c **** - 738:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.c **** /* Increasing the number of wait states because of higher CPU frequency */ - 739:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.c **** if(FLatency > (FLASH->ACR & FLASH_ACR_LATENCY)) - 740:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.c **** { - 741:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.c **** /* Program the new number of wait states to the LATENCY bits in the FLASH_ACR register */ - 742:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.c **** __HAL_FLASH_SET_LATENCY(FLatency); - 743:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.c **** - 744:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.c **** /* Check that the new number of wait states is taken into account to access the Flash - 745:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.c **** memory by reading the FLASH_ACR register */ - 746:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.c **** if((FLASH->ACR & FLASH_ACR_LATENCY) != FLatency) - 747:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.c **** { - 748:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.c **** return HAL_ERROR; - 749:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.c **** } - 750:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.c **** } - 751:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.c **** - 752:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.c **** /*-------------------------- HCLK Configuration --------------------------*/ - ARM GAS /tmp/ccpZPcfy.s page 33 - - - 753:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.c **** if(((RCC_ClkInitStruct->ClockType) & RCC_CLOCKTYPE_HCLK) == RCC_CLOCKTYPE_HCLK) - 754:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.c **** { - 755:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.c **** assert_param(IS_RCC_HCLK(RCC_ClkInitStruct->AHBCLKDivider)); - 756:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.c **** MODIFY_REG(RCC->CFGR, RCC_CFGR_HPRE, RCC_ClkInitStruct->AHBCLKDivider); - 757:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.c **** } - 758:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.c **** - 759:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.c **** /*------------------------- SYSCLK Configuration ---------------------------*/ - 760:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.c **** if(((RCC_ClkInitStruct->ClockType) & RCC_CLOCKTYPE_SYSCLK) == RCC_CLOCKTYPE_SYSCLK) - 761:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.c **** { - 762:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.c **** assert_param(IS_RCC_SYSCLKSOURCE(RCC_ClkInitStruct->SYSCLKSource)); - 763:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.c **** - 764:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.c **** /* HSE is selected as System Clock Source */ - 765:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.c **** if(RCC_ClkInitStruct->SYSCLKSource == RCC_SYSCLKSOURCE_HSE) - 766:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.c **** { - 767:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.c **** /* Check the HSE ready flag */ - 768:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.c **** if(__HAL_RCC_GET_FLAG(RCC_FLAG_HSERDY) == RESET) - 769:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.c **** { - 770:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.c **** return HAL_ERROR; - 771:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.c **** } - 772:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.c **** } - 773:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.c **** /* PLL is selected as System Clock Source */ - 774:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.c **** else if(RCC_ClkInitStruct->SYSCLKSource == RCC_SYSCLKSOURCE_PLLCLK) - 775:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.c **** { - 776:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.c **** /* Check the PLL ready flag */ - 777:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.c **** if(__HAL_RCC_GET_FLAG(RCC_FLAG_PLLRDY) == RESET) - 778:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.c **** { - 779:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.c **** return HAL_ERROR; - 780:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.c **** } - 781:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.c **** } - 782:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.c **** #if defined(RCC_CFGR_SWS_HSI48) - 783:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.c **** /* HSI48 is selected as System Clock Source */ - 784:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.c **** else if(RCC_ClkInitStruct->SYSCLKSource == RCC_SYSCLKSOURCE_HSI48) - 785:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.c **** { - 786:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.c **** /* Check the HSI48 ready flag */ - 787:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.c **** if(__HAL_RCC_GET_FLAG(RCC_FLAG_HSI48RDY) == RESET) - 788:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.c **** { - 789:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.c **** return HAL_ERROR; - 790:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.c **** } - 791:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.c **** } - 792:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.c **** #endif /* RCC_CFGR_SWS_HSI48 */ - 793:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.c **** /* HSI is selected as System Clock Source */ - 794:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.c **** else - 795:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.c **** { - 796:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.c **** /* Check the HSI ready flag */ - 797:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.c **** if(__HAL_RCC_GET_FLAG(RCC_FLAG_HSIRDY) == RESET) - 798:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.c **** { - 799:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.c **** return HAL_ERROR; - 800:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.c **** } - 801:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.c **** } - 802:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.c **** __HAL_RCC_SYSCLK_CONFIG(RCC_ClkInitStruct->SYSCLKSource); - 803:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.c **** - 804:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.c **** /* Get Start Tick */ - 805:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.c **** tickstart = HAL_GetTick(); - 806:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.c **** - 807:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.c **** if(RCC_ClkInitStruct->SYSCLKSource == RCC_SYSCLKSOURCE_HSE) - 808:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.c **** { - 809:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.c **** while (__HAL_RCC_GET_SYSCLK_SOURCE() != RCC_SYSCLKSOURCE_STATUS_HSE) - ARM GAS /tmp/ccpZPcfy.s page 34 - - - 810:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.c **** { - 811:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.c **** if((HAL_GetTick() - tickstart ) > CLOCKSWITCH_TIMEOUT_VALUE) - 812:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.c **** { - 813:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.c **** return HAL_TIMEOUT; - 814:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.c **** } - 815:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.c **** } - 816:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.c **** } - 817:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.c **** else if(RCC_ClkInitStruct->SYSCLKSource == RCC_SYSCLKSOURCE_PLLCLK) - 818:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.c **** { - 819:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.c **** while (__HAL_RCC_GET_SYSCLK_SOURCE() != RCC_SYSCLKSOURCE_STATUS_PLLCLK) - 820:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.c **** { - 821:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.c **** if((HAL_GetTick() - tickstart ) > CLOCKSWITCH_TIMEOUT_VALUE) - 822:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.c **** { - 823:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.c **** return HAL_TIMEOUT; - 824:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.c **** } - 825:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.c **** } - 826:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.c **** } - 827:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.c **** #if defined(RCC_CFGR_SWS_HSI48) - 828:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.c **** else if(RCC_ClkInitStruct->SYSCLKSource == RCC_SYSCLKSOURCE_HSI48) - 829:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.c **** { - 830:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.c **** while (__HAL_RCC_GET_SYSCLK_SOURCE() != RCC_SYSCLKSOURCE_STATUS_HSI48) - 831:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.c **** { - 832:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.c **** if((HAL_GetTick() - tickstart) > CLOCKSWITCH_TIMEOUT_VALUE) - 833:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.c **** { - 834:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.c **** return HAL_TIMEOUT; - 835:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.c **** } - 836:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.c **** } - 837:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.c **** } - 838:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.c **** #endif /* RCC_CFGR_SWS_HSI48 */ - 839:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.c **** else - 840:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.c **** { - 841:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.c **** while (__HAL_RCC_GET_SYSCLK_SOURCE() != RCC_SYSCLKSOURCE_STATUS_HSI) - 842:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.c **** { - 843:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.c **** if((HAL_GetTick() - tickstart ) > CLOCKSWITCH_TIMEOUT_VALUE) - 844:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.c **** { - 845:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.c **** return HAL_TIMEOUT; - 846:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.c **** } - 847:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.c **** } - 848:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.c **** } - 849:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.c **** } - 850:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.c **** /* Decreasing the number of wait states because of lower CPU frequency */ - 851:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.c **** if(FLatency < (FLASH->ACR & FLASH_ACR_LATENCY)) - 852:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.c **** { - 853:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.c **** /* Program the new number of wait states to the LATENCY bits in the FLASH_ACR register */ - 854:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.c **** __HAL_FLASH_SET_LATENCY(FLatency); - 855:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.c **** - 856:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.c **** /* Check that the new number of wait states is taken into account to access the Flash - 857:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.c **** memory by reading the FLASH_ACR register */ - 858:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.c **** if((FLASH->ACR & FLASH_ACR_LATENCY) != FLatency) - 859:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.c **** { - 860:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.c **** return HAL_ERROR; - 861:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.c **** } - 862:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.c **** } - 863:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.c **** - 864:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.c **** /*-------------------------- PCLK1 Configuration ---------------------------*/ - 865:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.c **** if(((RCC_ClkInitStruct->ClockType) & RCC_CLOCKTYPE_PCLK1) == RCC_CLOCKTYPE_PCLK1) - 866:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.c **** { - ARM GAS /tmp/ccpZPcfy.s page 35 - - - 867:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.c **** assert_param(IS_RCC_PCLK(RCC_ClkInitStruct->APB1CLKDivider)); - 868:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.c **** MODIFY_REG(RCC->CFGR, RCC_CFGR_PPRE, RCC_ClkInitStruct->APB1CLKDivider); - 869:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.c **** } - 870:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.c **** - 871:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.c **** /* Update the SystemCoreClock global variable */ - 872:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.c **** SystemCoreClock = HAL_RCC_GetSysClockFreq() >> AHBPrescTable[(RCC->CFGR & RCC_CFGR_HPRE)>> RCC_CF - 873:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.c **** - 874:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.c **** /* Configure the source of time base considering new system clocks settings*/ - 875:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.c **** HAL_InitTick (TICK_INT_PRIORITY); - 876:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.c **** - 877:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.c **** return HAL_OK; - 878:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.c **** } - 879:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.c **** - 880:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.c **** /** - 881:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.c **** * @} - 882:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.c **** */ - 883:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.c **** - 884:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.c **** /** @defgroup RCC_Exported_Functions_Group2 Peripheral Control functions - 885:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.c **** * @brief RCC clocks control functions - 886:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.c **** * - 887:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.c **** @verbatim - 888:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.c **** =============================================================================== - 889:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.c **** ##### Peripheral Control functions ##### - 890:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.c **** =============================================================================== - 891:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.c **** [..] - 892:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.c **** This subsection provides a set of functions allowing to control the RCC Clocks - 893:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.c **** frequencies. - 894:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.c **** - 895:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.c **** @endverbatim - 896:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.c **** * @{ - 897:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.c **** */ - 898:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.c **** - 899:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.c **** #if defined(RCC_CFGR_MCOPRE) - 900:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.c **** /** - 901:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.c **** * @brief Selects the clock source to output on MCO pin. - 902:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.c **** * @note MCO pin should be configured in alternate function mode. - 903:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.c **** * @param RCC_MCOx specifies the output direction for the clock source. - 904:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.c **** * This parameter can be one of the following values: - 905:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.c **** * @arg @ref RCC_MCO1 Clock source to output on MCO1 pin(PA8). - 906:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.c **** * @param RCC_MCOSource specifies the clock source to output. - 907:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.c **** * This parameter can be one of the following values: - 908:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.c **** * @arg @ref RCC_MCO1SOURCE_NOCLOCK No clock selected - 909:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.c **** * @arg @ref RCC_MCO1SOURCE_SYSCLK System Clock selected as MCO clock - 910:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.c **** * @arg @ref RCC_MCO1SOURCE_HSI HSI selected as MCO clock - 911:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.c **** * @arg @ref RCC_MCO1SOURCE_HSE HSE selected as MCO clock - 912:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.c **** * @arg @ref RCC_MCO1SOURCE_LSI LSI selected as MCO clock - 913:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.c **** * @arg @ref RCC_MCO1SOURCE_LSE LSE selected as MCO clock - 914:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.c **** * @arg @ref RCC_MCO1SOURCE_HSI14 HSI14 selected as MCO clock - 915:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.c **** @if STM32F042x6 - 916:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.c **** * @arg @ref RCC_MCO1SOURCE_HSI48 HSI48 selected as MCO clock - 917:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.c **** * @arg @ref RCC_MCO1SOURCE_PLLCLK PLLCLK selected as MCO clock - 918:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.c **** @elseif STM32F048xx - 919:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.c **** * @arg @ref RCC_MCO1SOURCE_HSI48 HSI48 selected as MCO clock - 920:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.c **** * @arg @ref RCC_MCO1SOURCE_PLLCLK PLLCLK selected as MCO clock - 921:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.c **** @elseif STM32F071xB - 922:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.c **** * @arg @ref RCC_MCO1SOURCE_HSI48 HSI48 selected as MCO clock - 923:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.c **** * @arg @ref RCC_MCO1SOURCE_PLLCLK PLLCLK selected as MCO clock - ARM GAS /tmp/ccpZPcfy.s page 36 - - - 924:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.c **** @elseif STM32F072xB - 925:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.c **** * @arg @ref RCC_MCO1SOURCE_HSI48 HSI48 selected as MCO clock - 926:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.c **** * @arg @ref RCC_MCO1SOURCE_PLLCLK PLLCLK selected as MCO clock - 927:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.c **** @elseif STM32F078xx - 928:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.c **** * @arg @ref RCC_MCO1SOURCE_HSI48 HSI48 selected as MCO clock - 929:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.c **** * @arg @ref RCC_MCO1SOURCE_PLLCLK PLLCLK selected as MCO clock - 930:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.c **** @elseif STM32F091xC - 931:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.c **** * @arg @ref RCC_MCO1SOURCE_HSI48 HSI48 selected as MCO clock - 932:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.c **** * @arg @ref RCC_MCO1SOURCE_PLLCLK PLLCLK selected as MCO clock - 933:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.c **** @elseif STM32F098xx - 934:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.c **** * @arg @ref RCC_MCO1SOURCE_HSI48 HSI48 selected as MCO clock - 935:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.c **** * @arg @ref RCC_MCO1SOURCE_PLLCLK PLLCLK selected as MCO clock - 936:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.c **** @elif STM32F030x6 - 937:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.c **** * @arg @ref RCC_MCO1SOURCE_PLLCLK PLLCLK selected as MCO clock - 938:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.c **** @elif STM32F030xC - 939:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.c **** * @arg @ref RCC_MCO1SOURCE_PLLCLK PLLCLK selected as MCO clock - 940:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.c **** @elif STM32F031x6 - 941:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.c **** * @arg @ref RCC_MCO1SOURCE_PLLCLK PLLCLK selected as MCO clock - 942:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.c **** @elif STM32F038xx - 943:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.c **** * @arg @ref RCC_MCO1SOURCE_PLLCLK PLLCLK selected as MCO clock - 944:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.c **** @elif STM32F070x6 - 945:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.c **** * @arg @ref RCC_MCO1SOURCE_PLLCLK PLLCLK selected as MCO clock - 946:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.c **** @elif STM32F070xB - 947:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.c **** * @arg @ref RCC_MCO1SOURCE_PLLCLK PLLCLK selected as MCO clock - 948:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.c **** @endif - 949:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.c **** * @arg @ref RCC_MCO1SOURCE_PLLCLK_DIV2 PLLCLK Divided by 2 selected as MCO clock - 950:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.c **** * @param RCC_MCODiv specifies the MCO DIV. - 951:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.c **** * This parameter can be one of the following values: - 952:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.c **** * @arg @ref RCC_MCODIV_1 no division applied to MCO clock - 953:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.c **** * @arg @ref RCC_MCODIV_2 division by 2 applied to MCO clock - 954:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.c **** * @arg @ref RCC_MCODIV_4 division by 4 applied to MCO clock - 955:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.c **** * @arg @ref RCC_MCODIV_8 division by 8 applied to MCO clock - 956:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.c **** * @arg @ref RCC_MCODIV_16 division by 16 applied to MCO clock - 957:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.c **** * @arg @ref RCC_MCODIV_32 division by 32 applied to MCO clock - 958:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.c **** * @arg @ref RCC_MCODIV_64 division by 64 applied to MCO clock - 959:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.c **** * @arg @ref RCC_MCODIV_128 division by 128 applied to MCO clock - 960:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.c **** * @retval None - 961:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.c **** */ - 962:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.c **** #else - 963:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.c **** /** - 964:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.c **** * @brief Selects the clock source to output on MCO pin. - 965:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.c **** * @note MCO pin should be configured in alternate function mode. - 966:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.c **** * @param RCC_MCOx specifies the output direction for the clock source. - 967:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.c **** * This parameter can be one of the following values: - 968:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.c **** * @arg @ref RCC_MCO1 Clock source to output on MCO1 pin(PA8). - 969:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.c **** * @param RCC_MCOSource specifies the clock source to output. - 970:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.c **** * This parameter can be one of the following values: - 971:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.c **** * @arg @ref RCC_MCO1SOURCE_NOCLOCK No clock selected as MCO clock - 972:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.c **** * @arg @ref RCC_MCO1SOURCE_SYSCLK System clock selected as MCO clock - 973:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.c **** * @arg @ref RCC_MCO1SOURCE_HSI HSI selected as MCO clock - 974:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.c **** * @arg @ref RCC_MCO1SOURCE_HSE HSE selected as MCO clock - 975:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.c **** * @arg @ref RCC_MCO1SOURCE_LSI LSI selected as MCO clock - 976:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.c **** * @arg @ref RCC_MCO1SOURCE_LSE LSE selected as MCO clock - 977:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.c **** * @arg @ref RCC_MCO1SOURCE_HSI14 HSI14 selected as MCO clock - 978:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.c **** * @arg @ref RCC_MCO1SOURCE_PLLCLK_DIV2 PLLCLK Divided by 2 selected as MCO clock - 979:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.c **** * @param RCC_MCODiv specifies the MCO DIV. - 980:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.c **** * This parameter can be one of the following values: - ARM GAS /tmp/ccpZPcfy.s page 37 - - - 981:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.c **** * @arg @ref RCC_MCODIV_1 no division applied to MCO clock - 982:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.c **** * @retval None - 983:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.c **** */ - 984:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.c **** #endif - 985:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.c **** void HAL_RCC_MCOConfig(uint32_t RCC_MCOx, uint32_t RCC_MCOSource, uint32_t RCC_MCODiv) - 986:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.c **** { - 1010 .loc 1 986 0 - 1011 .cfi_startproc - 1012 @ args = 0, pretend = 0, frame = 24 - 1013 @ frame_needed = 0, uses_anonymous_args = 0 - 1014 .LVL76: - 1015 0000 70B5 push {r4, r5, r6, lr} - 1016 .LCFI2: - 1017 .cfi_def_cfa_offset 16 - 1018 .cfi_offset 4, -16 - 1019 .cfi_offset 5, -12 - 1020 .cfi_offset 6, -8 - 1021 .cfi_offset 14, -4 - 1022 0002 86B0 sub sp, sp, #24 - 1023 .LCFI3: - 1024 .cfi_def_cfa_offset 40 - 1025 0004 0D00 movs r5, r1 - 1026 0006 1600 movs r6, r2 - 987:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.c **** GPIO_InitTypeDef gpio; - 988:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.c **** - 989:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.c **** /* Check the parameters */ - 990:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.c **** assert_param(IS_RCC_MCO(RCC_MCOx)); - 991:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.c **** assert_param(IS_RCC_MCODIV(RCC_MCODiv)); - 992:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.c **** assert_param(IS_RCC_MCO1SOURCE(RCC_MCOSource)); - 993:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.c **** - 994:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.c **** /* Configure the MCO1 pin in alternate function mode */ - 995:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.c **** gpio.Mode = GPIO_MODE_AF_PP; - 1027 .loc 1 995 0 - 1028 0008 0223 movs r3, #2 - 1029 000a 0293 str r3, [sp, #8] - 996:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.c **** gpio.Speed = GPIO_SPEED_FREQ_HIGH; - 1030 .loc 1 996 0 - 1031 000c 0133 adds r3, r3, #1 - 1032 000e 0493 str r3, [sp, #16] - 997:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.c **** gpio.Pull = GPIO_NOPULL; - 1033 .loc 1 997 0 - 1034 0010 0023 movs r3, #0 - 1035 0012 0393 str r3, [sp, #12] - 998:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.c **** gpio.Pin = MCO1_PIN; - 1036 .loc 1 998 0 - 1037 0014 8022 movs r2, #128 - 1038 .LVL77: - 1039 0016 5200 lsls r2, r2, #1 - 1040 0018 0192 str r2, [sp, #4] - 999:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.c **** gpio.Alternate = GPIO_AF0_MCO; - 1041 .loc 1 999 0 - 1042 001a 0593 str r3, [sp, #20] - 1043 .LBB5: -1000:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.c **** -1001:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.c **** /* MCO1 Clock Enable */ -1002:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.c **** MCO1_CLK_ENABLE(); - 1044 .loc 1 1002 0 - ARM GAS /tmp/ccpZPcfy.s page 38 - - - 1045 001c 0B4C ldr r4, .L114 - 1046 001e 6269 ldr r2, [r4, #20] - 1047 0020 8021 movs r1, #128 - 1048 .LVL78: - 1049 0022 8902 lsls r1, r1, #10 - 1050 0024 0A43 orrs r2, r1 - 1051 0026 6261 str r2, [r4, #20] - 1052 0028 6369 ldr r3, [r4, #20] - 1053 002a 0B40 ands r3, r1 - 1054 002c 0093 str r3, [sp] - 1055 002e 009B ldr r3, [sp] - 1056 .LBE5: -1003:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.c **** -1004:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.c **** HAL_GPIO_Init(MCO1_GPIO_PORT, &gpio); - 1057 .loc 1 1004 0 - 1058 0030 9020 movs r0, #144 - 1059 .LVL79: - 1060 0032 01A9 add r1, sp, #4 - 1061 0034 C005 lsls r0, r0, #23 - 1062 0036 FFF7FEFF bl HAL_GPIO_Init - 1063 .LVL80: -1005:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.c **** -1006:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.c **** /* Configure the MCO clock source */ -1007:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.c **** __HAL_RCC_MCO1_CONFIG(RCC_MCOSource, RCC_MCODiv); - 1064 .loc 1 1007 0 - 1065 003a 6268 ldr r2, [r4, #4] - 1066 003c 044B ldr r3, .L114+4 - 1067 003e 1A40 ands r2, r3 - 1068 0040 3543 orrs r5, r6 - 1069 .LVL81: - 1070 0042 2A43 orrs r2, r5 - 1071 0044 6260 str r2, [r4, #4] -1008:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.c **** } - 1072 .loc 1 1008 0 - 1073 0046 06B0 add sp, sp, #24 - 1074 @ sp needed - 1075 .LVL82: - 1076 0048 70BD pop {r4, r5, r6, pc} - 1077 .L115: - 1078 004a C046 .align 2 - 1079 .L114: - 1080 004c 00100240 .word 1073876992 - 1081 0050 FFFFFF80 .word -2130706433 - 1082 .cfi_endproc - 1083 .LFE40: - 1085 .section .text.HAL_RCC_EnableCSS,"ax",%progbits - 1086 .align 1 - 1087 .global HAL_RCC_EnableCSS - 1088 .syntax unified - 1089 .code 16 - 1090 .thumb_func - 1091 .fpu softvfp - 1093 HAL_RCC_EnableCSS: - 1094 .LFB41: -1009:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.c **** -1010:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.c **** /** -1011:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.c **** * @brief Enables the Clock Security System. - ARM GAS /tmp/ccpZPcfy.s page 39 - - -1012:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.c **** * @note If a failure is detected on the HSE oscillator clock, this oscillator -1013:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.c **** * is automatically disabled and an interrupt is generated to inform the -1014:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.c **** * software about the failure (Clock Security System Interrupt, CSSI), -1015:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.c **** * allowing the MCU to perform rescue operations. The CSSI is linked to -1016:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.c **** * the Cortex-M0 NMI (Non-Maskable Interrupt) exception vector. -1017:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.c **** * @retval None -1018:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.c **** */ -1019:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.c **** void HAL_RCC_EnableCSS(void) -1020:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.c **** { - 1095 .loc 1 1020 0 - 1096 .cfi_startproc - 1097 @ args = 0, pretend = 0, frame = 0 - 1098 @ frame_needed = 0, uses_anonymous_args = 0 - 1099 @ link register save eliminated. -1021:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.c **** SET_BIT(RCC->CR, RCC_CR_CSSON) ; - 1100 .loc 1 1021 0 - 1101 0000 034A ldr r2, .L117 - 1102 0002 1168 ldr r1, [r2] - 1103 0004 8023 movs r3, #128 - 1104 0006 1B03 lsls r3, r3, #12 - 1105 0008 0B43 orrs r3, r1 - 1106 000a 1360 str r3, [r2] -1022:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.c **** } - 1107 .loc 1 1022 0 - 1108 @ sp needed - 1109 000c 7047 bx lr - 1110 .L118: - 1111 000e C046 .align 2 - 1112 .L117: - 1113 0010 00100240 .word 1073876992 - 1114 .cfi_endproc - 1115 .LFE41: - 1117 .section .text.HAL_RCC_DisableCSS,"ax",%progbits - 1118 .align 1 - 1119 .global HAL_RCC_DisableCSS - 1120 .syntax unified - 1121 .code 16 - 1122 .thumb_func - 1123 .fpu softvfp - 1125 HAL_RCC_DisableCSS: - 1126 .LFB42: -1023:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.c **** -1024:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.c **** /** -1025:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.c **** * @brief Disables the Clock Security System. -1026:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.c **** * @retval None -1027:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.c **** */ -1028:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.c **** void HAL_RCC_DisableCSS(void) -1029:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.c **** { - 1127 .loc 1 1029 0 - 1128 .cfi_startproc - 1129 @ args = 0, pretend = 0, frame = 0 - 1130 @ frame_needed = 0, uses_anonymous_args = 0 - 1131 @ link register save eliminated. -1030:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.c **** CLEAR_BIT(RCC->CR, RCC_CR_CSSON) ; - 1132 .loc 1 1030 0 - 1133 0000 024A ldr r2, .L120 - 1134 0002 1368 ldr r3, [r2] - ARM GAS /tmp/ccpZPcfy.s page 40 - - - 1135 0004 0249 ldr r1, .L120+4 - 1136 0006 0B40 ands r3, r1 - 1137 0008 1360 str r3, [r2] -1031:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.c **** } - 1138 .loc 1 1031 0 - 1139 @ sp needed - 1140 000a 7047 bx lr - 1141 .L121: - 1142 .align 2 - 1143 .L120: - 1144 000c 00100240 .word 1073876992 - 1145 0010 FFFFF7FF .word -524289 - 1146 .cfi_endproc - 1147 .LFE42: - 1149 .global __aeabi_uidiv - 1150 .section .text.HAL_RCC_GetSysClockFreq,"ax",%progbits - 1151 .align 1 - 1152 .global HAL_RCC_GetSysClockFreq - 1153 .syntax unified - 1154 .code 16 - 1155 .thumb_func - 1156 .fpu softvfp - 1158 HAL_RCC_GetSysClockFreq: - 1159 .LFB43: -1032:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.c **** -1033:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.c **** /** -1034:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.c **** * @brief Returns the SYSCLK frequency -1035:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.c **** * @note The system frequency computed by this function is not the real -1036:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.c **** * frequency in the chip. It is calculated based on the predefined -1037:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.c **** * constant and the selected clock source: -1038:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.c **** * @note If SYSCLK source is HSI, function returns values based on HSI_VALUE(*) -1039:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.c **** * @note If SYSCLK source is HSE, function returns a value based on HSE_VALUE -1040:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.c **** * divided by PREDIV factor(**) -1041:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.c **** * @note If SYSCLK source is PLL, function returns a value based on HSE_VALUE -1042:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.c **** * divided by PREDIV factor(**) or depending on STM32F0xxxx devices either a value based -1043:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.c **** * on HSI_VALUE divided by 2 or HSI_VALUE divided by PREDIV factor(*) multiplied by the -1044:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.c **** * PLL factor. -1045:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.c **** * @note (*) HSI_VALUE is a constant defined in stm32f0xx_hal_conf.h file (default value -1046:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.c **** * 8 MHz) but the real value may vary depending on the variations -1047:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.c **** * in voltage and temperature. -1048:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.c **** * @note (**) HSE_VALUE is a constant defined in stm32f0xx_hal_conf.h file (default value -1049:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.c **** * 8 MHz), user has to ensure that HSE_VALUE is same as the real -1050:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.c **** * frequency of the crystal used. Otherwise, this function may -1051:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.c **** * have wrong result. -1052:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.c **** * -1053:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.c **** * @note The result of this function could be not correct when using fractional -1054:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.c **** * value for HSE crystal. -1055:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.c **** * -1056:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.c **** * @note This function can be used by the user application to compute the -1057:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.c **** * baud-rate for the communication peripherals or configure other parameters. -1058:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.c **** * -1059:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.c **** * @note Each time SYSCLK changes, this function must be called to update the -1060:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.c **** * right SYSCLK value. Otherwise, any configuration based on this function will be incorre -1061:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.c **** * -1062:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.c **** * @retval SYSCLK frequency -1063:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.c **** */ -1064:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.c **** uint32_t HAL_RCC_GetSysClockFreq(void) - ARM GAS /tmp/ccpZPcfy.s page 41 - - -1065:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.c **** { - 1160 .loc 1 1065 0 - 1161 .cfi_startproc - 1162 @ args = 0, pretend = 0, frame = 32 - 1163 @ frame_needed = 0, uses_anonymous_args = 0 - 1164 0000 30B5 push {r4, r5, lr} - 1165 .LCFI4: - 1166 .cfi_def_cfa_offset 12 - 1167 .cfi_offset 4, -12 - 1168 .cfi_offset 5, -8 - 1169 .cfi_offset 14, -4 - 1170 0002 89B0 sub sp, sp, #36 - 1171 .LCFI5: - 1172 .cfi_def_cfa_offset 48 -1066:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.c **** const uint8_t aPLLMULFactorTable[16] = { 2U, 3U, 4U, 5U, 6U, 7U, 8U, 9U, - 1173 .loc 1 1066 0 - 1174 0004 04AA add r2, sp, #16 - 1175 0006 1F4B ldr r3, .L131 - 1176 0008 1800 movs r0, r3 - 1177 000a 32C8 ldmia r0!, {r1, r4, r5} - 1178 000c 32C2 stmia r2!, {r1, r4, r5} - 1179 000e 1100 movs r1, r2 - 1180 0010 0268 ldr r2, [r0] - 1181 0012 0A60 str r2, [r1] -1067:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.c **** 10U, 11U, 12U, 13U, 14U, 15U, 16U, 16U}; -1068:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.c **** const uint8_t aPredivFactorTable[16] = { 1U, 2U, 3U, 4U, 5U, 6U, 7U, 8U, - 1182 .loc 1 1068 0 - 1183 0014 6A46 mov r2, sp - 1184 0016 1033 adds r3, r3, #16 - 1185 0018 13CB ldmia r3!, {r0, r1, r4} - 1186 001a 13C2 stmia r2!, {r0, r1, r4} - 1187 001c 1B68 ldr r3, [r3] - 1188 001e 1360 str r3, [r2] - 1189 .LVL83: -1069:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.c **** 9U,10U, 11U, 12U, 13U, 14U, 15U, 16U}; -1070:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.c **** -1071:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.c **** uint32_t tmpreg = 0U, prediv = 0U, pllclk = 0U, pllmul = 0U; -1072:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.c **** uint32_t sysclockfreq = 0U; -1073:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.c **** -1074:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.c **** tmpreg = RCC->CFGR; - 1190 .loc 1 1074 0 - 1191 0020 194B ldr r3, .L131+4 - 1192 0022 5A68 ldr r2, [r3, #4] - 1193 .LVL84: -1075:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.c **** -1076:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.c **** /* Get SYSCLK source -------------------------------------------------------*/ -1077:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.c **** switch (tmpreg & RCC_CFGR_SWS) - 1194 .loc 1 1077 0 - 1195 0024 0C23 movs r3, #12 - 1196 0026 1340 ands r3, r2 - 1197 0028 082B cmp r3, #8 - 1198 002a 04D0 beq .L124 - 1199 002c 0C2B cmp r3, #12 - 1200 002e 26D0 beq .L128 -1078:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.c **** { -1079:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.c **** case RCC_SYSCLKSOURCE_STATUS_HSE: /* HSE used as system clock */ -1080:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.c **** { - ARM GAS /tmp/ccpZPcfy.s page 42 - - -1081:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.c **** sysclockfreq = HSE_VALUE; - 1201 .loc 1 1081 0 - 1202 0030 1648 ldr r0, .L131+8 - 1203 .LVL85: - 1204 .L122: -1082:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.c **** break; -1083:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.c **** } -1084:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.c **** case RCC_SYSCLKSOURCE_STATUS_PLLCLK: /* PLL used as system clock */ -1085:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.c **** { -1086:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.c **** pllmul = aPLLMULFactorTable[(uint32_t)(tmpreg & RCC_CFGR_PLLMUL) >> RCC_CFGR_PLLMUL_BITNUMBER -1087:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.c **** prediv = aPredivFactorTable[(uint32_t)(RCC->CFGR2 & RCC_CFGR2_PREDIV) >> RCC_CFGR2_PREDIV_BIT -1088:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.c **** if ((tmpreg & RCC_CFGR_PLLSRC) == RCC_PLLSOURCE_HSE) -1089:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.c **** { -1090:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.c **** /* HSE used as PLL clock source : PLLCLK = HSE/PREDIV * PLLMUL */ -1091:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.c **** pllclk = (HSE_VALUE / prediv) * pllmul; -1092:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.c **** } -1093:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.c **** #if defined(RCC_CFGR_PLLSRC_HSI48_PREDIV) -1094:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.c **** else if ((tmpreg & RCC_CFGR_PLLSRC) == RCC_PLLSOURCE_HSI48) -1095:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.c **** { -1096:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.c **** /* HSI48 used as PLL clock source : PLLCLK = HSI48/PREDIV * PLLMUL */ -1097:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.c **** pllclk = (HSI48_VALUE / prediv) * pllmul; -1098:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.c **** } -1099:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.c **** #endif /* RCC_CFGR_PLLSRC_HSI48_PREDIV */ -1100:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.c **** else -1101:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.c **** { -1102:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.c **** #if (defined(STM32F042x6) || defined(STM32F048xx) || defined(STM32F070x6) || defined(STM32F071xB) -1103:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.c **** /* HSI used as PLL clock source : PLLCLK = HSI/PREDIV * PLLMUL */ -1104:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.c **** pllclk = (HSI_VALUE / prediv) * pllmul; -1105:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.c **** #else -1106:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.c **** /* HSI used as PLL clock source : PLLCLK = HSI/2 * PLLMUL */ -1107:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.c **** pllclk = (uint32_t)((HSI_VALUE >> 1U) * pllmul); -1108:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.c **** #endif -1109:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.c **** } -1110:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.c **** sysclockfreq = pllclk; -1111:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.c **** break; -1112:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.c **** } -1113:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.c **** #if defined(RCC_CFGR_SWS_HSI48) -1114:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.c **** case RCC_SYSCLKSOURCE_STATUS_HSI48: /* HSI48 used as system clock source */ -1115:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.c **** { -1116:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.c **** sysclockfreq = HSI48_VALUE; -1117:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.c **** break; -1118:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.c **** } -1119:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.c **** #endif /* RCC_CFGR_SWS_HSI48 */ -1120:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.c **** case RCC_SYSCLKSOURCE_STATUS_HSI: /* HSI used as system clock source */ -1121:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.c **** default: /* HSI used as system clock */ -1122:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.c **** { -1123:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.c **** sysclockfreq = HSI_VALUE; -1124:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.c **** break; -1125:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.c **** } -1126:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.c **** } -1127:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.c **** return sysclockfreq; -1128:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.c **** } - 1205 .loc 1 1128 0 - 1206 0032 09B0 add sp, sp, #36 - 1207 @ sp needed - 1208 0034 30BD pop {r4, r5, pc} - 1209 .LVL86: - ARM GAS /tmp/ccpZPcfy.s page 43 - - - 1210 .L124: -1086:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.c **** prediv = aPredivFactorTable[(uint32_t)(RCC->CFGR2 & RCC_CFGR2_PREDIV) >> RCC_CFGR2_PREDIV_BIT - 1211 .loc 1 1086 0 - 1212 0036 910C lsrs r1, r2, #18 - 1213 0038 0F23 movs r3, #15 - 1214 003a 1940 ands r1, r3 - 1215 003c 04A8 add r0, sp, #16 - 1216 003e 445C ldrb r4, [r0, r1] - 1217 .LVL87: -1087:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.c **** if ((tmpreg & RCC_CFGR_PLLSRC) == RCC_PLLSOURCE_HSE) - 1218 .loc 1 1087 0 - 1219 0040 1149 ldr r1, .L131+4 - 1220 0042 C96A ldr r1, [r1, #44] - 1221 0044 0B40 ands r3, r1 - 1222 0046 6946 mov r1, sp - 1223 0048 C95C ldrb r1, [r1, r3] - 1224 .LVL88: -1088:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.c **** { - 1225 .loc 1 1088 0 - 1226 004a C023 movs r3, #192 - 1227 004c 5B02 lsls r3, r3, #9 - 1228 004e 1A40 ands r2, r3 - 1229 .LVL89: - 1230 0050 8023 movs r3, #128 - 1231 0052 5B02 lsls r3, r3, #9 - 1232 0054 9A42 cmp r2, r3 - 1233 0056 08D0 beq .L129 -1094:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.c **** { - 1234 .loc 1 1094 0 - 1235 0058 C023 movs r3, #192 - 1236 005a 5B02 lsls r3, r3, #9 - 1237 005c 9A42 cmp r2, r3 - 1238 005e 09D0 beq .L130 -1104:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.c **** #else - 1239 .loc 1 1104 0 - 1240 0060 0A48 ldr r0, .L131+8 - 1241 0062 FFF7FEFF bl __aeabi_uidiv - 1242 .LVL90: - 1243 0066 6043 muls r0, r4 - 1244 .LVL91: - 1245 0068 E3E7 b .L122 - 1246 .LVL92: - 1247 .L129: -1091:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.c **** } - 1248 .loc 1 1091 0 - 1249 006a 0848 ldr r0, .L131+8 - 1250 006c FFF7FEFF bl __aeabi_uidiv - 1251 .LVL93: - 1252 0070 6043 muls r0, r4 - 1253 .LVL94: - 1254 0072 DEE7 b .L122 - 1255 .LVL95: - 1256 .L130: -1097:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.c **** } - 1257 .loc 1 1097 0 - 1258 0074 0648 ldr r0, .L131+12 - 1259 0076 FFF7FEFF bl __aeabi_uidiv - ARM GAS /tmp/ccpZPcfy.s page 44 - - - 1260 .LVL96: - 1261 007a 6043 muls r0, r4 - 1262 .LVL97: - 1263 007c D9E7 b .L122 - 1264 .LVL98: - 1265 .L128: -1116:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.c **** break; - 1266 .loc 1 1116 0 - 1267 007e 0448 ldr r0, .L131+12 - 1268 .LVL99: -1127:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.c **** } - 1269 .loc 1 1127 0 - 1270 0080 D7E7 b .L122 - 1271 .L132: - 1272 0082 C046 .align 2 - 1273 .L131: - 1274 0084 00000000 .word .LANCHOR0 - 1275 0088 00100240 .word 1073876992 - 1276 008c 00127A00 .word 8000000 - 1277 0090 006CDC02 .word 48000000 - 1278 .cfi_endproc - 1279 .LFE43: - 1281 .section .text.HAL_RCC_ClockConfig,"ax",%progbits - 1282 .align 1 - 1283 .global HAL_RCC_ClockConfig - 1284 .syntax unified - 1285 .code 16 - 1286 .thumb_func - 1287 .fpu softvfp - 1289 HAL_RCC_ClockConfig: - 1290 .LFB39: - 726:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.c **** uint32_t tickstart = 0U; - 1291 .loc 1 726 0 - 1292 .cfi_startproc - 1293 @ args = 0, pretend = 0, frame = 0 - 1294 @ frame_needed = 0, uses_anonymous_args = 0 - 1295 .LVL100: - 1296 0000 70B5 push {r4, r5, r6, lr} - 1297 .LCFI6: - 1298 .cfi_def_cfa_offset 16 - 1299 .cfi_offset 4, -16 - 1300 .cfi_offset 5, -12 - 1301 .cfi_offset 6, -8 - 1302 .cfi_offset 14, -4 - 1303 0002 0500 movs r5, r0 - 1304 0004 0C00 movs r4, r1 - 1305 .LVL101: - 739:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.c **** { - 1306 .loc 1 739 0 - 1307 0006 594B ldr r3, .L170 - 1308 0008 1A68 ldr r2, [r3] - 1309 000a 0123 movs r3, #1 - 1310 000c 1340 ands r3, r2 - 1311 000e 8B42 cmp r3, r1 - 1312 0010 0BD2 bcs .L134 - 742:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.c **** - 1313 .loc 1 742 0 - ARM GAS /tmp/ccpZPcfy.s page 45 - - - 1314 0012 5649 ldr r1, .L170 - 1315 .LVL102: - 1316 0014 0B68 ldr r3, [r1] - 1317 0016 0122 movs r2, #1 - 1318 0018 9343 bics r3, r2 - 1319 001a 2343 orrs r3, r4 - 1320 001c 0B60 str r3, [r1] - 746:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.c **** { - 1321 .loc 1 746 0 - 1322 001e 0B68 ldr r3, [r1] - 1323 0020 1A40 ands r2, r3 - 1324 0022 A242 cmp r2, r4 - 1325 0024 01D0 beq .L134 - 748:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.c **** } - 1326 .loc 1 748 0 - 1327 0026 0120 movs r0, #1 - 1328 .LVL103: - 1329 .L135: - 878:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.c **** - 1330 .loc 1 878 0 - 1331 @ sp needed - 1332 .LVL104: - 1333 .LVL105: - 1334 0028 70BD pop {r4, r5, r6, pc} - 1335 .LVL106: - 1336 .L134: - 753:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.c **** { - 1337 .loc 1 753 0 - 1338 002a 2B68 ldr r3, [r5] - 1339 002c 9B07 lsls r3, r3, #30 - 1340 002e 06D5 bpl .L136 - 756:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.c **** } - 1341 .loc 1 756 0 - 1342 0030 4F4A ldr r2, .L170+4 - 1343 0032 5368 ldr r3, [r2, #4] - 1344 0034 F021 movs r1, #240 - 1345 0036 8B43 bics r3, r1 - 1346 0038 A968 ldr r1, [r5, #8] - 1347 003a 0B43 orrs r3, r1 - 1348 003c 5360 str r3, [r2, #4] - 1349 .L136: - 760:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.c **** { - 1350 .loc 1 760 0 - 1351 003e 2B68 ldr r3, [r5] - 1352 0040 DB07 lsls r3, r3, #31 - 1353 0042 63D5 bpl .L137 - 765:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.c **** { - 1354 .loc 1 765 0 - 1355 0044 6B68 ldr r3, [r5, #4] - 1356 0046 012B cmp r3, #1 - 1357 0048 09D0 beq .L166 - 774:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.c **** { - 1358 .loc 1 774 0 - 1359 004a 022B cmp r3, #2 - 1360 004c 28D0 beq .L167 - 784:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.c **** { - 1361 .loc 1 784 0 - ARM GAS /tmp/ccpZPcfy.s page 46 - - - 1362 004e 032B cmp r3, #3 - 1363 0050 2CD0 beq .L168 - 797:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.c **** { - 1364 .loc 1 797 0 - 1365 0052 474A ldr r2, .L170+4 - 1366 0054 1268 ldr r2, [r2] - 1367 0056 9207 lsls r2, r2, #30 - 1368 0058 05D4 bmi .L139 - 799:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.c **** } - 1369 .loc 1 799 0 - 1370 005a 0120 movs r0, #1 - 1371 .LVL107: - 1372 005c E4E7 b .L135 - 1373 .LVL108: - 1374 .L166: - 768:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.c **** { - 1375 .loc 1 768 0 - 1376 005e 444A ldr r2, .L170+4 - 1377 0060 1268 ldr r2, [r2] - 1378 0062 9203 lsls r2, r2, #14 - 1379 0064 7FD5 bpl .L169 - 1380 .L139: - 802:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.c **** - 1381 .loc 1 802 0 - 1382 0066 4249 ldr r1, .L170+4 - 1383 0068 4A68 ldr r2, [r1, #4] - 1384 006a 0320 movs r0, #3 - 1385 .LVL109: - 1386 006c 8243 bics r2, r0 - 1387 006e 1343 orrs r3, r2 - 1388 0070 4B60 str r3, [r1, #4] - 805:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.c **** - 1389 .loc 1 805 0 - 1390 0072 FFF7FEFF bl HAL_GetTick - 1391 .LVL110: - 1392 0076 0600 movs r6, r0 - 1393 .LVL111: - 807:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.c **** { - 1394 .loc 1 807 0 - 1395 0078 6B68 ldr r3, [r5, #4] - 1396 007a 012B cmp r3, #1 - 1397 007c 1CD0 beq .L142 - 817:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.c **** { - 1398 .loc 1 817 0 - 1399 007e 022B cmp r3, #2 - 1400 0080 28D0 beq .L145 - 828:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.c **** { - 1401 .loc 1 828 0 - 1402 0082 032B cmp r3, #3 - 1403 0084 34D0 beq .L148 - 1404 .LVL112: - 1405 .L149: - 841:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.c **** { - 1406 .loc 1 841 0 - 1407 0086 3A4B ldr r3, .L170+4 - 1408 0088 5B68 ldr r3, [r3, #4] - 1409 008a 0C22 movs r2, #12 - ARM GAS /tmp/ccpZPcfy.s page 47 - - - 1410 008c 1A42 tst r2, r3 - 1411 008e 3DD0 beq .L137 - 843:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.c **** { - 1412 .loc 1 843 0 - 1413 0090 FFF7FEFF bl HAL_GetTick - 1414 .LVL113: - 1415 0094 801B subs r0, r0, r6 - 1416 0096 374B ldr r3, .L170+8 - 1417 0098 9842 cmp r0, r3 - 1418 009a F4D9 bls .L149 - 845:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.c **** } - 1419 .loc 1 845 0 - 1420 009c 0320 movs r0, #3 - 1421 009e C3E7 b .L135 - 1422 .LVL114: - 1423 .L167: - 777:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.c **** { - 1424 .loc 1 777 0 - 1425 00a0 334A ldr r2, .L170+4 - 1426 00a2 1268 ldr r2, [r2] - 1427 00a4 9201 lsls r2, r2, #6 - 1428 00a6 DED4 bmi .L139 - 779:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.c **** } - 1429 .loc 1 779 0 - 1430 00a8 0120 movs r0, #1 - 1431 .LVL115: - 1432 00aa BDE7 b .L135 - 1433 .LVL116: - 1434 .L168: - 787:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.c **** { - 1435 .loc 1 787 0 - 1436 00ac 304A ldr r2, .L170+4 - 1437 00ae 526B ldr r2, [r2, #52] - 1438 00b0 D203 lsls r2, r2, #15 - 1439 00b2 D8D4 bmi .L139 - 789:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.c **** } - 1440 .loc 1 789 0 - 1441 00b4 0120 movs r0, #1 - 1442 .LVL117: - 1443 00b6 B7E7 b .L135 - 1444 .LVL118: - 1445 .L142: - 809:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.c **** { - 1446 .loc 1 809 0 - 1447 00b8 2D4B ldr r3, .L170+4 - 1448 00ba 5A68 ldr r2, [r3, #4] - 1449 00bc 0C23 movs r3, #12 - 1450 00be 1340 ands r3, r2 - 1451 00c0 042B cmp r3, #4 - 1452 00c2 23D0 beq .L137 - 811:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.c **** { - 1453 .loc 1 811 0 - 1454 00c4 FFF7FEFF bl HAL_GetTick - 1455 .LVL119: - 1456 00c8 801B subs r0, r0, r6 - 1457 00ca 2A4B ldr r3, .L170+8 - 1458 00cc 9842 cmp r0, r3 - ARM GAS /tmp/ccpZPcfy.s page 48 - - - 1459 00ce F3D9 bls .L142 - 813:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.c **** } - 1460 .loc 1 813 0 - 1461 00d0 0320 movs r0, #3 - 1462 00d2 A9E7 b .L135 - 1463 .L145: - 819:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.c **** { - 1464 .loc 1 819 0 - 1465 00d4 264B ldr r3, .L170+4 - 1466 00d6 5A68 ldr r2, [r3, #4] - 1467 00d8 0C23 movs r3, #12 - 1468 00da 1340 ands r3, r2 - 1469 00dc 082B cmp r3, #8 - 1470 00de 15D0 beq .L137 - 821:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.c **** { - 1471 .loc 1 821 0 - 1472 00e0 FFF7FEFF bl HAL_GetTick - 1473 .LVL120: - 1474 00e4 801B subs r0, r0, r6 - 1475 00e6 234B ldr r3, .L170+8 - 1476 00e8 9842 cmp r0, r3 - 1477 00ea F3D9 bls .L145 - 823:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.c **** } - 1478 .loc 1 823 0 - 1479 00ec 0320 movs r0, #3 - 1480 00ee 9BE7 b .L135 - 1481 .L148: - 830:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.c **** { - 1482 .loc 1 830 0 - 1483 00f0 1F4B ldr r3, .L170+4 - 1484 00f2 5A68 ldr r2, [r3, #4] - 1485 00f4 0C23 movs r3, #12 - 1486 00f6 1340 ands r3, r2 - 1487 00f8 0C2B cmp r3, #12 - 1488 00fa 07D0 beq .L137 - 832:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.c **** { - 1489 .loc 1 832 0 - 1490 00fc FFF7FEFF bl HAL_GetTick - 1491 .LVL121: - 1492 0100 801B subs r0, r0, r6 - 1493 0102 1C4B ldr r3, .L170+8 - 1494 0104 9842 cmp r0, r3 - 1495 0106 F3D9 bls .L148 - 834:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.c **** } - 1496 .loc 1 834 0 - 1497 0108 0320 movs r0, #3 - 1498 010a 8DE7 b .L135 - 1499 .LVL122: - 1500 .L137: - 851:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.c **** { - 1501 .loc 1 851 0 - 1502 010c 174B ldr r3, .L170 - 1503 010e 1A68 ldr r2, [r3] - 1504 0110 0123 movs r3, #1 - 1505 0112 1340 ands r3, r2 - 1506 0114 A342 cmp r3, r4 - 1507 0116 0BD9 bls .L152 - ARM GAS /tmp/ccpZPcfy.s page 49 - - - 854:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.c **** - 1508 .loc 1 854 0 - 1509 0118 1449 ldr r1, .L170 - 1510 011a 0B68 ldr r3, [r1] - 1511 011c 0122 movs r2, #1 - 1512 011e 9343 bics r3, r2 - 1513 0120 2343 orrs r3, r4 - 1514 0122 0B60 str r3, [r1] - 858:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.c **** { - 1515 .loc 1 858 0 - 1516 0124 0B68 ldr r3, [r1] - 1517 0126 1A40 ands r2, r3 - 1518 0128 A242 cmp r2, r4 - 1519 012a 01D0 beq .L152 - 860:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.c **** } - 1520 .loc 1 860 0 - 1521 012c 0120 movs r0, #1 - 1522 012e 7BE7 b .L135 - 1523 .L152: - 865:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.c **** { - 1524 .loc 1 865 0 - 1525 0130 2B68 ldr r3, [r5] - 1526 0132 5B07 lsls r3, r3, #29 - 1527 0134 06D5 bpl .L153 - 868:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.c **** } - 1528 .loc 1 868 0 - 1529 0136 0E4A ldr r2, .L170+4 - 1530 0138 5368 ldr r3, [r2, #4] - 1531 013a 0F49 ldr r1, .L170+12 - 1532 013c 0B40 ands r3, r1 - 1533 013e E968 ldr r1, [r5, #12] - 1534 0140 0B43 orrs r3, r1 - 1535 0142 5360 str r3, [r2, #4] - 1536 .L153: - 872:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.c **** - 1537 .loc 1 872 0 - 1538 0144 FFF7FEFF bl HAL_RCC_GetSysClockFreq - 1539 .LVL123: - 1540 0148 094B ldr r3, .L170+4 - 1541 014a 5A68 ldr r2, [r3, #4] - 1542 014c 1209 lsrs r2, r2, #4 - 1543 014e 0F23 movs r3, #15 - 1544 0150 1340 ands r3, r2 - 1545 0152 0A4A ldr r2, .L170+16 - 1546 0154 D35C ldrb r3, [r2, r3] - 1547 0156 D840 lsrs r0, r0, r3 - 1548 0158 094B ldr r3, .L170+20 - 1549 015a 1860 str r0, [r3] - 875:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.c **** - 1550 .loc 1 875 0 - 1551 015c 0020 movs r0, #0 - 1552 015e FFF7FEFF bl HAL_InitTick - 1553 .LVL124: - 877:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.c **** } - 1554 .loc 1 877 0 - 1555 0162 0020 movs r0, #0 - 1556 0164 60E7 b .L135 - ARM GAS /tmp/ccpZPcfy.s page 50 - - - 1557 .LVL125: - 1558 .L169: - 770:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.c **** } - 1559 .loc 1 770 0 - 1560 0166 0120 movs r0, #1 - 1561 .LVL126: - 1562 0168 5EE7 b .L135 - 1563 .L171: - 1564 016a C046 .align 2 - 1565 .L170: - 1566 016c 00200240 .word 1073881088 - 1567 0170 00100240 .word 1073876992 - 1568 0174 88130000 .word 5000 - 1569 0178 FFF8FFFF .word -1793 - 1570 017c 00000000 .word AHBPrescTable - 1571 0180 00000000 .word SystemCoreClock - 1572 .cfi_endproc - 1573 .LFE39: - 1575 .section .text.HAL_RCC_GetHCLKFreq,"ax",%progbits - 1576 .align 1 - 1577 .global HAL_RCC_GetHCLKFreq - 1578 .syntax unified - 1579 .code 16 - 1580 .thumb_func - 1581 .fpu softvfp - 1583 HAL_RCC_GetHCLKFreq: - 1584 .LFB44: -1129:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.c **** -1130:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.c **** /** -1131:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.c **** * @brief Returns the HCLK frequency -1132:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.c **** * @note Each time HCLK changes, this function must be called to update the -1133:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.c **** * right HCLK value. Otherwise, any configuration based on this function will be incorrect -1134:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.c **** * -1135:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.c **** * @note The SystemCoreClock CMSIS variable is used to store System Clock Frequency -1136:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.c **** * and updated within this function -1137:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.c **** * @retval HCLK frequency -1138:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.c **** */ -1139:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.c **** uint32_t HAL_RCC_GetHCLKFreq(void) -1140:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.c **** { - 1585 .loc 1 1140 0 - 1586 .cfi_startproc - 1587 @ args = 0, pretend = 0, frame = 0 - 1588 @ frame_needed = 0, uses_anonymous_args = 0 - 1589 @ link register save eliminated. -1141:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.c **** return SystemCoreClock; - 1590 .loc 1 1141 0 - 1591 0000 014B ldr r3, .L173 - 1592 0002 1868 ldr r0, [r3] -1142:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.c **** } - 1593 .loc 1 1142 0 - 1594 @ sp needed - 1595 0004 7047 bx lr - 1596 .L174: - 1597 0006 C046 .align 2 - 1598 .L173: - 1599 0008 00000000 .word SystemCoreClock - 1600 .cfi_endproc - ARM GAS /tmp/ccpZPcfy.s page 51 - - - 1601 .LFE44: - 1603 .section .text.HAL_RCC_GetPCLK1Freq,"ax",%progbits - 1604 .align 1 - 1605 .global HAL_RCC_GetPCLK1Freq - 1606 .syntax unified - 1607 .code 16 - 1608 .thumb_func - 1609 .fpu softvfp - 1611 HAL_RCC_GetPCLK1Freq: - 1612 .LFB45: -1143:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.c **** -1144:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.c **** /** -1145:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.c **** * @brief Returns the PCLK1 frequency -1146:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.c **** * @note Each time PCLK1 changes, this function must be called to update the -1147:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.c **** * right PCLK1 value. Otherwise, any configuration based on this function will be incorrec -1148:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.c **** * @retval PCLK1 frequency -1149:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.c **** */ -1150:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.c **** uint32_t HAL_RCC_GetPCLK1Freq(void) -1151:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.c **** { - 1613 .loc 1 1151 0 - 1614 .cfi_startproc - 1615 @ args = 0, pretend = 0, frame = 0 - 1616 @ frame_needed = 0, uses_anonymous_args = 0 - 1617 0000 10B5 push {r4, lr} - 1618 .LCFI7: - 1619 .cfi_def_cfa_offset 8 - 1620 .cfi_offset 4, -8 - 1621 .cfi_offset 14, -4 -1152:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.c **** /* Get HCLK source and Compute PCLK1 frequency ---------------------------*/ -1153:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.c **** return (HAL_RCC_GetHCLKFreq() >> APBPrescTable[(RCC->CFGR & RCC_CFGR_PPRE) >> RCC_CFGR_PPRE_BITNU - 1622 .loc 1 1153 0 - 1623 0002 FFF7FEFF bl HAL_RCC_GetHCLKFreq - 1624 .LVL127: - 1625 0006 044B ldr r3, .L176 - 1626 0008 5A68 ldr r2, [r3, #4] - 1627 000a 120A lsrs r2, r2, #8 - 1628 000c 0723 movs r3, #7 - 1629 000e 1340 ands r3, r2 - 1630 0010 024A ldr r2, .L176+4 - 1631 0012 D35C ldrb r3, [r2, r3] - 1632 0014 D840 lsrs r0, r0, r3 -1154:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.c **** } - 1633 .loc 1 1154 0 - 1634 @ sp needed - 1635 0016 10BD pop {r4, pc} - 1636 .L177: - 1637 .align 2 - 1638 .L176: - 1639 0018 00100240 .word 1073876992 - 1640 001c 00000000 .word APBPrescTable - 1641 .cfi_endproc - 1642 .LFE45: - 1644 .section .text.HAL_RCC_GetOscConfig,"ax",%progbits - 1645 .align 1 - 1646 .global HAL_RCC_GetOscConfig - 1647 .syntax unified - 1648 .code 16 - ARM GAS /tmp/ccpZPcfy.s page 52 - - - 1649 .thumb_func - 1650 .fpu softvfp - 1652 HAL_RCC_GetOscConfig: - 1653 .LFB46: -1155:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.c **** -1156:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.c **** /** -1157:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.c **** * @brief Configures the RCC_OscInitStruct according to the internal -1158:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.c **** * RCC configuration registers. -1159:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.c **** * @param RCC_OscInitStruct pointer to an RCC_OscInitTypeDef structure that -1160:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.c **** * will be configured. -1161:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.c **** * @retval None -1162:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.c **** */ -1163:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.c **** void HAL_RCC_GetOscConfig(RCC_OscInitTypeDef *RCC_OscInitStruct) -1164:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.c **** { - 1654 .loc 1 1164 0 - 1655 .cfi_startproc - 1656 @ args = 0, pretend = 0, frame = 0 - 1657 @ frame_needed = 0, uses_anonymous_args = 0 - 1658 @ link register save eliminated. - 1659 .LVL128: -1165:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.c **** /* Check the parameters */ -1166:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.c **** assert_param(RCC_OscInitStruct != NULL); -1167:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.c **** -1168:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.c **** /* Set all possible values for the Oscillator type parameter ---------------*/ -1169:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.c **** RCC_OscInitStruct->OscillatorType = RCC_OSCILLATORTYPE_HSE | RCC_OSCILLATORTYPE_HSI \ -1170:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.c **** | RCC_OSCILLATORTYPE_LSE | RCC_OSCILLATORTYPE_LSI | RCC_OSCILLATORTYPE_HSI14; -1171:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.c **** #if defined(RCC_HSI48_SUPPORT) -1172:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.c **** RCC_OscInitStruct->OscillatorType |= RCC_OSCILLATORTYPE_HSI48; - 1660 .loc 1 1172 0 - 1661 0000 3F23 movs r3, #63 - 1662 0002 0360 str r3, [r0] -1173:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.c **** #endif /* RCC_HSI48_SUPPORT */ -1174:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.c **** -1175:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.c **** -1176:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.c **** /* Get the HSE configuration -----------------------------------------------*/ -1177:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.c **** if((RCC->CR &RCC_CR_HSEBYP) == RCC_CR_HSEBYP) - 1663 .loc 1 1177 0 - 1664 0004 324B ldr r3, .L194 - 1665 0006 1B68 ldr r3, [r3] - 1666 0008 5B03 lsls r3, r3, #13 - 1667 000a 40D5 bpl .L179 -1178:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.c **** { -1179:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.c **** RCC_OscInitStruct->HSEState = RCC_HSE_BYPASS; - 1668 .loc 1 1179 0 - 1669 000c 0523 movs r3, #5 - 1670 000e 4360 str r3, [r0, #4] - 1671 .L180: -1180:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.c **** } -1181:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.c **** else if((RCC->CR &RCC_CR_HSEON) == RCC_CR_HSEON) -1182:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.c **** { -1183:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.c **** RCC_OscInitStruct->HSEState = RCC_HSE_ON; -1184:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.c **** } -1185:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.c **** else -1186:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.c **** { -1187:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.c **** RCC_OscInitStruct->HSEState = RCC_HSE_OFF; -1188:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.c **** } -1189:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.c **** - ARM GAS /tmp/ccpZPcfy.s page 53 - - -1190:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.c **** /* Get the HSI configuration -----------------------------------------------*/ -1191:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.c **** if((RCC->CR &RCC_CR_HSION) == RCC_CR_HSION) - 1672 .loc 1 1191 0 - 1673 0010 2F4B ldr r3, .L194 - 1674 0012 1B68 ldr r3, [r3] - 1675 0014 DB07 lsls r3, r3, #31 - 1676 0016 44D5 bpl .L182 -1192:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.c **** { -1193:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.c **** RCC_OscInitStruct->HSIState = RCC_HSI_ON; - 1677 .loc 1 1193 0 - 1678 0018 0123 movs r3, #1 - 1679 001a C360 str r3, [r0, #12] - 1680 .L183: -1194:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.c **** } -1195:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.c **** else -1196:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.c **** { -1197:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.c **** RCC_OscInitStruct->HSIState = RCC_HSI_OFF; -1198:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.c **** } -1199:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.c **** -1200:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.c **** RCC_OscInitStruct->HSICalibrationValue = (uint32_t)((RCC->CR &RCC_CR_HSITRIM) >> RCC_CR_HSITRIM_B - 1681 .loc 1 1200 0 - 1682 001c 2C49 ldr r1, .L194 - 1683 001e 0A68 ldr r2, [r1] - 1684 0020 D208 lsrs r2, r2, #3 - 1685 0022 1F23 movs r3, #31 - 1686 0024 1340 ands r3, r2 - 1687 0026 0361 str r3, [r0, #16] -1201:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.c **** -1202:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.c **** /* Get the LSE configuration -----------------------------------------------*/ -1203:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.c **** if((RCC->BDCR &RCC_BDCR_LSEBYP) == RCC_BDCR_LSEBYP) - 1688 .loc 1 1203 0 - 1689 0028 0B6A ldr r3, [r1, #32] - 1690 002a 5B07 lsls r3, r3, #29 - 1691 002c 3CD5 bpl .L184 -1204:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.c **** { -1205:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.c **** RCC_OscInitStruct->LSEState = RCC_LSE_BYPASS; - 1692 .loc 1 1205 0 - 1693 002e 0523 movs r3, #5 - 1694 0030 8360 str r3, [r0, #8] - 1695 .L185: -1206:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.c **** } -1207:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.c **** else if((RCC->BDCR &RCC_BDCR_LSEON) == RCC_BDCR_LSEON) -1208:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.c **** { -1209:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.c **** RCC_OscInitStruct->LSEState = RCC_LSE_ON; -1210:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.c **** } -1211:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.c **** else -1212:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.c **** { -1213:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.c **** RCC_OscInitStruct->LSEState = RCC_LSE_OFF; -1214:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.c **** } -1215:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.c **** -1216:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.c **** /* Get the LSI configuration -----------------------------------------------*/ -1217:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.c **** if((RCC->CSR &RCC_CSR_LSION) == RCC_CSR_LSION) - 1696 .loc 1 1217 0 - 1697 0032 274B ldr r3, .L194 - 1698 0034 5B6A ldr r3, [r3, #36] - 1699 0036 DB07 lsls r3, r3, #31 - 1700 0038 40D5 bpl .L187 - ARM GAS /tmp/ccpZPcfy.s page 54 - - -1218:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.c **** { -1219:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.c **** RCC_OscInitStruct->LSIState = RCC_LSI_ON; - 1701 .loc 1 1219 0 - 1702 003a 0123 movs r3, #1 - 1703 003c C361 str r3, [r0, #28] - 1704 .L188: -1220:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.c **** } -1221:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.c **** else -1222:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.c **** { -1223:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.c **** RCC_OscInitStruct->LSIState = RCC_LSI_OFF; -1224:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.c **** } -1225:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.c **** -1226:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.c **** /* Get the HSI14 configuration -----------------------------------------------*/ -1227:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.c **** if((RCC->CR2 & RCC_CR2_HSI14ON) == RCC_CR2_HSI14ON) - 1705 .loc 1 1227 0 - 1706 003e 244B ldr r3, .L194 - 1707 0040 5B6B ldr r3, [r3, #52] - 1708 0042 DB07 lsls r3, r3, #31 - 1709 0044 3DD5 bpl .L189 -1228:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.c **** { -1229:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.c **** RCC_OscInitStruct->HSI14State = RCC_HSI_ON; - 1710 .loc 1 1229 0 - 1711 0046 0123 movs r3, #1 - 1712 0048 4361 str r3, [r0, #20] - 1713 .L190: -1230:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.c **** } -1231:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.c **** else -1232:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.c **** { -1233:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.c **** RCC_OscInitStruct->HSI14State = RCC_HSI_OFF; -1234:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.c **** } -1235:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.c **** -1236:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.c **** RCC_OscInitStruct->HSI14CalibrationValue = (uint32_t)((RCC->CR2 & RCC_CR2_HSI14TRIM) >> RCC_HSI14 - 1714 .loc 1 1236 0 - 1715 004a 214A ldr r2, .L194 - 1716 004c 516B ldr r1, [r2, #52] - 1717 004e C908 lsrs r1, r1, #3 - 1718 0050 1F23 movs r3, #31 - 1719 0052 0B40 ands r3, r1 - 1720 0054 8361 str r3, [r0, #24] -1237:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.c **** -1238:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.c **** #if defined(RCC_HSI48_SUPPORT) -1239:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.c **** /* Get the HSI48 configuration if any-----------------------------------------*/ -1240:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.c **** RCC_OscInitStruct->HSI48State = __HAL_RCC_GET_HSI48_STATE(); - 1721 .loc 1 1240 0 - 1722 0056 536B ldr r3, [r2, #52] - 1723 0058 8021 movs r1, #128 - 1724 005a 4902 lsls r1, r1, #9 - 1725 005c 0B40 ands r3, r1 - 1726 005e 591E subs r1, r3, #1 - 1727 0060 8B41 sbcs r3, r3, r1 - 1728 0062 0362 str r3, [r0, #32] -1241:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.c **** #endif /* RCC_HSI48_SUPPORT */ -1242:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.c **** -1243:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.c **** /* Get the PLL configuration -----------------------------------------------*/ -1244:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.c **** if((RCC->CR &RCC_CR_PLLON) == RCC_CR_PLLON) - 1729 .loc 1 1244 0 - 1730 0064 1368 ldr r3, [r2] - ARM GAS /tmp/ccpZPcfy.s page 55 - - - 1731 0066 DB01 lsls r3, r3, #7 - 1732 0068 2ED4 bmi .L193 -1245:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.c **** { -1246:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.c **** RCC_OscInitStruct->PLL.PLLState = RCC_PLL_ON; -1247:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.c **** } -1248:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.c **** else -1249:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.c **** { -1250:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.c **** RCC_OscInitStruct->PLL.PLLState = RCC_PLL_OFF; - 1733 .loc 1 1250 0 - 1734 006a 0123 movs r3, #1 - 1735 006c 4362 str r3, [r0, #36] - 1736 .L192: -1251:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.c **** } -1252:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.c **** RCC_OscInitStruct->PLL.PLLSource = (uint32_t)(RCC->CFGR & RCC_CFGR_PLLSRC); - 1737 .loc 1 1252 0 - 1738 006e 184B ldr r3, .L194 - 1739 0070 5A68 ldr r2, [r3, #4] - 1740 0072 C021 movs r1, #192 - 1741 0074 4902 lsls r1, r1, #9 - 1742 0076 0A40 ands r2, r1 - 1743 0078 8262 str r2, [r0, #40] -1253:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.c **** RCC_OscInitStruct->PLL.PLLMUL = (uint32_t)(RCC->CFGR & RCC_CFGR_PLLMUL); - 1744 .loc 1 1253 0 - 1745 007a 5A68 ldr r2, [r3, #4] - 1746 007c F021 movs r1, #240 - 1747 007e 8903 lsls r1, r1, #14 - 1748 0080 0A40 ands r2, r1 - 1749 0082 C262 str r2, [r0, #44] -1254:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.c **** RCC_OscInitStruct->PLL.PREDIV = (uint32_t)(RCC->CFGR2 & RCC_CFGR2_PREDIV); - 1750 .loc 1 1254 0 - 1751 0084 DA6A ldr r2, [r3, #44] - 1752 0086 0F23 movs r3, #15 - 1753 0088 1340 ands r3, r2 - 1754 008a 0363 str r3, [r0, #48] -1255:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.c **** } - 1755 .loc 1 1255 0 - 1756 @ sp needed - 1757 008c 7047 bx lr - 1758 .L179: -1181:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.c **** { - 1759 .loc 1 1181 0 - 1760 008e 104B ldr r3, .L194 - 1761 0090 1B68 ldr r3, [r3] - 1762 0092 DB03 lsls r3, r3, #15 - 1763 0094 02D5 bpl .L181 -1183:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.c **** } - 1764 .loc 1 1183 0 - 1765 0096 0123 movs r3, #1 - 1766 0098 4360 str r3, [r0, #4] - 1767 009a B9E7 b .L180 - 1768 .L181: -1187:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.c **** } - 1769 .loc 1 1187 0 - 1770 009c 0023 movs r3, #0 - 1771 009e 4360 str r3, [r0, #4] - 1772 00a0 B6E7 b .L180 - 1773 .L182: - ARM GAS /tmp/ccpZPcfy.s page 56 - - -1197:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.c **** } - 1774 .loc 1 1197 0 - 1775 00a2 0023 movs r3, #0 - 1776 00a4 C360 str r3, [r0, #12] - 1777 00a6 B9E7 b .L183 - 1778 .L184: -1207:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.c **** { - 1779 .loc 1 1207 0 - 1780 00a8 094B ldr r3, .L194 - 1781 00aa 1B6A ldr r3, [r3, #32] - 1782 00ac DB07 lsls r3, r3, #31 - 1783 00ae 02D5 bpl .L186 -1209:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.c **** } - 1784 .loc 1 1209 0 - 1785 00b0 0123 movs r3, #1 - 1786 00b2 8360 str r3, [r0, #8] - 1787 00b4 BDE7 b .L185 - 1788 .L186: -1213:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.c **** } - 1789 .loc 1 1213 0 - 1790 00b6 0023 movs r3, #0 - 1791 00b8 8360 str r3, [r0, #8] - 1792 00ba BAE7 b .L185 - 1793 .L187: -1223:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.c **** } - 1794 .loc 1 1223 0 - 1795 00bc 0023 movs r3, #0 - 1796 00be C361 str r3, [r0, #28] - 1797 00c0 BDE7 b .L188 - 1798 .L189: -1233:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.c **** } - 1799 .loc 1 1233 0 - 1800 00c2 0023 movs r3, #0 - 1801 00c4 4361 str r3, [r0, #20] - 1802 00c6 C0E7 b .L190 - 1803 .L193: -1246:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.c **** } - 1804 .loc 1 1246 0 - 1805 00c8 0223 movs r3, #2 - 1806 00ca 4362 str r3, [r0, #36] - 1807 00cc CFE7 b .L192 - 1808 .L195: - 1809 00ce C046 .align 2 - 1810 .L194: - 1811 00d0 00100240 .word 1073876992 - 1812 .cfi_endproc - 1813 .LFE46: - 1815 .section .text.HAL_RCC_GetClockConfig,"ax",%progbits - 1816 .align 1 - 1817 .global HAL_RCC_GetClockConfig - 1818 .syntax unified - 1819 .code 16 - 1820 .thumb_func - 1821 .fpu softvfp - 1823 HAL_RCC_GetClockConfig: - 1824 .LFB47: -1256:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.c **** - ARM GAS /tmp/ccpZPcfy.s page 57 - - -1257:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.c **** /** -1258:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.c **** * @brief Get the RCC_ClkInitStruct according to the internal -1259:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.c **** * RCC configuration registers. -1260:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.c **** * @param RCC_ClkInitStruct pointer to an RCC_ClkInitTypeDef structure that -1261:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.c **** * contains the current clock configuration. -1262:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.c **** * @param pFLatency Pointer on the Flash Latency. -1263:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.c **** * @retval None -1264:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.c **** */ -1265:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.c **** void HAL_RCC_GetClockConfig(RCC_ClkInitTypeDef *RCC_ClkInitStruct, uint32_t *pFLatency) -1266:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.c **** { - 1825 .loc 1 1266 0 - 1826 .cfi_startproc - 1827 @ args = 0, pretend = 0, frame = 0 - 1828 @ frame_needed = 0, uses_anonymous_args = 0 - 1829 .LVL129: - 1830 0000 10B5 push {r4, lr} - 1831 .LCFI8: - 1832 .cfi_def_cfa_offset 8 - 1833 .cfi_offset 4, -8 - 1834 .cfi_offset 14, -4 -1267:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.c **** /* Check the parameters */ -1268:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.c **** assert_param(RCC_ClkInitStruct != NULL); -1269:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.c **** assert_param(pFLatency != NULL); -1270:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.c **** -1271:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.c **** /* Set all possible values for the Clock type parameter --------------------*/ -1272:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.c **** RCC_ClkInitStruct->ClockType = RCC_CLOCKTYPE_SYSCLK | RCC_CLOCKTYPE_HCLK | RCC_CLOCKTYPE_PCLK1; - 1835 .loc 1 1272 0 - 1836 0002 0723 movs r3, #7 - 1837 0004 0360 str r3, [r0] -1273:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.c **** -1274:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.c **** /* Get the SYSCLK configuration --------------------------------------------*/ -1275:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.c **** RCC_ClkInitStruct->SYSCLKSource = (uint32_t)(RCC->CFGR & RCC_CFGR_SW); - 1838 .loc 1 1275 0 - 1839 0006 0A4B ldr r3, .L197 - 1840 0008 5C68 ldr r4, [r3, #4] - 1841 000a 0322 movs r2, #3 - 1842 000c 2240 ands r2, r4 - 1843 000e 4260 str r2, [r0, #4] -1276:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.c **** -1277:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.c **** /* Get the HCLK configuration ----------------------------------------------*/ -1278:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.c **** RCC_ClkInitStruct->AHBCLKDivider = (uint32_t)(RCC->CFGR & RCC_CFGR_HPRE); - 1844 .loc 1 1278 0 - 1845 0010 5C68 ldr r4, [r3, #4] - 1846 0012 F022 movs r2, #240 - 1847 0014 2240 ands r2, r4 - 1848 0016 8260 str r2, [r0, #8] -1279:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.c **** -1280:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.c **** /* Get the APB1 configuration ----------------------------------------------*/ -1281:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.c **** RCC_ClkInitStruct->APB1CLKDivider = (uint32_t)(RCC->CFGR & RCC_CFGR_PPRE); - 1849 .loc 1 1281 0 - 1850 0018 5B68 ldr r3, [r3, #4] - 1851 001a E022 movs r2, #224 - 1852 001c D200 lsls r2, r2, #3 - 1853 001e 1340 ands r3, r2 - 1854 0020 C360 str r3, [r0, #12] -1282:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.c **** /* Get the Flash Wait State (Latency) configuration ------------------------*/ -1283:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.c **** *pFLatency = (uint32_t)(FLASH->ACR & FLASH_ACR_LATENCY); - ARM GAS /tmp/ccpZPcfy.s page 58 - - - 1855 .loc 1 1283 0 - 1856 0022 044B ldr r3, .L197+4 - 1857 0024 1A68 ldr r2, [r3] - 1858 0026 0123 movs r3, #1 - 1859 0028 1340 ands r3, r2 - 1860 002a 0B60 str r3, [r1] -1284:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.c **** } - 1861 .loc 1 1284 0 - 1862 @ sp needed - 1863 002c 10BD pop {r4, pc} - 1864 .L198: - 1865 002e C046 .align 2 - 1866 .L197: - 1867 0030 00100240 .word 1073876992 - 1868 0034 00200240 .word 1073881088 - 1869 .cfi_endproc - 1870 .LFE47: - 1872 .section .text.HAL_RCC_CSSCallback,"ax",%progbits - 1873 .align 1 - 1874 .weak HAL_RCC_CSSCallback - 1875 .syntax unified - 1876 .code 16 - 1877 .thumb_func - 1878 .fpu softvfp - 1880 HAL_RCC_CSSCallback: - 1881 .LFB49: -1285:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.c **** -1286:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.c **** /** -1287:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.c **** * @brief This function handles the RCC CSS interrupt request. -1288:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.c **** * @note This API should be called under the NMI_Handler(). -1289:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.c **** * @retval None -1290:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.c **** */ -1291:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.c **** void HAL_RCC_NMI_IRQHandler(void) -1292:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.c **** { -1293:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.c **** /* Check RCC CSSF flag */ -1294:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.c **** if(__HAL_RCC_GET_IT(RCC_IT_CSS)) -1295:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.c **** { -1296:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.c **** /* RCC Clock Security System interrupt user callback */ -1297:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.c **** HAL_RCC_CSSCallback(); -1298:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.c **** -1299:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.c **** /* Clear RCC CSS pending bit */ -1300:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.c **** __HAL_RCC_CLEAR_IT(RCC_IT_CSS); -1301:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.c **** } -1302:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.c **** } -1303:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.c **** -1304:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.c **** /** -1305:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.c **** * @brief RCC Clock Security System interrupt callback -1306:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.c **** * @retval none -1307:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.c **** */ -1308:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.c **** __weak void HAL_RCC_CSSCallback(void) -1309:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.c **** { - 1882 .loc 1 1309 0 - 1883 .cfi_startproc - 1884 @ args = 0, pretend = 0, frame = 0 - 1885 @ frame_needed = 0, uses_anonymous_args = 0 - 1886 @ link register save eliminated. -1310:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.c **** /* NOTE : This function Should not be modified, when the callback is needed, - ARM GAS /tmp/ccpZPcfy.s page 59 - - -1311:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.c **** the HAL_RCC_CSSCallback could be implemented in the user file -1312:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.c **** */ -1313:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.c **** } - 1887 .loc 1 1313 0 - 1888 @ sp needed - 1889 0000 7047 bx lr - 1890 .cfi_endproc - 1891 .LFE49: - 1893 .section .text.HAL_RCC_NMI_IRQHandler,"ax",%progbits - 1894 .align 1 - 1895 .global HAL_RCC_NMI_IRQHandler - 1896 .syntax unified - 1897 .code 16 - 1898 .thumb_func - 1899 .fpu softvfp - 1901 HAL_RCC_NMI_IRQHandler: - 1902 .LFB48: -1292:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.c **** /* Check RCC CSSF flag */ - 1903 .loc 1 1292 0 - 1904 .cfi_startproc - 1905 @ args = 0, pretend = 0, frame = 0 - 1906 @ frame_needed = 0, uses_anonymous_args = 0 - 1907 0000 10B5 push {r4, lr} - 1908 .LCFI9: - 1909 .cfi_def_cfa_offset 8 - 1910 .cfi_offset 4, -8 - 1911 .cfi_offset 14, -4 -1294:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.c **** { - 1912 .loc 1 1294 0 - 1913 0002 054B ldr r3, .L203 - 1914 0004 9B68 ldr r3, [r3, #8] - 1915 0006 1B06 lsls r3, r3, #24 - 1916 0008 00D4 bmi .L202 - 1917 .L200: -1302:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.c **** - 1918 .loc 1 1302 0 - 1919 @ sp needed - 1920 000a 10BD pop {r4, pc} - 1921 .L202: -1297:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.c **** - 1922 .loc 1 1297 0 - 1923 000c FFF7FEFF bl HAL_RCC_CSSCallback - 1924 .LVL130: -1300:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.c **** } - 1925 .loc 1 1300 0 - 1926 0010 024B ldr r3, .L203+4 - 1927 0012 8022 movs r2, #128 - 1928 0014 1A70 strb r2, [r3] -1302:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.c **** - 1929 .loc 1 1302 0 - 1930 0016 F8E7 b .L200 - 1931 .L204: - 1932 .align 2 - 1933 .L203: - 1934 0018 00100240 .word 1073876992 - 1935 001c 0A100240 .word 1073877002 - 1936 .cfi_endproc - ARM GAS /tmp/ccpZPcfy.s page 60 - - - 1937 .LFE48: - 1939 .section .rodata - 1940 .align 2 - 1941 .set .LANCHOR0,. + 0 - 1942 .LC0: - 1943 0000 02 .byte 2 - 1944 0001 03 .byte 3 - 1945 0002 04 .byte 4 - 1946 0003 05 .byte 5 - 1947 0004 06 .byte 6 - 1948 0005 07 .byte 7 - 1949 0006 08 .byte 8 - 1950 0007 09 .byte 9 - 1951 0008 0A .byte 10 - 1952 0009 0B .byte 11 - 1953 000a 0C .byte 12 - 1954 000b 0D .byte 13 - 1955 000c 0E .byte 14 - 1956 000d 0F .byte 15 - 1957 000e 10 .byte 16 - 1958 000f 10 .byte 16 - 1959 .LC1: - 1960 0010 01 .byte 1 - 1961 0011 02 .byte 2 - 1962 0012 03 .byte 3 - 1963 0013 04 .byte 4 - 1964 0014 05 .byte 5 - 1965 0015 06 .byte 6 - 1966 0016 07 .byte 7 - 1967 0017 08 .byte 8 - 1968 0018 09 .byte 9 - 1969 0019 0A .byte 10 - 1970 001a 0B .byte 11 - 1971 001b 0C .byte 12 - 1972 001c 0D .byte 13 - 1973 001d 0E .byte 14 - 1974 001e 0F .byte 15 - 1975 001f 10 .byte 16 - 1976 .text - 1977 .Letext0: - 1978 .file 2 "/home/janhenrik/programme/gcc-arm-none-eabi-7-2018-q2-update/arm-none-eabi/include/machin - 1979 .file 3 "/home/janhenrik/programme/gcc-arm-none-eabi-7-2018-q2-update/arm-none-eabi/include/sys/_s - 1980 .file 4 "Drivers/CMSIS/Device/ST/STM32F0xx/Include/system_stm32f0xx.h" - 1981 .file 5 "Drivers/CMSIS/Device/ST/STM32F0xx/Include/stm32f072xb.h" - 1982 .file 6 "Drivers/CMSIS/Device/ST/STM32F0xx/Include/stm32f0xx.h" - 1983 .file 7 "/home/janhenrik/programme/gcc-arm-none-eabi-7-2018-q2-update/arm-none-eabi/include/sys/lo - 1984 .file 8 "/home/janhenrik/programme/gcc-arm-none-eabi-7-2018-q2-update/arm-none-eabi/include/sys/_t - 1985 .file 9 "/home/janhenrik/programme/gcc-arm-none-eabi-7-2018-q2-update/lib/gcc/arm-none-eabi/7.3.1/ - 1986 .file 10 "/home/janhenrik/programme/gcc-arm-none-eabi-7-2018-q2-update/arm-none-eabi/include/sys/r - 1987 .file 11 "Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_def.h" - 1988 .file 12 "Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_rcc.h" - 1989 .file 13 "Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_gpio.h" - 1990 .file 14 "Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal.h" - ARM GAS /tmp/ccpZPcfy.s page 61 - - -DEFINED SYMBOLS - *ABS*:0000000000000000 stm32f0xx_hal_rcc.c - /tmp/ccpZPcfy.s:16 .text.HAL_RCC_DeInit:0000000000000000 $t - /tmp/ccpZPcfy.s:23 .text.HAL_RCC_DeInit:0000000000000000 HAL_RCC_DeInit - /tmp/ccpZPcfy.s:71 .text.HAL_RCC_DeInit:0000000000000034 $d - /tmp/ccpZPcfy.s:81 .text.HAL_RCC_OscConfig:0000000000000000 $t - /tmp/ccpZPcfy.s:88 .text.HAL_RCC_OscConfig:0000000000000000 HAL_RCC_OscConfig - /tmp/ccpZPcfy.s:619 .text.HAL_RCC_OscConfig:00000000000002dc $d - /tmp/ccpZPcfy.s:626 .text.HAL_RCC_OscConfig:00000000000002f0 $t - /tmp/ccpZPcfy.s:992 .text.HAL_RCC_OscConfig:00000000000004e8 $d - /tmp/ccpZPcfy.s:1001 .text.HAL_RCC_MCOConfig:0000000000000000 $t - /tmp/ccpZPcfy.s:1008 .text.HAL_RCC_MCOConfig:0000000000000000 HAL_RCC_MCOConfig - /tmp/ccpZPcfy.s:1080 .text.HAL_RCC_MCOConfig:000000000000004c $d - /tmp/ccpZPcfy.s:1086 .text.HAL_RCC_EnableCSS:0000000000000000 $t - /tmp/ccpZPcfy.s:1093 .text.HAL_RCC_EnableCSS:0000000000000000 HAL_RCC_EnableCSS - /tmp/ccpZPcfy.s:1113 .text.HAL_RCC_EnableCSS:0000000000000010 $d - /tmp/ccpZPcfy.s:1118 .text.HAL_RCC_DisableCSS:0000000000000000 $t - /tmp/ccpZPcfy.s:1125 .text.HAL_RCC_DisableCSS:0000000000000000 HAL_RCC_DisableCSS - /tmp/ccpZPcfy.s:1144 .text.HAL_RCC_DisableCSS:000000000000000c $d - /tmp/ccpZPcfy.s:1151 .text.HAL_RCC_GetSysClockFreq:0000000000000000 $t - /tmp/ccpZPcfy.s:1158 .text.HAL_RCC_GetSysClockFreq:0000000000000000 HAL_RCC_GetSysClockFreq - /tmp/ccpZPcfy.s:1274 .text.HAL_RCC_GetSysClockFreq:0000000000000084 $d - /tmp/ccpZPcfy.s:1282 .text.HAL_RCC_ClockConfig:0000000000000000 $t - /tmp/ccpZPcfy.s:1289 .text.HAL_RCC_ClockConfig:0000000000000000 HAL_RCC_ClockConfig - /tmp/ccpZPcfy.s:1566 .text.HAL_RCC_ClockConfig:000000000000016c $d - /tmp/ccpZPcfy.s:1576 .text.HAL_RCC_GetHCLKFreq:0000000000000000 $t - /tmp/ccpZPcfy.s:1583 .text.HAL_RCC_GetHCLKFreq:0000000000000000 HAL_RCC_GetHCLKFreq - /tmp/ccpZPcfy.s:1599 .text.HAL_RCC_GetHCLKFreq:0000000000000008 $d - /tmp/ccpZPcfy.s:1604 .text.HAL_RCC_GetPCLK1Freq:0000000000000000 $t - /tmp/ccpZPcfy.s:1611 .text.HAL_RCC_GetPCLK1Freq:0000000000000000 HAL_RCC_GetPCLK1Freq - /tmp/ccpZPcfy.s:1639 .text.HAL_RCC_GetPCLK1Freq:0000000000000018 $d - /tmp/ccpZPcfy.s:1645 .text.HAL_RCC_GetOscConfig:0000000000000000 $t - /tmp/ccpZPcfy.s:1652 .text.HAL_RCC_GetOscConfig:0000000000000000 HAL_RCC_GetOscConfig - /tmp/ccpZPcfy.s:1811 .text.HAL_RCC_GetOscConfig:00000000000000d0 $d - /tmp/ccpZPcfy.s:1816 .text.HAL_RCC_GetClockConfig:0000000000000000 $t - /tmp/ccpZPcfy.s:1823 .text.HAL_RCC_GetClockConfig:0000000000000000 HAL_RCC_GetClockConfig - /tmp/ccpZPcfy.s:1867 .text.HAL_RCC_GetClockConfig:0000000000000030 $d - /tmp/ccpZPcfy.s:1873 .text.HAL_RCC_CSSCallback:0000000000000000 $t - /tmp/ccpZPcfy.s:1880 .text.HAL_RCC_CSSCallback:0000000000000000 HAL_RCC_CSSCallback - /tmp/ccpZPcfy.s:1894 .text.HAL_RCC_NMI_IRQHandler:0000000000000000 $t - /tmp/ccpZPcfy.s:1901 .text.HAL_RCC_NMI_IRQHandler:0000000000000000 HAL_RCC_NMI_IRQHandler - /tmp/ccpZPcfy.s:1934 .text.HAL_RCC_NMI_IRQHandler:0000000000000018 $d - /tmp/ccpZPcfy.s:1940 .rodata:0000000000000000 $d - -UNDEFINED SYMBOLS -SystemCoreClock -HAL_GetTick -HAL_GPIO_Init -__aeabi_uidiv -HAL_InitTick -AHBPrescTable -APBPrescTable diff --git a/firmware/build/stm32f0xx_hal_rcc.o b/firmware/build/stm32f0xx_hal_rcc.o deleted file mode 100644 index 609befb..0000000 Binary files a/firmware/build/stm32f0xx_hal_rcc.o and /dev/null differ diff --git a/firmware/build/stm32f0xx_hal_rcc_ex.d b/firmware/build/stm32f0xx_hal_rcc_ex.d deleted file mode 100644 index 47542a4..0000000 --- a/firmware/build/stm32f0xx_hal_rcc_ex.d +++ /dev/null @@ -1,87 +0,0 @@ -build/stm32f0xx_hal_rcc_ex.o: \ - Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc_ex.c \ - Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal.h \ - Inc/stm32f0xx_hal_conf.h \ - Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_rcc.h \ - Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_def.h \ - Drivers/CMSIS/Device/ST/STM32F0xx/Include/stm32f0xx.h \ - Drivers/CMSIS/Device/ST/STM32F0xx/Include/stm32f072xb.h \ - Drivers/CMSIS/Include/core_cm0.h Drivers/CMSIS/Include/core_cmInstr.h \ - Drivers/CMSIS/Include/cmsis_gcc.h Drivers/CMSIS/Include/core_cmFunc.h \ - Drivers/CMSIS/Device/ST/STM32F0xx/Include/system_stm32f0xx.h \ - Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_rcc_ex.h \ - Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_gpio.h \ - Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_gpio_ex.h \ - Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_dma.h \ - Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_dma_ex.h \ - Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_cortex.h \ - Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_adc.h \ - Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_adc_ex.h \ - Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_flash.h \ - Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_flash_ex.h \ - Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_i2c.h \ - Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_i2c_ex.h \ - Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_pcd.h \ - Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_pcd_ex.h \ - Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_pwr.h \ - Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_pwr_ex.h \ - Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_tim.h \ - Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_tim_ex.h - -Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal.h: - -Inc/stm32f0xx_hal_conf.h: - -Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_rcc.h: - -Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_def.h: - -Drivers/CMSIS/Device/ST/STM32F0xx/Include/stm32f0xx.h: - -Drivers/CMSIS/Device/ST/STM32F0xx/Include/stm32f072xb.h: - -Drivers/CMSIS/Include/core_cm0.h: - -Drivers/CMSIS/Include/core_cmInstr.h: - -Drivers/CMSIS/Include/cmsis_gcc.h: - -Drivers/CMSIS/Include/core_cmFunc.h: - -Drivers/CMSIS/Device/ST/STM32F0xx/Include/system_stm32f0xx.h: - -Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_rcc_ex.h: - -Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_gpio.h: - -Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_gpio_ex.h: - -Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_dma.h: - -Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_dma_ex.h: - -Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_cortex.h: - -Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_adc.h: - -Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_adc_ex.h: - -Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_flash.h: - -Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_flash_ex.h: - -Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_i2c.h: - -Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_i2c_ex.h: - -Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_pcd.h: - -Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_pcd_ex.h: - -Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_pwr.h: - -Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_pwr_ex.h: - -Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_tim.h: - -Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_tim_ex.h: diff --git a/firmware/build/stm32f0xx_hal_rcc_ex.lst b/firmware/build/stm32f0xx_hal_rcc_ex.lst deleted file mode 100644 index 15b717a..0000000 --- a/firmware/build/stm32f0xx_hal_rcc_ex.lst +++ /dev/null @@ -1,2592 +0,0 @@ -ARM GAS /tmp/cco9QLtT.s page 1 - - - 1 .cpu cortex-m0 - 2 .eabi_attribute 20, 1 - 3 .eabi_attribute 21, 1 - 4 .eabi_attribute 23, 3 - 5 .eabi_attribute 24, 1 - 6 .eabi_attribute 25, 1 - 7 .eabi_attribute 26, 1 - 8 .eabi_attribute 30, 1 - 9 .eabi_attribute 34, 0 - 10 .eabi_attribute 18, 4 - 11 .file "stm32f0xx_hal_rcc_ex.c" - 12 .text - 13 .Ltext0: - 14 .cfi_sections .debug_frame - 15 .section .text.HAL_RCCEx_PeriphCLKConfig,"ax",%progbits - 16 .align 1 - 17 .global HAL_RCCEx_PeriphCLKConfig - 18 .syntax unified - 19 .code 16 - 20 .thumb_func - 21 .fpu softvfp - 23 HAL_RCCEx_PeriphCLKConfig: - 24 .LFB37: - 25 .file 1 "Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc_ex.c" - 1:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc_ex.c **** /** - 2:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc_ex.c **** ****************************************************************************** - 3:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc_ex.c **** * @file stm32f0xx_hal_rcc_ex.c - 4:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc_ex.c **** * @author MCD Application Team - 5:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc_ex.c **** * @brief Extended RCC HAL module driver. - 6:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc_ex.c **** * This file provides firmware functions to manage the following - 7:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc_ex.c **** * functionalities RCC extension peripheral: - 8:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc_ex.c **** * + Extended Peripheral Control functions - 9:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc_ex.c **** * + Extended Clock Recovery System Control functions - 10:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc_ex.c **** * - 11:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc_ex.c **** ****************************************************************************** - 12:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc_ex.c **** * @attention - 13:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc_ex.c **** * - 14:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc_ex.c **** *

© COPYRIGHT(c) 2016 STMicroelectronics

- 15:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc_ex.c **** * - 16:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc_ex.c **** * Redistribution and use in source and binary forms, with or without modification, - 17:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc_ex.c **** * are permitted provided that the following conditions are met: - 18:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc_ex.c **** * 1. Redistributions of source code must retain the above copyright notice, - 19:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc_ex.c **** * this list of conditions and the following disclaimer. - 20:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc_ex.c **** * 2. Redistributions in binary form must reproduce the above copyright notice, - 21:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc_ex.c **** * this list of conditions and the following disclaimer in the documentation - 22:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc_ex.c **** * and/or other materials provided with the distribution. - 23:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc_ex.c **** * 3. Neither the name of STMicroelectronics nor the names of its contributors - 24:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc_ex.c **** * may be used to endorse or promote products derived from this software - 25:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc_ex.c **** * without specific prior written permission. - 26:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc_ex.c **** * - 27:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc_ex.c **** * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" - 28:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc_ex.c **** * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE - 29:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc_ex.c **** * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE - 30:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc_ex.c **** * DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE - 31:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc_ex.c **** * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL - 32:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc_ex.c **** * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR - 33:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc_ex.c **** * SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER - ARM GAS /tmp/cco9QLtT.s page 2 - - - 34:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc_ex.c **** * CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, - 35:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc_ex.c **** * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE - 36:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc_ex.c **** * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. - 37:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc_ex.c **** * - 38:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc_ex.c **** ****************************************************************************** - 39:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc_ex.c **** */ - 40:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc_ex.c **** - 41:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc_ex.c **** /* Includes ------------------------------------------------------------------*/ - 42:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc_ex.c **** #include "stm32f0xx_hal.h" - 43:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc_ex.c **** - 44:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc_ex.c **** /** @addtogroup STM32F0xx_HAL_Driver - 45:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc_ex.c **** * @{ - 46:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc_ex.c **** */ - 47:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc_ex.c **** - 48:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc_ex.c **** #ifdef HAL_RCC_MODULE_ENABLED - 49:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc_ex.c **** - 50:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc_ex.c **** /** @defgroup RCCEx RCCEx - 51:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc_ex.c **** * @brief RCC Extension HAL module driver. - 52:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc_ex.c **** * @{ - 53:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc_ex.c **** */ - 54:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc_ex.c **** - 55:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc_ex.c **** /* Private typedef -----------------------------------------------------------*/ - 56:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc_ex.c **** /* Private define ------------------------------------------------------------*/ - 57:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc_ex.c **** #if defined(CRS) - 58:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc_ex.c **** /** @defgroup RCCEx_Private_Constants RCCEx Private Constants - 59:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc_ex.c **** * @{ - 60:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc_ex.c **** */ - 61:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc_ex.c **** /* Bit position in register */ - 62:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc_ex.c **** #define CRS_CFGR_FELIM_BITNUMBER 16 - 63:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc_ex.c **** #define CRS_CR_TRIM_BITNUMBER 8 - 64:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc_ex.c **** #define CRS_ISR_FECAP_BITNUMBER 16 - 65:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc_ex.c **** /** - 66:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc_ex.c **** * @} - 67:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc_ex.c **** */ - 68:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc_ex.c **** #endif /* CRS */ - 69:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc_ex.c **** - 70:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc_ex.c **** /* Private macro -------------------------------------------------------------*/ - 71:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc_ex.c **** /** @defgroup RCCEx_Private_Macros RCCEx Private Macros - 72:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc_ex.c **** * @{ - 73:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc_ex.c **** */ - 74:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc_ex.c **** /** - 75:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc_ex.c **** * @} - 76:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc_ex.c **** */ - 77:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc_ex.c **** - 78:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc_ex.c **** /* Private variables ---------------------------------------------------------*/ - 79:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc_ex.c **** /* Private function prototypes -----------------------------------------------*/ - 80:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc_ex.c **** /* Private functions ---------------------------------------------------------*/ - 81:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc_ex.c **** - 82:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc_ex.c **** /** @defgroup RCCEx_Exported_Functions RCCEx Exported Functions - 83:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc_ex.c **** * @{ - 84:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc_ex.c **** */ - 85:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc_ex.c **** - 86:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc_ex.c **** /** @defgroup RCCEx_Exported_Functions_Group1 Extended Peripheral Control functions - 87:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc_ex.c **** * @brief Extended Peripheral Control functions - 88:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc_ex.c **** * - 89:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc_ex.c **** @verbatim - 90:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc_ex.c **** =============================================================================== - ARM GAS /tmp/cco9QLtT.s page 3 - - - 91:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc_ex.c **** ##### Extended Peripheral Control functions ##### - 92:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc_ex.c **** =============================================================================== - 93:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc_ex.c **** [..] - 94:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc_ex.c **** This subsection provides a set of functions allowing to control the RCC Clocks - 95:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc_ex.c **** frequencies. - 96:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc_ex.c **** [..] - 97:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc_ex.c **** (@) Important note: Care must be taken when HAL_RCCEx_PeriphCLKConfig() is used to - 98:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc_ex.c **** select the RTC clock source; in this case the Backup domain will be reset in - 99:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc_ex.c **** order to modify the RTC Clock source, as consequence RTC registers (including - 100:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc_ex.c **** the backup registers) are set to their reset values. - 101:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc_ex.c **** - 102:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc_ex.c **** @endverbatim - 103:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc_ex.c **** * @{ - 104:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc_ex.c **** */ - 105:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc_ex.c **** - 106:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc_ex.c **** /** - 107:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc_ex.c **** * @brief Initializes the RCC extended peripherals clocks according to the specified - 108:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc_ex.c **** * parameters in the RCC_PeriphCLKInitTypeDef. - 109:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc_ex.c **** * @param PeriphClkInit pointer to an RCC_PeriphCLKInitTypeDef structure that - 110:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc_ex.c **** * contains the configuration information for the Extended Peripherals clocks - 111:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc_ex.c **** * (USART, RTC, I2C, CEC and USB). - 112:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc_ex.c **** * - 113:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc_ex.c **** * @note Care must be taken when @ref HAL_RCCEx_PeriphCLKConfig() is used to select - 114:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc_ex.c **** * the RTC clock source; in this case the Backup domain will be reset in - 115:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc_ex.c **** * order to modify the RTC Clock source, as consequence RTC registers (including - 116:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc_ex.c **** * the backup registers) and RCC_BDCR register are set to their reset values. - 117:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc_ex.c **** * - 118:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc_ex.c **** * @retval HAL status - 119:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc_ex.c **** */ - 120:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc_ex.c **** HAL_StatusTypeDef HAL_RCCEx_PeriphCLKConfig(RCC_PeriphCLKInitTypeDef *PeriphClkInit) - 121:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc_ex.c **** { - 26 .loc 1 121 0 - 27 .cfi_startproc - 28 @ args = 0, pretend = 0, frame = 8 - 29 @ frame_needed = 0, uses_anonymous_args = 0 - 30 .LVL0: - 31 0000 70B5 push {r4, r5, r6, lr} - 32 .LCFI0: - 33 .cfi_def_cfa_offset 16 - 34 .cfi_offset 4, -16 - 35 .cfi_offset 5, -12 - 36 .cfi_offset 6, -8 - 37 .cfi_offset 14, -4 - 38 0002 82B0 sub sp, sp, #8 - 39 .LCFI1: - 40 .cfi_def_cfa_offset 24 - 41 0004 0400 movs r4, r0 - 42 .LVL1: - 122:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc_ex.c **** uint32_t tickstart = 0U; - 123:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc_ex.c **** uint32_t temp_reg = 0U; - 124:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc_ex.c **** - 125:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc_ex.c **** /* Check the parameters */ - 126:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc_ex.c **** assert_param(IS_RCC_PERIPHCLOCK(PeriphClkInit->PeriphClockSelection)); - 127:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc_ex.c **** - 128:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc_ex.c **** /*---------------------------- RTC configuration -------------------------------*/ - 129:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc_ex.c **** if(((PeriphClkInit->PeriphClockSelection) & RCC_PERIPHCLK_RTC) == (RCC_PERIPHCLK_RTC)) - 43 .loc 1 129 0 - ARM GAS /tmp/cco9QLtT.s page 4 - - - 44 0006 0368 ldr r3, [r0] - 45 0008 DB03 lsls r3, r3, #15 - 46 000a 35D5 bpl .L2 - 47 .LVL2: - 48 .LBB2: - 130:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc_ex.c **** { - 131:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc_ex.c **** /* check for RTC Parameters used to output RTCCLK */ - 132:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc_ex.c **** assert_param(IS_RCC_RTCCLKSOURCE(PeriphClkInit->RTCClockSelection)); - 133:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc_ex.c **** - 134:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc_ex.c **** FlagStatus pwrclkchanged = RESET; - 135:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc_ex.c **** - 136:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc_ex.c **** /* As soon as function is called to change RTC clock source, activation of the - 137:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc_ex.c **** power domain is done. */ - 138:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc_ex.c **** /* Requires to enable write access to Backup Domain of necessary */ - 139:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc_ex.c **** if(__HAL_RCC_PWR_IS_CLK_DISABLED()) - 49 .loc 1 139 0 - 50 000c 4B4B ldr r3, .L22 - 51 000e DB69 ldr r3, [r3, #28] - 52 0010 DB00 lsls r3, r3, #3 - 53 0012 66D4 bmi .L15 - 54 .LBB3: - 140:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc_ex.c **** { - 141:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc_ex.c **** __HAL_RCC_PWR_CLK_ENABLE(); - 55 .loc 1 141 0 - 56 0014 494A ldr r2, .L22 - 57 0016 D169 ldr r1, [r2, #28] - 58 0018 8020 movs r0, #128 - 59 .LVL3: - 60 001a 4005 lsls r0, r0, #21 - 61 001c 0143 orrs r1, r0 - 62 001e D161 str r1, [r2, #28] - 63 0020 D369 ldr r3, [r2, #28] - 64 0022 0340 ands r3, r0 - 65 0024 0193 str r3, [sp, #4] - 66 0026 019B ldr r3, [sp, #4] - 67 .LVL4: - 68 .LBE3: - 142:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc_ex.c **** pwrclkchanged = SET; - 69 .loc 1 142 0 - 70 0028 0125 movs r5, #1 - 71 .LVL5: - 72 .L3: - 143:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc_ex.c **** } - 144:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc_ex.c **** - 145:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc_ex.c **** if(HAL_IS_BIT_CLR(PWR->CR, PWR_CR_DBP)) - 73 .loc 1 145 0 - 74 002a 454B ldr r3, .L22+4 - 75 002c 1B68 ldr r3, [r3] - 76 002e DB05 lsls r3, r3, #23 - 77 0030 59D5 bpl .L19 - 78 .LVL6: - 79 .L4: - 146:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc_ex.c **** { - 147:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc_ex.c **** /* Enable write access to Backup domain */ - 148:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc_ex.c **** SET_BIT(PWR->CR, PWR_CR_DBP); - 149:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc_ex.c **** - 150:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc_ex.c **** /* Wait for Backup domain Write protection disable */ - ARM GAS /tmp/cco9QLtT.s page 5 - - - 151:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc_ex.c **** tickstart = HAL_GetTick(); - 152:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc_ex.c **** - 153:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc_ex.c **** while(HAL_IS_BIT_CLR(PWR->CR, PWR_CR_DBP)) - 154:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc_ex.c **** { - 155:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc_ex.c **** if((HAL_GetTick() - tickstart) > RCC_DBP_TIMEOUT_VALUE) - 156:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc_ex.c **** { - 157:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc_ex.c **** return HAL_TIMEOUT; - 158:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc_ex.c **** } - 159:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc_ex.c **** } - 160:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc_ex.c **** } - 161:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc_ex.c **** - 162:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc_ex.c **** /* Reset the Backup domain only if the RTC Clock source selection is modified from reset value - 163:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc_ex.c **** temp_reg = (RCC->BDCR & RCC_BDCR_RTCSEL); - 80 .loc 1 163 0 - 81 0032 424B ldr r3, .L22 - 82 0034 1B6A ldr r3, [r3, #32] - 83 0036 C022 movs r2, #192 - 84 0038 9200 lsls r2, r2, #2 - 85 003a 1340 ands r3, r2 - 86 .LVL7: - 164:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc_ex.c **** if((temp_reg != 0x00000000U) && (temp_reg != (PeriphClkInit->RTCClockSelection & RCC_BDCR_RTCSE - 87 .loc 1 164 0 - 88 003c 13D0 beq .L8 - 89 .loc 1 164 0 is_stmt 0 discriminator 1 - 90 003e 6168 ldr r1, [r4, #4] - 91 0040 0A40 ands r2, r1 - 92 0042 9A42 cmp r2, r3 - 93 0044 0FD0 beq .L8 - 165:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc_ex.c **** { - 166:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc_ex.c **** /* Store the content of BDCR register before the reset of Backup Domain */ - 167:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc_ex.c **** temp_reg = (RCC->BDCR & ~(RCC_BDCR_RTCSEL)); - 94 .loc 1 167 0 is_stmt 1 - 95 0046 3D4B ldr r3, .L22 - 96 .LVL8: - 97 0048 186A ldr r0, [r3, #32] - 98 004a 3E4A ldr r2, .L22+8 - 99 004c 0240 ands r2, r0 - 100 .LVL9: - 168:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc_ex.c **** /* RTC Clock selection can be changed only if the Backup Domain is reset */ - 169:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc_ex.c **** __HAL_RCC_BACKUPRESET_FORCE(); - 101 .loc 1 169 0 - 102 004e 1E6A ldr r6, [r3, #32] - 103 0050 8021 movs r1, #128 - 104 0052 4902 lsls r1, r1, #9 - 105 0054 3143 orrs r1, r6 - 106 0056 1962 str r1, [r3, #32] - 170:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc_ex.c **** __HAL_RCC_BACKUPRESET_RELEASE(); - 107 .loc 1 170 0 - 108 0058 196A ldr r1, [r3, #32] - 109 005a 3B4E ldr r6, .L22+12 - 110 005c 3140 ands r1, r6 - 111 005e 1962 str r1, [r3, #32] - 171:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc_ex.c **** /* Restore the Content of BDCR register */ - 172:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc_ex.c **** RCC->BDCR = temp_reg; - 112 .loc 1 172 0 - 113 0060 1A62 str r2, [r3, #32] - 173:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc_ex.c **** - ARM GAS /tmp/cco9QLtT.s page 6 - - - 174:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc_ex.c **** /* Wait for LSERDY if LSE was enabled */ - 175:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc_ex.c **** if (HAL_IS_BIT_SET(temp_reg, RCC_BDCR_LSEON)) - 114 .loc 1 175 0 - 115 0062 C307 lsls r3, r0, #31 - 116 0064 53D4 bmi .L20 - 117 .LVL10: - 118 .L8: - 176:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc_ex.c **** { - 177:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc_ex.c **** /* Get Start Tick */ - 178:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc_ex.c **** tickstart = HAL_GetTick(); - 179:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc_ex.c **** - 180:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc_ex.c **** /* Wait till LSE is ready */ - 181:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc_ex.c **** while(__HAL_RCC_GET_FLAG(RCC_FLAG_LSERDY) == RESET) - 182:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc_ex.c **** { - 183:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc_ex.c **** if((HAL_GetTick() - tickstart) > RCC_LSE_TIMEOUT_VALUE) - 184:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc_ex.c **** { - 185:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc_ex.c **** return HAL_TIMEOUT; - 186:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc_ex.c **** } - 187:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc_ex.c **** } - 188:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc_ex.c **** } - 189:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc_ex.c **** } - 190:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc_ex.c **** __HAL_RCC_RTC_CONFIG(PeriphClkInit->RTCClockSelection); - 119 .loc 1 190 0 - 120 0066 354A ldr r2, .L22 - 121 0068 136A ldr r3, [r2, #32] - 122 006a 3649 ldr r1, .L22+8 - 123 006c 0B40 ands r3, r1 - 124 006e 6168 ldr r1, [r4, #4] - 125 0070 0B43 orrs r3, r1 - 126 0072 1362 str r3, [r2, #32] - 191:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc_ex.c **** - 192:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc_ex.c **** /* Require to disable power clock if necessary */ - 193:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc_ex.c **** if(pwrclkchanged == SET) - 127 .loc 1 193 0 - 128 0074 012D cmp r5, #1 - 129 0076 59D0 beq .L21 - 130 .LVL11: - 131 .L2: - 132 .LBE2: - 194:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc_ex.c **** { - 195:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc_ex.c **** __HAL_RCC_PWR_CLK_DISABLE(); - 196:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc_ex.c **** } - 197:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc_ex.c **** } - 198:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc_ex.c **** - 199:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc_ex.c **** /*------------------------------- USART1 Configuration ------------------------*/ - 200:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc_ex.c **** if(((PeriphClkInit->PeriphClockSelection) & RCC_PERIPHCLK_USART1) == RCC_PERIPHCLK_USART1) - 133 .loc 1 200 0 - 134 0078 2368 ldr r3, [r4] - 135 007a DB07 lsls r3, r3, #31 - 136 007c 06D5 bpl .L11 - 201:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc_ex.c **** { - 202:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc_ex.c **** /* Check the parameters */ - 203:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc_ex.c **** assert_param(IS_RCC_USART1CLKSOURCE(PeriphClkInit->Usart1ClockSelection)); - 204:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc_ex.c **** - 205:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc_ex.c **** /* Configure the USART1 clock source */ - 206:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc_ex.c **** __HAL_RCC_USART1_CONFIG(PeriphClkInit->Usart1ClockSelection); - 137 .loc 1 206 0 - ARM GAS /tmp/cco9QLtT.s page 7 - - - 138 007e 2F4A ldr r2, .L22 - 139 0080 136B ldr r3, [r2, #48] - 140 0082 0321 movs r1, #3 - 141 0084 8B43 bics r3, r1 - 142 0086 A168 ldr r1, [r4, #8] - 143 0088 0B43 orrs r3, r1 - 144 008a 1363 str r3, [r2, #48] - 145 .L11: - 207:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc_ex.c **** } - 208:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc_ex.c **** - 209:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc_ex.c **** #if defined(STM32F071xB) || defined(STM32F072xB) || defined(STM32F078xx)\ - 210:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc_ex.c **** || defined(STM32F091xC) || defined(STM32F098xx) - 211:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc_ex.c **** /*----------------------------- USART2 Configuration --------------------------*/ - 212:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc_ex.c **** if(((PeriphClkInit->PeriphClockSelection) & RCC_PERIPHCLK_USART2) == RCC_PERIPHCLK_USART2) - 146 .loc 1 212 0 - 147 008c 2368 ldr r3, [r4] - 148 008e 9B07 lsls r3, r3, #30 - 149 0090 06D5 bpl .L12 - 213:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc_ex.c **** { - 214:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc_ex.c **** /* Check the parameters */ - 215:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc_ex.c **** assert_param(IS_RCC_USART2CLKSOURCE(PeriphClkInit->Usart2ClockSelection)); - 216:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc_ex.c **** - 217:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc_ex.c **** /* Configure the USART2 clock source */ - 218:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc_ex.c **** __HAL_RCC_USART2_CONFIG(PeriphClkInit->Usart2ClockSelection); - 150 .loc 1 218 0 - 151 0092 2A4A ldr r2, .L22 - 152 0094 136B ldr r3, [r2, #48] - 153 0096 2D49 ldr r1, .L22+16 - 154 0098 0B40 ands r3, r1 - 155 009a E168 ldr r1, [r4, #12] - 156 009c 0B43 orrs r3, r1 - 157 009e 1363 str r3, [r2, #48] - 158 .L12: - 219:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc_ex.c **** } - 220:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc_ex.c **** #endif /* STM32F071xB || STM32F072xB || STM32F078xx || */ - 221:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc_ex.c **** /* STM32F091xC || STM32F098xx */ - 222:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc_ex.c **** - 223:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc_ex.c **** #if defined(STM32F091xC) || defined(STM32F098xx) - 224:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc_ex.c **** /*----------------------------- USART3 Configuration --------------------------*/ - 225:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc_ex.c **** if(((PeriphClkInit->PeriphClockSelection) & RCC_PERIPHCLK_USART3) == RCC_PERIPHCLK_USART3) - 226:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc_ex.c **** { - 227:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc_ex.c **** /* Check the parameters */ - 228:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc_ex.c **** assert_param(IS_RCC_USART3CLKSOURCE(PeriphClkInit->Usart3ClockSelection)); - 229:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc_ex.c **** - 230:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc_ex.c **** /* Configure the USART3 clock source */ - 231:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc_ex.c **** __HAL_RCC_USART3_CONFIG(PeriphClkInit->Usart3ClockSelection); - 232:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc_ex.c **** } - 233:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc_ex.c **** #endif /* STM32F091xC || STM32F098xx */ - 234:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc_ex.c **** - 235:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc_ex.c **** /*------------------------------ I2C1 Configuration ------------------------*/ - 236:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc_ex.c **** if(((PeriphClkInit->PeriphClockSelection) & RCC_PERIPHCLK_I2C1) == RCC_PERIPHCLK_I2C1) - 159 .loc 1 236 0 - 160 00a0 2368 ldr r3, [r4] - 161 00a2 9B06 lsls r3, r3, #26 - 162 00a4 06D5 bpl .L13 - 237:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc_ex.c **** { - 238:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc_ex.c **** /* Check the parameters */ - ARM GAS /tmp/cco9QLtT.s page 8 - - - 239:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc_ex.c **** assert_param(IS_RCC_I2C1CLKSOURCE(PeriphClkInit->I2c1ClockSelection)); - 240:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc_ex.c **** - 241:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc_ex.c **** /* Configure the I2C1 clock source */ - 242:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc_ex.c **** __HAL_RCC_I2C1_CONFIG(PeriphClkInit->I2c1ClockSelection); - 163 .loc 1 242 0 - 164 00a6 254A ldr r2, .L22 - 165 00a8 136B ldr r3, [r2, #48] - 166 00aa 1021 movs r1, #16 - 167 00ac 8B43 bics r3, r1 - 168 00ae 2169 ldr r1, [r4, #16] - 169 00b0 0B43 orrs r3, r1 - 170 00b2 1363 str r3, [r2, #48] - 171 .L13: - 243:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc_ex.c **** } - 244:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc_ex.c **** - 245:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc_ex.c **** #if defined(STM32F042x6) || defined(STM32F048xx) || defined(STM32F072xB) || defined(STM32F078xx) || - 246:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc_ex.c **** /*------------------------------ USB Configuration ------------------------*/ - 247:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc_ex.c **** if(((PeriphClkInit->PeriphClockSelection) & RCC_PERIPHCLK_USB) == RCC_PERIPHCLK_USB) - 172 .loc 1 247 0 - 173 00b4 2368 ldr r3, [r4] - 174 00b6 9B03 lsls r3, r3, #14 - 175 00b8 06D5 bpl .L14 - 248:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc_ex.c **** { - 249:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc_ex.c **** /* Check the parameters */ - 250:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc_ex.c **** assert_param(IS_RCC_USBCLKSOURCE(PeriphClkInit->UsbClockSelection)); - 251:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc_ex.c **** - 252:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc_ex.c **** /* Configure the USB clock source */ - 253:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc_ex.c **** __HAL_RCC_USB_CONFIG(PeriphClkInit->UsbClockSelection); - 176 .loc 1 253 0 - 177 00ba 204A ldr r2, .L22 - 178 00bc 136B ldr r3, [r2, #48] - 179 00be 8021 movs r1, #128 - 180 00c0 8B43 bics r3, r1 - 181 00c2 A169 ldr r1, [r4, #24] - 182 00c4 0B43 orrs r3, r1 - 183 00c6 1363 str r3, [r2, #48] - 184 .L14: - 254:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc_ex.c **** } - 255:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc_ex.c **** #endif /* STM32F042x6 || STM32F048xx || STM32F072xB || STM32F078xx || STM32F070xB || STM32F070x6 */ - 256:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc_ex.c **** - 257:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc_ex.c **** #if defined(STM32F042x6) || defined(STM32F048xx)\ - 258:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc_ex.c **** || defined(STM32F051x8) || defined(STM32F058xx)\ - 259:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc_ex.c **** || defined(STM32F071xB) || defined(STM32F072xB) || defined(STM32F078xx)\ - 260:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc_ex.c **** || defined(STM32F091xC) || defined(STM32F098xx) - 261:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc_ex.c **** /*------------------------------ CEC clock Configuration -------------------*/ - 262:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc_ex.c **** if(((PeriphClkInit->PeriphClockSelection) & RCC_PERIPHCLK_CEC) == RCC_PERIPHCLK_CEC) - 185 .loc 1 262 0 - 186 00c8 2368 ldr r3, [r4] - 187 00ca 5B05 lsls r3, r3, #21 - 188 00cc 33D5 bpl .L18 - 263:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc_ex.c **** { - 264:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc_ex.c **** /* Check the parameters */ - 265:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc_ex.c **** assert_param(IS_RCC_CECCLKSOURCE(PeriphClkInit->CecClockSelection)); - 266:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc_ex.c **** - 267:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc_ex.c **** /* Configure the CEC clock source */ - 268:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc_ex.c **** __HAL_RCC_CEC_CONFIG(PeriphClkInit->CecClockSelection); - 189 .loc 1 268 0 - ARM GAS /tmp/cco9QLtT.s page 9 - - - 190 00ce 1B4A ldr r2, .L22 - 191 00d0 136B ldr r3, [r2, #48] - 192 00d2 4021 movs r1, #64 - 193 00d4 8B43 bics r3, r1 - 194 00d6 6169 ldr r1, [r4, #20] - 195 00d8 0B43 orrs r3, r1 - 196 00da 1363 str r3, [r2, #48] - 269:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc_ex.c **** } - 270:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc_ex.c **** #endif /* STM32F042x6 || STM32F048xx || */ - 271:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc_ex.c **** /* STM32F051x8 || STM32F058xx || */ - 272:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc_ex.c **** /* STM32F071xB || STM32F072xB || STM32F078xx || */ - 273:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc_ex.c **** /* STM32F091xC || STM32F098xx */ - 274:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc_ex.c **** - 275:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc_ex.c **** return HAL_OK; - 197 .loc 1 275 0 - 198 00dc 0020 movs r0, #0 - 199 .L6: - 276:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc_ex.c **** } - 200 .loc 1 276 0 - 201 00de 02B0 add sp, sp, #8 - 202 @ sp needed - 203 .LVL12: - 204 00e0 70BD pop {r4, r5, r6, pc} - 205 .LVL13: - 206 .L15: - 207 .LBB4: - 134:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc_ex.c **** - 208 .loc 1 134 0 - 209 00e2 0025 movs r5, #0 - 210 00e4 A1E7 b .L3 - 211 .LVL14: - 212 .L19: - 148:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc_ex.c **** - 213 .loc 1 148 0 - 214 00e6 164A ldr r2, .L22+4 - 215 00e8 1168 ldr r1, [r2] - 216 00ea 8023 movs r3, #128 - 217 00ec 5B00 lsls r3, r3, #1 - 218 00ee 0B43 orrs r3, r1 - 219 00f0 1360 str r3, [r2] - 151:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc_ex.c **** - 220 .loc 1 151 0 - 221 00f2 FFF7FEFF bl HAL_GetTick - 222 .LVL15: - 223 00f6 0600 movs r6, r0 - 224 .LVL16: - 225 .L5: - 153:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc_ex.c **** { - 226 .loc 1 153 0 - 227 00f8 114B ldr r3, .L22+4 - 228 00fa 1B68 ldr r3, [r3] - 229 00fc DB05 lsls r3, r3, #23 - 230 00fe 98D4 bmi .L4 - 155:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc_ex.c **** { - 231 .loc 1 155 0 - 232 0100 FFF7FEFF bl HAL_GetTick - 233 .LVL17: - ARM GAS /tmp/cco9QLtT.s page 10 - - - 234 0104 801B subs r0, r0, r6 - 235 0106 6428 cmp r0, #100 - 236 0108 F6D9 bls .L5 - 157:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc_ex.c **** } - 237 .loc 1 157 0 - 238 010a 0320 movs r0, #3 - 239 010c E7E7 b .L6 - 240 .LVL18: - 241 .L20: - 178:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc_ex.c **** - 242 .loc 1 178 0 - 243 010e FFF7FEFF bl HAL_GetTick - 244 .LVL19: - 245 0112 0600 movs r6, r0 - 246 .LVL20: - 247 .L9: - 181:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc_ex.c **** { - 248 .loc 1 181 0 - 249 0114 094B ldr r3, .L22 - 250 0116 1B6A ldr r3, [r3, #32] - 251 0118 9B07 lsls r3, r3, #30 - 252 011a A4D4 bmi .L8 - 183:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc_ex.c **** { - 253 .loc 1 183 0 - 254 011c FFF7FEFF bl HAL_GetTick - 255 .LVL21: - 256 0120 801B subs r0, r0, r6 - 257 0122 0B4B ldr r3, .L22+20 - 258 0124 9842 cmp r0, r3 - 259 0126 F5D9 bls .L9 - 185:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc_ex.c **** } - 260 .loc 1 185 0 - 261 0128 0320 movs r0, #3 - 262 012a D8E7 b .L6 - 263 .LVL22: - 264 .L21: - 195:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc_ex.c **** } - 265 .loc 1 195 0 - 266 012c D369 ldr r3, [r2, #28] - 267 012e 0949 ldr r1, .L22+24 - 268 0130 0B40 ands r3, r1 - 269 0132 D361 str r3, [r2, #28] - 270 0134 A0E7 b .L2 - 271 .LVL23: - 272 .L18: - 273 .LBE4: - 275:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc_ex.c **** } - 274 .loc 1 275 0 - 275 0136 0020 movs r0, #0 - 276 0138 D1E7 b .L6 - 277 .L23: - 278 013a C046 .align 2 - 279 .L22: - 280 013c 00100240 .word 1073876992 - 281 0140 00700040 .word 1073770496 - 282 0144 FFFCFFFF .word -769 - 283 0148 FFFFFEFF .word -65537 - ARM GAS /tmp/cco9QLtT.s page 11 - - - 284 014c FFFFFCFF .word -196609 - 285 0150 88130000 .word 5000 - 286 0154 FFFFFFEF .word -268435457 - 287 .cfi_endproc - 288 .LFE37: - 290 .section .text.HAL_RCCEx_GetPeriphCLKConfig,"ax",%progbits - 291 .align 1 - 292 .global HAL_RCCEx_GetPeriphCLKConfig - 293 .syntax unified - 294 .code 16 - 295 .thumb_func - 296 .fpu softvfp - 298 HAL_RCCEx_GetPeriphCLKConfig: - 299 .LFB38: - 277:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc_ex.c **** - 278:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc_ex.c **** /** - 279:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc_ex.c **** * @brief Get the RCC_ClkInitStruct according to the internal - 280:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc_ex.c **** * RCC configuration registers. - 281:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc_ex.c **** * @param PeriphClkInit pointer to an RCC_PeriphCLKInitTypeDef structure that - 282:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc_ex.c **** * returns the configuration information for the Extended Peripherals clocks - 283:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc_ex.c **** * (USART, RTC, I2C, CEC and USB). - 284:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc_ex.c **** * @retval None - 285:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc_ex.c **** */ - 286:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc_ex.c **** void HAL_RCCEx_GetPeriphCLKConfig(RCC_PeriphCLKInitTypeDef *PeriphClkInit) - 287:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc_ex.c **** { - 300 .loc 1 287 0 - 301 .cfi_startproc - 302 @ args = 0, pretend = 0, frame = 0 - 303 @ frame_needed = 0, uses_anonymous_args = 0 - 304 @ link register save eliminated. - 305 .LVL24: - 288:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc_ex.c **** /* Set all possible values for the extended clock type parameter------------*/ - 289:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc_ex.c **** /* Common part first */ - 290:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc_ex.c **** PeriphClkInit->PeriphClockSelection = RCC_PERIPHCLK_USART1 | RCC_PERIPHCLK_I2C1 | RCC_PERIPHCLK - 306 .loc 1 290 0 - 307 0000 114B ldr r3, .L25 - 308 0002 0360 str r3, [r0] - 291:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc_ex.c **** /* Get the RTC configuration --------------------------------------------*/ - 292:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc_ex.c **** PeriphClkInit->RTCClockSelection = __HAL_RCC_GET_RTC_SOURCE(); - 309 .loc 1 292 0 - 310 0004 114B ldr r3, .L25+4 - 311 0006 1A6A ldr r2, [r3, #32] - 312 0008 C021 movs r1, #192 - 313 000a 8900 lsls r1, r1, #2 - 314 000c 0A40 ands r2, r1 - 315 000e 4260 str r2, [r0, #4] - 293:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc_ex.c **** /* Get the USART1 clock configuration --------------------------------------------*/ - 294:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc_ex.c **** PeriphClkInit->Usart1ClockSelection = __HAL_RCC_GET_USART1_SOURCE(); - 316 .loc 1 294 0 - 317 0010 196B ldr r1, [r3, #48] - 318 0012 0322 movs r2, #3 - 319 0014 0A40 ands r2, r1 - 320 0016 8260 str r2, [r0, #8] - 295:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc_ex.c **** /* Get the I2C1 clock source -----------------------------------------------*/ - 296:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc_ex.c **** PeriphClkInit->I2c1ClockSelection = __HAL_RCC_GET_I2C1_SOURCE(); - 321 .loc 1 296 0 - 322 0018 196B ldr r1, [r3, #48] - ARM GAS /tmp/cco9QLtT.s page 12 - - - 323 001a 1022 movs r2, #16 - 324 001c 0A40 ands r2, r1 - 325 001e 0261 str r2, [r0, #16] - 297:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc_ex.c **** - 298:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc_ex.c **** #if defined(STM32F071xB) || defined(STM32F072xB) || defined(STM32F078xx)\ - 299:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc_ex.c **** || defined(STM32F091xC) || defined(STM32F098xx) - 300:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc_ex.c **** PeriphClkInit->PeriphClockSelection |= RCC_PERIPHCLK_USART2; - 326 .loc 1 300 0 - 327 0020 0B4A ldr r2, .L25+8 - 328 0022 0260 str r2, [r0] - 301:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc_ex.c **** /* Get the USART2 clock source ---------------------------------------------*/ - 302:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc_ex.c **** PeriphClkInit->Usart2ClockSelection = __HAL_RCC_GET_USART2_SOURCE(); - 329 .loc 1 302 0 - 330 0024 1A6B ldr r2, [r3, #48] - 331 0026 C021 movs r1, #192 - 332 0028 8902 lsls r1, r1, #10 - 333 002a 0A40 ands r2, r1 - 334 002c C260 str r2, [r0, #12] - 303:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc_ex.c **** #endif /* STM32F071xB || STM32F072xB || STM32F078xx || */ - 304:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc_ex.c **** /* STM32F091xC || STM32F098xx */ - 305:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc_ex.c **** - 306:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc_ex.c **** #if defined(STM32F091xC) || defined(STM32F098xx) - 307:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc_ex.c **** PeriphClkInit->PeriphClockSelection |= RCC_PERIPHCLK_USART3; - 308:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc_ex.c **** /* Get the USART3 clock source ---------------------------------------------*/ - 309:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc_ex.c **** PeriphClkInit->Usart3ClockSelection = __HAL_RCC_GET_USART3_SOURCE(); - 310:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc_ex.c **** #endif /* STM32F091xC || STM32F098xx */ - 311:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc_ex.c **** - 312:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc_ex.c **** #if defined(STM32F042x6) || defined(STM32F048xx) || defined(STM32F072xB) || defined(STM32F078xx) || - 313:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc_ex.c **** PeriphClkInit->PeriphClockSelection |= RCC_PERIPHCLK_USB; - 335 .loc 1 313 0 - 336 002e 094A ldr r2, .L25+12 - 337 0030 0260 str r2, [r0] - 314:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc_ex.c **** /* Get the USB clock source ---------------------------------------------*/ - 315:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc_ex.c **** PeriphClkInit->UsbClockSelection = __HAL_RCC_GET_USB_SOURCE(); - 338 .loc 1 315 0 - 339 0032 196B ldr r1, [r3, #48] - 340 0034 8022 movs r2, #128 - 341 0036 0A40 ands r2, r1 - 342 0038 8261 str r2, [r0, #24] - 316:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc_ex.c **** #endif /* STM32F042x6 || STM32F048xx || STM32F072xB || STM32F078xx || STM32F070xB || STM32F070x6 */ - 317:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc_ex.c **** - 318:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc_ex.c **** #if defined(STM32F042x6) || defined(STM32F048xx)\ - 319:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc_ex.c **** || defined(STM32F051x8) || defined(STM32F058xx)\ - 320:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc_ex.c **** || defined(STM32F071xB) || defined(STM32F072xB) || defined(STM32F078xx)\ - 321:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc_ex.c **** || defined(STM32F091xC) || defined(STM32F098xx) - 322:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc_ex.c **** PeriphClkInit->PeriphClockSelection |= RCC_PERIPHCLK_CEC; - 343 .loc 1 322 0 - 344 003a 074A ldr r2, .L25+16 - 345 003c 0260 str r2, [r0] - 323:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc_ex.c **** /* Get the CEC clock source ------------------------------------------------*/ - 324:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc_ex.c **** PeriphClkInit->CecClockSelection = __HAL_RCC_GET_CEC_SOURCE(); - 346 .loc 1 324 0 - 347 003e 1A6B ldr r2, [r3, #48] - 348 0040 4023 movs r3, #64 - 349 0042 1340 ands r3, r2 - 350 0044 4361 str r3, [r0, #20] - 325:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc_ex.c **** #endif /* STM32F042x6 || STM32F048xx || */ - ARM GAS /tmp/cco9QLtT.s page 13 - - - 326:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc_ex.c **** /* STM32F051x8 || STM32F058xx || */ - 327:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc_ex.c **** /* STM32F071xB || STM32F072xB || STM32F078xx || */ - 328:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc_ex.c **** /* STM32F091xC || STM32F098xx */ - 329:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc_ex.c **** - 330:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc_ex.c **** } - 351 .loc 1 330 0 - 352 @ sp needed - 353 0046 7047 bx lr - 354 .L26: - 355 .align 2 - 356 .L25: - 357 0048 21000100 .word 65569 - 358 004c 00100240 .word 1073876992 - 359 0050 23000100 .word 65571 - 360 0054 23000300 .word 196643 - 361 0058 23040300 .word 197667 - 362 .cfi_endproc - 363 .LFE38: - 365 .global __aeabi_uidiv - 366 .section .text.HAL_RCCEx_GetPeriphCLKFreq,"ax",%progbits - 367 .align 1 - 368 .global HAL_RCCEx_GetPeriphCLKFreq - 369 .syntax unified - 370 .code 16 - 371 .thumb_func - 372 .fpu softvfp - 374 HAL_RCCEx_GetPeriphCLKFreq: - 375 .LFB39: - 331:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc_ex.c **** - 332:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc_ex.c **** /** - 333:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc_ex.c **** * @brief Returns the peripheral clock frequency - 334:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc_ex.c **** * @note Returns 0 if peripheral clock is unknown - 335:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc_ex.c **** * @param PeriphClk Peripheral clock identifier - 336:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc_ex.c **** * This parameter can be one of the following values: - 337:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc_ex.c **** * @arg @ref RCC_PERIPHCLK_RTC RTC peripheral clock - 338:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc_ex.c **** * @arg @ref RCC_PERIPHCLK_USART1 USART1 peripheral clock - 339:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc_ex.c **** * @arg @ref RCC_PERIPHCLK_I2C1 I2C1 peripheral clock - 340:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc_ex.c **** @if STM32F042x6 - 341:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc_ex.c **** * @arg @ref RCC_PERIPHCLK_USB USB peripheral clock - 342:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc_ex.c **** * @arg @ref RCC_PERIPHCLK_CEC CEC peripheral clock - 343:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc_ex.c **** @endif - 344:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc_ex.c **** @if STM32F048xx - 345:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc_ex.c **** * @arg @ref RCC_PERIPHCLK_USB USB peripheral clock - 346:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc_ex.c **** * @arg @ref RCC_PERIPHCLK_CEC CEC peripheral clock - 347:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc_ex.c **** @endif - 348:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc_ex.c **** @if STM32F051x8 - 349:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc_ex.c **** * @arg @ref RCC_PERIPHCLK_CEC CEC peripheral clock - 350:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc_ex.c **** @endif - 351:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc_ex.c **** @if STM32F058xx - 352:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc_ex.c **** * @arg @ref RCC_PERIPHCLK_CEC CEC peripheral clock - 353:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc_ex.c **** @endif - 354:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc_ex.c **** @if STM32F070x6 - 355:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc_ex.c **** * @arg @ref RCC_PERIPHCLK_USB USB peripheral clock - 356:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc_ex.c **** @endif - 357:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc_ex.c **** @if STM32F070xB - 358:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc_ex.c **** * @arg @ref RCC_PERIPHCLK_USB USB peripheral clock - 359:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc_ex.c **** @endif - ARM GAS /tmp/cco9QLtT.s page 14 - - - 360:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc_ex.c **** @if STM32F071xB - 361:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc_ex.c **** * @arg @ref RCC_PERIPHCLK_USART2 USART2 peripheral clock - 362:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc_ex.c **** * @arg @ref RCC_PERIPHCLK_CEC CEC peripheral clock - 363:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc_ex.c **** @endif - 364:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc_ex.c **** @if STM32F072xB - 365:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc_ex.c **** * @arg @ref RCC_PERIPHCLK_USART2 USART2 peripheral clock - 366:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc_ex.c **** * @arg @ref RCC_PERIPHCLK_USB USB peripheral clock - 367:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc_ex.c **** * @arg @ref RCC_PERIPHCLK_CEC CEC peripheral clock - 368:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc_ex.c **** @endif - 369:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc_ex.c **** @if STM32F078xx - 370:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc_ex.c **** * @arg @ref RCC_PERIPHCLK_USART2 USART2 peripheral clock - 371:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc_ex.c **** * @arg @ref RCC_PERIPHCLK_USB USB peripheral clock - 372:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc_ex.c **** * @arg @ref RCC_PERIPHCLK_CEC CEC peripheral clock - 373:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc_ex.c **** @endif - 374:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc_ex.c **** @if STM32F091xC - 375:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc_ex.c **** * @arg @ref RCC_PERIPHCLK_USART2 USART2 peripheral clock - 376:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc_ex.c **** * @arg @ref RCC_PERIPHCLK_USART3 USART2 peripheral clock - 377:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc_ex.c **** * @arg @ref RCC_PERIPHCLK_CEC CEC peripheral clock - 378:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc_ex.c **** @endif - 379:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc_ex.c **** @if STM32F098xx - 380:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc_ex.c **** * @arg @ref RCC_PERIPHCLK_USART2 USART2 peripheral clock - 381:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc_ex.c **** * @arg @ref RCC_PERIPHCLK_USART3 USART2 peripheral clock - 382:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc_ex.c **** * @arg @ref RCC_PERIPHCLK_CEC CEC peripheral clock - 383:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc_ex.c **** @endif - 384:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc_ex.c **** * @retval Frequency in Hz (0: means that no available frequency for the peripheral) - 385:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc_ex.c **** */ - 386:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc_ex.c **** uint32_t HAL_RCCEx_GetPeriphCLKFreq(uint32_t PeriphClk) - 387:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc_ex.c **** { - 376 .loc 1 387 0 - 377 .cfi_startproc - 378 @ args = 0, pretend = 0, frame = 0 - 379 @ frame_needed = 0, uses_anonymous_args = 0 - 380 .LVL25: - 381 0000 10B5 push {r4, lr} - 382 .LCFI2: - 383 .cfi_def_cfa_offset 8 - 384 .cfi_offset 4, -8 - 385 .cfi_offset 14, -4 - 386 .LVL26: - 388:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc_ex.c **** /* frequency == 0 : means that no available frequency for the peripheral */ - 389:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc_ex.c **** uint32_t frequency = 0U; - 390:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc_ex.c **** - 391:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc_ex.c **** uint32_t srcclk = 0U; - 392:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc_ex.c **** #if defined(USB) - 393:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc_ex.c **** uint32_t pllmull = 0U, pllsource = 0U, predivfactor = 0U; - 394:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc_ex.c **** #endif /* USB */ - 395:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc_ex.c **** - 396:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc_ex.c **** /* Check the parameters */ - 397:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc_ex.c **** assert_param(IS_RCC_PERIPHCLOCK(PeriphClk)); - 398:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc_ex.c **** - 399:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc_ex.c **** switch (PeriphClk) - 387 .loc 1 399 0 - 388 0002 2028 cmp r0, #32 - 389 0004 00D1 bne .LCB374 - 390 0006 80E0 b .L29 @long jump - 391 .LCB374: - 392 0008 0FD9 bls .L67 - ARM GAS /tmp/cco9QLtT.s page 15 - - - 393 000a 8023 movs r3, #128 - 394 000c 5B02 lsls r3, r3, #9 - 395 000e 9842 cmp r0, r3 - 396 0010 23D0 beq .L33 - 397 0012 8023 movs r3, #128 - 398 0014 9B02 lsls r3, r3, #10 - 399 0016 9842 cmp r0, r3 - 400 0018 00D1 bne .LCB384 - 401 001a 86E0 b .L34 @long jump - 402 .LCB384: - 403 001c 8023 movs r3, #128 - 404 001e DB00 lsls r3, r3, #3 - 405 0020 9842 cmp r0, r3 - 406 0022 00D1 bne .LCB388 - 407 0024 B7E0 b .L68 @long jump - 408 .LCB388: - 409 .L49: - 389:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc_ex.c **** - 410 .loc 1 389 0 - 411 0026 0020 movs r0, #0 - 412 .LVL27: - 413 .L27: - 400:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc_ex.c **** { - 401:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc_ex.c **** case RCC_PERIPHCLK_RTC: - 402:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc_ex.c **** { - 403:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc_ex.c **** /* Get the current RTC source */ - 404:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc_ex.c **** srcclk = __HAL_RCC_GET_RTC_SOURCE(); - 405:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc_ex.c **** - 406:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc_ex.c **** /* Check if LSE is ready and if RTC clock selection is LSE */ - 407:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc_ex.c **** if ((srcclk == RCC_RTCCLKSOURCE_LSE) && (HAL_IS_BIT_SET(RCC->BDCR, RCC_BDCR_LSERDY))) - 408:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc_ex.c **** { - 409:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc_ex.c **** frequency = LSE_VALUE; - 410:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc_ex.c **** } - 411:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc_ex.c **** /* Check if LSI is ready and if RTC clock selection is LSI */ - 412:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc_ex.c **** else if ((srcclk == RCC_RTCCLKSOURCE_LSI) && (HAL_IS_BIT_SET(RCC->CSR, RCC_CSR_LSIRDY))) - 413:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc_ex.c **** { - 414:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc_ex.c **** frequency = LSI_VALUE; - 415:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc_ex.c **** } - 416:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc_ex.c **** /* Check if HSE is ready and if RTC clock selection is HSI_DIV32*/ - 417:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc_ex.c **** else if ((srcclk == RCC_RTCCLKSOURCE_HSE_DIV32) && (HAL_IS_BIT_SET(RCC->CR, RCC_CR_HSERDY))) - 418:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc_ex.c **** { - 419:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc_ex.c **** frequency = HSE_VALUE / 32U; - 420:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc_ex.c **** } - 421:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc_ex.c **** break; - 422:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc_ex.c **** } - 423:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc_ex.c **** case RCC_PERIPHCLK_USART1: - 424:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc_ex.c **** { - 425:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc_ex.c **** /* Get the current USART1 source */ - 426:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc_ex.c **** srcclk = __HAL_RCC_GET_USART1_SOURCE(); - 427:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc_ex.c **** - 428:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc_ex.c **** /* Check if USART1 clock selection is PCLK1 */ - 429:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc_ex.c **** if (srcclk == RCC_USART1CLKSOURCE_PCLK1) - 430:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc_ex.c **** { - 431:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc_ex.c **** frequency = HAL_RCC_GetPCLK1Freq(); - 432:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc_ex.c **** } - 433:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc_ex.c **** /* Check if HSI is ready and if USART1 clock selection is HSI */ - 434:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc_ex.c **** else if ((srcclk == RCC_USART1CLKSOURCE_HSI) && (HAL_IS_BIT_SET(RCC->CR, RCC_CR_HSIRDY))) - ARM GAS /tmp/cco9QLtT.s page 16 - - - 435:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc_ex.c **** { - 436:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc_ex.c **** frequency = HSI_VALUE; - 437:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc_ex.c **** } - 438:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc_ex.c **** /* Check if USART1 clock selection is SYSCLK */ - 439:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc_ex.c **** else if (srcclk == RCC_USART1CLKSOURCE_SYSCLK) - 440:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc_ex.c **** { - 441:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc_ex.c **** frequency = HAL_RCC_GetSysClockFreq(); - 442:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc_ex.c **** } - 443:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc_ex.c **** /* Check if LSE is ready and if USART1 clock selection is LSE */ - 444:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc_ex.c **** else if ((srcclk == RCC_USART1CLKSOURCE_LSE) && (HAL_IS_BIT_SET(RCC->BDCR, RCC_BDCR_LSERDY))) - 445:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc_ex.c **** { - 446:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc_ex.c **** frequency = LSE_VALUE; - 447:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc_ex.c **** } - 448:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc_ex.c **** break; - 449:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc_ex.c **** } - 450:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc_ex.c **** #if defined(RCC_CFGR3_USART2SW) - 451:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc_ex.c **** case RCC_PERIPHCLK_USART2: - 452:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc_ex.c **** { - 453:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc_ex.c **** /* Get the current USART2 source */ - 454:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc_ex.c **** srcclk = __HAL_RCC_GET_USART2_SOURCE(); - 455:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc_ex.c **** - 456:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc_ex.c **** /* Check if USART2 clock selection is PCLK1 */ - 457:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc_ex.c **** if (srcclk == RCC_USART2CLKSOURCE_PCLK1) - 458:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc_ex.c **** { - 459:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc_ex.c **** frequency = HAL_RCC_GetPCLK1Freq(); - 460:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc_ex.c **** } - 461:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc_ex.c **** /* Check if HSI is ready and if USART2 clock selection is HSI */ - 462:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc_ex.c **** else if ((srcclk == RCC_USART2CLKSOURCE_HSI) && (HAL_IS_BIT_SET(RCC->CR, RCC_CR_HSIRDY))) - 463:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc_ex.c **** { - 464:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc_ex.c **** frequency = HSI_VALUE; - 465:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc_ex.c **** } - 466:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc_ex.c **** /* Check if USART2 clock selection is SYSCLK */ - 467:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc_ex.c **** else if (srcclk == RCC_USART2CLKSOURCE_SYSCLK) - 468:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc_ex.c **** { - 469:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc_ex.c **** frequency = HAL_RCC_GetSysClockFreq(); - 470:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc_ex.c **** } - 471:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc_ex.c **** /* Check if LSE is ready and if USART2 clock selection is LSE */ - 472:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc_ex.c **** else if ((srcclk == RCC_USART2CLKSOURCE_LSE) && (HAL_IS_BIT_SET(RCC->BDCR, RCC_BDCR_LSERDY))) - 473:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc_ex.c **** { - 474:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc_ex.c **** frequency = LSE_VALUE; - 475:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc_ex.c **** } - 476:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc_ex.c **** break; - 477:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc_ex.c **** } - 478:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc_ex.c **** #endif /* RCC_CFGR3_USART2SW */ - 479:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc_ex.c **** #if defined(RCC_CFGR3_USART3SW) - 480:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc_ex.c **** case RCC_PERIPHCLK_USART3: - 481:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc_ex.c **** { - 482:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc_ex.c **** /* Get the current USART3 source */ - 483:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc_ex.c **** srcclk = __HAL_RCC_GET_USART3_SOURCE(); - 484:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc_ex.c **** - 485:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc_ex.c **** /* Check if USART3 clock selection is PCLK1 */ - 486:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc_ex.c **** if (srcclk == RCC_USART3CLKSOURCE_PCLK1) - 487:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc_ex.c **** { - 488:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc_ex.c **** frequency = HAL_RCC_GetPCLK1Freq(); - 489:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc_ex.c **** } - 490:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc_ex.c **** /* Check if HSI is ready and if USART3 clock selection is HSI */ - 491:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc_ex.c **** else if ((srcclk == RCC_USART3CLKSOURCE_HSI) && (HAL_IS_BIT_SET(RCC->CR, RCC_CR_HSIRDY))) - ARM GAS /tmp/cco9QLtT.s page 17 - - - 492:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc_ex.c **** { - 493:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc_ex.c **** frequency = HSI_VALUE; - 494:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc_ex.c **** } - 495:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc_ex.c **** /* Check if USART3 clock selection is SYSCLK */ - 496:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc_ex.c **** else if (srcclk == RCC_USART3CLKSOURCE_SYSCLK) - 497:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc_ex.c **** { - 498:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc_ex.c **** frequency = HAL_RCC_GetSysClockFreq(); - 499:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc_ex.c **** } - 500:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc_ex.c **** /* Check if LSE is ready and if USART3 clock selection is LSE */ - 501:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc_ex.c **** else if ((srcclk == RCC_USART3CLKSOURCE_LSE) && (HAL_IS_BIT_SET(RCC->BDCR, RCC_BDCR_LSERDY))) - 502:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc_ex.c **** { - 503:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc_ex.c **** frequency = LSE_VALUE; - 504:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc_ex.c **** } - 505:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc_ex.c **** break; - 506:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc_ex.c **** } - 507:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc_ex.c **** #endif /* RCC_CFGR3_USART3SW */ - 508:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc_ex.c **** case RCC_PERIPHCLK_I2C1: - 509:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc_ex.c **** { - 510:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc_ex.c **** /* Get the current I2C1 source */ - 511:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc_ex.c **** srcclk = __HAL_RCC_GET_I2C1_SOURCE(); - 512:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc_ex.c **** - 513:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc_ex.c **** /* Check if HSI is ready and if I2C1 clock selection is HSI */ - 514:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc_ex.c **** if ((srcclk == RCC_I2C1CLKSOURCE_HSI) && (HAL_IS_BIT_SET(RCC->CR, RCC_CR_HSIRDY))) - 515:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc_ex.c **** { - 516:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc_ex.c **** frequency = HSI_VALUE; - 517:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc_ex.c **** } - 518:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc_ex.c **** /* Check if I2C1 clock selection is SYSCLK */ - 519:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc_ex.c **** else if (srcclk == RCC_I2C1CLKSOURCE_SYSCLK) - 520:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc_ex.c **** { - 521:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc_ex.c **** frequency = HAL_RCC_GetSysClockFreq(); - 522:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc_ex.c **** } - 523:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc_ex.c **** break; - 524:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc_ex.c **** } - 525:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc_ex.c **** #if defined(USB) - 526:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc_ex.c **** case RCC_PERIPHCLK_USB: - 527:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc_ex.c **** { - 528:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc_ex.c **** /* Get the current USB source */ - 529:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc_ex.c **** srcclk = __HAL_RCC_GET_USB_SOURCE(); - 530:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc_ex.c **** - 531:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc_ex.c **** /* Check if PLL is ready and if USB clock selection is PLL */ - 532:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc_ex.c **** if ((srcclk == RCC_USBCLKSOURCE_PLL) && (HAL_IS_BIT_SET(RCC->CR, RCC_CR_PLLRDY))) - 533:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc_ex.c **** { - 534:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc_ex.c **** /* Get PLL clock source and multiplication factor ----------------------*/ - 535:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc_ex.c **** pllmull = RCC->CFGR & RCC_CFGR_PLLMUL; - 536:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc_ex.c **** pllsource = RCC->CFGR & RCC_CFGR_PLLSRC; - 537:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc_ex.c **** pllmull = (pllmull >> RCC_CFGR_PLLMUL_BITNUMBER) + 2U; - 538:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc_ex.c **** predivfactor = (RCC->CFGR2 & RCC_CFGR2_PREDIV) + 1U; - 539:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc_ex.c **** - 540:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc_ex.c **** if (pllsource == RCC_CFGR_PLLSRC_HSE_PREDIV) - 541:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc_ex.c **** { - 542:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc_ex.c **** /* HSE used as PLL clock source : frequency = HSE/PREDIV * PLLMUL */ - 543:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc_ex.c **** frequency = (HSE_VALUE/predivfactor) * pllmull; - 544:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc_ex.c **** } - 545:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc_ex.c **** #if defined(RCC_CR2_HSI48ON) - 546:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc_ex.c **** else if (pllsource == RCC_CFGR_PLLSRC_HSI48_PREDIV) - 547:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc_ex.c **** { - 548:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc_ex.c **** /* HSI48 used as PLL clock source : frequency = HSI48/PREDIV * PLLMUL */ - ARM GAS /tmp/cco9QLtT.s page 18 - - - 549:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc_ex.c **** frequency = (HSI48_VALUE / predivfactor) * pllmull; - 550:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc_ex.c **** } - 551:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc_ex.c **** #endif /* RCC_CR2_HSI48ON */ - 552:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc_ex.c **** else - 553:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc_ex.c **** { - 554:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc_ex.c **** #if defined(STM32F042x6) || defined(STM32F048xx) || defined(STM32F078xx) || defined(STM32F072xB) || - 555:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc_ex.c **** /* HSI used as PLL clock source : frequency = HSI/PREDIV * PLLMUL */ - 556:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc_ex.c **** frequency = (HSI_VALUE / predivfactor) * pllmull; - 557:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc_ex.c **** #else - 558:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc_ex.c **** /* HSI used as PLL clock source : frequency = HSI/2U * PLLMUL */ - 559:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc_ex.c **** frequency = (HSI_VALUE >> 1U) * pllmull; - 560:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc_ex.c **** #endif /* STM32F042x6 || STM32F048xx || STM32F072xB || STM32F078xx || STM32F070xB */ - 561:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc_ex.c **** } - 562:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc_ex.c **** } - 563:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc_ex.c **** #if defined(RCC_CR2_HSI48ON) - 564:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc_ex.c **** /* Check if HSI48 is ready and if USB clock selection is HSI48 */ - 565:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc_ex.c **** else if ((srcclk == RCC_USBCLKSOURCE_HSI48) && (HAL_IS_BIT_SET(RCC->CR2, RCC_CR2_HSI48RDY))) - 566:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc_ex.c **** { - 567:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc_ex.c **** frequency = HSI48_VALUE; - 568:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc_ex.c **** } - 569:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc_ex.c **** #endif /* RCC_CR2_HSI48ON */ - 570:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc_ex.c **** break; - 571:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc_ex.c **** } - 572:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc_ex.c **** #endif /* USB */ - 573:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc_ex.c **** #if defined(CEC) - 574:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc_ex.c **** case RCC_PERIPHCLK_CEC: - 575:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc_ex.c **** { - 576:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc_ex.c **** /* Get the current CEC source */ - 577:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc_ex.c **** srcclk = __HAL_RCC_GET_CEC_SOURCE(); - 578:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc_ex.c **** - 579:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc_ex.c **** /* Check if HSI is ready and if CEC clock selection is HSI */ - 580:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc_ex.c **** if ((srcclk == RCC_CECCLKSOURCE_HSI) && (HAL_IS_BIT_SET(RCC->CR, RCC_CR_HSIRDY))) - 581:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc_ex.c **** { - 582:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc_ex.c **** frequency = HSI_VALUE; - 583:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc_ex.c **** } - 584:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc_ex.c **** /* Check if LSE is ready and if CEC clock selection is LSE */ - 585:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc_ex.c **** else if ((srcclk == RCC_CECCLKSOURCE_LSE) && (HAL_IS_BIT_SET(RCC->BDCR, RCC_BDCR_LSERDY))) - 586:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc_ex.c **** { - 587:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc_ex.c **** frequency = LSE_VALUE; - 588:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc_ex.c **** } - 589:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc_ex.c **** break; - 590:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc_ex.c **** } - 591:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc_ex.c **** #endif /* CEC */ - 592:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc_ex.c **** default: - 593:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc_ex.c **** { - 594:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc_ex.c **** break; - 595:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc_ex.c **** } - 596:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc_ex.c **** } - 597:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc_ex.c **** return(frequency); - 598:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc_ex.c **** } - 414 .loc 1 598 0 - 415 @ sp needed - 416 0028 10BD pop {r4, pc} - 417 .LVL28: - 418 .L67: - 399:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc_ex.c **** { - 419 .loc 1 399 0 - ARM GAS /tmp/cco9QLtT.s page 19 - - - 420 002a 0128 cmp r0, #1 - 421 002c 3CD0 beq .L31 - 422 002e 0228 cmp r0, #2 - 423 0030 F9D1 bne .L49 - 454:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc_ex.c **** - 424 .loc 1 454 0 - 425 0032 6B4B ldr r3, .L83 - 426 0034 1B6B ldr r3, [r3, #48] - 427 0036 C022 movs r2, #192 - 428 0038 9202 lsls r2, r2, #10 - 429 003a 1340 ands r3, r2 - 430 .LVL29: - 457:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc_ex.c **** { - 431 .loc 1 457 0 - 432 003c 53D0 beq .L69 - 462:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc_ex.c **** { - 433 .loc 1 462 0 - 434 003e C022 movs r2, #192 - 435 0040 9202 lsls r2, r2, #10 - 436 0042 9342 cmp r3, r2 - 437 0044 52D0 beq .L70 - 438 .L42: - 467:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc_ex.c **** { - 439 .loc 1 467 0 - 440 0046 8022 movs r2, #128 - 441 0048 5202 lsls r2, r2, #9 - 442 004a 9342 cmp r3, r2 - 443 004c 54D0 beq .L71 - 472:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc_ex.c **** { - 444 .loc 1 472 0 - 445 004e 8022 movs r2, #128 - 446 0050 9202 lsls r2, r2, #10 - 447 0052 9342 cmp r3, r2 - 448 0054 53D0 beq .L72 - 389:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc_ex.c **** - 449 .loc 1 389 0 - 450 0056 0020 movs r0, #0 - 451 .LVL30: - 452 0058 E6E7 b .L27 - 453 .LVL31: - 454 .L33: - 404:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc_ex.c **** - 455 .loc 1 404 0 - 456 005a 614B ldr r3, .L83 - 457 005c 1B6A ldr r3, [r3, #32] - 458 005e C022 movs r2, #192 - 459 0060 9200 lsls r2, r2, #2 - 460 0062 1340 ands r3, r2 - 461 .LVL32: - 407:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc_ex.c **** { - 462 .loc 1 407 0 - 463 0064 8022 movs r2, #128 - 464 0066 5200 lsls r2, r2, #1 - 465 0068 9342 cmp r3, r2 - 466 006a 09D0 beq .L73 - 467 .L36: - 412:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc_ex.c **** { - ARM GAS /tmp/cco9QLtT.s page 20 - - - 468 .loc 1 412 0 - 469 006c 8022 movs r2, #128 - 470 006e 9200 lsls r2, r2, #2 - 471 0070 9342 cmp r3, r2 - 472 0072 0CD0 beq .L74 - 473 .L37: - 417:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc_ex.c **** { - 474 .loc 1 417 0 - 475 0074 C022 movs r2, #192 - 476 0076 9200 lsls r2, r2, #2 - 477 0078 9342 cmp r3, r2 - 478 007a 0ED0 beq .L75 - 389:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc_ex.c **** - 479 .loc 1 389 0 - 480 007c 0020 movs r0, #0 - 481 .LVL33: - 482 007e D3E7 b .L27 - 483 .LVL34: - 484 .L73: - 407:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc_ex.c **** { - 485 .loc 1 407 0 discriminator 1 - 486 0080 574A ldr r2, .L83 - 487 0082 126A ldr r2, [r2, #32] - 488 0084 9207 lsls r2, r2, #30 - 489 0086 F1D5 bpl .L36 - 409:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc_ex.c **** } - 490 .loc 1 409 0 - 491 0088 8020 movs r0, #128 - 492 .LVL35: - 493 008a 0002 lsls r0, r0, #8 - 494 008c CCE7 b .L27 - 495 .LVL36: - 496 .L74: - 412:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc_ex.c **** { - 497 .loc 1 412 0 discriminator 1 - 498 008e 544A ldr r2, .L83 - 499 0090 526A ldr r2, [r2, #36] - 500 0092 9207 lsls r2, r2, #30 - 501 0094 EED5 bpl .L37 - 414:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc_ex.c **** } - 502 .loc 1 414 0 - 503 0096 5348 ldr r0, .L83+4 - 504 .LVL37: - 505 0098 C6E7 b .L27 - 506 .LVL38: - 507 .L75: - 417:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc_ex.c **** { - 508 .loc 1 417 0 discriminator 1 - 509 009a 514B ldr r3, .L83 - 510 .LVL39: - 511 009c 1B68 ldr r3, [r3] - 512 009e 9B03 lsls r3, r3, #14 - 513 00a0 00D5 bpl .LCB506 - 514 00a2 89E0 b .L53 @long jump - 515 .LCB506: - 389:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc_ex.c **** - 516 .loc 1 389 0 - ARM GAS /tmp/cco9QLtT.s page 21 - - - 517 00a4 0020 movs r0, #0 - 518 .LVL40: - 519 00a6 BFE7 b .L27 - 520 .LVL41: - 521 .L31: - 426:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc_ex.c **** - 522 .loc 1 426 0 - 523 00a8 4D4B ldr r3, .L83 - 524 00aa 1A6B ldr r2, [r3, #48] - 525 00ac 0323 movs r3, #3 - 526 00ae 1340 ands r3, r2 - 527 .LVL42: - 429:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc_ex.c **** { - 528 .loc 1 429 0 - 529 00b0 07D0 beq .L76 - 434:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc_ex.c **** { - 530 .loc 1 434 0 - 531 00b2 032B cmp r3, #3 - 532 00b4 08D0 beq .L77 - 533 .L39: - 439:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc_ex.c **** { - 534 .loc 1 439 0 - 535 00b6 012B cmp r3, #1 - 536 00b8 0CD0 beq .L78 - 444:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc_ex.c **** { - 537 .loc 1 444 0 - 538 00ba 022B cmp r3, #2 - 539 00bc 0DD0 beq .L79 - 389:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc_ex.c **** - 540 .loc 1 389 0 - 541 00be 0020 movs r0, #0 - 542 .LVL43: - 543 00c0 B2E7 b .L27 - 544 .LVL44: - 545 .L76: - 431:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc_ex.c **** } - 546 .loc 1 431 0 - 547 00c2 FFF7FEFF bl HAL_RCC_GetPCLK1Freq - 548 .LVL45: - 549 00c6 AFE7 b .L27 - 550 .LVL46: - 551 .L77: - 434:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc_ex.c **** { - 552 .loc 1 434 0 discriminator 1 - 553 00c8 454A ldr r2, .L83 - 554 00ca 1268 ldr r2, [r2] - 555 00cc 9207 lsls r2, r2, #30 - 556 00ce F2D5 bpl .L39 - 436:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc_ex.c **** } - 557 .loc 1 436 0 - 558 00d0 4548 ldr r0, .L83+8 - 559 .LVL47: - 560 00d2 A9E7 b .L27 - 561 .LVL48: - 562 .L78: - 441:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc_ex.c **** } - 563 .loc 1 441 0 - ARM GAS /tmp/cco9QLtT.s page 22 - - - 564 00d4 FFF7FEFF bl HAL_RCC_GetSysClockFreq - 565 .LVL49: - 566 00d8 A6E7 b .L27 - 567 .LVL50: - 568 .L79: - 444:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc_ex.c **** { - 569 .loc 1 444 0 discriminator 1 - 570 00da 414B ldr r3, .L83 - 571 .LVL51: - 572 00dc 1B6A ldr r3, [r3, #32] - 573 00de 9B07 lsls r3, r3, #30 - 574 00e0 6CD4 bmi .L56 - 389:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc_ex.c **** - 575 .loc 1 389 0 - 576 00e2 0020 movs r0, #0 - 577 .LVL52: - 578 00e4 A0E7 b .L27 - 579 .LVL53: - 580 .L69: - 459:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc_ex.c **** } - 581 .loc 1 459 0 - 582 00e6 FFF7FEFF bl HAL_RCC_GetPCLK1Freq - 583 .LVL54: - 584 00ea 9DE7 b .L27 - 585 .LVL55: - 586 .L70: - 462:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc_ex.c **** { - 587 .loc 1 462 0 discriminator 1 - 588 00ec 3C4A ldr r2, .L83 - 589 00ee 1268 ldr r2, [r2] - 590 00f0 9207 lsls r2, r2, #30 - 591 00f2 A8D5 bpl .L42 - 464:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc_ex.c **** } - 592 .loc 1 464 0 - 593 00f4 3C48 ldr r0, .L83+8 - 594 .LVL56: - 595 00f6 97E7 b .L27 - 596 .LVL57: - 597 .L71: - 469:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc_ex.c **** } - 598 .loc 1 469 0 - 599 00f8 FFF7FEFF bl HAL_RCC_GetSysClockFreq - 600 .LVL58: - 601 00fc 94E7 b .L27 - 602 .LVL59: - 603 .L72: - 472:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc_ex.c **** { - 604 .loc 1 472 0 discriminator 1 - 605 00fe 384B ldr r3, .L83 - 606 .LVL60: - 607 0100 1B6A ldr r3, [r3, #32] - 608 0102 9B07 lsls r3, r3, #30 - 609 0104 5DD4 bmi .L59 - 389:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc_ex.c **** - 610 .loc 1 389 0 - 611 0106 0020 movs r0, #0 - 612 .LVL61: - ARM GAS /tmp/cco9QLtT.s page 23 - - - 613 0108 8EE7 b .L27 - 614 .LVL62: - 615 .L29: - 511:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc_ex.c **** - 616 .loc 1 511 0 - 617 010a 354B ldr r3, .L83 - 618 010c 1A6B ldr r2, [r3, #48] - 619 010e 1023 movs r3, #16 - 620 0110 1340 ands r3, r2 - 621 .LVL63: - 514:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc_ex.c **** { - 622 .loc 1 514 0 - 623 0112 03D1 bne .L44 - 514:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc_ex.c **** { - 624 .loc 1 514 0 is_stmt 0 discriminator 1 - 625 0114 324A ldr r2, .L83 - 626 0116 1268 ldr r2, [r2] - 627 0118 9207 lsls r2, r2, #30 - 628 011a 55D4 bmi .L60 - 629 .L44: - 519:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc_ex.c **** { - 630 .loc 1 519 0 is_stmt 1 - 631 011c 002B cmp r3, #0 - 632 011e 01D1 bne .L80 - 389:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc_ex.c **** - 633 .loc 1 389 0 - 634 0120 0020 movs r0, #0 - 635 .LVL64: - 636 0122 81E7 b .L27 - 637 .LVL65: - 638 .L80: - 521:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc_ex.c **** } - 639 .loc 1 521 0 - 640 0124 FFF7FEFF bl HAL_RCC_GetSysClockFreq - 641 .LVL66: - 642 0128 7EE7 b .L27 - 643 .LVL67: - 644 .L34: - 529:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc_ex.c **** - 645 .loc 1 529 0 - 646 012a 2D4B ldr r3, .L83 - 647 012c 1B6B ldr r3, [r3, #48] - 648 012e 8020 movs r0, #128 - 649 .LVL68: - 650 0130 1840 ands r0, r3 - 651 .LVL69: - 532:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc_ex.c **** { - 652 .loc 1 532 0 - 653 0132 27D0 beq .L45 - 532:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc_ex.c **** { - 654 .loc 1 532 0 is_stmt 0 discriminator 1 - 655 0134 2A4B ldr r3, .L83 - 656 0136 1B68 ldr r3, [r3] - 657 0138 9B01 lsls r3, r3, #6 - 658 013a 23D5 bpl .L45 - 535:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc_ex.c **** pllsource = RCC->CFGR & RCC_CFGR_PLLSRC; - 659 .loc 1 535 0 is_stmt 1 - ARM GAS /tmp/cco9QLtT.s page 24 - - - 660 013c 284A ldr r2, .L83 - 661 013e 5068 ldr r0, [r2, #4] - 662 .LVL70: - 536:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc_ex.c **** pllmull = (pllmull >> RCC_CFGR_PLLMUL_BITNUMBER) + 2U; - 663 .loc 1 536 0 - 664 0140 5368 ldr r3, [r2, #4] - 665 0142 C021 movs r1, #192 - 666 0144 4902 lsls r1, r1, #9 - 667 0146 0B40 ands r3, r1 - 668 .LVL71: - 537:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc_ex.c **** predivfactor = (RCC->CFGR2 & RCC_CFGR2_PREDIV) + 1U; - 669 .loc 1 537 0 - 670 0148 800C lsrs r0, r0, #18 - 671 .LVL72: - 672 014a 0F21 movs r1, #15 - 673 014c 0840 ands r0, r1 - 674 014e 841C adds r4, r0, #2 - 675 .LVL73: - 538:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc_ex.c **** - 676 .loc 1 538 0 - 677 0150 D26A ldr r2, [r2, #44] - 678 0152 1140 ands r1, r2 - 679 0154 0131 adds r1, r1, #1 - 680 .LVL74: - 540:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc_ex.c **** { - 681 .loc 1 540 0 - 682 0156 8022 movs r2, #128 - 683 0158 5202 lsls r2, r2, #9 - 684 015a 9342 cmp r3, r2 - 685 015c 08D0 beq .L81 - 546:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc_ex.c **** { - 686 .loc 1 546 0 - 687 015e C022 movs r2, #192 - 688 0160 5202 lsls r2, r2, #9 - 689 0162 9342 cmp r3, r2 - 690 0164 09D0 beq .L82 - 556:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc_ex.c **** #else - 691 .loc 1 556 0 - 692 0166 2048 ldr r0, .L83+8 - 693 0168 FFF7FEFF bl __aeabi_uidiv - 694 .LVL75: - 695 016c 6043 muls r0, r4 - 696 .LVL76: - 697 016e 5BE7 b .L27 - 698 .LVL77: - 699 .L81: - 543:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc_ex.c **** } - 700 .loc 1 543 0 - 701 0170 1D48 ldr r0, .L83+8 - 702 0172 FFF7FEFF bl __aeabi_uidiv - 703 .LVL78: - 704 0176 6043 muls r0, r4 - 705 .LVL79: - 706 0178 56E7 b .L27 - 707 .LVL80: - 708 .L82: - 549:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc_ex.c **** } - ARM GAS /tmp/cco9QLtT.s page 25 - - - 709 .loc 1 549 0 - 710 017a 1C48 ldr r0, .L83+12 - 711 017c FFF7FEFF bl __aeabi_uidiv - 712 .LVL81: - 713 0180 6043 muls r0, r4 - 714 .LVL82: - 715 0182 51E7 b .L27 - 716 .LVL83: - 717 .L45: - 565:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc_ex.c **** { - 718 .loc 1 565 0 - 719 0184 0028 cmp r0, #0 - 720 0186 21D1 bne .L62 - 565:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc_ex.c **** { - 721 .loc 1 565 0 is_stmt 0 discriminator 1 - 722 0188 154B ldr r3, .L83 - 723 018a 5B6B ldr r3, [r3, #52] - 724 018c 9B03 lsls r3, r3, #14 - 725 018e 00D4 bmi .LCB770 - 726 0190 4AE7 b .L27 @long jump - 727 .LCB770: - 567:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc_ex.c **** } - 728 .loc 1 567 0 is_stmt 1 - 729 0192 1648 ldr r0, .L83+12 - 730 .LVL84: - 731 0194 48E7 b .L27 - 732 .LVL85: - 733 .L68: - 577:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc_ex.c **** - 734 .loc 1 577 0 - 735 0196 124B ldr r3, .L83 - 736 0198 1A6B ldr r2, [r3, #48] - 737 019a 4023 movs r3, #64 - 738 019c 1340 ands r3, r2 - 739 .LVL86: - 580:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc_ex.c **** { - 740 .loc 1 580 0 - 741 019e 03D1 bne .L48 - 580:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc_ex.c **** { - 742 .loc 1 580 0 is_stmt 0 discriminator 1 - 743 01a0 0F4A ldr r2, .L83 - 744 01a2 1268 ldr r2, [r2] - 745 01a4 9207 lsls r2, r2, #30 - 746 01a6 13D4 bmi .L64 - 747 .L48: - 585:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc_ex.c **** { - 748 .loc 1 585 0 is_stmt 1 - 749 01a8 002B cmp r3, #0 - 750 01aa 13D0 beq .L65 - 585:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc_ex.c **** { - 751 .loc 1 585 0 is_stmt 0 discriminator 1 - 752 01ac 0C4B ldr r3, .L83 - 753 .LVL87: - 754 01ae 1B6A ldr r3, [r3, #32] - 755 01b0 9B07 lsls r3, r3, #30 - 756 01b2 11D4 bmi .L66 - 389:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc_ex.c **** - ARM GAS /tmp/cco9QLtT.s page 26 - - - 757 .loc 1 389 0 is_stmt 1 - 758 01b4 0020 movs r0, #0 - 759 .LVL88: - 760 01b6 37E7 b .L27 - 761 .LVL89: - 762 .L53: - 419:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc_ex.c **** } - 763 .loc 1 419 0 - 764 01b8 0D48 ldr r0, .L83+16 - 765 .LVL90: - 766 01ba 35E7 b .L27 - 767 .LVL91: - 768 .L56: - 446:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc_ex.c **** } - 769 .loc 1 446 0 - 770 01bc 8020 movs r0, #128 - 771 .LVL92: - 772 01be 0002 lsls r0, r0, #8 - 773 01c0 32E7 b .L27 - 774 .LVL93: - 775 .L59: - 474:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc_ex.c **** } - 776 .loc 1 474 0 - 777 01c2 8020 movs r0, #128 - 778 .LVL94: - 779 01c4 0002 lsls r0, r0, #8 - 780 01c6 2FE7 b .L27 - 781 .LVL95: - 782 .L60: - 516:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc_ex.c **** } - 783 .loc 1 516 0 - 784 01c8 0748 ldr r0, .L83+8 - 785 .LVL96: - 786 01ca 2DE7 b .L27 - 787 .LVL97: - 788 .L62: - 389:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc_ex.c **** - 789 .loc 1 389 0 - 790 01cc 0020 movs r0, #0 - 791 .LVL98: - 792 01ce 2BE7 b .L27 - 793 .LVL99: - 794 .L64: - 582:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc_ex.c **** } - 795 .loc 1 582 0 - 796 01d0 0548 ldr r0, .L83+8 - 797 .LVL100: - 798 01d2 29E7 b .L27 - 799 .LVL101: - 800 .L65: - 389:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc_ex.c **** - 801 .loc 1 389 0 - 802 01d4 0020 movs r0, #0 - 803 .LVL102: - 804 01d6 27E7 b .L27 - 805 .LVL103: - 806 .L66: - ARM GAS /tmp/cco9QLtT.s page 27 - - - 587:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc_ex.c **** } - 807 .loc 1 587 0 - 808 01d8 8020 movs r0, #128 - 809 .LVL104: - 810 01da 0002 lsls r0, r0, #8 - 811 .LVL105: - 597:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc_ex.c **** } - 812 .loc 1 597 0 - 813 01dc 24E7 b .L27 - 814 .L84: - 815 01de C046 .align 2 - 816 .L83: - 817 01e0 00100240 .word 1073876992 - 818 01e4 409C0000 .word 40000 - 819 01e8 00127A00 .word 8000000 - 820 01ec 006CDC02 .word 48000000 - 821 01f0 90D00300 .word 250000 - 822 .cfi_endproc - 823 .LFE39: - 825 .section .text.HAL_RCCEx_CRSConfig,"ax",%progbits - 826 .align 1 - 827 .global HAL_RCCEx_CRSConfig - 828 .syntax unified - 829 .code 16 - 830 .thumb_func - 831 .fpu softvfp - 833 HAL_RCCEx_CRSConfig: - 834 .LFB40: - 599:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc_ex.c **** - 600:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc_ex.c **** /** - 601:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc_ex.c **** * @} - 602:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc_ex.c **** */ - 603:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc_ex.c **** - 604:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc_ex.c **** #if defined(CRS) - 605:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc_ex.c **** - 606:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc_ex.c **** /** @defgroup RCCEx_Exported_Functions_Group3 Extended Clock Recovery System Control functions - 607:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc_ex.c **** * @brief Extended Clock Recovery System Control functions - 608:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc_ex.c **** * - 609:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc_ex.c **** @verbatim - 610:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc_ex.c **** =============================================================================== - 611:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc_ex.c **** ##### Extended Clock Recovery System Control functions ##### - 612:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc_ex.c **** =============================================================================== - 613:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc_ex.c **** [..] - 614:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc_ex.c **** For devices with Clock Recovery System feature (CRS), RCC Extention HAL driver can be used as - 615:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc_ex.c **** - 616:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc_ex.c **** (#) In System clock config, HSI48 needs to be enabled - 617:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc_ex.c **** - 618:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc_ex.c **** (#) Enable CRS clock in IP MSP init which will use CRS functions - 619:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc_ex.c **** - 620:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc_ex.c **** (#) Call CRS functions as follows: - 621:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc_ex.c **** (##) Prepare synchronization configuration necessary for HSI48 calibration - 622:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc_ex.c **** (+++) Default values can be set for frequency Error Measurement (reload and error lim - 623:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc_ex.c **** and also HSI48 oscillator smooth trimming. - 624:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc_ex.c **** (+++) Macro @ref __HAL_RCC_CRS_RELOADVALUE_CALCULATE can be also used to calculate - 625:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc_ex.c **** directly reload value with target and synchronization frequencies values - 626:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc_ex.c **** (##) Call function @ref HAL_RCCEx_CRSConfig which - 627:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc_ex.c **** (+++) Reset CRS registers to their default values. - ARM GAS /tmp/cco9QLtT.s page 28 - - - 628:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc_ex.c **** (+++) Configure CRS registers with synchronization configuration - 629:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc_ex.c **** (+++) Enable automatic calibration and frequency error counter feature - 630:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc_ex.c **** Note: When using USB LPM (Link Power Management) and the device is in Sleep mode, the - 631:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc_ex.c **** periodic USB SOF will not be generated by the host. No SYNC signal will therefore be - 632:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc_ex.c **** provided to the CRS to calibrate the HSI48 on the run. To guarantee the required clock - 633:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc_ex.c **** precision after waking up from Sleep mode, the LSE or reference clock on the GPIOs - 634:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc_ex.c **** should be used as SYNC signal. - 635:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc_ex.c **** - 636:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc_ex.c **** (##) A polling function is provided to wait for complete synchronization - 637:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc_ex.c **** (+++) Call function @ref HAL_RCCEx_CRSWaitSynchronization() - 638:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc_ex.c **** (+++) According to CRS status, user can decide to adjust again the calibration or con - 639:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc_ex.c **** application if synchronization is OK - 640:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc_ex.c **** - 641:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc_ex.c **** (#) User can retrieve information related to synchronization in calling function - 642:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc_ex.c **** @ref HAL_RCCEx_CRSGetSynchronizationInfo() - 643:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc_ex.c **** - 644:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc_ex.c **** (#) Regarding synchronization status and synchronization information, user can try a new cali - 645:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc_ex.c **** in changing synchronization configuration and call again HAL_RCCEx_CRSConfig. - 646:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc_ex.c **** Note: When the SYNC event is detected during the downcounting phase (before reaching the - 647:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc_ex.c **** it means that the actual frequency is lower than the target (and so, that the TRIM value - 648:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc_ex.c **** incremented), while when it is detected during the upcounting phase it means that the ac - 649:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc_ex.c **** is higher (and that the TRIM value should be decremented). - 650:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc_ex.c **** - 651:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc_ex.c **** (#) In interrupt mode, user can resort to the available macros (__HAL_RCC_CRS_XXX_IT). Interr - 652:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc_ex.c **** through CRS Handler (RCC_IRQn/RCC_IRQHandler) - 653:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc_ex.c **** (++) Call function @ref HAL_RCCEx_CRSConfig() - 654:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc_ex.c **** (++) Enable RCC_IRQn (thanks to NVIC functions) - 655:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc_ex.c **** (++) Enable CRS interrupt (@ref __HAL_RCC_CRS_ENABLE_IT) - 656:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc_ex.c **** (++) Implement CRS status management in the following user callbacks called from - 657:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc_ex.c **** HAL_RCCEx_CRS_IRQHandler(): - 658:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc_ex.c **** (+++) @ref HAL_RCCEx_CRS_SyncOkCallback() - 659:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc_ex.c **** (+++) @ref HAL_RCCEx_CRS_SyncWarnCallback() - 660:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc_ex.c **** (+++) @ref HAL_RCCEx_CRS_ExpectedSyncCallback() - 661:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc_ex.c **** (+++) @ref HAL_RCCEx_CRS_ErrorCallback() - 662:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc_ex.c **** - 663:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc_ex.c **** (#) To force a SYNC EVENT, user can use the function @ref HAL_RCCEx_CRSSoftwareSynchronizatio - 664:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc_ex.c **** This function can be called before calling @ref HAL_RCCEx_CRSConfig (for instance in Syst - 665:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc_ex.c **** - 666:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc_ex.c **** @endverbatim - 667:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc_ex.c **** * @{ - 668:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc_ex.c **** */ - 669:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc_ex.c **** - 670:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc_ex.c **** /** - 671:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc_ex.c **** * @brief Start automatic synchronization for polling mode - 672:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc_ex.c **** * @param pInit Pointer on RCC_CRSInitTypeDef structure - 673:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc_ex.c **** * @retval None - 674:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc_ex.c **** */ - 675:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc_ex.c **** void HAL_RCCEx_CRSConfig(RCC_CRSInitTypeDef *pInit) - 676:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc_ex.c **** { - 835 .loc 1 676 0 - 836 .cfi_startproc - 837 @ args = 0, pretend = 0, frame = 0 - 838 @ frame_needed = 0, uses_anonymous_args = 0 - 839 @ link register save eliminated. - 840 .LVL106: - 677:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc_ex.c **** uint32_t value = 0U; - 678:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc_ex.c **** - ARM GAS /tmp/cco9QLtT.s page 29 - - - 679:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc_ex.c **** /* Check the parameters */ - 680:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc_ex.c **** assert_param(IS_RCC_CRS_SYNC_DIV(pInit->Prescaler)); - 681:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc_ex.c **** assert_param(IS_RCC_CRS_SYNC_SOURCE(pInit->Source)); - 682:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc_ex.c **** assert_param(IS_RCC_CRS_SYNC_POLARITY(pInit->Polarity)); - 683:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc_ex.c **** assert_param(IS_RCC_CRS_RELOADVALUE(pInit->ReloadValue)); - 684:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc_ex.c **** assert_param(IS_RCC_CRS_ERRORLIMIT(pInit->ErrorLimitValue)); - 685:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc_ex.c **** assert_param(IS_RCC_CRS_HSI48CALIBRATION(pInit->HSI48CalibrationValue)); - 686:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc_ex.c **** - 687:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc_ex.c **** /* CONFIGURATION */ - 688:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc_ex.c **** - 689:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc_ex.c **** /* Before configuration, reset CRS registers to their default values*/ - 690:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc_ex.c **** __HAL_RCC_CRS_FORCE_RESET(); - 841 .loc 1 690 0 - 842 0000 104B ldr r3, .L86 - 843 0002 1969 ldr r1, [r3, #16] - 844 0004 8022 movs r2, #128 - 845 0006 1205 lsls r2, r2, #20 - 846 0008 0A43 orrs r2, r1 - 847 000a 1A61 str r2, [r3, #16] - 691:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc_ex.c **** __HAL_RCC_CRS_RELEASE_RESET(); - 848 .loc 1 691 0 - 849 000c 1A69 ldr r2, [r3, #16] - 850 000e 0E49 ldr r1, .L86+4 - 851 0010 0A40 ands r2, r1 - 852 0012 1A61 str r2, [r3, #16] - 692:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc_ex.c **** - 693:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc_ex.c **** /* Set the SYNCDIV[2:0] bits according to Prescaler value */ - 694:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc_ex.c **** /* Set the SYNCSRC[1:0] bits according to Source value */ - 695:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc_ex.c **** /* Set the SYNCSPOL bit according to Polarity value */ - 696:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc_ex.c **** value = (pInit->Prescaler | pInit->Source | pInit->Polarity); - 853 .loc 1 696 0 - 854 0014 0268 ldr r2, [r0] - 855 0016 4368 ldr r3, [r0, #4] - 856 0018 1A43 orrs r2, r3 - 857 001a 8368 ldr r3, [r0, #8] - 858 001c 1A43 orrs r2, r3 - 859 .LVL107: - 697:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc_ex.c **** /* Set the RELOAD[15:0] bits according to ReloadValue value */ - 698:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc_ex.c **** value |= pInit->ReloadValue; - 860 .loc 1 698 0 - 861 001e C368 ldr r3, [r0, #12] - 862 0020 1343 orrs r3, r2 - 863 .LVL108: - 699:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc_ex.c **** /* Set the FELIM[7:0] bits according to ErrorLimitValue value */ - 700:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc_ex.c **** value |= (pInit->ErrorLimitValue << CRS_CFGR_FELIM_BITNUMBER); - 864 .loc 1 700 0 - 865 0022 0269 ldr r2, [r0, #16] - 866 0024 1204 lsls r2, r2, #16 - 867 0026 1A43 orrs r2, r3 - 868 .LVL109: - 701:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc_ex.c **** WRITE_REG(CRS->CFGR, value); - 869 .loc 1 701 0 - 870 0028 084B ldr r3, .L86+8 - 871 002a 5A60 str r2, [r3, #4] - 702:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc_ex.c **** - 703:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc_ex.c **** /* Adjust HSI48 oscillator smooth trimming */ - 704:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc_ex.c **** /* Set the TRIM[5:0] bits according to RCC_CRS_HSI48CalibrationValue value */ - ARM GAS /tmp/cco9QLtT.s page 30 - - - 705:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc_ex.c **** MODIFY_REG(CRS->CR, CRS_CR_TRIM, (pInit->HSI48CalibrationValue << CRS_CR_TRIM_BITNUMBER)); - 872 .loc 1 705 0 - 873 002c 1A68 ldr r2, [r3] - 874 .LVL110: - 875 002e 0849 ldr r1, .L86+12 - 876 0030 0A40 ands r2, r1 - 877 0032 4169 ldr r1, [r0, #20] - 878 0034 0902 lsls r1, r1, #8 - 879 0036 0A43 orrs r2, r1 - 880 0038 1A60 str r2, [r3] - 881 .LVL111: - 706:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc_ex.c **** - 707:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc_ex.c **** /* START AUTOMATIC SYNCHRONIZATION*/ - 708:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc_ex.c **** - 709:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc_ex.c **** /* Enable Automatic trimming & Frequency error counter */ - 710:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc_ex.c **** SET_BIT(CRS->CR, CRS_CR_AUTOTRIMEN | CRS_CR_CEN); - 882 .loc 1 710 0 - 883 003a 1A68 ldr r2, [r3] - 884 003c 6021 movs r1, #96 - 885 003e 0A43 orrs r2, r1 - 886 0040 1A60 str r2, [r3] - 711:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc_ex.c **** } - 887 .loc 1 711 0 - 888 @ sp needed - 889 0042 7047 bx lr - 890 .L87: - 891 .align 2 - 892 .L86: - 893 0044 00100240 .word 1073876992 - 894 0048 FFFFFFF7 .word -134217729 - 895 004c 006C0040 .word 1073769472 - 896 0050 FFC0FFFF .word -16129 - 897 .cfi_endproc - 898 .LFE40: - 900 .section .text.HAL_RCCEx_CRSSoftwareSynchronizationGenerate,"ax",%progbits - 901 .align 1 - 902 .global HAL_RCCEx_CRSSoftwareSynchronizationGenerate - 903 .syntax unified - 904 .code 16 - 905 .thumb_func - 906 .fpu softvfp - 908 HAL_RCCEx_CRSSoftwareSynchronizationGenerate: - 909 .LFB41: - 712:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc_ex.c **** - 713:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc_ex.c **** /** - 714:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc_ex.c **** * @brief Generate the software synchronization event - 715:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc_ex.c **** * @retval None - 716:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc_ex.c **** */ - 717:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc_ex.c **** void HAL_RCCEx_CRSSoftwareSynchronizationGenerate(void) - 718:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc_ex.c **** { - 910 .loc 1 718 0 - 911 .cfi_startproc - 912 @ args = 0, pretend = 0, frame = 0 - 913 @ frame_needed = 0, uses_anonymous_args = 0 - 914 @ link register save eliminated. - 719:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc_ex.c **** SET_BIT(CRS->CR, CRS_CR_SWSYNC); - 915 .loc 1 719 0 - ARM GAS /tmp/cco9QLtT.s page 31 - - - 916 0000 024A ldr r2, .L89 - 917 0002 1368 ldr r3, [r2] - 918 0004 8021 movs r1, #128 - 919 0006 0B43 orrs r3, r1 - 920 0008 1360 str r3, [r2] - 720:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc_ex.c **** } - 921 .loc 1 720 0 - 922 @ sp needed - 923 000a 7047 bx lr - 924 .L90: - 925 .align 2 - 926 .L89: - 927 000c 006C0040 .word 1073769472 - 928 .cfi_endproc - 929 .LFE41: - 931 .section .text.HAL_RCCEx_CRSGetSynchronizationInfo,"ax",%progbits - 932 .align 1 - 933 .global HAL_RCCEx_CRSGetSynchronizationInfo - 934 .syntax unified - 935 .code 16 - 936 .thumb_func - 937 .fpu softvfp - 939 HAL_RCCEx_CRSGetSynchronizationInfo: - 940 .LFB42: - 721:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc_ex.c **** - 722:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc_ex.c **** /** - 723:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc_ex.c **** * @brief Return synchronization info - 724:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc_ex.c **** * @param pSynchroInfo Pointer on RCC_CRSSynchroInfoTypeDef structure - 725:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc_ex.c **** * @retval None - 726:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc_ex.c **** */ - 727:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc_ex.c **** void HAL_RCCEx_CRSGetSynchronizationInfo(RCC_CRSSynchroInfoTypeDef *pSynchroInfo) - 728:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc_ex.c **** { - 941 .loc 1 728 0 - 942 .cfi_startproc - 943 @ args = 0, pretend = 0, frame = 0 - 944 @ frame_needed = 0, uses_anonymous_args = 0 - 945 @ link register save eliminated. - 946 .LVL112: - 729:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc_ex.c **** /* Check the parameter */ - 730:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc_ex.c **** assert_param(pSynchroInfo != NULL); - 731:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc_ex.c **** - 732:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc_ex.c **** /* Get the reload value */ - 733:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc_ex.c **** pSynchroInfo->ReloadValue = (uint32_t)(READ_BIT(CRS->CFGR, CRS_CFGR_RELOAD)); - 947 .loc 1 733 0 - 948 0000 094A ldr r2, .L92 - 949 0002 5368 ldr r3, [r2, #4] - 950 0004 1B04 lsls r3, r3, #16 - 951 0006 1B0C lsrs r3, r3, #16 - 952 0008 0360 str r3, [r0] - 734:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc_ex.c **** - 735:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc_ex.c **** /* Get HSI48 oscillator smooth trimming */ - 736:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc_ex.c **** pSynchroInfo->HSI48CalibrationValue = (uint32_t)(READ_BIT(CRS->CR, CRS_CR_TRIM) >> CRS_CR_TRIM_BI - 953 .loc 1 736 0 - 954 000a 1168 ldr r1, [r2] - 955 000c 090A lsrs r1, r1, #8 - 956 000e 3F23 movs r3, #63 - 957 0010 0B40 ands r3, r1 - ARM GAS /tmp/cco9QLtT.s page 32 - - - 958 0012 4360 str r3, [r0, #4] - 737:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc_ex.c **** - 738:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc_ex.c **** /* Get Frequency error capture */ - 739:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc_ex.c **** pSynchroInfo->FreqErrorCapture = (uint32_t)(READ_BIT(CRS->ISR, CRS_ISR_FECAP) >> CRS_ISR_FECAP_BI - 959 .loc 1 739 0 - 960 0014 9368 ldr r3, [r2, #8] - 961 0016 1B0C lsrs r3, r3, #16 - 962 0018 8360 str r3, [r0, #8] - 740:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc_ex.c **** - 741:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc_ex.c **** /* Get Frequency error direction */ - 742:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc_ex.c **** pSynchroInfo->FreqErrorDirection = (uint32_t)(READ_BIT(CRS->ISR, CRS_ISR_FEDIR)); - 963 .loc 1 742 0 - 964 001a 9368 ldr r3, [r2, #8] - 965 001c 8022 movs r2, #128 - 966 001e 1202 lsls r2, r2, #8 - 967 0020 1340 ands r3, r2 - 968 0022 C360 str r3, [r0, #12] - 743:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc_ex.c **** } - 969 .loc 1 743 0 - 970 @ sp needed - 971 0024 7047 bx lr - 972 .L93: - 973 0026 C046 .align 2 - 974 .L92: - 975 0028 006C0040 .word 1073769472 - 976 .cfi_endproc - 977 .LFE42: - 979 .section .text.HAL_RCCEx_CRSWaitSynchronization,"ax",%progbits - 980 .align 1 - 981 .global HAL_RCCEx_CRSWaitSynchronization - 982 .syntax unified - 983 .code 16 - 984 .thumb_func - 985 .fpu softvfp - 987 HAL_RCCEx_CRSWaitSynchronization: - 988 .LFB43: - 744:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc_ex.c **** - 745:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc_ex.c **** /** - 746:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc_ex.c **** * @brief Wait for CRS Synchronization status. - 747:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc_ex.c **** * @param Timeout Duration of the timeout - 748:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc_ex.c **** * @note Timeout is based on the maximum time to receive a SYNC event based on synchronization - 749:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc_ex.c **** * frequency. - 750:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc_ex.c **** * @note If Timeout set to HAL_MAX_DELAY, HAL_TIMEOUT will be never returned. - 751:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc_ex.c **** * @retval Combination of Synchronization status - 752:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc_ex.c **** * This parameter can be a combination of the following values: - 753:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc_ex.c **** * @arg @ref RCC_CRS_TIMEOUT - 754:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc_ex.c **** * @arg @ref RCC_CRS_SYNCOK - 755:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc_ex.c **** * @arg @ref RCC_CRS_SYNCWARN - 756:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc_ex.c **** * @arg @ref RCC_CRS_SYNCERR - 757:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc_ex.c **** * @arg @ref RCC_CRS_SYNCMISS - 758:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc_ex.c **** * @arg @ref RCC_CRS_TRIMOVF - 759:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc_ex.c **** */ - 760:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc_ex.c **** uint32_t HAL_RCCEx_CRSWaitSynchronization(uint32_t Timeout) - 761:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc_ex.c **** { - 989 .loc 1 761 0 - 990 .cfi_startproc - 991 @ args = 0, pretend = 0, frame = 0 - ARM GAS /tmp/cco9QLtT.s page 33 - - - 992 @ frame_needed = 0, uses_anonymous_args = 0 - 993 .LVL113: - 994 0000 70B5 push {r4, r5, r6, lr} - 995 .LCFI3: - 996 .cfi_def_cfa_offset 16 - 997 .cfi_offset 4, -16 - 998 .cfi_offset 5, -12 - 999 .cfi_offset 6, -8 - 1000 .cfi_offset 14, -4 - 1001 0002 0500 movs r5, r0 - 1002 .LVL114: - 762:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc_ex.c **** uint32_t crsstatus = RCC_CRS_NONE; - 763:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc_ex.c **** uint32_t tickstart = 0U; - 764:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc_ex.c **** - 765:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc_ex.c **** /* Get timeout */ - 766:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc_ex.c **** tickstart = HAL_GetTick(); - 1003 .loc 1 766 0 - 1004 0004 FFF7FEFF bl HAL_GetTick - 1005 .LVL115: - 1006 0008 0600 movs r6, r0 - 1007 .LVL116: - 762:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc_ex.c **** uint32_t crsstatus = RCC_CRS_NONE; - 1008 .loc 1 762 0 - 1009 000a 0024 movs r4, #0 - 1010 000c 3AE0 b .L102 - 1011 .LVL117: - 1012 .L106: - 767:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc_ex.c **** - 768:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc_ex.c **** /* Wait for CRS flag or timeout detection */ - 769:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc_ex.c **** do - 770:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc_ex.c **** { - 771:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc_ex.c **** if(Timeout != HAL_MAX_DELAY) - 772:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc_ex.c **** { - 773:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc_ex.c **** if((Timeout == 0U) || ((HAL_GetTick() - tickstart) > Timeout)) - 1013 .loc 1 773 0 discriminator 1 - 1014 000e FFF7FEFF bl HAL_GetTick - 1015 .LVL118: - 1016 0012 801B subs r0, r0, r6 - 1017 0014 A842 cmp r0, r5 - 1018 0016 3BD8 bhi .L104 - 1019 .LVL119: - 1020 .L95: - 774:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc_ex.c **** { - 775:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc_ex.c **** crsstatus = RCC_CRS_TIMEOUT; - 776:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc_ex.c **** } - 777:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc_ex.c **** } - 778:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc_ex.c **** /* Check CRS SYNCOK flag */ - 779:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc_ex.c **** if(__HAL_RCC_CRS_GET_FLAG(RCC_CRS_FLAG_SYNCOK)) - 1021 .loc 1 779 0 - 1022 0018 1F4B ldr r3, .L107 - 1023 001a 9B68 ldr r3, [r3, #8] - 1024 001c DB07 lsls r3, r3, #31 - 1025 001e 04D5 bpl .L96 - 780:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc_ex.c **** { - 781:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc_ex.c **** /* CRS SYNC event OK */ - 782:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc_ex.c **** crsstatus |= RCC_CRS_SYNCOK; - 1026 .loc 1 782 0 - ARM GAS /tmp/cco9QLtT.s page 34 - - - 1027 0020 0223 movs r3, #2 - 1028 0022 1C43 orrs r4, r3 - 1029 .LVL120: - 783:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc_ex.c **** - 784:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc_ex.c **** /* Clear CRS SYNC event OK bit */ - 785:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc_ex.c **** __HAL_RCC_CRS_CLEAR_FLAG(RCC_CRS_FLAG_SYNCOK); - 1030 .loc 1 785 0 - 1031 0024 1C4B ldr r3, .L107 - 1032 0026 0122 movs r2, #1 - 1033 0028 DA60 str r2, [r3, #12] - 1034 .L96: - 786:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc_ex.c **** } - 787:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc_ex.c **** - 788:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc_ex.c **** /* Check CRS SYNCWARN flag */ - 789:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc_ex.c **** if(__HAL_RCC_CRS_GET_FLAG(RCC_CRS_FLAG_SYNCWARN)) - 1035 .loc 1 789 0 - 1036 002a 1B4B ldr r3, .L107 - 1037 002c 9B68 ldr r3, [r3, #8] - 1038 002e 9B07 lsls r3, r3, #30 - 1039 0030 04D5 bpl .L97 - 790:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc_ex.c **** { - 791:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc_ex.c **** /* CRS SYNC warning */ - 792:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc_ex.c **** crsstatus |= RCC_CRS_SYNCWARN; - 1040 .loc 1 792 0 - 1041 0032 0423 movs r3, #4 - 1042 0034 1C43 orrs r4, r3 - 1043 .LVL121: - 793:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc_ex.c **** - 794:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc_ex.c **** /* Clear CRS SYNCWARN bit */ - 795:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc_ex.c **** __HAL_RCC_CRS_CLEAR_FLAG(RCC_CRS_FLAG_SYNCWARN); - 1044 .loc 1 795 0 - 1045 0036 184B ldr r3, .L107 - 1046 0038 0222 movs r2, #2 - 1047 003a DA60 str r2, [r3, #12] - 1048 .L97: - 796:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc_ex.c **** } - 797:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc_ex.c **** - 798:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc_ex.c **** /* Check CRS TRIM overflow flag */ - 799:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc_ex.c **** if(__HAL_RCC_CRS_GET_FLAG(RCC_CRS_FLAG_TRIMOVF)) - 1049 .loc 1 799 0 - 1050 003c 164B ldr r3, .L107 - 1051 003e 9B68 ldr r3, [r3, #8] - 1052 0040 5B05 lsls r3, r3, #21 - 1053 0042 04D5 bpl .L98 - 800:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc_ex.c **** { - 801:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc_ex.c **** /* CRS SYNC Error */ - 802:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc_ex.c **** crsstatus |= RCC_CRS_TRIMOVF; - 1054 .loc 1 802 0 - 1055 0044 2023 movs r3, #32 - 1056 0046 1C43 orrs r4, r3 - 1057 .LVL122: - 803:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc_ex.c **** - 804:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc_ex.c **** /* Clear CRS Error bit */ - 805:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc_ex.c **** __HAL_RCC_CRS_CLEAR_FLAG(RCC_CRS_FLAG_TRIMOVF); - 1058 .loc 1 805 0 - 1059 0048 134B ldr r3, .L107 - 1060 004a 0422 movs r2, #4 - ARM GAS /tmp/cco9QLtT.s page 35 - - - 1061 004c DA60 str r2, [r3, #12] - 1062 .L98: - 806:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc_ex.c **** } - 807:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc_ex.c **** - 808:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc_ex.c **** /* Check CRS Error flag */ - 809:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc_ex.c **** if(__HAL_RCC_CRS_GET_FLAG(RCC_CRS_FLAG_SYNCERR)) - 1063 .loc 1 809 0 - 1064 004e 124B ldr r3, .L107 - 1065 0050 9B68 ldr r3, [r3, #8] - 1066 0052 DB05 lsls r3, r3, #23 - 1067 0054 04D5 bpl .L99 - 810:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc_ex.c **** { - 811:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc_ex.c **** /* CRS SYNC Error */ - 812:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc_ex.c **** crsstatus |= RCC_CRS_SYNCERR; - 1068 .loc 1 812 0 - 1069 0056 0823 movs r3, #8 - 1070 0058 1C43 orrs r4, r3 - 1071 .LVL123: - 813:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc_ex.c **** - 814:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc_ex.c **** /* Clear CRS Error bit */ - 815:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc_ex.c **** __HAL_RCC_CRS_CLEAR_FLAG(RCC_CRS_FLAG_SYNCERR); - 1072 .loc 1 815 0 - 1073 005a 0F4B ldr r3, .L107 - 1074 005c 0422 movs r2, #4 - 1075 005e DA60 str r2, [r3, #12] - 1076 .L99: - 816:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc_ex.c **** } - 817:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc_ex.c **** - 818:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc_ex.c **** /* Check CRS SYNC Missed flag */ - 819:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc_ex.c **** if(__HAL_RCC_CRS_GET_FLAG(RCC_CRS_FLAG_SYNCMISS)) - 1077 .loc 1 819 0 - 1078 0060 0D4B ldr r3, .L107 - 1079 0062 9B68 ldr r3, [r3, #8] - 1080 0064 9B05 lsls r3, r3, #22 - 1081 0066 04D5 bpl .L100 - 820:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc_ex.c **** { - 821:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc_ex.c **** /* CRS SYNC Missed */ - 822:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc_ex.c **** crsstatus |= RCC_CRS_SYNCMISS; - 1082 .loc 1 822 0 - 1083 0068 1023 movs r3, #16 - 1084 006a 1C43 orrs r4, r3 - 1085 .LVL124: - 823:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc_ex.c **** - 824:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc_ex.c **** /* Clear CRS SYNC Missed bit */ - 825:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc_ex.c **** __HAL_RCC_CRS_CLEAR_FLAG(RCC_CRS_FLAG_SYNCMISS); - 1086 .loc 1 825 0 - 1087 006c 0A4B ldr r3, .L107 - 1088 006e 0422 movs r2, #4 - 1089 0070 DA60 str r2, [r3, #12] - 1090 .L100: - 826:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc_ex.c **** } - 827:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc_ex.c **** - 828:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc_ex.c **** /* Check CRS Expected SYNC flag */ - 829:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc_ex.c **** if(__HAL_RCC_CRS_GET_FLAG(RCC_CRS_FLAG_ESYNC)) - 1091 .loc 1 829 0 - 1092 0072 094B ldr r3, .L107 - 1093 0074 9B68 ldr r3, [r3, #8] - ARM GAS /tmp/cco9QLtT.s page 36 - - - 1094 0076 1B07 lsls r3, r3, #28 - 1095 0078 02D5 bpl .L101 - 830:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc_ex.c **** { - 831:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc_ex.c **** /* frequency error counter reached a zero value */ - 832:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc_ex.c **** __HAL_RCC_CRS_CLEAR_FLAG(RCC_CRS_FLAG_ESYNC); - 1096 .loc 1 832 0 discriminator 2 - 1097 007a 074B ldr r3, .L107 - 1098 007c 0822 movs r2, #8 - 1099 007e DA60 str r2, [r3, #12] - 1100 .L101: - 833:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc_ex.c **** } - 834:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc_ex.c **** } while(RCC_CRS_NONE == crsstatus); - 1101 .loc 1 834 0 - 1102 0080 002C cmp r4, #0 - 1103 0082 07D1 bne .L105 - 1104 .LVL125: - 1105 .L102: - 771:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc_ex.c **** { - 1106 .loc 1 771 0 - 1107 0084 6B1C adds r3, r5, #1 - 1108 0086 C7D0 beq .L95 - 773:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc_ex.c **** { - 1109 .loc 1 773 0 - 1110 0088 002D cmp r5, #0 - 1111 008a C0D1 bne .L106 - 775:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc_ex.c **** } - 1112 .loc 1 775 0 - 1113 008c 0124 movs r4, #1 - 1114 .LVL126: - 1115 008e C3E7 b .L95 - 1116 .LVL127: - 1117 .L104: - 1118 0090 0124 movs r4, #1 - 1119 .LVL128: - 1120 0092 C1E7 b .L95 - 1121 .LVL129: - 1122 .L105: - 835:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc_ex.c **** - 836:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc_ex.c **** return crsstatus; - 837:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc_ex.c **** } - 1123 .loc 1 837 0 - 1124 0094 2000 movs r0, r4 - 1125 @ sp needed - 1126 .LVL130: - 1127 .LVL131: - 1128 .LVL132: - 1129 0096 70BD pop {r4, r5, r6, pc} - 1130 .L108: - 1131 .align 2 - 1132 .L107: - 1133 0098 006C0040 .word 1073769472 - 1134 .cfi_endproc - 1135 .LFE43: - 1137 .section .text.HAL_RCCEx_CRS_SyncOkCallback,"ax",%progbits - 1138 .align 1 - 1139 .weak HAL_RCCEx_CRS_SyncOkCallback - 1140 .syntax unified - ARM GAS /tmp/cco9QLtT.s page 37 - - - 1141 .code 16 - 1142 .thumb_func - 1143 .fpu softvfp - 1145 HAL_RCCEx_CRS_SyncOkCallback: - 1146 .LFB45: - 838:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc_ex.c **** - 839:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc_ex.c **** /** - 840:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc_ex.c **** * @brief Handle the Clock Recovery System interrupt request. - 841:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc_ex.c **** * @retval None - 842:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc_ex.c **** */ - 843:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc_ex.c **** void HAL_RCCEx_CRS_IRQHandler(void) - 844:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc_ex.c **** { - 845:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc_ex.c **** uint32_t crserror = RCC_CRS_NONE; - 846:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc_ex.c **** /* Get current IT flags and IT sources values */ - 847:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc_ex.c **** uint32_t itflags = READ_REG(CRS->ISR); - 848:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc_ex.c **** uint32_t itsources = READ_REG(CRS->CR); - 849:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc_ex.c **** - 850:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc_ex.c **** /* Check CRS SYNCOK flag */ - 851:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc_ex.c **** if(((itflags & RCC_CRS_FLAG_SYNCOK) != RESET) && ((itsources & RCC_CRS_IT_SYNCOK) != RESET)) - 852:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc_ex.c **** { - 853:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc_ex.c **** /* Clear CRS SYNC event OK flag */ - 854:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc_ex.c **** WRITE_REG(CRS->ICR, CRS_ICR_SYNCOKC); - 855:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc_ex.c **** - 856:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc_ex.c **** /* user callback */ - 857:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc_ex.c **** HAL_RCCEx_CRS_SyncOkCallback(); - 858:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc_ex.c **** } - 859:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc_ex.c **** /* Check CRS SYNCWARN flag */ - 860:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc_ex.c **** else if(((itflags & RCC_CRS_FLAG_SYNCWARN) != RESET) && ((itsources & RCC_CRS_IT_SYNCWARN) != RES - 861:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc_ex.c **** { - 862:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc_ex.c **** /* Clear CRS SYNCWARN flag */ - 863:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc_ex.c **** WRITE_REG(CRS->ICR, CRS_ICR_SYNCWARNC); - 864:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc_ex.c **** - 865:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc_ex.c **** /* user callback */ - 866:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc_ex.c **** HAL_RCCEx_CRS_SyncWarnCallback(); - 867:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc_ex.c **** } - 868:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc_ex.c **** /* Check CRS Expected SYNC flag */ - 869:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc_ex.c **** else if(((itflags & RCC_CRS_FLAG_ESYNC) != RESET) && ((itsources & RCC_CRS_IT_ESYNC) != RESET)) - 870:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc_ex.c **** { - 871:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc_ex.c **** /* frequency error counter reached a zero value */ - 872:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc_ex.c **** WRITE_REG(CRS->ICR, CRS_ICR_ESYNCC); - 873:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc_ex.c **** - 874:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc_ex.c **** /* user callback */ - 875:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc_ex.c **** HAL_RCCEx_CRS_ExpectedSyncCallback(); - 876:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc_ex.c **** } - 877:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc_ex.c **** /* Check CRS Error flags */ - 878:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc_ex.c **** else - 879:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc_ex.c **** { - 880:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc_ex.c **** if(((itflags & RCC_CRS_FLAG_ERR) != RESET) && ((itsources & RCC_CRS_IT_ERR) != RESET)) - 881:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc_ex.c **** { - 882:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc_ex.c **** if((itflags & RCC_CRS_FLAG_SYNCERR) != RESET) - 883:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc_ex.c **** { - 884:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc_ex.c **** crserror |= RCC_CRS_SYNCERR; - 885:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc_ex.c **** } - 886:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc_ex.c **** if((itflags & RCC_CRS_FLAG_SYNCMISS) != RESET) - 887:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc_ex.c **** { - 888:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc_ex.c **** crserror |= RCC_CRS_SYNCMISS; - 889:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc_ex.c **** } - ARM GAS /tmp/cco9QLtT.s page 38 - - - 890:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc_ex.c **** if((itflags & RCC_CRS_FLAG_TRIMOVF) != RESET) - 891:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc_ex.c **** { - 892:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc_ex.c **** crserror |= RCC_CRS_TRIMOVF; - 893:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc_ex.c **** } - 894:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc_ex.c **** - 895:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc_ex.c **** /* Clear CRS Error flags */ - 896:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc_ex.c **** WRITE_REG(CRS->ICR, CRS_ICR_ERRC); - 897:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc_ex.c **** - 898:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc_ex.c **** /* user error callback */ - 899:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc_ex.c **** HAL_RCCEx_CRS_ErrorCallback(crserror); - 900:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc_ex.c **** } - 901:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc_ex.c **** } - 902:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc_ex.c **** } - 903:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc_ex.c **** - 904:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc_ex.c **** /** - 905:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc_ex.c **** * @brief RCCEx Clock Recovery System SYNCOK interrupt callback. - 906:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc_ex.c **** * @retval none - 907:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc_ex.c **** */ - 908:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc_ex.c **** __weak void HAL_RCCEx_CRS_SyncOkCallback(void) - 909:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc_ex.c **** { - 1147 .loc 1 909 0 - 1148 .cfi_startproc - 1149 @ args = 0, pretend = 0, frame = 0 - 1150 @ frame_needed = 0, uses_anonymous_args = 0 - 1151 @ link register save eliminated. - 910:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc_ex.c **** /* NOTE : This function should not be modified, when the callback is needed, - 911:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc_ex.c **** the @ref HAL_RCCEx_CRS_SyncOkCallback should be implemented in the user file - 912:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc_ex.c **** */ - 913:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc_ex.c **** } - 1152 .loc 1 913 0 - 1153 @ sp needed - 1154 0000 7047 bx lr - 1155 .cfi_endproc - 1156 .LFE45: - 1158 .section .text.HAL_RCCEx_CRS_SyncWarnCallback,"ax",%progbits - 1159 .align 1 - 1160 .weak HAL_RCCEx_CRS_SyncWarnCallback - 1161 .syntax unified - 1162 .code 16 - 1163 .thumb_func - 1164 .fpu softvfp - 1166 HAL_RCCEx_CRS_SyncWarnCallback: - 1167 .LFB46: - 914:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc_ex.c **** - 915:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc_ex.c **** /** - 916:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc_ex.c **** * @brief RCCEx Clock Recovery System SYNCWARN interrupt callback. - 917:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc_ex.c **** * @retval none - 918:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc_ex.c **** */ - 919:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc_ex.c **** __weak void HAL_RCCEx_CRS_SyncWarnCallback(void) - 920:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc_ex.c **** { - 1168 .loc 1 920 0 - 1169 .cfi_startproc - 1170 @ args = 0, pretend = 0, frame = 0 - 1171 @ frame_needed = 0, uses_anonymous_args = 0 - 1172 @ link register save eliminated. - 921:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc_ex.c **** /* NOTE : This function should not be modified, when the callback is needed, - 922:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc_ex.c **** the @ref HAL_RCCEx_CRS_SyncWarnCallback should be implemented in the user file - ARM GAS /tmp/cco9QLtT.s page 39 - - - 923:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc_ex.c **** */ - 924:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc_ex.c **** } - 1173 .loc 1 924 0 - 1174 @ sp needed - 1175 0000 7047 bx lr - 1176 .cfi_endproc - 1177 .LFE46: - 1179 .section .text.HAL_RCCEx_CRS_ExpectedSyncCallback,"ax",%progbits - 1180 .align 1 - 1181 .weak HAL_RCCEx_CRS_ExpectedSyncCallback - 1182 .syntax unified - 1183 .code 16 - 1184 .thumb_func - 1185 .fpu softvfp - 1187 HAL_RCCEx_CRS_ExpectedSyncCallback: - 1188 .LFB47: - 925:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc_ex.c **** - 926:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc_ex.c **** /** - 927:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc_ex.c **** * @brief RCCEx Clock Recovery System Expected SYNC interrupt callback. - 928:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc_ex.c **** * @retval none - 929:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc_ex.c **** */ - 930:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc_ex.c **** __weak void HAL_RCCEx_CRS_ExpectedSyncCallback(void) - 931:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc_ex.c **** { - 1189 .loc 1 931 0 - 1190 .cfi_startproc - 1191 @ args = 0, pretend = 0, frame = 0 - 1192 @ frame_needed = 0, uses_anonymous_args = 0 - 1193 @ link register save eliminated. - 932:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc_ex.c **** /* NOTE : This function should not be modified, when the callback is needed, - 933:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc_ex.c **** the @ref HAL_RCCEx_CRS_ExpectedSyncCallback should be implemented in the user file - 934:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc_ex.c **** */ - 935:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc_ex.c **** } - 1194 .loc 1 935 0 - 1195 @ sp needed - 1196 0000 7047 bx lr - 1197 .cfi_endproc - 1198 .LFE47: - 1200 .section .text.HAL_RCCEx_CRS_ErrorCallback,"ax",%progbits - 1201 .align 1 - 1202 .weak HAL_RCCEx_CRS_ErrorCallback - 1203 .syntax unified - 1204 .code 16 - 1205 .thumb_func - 1206 .fpu softvfp - 1208 HAL_RCCEx_CRS_ErrorCallback: - 1209 .LFB48: - 936:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc_ex.c **** - 937:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc_ex.c **** /** - 938:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc_ex.c **** * @brief RCCEx Clock Recovery System Error interrupt callback. - 939:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc_ex.c **** * @param Error Combination of Error status. - 940:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc_ex.c **** * This parameter can be a combination of the following values: - 941:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc_ex.c **** * @arg @ref RCC_CRS_SYNCERR - 942:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc_ex.c **** * @arg @ref RCC_CRS_SYNCMISS - 943:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc_ex.c **** * @arg @ref RCC_CRS_TRIMOVF - 944:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc_ex.c **** * @retval none - 945:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc_ex.c **** */ - 946:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc_ex.c **** __weak void HAL_RCCEx_CRS_ErrorCallback(uint32_t Error) - ARM GAS /tmp/cco9QLtT.s page 40 - - - 947:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc_ex.c **** { - 1210 .loc 1 947 0 - 1211 .cfi_startproc - 1212 @ args = 0, pretend = 0, frame = 0 - 1213 @ frame_needed = 0, uses_anonymous_args = 0 - 1214 @ link register save eliminated. - 1215 .LVL133: - 948:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc_ex.c **** /* Prevent unused argument(s) compilation warning */ - 949:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc_ex.c **** UNUSED(Error); - 950:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc_ex.c **** - 951:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc_ex.c **** /* NOTE : This function should not be modified, when the callback is needed, - 952:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc_ex.c **** the @ref HAL_RCCEx_CRS_ErrorCallback should be implemented in the user file - 953:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc_ex.c **** */ - 954:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc_ex.c **** } - 1216 .loc 1 954 0 - 1217 @ sp needed - 1218 0000 7047 bx lr - 1219 .cfi_endproc - 1220 .LFE48: - 1222 .section .text.HAL_RCCEx_CRS_IRQHandler,"ax",%progbits - 1223 .align 1 - 1224 .global HAL_RCCEx_CRS_IRQHandler - 1225 .syntax unified - 1226 .code 16 - 1227 .thumb_func - 1228 .fpu softvfp - 1230 HAL_RCCEx_CRS_IRQHandler: - 1231 .LFB44: - 844:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc_ex.c **** uint32_t crserror = RCC_CRS_NONE; - 1232 .loc 1 844 0 - 1233 .cfi_startproc - 1234 @ args = 0, pretend = 0, frame = 0 - 1235 @ frame_needed = 0, uses_anonymous_args = 0 - 1236 0000 10B5 push {r4, lr} - 1237 .LCFI4: - 1238 .cfi_def_cfa_offset 8 - 1239 .cfi_offset 4, -8 - 1240 .cfi_offset 14, -4 - 1241 .LVL134: - 847:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc_ex.c **** uint32_t itsources = READ_REG(CRS->CR); - 1242 .loc 1 847 0 - 1243 0002 1C4A ldr r2, .L125 - 1244 0004 9368 ldr r3, [r2, #8] - 1245 .LVL135: - 848:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc_ex.c **** - 1246 .loc 1 848 0 - 1247 0006 1268 ldr r2, [r2] - 1248 .LVL136: - 851:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc_ex.c **** { - 1249 .loc 1 851 0 - 1250 0008 D907 lsls r1, r3, #31 - 1251 000a 01D5 bpl .L114 - 851:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc_ex.c **** { - 1252 .loc 1 851 0 is_stmt 0 discriminator 1 - 1253 000c D107 lsls r1, r2, #31 - 1254 000e 1CD4 bmi .L122 - 1255 .L114: - ARM GAS /tmp/cco9QLtT.s page 41 - - - 860:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc_ex.c **** { - 1256 .loc 1 860 0 is_stmt 1 - 1257 0010 9907 lsls r1, r3, #30 - 1258 0012 01D5 bpl .L116 - 860:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc_ex.c **** { - 1259 .loc 1 860 0 is_stmt 0 discriminator 1 - 1260 0014 9107 lsls r1, r2, #30 - 1261 0016 1ED4 bmi .L123 - 1262 .L116: - 869:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc_ex.c **** { - 1263 .loc 1 869 0 is_stmt 1 - 1264 0018 1907 lsls r1, r3, #28 - 1265 001a 01D5 bpl .L117 - 869:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc_ex.c **** { - 1266 .loc 1 869 0 is_stmt 0 discriminator 1 - 1267 001c 1107 lsls r1, r2, #28 - 1268 001e 20D4 bmi .L124 - 1269 .L117: - 880:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc_ex.c **** { - 1270 .loc 1 880 0 is_stmt 1 - 1271 0020 5907 lsls r1, r3, #29 - 1272 0022 11D5 bpl .L113 - 880:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc_ex.c **** { - 1273 .loc 1 880 0 is_stmt 0 discriminator 1 - 1274 0024 5207 lsls r2, r2, #29 - 1275 0026 0FD5 bpl .L113 - 1276 .LVL137: - 882:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc_ex.c **** { - 1277 .loc 1 882 0 is_stmt 1 - 1278 0028 DA05 lsls r2, r3, #23 - 1279 002a 20D4 bmi .L121 - 845:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc_ex.c **** /* Get current IT flags and IT sources values */ - 1280 .loc 1 845 0 - 1281 002c 0020 movs r0, #0 - 1282 .L118: - 1283 .LVL138: - 886:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc_ex.c **** { - 1284 .loc 1 886 0 - 1285 002e 9A05 lsls r2, r3, #22 - 1286 0030 01D5 bpl .L119 - 888:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc_ex.c **** } - 1287 .loc 1 888 0 - 1288 0032 1022 movs r2, #16 - 1289 0034 1043 orrs r0, r2 - 1290 .LVL139: - 1291 .L119: - 890:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc_ex.c **** { - 1292 .loc 1 890 0 - 1293 0036 5B05 lsls r3, r3, #21 - 1294 0038 01D5 bpl .L120 - 1295 .LVL140: - 892:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc_ex.c **** } - 1296 .loc 1 892 0 - 1297 003a 2023 movs r3, #32 - 1298 003c 1843 orrs r0, r3 - 1299 .LVL141: - 1300 .L120: - ARM GAS /tmp/cco9QLtT.s page 42 - - - 896:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc_ex.c **** - 1301 .loc 1 896 0 - 1302 003e 0D4B ldr r3, .L125 - 1303 0040 0422 movs r2, #4 - 1304 0042 DA60 str r2, [r3, #12] - 899:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc_ex.c **** } - 1305 .loc 1 899 0 - 1306 0044 FFF7FEFF bl HAL_RCCEx_CRS_ErrorCallback - 1307 .LVL142: - 1308 .L113: - 902:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc_ex.c **** - 1309 .loc 1 902 0 - 1310 @ sp needed - 1311 0048 10BD pop {r4, pc} - 1312 .LVL143: - 1313 .L122: - 854:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc_ex.c **** - 1314 .loc 1 854 0 - 1315 004a 0A4B ldr r3, .L125 - 1316 .LVL144: - 1317 004c 0122 movs r2, #1 - 1318 .LVL145: - 1319 004e DA60 str r2, [r3, #12] - 857:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc_ex.c **** } - 1320 .loc 1 857 0 - 1321 0050 FFF7FEFF bl HAL_RCCEx_CRS_SyncOkCallback - 1322 .LVL146: - 1323 0054 F8E7 b .L113 - 1324 .LVL147: - 1325 .L123: - 863:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc_ex.c **** - 1326 .loc 1 863 0 - 1327 0056 074B ldr r3, .L125 - 1328 .LVL148: - 1329 0058 0222 movs r2, #2 - 1330 .LVL149: - 1331 005a DA60 str r2, [r3, #12] - 866:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc_ex.c **** } - 1332 .loc 1 866 0 - 1333 005c FFF7FEFF bl HAL_RCCEx_CRS_SyncWarnCallback - 1334 .LVL150: - 1335 0060 F2E7 b .L113 - 1336 .LVL151: - 1337 .L124: - 872:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc_ex.c **** - 1338 .loc 1 872 0 - 1339 0062 044B ldr r3, .L125 - 1340 .LVL152: - 1341 0064 0822 movs r2, #8 - 1342 .LVL153: - 1343 0066 DA60 str r2, [r3, #12] - 875:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc_ex.c **** } - 1344 .loc 1 875 0 - 1345 0068 FFF7FEFF bl HAL_RCCEx_CRS_ExpectedSyncCallback - 1346 .LVL154: - 1347 006c ECE7 b .L113 - 1348 .LVL155: - ARM GAS /tmp/cco9QLtT.s page 43 - - - 1349 .L121: - 884:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc_ex.c **** } - 1350 .loc 1 884 0 - 1351 006e 0820 movs r0, #8 - 1352 0070 DDE7 b .L118 - 1353 .L126: - 1354 0072 C046 .align 2 - 1355 .L125: - 1356 0074 006C0040 .word 1073769472 - 1357 .cfi_endproc - 1358 .LFE44: - 1360 .text - 1361 .Letext0: - 1362 .file 2 "/home/janhenrik/programme/gcc-arm-none-eabi-7-2018-q2-update/arm-none-eabi/include/machin - 1363 .file 3 "/home/janhenrik/programme/gcc-arm-none-eabi-7-2018-q2-update/arm-none-eabi/include/sys/_s - 1364 .file 4 "Drivers/CMSIS/Device/ST/STM32F0xx/Include/system_stm32f0xx.h" - 1365 .file 5 "Drivers/CMSIS/Device/ST/STM32F0xx/Include/stm32f072xb.h" - 1366 .file 6 "Drivers/CMSIS/Device/ST/STM32F0xx/Include/stm32f0xx.h" - 1367 .file 7 "/home/janhenrik/programme/gcc-arm-none-eabi-7-2018-q2-update/arm-none-eabi/include/sys/lo - 1368 .file 8 "/home/janhenrik/programme/gcc-arm-none-eabi-7-2018-q2-update/arm-none-eabi/include/sys/_t - 1369 .file 9 "/home/janhenrik/programme/gcc-arm-none-eabi-7-2018-q2-update/lib/gcc/arm-none-eabi/7.3.1/ - 1370 .file 10 "/home/janhenrik/programme/gcc-arm-none-eabi-7-2018-q2-update/arm-none-eabi/include/sys/r - 1371 .file 11 "Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_def.h" - 1372 .file 12 "Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_rcc_ex.h" - 1373 .file 13 "Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal.h" - 1374 .file 14 "Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_rcc.h" - ARM GAS /tmp/cco9QLtT.s page 44 - - -DEFINED SYMBOLS - *ABS*:0000000000000000 stm32f0xx_hal_rcc_ex.c - /tmp/cco9QLtT.s:16 .text.HAL_RCCEx_PeriphCLKConfig:0000000000000000 $t - /tmp/cco9QLtT.s:23 .text.HAL_RCCEx_PeriphCLKConfig:0000000000000000 HAL_RCCEx_PeriphCLKConfig - /tmp/cco9QLtT.s:280 .text.HAL_RCCEx_PeriphCLKConfig:000000000000013c $d - /tmp/cco9QLtT.s:291 .text.HAL_RCCEx_GetPeriphCLKConfig:0000000000000000 $t - /tmp/cco9QLtT.s:298 .text.HAL_RCCEx_GetPeriphCLKConfig:0000000000000000 HAL_RCCEx_GetPeriphCLKConfig - /tmp/cco9QLtT.s:357 .text.HAL_RCCEx_GetPeriphCLKConfig:0000000000000048 $d - /tmp/cco9QLtT.s:367 .text.HAL_RCCEx_GetPeriphCLKFreq:0000000000000000 $t - /tmp/cco9QLtT.s:374 .text.HAL_RCCEx_GetPeriphCLKFreq:0000000000000000 HAL_RCCEx_GetPeriphCLKFreq - /tmp/cco9QLtT.s:817 .text.HAL_RCCEx_GetPeriphCLKFreq:00000000000001e0 $d - /tmp/cco9QLtT.s:826 .text.HAL_RCCEx_CRSConfig:0000000000000000 $t - /tmp/cco9QLtT.s:833 .text.HAL_RCCEx_CRSConfig:0000000000000000 HAL_RCCEx_CRSConfig - /tmp/cco9QLtT.s:893 .text.HAL_RCCEx_CRSConfig:0000000000000044 $d - /tmp/cco9QLtT.s:901 .text.HAL_RCCEx_CRSSoftwareSynchronizationGenerate:0000000000000000 $t - /tmp/cco9QLtT.s:908 .text.HAL_RCCEx_CRSSoftwareSynchronizationGenerate:0000000000000000 HAL_RCCEx_CRSSoftwareSynchronizationGenerate - /tmp/cco9QLtT.s:927 .text.HAL_RCCEx_CRSSoftwareSynchronizationGenerate:000000000000000c $d - /tmp/cco9QLtT.s:932 .text.HAL_RCCEx_CRSGetSynchronizationInfo:0000000000000000 $t - /tmp/cco9QLtT.s:939 .text.HAL_RCCEx_CRSGetSynchronizationInfo:0000000000000000 HAL_RCCEx_CRSGetSynchronizationInfo - /tmp/cco9QLtT.s:975 .text.HAL_RCCEx_CRSGetSynchronizationInfo:0000000000000028 $d - /tmp/cco9QLtT.s:980 .text.HAL_RCCEx_CRSWaitSynchronization:0000000000000000 $t - /tmp/cco9QLtT.s:987 .text.HAL_RCCEx_CRSWaitSynchronization:0000000000000000 HAL_RCCEx_CRSWaitSynchronization - /tmp/cco9QLtT.s:1133 .text.HAL_RCCEx_CRSWaitSynchronization:0000000000000098 $d - /tmp/cco9QLtT.s:1138 .text.HAL_RCCEx_CRS_SyncOkCallback:0000000000000000 $t - /tmp/cco9QLtT.s:1145 .text.HAL_RCCEx_CRS_SyncOkCallback:0000000000000000 HAL_RCCEx_CRS_SyncOkCallback - /tmp/cco9QLtT.s:1159 .text.HAL_RCCEx_CRS_SyncWarnCallback:0000000000000000 $t - /tmp/cco9QLtT.s:1166 .text.HAL_RCCEx_CRS_SyncWarnCallback:0000000000000000 HAL_RCCEx_CRS_SyncWarnCallback - /tmp/cco9QLtT.s:1180 .text.HAL_RCCEx_CRS_ExpectedSyncCallback:0000000000000000 $t - /tmp/cco9QLtT.s:1187 .text.HAL_RCCEx_CRS_ExpectedSyncCallback:0000000000000000 HAL_RCCEx_CRS_ExpectedSyncCallback - /tmp/cco9QLtT.s:1201 .text.HAL_RCCEx_CRS_ErrorCallback:0000000000000000 $t - /tmp/cco9QLtT.s:1208 .text.HAL_RCCEx_CRS_ErrorCallback:0000000000000000 HAL_RCCEx_CRS_ErrorCallback - /tmp/cco9QLtT.s:1223 .text.HAL_RCCEx_CRS_IRQHandler:0000000000000000 $t - /tmp/cco9QLtT.s:1230 .text.HAL_RCCEx_CRS_IRQHandler:0000000000000000 HAL_RCCEx_CRS_IRQHandler - /tmp/cco9QLtT.s:1356 .text.HAL_RCCEx_CRS_IRQHandler:0000000000000074 $d - -UNDEFINED SYMBOLS -HAL_GetTick -__aeabi_uidiv -HAL_RCC_GetPCLK1Freq -HAL_RCC_GetSysClockFreq diff --git a/firmware/build/stm32f0xx_hal_rcc_ex.o b/firmware/build/stm32f0xx_hal_rcc_ex.o deleted file mode 100644 index 56f31ec..0000000 Binary files a/firmware/build/stm32f0xx_hal_rcc_ex.o and /dev/null differ diff --git a/firmware/build/stm32f0xx_hal_tim.d b/firmware/build/stm32f0xx_hal_tim.d deleted file mode 100644 index 95dbf44..0000000 --- a/firmware/build/stm32f0xx_hal_tim.d +++ /dev/null @@ -1,87 +0,0 @@ -build/stm32f0xx_hal_tim.o: \ - Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c \ - Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal.h \ - Inc/stm32f0xx_hal_conf.h \ - Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_rcc.h \ - Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_def.h \ - Drivers/CMSIS/Device/ST/STM32F0xx/Include/stm32f0xx.h \ - Drivers/CMSIS/Device/ST/STM32F0xx/Include/stm32f072xb.h \ - Drivers/CMSIS/Include/core_cm0.h Drivers/CMSIS/Include/core_cmInstr.h \ - Drivers/CMSIS/Include/cmsis_gcc.h Drivers/CMSIS/Include/core_cmFunc.h \ - Drivers/CMSIS/Device/ST/STM32F0xx/Include/system_stm32f0xx.h \ - Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_rcc_ex.h \ - Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_gpio.h \ - Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_gpio_ex.h \ - Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_dma.h \ - Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_dma_ex.h \ - Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_cortex.h \ - Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_adc.h \ - Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_adc_ex.h \ - Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_flash.h \ - Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_flash_ex.h \ - Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_i2c.h \ - Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_i2c_ex.h \ - Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_pcd.h \ - Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_pcd_ex.h \ - Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_pwr.h \ - Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_pwr_ex.h \ - Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_tim.h \ - Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_tim_ex.h - -Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal.h: - -Inc/stm32f0xx_hal_conf.h: - -Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_rcc.h: - -Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_def.h: - -Drivers/CMSIS/Device/ST/STM32F0xx/Include/stm32f0xx.h: - -Drivers/CMSIS/Device/ST/STM32F0xx/Include/stm32f072xb.h: - -Drivers/CMSIS/Include/core_cm0.h: - -Drivers/CMSIS/Include/core_cmInstr.h: - -Drivers/CMSIS/Include/cmsis_gcc.h: - -Drivers/CMSIS/Include/core_cmFunc.h: - -Drivers/CMSIS/Device/ST/STM32F0xx/Include/system_stm32f0xx.h: - -Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_rcc_ex.h: - -Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_gpio.h: - -Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_gpio_ex.h: - -Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_dma.h: - -Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_dma_ex.h: - -Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_cortex.h: - -Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_adc.h: - -Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_adc_ex.h: - -Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_flash.h: - -Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_flash_ex.h: - -Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_i2c.h: - -Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_i2c_ex.h: - -Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_pcd.h: - -Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_pcd_ex.h: - -Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_pwr.h: - -Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_pwr_ex.h: - -Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_tim.h: - -Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_tim_ex.h: diff --git a/firmware/build/stm32f0xx_hal_tim.lst b/firmware/build/stm32f0xx_hal_tim.lst deleted file mode 100644 index e9c10c9..0000000 --- a/firmware/build/stm32f0xx_hal_tim.lst +++ /dev/null @@ -1,17264 +0,0 @@ -ARM GAS /tmp/cccrAAAm.s page 1 - - - 1 .cpu cortex-m0 - 2 .eabi_attribute 20, 1 - 3 .eabi_attribute 21, 1 - 4 .eabi_attribute 23, 3 - 5 .eabi_attribute 24, 1 - 6 .eabi_attribute 25, 1 - 7 .eabi_attribute 26, 1 - 8 .eabi_attribute 30, 1 - 9 .eabi_attribute 34, 0 - 10 .eabi_attribute 18, 4 - 11 .file "stm32f0xx_hal_tim.c" - 12 .text - 13 .Ltext0: - 14 .cfi_sections .debug_frame - 15 .section .text.TIM_OC1_SetConfig,"ax",%progbits - 16 .align 1 - 17 .syntax unified - 18 .code 16 - 19 .thumb_func - 20 .fpu softvfp - 22 TIM_OC1_SetConfig: - 23 .LFB131: - 24 .file 1 "Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c" - 1:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** /** - 2:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** ****************************************************************************** - 3:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** * @file stm32f0xx_hal_tim.c - 4:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** * @author MCD Application Team - 5:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** * @brief TIM HAL module driver. - 6:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** * This file provides firmware functions to manage the following - 7:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** * functionalities of the Timer (TIM) peripheral: - 8:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** * + Time Base Initialization - 9:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** * + Time Base Start - 10:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** * + Time Base Start Interruption - 11:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** * + Time Base Start DMA - 12:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** * + Time Output Compare/PWM Initialization - 13:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** * + Time Output Compare/PWM Channel Configuration - 14:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** * + Time Output Compare/PWM Start - 15:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** * + Time Output Compare/PWM Start Interruption - 16:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** * + Time Output Compare/PWM Start DMA - 17:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** * + Time Input Capture Initialization - 18:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** * + Time Input Capture Channel Configuration - 19:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** * + Time Input Capture Start - 20:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** * + Time Input Capture Start Interruption - 21:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** * + Time Input Capture Start DMA - 22:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** * + Time One Pulse Initialization - 23:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** * + Time One Pulse Channel Configuration - 24:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** * + Time One Pulse Start - 25:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** * + Time Encoder Interface Initialization - 26:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** * + Time Encoder Interface Start - 27:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** * + Time Encoder Interface Start Interruption - 28:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** * + Time Encoder Interface Start DMA - 29:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** * + Commutation Event configuration with Interruption and DMA - 30:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** * + Time OCRef clear configuration - 31:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** * + Time External Clock configuration - 32:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** @verbatim - 33:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** ============================================================================== - 34:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** ##### TIMER Generic features ##### - ARM GAS /tmp/cccrAAAm.s page 2 - - - 35:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** ============================================================================== - 36:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** [..] The Timer features include: - 37:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** (#) 16-bit up, down, up/down auto-reload counter. - 38:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** (#) 16-bit programmable prescaler allowing dividing (also on the fly) the - 39:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** counter clock frequency either by any factor between 1 and 65536. - 40:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** (#) Up to 4 independent channels for: - 41:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** (++) Input Capture - 42:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** (++) Output Compare - 43:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** (++) PWM generation (Edge and Center-aligned Mode) - 44:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** (++) One-pulse mode output - 45:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** - 46:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** ##### How to use this driver ##### - 47:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** ============================================================================== - 48:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** [..] - 49:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** (#) Initialize the TIM low level resources by implementing the following functions - 50:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** depending from feature used : - 51:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** (++) Time Base : HAL_TIM_Base_MspInit() - 52:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** (++) Input Capture : HAL_TIM_IC_MspInit() - 53:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** (++) Output Compare : HAL_TIM_OC_MspInit() - 54:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** (++) PWM generation : HAL_TIM_PWM_MspInit() - 55:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** (++) One-pulse mode output : HAL_TIM_OnePulse_MspInit() - 56:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** (++) Encoder mode output : HAL_TIM_Encoder_MspInit() - 57:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** - 58:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** (#) Initialize the TIM low level resources : - 59:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** (##) Enable the TIM interface clock using __HAL_RCC_TIMx_CLK_ENABLE(); - 60:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** (##) TIM pins configuration - 61:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** (+++) Enable the clock for the TIM GPIOs using the following function: - 62:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** __HAL_RCC_GPIOx_CLK_ENABLE(); - 63:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** (+++) Configure these TIM pins in Alternate function mode using HAL_GPIO_Init(); - 64:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** - 65:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** (#) The external Clock can be configured, if needed (the default clock is the - 66:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** internal clock from the APBx), using the following function: - 67:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** HAL_TIM_ConfigClockSource, the clock configuration should be done before - 68:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** any start function. - 69:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** - 70:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** (#) Configure the TIM in the desired functioning mode using one of the - 71:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** Initialization function of this driver: - 72:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** (++) HAL_TIM_Base_Init: to use the Timer to generate a simple time base - 73:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** (++) HAL_TIM_OC_Init and HAL_TIM_OC_ConfigChannel: to use the Timer to generate an - 74:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** Output Compare signal. - 75:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** (++) HAL_TIM_PWM_Init and HAL_TIM_PWM_ConfigChannel: to use the Timer to generate a - 76:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** PWM signal. - 77:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** (++) HAL_TIM_IC_Init and HAL_TIM_IC_ConfigChannel: to use the Timer to measure an - 78:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** external signal. - 79:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** (++) HAL_TIM_OnePulse_Init and HAL_TIM_OnePulse_ConfigChannel: to use the Timer - 80:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** in One Pulse Mode. - 81:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** (++) HAL_TIM_Encoder_Init: to use the Timer Encoder Interface. - 82:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** - 83:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** (#) Activate the TIM peripheral using one of the start functions depending from the feature us - 84:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** (++) Time Base : HAL_TIM_Base_Start(), HAL_TIM_Base_Start_DMA(), HAL_TIM_Base_Start_IT() - 85:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** (++) Input Capture : HAL_TIM_IC_Start(), HAL_TIM_IC_Start_DMA(), HAL_TIM_IC_Start_IT() - 86:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** (++) Output Compare : HAL_TIM_OC_Start(), HAL_TIM_OC_Start_DMA(), HAL_TIM_OC_Start_IT() - 87:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** (++) PWM generation : HAL_TIM_PWM_Start(), HAL_TIM_PWM_Start_DMA(), HAL_TIM_PWM_Start_IT - 88:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** (++) One-pulse mode output : HAL_TIM_OnePulse_Start(), HAL_TIM_OnePulse_Start_IT() - 89:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** (++) Encoder mode output : HAL_TIM_Encoder_Start(), HAL_TIM_Encoder_Start_DMA(), HAL_TIM - 90:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** - 91:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** (#) The DMA Burst is managed with the two following functions: - ARM GAS /tmp/cccrAAAm.s page 3 - - - 92:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** HAL_TIM_DMABurst_WriteStart() - 93:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** HAL_TIM_DMABurst_ReadStart() - 94:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** - 95:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** @endverbatim - 96:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** ****************************************************************************** - 97:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** * @attention - 98:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** * - 99:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** *

© COPYRIGHT(c) 2016 STMicroelectronics

- 100:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** * - 101:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** * Redistribution and use in source and binary forms, with or without modification, - 102:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** * are permitted provided that the following conditions are met: - 103:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** * 1. Redistributions of source code must retain the above copyright notice, - 104:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** * this list of conditions and the following disclaimer. - 105:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** * 2. Redistributions in binary form must reproduce the above copyright notice, - 106:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** * this list of conditions and the following disclaimer in the documentation - 107:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** * and/or other materials provided with the distribution. - 108:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** * 3. Neither the name of STMicroelectronics nor the names of its contributors - 109:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** * may be used to endorse or promote products derived from this software - 110:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** * without specific prior written permission. - 111:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** * - 112:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" - 113:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE - 114:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE - 115:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** * DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE - 116:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL - 117:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR - 118:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** * SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER - 119:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** * CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, - 120:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE - 121:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. - 122:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** * - 123:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** ****************************************************************************** - 124:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** */ - 125:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** - 126:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** /* Includes ------------------------------------------------------------------*/ - 127:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** #include "stm32f0xx_hal.h" - 128:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** - 129:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** /** @addtogroup STM32F0xx_HAL_Driver - 130:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** * @{ - 131:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** */ - 132:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** - 133:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** /** @defgroup TIM TIM - 134:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** * @brief TIM HAL module driver - 135:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** * @{ - 136:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** */ - 137:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** - 138:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** #ifdef HAL_TIM_MODULE_ENABLED - 139:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** - 140:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** /* Private typedef -----------------------------------------------------------*/ - 141:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** /* Private define ------------------------------------------------------------*/ - 142:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** /* Private macro -------------------------------------------------------------*/ - 143:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** /* Private variables ---------------------------------------------------------*/ - 144:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** /* Private function prototypes -----------------------------------------------*/ - 145:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** - 146:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** /** @defgroup TIM_Private_Functions TIM_Private_Functions - 147:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** * @{ - 148:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** */ - ARM GAS /tmp/cccrAAAm.s page 4 - - - 149:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** static void TIM_OC1_SetConfig(TIM_TypeDef *TIMx, TIM_OC_InitTypeDef *OC_Config); - 150:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** static void TIM_OC3_SetConfig(TIM_TypeDef *TIMx, TIM_OC_InitTypeDef *OC_Config); - 151:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** static void TIM_OC4_SetConfig(TIM_TypeDef *TIMx, TIM_OC_InitTypeDef *OC_Config); - 152:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** static void TIM_TI1_ConfigInputStage(TIM_TypeDef *TIMx, uint32_t TIM_ICPolarity, uint32_t TIM_ICFil - 153:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** static void TIM_TI2_SetConfig(TIM_TypeDef *TIMx, uint32_t TIM_ICPolarity, uint32_t TIM_ICSelection, - 154:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** uint32_t TIM_ICFilter); - 155:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** static void TIM_TI2_ConfigInputStage(TIM_TypeDef *TIMx, uint32_t TIM_ICPolarity, uint32_t TIM_ICFil - 156:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** static void TIM_TI3_SetConfig(TIM_TypeDef *TIMx, uint32_t TIM_ICPolarity, uint32_t TIM_ICSelection, - 157:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** uint32_t TIM_ICFilter); - 158:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** static void TIM_TI4_SetConfig(TIM_TypeDef *TIMx, uint32_t TIM_ICPolarity, uint32_t TIM_ICSelection, - 159:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** uint32_t TIM_ICFilter); - 160:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** static void TIM_ITRx_SetConfig(TIM_TypeDef* TIMx, uint16_t InputTriggerSource); - 161:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** static void TIM_DMAPeriodElapsedCplt(DMA_HandleTypeDef *hdma); - 162:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** static void TIM_DMATriggerCplt(DMA_HandleTypeDef *hdma); - 163:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** static void TIM_SlaveTimer_SetConfig(TIM_HandleTypeDef *htim, - 164:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** TIM_SlaveConfigTypeDef * sSlaveConfig); - 165:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** - 166:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** /** - 167:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** * @} - 168:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** */ - 169:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** - 170:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** /* Exported functions ---------------------------------------------------------*/ - 171:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** - 172:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** /** @defgroup TIM_Exported_Functions TIM Exported Functions - 173:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** * @{ - 174:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** */ - 175:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** - 176:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** /** @defgroup TIM_Exported_Functions_Group1 Time Base functions - 177:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** * @brief Time Base functions - 178:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** * - 179:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** @verbatim - 180:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** ============================================================================== - 181:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** ##### Time Base functions ##### - 182:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** ============================================================================== - 183:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** [..] - 184:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** This section provides functions allowing to: - 185:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** (+) Initialize and configure the TIM base. - 186:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** (+) De-initialize the TIM base. - 187:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** (+) Start the Time Base. - 188:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** (+) Stop the Time Base. - 189:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** (+) Start the Time Base and enable interrupt. - 190:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** (+) Stop the Time Base and disable interrupt. - 191:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** (+) Start the Time Base and enable DMA transfer. - 192:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** (+) Stop the Time Base and disable DMA transfer. - 193:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** - 194:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** @endverbatim - 195:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** * @{ - 196:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** */ - 197:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** /** - 198:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** * @brief Initializes the TIM Time base Unit according to the specified - 199:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** * parameters in the TIM_HandleTypeDef and create the associated handle. - 200:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** * @param htim TIM Base handle - 201:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** * @retval HAL status - 202:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** */ - 203:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** HAL_StatusTypeDef HAL_TIM_Base_Init(TIM_HandleTypeDef *htim) - 204:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** { - 205:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** /* Check the TIM handle allocation */ - ARM GAS /tmp/cccrAAAm.s page 5 - - - 206:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** if(htim == NULL) - 207:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** { - 208:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** return HAL_ERROR; - 209:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** } - 210:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** - 211:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** /* Check the parameters */ - 212:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** assert_param(IS_TIM_INSTANCE(htim->Instance)); - 213:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** assert_param(IS_TIM_COUNTER_MODE(htim->Init.CounterMode)); - 214:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** assert_param(IS_TIM_CLOCKDIVISION_DIV(htim->Init.ClockDivision)); - 215:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** assert_param(IS_TIM_AUTORELOAD_PRELOAD(htim->Init.AutoReloadPreload)); - 216:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** - 217:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** if(htim->State == HAL_TIM_STATE_RESET) - 218:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** { - 219:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** /* Allocate lock resource and initialize it */ - 220:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** htim->Lock = HAL_UNLOCKED; - 221:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** - 222:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** /* Init the low level hardware : GPIO, CLOCK, NVIC */ - 223:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** HAL_TIM_Base_MspInit(htim); - 224:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** } - 225:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** - 226:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** /* Set the TIM state */ - 227:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** htim->State= HAL_TIM_STATE_BUSY; - 228:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** - 229:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** /* Set the Time Base configuration */ - 230:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** TIM_Base_SetConfig(htim->Instance, &htim->Init); - 231:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** - 232:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** /* Initialize the TIM state*/ - 233:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** htim->State= HAL_TIM_STATE_READY; - 234:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** - 235:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** return HAL_OK; - 236:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** } - 237:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** - 238:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** /** - 239:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** * @brief DeInitializes the TIM Base peripheral - 240:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** * @param htim TIM Base handle - 241:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** * @retval HAL status - 242:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** */ - 243:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** HAL_StatusTypeDef HAL_TIM_Base_DeInit(TIM_HandleTypeDef *htim) - 244:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** { - 245:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** /* Check the parameters */ - 246:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** assert_param(IS_TIM_INSTANCE(htim->Instance)); - 247:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** - 248:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** htim->State = HAL_TIM_STATE_BUSY; - 249:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** - 250:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** /* Disable the TIM Peripheral Clock */ - 251:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** __HAL_TIM_DISABLE(htim); - 252:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** - 253:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** /* DeInit the low level hardware: GPIO, CLOCK, NVIC */ - 254:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** HAL_TIM_Base_MspDeInit(htim); - 255:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** - 256:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** /* Change TIM state */ - 257:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** htim->State = HAL_TIM_STATE_RESET; - 258:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** - 259:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** /* Release Lock */ - 260:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** __HAL_UNLOCK(htim); - 261:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** - 262:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** return HAL_OK; - ARM GAS /tmp/cccrAAAm.s page 6 - - - 263:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** } - 264:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** - 265:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** /** - 266:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** * @brief Initializes the TIM Base MSP. - 267:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** * @param htim TIM handle - 268:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** * @retval None - 269:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** */ - 270:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** __weak void HAL_TIM_Base_MspInit(TIM_HandleTypeDef *htim) - 271:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** { - 272:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** /* Prevent unused argument(s) compilation warning */ - 273:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** UNUSED(htim); - 274:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** - 275:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** /* NOTE : This function Should not be modified, when the callback is needed, - 276:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** the HAL_TIM_Base_MspInit could be implemented in the user file - 277:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** */ - 278:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** } - 279:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** - 280:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** /** - 281:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** * @brief DeInitializes TIM Base MSP. - 282:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** * @param htim TIM handle - 283:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** * @retval None - 284:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** */ - 285:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** __weak void HAL_TIM_Base_MspDeInit(TIM_HandleTypeDef *htim) - 286:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** { - 287:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** /* Prevent unused argument(s) compilation warning */ - 288:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** UNUSED(htim); - 289:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** - 290:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** /* NOTE : This function Should not be modified, when the callback is needed, - 291:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** the HAL_TIM_Base_MspDeInit could be implemented in the user file - 292:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** */ - 293:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** } - 294:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** - 295:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** - 296:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** /** - 297:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** * @brief Starts the TIM Base generation. - 298:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** * @param htim TIM handle - 299:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** * @retval HAL status - 300:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** */ - 301:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** HAL_StatusTypeDef HAL_TIM_Base_Start(TIM_HandleTypeDef *htim) - 302:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** { - 303:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** /* Check the parameters */ - 304:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** assert_param(IS_TIM_INSTANCE(htim->Instance)); - 305:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** - 306:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** /* Set the TIM state */ - 307:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** htim->State= HAL_TIM_STATE_BUSY; - 308:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** - 309:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** /* Enable the Peripheral */ - 310:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** __HAL_TIM_ENABLE(htim); - 311:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** - 312:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** /* Change the TIM state*/ - 313:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** htim->State= HAL_TIM_STATE_READY; - 314:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** - 315:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** /* Return function status */ - 316:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** return HAL_OK; - 317:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** } - 318:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** - 319:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** /** - ARM GAS /tmp/cccrAAAm.s page 7 - - - 320:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** * @brief Stops the TIM Base generation. - 321:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** * @param htim TIM handle - 322:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** * @retval HAL status - 323:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** */ - 324:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** HAL_StatusTypeDef HAL_TIM_Base_Stop(TIM_HandleTypeDef *htim) - 325:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** { - 326:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** /* Check the parameters */ - 327:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** assert_param(IS_TIM_INSTANCE(htim->Instance)); - 328:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** - 329:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** /* Set the TIM state */ - 330:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** htim->State= HAL_TIM_STATE_BUSY; - 331:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** - 332:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** /* Disable the Peripheral */ - 333:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** __HAL_TIM_DISABLE(htim); - 334:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** - 335:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** /* Change the TIM state*/ - 336:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** htim->State= HAL_TIM_STATE_READY; - 337:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** - 338:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** /* Return function status */ - 339:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** return HAL_OK; - 340:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** } - 341:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** - 342:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** /** - 343:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** * @brief Starts the TIM Base generation in interrupt mode. - 344:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** * @param htim TIM handle - 345:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** * @retval HAL status - 346:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** */ - 347:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** HAL_StatusTypeDef HAL_TIM_Base_Start_IT(TIM_HandleTypeDef *htim) - 348:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** { - 349:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** /* Check the parameters */ - 350:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** assert_param(IS_TIM_INSTANCE(htim->Instance)); - 351:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** - 352:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** /* Enable the TIM Update interrupt */ - 353:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** __HAL_TIM_ENABLE_IT(htim, TIM_IT_UPDATE); - 354:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** - 355:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** /* Enable the Peripheral */ - 356:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** __HAL_TIM_ENABLE(htim); - 357:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** - 358:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** /* Return function status */ - 359:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** return HAL_OK; - 360:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** } - 361:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** - 362:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** /** - 363:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** * @brief Stops the TIM Base generation in interrupt mode. - 364:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** * @param htim TIM handle - 365:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** * @retval HAL status - 366:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** */ - 367:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** HAL_StatusTypeDef HAL_TIM_Base_Stop_IT(TIM_HandleTypeDef *htim) - 368:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** { - 369:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** /* Check the parameters */ - 370:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** assert_param(IS_TIM_INSTANCE(htim->Instance)); - 371:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** /* Disable the TIM Update interrupt */ - 372:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** __HAL_TIM_DISABLE_IT(htim, TIM_IT_UPDATE); - 373:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** - 374:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** /* Disable the Peripheral */ - 375:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** __HAL_TIM_DISABLE(htim); - 376:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** - ARM GAS /tmp/cccrAAAm.s page 8 - - - 377:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** /* Return function status */ - 378:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** return HAL_OK; - 379:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** } - 380:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** - 381:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** /** - 382:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** * @brief Starts the TIM Base generation in DMA mode. - 383:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** * @param htim TIM handle - 384:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** * @param pData The source Buffer address. - 385:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** * @param Length The length of data to be transferred from memory to peripheral. - 386:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** * @retval HAL status - 387:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** */ - 388:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** HAL_StatusTypeDef HAL_TIM_Base_Start_DMA(TIM_HandleTypeDef *htim, uint32_t *pData, uint16_t Length) - 389:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** { - 390:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** /* Check the parameters */ - 391:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** assert_param(IS_TIM_DMA_INSTANCE(htim->Instance)); - 392:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** - 393:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** if((htim->State == HAL_TIM_STATE_BUSY)) - 394:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** { - 395:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** return HAL_BUSY; - 396:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** } - 397:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** else if((htim->State == HAL_TIM_STATE_READY)) - 398:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** { - 399:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** if((pData == 0 ) && (Length > 0)) - 400:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** { - 401:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** return HAL_ERROR; - 402:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** } - 403:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** else - 404:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** { - 405:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** htim->State = HAL_TIM_STATE_BUSY; - 406:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** } - 407:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** } - 408:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** /* Set the DMA Period elapsed callback */ - 409:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** htim->hdma[TIM_DMA_ID_UPDATE]->XferCpltCallback = TIM_DMAPeriodElapsedCplt; - 410:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** - 411:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** /* Set the DMA error callback */ - 412:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** htim->hdma[TIM_DMA_ID_UPDATE]->XferErrorCallback = TIM_DMAError ; - 413:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** - 414:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** /* Enable the DMA channel */ - 415:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** HAL_DMA_Start_IT(htim->hdma[TIM_DMA_ID_UPDATE], (uint32_t)pData, (uint32_t)&htim->Instance->ARR, - 416:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** - 417:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** /* Enable the TIM Update DMA request */ - 418:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** __HAL_TIM_ENABLE_DMA(htim, TIM_DMA_UPDATE); - 419:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** - 420:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** /* Enable the Peripheral */ - 421:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** __HAL_TIM_ENABLE(htim); - 422:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** - 423:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** /* Return function status */ - 424:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** return HAL_OK; - 425:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** } - 426:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** - 427:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** /** - 428:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** * @brief Stops the TIM Base generation in DMA mode. - 429:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** * @param htim TIM handle - 430:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** * @retval HAL status - 431:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** */ - 432:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** HAL_StatusTypeDef HAL_TIM_Base_Stop_DMA(TIM_HandleTypeDef *htim) - 433:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** { - ARM GAS /tmp/cccrAAAm.s page 9 - - - 434:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** /* Check the parameters */ - 435:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** assert_param(IS_TIM_DMA_INSTANCE(htim->Instance)); - 436:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** - 437:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** /* Disable the TIM Update DMA request */ - 438:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** __HAL_TIM_DISABLE_DMA(htim, TIM_DMA_UPDATE); - 439:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** - 440:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** /* Disable the Peripheral */ - 441:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** __HAL_TIM_DISABLE(htim); - 442:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** - 443:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** /* Change the htim state */ - 444:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** htim->State = HAL_TIM_STATE_READY; - 445:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** - 446:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** /* Return function status */ - 447:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** return HAL_OK; - 448:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** } - 449:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** - 450:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** /** - 451:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** * @} - 452:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** */ - 453:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** - 454:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** /** @defgroup TIM_Exported_Functions_Group2 Time Output Compare functions - 455:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** * @brief Time Output Compare functions - 456:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** * - 457:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** @verbatim - 458:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** ============================================================================== - 459:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** ##### Time Output Compare functions ##### - 460:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** ============================================================================== - 461:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** [..] - 462:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** This section provides functions allowing to: - 463:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** (+) Initialize and configure the TIM Output Compare. - 464:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** (+) De-initialize the TIM Output Compare. - 465:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** (+) Start the Time Output Compare. - 466:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** (+) Stop the Time Output Compare. - 467:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** (+) Start the Time Output Compare and enable interrupt. - 468:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** (+) Stop the Time Output Compare and disable interrupt. - 469:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** (+) Start the Time Output Compare and enable DMA transfer. - 470:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** (+) Stop the Time Output Compare and disable DMA transfer. - 471:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** - 472:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** @endverbatim - 473:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** * @{ - 474:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** */ - 475:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** /** - 476:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** * @brief Initializes the TIM Output Compare according to the specified - 477:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** * parameters in the TIM_HandleTypeDef and create the associated handle. - 478:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** * @param htim TIM Output Compare handle - 479:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** * @retval HAL status - 480:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** */ - 481:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** HAL_StatusTypeDef HAL_TIM_OC_Init(TIM_HandleTypeDef* htim) - 482:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** { - 483:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** /* Check the TIM handle allocation */ - 484:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** if(htim == NULL) - 485:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** { - 486:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** return HAL_ERROR; - 487:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** } - 488:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** - 489:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** /* Check the parameters */ - 490:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** assert_param(IS_TIM_INSTANCE(htim->Instance)); - ARM GAS /tmp/cccrAAAm.s page 10 - - - 491:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** assert_param(IS_TIM_COUNTER_MODE(htim->Init.CounterMode)); - 492:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** assert_param(IS_TIM_CLOCKDIVISION_DIV(htim->Init.ClockDivision)); - 493:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** assert_param(IS_TIM_AUTORELOAD_PRELOAD(htim->Init.AutoReloadPreload)); - 494:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** - 495:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** if(htim->State == HAL_TIM_STATE_RESET) - 496:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** { - 497:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** /* Allocate lock resource and initialize it */ - 498:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** htim->Lock = HAL_UNLOCKED; - 499:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** - 500:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** /* Init the low level hardware : GPIO, CLOCK, NVIC and DMA */ - 501:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** HAL_TIM_OC_MspInit(htim); - 502:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** } - 503:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** - 504:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** /* Set the TIM state */ - 505:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** htim->State= HAL_TIM_STATE_BUSY; - 506:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** - 507:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** /* Init the base time for the Output Compare */ - 508:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** TIM_Base_SetConfig(htim->Instance, &htim->Init); - 509:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** - 510:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** /* Initialize the TIM state*/ - 511:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** htim->State= HAL_TIM_STATE_READY; - 512:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** - 513:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** return HAL_OK; - 514:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** } - 515:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** - 516:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** /** - 517:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** * @brief DeInitializes the TIM peripheral - 518:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** * @param htim TIM Output Compare handle - 519:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** * @retval HAL status - 520:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** */ - 521:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** HAL_StatusTypeDef HAL_TIM_OC_DeInit(TIM_HandleTypeDef *htim) - 522:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** { - 523:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** /* Check the parameters */ - 524:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** assert_param(IS_TIM_INSTANCE(htim->Instance)); - 525:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** - 526:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** htim->State = HAL_TIM_STATE_BUSY; - 527:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** - 528:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** /* Disable the TIM Peripheral Clock */ - 529:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** __HAL_TIM_DISABLE(htim); - 530:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** - 531:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** /* DeInit the low level hardware: GPIO, CLOCK, NVIC and DMA */ - 532:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** HAL_TIM_OC_MspDeInit(htim); - 533:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** - 534:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** /* Change TIM state */ - 535:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** htim->State = HAL_TIM_STATE_RESET; - 536:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** - 537:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** /* Release Lock */ - 538:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** __HAL_UNLOCK(htim); - 539:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** - 540:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** return HAL_OK; - 541:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** } - 542:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** - 543:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** /** - 544:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** * @brief Initializes the TIM Output Compare MSP. - 545:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** * @param htim TIM handle - 546:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** * @retval None - 547:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** */ - ARM GAS /tmp/cccrAAAm.s page 11 - - - 548:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** __weak void HAL_TIM_OC_MspInit(TIM_HandleTypeDef *htim) - 549:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** { - 550:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** /* Prevent unused argument(s) compilation warning */ - 551:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** UNUSED(htim); - 552:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** - 553:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** /* NOTE : This function Should not be modified, when the callback is needed, - 554:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** the HAL_TIM_OC_MspInit could be implemented in the user file - 555:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** */ - 556:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** } - 557:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** - 558:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** /** - 559:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** * @brief DeInitializes TIM Output Compare MSP. - 560:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** * @param htim TIM handle - 561:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** * @retval None - 562:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** */ - 563:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** __weak void HAL_TIM_OC_MspDeInit(TIM_HandleTypeDef *htim) - 564:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** { - 565:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** /* Prevent unused argument(s) compilation warning */ - 566:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** UNUSED(htim); - 567:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** - 568:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** /* NOTE : This function Should not be modified, when the callback is needed, - 569:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** the HAL_TIM_OC_MspDeInit could be implemented in the user file - 570:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** */ - 571:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** } - 572:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** - 573:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** /** - 574:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** * @brief Starts the TIM Output Compare signal generation. - 575:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** * @param htim TIM Output Compare handle - 576:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** * @param Channel TIM Channel to be enabled - 577:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** * This parameter can be one of the following values: - 578:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** * @arg TIM_CHANNEL_1: TIM Channel 1 selected - 579:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** * @arg TIM_CHANNEL_2: TIM Channel 2 selected - 580:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** * @arg TIM_CHANNEL_3: TIM Channel 3 selected - 581:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** * @arg TIM_CHANNEL_4: TIM Channel 4 selected - 582:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** * @retval HAL status - 583:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** */ - 584:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** HAL_StatusTypeDef HAL_TIM_OC_Start(TIM_HandleTypeDef *htim, uint32_t Channel) - 585:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** { - 586:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** /* Check the parameters */ - 587:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** assert_param(IS_TIM_CCX_INSTANCE(htim->Instance, Channel)); - 588:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** - 589:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** /* Enable the Output compare channel */ - 590:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** TIM_CCxChannelCmd(htim->Instance, Channel, TIM_CCx_ENABLE); - 591:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** - 592:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** if(IS_TIM_BREAK_INSTANCE(htim->Instance) != RESET) - 593:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** { - 594:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** /* Enable the main output */ - 595:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** __HAL_TIM_MOE_ENABLE(htim); - 596:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** } - 597:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** - 598:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** /* Enable the Peripheral */ - 599:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** __HAL_TIM_ENABLE(htim); - 600:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** - 601:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** /* Return function status */ - 602:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** return HAL_OK; - 603:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** } - 604:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** - ARM GAS /tmp/cccrAAAm.s page 12 - - - 605:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** /** - 606:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** * @brief Stops the TIM Output Compare signal generation. - 607:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** * @param htim TIM handle - 608:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** * @param Channel TIM Channel to be disabled - 609:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** * This parameter can be one of the following values: - 610:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** * @arg TIM_CHANNEL_1: TIM Channel 1 selected - 611:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** * @arg TIM_CHANNEL_2: TIM Channel 2 selected - 612:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** * @arg TIM_CHANNEL_3: TIM Channel 3 selected - 613:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** * @arg TIM_CHANNEL_4: TIM Channel 4 selected - 614:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** * @retval HAL status - 615:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** */ - 616:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** HAL_StatusTypeDef HAL_TIM_OC_Stop(TIM_HandleTypeDef *htim, uint32_t Channel) - 617:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** { - 618:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** /* Check the parameters */ - 619:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** assert_param(IS_TIM_CCX_INSTANCE(htim->Instance, Channel)); - 620:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** - 621:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** /* Disable the Output compare channel */ - 622:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** TIM_CCxChannelCmd(htim->Instance, Channel, TIM_CCx_DISABLE); - 623:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** - 624:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** if(IS_TIM_BREAK_INSTANCE(htim->Instance) != RESET) - 625:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** { - 626:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** /* Disable the Main Ouput */ - 627:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** __HAL_TIM_MOE_DISABLE(htim); - 628:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** } - 629:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** - 630:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** /* Disable the Peripheral */ - 631:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** __HAL_TIM_DISABLE(htim); - 632:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** - 633:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** /* Return function status */ - 634:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** return HAL_OK; - 635:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** } - 636:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** - 637:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** /** - 638:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** * @brief Starts the TIM Output Compare signal generation in interrupt mode. - 639:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** * @param htim TIM OC handle - 640:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** * @param Channel TIM Channel to be enabled - 641:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** * This parameter can be one of the following values: - 642:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** * @arg TIM_CHANNEL_1: TIM Channel 1 selected - 643:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** * @arg TIM_CHANNEL_2: TIM Channel 2 selected - 644:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** * @arg TIM_CHANNEL_3: TIM Channel 3 selected - 645:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** * @arg TIM_CHANNEL_4: TIM Channel 4 selected - 646:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** * @retval HAL status - 647:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** */ - 648:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** HAL_StatusTypeDef HAL_TIM_OC_Start_IT(TIM_HandleTypeDef *htim, uint32_t Channel) - 649:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** { - 650:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** /* Check the parameters */ - 651:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** assert_param(IS_TIM_CCX_INSTANCE(htim->Instance, Channel)); - 652:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** - 653:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** switch (Channel) - 654:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** { - 655:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** case TIM_CHANNEL_1: - 656:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** { - 657:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** /* Enable the TIM Capture/Compare 1 interrupt */ - 658:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** __HAL_TIM_ENABLE_IT(htim, TIM_IT_CC1); - 659:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** } - 660:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** break; - 661:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** - ARM GAS /tmp/cccrAAAm.s page 13 - - - 662:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** case TIM_CHANNEL_2: - 663:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** { - 664:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** /* Enable the TIM Capture/Compare 2 interrupt */ - 665:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** __HAL_TIM_ENABLE_IT(htim, TIM_IT_CC2); - 666:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** } - 667:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** break; - 668:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** - 669:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** case TIM_CHANNEL_3: - 670:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** { - 671:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** /* Enable the TIM Capture/Compare 3 interrupt */ - 672:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** __HAL_TIM_ENABLE_IT(htim, TIM_IT_CC3); - 673:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** } - 674:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** break; - 675:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** - 676:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** case TIM_CHANNEL_4: - 677:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** { - 678:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** /* Enable the TIM Capture/Compare 4 interrupt */ - 679:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** __HAL_TIM_ENABLE_IT(htim, TIM_IT_CC4); - 680:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** } - 681:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** break; - 682:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** - 683:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** default: - 684:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** break; - 685:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** } - 686:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** - 687:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** /* Enable the Output compare channel */ - 688:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** TIM_CCxChannelCmd(htim->Instance, Channel, TIM_CCx_ENABLE); - 689:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** - 690:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** if(IS_TIM_BREAK_INSTANCE(htim->Instance) != RESET) - 691:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** { - 692:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** /* Enable the main output */ - 693:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** __HAL_TIM_MOE_ENABLE(htim); - 694:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** } - 695:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** - 696:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** /* Enable the Peripheral */ - 697:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** __HAL_TIM_ENABLE(htim); - 698:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** - 699:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** /* Return function status */ - 700:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** return HAL_OK; - 701:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** } - 702:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** - 703:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** /** - 704:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** * @brief Stops the TIM Output Compare signal generation in interrupt mode. - 705:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** * @param htim TIM Output Compare handle - 706:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** * @param Channel TIM Channel to be disabled - 707:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** * This parameter can be one of the following values: - 708:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** * @arg TIM_CHANNEL_1: TIM Channel 1 selected - 709:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** * @arg TIM_CHANNEL_2: TIM Channel 2 selected - 710:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** * @arg TIM_CHANNEL_3: TIM Channel 3 selected - 711:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** * @arg TIM_CHANNEL_4: TIM Channel 4 selected - 712:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** * @retval HAL status - 713:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** */ - 714:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** HAL_StatusTypeDef HAL_TIM_OC_Stop_IT(TIM_HandleTypeDef *htim, uint32_t Channel) - 715:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** { - 716:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** /* Check the parameters */ - 717:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** assert_param(IS_TIM_CCX_INSTANCE(htim->Instance, Channel)); - 718:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** - ARM GAS /tmp/cccrAAAm.s page 14 - - - 719:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** switch (Channel) - 720:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** { - 721:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** case TIM_CHANNEL_1: - 722:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** { - 723:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** /* Disable the TIM Capture/Compare 1 interrupt */ - 724:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** __HAL_TIM_DISABLE_IT(htim, TIM_IT_CC1); - 725:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** } - 726:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** break; - 727:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** - 728:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** case TIM_CHANNEL_2: - 729:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** { - 730:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** /* Disable the TIM Capture/Compare 2 interrupt */ - 731:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** __HAL_TIM_DISABLE_IT(htim, TIM_IT_CC2); - 732:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** } - 733:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** break; - 734:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** - 735:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** case TIM_CHANNEL_3: - 736:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** { - 737:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** /* Disable the TIM Capture/Compare 3 interrupt */ - 738:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** __HAL_TIM_DISABLE_IT(htim, TIM_IT_CC3); - 739:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** } - 740:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** break; - 741:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** - 742:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** case TIM_CHANNEL_4: - 743:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** { - 744:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** /* Disable the TIM Capture/Compare 4 interrupt */ - 745:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** __HAL_TIM_DISABLE_IT(htim, TIM_IT_CC4); - 746:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** } - 747:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** break; - 748:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** - 749:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** default: - 750:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** break; - 751:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** } - 752:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** - 753:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** /* Disable the Output compare channel */ - 754:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** TIM_CCxChannelCmd(htim->Instance, Channel, TIM_CCx_DISABLE); - 755:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** - 756:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** if(IS_TIM_BREAK_INSTANCE(htim->Instance) != RESET) - 757:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** { - 758:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** /* Disable the Main Ouput */ - 759:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** __HAL_TIM_MOE_DISABLE(htim); - 760:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** } - 761:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** - 762:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** /* Disable the Peripheral */ - 763:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** __HAL_TIM_DISABLE(htim); - 764:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** - 765:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** /* Return function status */ - 766:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** return HAL_OK; - 767:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** } - 768:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** - 769:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** /** - 770:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** * @brief Starts the TIM Output Compare signal generation in DMA mode. - 771:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** * @param htim TIM Output Compare handle - 772:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** * @param Channel TIM Channel to be enabled - 773:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** * This parameter can be one of the following values: - 774:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** * @arg TIM_CHANNEL_1: TIM Channel 1 selected - 775:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** * @arg TIM_CHANNEL_2: TIM Channel 2 selected - ARM GAS /tmp/cccrAAAm.s page 15 - - - 776:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** * @arg TIM_CHANNEL_3: TIM Channel 3 selected - 777:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** * @arg TIM_CHANNEL_4: TIM Channel 4 selected - 778:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** * @param pData The source Buffer address. - 779:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** * @param Length The length of data to be transferred from memory to TIM peripheral - 780:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** * @retval HAL status - 781:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** */ - 782:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** HAL_StatusTypeDef HAL_TIM_OC_Start_DMA(TIM_HandleTypeDef *htim, uint32_t Channel, uint32_t *pData, - 783:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** { - 784:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** /* Check the parameters */ - 785:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** assert_param(IS_TIM_CCX_INSTANCE(htim->Instance, Channel)); - 786:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** - 787:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** if((htim->State == HAL_TIM_STATE_BUSY)) - 788:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** { - 789:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** return HAL_BUSY; - 790:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** } - 791:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** else if((htim->State == HAL_TIM_STATE_READY)) - 792:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** { - 793:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** if(((uint32_t)pData == 0U ) && (Length > 0U)) - 794:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** { - 795:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** return HAL_ERROR; - 796:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** } - 797:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** else - 798:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** { - 799:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** htim->State = HAL_TIM_STATE_BUSY; - 800:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** } - 801:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** } - 802:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** switch (Channel) - 803:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** { - 804:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** case TIM_CHANNEL_1: - 805:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** { - 806:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** /* Set the DMA Period elapsed callback */ - 807:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** htim->hdma[TIM_DMA_ID_CC1]->XferCpltCallback = TIM_DMADelayPulseCplt; - 808:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** - 809:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** /* Set the DMA error callback */ - 810:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** htim->hdma[TIM_DMA_ID_CC1]->XferErrorCallback = TIM_DMAError ; - 811:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** - 812:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** /* Enable the DMA channel */ - 813:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** HAL_DMA_Start_IT(htim->hdma[TIM_DMA_ID_CC1], (uint32_t)pData, (uint32_t)&htim->Instance->CCR1 - 814:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** - 815:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** /* Enable the TIM Capture/Compare 1 DMA request */ - 816:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** __HAL_TIM_ENABLE_DMA(htim, TIM_DMA_CC1); - 817:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** } - 818:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** break; - 819:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** - 820:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** case TIM_CHANNEL_2: - 821:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** { - 822:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** /* Set the DMA Period elapsed callback */ - 823:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** htim->hdma[TIM_DMA_ID_CC2]->XferCpltCallback = TIM_DMADelayPulseCplt; - 824:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** - 825:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** /* Set the DMA error callback */ - 826:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** htim->hdma[TIM_DMA_ID_CC2]->XferErrorCallback = TIM_DMAError ; - 827:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** - 828:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** /* Enable the DMA channel */ - 829:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** HAL_DMA_Start_IT(htim->hdma[TIM_DMA_ID_CC2], (uint32_t)pData, (uint32_t)&htim->Instance->CCR2 - 830:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** - 831:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** /* Enable the TIM Capture/Compare 2 DMA request */ - 832:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** __HAL_TIM_ENABLE_DMA(htim, TIM_DMA_CC2); - ARM GAS /tmp/cccrAAAm.s page 16 - - - 833:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** } - 834:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** break; - 835:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** - 836:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** case TIM_CHANNEL_3: - 837:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** { - 838:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** /* Set the DMA Period elapsed callback */ - 839:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** htim->hdma[TIM_DMA_ID_CC3]->XferCpltCallback = TIM_DMADelayPulseCplt; - 840:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** - 841:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** /* Set the DMA error callback */ - 842:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** htim->hdma[TIM_DMA_ID_CC3]->XferErrorCallback = TIM_DMAError ; - 843:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** - 844:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** /* Enable the DMA channel */ - 845:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** HAL_DMA_Start_IT(htim->hdma[TIM_DMA_ID_CC3], (uint32_t)pData, (uint32_t)&htim->Instance->CCR3 - 846:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** - 847:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** /* Enable the TIM Capture/Compare 3 DMA request */ - 848:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** __HAL_TIM_ENABLE_DMA(htim, TIM_DMA_CC3); - 849:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** } - 850:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** break; - 851:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** - 852:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** case TIM_CHANNEL_4: - 853:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** { - 854:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** /* Set the DMA Period elapsed callback */ - 855:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** htim->hdma[TIM_DMA_ID_CC4]->XferCpltCallback = TIM_DMADelayPulseCplt; - 856:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** - 857:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** /* Set the DMA error callback */ - 858:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** htim->hdma[TIM_DMA_ID_CC4]->XferErrorCallback = TIM_DMAError ; - 859:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** - 860:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** /* Enable the DMA channel */ - 861:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** HAL_DMA_Start_IT(htim->hdma[TIM_DMA_ID_CC4], (uint32_t)pData, (uint32_t)&htim->Instance->CCR4 - 862:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** - 863:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** /* Enable the TIM Capture/Compare 4 DMA request */ - 864:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** __HAL_TIM_ENABLE_DMA(htim, TIM_DMA_CC4); - 865:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** } - 866:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** break; - 867:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** - 868:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** default: - 869:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** break; - 870:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** } - 871:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** - 872:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** /* Enable the Output compare channel */ - 873:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** TIM_CCxChannelCmd(htim->Instance, Channel, TIM_CCx_ENABLE); - 874:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** - 875:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** if(IS_TIM_BREAK_INSTANCE(htim->Instance) != RESET) - 876:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** { - 877:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** /* Enable the main output */ - 878:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** __HAL_TIM_MOE_ENABLE(htim); - 879:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** } - 880:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** - 881:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** /* Enable the Peripheral */ - 882:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** __HAL_TIM_ENABLE(htim); - 883:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** - 884:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** /* Return function status */ - 885:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** return HAL_OK; - 886:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** } - 887:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** - 888:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** /** - 889:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** * @brief Stops the TIM Output Compare signal generation in DMA mode. - ARM GAS /tmp/cccrAAAm.s page 17 - - - 890:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** * @param htim TIM Output Compare handle - 891:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** * @param Channel TIM Channel to be disabled - 892:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** * This parameter can be one of the following values: - 893:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** * @arg TIM_CHANNEL_1: TIM Channel 1 selected - 894:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** * @arg TIM_CHANNEL_2: TIM Channel 2 selected - 895:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** * @arg TIM_CHANNEL_3: TIM Channel 3 selected - 896:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** * @arg TIM_CHANNEL_4: TIM Channel 4 selected - 897:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** * @retval HAL status - 898:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** */ - 899:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** HAL_StatusTypeDef HAL_TIM_OC_Stop_DMA(TIM_HandleTypeDef *htim, uint32_t Channel) - 900:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** { - 901:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** /* Check the parameters */ - 902:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** assert_param(IS_TIM_CCX_INSTANCE(htim->Instance, Channel)); - 903:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** - 904:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** switch (Channel) - 905:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** { - 906:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** case TIM_CHANNEL_1: - 907:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** { - 908:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** /* Disable the TIM Capture/Compare 1 DMA request */ - 909:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** __HAL_TIM_DISABLE_DMA(htim, TIM_DMA_CC1); - 910:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** } - 911:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** break; - 912:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** - 913:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** case TIM_CHANNEL_2: - 914:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** { - 915:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** /* Disable the TIM Capture/Compare 2 DMA request */ - 916:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** __HAL_TIM_DISABLE_DMA(htim, TIM_DMA_CC2); - 917:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** } - 918:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** break; - 919:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** - 920:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** case TIM_CHANNEL_3: - 921:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** { - 922:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** /* Disable the TIM Capture/Compare 3 DMA request */ - 923:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** __HAL_TIM_DISABLE_DMA(htim, TIM_DMA_CC3); - 924:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** } - 925:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** break; - 926:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** - 927:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** case TIM_CHANNEL_4: - 928:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** { - 929:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** /* Disable the TIM Capture/Compare 4 interrupt */ - 930:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** __HAL_TIM_DISABLE_DMA(htim, TIM_DMA_CC4); - 931:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** } - 932:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** break; - 933:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** - 934:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** default: - 935:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** break; - 936:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** } - 937:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** - 938:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** /* Disable the Output compare channel */ - 939:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** TIM_CCxChannelCmd(htim->Instance, Channel, TIM_CCx_DISABLE); - 940:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** - 941:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** if(IS_TIM_BREAK_INSTANCE(htim->Instance) != RESET) - 942:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** { - 943:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** /* Disable the Main Ouput */ - 944:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** __HAL_TIM_MOE_DISABLE(htim); - 945:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** } - 946:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** - ARM GAS /tmp/cccrAAAm.s page 18 - - - 947:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** /* Disable the Peripheral */ - 948:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** __HAL_TIM_DISABLE(htim); - 949:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** - 950:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** /* Change the htim state */ - 951:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** htim->State = HAL_TIM_STATE_READY; - 952:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** - 953:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** /* Return function status */ - 954:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** return HAL_OK; - 955:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** } - 956:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** - 957:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** /** - 958:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** * @} - 959:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** */ - 960:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** - 961:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** /** @defgroup TIM_Exported_Functions_Group3 Time PWM functions - 962:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** * @brief Time PWM functions - 963:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** * - 964:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** @verbatim - 965:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** ============================================================================== - 966:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** ##### Time PWM functions ##### - 967:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** ============================================================================== - 968:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** [..] - 969:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** This section provides functions allowing to: - 970:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** (+) Initialize and configure the TIM OPWM. - 971:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** (+) De-initialize the TIM PWM. - 972:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** (+) Start the Time PWM. - 973:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** (+) Stop the Time PWM. - 974:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** (+) Start the Time PWM and enable interrupt. - 975:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** (+) Stop the Time PWM and disable interrupt. - 976:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** (+) Start the Time PWM and enable DMA transfer. - 977:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** (+) Stop the Time PWM and disable DMA transfer. - 978:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** - 979:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** @endverbatim - 980:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** * @{ - 981:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** */ - 982:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** /** - 983:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** * @brief Initializes the TIM PWM Time Base according to the specified - 984:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** * parameters in the TIM_HandleTypeDef and create the associated handle. - 985:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** * @param htim TIM handle - 986:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** * @retval HAL status - 987:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** */ - 988:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** HAL_StatusTypeDef HAL_TIM_PWM_Init(TIM_HandleTypeDef *htim) - 989:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** { - 990:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** /* Check the TIM handle allocation */ - 991:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** if(htim == NULL) - 992:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** { - 993:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** return HAL_ERROR; - 994:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** } - 995:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** - 996:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** /* Check the parameters */ - 997:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** assert_param(IS_TIM_INSTANCE(htim->Instance)); - 998:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** assert_param(IS_TIM_COUNTER_MODE(htim->Init.CounterMode)); - 999:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** assert_param(IS_TIM_CLOCKDIVISION_DIV(htim->Init.ClockDivision)); -1000:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** assert_param(IS_TIM_AUTORELOAD_PRELOAD(htim->Init.AutoReloadPreload)); -1001:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** -1002:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** if(htim->State == HAL_TIM_STATE_RESET) -1003:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** { - ARM GAS /tmp/cccrAAAm.s page 19 - - -1004:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** /* Allocate lock resource and initialize it */ -1005:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** htim->Lock = HAL_UNLOCKED; -1006:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** -1007:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** /* Init the low level hardware : GPIO, CLOCK, NVIC and DMA */ -1008:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** HAL_TIM_PWM_MspInit(htim); -1009:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** } -1010:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** -1011:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** /* Set the TIM state */ -1012:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** htim->State= HAL_TIM_STATE_BUSY; -1013:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** -1014:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** /* Init the base time for the PWM */ -1015:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** TIM_Base_SetConfig(htim->Instance, &htim->Init); -1016:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** -1017:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** /* Initialize the TIM state*/ -1018:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** htim->State= HAL_TIM_STATE_READY; -1019:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** -1020:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** return HAL_OK; -1021:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** } -1022:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** -1023:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** /** -1024:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** * @brief DeInitializes the TIM peripheral -1025:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** * @param htim TIM handle -1026:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** * @retval HAL status -1027:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** */ -1028:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** HAL_StatusTypeDef HAL_TIM_PWM_DeInit(TIM_HandleTypeDef *htim) -1029:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** { -1030:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** /* Check the parameters */ -1031:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** assert_param(IS_TIM_INSTANCE(htim->Instance)); -1032:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** -1033:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** htim->State = HAL_TIM_STATE_BUSY; -1034:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** -1035:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** /* Disable the TIM Peripheral Clock */ -1036:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** __HAL_TIM_DISABLE(htim); -1037:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** -1038:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** /* DeInit the low level hardware: GPIO, CLOCK, NVIC and DMA */ -1039:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** HAL_TIM_PWM_MspDeInit(htim); -1040:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** -1041:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** /* Change TIM state */ -1042:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** htim->State = HAL_TIM_STATE_RESET; -1043:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** -1044:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** /* Release Lock */ -1045:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** __HAL_UNLOCK(htim); -1046:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** -1047:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** return HAL_OK; -1048:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** } -1049:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** -1050:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** /** -1051:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** * @brief Initializes the TIM PWM MSP. -1052:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** * @param htim TIM handle -1053:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** * @retval None -1054:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** */ -1055:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** __weak void HAL_TIM_PWM_MspInit(TIM_HandleTypeDef *htim) -1056:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** { -1057:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** /* Prevent unused argument(s) compilation warning */ -1058:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** UNUSED(htim); -1059:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** -1060:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** /* NOTE : This function Should not be modified, when the callback is needed, - ARM GAS /tmp/cccrAAAm.s page 20 - - -1061:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** the HAL_TIM_PWM_MspInit could be implemented in the user file -1062:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** */ -1063:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** } -1064:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** -1065:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** /** -1066:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** * @brief DeInitializes TIM PWM MSP. -1067:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** * @param htim TIM handle -1068:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** * @retval None -1069:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** */ -1070:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** __weak void HAL_TIM_PWM_MspDeInit(TIM_HandleTypeDef *htim) -1071:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** { -1072:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** /* Prevent unused argument(s) compilation warning */ -1073:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** UNUSED(htim); -1074:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** -1075:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** /* NOTE : This function Should not be modified, when the callback is needed, -1076:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** the HAL_TIM_PWM_MspDeInit could be implemented in the user file -1077:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** */ -1078:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** } -1079:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** -1080:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** /** -1081:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** * @brief Starts the PWM signal generation. -1082:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** * @param htim TIM handle -1083:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** * @param Channel TIM Channels to be enabled -1084:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** * This parameter can be one of the following values: -1085:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** * @arg TIM_CHANNEL_1: TIM Channel 1 selected -1086:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** * @arg TIM_CHANNEL_2: TIM Channel 2 selected -1087:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** * @arg TIM_CHANNEL_3: TIM Channel 3 selected -1088:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** * @arg TIM_CHANNEL_4: TIM Channel 4 selected -1089:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** * @retval HAL status -1090:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** */ -1091:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** HAL_StatusTypeDef HAL_TIM_PWM_Start(TIM_HandleTypeDef *htim, uint32_t Channel) -1092:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** { -1093:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** /* Check the parameters */ -1094:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** assert_param(IS_TIM_CCX_INSTANCE(htim->Instance, Channel)); -1095:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** -1096:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** /* Enable the Capture compare channel */ -1097:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** TIM_CCxChannelCmd(htim->Instance, Channel, TIM_CCx_ENABLE); -1098:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** -1099:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** if(IS_TIM_BREAK_INSTANCE(htim->Instance) != RESET) -1100:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** { -1101:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** /* Enable the main output */ -1102:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** __HAL_TIM_MOE_ENABLE(htim); -1103:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** } -1104:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** -1105:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** /* Enable the Peripheral */ -1106:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** __HAL_TIM_ENABLE(htim); -1107:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** -1108:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** /* Return function status */ -1109:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** return HAL_OK; -1110:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** } -1111:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** -1112:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** /** -1113:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** * @brief Stops the PWM signal generation. -1114:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** * @param htim TIM handle -1115:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** * @param Channel TIM Channels to be disabled -1116:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** * This parameter can be one of the following values: -1117:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** * @arg TIM_CHANNEL_1: TIM Channel 1 selected - ARM GAS /tmp/cccrAAAm.s page 21 - - -1118:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** * @arg TIM_CHANNEL_2: TIM Channel 2 selected -1119:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** * @arg TIM_CHANNEL_3: TIM Channel 3 selected -1120:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** * @arg TIM_CHANNEL_4: TIM Channel 4 selected -1121:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** * @retval HAL status -1122:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** */ -1123:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** HAL_StatusTypeDef HAL_TIM_PWM_Stop(TIM_HandleTypeDef *htim, uint32_t Channel) -1124:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** { -1125:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** /* Check the parameters */ -1126:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** assert_param(IS_TIM_CCX_INSTANCE(htim->Instance, Channel)); -1127:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** -1128:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** /* Disable the Capture compare channel */ -1129:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** TIM_CCxChannelCmd(htim->Instance, Channel, TIM_CCx_DISABLE); -1130:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** -1131:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** if(IS_TIM_BREAK_INSTANCE(htim->Instance) != RESET) -1132:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** { -1133:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** /* Disable the Main Ouput */ -1134:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** __HAL_TIM_MOE_DISABLE(htim); -1135:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** } -1136:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** -1137:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** /* Disable the Peripheral */ -1138:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** __HAL_TIM_DISABLE(htim); -1139:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** -1140:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** /* Change the htim state */ -1141:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** htim->State = HAL_TIM_STATE_READY; -1142:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** -1143:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** /* Return function status */ -1144:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** return HAL_OK; -1145:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** } -1146:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** -1147:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** /** -1148:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** * @brief Starts the PWM signal generation in interrupt mode. -1149:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** * @param htim TIM handle -1150:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** * @param Channel TIM Channel to be enabled -1151:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** * This parameter can be one of the following values: -1152:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** * @arg TIM_CHANNEL_1: TIM Channel 1 selected -1153:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** * @arg TIM_CHANNEL_2: TIM Channel 2 selected -1154:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** * @arg TIM_CHANNEL_3: TIM Channel 3 selected -1155:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** * @arg TIM_CHANNEL_4: TIM Channel 4 selected -1156:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** * @retval HAL status -1157:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** */ -1158:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** HAL_StatusTypeDef HAL_TIM_PWM_Start_IT(TIM_HandleTypeDef *htim, uint32_t Channel) -1159:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** { -1160:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** /* Check the parameters */ -1161:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** assert_param(IS_TIM_CCX_INSTANCE(htim->Instance, Channel)); -1162:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** -1163:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** switch (Channel) -1164:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** { -1165:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** case TIM_CHANNEL_1: -1166:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** { -1167:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** /* Enable the TIM Capture/Compare 1 interrupt */ -1168:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** __HAL_TIM_ENABLE_IT(htim, TIM_IT_CC1); -1169:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** } -1170:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** break; -1171:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** -1172:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** case TIM_CHANNEL_2: -1173:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** { -1174:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** /* Enable the TIM Capture/Compare 2 interrupt */ - ARM GAS /tmp/cccrAAAm.s page 22 - - -1175:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** __HAL_TIM_ENABLE_IT(htim, TIM_IT_CC2); -1176:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** } -1177:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** break; -1178:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** -1179:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** case TIM_CHANNEL_3: -1180:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** { -1181:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** /* Enable the TIM Capture/Compare 3 interrupt */ -1182:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** __HAL_TIM_ENABLE_IT(htim, TIM_IT_CC3); -1183:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** } -1184:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** break; -1185:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** -1186:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** case TIM_CHANNEL_4: -1187:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** { -1188:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** /* Enable the TIM Capture/Compare 4 interrupt */ -1189:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** __HAL_TIM_ENABLE_IT(htim, TIM_IT_CC4); -1190:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** } -1191:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** break; -1192:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** -1193:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** default: -1194:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** break; -1195:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** } -1196:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** -1197:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** /* Enable the Capture compare channel */ -1198:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** TIM_CCxChannelCmd(htim->Instance, Channel, TIM_CCx_ENABLE); -1199:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** -1200:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** if(IS_TIM_BREAK_INSTANCE(htim->Instance) != RESET) -1201:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** { -1202:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** /* Enable the main output */ -1203:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** __HAL_TIM_MOE_ENABLE(htim); -1204:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** } -1205:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** -1206:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** /* Enable the Peripheral */ -1207:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** __HAL_TIM_ENABLE(htim); -1208:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** -1209:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** /* Return function status */ -1210:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** return HAL_OK; -1211:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** } -1212:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** -1213:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** /** -1214:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** * @brief Stops the PWM signal generation in interrupt mode. -1215:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** * @param htim TIM handle -1216:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** * @param Channel TIM Channels to be disabled -1217:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** * This parameter can be one of the following values: -1218:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** * @arg TIM_CHANNEL_1: TIM Channel 1 selected -1219:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** * @arg TIM_CHANNEL_2: TIM Channel 2 selected -1220:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** * @arg TIM_CHANNEL_3: TIM Channel 3 selected -1221:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** * @arg TIM_CHANNEL_4: TIM Channel 4 selected -1222:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** * @retval HAL status -1223:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** */ -1224:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** HAL_StatusTypeDef HAL_TIM_PWM_Stop_IT (TIM_HandleTypeDef *htim, uint32_t Channel) -1225:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** { -1226:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** /* Check the parameters */ -1227:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** assert_param(IS_TIM_CCX_INSTANCE(htim->Instance, Channel)); -1228:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** -1229:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** switch (Channel) -1230:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** { -1231:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** case TIM_CHANNEL_1: - ARM GAS /tmp/cccrAAAm.s page 23 - - -1232:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** { -1233:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** /* Disable the TIM Capture/Compare 1 interrupt */ -1234:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** __HAL_TIM_DISABLE_IT(htim, TIM_IT_CC1); -1235:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** } -1236:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** break; -1237:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** -1238:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** case TIM_CHANNEL_2: -1239:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** { -1240:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** /* Disable the TIM Capture/Compare 2 interrupt */ -1241:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** __HAL_TIM_DISABLE_IT(htim, TIM_IT_CC2); -1242:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** } -1243:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** break; -1244:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** -1245:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** case TIM_CHANNEL_3: -1246:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** { -1247:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** /* Disable the TIM Capture/Compare 3 interrupt */ -1248:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** __HAL_TIM_DISABLE_IT(htim, TIM_IT_CC3); -1249:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** } -1250:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** break; -1251:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** -1252:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** case TIM_CHANNEL_4: -1253:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** { -1254:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** /* Disable the TIM Capture/Compare 4 interrupt */ -1255:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** __HAL_TIM_DISABLE_IT(htim, TIM_IT_CC4); -1256:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** } -1257:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** break; -1258:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** -1259:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** default: -1260:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** break; -1261:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** } -1262:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** -1263:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** /* Disable the Capture compare channel */ -1264:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** TIM_CCxChannelCmd(htim->Instance, Channel, TIM_CCx_DISABLE); -1265:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** -1266:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** if(IS_TIM_BREAK_INSTANCE(htim->Instance) != RESET) -1267:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** { -1268:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** /* Disable the Main Ouput */ -1269:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** __HAL_TIM_MOE_DISABLE(htim); -1270:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** } -1271:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** -1272:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** /* Disable the Peripheral */ -1273:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** __HAL_TIM_DISABLE(htim); -1274:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** -1275:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** /* Return function status */ -1276:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** return HAL_OK; -1277:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** } -1278:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** -1279:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** /** -1280:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** * @brief Starts the TIM PWM signal generation in DMA mode. -1281:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** * @param htim TIM handle -1282:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** * @param Channel TIM Channels to be enabled -1283:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** * This parameter can be one of the following values: -1284:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** * @arg TIM_CHANNEL_1: TIM Channel 1 selected -1285:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** * @arg TIM_CHANNEL_2: TIM Channel 2 selected -1286:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** * @arg TIM_CHANNEL_3: TIM Channel 3 selected -1287:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** * @arg TIM_CHANNEL_4: TIM Channel 4 selected -1288:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** * @param pData The source Buffer address. - ARM GAS /tmp/cccrAAAm.s page 24 - - -1289:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** * @param Length The length of data to be transferred from memory to TIM peripheral -1290:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** * @retval HAL status -1291:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** */ -1292:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** HAL_StatusTypeDef HAL_TIM_PWM_Start_DMA(TIM_HandleTypeDef *htim, uint32_t Channel, uint32_t *pData, -1293:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** { -1294:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** /* Check the parameters */ -1295:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** assert_param(IS_TIM_CCX_INSTANCE(htim->Instance, Channel)); -1296:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** -1297:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** if((htim->State == HAL_TIM_STATE_BUSY)) -1298:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** { -1299:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** return HAL_BUSY; -1300:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** } -1301:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** else if((htim->State == HAL_TIM_STATE_READY)) -1302:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** { -1303:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** if(((uint32_t)pData == 0U ) && (Length > 0U)) -1304:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** { -1305:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** return HAL_ERROR; -1306:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** } -1307:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** else -1308:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** { -1309:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** htim->State = HAL_TIM_STATE_BUSY; -1310:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** } -1311:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** } -1312:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** switch (Channel) -1313:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** { -1314:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** case TIM_CHANNEL_1: -1315:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** { -1316:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** /* Set the DMA Period elapsed callback */ -1317:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** htim->hdma[TIM_DMA_ID_CC1]->XferCpltCallback = TIM_DMADelayPulseCplt; -1318:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** -1319:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** /* Set the DMA error callback */ -1320:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** htim->hdma[TIM_DMA_ID_CC1]->XferErrorCallback = TIM_DMAError ; -1321:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** -1322:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** /* Enable the DMA channel */ -1323:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** HAL_DMA_Start_IT(htim->hdma[TIM_DMA_ID_CC1], (uint32_t)pData, (uint32_t)&htim->Instance->CCR1 -1324:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** -1325:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** /* Enable the TIM Capture/Compare 1 DMA request */ -1326:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** __HAL_TIM_ENABLE_DMA(htim, TIM_DMA_CC1); -1327:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** } -1328:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** break; -1329:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** -1330:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** case TIM_CHANNEL_2: -1331:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** { -1332:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** /* Set the DMA Period elapsed callback */ -1333:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** htim->hdma[TIM_DMA_ID_CC2]->XferCpltCallback = TIM_DMADelayPulseCplt; -1334:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** -1335:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** /* Set the DMA error callback */ -1336:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** htim->hdma[TIM_DMA_ID_CC2]->XferErrorCallback = TIM_DMAError ; -1337:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** -1338:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** /* Enable the DMA channel */ -1339:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** HAL_DMA_Start_IT(htim->hdma[TIM_DMA_ID_CC2], (uint32_t)pData, (uint32_t)&htim->Instance->CCR2 -1340:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** -1341:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** /* Enable the TIM Capture/Compare 2 DMA request */ -1342:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** __HAL_TIM_ENABLE_DMA(htim, TIM_DMA_CC2); -1343:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** } -1344:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** break; -1345:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** - ARM GAS /tmp/cccrAAAm.s page 25 - - -1346:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** case TIM_CHANNEL_3: -1347:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** { -1348:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** /* Set the DMA Period elapsed callback */ -1349:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** htim->hdma[TIM_DMA_ID_CC3]->XferCpltCallback = TIM_DMADelayPulseCplt; -1350:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** -1351:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** /* Set the DMA error callback */ -1352:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** htim->hdma[TIM_DMA_ID_CC3]->XferErrorCallback = TIM_DMAError ; -1353:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** -1354:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** /* Enable the DMA channel */ -1355:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** HAL_DMA_Start_IT(htim->hdma[TIM_DMA_ID_CC3], (uint32_t)pData, (uint32_t)&htim->Instance->CCR3 -1356:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** -1357:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** /* Enable the TIM Output Capture/Compare 3 request */ -1358:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** __HAL_TIM_ENABLE_DMA(htim, TIM_DMA_CC3); -1359:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** } -1360:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** break; -1361:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** -1362:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** case TIM_CHANNEL_4: -1363:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** { -1364:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** /* Set the DMA Period elapsed callback */ -1365:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** htim->hdma[TIM_DMA_ID_CC4]->XferCpltCallback = TIM_DMADelayPulseCplt; -1366:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** -1367:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** /* Set the DMA error callback */ -1368:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** htim->hdma[TIM_DMA_ID_CC4]->XferErrorCallback = TIM_DMAError ; -1369:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** -1370:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** /* Enable the DMA channel */ -1371:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** HAL_DMA_Start_IT(htim->hdma[TIM_DMA_ID_CC4], (uint32_t)pData, (uint32_t)&htim->Instance->CCR4 -1372:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** -1373:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** /* Enable the TIM Capture/Compare 4 DMA request */ -1374:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** __HAL_TIM_ENABLE_DMA(htim, TIM_DMA_CC4); -1375:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** } -1376:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** break; -1377:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** -1378:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** default: -1379:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** break; -1380:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** } -1381:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** -1382:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** /* Enable the Capture compare channel */ -1383:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** TIM_CCxChannelCmd(htim->Instance, Channel, TIM_CCx_ENABLE); -1384:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** -1385:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** if(IS_TIM_BREAK_INSTANCE(htim->Instance) != RESET) -1386:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** { -1387:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** /* Enable the main output */ -1388:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** __HAL_TIM_MOE_ENABLE(htim); -1389:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** } -1390:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** -1391:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** /* Enable the Peripheral */ -1392:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** __HAL_TIM_ENABLE(htim); -1393:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** -1394:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** /* Return function status */ -1395:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** return HAL_OK; -1396:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** } -1397:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** -1398:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** /** -1399:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** * @brief Stops the TIM PWM signal generation in DMA mode. -1400:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** * @param htim TIM handle -1401:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** * @param Channel TIM Channels to be disabled -1402:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** * This parameter can be one of the following values: - ARM GAS /tmp/cccrAAAm.s page 26 - - -1403:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** * @arg TIM_CHANNEL_1: TIM Channel 1 selected -1404:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** * @arg TIM_CHANNEL_2: TIM Channel 2 selected -1405:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** * @arg TIM_CHANNEL_3: TIM Channel 3 selected -1406:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** * @arg TIM_CHANNEL_4: TIM Channel 4 selected -1407:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** * @retval HAL status -1408:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** */ -1409:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** HAL_StatusTypeDef HAL_TIM_PWM_Stop_DMA(TIM_HandleTypeDef *htim, uint32_t Channel) -1410:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** { -1411:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** /* Check the parameters */ -1412:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** assert_param(IS_TIM_CCX_INSTANCE(htim->Instance, Channel)); -1413:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** -1414:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** switch (Channel) -1415:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** { -1416:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** case TIM_CHANNEL_1: -1417:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** { -1418:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** /* Disable the TIM Capture/Compare 1 DMA request */ -1419:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** __HAL_TIM_DISABLE_DMA(htim, TIM_DMA_CC1); -1420:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** } -1421:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** break; -1422:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** -1423:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** case TIM_CHANNEL_2: -1424:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** { -1425:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** /* Disable the TIM Capture/Compare 2 DMA request */ -1426:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** __HAL_TIM_DISABLE_DMA(htim, TIM_DMA_CC2); -1427:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** } -1428:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** break; -1429:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** -1430:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** case TIM_CHANNEL_3: -1431:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** { -1432:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** /* Disable the TIM Capture/Compare 3 DMA request */ -1433:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** __HAL_TIM_DISABLE_DMA(htim, TIM_DMA_CC3); -1434:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** } -1435:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** break; -1436:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** -1437:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** case TIM_CHANNEL_4: -1438:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** { -1439:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** /* Disable the TIM Capture/Compare 4 interrupt */ -1440:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** __HAL_TIM_DISABLE_DMA(htim, TIM_DMA_CC4); -1441:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** } -1442:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** break; -1443:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** -1444:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** default: -1445:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** break; -1446:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** } -1447:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** -1448:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** /* Disable the Capture compare channel */ -1449:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** TIM_CCxChannelCmd(htim->Instance, Channel, TIM_CCx_DISABLE); -1450:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** -1451:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** if(IS_TIM_BREAK_INSTANCE(htim->Instance) != RESET) -1452:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** { -1453:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** /* Disable the Main Ouput */ -1454:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** __HAL_TIM_MOE_DISABLE(htim); -1455:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** } -1456:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** -1457:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** /* Disable the Peripheral */ -1458:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** __HAL_TIM_DISABLE(htim); -1459:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** - ARM GAS /tmp/cccrAAAm.s page 27 - - -1460:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** /* Change the htim state */ -1461:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** htim->State = HAL_TIM_STATE_READY; -1462:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** -1463:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** /* Return function status */ -1464:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** return HAL_OK; -1465:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** } -1466:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** -1467:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** /** -1468:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** * @} -1469:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** */ -1470:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** -1471:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** /** @defgroup TIM_Exported_Functions_Group4 Time Input Capture functions -1472:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** * @brief Time Input Capture functions -1473:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** * -1474:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** @verbatim -1475:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** ============================================================================== -1476:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** ##### Time Input Capture functions ##### -1477:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** ============================================================================== -1478:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** [..] -1479:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** This section provides functions allowing to: -1480:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** (+) Initialize and configure the TIM Input Capture. -1481:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** (+) De-initialize the TIM Input Capture. -1482:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** (+) Start the Time Input Capture. -1483:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** (+) Stop the Time Input Capture. -1484:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** (+) Start the Time Input Capture and enable interrupt. -1485:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** (+) Stop the Time Input Capture and disable interrupt. -1486:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** (+) Start the Time Input Capture and enable DMA transfer. -1487:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** (+) Stop the Time Input Capture and disable DMA transfer. -1488:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** -1489:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** @endverbatim -1490:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** * @{ -1491:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** */ -1492:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** /** -1493:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** * @brief Initializes the TIM Input Capture Time base according to the specified -1494:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** * parameters in the TIM_HandleTypeDef and create the associated handle. -1495:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** * @param htim TIM Input Capture handle -1496:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** * @retval HAL status -1497:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** */ -1498:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** HAL_StatusTypeDef HAL_TIM_IC_Init(TIM_HandleTypeDef *htim) -1499:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** { -1500:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** /* Check the TIM handle allocation */ -1501:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** if(htim == NULL) -1502:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** { -1503:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** return HAL_ERROR; -1504:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** } -1505:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** -1506:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** /* Check the parameters */ -1507:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** assert_param(IS_TIM_INSTANCE(htim->Instance)); -1508:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** assert_param(IS_TIM_COUNTER_MODE(htim->Init.CounterMode)); -1509:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** assert_param(IS_TIM_CLOCKDIVISION_DIV(htim->Init.ClockDivision)); -1510:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** assert_param(IS_TIM_AUTORELOAD_PRELOAD(htim->Init.AutoReloadPreload)); -1511:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** -1512:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** if(htim->State == HAL_TIM_STATE_RESET) -1513:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** { -1514:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** /* Allocate lock resource and initialize it */ -1515:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** htim->Lock = HAL_UNLOCKED; -1516:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** - ARM GAS /tmp/cccrAAAm.s page 28 - - -1517:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** /* Init the low level hardware : GPIO, CLOCK, NVIC and DMA */ -1518:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** HAL_TIM_IC_MspInit(htim); -1519:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** } -1520:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** -1521:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** /* Set the TIM state */ -1522:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** htim->State= HAL_TIM_STATE_BUSY; -1523:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** -1524:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** /* Init the base time for the input capture */ -1525:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** TIM_Base_SetConfig(htim->Instance, &htim->Init); -1526:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** -1527:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** /* Initialize the TIM state*/ -1528:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** htim->State= HAL_TIM_STATE_READY; -1529:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** -1530:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** return HAL_OK; -1531:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** } -1532:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** -1533:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** /** -1534:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** * @brief DeInitializes the TIM peripheral -1535:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** * @param htim TIM Input Capture handle -1536:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** * @retval HAL status -1537:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** */ -1538:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** HAL_StatusTypeDef HAL_TIM_IC_DeInit(TIM_HandleTypeDef *htim) -1539:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** { -1540:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** /* Check the parameters */ -1541:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** assert_param(IS_TIM_INSTANCE(htim->Instance)); -1542:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** -1543:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** htim->State = HAL_TIM_STATE_BUSY; -1544:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** -1545:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** /* Disable the TIM Peripheral Clock */ -1546:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** __HAL_TIM_DISABLE(htim); -1547:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** -1548:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** /* DeInit the low level hardware: GPIO, CLOCK, NVIC and DMA */ -1549:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** HAL_TIM_IC_MspDeInit(htim); -1550:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** -1551:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** /* Change TIM state */ -1552:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** htim->State = HAL_TIM_STATE_RESET; -1553:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** -1554:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** /* Release Lock */ -1555:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** __HAL_UNLOCK(htim); -1556:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** -1557:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** return HAL_OK; -1558:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** } -1559:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** -1560:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** /** -1561:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** * @brief Initializes the TIM Input Capture MSP. -1562:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** * @param htim TIM handle -1563:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** * @retval None -1564:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** */ -1565:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** __weak void HAL_TIM_IC_MspInit(TIM_HandleTypeDef *htim) -1566:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** { -1567:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** /* Prevent unused argument(s) compilation warning */ -1568:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** UNUSED(htim); -1569:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** -1570:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** /* NOTE : This function Should not be modified, when the callback is needed, -1571:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** the HAL_TIM_IC_MspInit could be implemented in the user file -1572:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** */ -1573:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** } - ARM GAS /tmp/cccrAAAm.s page 29 - - -1574:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** -1575:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** /** -1576:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** * @brief DeInitializes TIM Input Capture MSP. -1577:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** * @param htim TIM handle -1578:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** * @retval None -1579:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** */ -1580:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** __weak void HAL_TIM_IC_MspDeInit(TIM_HandleTypeDef *htim) -1581:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** { -1582:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** /* Prevent unused argument(s) compilation warning */ -1583:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** UNUSED(htim); -1584:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** -1585:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** /* NOTE : This function Should not be modified, when the callback is needed, -1586:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** the HAL_TIM_IC_MspDeInit could be implemented in the user file -1587:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** */ -1588:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** } -1589:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** -1590:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** /** -1591:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** * @brief Starts the TIM Input Capture measurement. -1592:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** * @param htim TIM Input Capture handle -1593:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** * @param Channel TIM Channels to be enabled -1594:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** * This parameter can be one of the following values: -1595:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** * @arg TIM_CHANNEL_1: TIM Channel 1 selected -1596:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** * @arg TIM_CHANNEL_2: TIM Channel 2 selected -1597:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** * @arg TIM_CHANNEL_3: TIM Channel 3 selected -1598:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** * @arg TIM_CHANNEL_4: TIM Channel 4 selected -1599:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** * @retval HAL status -1600:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** */ -1601:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** HAL_StatusTypeDef HAL_TIM_IC_Start (TIM_HandleTypeDef *htim, uint32_t Channel) -1602:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** { -1603:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** /* Check the parameters */ -1604:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** assert_param(IS_TIM_CCX_INSTANCE(htim->Instance, Channel)); -1605:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** -1606:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** /* Enable the Input Capture channel */ -1607:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** TIM_CCxChannelCmd(htim->Instance, Channel, TIM_CCx_ENABLE); -1608:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** -1609:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** /* Enable the Peripheral */ -1610:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** __HAL_TIM_ENABLE(htim); -1611:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** -1612:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** /* Return function status */ -1613:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** return HAL_OK; -1614:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** } -1615:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** -1616:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** /** -1617:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** * @brief Stops the TIM Input Capture measurement. -1618:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** * @param htim TIM handle -1619:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** * @param Channel TIM Channels to be disabled -1620:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** * This parameter can be one of the following values: -1621:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** * @arg TIM_CHANNEL_1: TIM Channel 1 selected -1622:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** * @arg TIM_CHANNEL_2: TIM Channel 2 selected -1623:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** * @arg TIM_CHANNEL_3: TIM Channel 3 selected -1624:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** * @arg TIM_CHANNEL_4: TIM Channel 4 selected -1625:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** * @retval HAL status -1626:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** */ -1627:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** HAL_StatusTypeDef HAL_TIM_IC_Stop(TIM_HandleTypeDef *htim, uint32_t Channel) -1628:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** { -1629:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** /* Check the parameters */ -1630:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** assert_param(IS_TIM_CCX_INSTANCE(htim->Instance, Channel)); - ARM GAS /tmp/cccrAAAm.s page 30 - - -1631:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** -1632:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** /* Disable the Input Capture channel */ -1633:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** TIM_CCxChannelCmd(htim->Instance, Channel, TIM_CCx_DISABLE); -1634:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** -1635:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** /* Disable the Peripheral */ -1636:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** __HAL_TIM_DISABLE(htim); -1637:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** -1638:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** /* Return function status */ -1639:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** return HAL_OK; -1640:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** } -1641:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** -1642:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** /** -1643:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** * @brief Starts the TIM Input Capture measurement in interrupt mode. -1644:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** * @param htim TIM Input Capture handle -1645:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** * @param Channel TIM Channels to be enabled -1646:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** * This parameter can be one of the following values: -1647:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** * @arg TIM_CHANNEL_1: TIM Channel 1 selected -1648:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** * @arg TIM_CHANNEL_2: TIM Channel 2 selected -1649:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** * @arg TIM_CHANNEL_3: TIM Channel 3 selected -1650:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** * @arg TIM_CHANNEL_4: TIM Channel 4 selected -1651:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** * @retval HAL status -1652:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** */ -1653:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** HAL_StatusTypeDef HAL_TIM_IC_Start_IT (TIM_HandleTypeDef *htim, uint32_t Channel) -1654:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** { -1655:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** /* Check the parameters */ -1656:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** assert_param(IS_TIM_CCX_INSTANCE(htim->Instance, Channel)); -1657:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** -1658:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** switch (Channel) -1659:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** { -1660:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** case TIM_CHANNEL_1: -1661:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** { -1662:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** /* Enable the TIM Capture/Compare 1 interrupt */ -1663:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** __HAL_TIM_ENABLE_IT(htim, TIM_IT_CC1); -1664:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** } -1665:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** break; -1666:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** -1667:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** case TIM_CHANNEL_2: -1668:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** { -1669:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** /* Enable the TIM Capture/Compare 2 interrupt */ -1670:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** __HAL_TIM_ENABLE_IT(htim, TIM_IT_CC2); -1671:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** } -1672:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** break; -1673:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** -1674:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** case TIM_CHANNEL_3: -1675:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** { -1676:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** /* Enable the TIM Capture/Compare 3 interrupt */ -1677:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** __HAL_TIM_ENABLE_IT(htim, TIM_IT_CC3); -1678:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** } -1679:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** break; -1680:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** -1681:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** case TIM_CHANNEL_4: -1682:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** { -1683:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** /* Enable the TIM Capture/Compare 4 interrupt */ -1684:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** __HAL_TIM_ENABLE_IT(htim, TIM_IT_CC4); -1685:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** } -1686:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** break; -1687:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** - ARM GAS /tmp/cccrAAAm.s page 31 - - -1688:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** default: -1689:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** break; -1690:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** } -1691:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** /* Enable the Input Capture channel */ -1692:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** TIM_CCxChannelCmd(htim->Instance, Channel, TIM_CCx_ENABLE); -1693:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** -1694:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** /* Enable the Peripheral */ -1695:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** __HAL_TIM_ENABLE(htim); -1696:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** -1697:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** /* Return function status */ -1698:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** return HAL_OK; -1699:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** } -1700:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** -1701:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** /** -1702:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** * @brief Stops the TIM Input Capture measurement in interrupt mode. -1703:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** * @param htim TIM handle -1704:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** * @param Channel TIM Channels to be disabled -1705:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** * This parameter can be one of the following values: -1706:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** * @arg TIM_CHANNEL_1: TIM Channel 1 selected -1707:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** * @arg TIM_CHANNEL_2: TIM Channel 2 selected -1708:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** * @arg TIM_CHANNEL_3: TIM Channel 3 selected -1709:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** * @arg TIM_CHANNEL_4: TIM Channel 4 selected -1710:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** * @retval HAL status -1711:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** */ -1712:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** HAL_StatusTypeDef HAL_TIM_IC_Stop_IT(TIM_HandleTypeDef *htim, uint32_t Channel) -1713:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** { -1714:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** /* Check the parameters */ -1715:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** assert_param(IS_TIM_CCX_INSTANCE(htim->Instance, Channel)); -1716:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** -1717:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** switch (Channel) -1718:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** { -1719:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** case TIM_CHANNEL_1: -1720:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** { -1721:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** /* Disable the TIM Capture/Compare 1 interrupt */ -1722:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** __HAL_TIM_DISABLE_IT(htim, TIM_IT_CC1); -1723:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** } -1724:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** break; -1725:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** -1726:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** case TIM_CHANNEL_2: -1727:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** { -1728:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** /* Disable the TIM Capture/Compare 2 interrupt */ -1729:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** __HAL_TIM_DISABLE_IT(htim, TIM_IT_CC2); -1730:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** } -1731:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** break; -1732:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** -1733:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** case TIM_CHANNEL_3: -1734:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** { -1735:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** /* Disable the TIM Capture/Compare 3 interrupt */ -1736:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** __HAL_TIM_DISABLE_IT(htim, TIM_IT_CC3); -1737:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** } -1738:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** break; -1739:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** -1740:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** case TIM_CHANNEL_4: -1741:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** { -1742:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** /* Disable the TIM Capture/Compare 4 interrupt */ -1743:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** __HAL_TIM_DISABLE_IT(htim, TIM_IT_CC4); -1744:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** } - ARM GAS /tmp/cccrAAAm.s page 32 - - -1745:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** break; -1746:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** -1747:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** default: -1748:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** break; -1749:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** } -1750:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** -1751:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** /* Disable the Input Capture channel */ -1752:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** TIM_CCxChannelCmd(htim->Instance, Channel, TIM_CCx_DISABLE); -1753:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** -1754:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** /* Disable the Peripheral */ -1755:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** __HAL_TIM_DISABLE(htim); -1756:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** -1757:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** /* Return function status */ -1758:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** return HAL_OK; -1759:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** } -1760:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** -1761:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** /** -1762:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** * @brief Starts the TIM Input Capture measurement in DMA mode. -1763:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** * @param htim TIM Input Capture handle -1764:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** * @param Channel TIM Channels to be enabled -1765:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** * This parameter can be one of the following values: -1766:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** * @arg TIM_CHANNEL_1: TIM Channel 1 selected -1767:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** * @arg TIM_CHANNEL_2: TIM Channel 2 selected -1768:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** * @arg TIM_CHANNEL_3: TIM Channel 3 selected -1769:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** * @arg TIM_CHANNEL_4: TIM Channel 4 selected -1770:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** * @param pData The destination Buffer address. -1771:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** * @param Length The length of data to be transferred from TIM peripheral to memory. -1772:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** * @retval HAL status -1773:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** */ -1774:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** HAL_StatusTypeDef HAL_TIM_IC_Start_DMA(TIM_HandleTypeDef *htim, uint32_t Channel, uint32_t *pData, -1775:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** { -1776:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** /* Check the parameters */ -1777:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** assert_param(IS_TIM_CCX_INSTANCE(htim->Instance, Channel)); -1778:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** assert_param(IS_TIM_DMA_CC_INSTANCE(htim->Instance)); -1779:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** -1780:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** if((htim->State == HAL_TIM_STATE_BUSY)) -1781:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** { -1782:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** return HAL_BUSY; -1783:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** } -1784:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** else if((htim->State == HAL_TIM_STATE_READY)) -1785:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** { -1786:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** if((pData == 0U ) && (Length > 0U)) -1787:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** { -1788:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** return HAL_ERROR; -1789:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** } -1790:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** else -1791:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** { -1792:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** htim->State = HAL_TIM_STATE_BUSY; -1793:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** } -1794:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** } -1795:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** -1796:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** switch (Channel) -1797:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** { -1798:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** case TIM_CHANNEL_1: -1799:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** { -1800:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** /* Set the DMA Period elapsed callback */ -1801:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** htim->hdma[TIM_DMA_ID_CC1]->XferCpltCallback = TIM_DMACaptureCplt; - ARM GAS /tmp/cccrAAAm.s page 33 - - -1802:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** -1803:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** /* Set the DMA error callback */ -1804:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** htim->hdma[TIM_DMA_ID_CC1]->XferErrorCallback = TIM_DMAError ; -1805:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** -1806:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** /* Enable the DMA channel */ -1807:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** HAL_DMA_Start_IT(htim->hdma[TIM_DMA_ID_CC1], (uint32_t)&htim->Instance->CCR1, (uint32_t)pData -1808:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** -1809:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** /* Enable the TIM Capture/Compare 1 DMA request */ -1810:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** __HAL_TIM_ENABLE_DMA(htim, TIM_DMA_CC1); -1811:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** } -1812:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** break; -1813:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** -1814:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** case TIM_CHANNEL_2: -1815:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** { -1816:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** /* Set the DMA Period elapsed callback */ -1817:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** htim->hdma[TIM_DMA_ID_CC2]->XferCpltCallback = TIM_DMACaptureCplt; -1818:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** -1819:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** /* Set the DMA error callback */ -1820:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** htim->hdma[TIM_DMA_ID_CC2]->XferErrorCallback = TIM_DMAError ; -1821:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** -1822:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** /* Enable the DMA channel */ -1823:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** HAL_DMA_Start_IT(htim->hdma[TIM_DMA_ID_CC2], (uint32_t)&htim->Instance->CCR2, (uint32_t)pData -1824:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** -1825:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** /* Enable the TIM Capture/Compare 2 DMA request */ -1826:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** __HAL_TIM_ENABLE_DMA(htim, TIM_DMA_CC2); -1827:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** } -1828:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** break; -1829:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** -1830:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** case TIM_CHANNEL_3: -1831:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** { -1832:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** /* Set the DMA Period elapsed callback */ -1833:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** htim->hdma[TIM_DMA_ID_CC3]->XferCpltCallback = TIM_DMACaptureCplt; -1834:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** -1835:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** /* Set the DMA error callback */ -1836:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** htim->hdma[TIM_DMA_ID_CC3]->XferErrorCallback = TIM_DMAError ; -1837:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** -1838:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** /* Enable the DMA channel */ -1839:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** HAL_DMA_Start_IT(htim->hdma[TIM_DMA_ID_CC3], (uint32_t)&htim->Instance->CCR3, (uint32_t)pData -1840:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** -1841:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** /* Enable the TIM Capture/Compare 3 DMA request */ -1842:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** __HAL_TIM_ENABLE_DMA(htim, TIM_DMA_CC3); -1843:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** } -1844:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** break; -1845:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** -1846:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** case TIM_CHANNEL_4: -1847:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** { -1848:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** /* Set the DMA Period elapsed callback */ -1849:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** htim->hdma[TIM_DMA_ID_CC4]->XferCpltCallback = TIM_DMACaptureCplt; -1850:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** -1851:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** /* Set the DMA error callback */ -1852:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** htim->hdma[TIM_DMA_ID_CC4]->XferErrorCallback = TIM_DMAError ; -1853:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** -1854:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** /* Enable the DMA channel */ -1855:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** HAL_DMA_Start_IT(htim->hdma[TIM_DMA_ID_CC4], (uint32_t)&htim->Instance->CCR4, (uint32_t)pData -1856:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** -1857:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** /* Enable the TIM Capture/Compare 4 DMA request */ -1858:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** __HAL_TIM_ENABLE_DMA(htim, TIM_DMA_CC4); - ARM GAS /tmp/cccrAAAm.s page 34 - - -1859:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** } -1860:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** break; -1861:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** -1862:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** default: -1863:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** break; -1864:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** } -1865:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** -1866:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** /* Enable the Input Capture channel */ -1867:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** TIM_CCxChannelCmd(htim->Instance, Channel, TIM_CCx_ENABLE); -1868:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** -1869:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** /* Enable the Peripheral */ -1870:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** __HAL_TIM_ENABLE(htim); -1871:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** -1872:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** /* Return function status */ -1873:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** return HAL_OK; -1874:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** } -1875:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** -1876:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** /** -1877:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** * @brief Stops the TIM Input Capture measurement in DMA mode. -1878:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** * @param htim TIM Input Capture handle -1879:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** * @param Channel TIM Channels to be disabled -1880:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** * This parameter can be one of the following values: -1881:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** * @arg TIM_CHANNEL_1: TIM Channel 1 selected -1882:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** * @arg TIM_CHANNEL_2: TIM Channel 2 selected -1883:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** * @arg TIM_CHANNEL_3: TIM Channel 3 selected -1884:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** * @arg TIM_CHANNEL_4: TIM Channel 4 selected -1885:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** * @retval HAL status -1886:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** */ -1887:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** HAL_StatusTypeDef HAL_TIM_IC_Stop_DMA(TIM_HandleTypeDef *htim, uint32_t Channel) -1888:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** { -1889:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** /* Check the parameters */ -1890:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** assert_param(IS_TIM_CCX_INSTANCE(htim->Instance, Channel)); -1891:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** assert_param(IS_TIM_DMA_CC_INSTANCE(htim->Instance)); -1892:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** -1893:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** switch (Channel) -1894:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** { -1895:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** case TIM_CHANNEL_1: -1896:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** { -1897:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** /* Disable the TIM Capture/Compare 1 DMA request */ -1898:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** __HAL_TIM_DISABLE_DMA(htim, TIM_DMA_CC1); -1899:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** } -1900:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** break; -1901:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** -1902:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** case TIM_CHANNEL_2: -1903:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** { -1904:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** /* Disable the TIM Capture/Compare 2 DMA request */ -1905:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** __HAL_TIM_DISABLE_DMA(htim, TIM_DMA_CC2); -1906:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** } -1907:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** break; -1908:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** -1909:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** case TIM_CHANNEL_3: -1910:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** { -1911:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** /* Disable the TIM Capture/Compare 3 DMA request */ -1912:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** __HAL_TIM_DISABLE_DMA(htim, TIM_DMA_CC3); -1913:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** } -1914:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** break; -1915:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** - ARM GAS /tmp/cccrAAAm.s page 35 - - -1916:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** case TIM_CHANNEL_4: -1917:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** { -1918:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** /* Disable the TIM Capture/Compare 4 DMA request */ -1919:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** __HAL_TIM_DISABLE_DMA(htim, TIM_DMA_CC4); -1920:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** } -1921:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** break; -1922:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** -1923:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** default: -1924:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** break; -1925:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** } -1926:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** -1927:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** /* Disable the Input Capture channel */ -1928:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** TIM_CCxChannelCmd(htim->Instance, Channel, TIM_CCx_DISABLE); -1929:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** -1930:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** /* Disable the Peripheral */ -1931:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** __HAL_TIM_DISABLE(htim); -1932:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** -1933:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** /* Change the htim state */ -1934:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** htim->State = HAL_TIM_STATE_READY; -1935:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** -1936:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** /* Return function status */ -1937:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** return HAL_OK; -1938:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** } -1939:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** /** -1940:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** * @} -1941:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** */ -1942:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** -1943:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** /** @defgroup TIM_Exported_Functions_Group5 Time One Pulse functions -1944:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** * @brief Time One Pulse functions -1945:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** * -1946:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** @verbatim -1947:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** ============================================================================== -1948:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** ##### Time One Pulse functions ##### -1949:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** ============================================================================== -1950:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** [..] -1951:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** This section provides functions allowing to: -1952:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** (+) Initialize and configure the TIM One Pulse. -1953:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** (+) De-initialize the TIM One Pulse. -1954:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** (+) Start the Time One Pulse. -1955:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** (+) Stop the Time One Pulse. -1956:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** (+) Start the Time One Pulse and enable interrupt. -1957:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** (+) Stop the Time One Pulse and disable interrupt. -1958:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** (+) Start the Time One Pulse and enable DMA transfer. -1959:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** (+) Stop the Time One Pulse and disable DMA transfer. -1960:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** -1961:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** @endverbatim -1962:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** * @{ -1963:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** */ -1964:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** /** -1965:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** * @brief Initializes the TIM One Pulse Time Base according to the specified -1966:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** * parameters in the TIM_HandleTypeDef and create the associated handle. -1967:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** * @param htim TIM OnePulse handle -1968:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** * @param OnePulseMode Select the One pulse mode. -1969:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** * This parameter can be one of the following values: -1970:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** * @arg TIM_OPMODE_SINGLE: Only one pulse will be generated. -1971:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** * @arg TIM_OPMODE_REPETITIVE: Repetitive pulses wil be generated. -1972:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** * @retval HAL status - ARM GAS /tmp/cccrAAAm.s page 36 - - -1973:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** */ -1974:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** HAL_StatusTypeDef HAL_TIM_OnePulse_Init(TIM_HandleTypeDef *htim, uint32_t OnePulseMode) -1975:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** { -1976:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** /* Check the TIM handle allocation */ -1977:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** if(htim == NULL) -1978:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** { -1979:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** return HAL_ERROR; -1980:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** } -1981:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** -1982:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** /* Check the parameters */ -1983:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** assert_param(IS_TIM_INSTANCE(htim->Instance)); -1984:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** assert_param(IS_TIM_COUNTER_MODE(htim->Init.CounterMode)); -1985:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** assert_param(IS_TIM_CLOCKDIVISION_DIV(htim->Init.ClockDivision)); -1986:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** assert_param(IS_TIM_OPM_MODE(OnePulseMode)); -1987:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** assert_param(IS_TIM_AUTORELOAD_PRELOAD(htim->Init.AutoReloadPreload)); -1988:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** -1989:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** if(htim->State == HAL_TIM_STATE_RESET) -1990:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** { -1991:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** /* Allocate lock resource and initialize it */ -1992:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** htim->Lock = HAL_UNLOCKED; -1993:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** -1994:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** /* Init the low level hardware : GPIO, CLOCK, NVIC and DMA */ -1995:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** HAL_TIM_OnePulse_MspInit(htim); -1996:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** } -1997:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** -1998:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** /* Set the TIM state */ -1999:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** htim->State= HAL_TIM_STATE_BUSY; -2000:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** -2001:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** /* Configure the Time base in the One Pulse Mode */ -2002:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** TIM_Base_SetConfig(htim->Instance, &htim->Init); -2003:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** -2004:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** /* Reset the OPM Bit */ -2005:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** htim->Instance->CR1 &= ~TIM_CR1_OPM; -2006:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** -2007:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** /* Configure the OPM Mode */ -2008:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** htim->Instance->CR1 |= OnePulseMode; -2009:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** -2010:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** /* Initialize the TIM state*/ -2011:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** htim->State= HAL_TIM_STATE_READY; -2012:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** -2013:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** return HAL_OK; -2014:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** } -2015:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** -2016:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** /** -2017:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** * @brief DeInitializes the TIM One Pulse -2018:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** * @param htim TIM One Pulse handle -2019:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** * @retval HAL status -2020:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** */ -2021:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** HAL_StatusTypeDef HAL_TIM_OnePulse_DeInit(TIM_HandleTypeDef *htim) -2022:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** { -2023:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** /* Check the parameters */ -2024:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** assert_param(IS_TIM_INSTANCE(htim->Instance)); -2025:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** -2026:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** htim->State = HAL_TIM_STATE_BUSY; -2027:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** -2028:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** /* Disable the TIM Peripheral Clock */ -2029:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** __HAL_TIM_DISABLE(htim); - ARM GAS /tmp/cccrAAAm.s page 37 - - -2030:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** -2031:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** /* DeInit the low level hardware: GPIO, CLOCK, NVIC */ -2032:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** HAL_TIM_OnePulse_MspDeInit(htim); -2033:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** -2034:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** /* Change TIM state */ -2035:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** htim->State = HAL_TIM_STATE_RESET; -2036:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** -2037:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** /* Release Lock */ -2038:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** __HAL_UNLOCK(htim); -2039:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** -2040:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** return HAL_OK; -2041:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** } -2042:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** -2043:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** /** -2044:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** * @brief Initializes the TIM One Pulse MSP. -2045:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** * @param htim TIM handle -2046:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** * @retval None -2047:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** */ -2048:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** __weak void HAL_TIM_OnePulse_MspInit(TIM_HandleTypeDef *htim) -2049:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** { -2050:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** /* Prevent unused argument(s) compilation warning */ -2051:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** UNUSED(htim); -2052:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** -2053:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** /* NOTE : This function Should not be modified, when the callback is needed, -2054:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** the HAL_TIM_OnePulse_MspInit could be implemented in the user file -2055:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** */ -2056:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** } -2057:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** -2058:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** /** -2059:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** * @brief DeInitializes TIM One Pulse MSP. -2060:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** * @param htim TIM handle -2061:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** * @retval None -2062:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** */ -2063:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** __weak void HAL_TIM_OnePulse_MspDeInit(TIM_HandleTypeDef *htim) -2064:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** { -2065:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** /* Prevent unused argument(s) compilation warning */ -2066:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** UNUSED(htim); -2067:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** -2068:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** /* NOTE : This function Should not be modified, when the callback is needed, -2069:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** the HAL_TIM_OnePulse_MspDeInit could be implemented in the user file -2070:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** */ -2071:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** } -2072:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** -2073:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** /** -2074:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** * @brief Starts the TIM One Pulse signal generation. -2075:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** * @param htim TIM One Pulse handle -2076:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** * @param OutputChannel TIM Channels to be enabled -2077:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** * This parameter can be one of the following values: -2078:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** * @arg TIM_CHANNEL_1: TIM Channel 1 selected -2079:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** * @arg TIM_CHANNEL_2: TIM Channel 2 selected -2080:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** * @retval HAL status -2081:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** */ -2082:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** HAL_StatusTypeDef HAL_TIM_OnePulse_Start(TIM_HandleTypeDef *htim, uint32_t OutputChannel) -2083:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** { -2084:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** /* Enable the Capture compare and the Input Capture channels -2085:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** (in the OPM Mode the two possible channels that can be used are TIM_CHANNEL_1 and TIM_CHANNEL_2 -2086:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** if TIM_CHANNEL_1 is used as output, the TIM_CHANNEL_2 will be used as input and - ARM GAS /tmp/cccrAAAm.s page 38 - - -2087:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** if TIM_CHANNEL_1 is used as input, the TIM_CHANNEL_2 will be used as output -2088:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** in all combinations, the TIM_CHANNEL_1 and TIM_CHANNEL_2 should be enabled together -2089:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** -2090:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** No need to enable the counter, it's enabled automatically by hardware -2091:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** (the counter starts in response to a stimulus and generate a pulse */ -2092:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** -2093:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** TIM_CCxChannelCmd(htim->Instance, TIM_CHANNEL_1, TIM_CCx_ENABLE); -2094:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** TIM_CCxChannelCmd(htim->Instance, TIM_CHANNEL_2, TIM_CCx_ENABLE); -2095:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** -2096:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** if(IS_TIM_BREAK_INSTANCE(htim->Instance) != RESET) -2097:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** { -2098:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** /* Enable the main output */ -2099:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** __HAL_TIM_MOE_ENABLE(htim); -2100:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** } -2101:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** -2102:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** /* Return function status */ -2103:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** return HAL_OK; -2104:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** } -2105:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** -2106:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** /** -2107:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** * @brief Stops the TIM One Pulse signal generation. -2108:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** * @param htim TIM One Pulse handle -2109:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** * @param OutputChannel TIM Channels to be disable -2110:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** * This parameter can be one of the following values: -2111:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** * @arg TIM_CHANNEL_1: TIM Channel 1 selected -2112:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** * @arg TIM_CHANNEL_2: TIM Channel 2 selected -2113:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** * @retval HAL status -2114:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** */ -2115:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** HAL_StatusTypeDef HAL_TIM_OnePulse_Stop(TIM_HandleTypeDef *htim, uint32_t OutputChannel) -2116:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** { -2117:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** /* Disable the Capture compare and the Input Capture channels -2118:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** (in the OPM Mode the two possible channels that can be used are TIM_CHANNEL_1 and TIM_CHANNEL_2) -2119:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** if TIM_CHANNEL_1 is used as output, the TIM_CHANNEL_2 will be used as input and -2120:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** if TIM_CHANNEL_1 is used as input, the TIM_CHANNEL_2 will be used as output -2121:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** in all combinations, the TIM_CHANNEL_1 and TIM_CHANNEL_2 should be disabled together */ -2122:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** -2123:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** TIM_CCxChannelCmd(htim->Instance, TIM_CHANNEL_1, TIM_CCx_DISABLE); -2124:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** TIM_CCxChannelCmd(htim->Instance, TIM_CHANNEL_2, TIM_CCx_DISABLE); -2125:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** -2126:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** if(IS_TIM_BREAK_INSTANCE(htim->Instance) != RESET) -2127:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** { -2128:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** /* Disable the Main Ouput */ -2129:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** __HAL_TIM_MOE_DISABLE(htim); -2130:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** } -2131:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** -2132:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** /* Disable the Peripheral */ -2133:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** __HAL_TIM_DISABLE(htim); -2134:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** -2135:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** /* Return function status */ -2136:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** return HAL_OK; -2137:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** } -2138:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** -2139:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** /** -2140:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** * @brief Starts the TIM One Pulse signal generation in interrupt mode. -2141:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** * @param htim TIM One Pulse handle -2142:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** * @param OutputChannel TIM Channels to be enabled -2143:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** * This parameter can be one of the following values: - ARM GAS /tmp/cccrAAAm.s page 39 - - -2144:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** * @arg TIM_CHANNEL_1: TIM Channel 1 selected -2145:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** * @arg TIM_CHANNEL_2: TIM Channel 2 selected -2146:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** * @retval HAL status -2147:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** */ -2148:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** HAL_StatusTypeDef HAL_TIM_OnePulse_Start_IT(TIM_HandleTypeDef *htim, uint32_t OutputChannel) -2149:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** { -2150:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** /* Enable the Capture compare and the Input Capture channels -2151:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** (in the OPM Mode the two possible channels that can be used are TIM_CHANNEL_1 and TIM_CHANNEL_2 -2152:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** if TIM_CHANNEL_1 is used as output, the TIM_CHANNEL_2 will be used as input and -2153:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** if TIM_CHANNEL_1 is used as input, the TIM_CHANNEL_2 will be used as output -2154:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** in all combinations, the TIM_CHANNEL_1 and TIM_CHANNEL_2 should be enabled together -2155:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** -2156:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** No need to enable the counter, it's enabled automatically by hardware -2157:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** (the counter starts in response to a stimulus and generate a pulse */ -2158:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** -2159:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** /* Enable the TIM Capture/Compare 1 interrupt */ -2160:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** __HAL_TIM_ENABLE_IT(htim, TIM_IT_CC1); -2161:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** -2162:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** /* Enable the TIM Capture/Compare 2 interrupt */ -2163:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** __HAL_TIM_ENABLE_IT(htim, TIM_IT_CC2); -2164:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** -2165:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** TIM_CCxChannelCmd(htim->Instance, TIM_CHANNEL_1, TIM_CCx_ENABLE); -2166:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** TIM_CCxChannelCmd(htim->Instance, TIM_CHANNEL_2, TIM_CCx_ENABLE); -2167:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** -2168:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** if(IS_TIM_BREAK_INSTANCE(htim->Instance) != RESET) -2169:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** { -2170:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** /* Enable the main output */ -2171:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** __HAL_TIM_MOE_ENABLE(htim); -2172:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** } -2173:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** -2174:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** /* Return function status */ -2175:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** return HAL_OK; -2176:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** } -2177:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** -2178:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** /** -2179:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** * @brief Stops the TIM One Pulse signal generation in interrupt mode. -2180:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** * @param htim TIM One Pulse handle -2181:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** * @param OutputChannel TIM Channels to be enabled -2182:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** * This parameter can be one of the following values: -2183:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** * @arg TIM_CHANNEL_1: TIM Channel 1 selected -2184:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** * @arg TIM_CHANNEL_2: TIM Channel 2 selected -2185:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** * @retval HAL status -2186:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** */ -2187:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** HAL_StatusTypeDef HAL_TIM_OnePulse_Stop_IT(TIM_HandleTypeDef *htim, uint32_t OutputChannel) -2188:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** { -2189:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** /* Disable the TIM Capture/Compare 1 interrupt */ -2190:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** __HAL_TIM_DISABLE_IT(htim, TIM_IT_CC1); -2191:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** -2192:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** /* Disable the TIM Capture/Compare 2 interrupt */ -2193:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** __HAL_TIM_DISABLE_IT(htim, TIM_IT_CC2); -2194:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** -2195:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** /* Disable the Capture compare and the Input Capture channels -2196:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** (in the OPM Mode the two possible channels that can be used are TIM_CHANNEL_1 and TIM_CHANNEL_2) -2197:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** if TIM_CHANNEL_1 is used as output, the TIM_CHANNEL_2 will be used as input and -2198:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** if TIM_CHANNEL_1 is used as input, the TIM_CHANNEL_2 will be used as output -2199:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** in all combinations, the TIM_CHANNEL_1 and TIM_CHANNEL_2 should be disabled together */ -2200:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** TIM_CCxChannelCmd(htim->Instance, TIM_CHANNEL_1, TIM_CCx_DISABLE); - ARM GAS /tmp/cccrAAAm.s page 40 - - -2201:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** TIM_CCxChannelCmd(htim->Instance, TIM_CHANNEL_2, TIM_CCx_DISABLE); -2202:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** -2203:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** if(IS_TIM_BREAK_INSTANCE(htim->Instance) != RESET) -2204:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** { -2205:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** /* Disable the Main Ouput */ -2206:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** __HAL_TIM_MOE_DISABLE(htim); -2207:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** } -2208:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** -2209:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** /* Disable the Peripheral */ -2210:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** __HAL_TIM_DISABLE(htim); -2211:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** -2212:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** /* Return function status */ -2213:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** return HAL_OK; -2214:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** } -2215:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** -2216:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** /** -2217:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** * @} -2218:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** */ -2219:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** -2220:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** /** @defgroup TIM_Exported_Functions_Group6 Time Encoder functions -2221:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** * @brief Time Encoder functions -2222:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** * -2223:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** @verbatim -2224:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** ============================================================================== -2225:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** ##### Time Encoder functions ##### -2226:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** ============================================================================== -2227:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** [..] -2228:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** This section provides functions allowing to: -2229:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** (+) Initialize and configure the TIM Encoder. -2230:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** (+) De-initialize the TIM Encoder. -2231:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** (+) Start the Time Encoder. -2232:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** (+) Stop the Time Encoder. -2233:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** (+) Start the Time Encoder and enable interrupt. -2234:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** (+) Stop the Time Encoder and disable interrupt. -2235:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** (+) Start the Time Encoder and enable DMA transfer. -2236:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** (+) Stop the Time Encoder and disable DMA transfer. -2237:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** -2238:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** @endverbatim -2239:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** * @{ -2240:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** */ -2241:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** /** -2242:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** * @brief Initializes the TIM Encoder Interface and create the associated handle. -2243:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** * @param htim TIM Encoder Interface handle -2244:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** * @param sConfig TIM Encoder Interface configuration structure -2245:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** * @retval HAL status -2246:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** */ -2247:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** HAL_StatusTypeDef HAL_TIM_Encoder_Init(TIM_HandleTypeDef *htim, TIM_Encoder_InitTypeDef* sConfig) -2248:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** { -2249:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** uint32_t tmpsmcr = 0U; -2250:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** uint32_t tmpccmr1 = 0U; -2251:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** uint32_t tmpccer = 0U; -2252:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** -2253:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** /* Check the TIM handle allocation */ -2254:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** if(htim == NULL) -2255:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** { -2256:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** return HAL_ERROR; -2257:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** } - ARM GAS /tmp/cccrAAAm.s page 41 - - -2258:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** -2259:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** /* Check the parameters */ -2260:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** assert_param(IS_TIM_CC2_INSTANCE(htim->Instance)); -2261:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** assert_param(IS_TIM_COUNTER_MODE(htim->Init.CounterMode)); -2262:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** assert_param(IS_TIM_CLOCKDIVISION_DIV(htim->Init.ClockDivision)); -2263:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** assert_param(IS_TIM_AUTORELOAD_PRELOAD(htim->Init.AutoReloadPreload)); -2264:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** assert_param(IS_TIM_ENCODER_MODE(sConfig->EncoderMode)); -2265:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** assert_param(IS_TIM_IC_SELECTION(sConfig->IC1Selection)); -2266:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** assert_param(IS_TIM_IC_SELECTION(sConfig->IC2Selection)); -2267:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** assert_param(IS_TIM_IC_POLARITY(sConfig->IC1Polarity)); -2268:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** assert_param(IS_TIM_IC_POLARITY(sConfig->IC2Polarity)); -2269:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** assert_param(IS_TIM_IC_PRESCALER(sConfig->IC1Prescaler)); -2270:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** assert_param(IS_TIM_IC_PRESCALER(sConfig->IC2Prescaler)); -2271:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** assert_param(IS_TIM_IC_FILTER(sConfig->IC1Filter)); -2272:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** assert_param(IS_TIM_IC_FILTER(sConfig->IC2Filter)); -2273:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** -2274:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** if(htim->State == HAL_TIM_STATE_RESET) -2275:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** { -2276:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** /* Allocate lock resource and initialize it */ -2277:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** htim->Lock = HAL_UNLOCKED; -2278:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** -2279:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** /* Init the low level hardware : GPIO, CLOCK, NVIC and DMA */ -2280:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** HAL_TIM_Encoder_MspInit(htim); -2281:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** } -2282:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** -2283:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** /* Set the TIM state */ -2284:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** htim->State= HAL_TIM_STATE_BUSY; -2285:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** -2286:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** /* Reset the SMS bits */ -2287:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** htim->Instance->SMCR &= ~TIM_SMCR_SMS; -2288:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** -2289:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** /* Configure the Time base in the Encoder Mode */ -2290:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** TIM_Base_SetConfig(htim->Instance, &htim->Init); -2291:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** -2292:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** /* Get the TIMx SMCR register value */ -2293:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** tmpsmcr = htim->Instance->SMCR; -2294:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** -2295:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** /* Get the TIMx CCMR1 register value */ -2296:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** tmpccmr1 = htim->Instance->CCMR1; -2297:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** -2298:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** /* Get the TIMx CCER register value */ -2299:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** tmpccer = htim->Instance->CCER; -2300:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** -2301:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** /* Set the encoder Mode */ -2302:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** tmpsmcr |= sConfig->EncoderMode; -2303:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** -2304:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** /* Select the Capture Compare 1 and the Capture Compare 2 as input */ -2305:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** tmpccmr1 &= ~(TIM_CCMR1_CC1S | TIM_CCMR1_CC2S); -2306:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** tmpccmr1 |= (sConfig->IC1Selection | (sConfig->IC2Selection << 8U)); -2307:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** -2308:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** /* Set the the Capture Compare 1 and the Capture Compare 2 prescalers and filters */ -2309:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** tmpccmr1 &= ~(TIM_CCMR1_IC1PSC | TIM_CCMR1_IC2PSC); -2310:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** tmpccmr1 &= ~(TIM_CCMR1_IC1F | TIM_CCMR1_IC2F); -2311:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** tmpccmr1 |= sConfig->IC1Prescaler | (sConfig->IC2Prescaler << 8U); -2312:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** tmpccmr1 |= (sConfig->IC1Filter << 4U) | (sConfig->IC2Filter << 12U); -2313:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** -2314:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** /* Set the TI1 and the TI2 Polarities */ - ARM GAS /tmp/cccrAAAm.s page 42 - - -2315:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** tmpccer &= ~(TIM_CCER_CC1P | TIM_CCER_CC2P); -2316:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** tmpccer &= ~(TIM_CCER_CC1NP | TIM_CCER_CC2NP); -2317:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** tmpccer |= sConfig->IC1Polarity | (sConfig->IC2Polarity << 4U); -2318:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** -2319:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** /* Write to TIMx SMCR */ -2320:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** htim->Instance->SMCR = tmpsmcr; -2321:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** -2322:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** /* Write to TIMx CCMR1 */ -2323:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** htim->Instance->CCMR1 = tmpccmr1; -2324:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** -2325:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** /* Write to TIMx CCER */ -2326:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** htim->Instance->CCER = tmpccer; -2327:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** -2328:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** /* Initialize the TIM state*/ -2329:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** htim->State= HAL_TIM_STATE_READY; -2330:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** -2331:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** return HAL_OK; -2332:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** } -2333:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** -2334:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** -2335:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** /** -2336:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** * @brief DeInitializes the TIM Encoder interface -2337:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** * @param htim TIM Encoder handle -2338:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** * @retval HAL status -2339:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** */ -2340:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** HAL_StatusTypeDef HAL_TIM_Encoder_DeInit(TIM_HandleTypeDef *htim) -2341:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** { -2342:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** /* Check the parameters */ -2343:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** assert_param(IS_TIM_INSTANCE(htim->Instance)); -2344:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** -2345:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** htim->State = HAL_TIM_STATE_BUSY; -2346:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** -2347:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** /* Disable the TIM Peripheral Clock */ -2348:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** __HAL_TIM_DISABLE(htim); -2349:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** -2350:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** /* DeInit the low level hardware: GPIO, CLOCK, NVIC */ -2351:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** HAL_TIM_Encoder_MspDeInit(htim); -2352:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** -2353:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** /* Change TIM state */ -2354:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** htim->State = HAL_TIM_STATE_RESET; -2355:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** -2356:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** /* Release Lock */ -2357:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** __HAL_UNLOCK(htim); -2358:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** -2359:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** return HAL_OK; -2360:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** } -2361:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** -2362:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** /** -2363:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** * @brief Initializes the TIM Encoder Interface MSP. -2364:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** * @param htim TIM handle -2365:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** * @retval None -2366:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** */ -2367:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** __weak void HAL_TIM_Encoder_MspInit(TIM_HandleTypeDef *htim) -2368:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** { -2369:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** /* Prevent unused argument(s) compilation warning */ -2370:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** UNUSED(htim); -2371:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** - ARM GAS /tmp/cccrAAAm.s page 43 - - -2372:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** /* NOTE : This function Should not be modified, when the callback is needed, -2373:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** the HAL_TIM_Encoder_MspInit could be implemented in the user file -2374:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** */ -2375:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** } -2376:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** -2377:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** /** -2378:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** * @brief DeInitializes TIM Encoder Interface MSP. -2379:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** * @param htim TIM handle -2380:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** * @retval None -2381:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** */ -2382:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** __weak void HAL_TIM_Encoder_MspDeInit(TIM_HandleTypeDef *htim) -2383:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** { -2384:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** /* Prevent unused argument(s) compilation warning */ -2385:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** UNUSED(htim); -2386:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** -2387:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** /* NOTE : This function Should not be modified, when the callback is needed, -2388:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** the HAL_TIM_Encoder_MspDeInit could be implemented in the user file -2389:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** */ -2390:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** } -2391:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** -2392:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** /** -2393:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** * @brief Starts the TIM Encoder Interface. -2394:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** * @param htim TIM Encoder Interface handle -2395:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** * @param Channel TIM Channels to be enabled -2396:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** * This parameter can be one of the following values: -2397:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** * @arg TIM_CHANNEL_1: TIM Channel 1 selected -2398:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** * @arg TIM_CHANNEL_2: TIM Channel 2 selected -2399:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** * @arg TIM_CHANNEL_ALL: TIM Channel 1 and TIM Channel 2 are selected -2400:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** * @retval HAL status -2401:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** */ -2402:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** HAL_StatusTypeDef HAL_TIM_Encoder_Start(TIM_HandleTypeDef *htim, uint32_t Channel) -2403:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** { -2404:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** /* Check the parameters */ -2405:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** assert_param(IS_TIM_CC2_INSTANCE(htim->Instance)); -2406:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** -2407:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** /* Enable the encoder interface channels */ -2408:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** switch (Channel) -2409:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** { -2410:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** case TIM_CHANNEL_1: -2411:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** { -2412:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** TIM_CCxChannelCmd(htim->Instance, TIM_CHANNEL_1, TIM_CCx_ENABLE); -2413:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** break; -2414:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** } -2415:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** case TIM_CHANNEL_2: -2416:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** { -2417:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** TIM_CCxChannelCmd(htim->Instance, TIM_CHANNEL_2, TIM_CCx_ENABLE); -2418:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** break; -2419:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** } -2420:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** default : -2421:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** { -2422:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** TIM_CCxChannelCmd(htim->Instance, TIM_CHANNEL_1, TIM_CCx_ENABLE); -2423:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** TIM_CCxChannelCmd(htim->Instance, TIM_CHANNEL_2, TIM_CCx_ENABLE); -2424:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** break; -2425:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** } -2426:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** } -2427:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** /* Enable the Peripheral */ -2428:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** __HAL_TIM_ENABLE(htim); - ARM GAS /tmp/cccrAAAm.s page 44 - - -2429:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** -2430:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** /* Return function status */ -2431:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** return HAL_OK; -2432:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** } -2433:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** -2434:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** /** -2435:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** * @brief Stops the TIM Encoder Interface. -2436:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** * @param htim TIM Encoder Interface handle -2437:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** * @param Channel TIM Channels to be disabled -2438:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** * This parameter can be one of the following values: -2439:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** * @arg TIM_CHANNEL_1: TIM Channel 1 selected -2440:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** * @arg TIM_CHANNEL_2: TIM Channel 2 selected -2441:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** * @arg TIM_CHANNEL_ALL: TIM Channel 1 and TIM Channel 2 are selected -2442:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** * @retval HAL status -2443:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** */ -2444:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** HAL_StatusTypeDef HAL_TIM_Encoder_Stop(TIM_HandleTypeDef *htim, uint32_t Channel) -2445:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** { -2446:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** /* Check the parameters */ -2447:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** assert_param(IS_TIM_CC2_INSTANCE(htim->Instance)); -2448:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** -2449:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** /* Disable the Input Capture channels 1 and 2 -2450:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** (in the EncoderInterface the two possible channels that can be used are TIM_CHANNEL_1 and TIM_C -2451:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** switch (Channel) -2452:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** { -2453:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** case TIM_CHANNEL_1: -2454:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** { -2455:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** TIM_CCxChannelCmd(htim->Instance, TIM_CHANNEL_1, TIM_CCx_DISABLE); -2456:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** break; -2457:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** } -2458:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** case TIM_CHANNEL_2: -2459:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** { -2460:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** TIM_CCxChannelCmd(htim->Instance, TIM_CHANNEL_2, TIM_CCx_DISABLE); -2461:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** break; -2462:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** } -2463:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** default : -2464:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** { -2465:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** TIM_CCxChannelCmd(htim->Instance, TIM_CHANNEL_1, TIM_CCx_DISABLE); -2466:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** TIM_CCxChannelCmd(htim->Instance, TIM_CHANNEL_2, TIM_CCx_DISABLE); -2467:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** break; -2468:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** } -2469:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** } -2470:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** -2471:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** /* Disable the Peripheral */ -2472:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** __HAL_TIM_DISABLE(htim); -2473:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** -2474:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** /* Return function status */ -2475:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** return HAL_OK; -2476:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** } -2477:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** -2478:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** /** -2479:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** * @brief Starts the TIM Encoder Interface in interrupt mode. -2480:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** * @param htim TIM Encoder Interface handle -2481:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** * @param Channel TIM Channels to be enabled -2482:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** * This parameter can be one of the following values: -2483:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** * @arg TIM_CHANNEL_1: TIM Channel 1 selected -2484:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** * @arg TIM_CHANNEL_2: TIM Channel 2 selected -2485:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** * @arg TIM_CHANNEL_ALL: TIM Channel 1 and TIM Channel 2 are selected - ARM GAS /tmp/cccrAAAm.s page 45 - - -2486:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** * @retval HAL status -2487:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** */ -2488:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** HAL_StatusTypeDef HAL_TIM_Encoder_Start_IT(TIM_HandleTypeDef *htim, uint32_t Channel) -2489:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** { -2490:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** /* Check the parameters */ -2491:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** assert_param(IS_TIM_CC2_INSTANCE(htim->Instance)); -2492:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** -2493:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** /* Enable the encoder interface channels */ -2494:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** /* Enable the capture compare Interrupts 1 and/or 2 */ -2495:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** switch (Channel) -2496:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** { -2497:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** case TIM_CHANNEL_1: -2498:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** { -2499:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** TIM_CCxChannelCmd(htim->Instance, TIM_CHANNEL_1, TIM_CCx_ENABLE); -2500:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** __HAL_TIM_ENABLE_IT(htim, TIM_IT_CC1); -2501:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** break; -2502:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** } -2503:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** case TIM_CHANNEL_2: -2504:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** { -2505:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** TIM_CCxChannelCmd(htim->Instance, TIM_CHANNEL_2, TIM_CCx_ENABLE); -2506:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** __HAL_TIM_ENABLE_IT(htim, TIM_IT_CC2); -2507:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** break; -2508:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** } -2509:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** default : -2510:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** { -2511:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** TIM_CCxChannelCmd(htim->Instance, TIM_CHANNEL_1, TIM_CCx_ENABLE); -2512:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** TIM_CCxChannelCmd(htim->Instance, TIM_CHANNEL_2, TIM_CCx_ENABLE); -2513:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** __HAL_TIM_ENABLE_IT(htim, TIM_IT_CC1); -2514:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** __HAL_TIM_ENABLE_IT(htim, TIM_IT_CC2); -2515:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** break; -2516:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** } -2517:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** } -2518:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** -2519:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** /* Enable the Peripheral */ -2520:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** __HAL_TIM_ENABLE(htim); -2521:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** -2522:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** /* Return function status */ -2523:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** return HAL_OK; -2524:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** } -2525:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** -2526:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** /** -2527:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** * @brief Stops the TIM Encoder Interface in interrupt mode. -2528:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** * @param htim TIM Encoder Interface handle -2529:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** * @param Channel TIM Channels to be disabled -2530:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** * This parameter can be one of the following values: -2531:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** * @arg TIM_CHANNEL_1: TIM Channel 1 selected -2532:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** * @arg TIM_CHANNEL_2: TIM Channel 2 selected -2533:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** * @arg TIM_CHANNEL_ALL: TIM Channel 1 and TIM Channel 2 are selected -2534:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** * @retval HAL status -2535:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** */ -2536:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** HAL_StatusTypeDef HAL_TIM_Encoder_Stop_IT(TIM_HandleTypeDef *htim, uint32_t Channel) -2537:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** { -2538:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** /* Check the parameters */ -2539:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** assert_param(IS_TIM_CC2_INSTANCE(htim->Instance)); -2540:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** -2541:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** /* Disable the Input Capture channels 1 and 2 -2542:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** (in the EncoderInterface the two possible channels that can be used are TIM_CHANNEL_1 and TIM_C - ARM GAS /tmp/cccrAAAm.s page 46 - - -2543:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** if(Channel == TIM_CHANNEL_1) -2544:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** { -2545:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** TIM_CCxChannelCmd(htim->Instance, TIM_CHANNEL_1, TIM_CCx_DISABLE); -2546:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** -2547:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** /* Disable the capture compare Interrupts 1 */ -2548:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** __HAL_TIM_DISABLE_IT(htim, TIM_IT_CC1); -2549:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** } -2550:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** else if(Channel == TIM_CHANNEL_2) -2551:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** { -2552:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** TIM_CCxChannelCmd(htim->Instance, TIM_CHANNEL_2, TIM_CCx_DISABLE); -2553:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** -2554:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** /* Disable the capture compare Interrupts 2 */ -2555:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** __HAL_TIM_DISABLE_IT(htim, TIM_IT_CC2); -2556:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** } -2557:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** else -2558:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** { -2559:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** TIM_CCxChannelCmd(htim->Instance, TIM_CHANNEL_1, TIM_CCx_DISABLE); -2560:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** TIM_CCxChannelCmd(htim->Instance, TIM_CHANNEL_2, TIM_CCx_DISABLE); -2561:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** -2562:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** /* Disable the capture compare Interrupts 1 and 2 */ -2563:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** __HAL_TIM_DISABLE_IT(htim, TIM_IT_CC1); -2564:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** __HAL_TIM_DISABLE_IT(htim, TIM_IT_CC2); -2565:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** } -2566:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** -2567:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** /* Disable the Peripheral */ -2568:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** __HAL_TIM_DISABLE(htim); -2569:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** -2570:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** /* Change the htim state */ -2571:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** htim->State = HAL_TIM_STATE_READY; -2572:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** -2573:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** /* Return function status */ -2574:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** return HAL_OK; -2575:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** } -2576:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** -2577:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** /** -2578:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** * @brief Starts the TIM Encoder Interface in DMA mode. -2579:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** * @param htim TIM Encoder Interface handle -2580:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** * @param Channel TIM Channels to be enabled -2581:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** * This parameter can be one of the following values: -2582:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** * @arg TIM_CHANNEL_1: TIM Channel 1 selected -2583:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** * @arg TIM_CHANNEL_2: TIM Channel 2 selected -2584:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** * @arg TIM_CHANNEL_ALL: TIM Channel 1 and TIM Channel 2 are selected -2585:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** * @param pData1 The destination Buffer address for IC1. -2586:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** * @param pData2 The destination Buffer address for IC2. -2587:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** * @param Length The length of data to be transferred from TIM peripheral to memory. -2588:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** * @retval HAL status -2589:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** */ -2590:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** HAL_StatusTypeDef HAL_TIM_Encoder_Start_DMA(TIM_HandleTypeDef *htim, uint32_t Channel, uint32_t *pD -2591:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** { -2592:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** /* Check the parameters */ -2593:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** assert_param(IS_TIM_DMA_CC_INSTANCE(htim->Instance)); -2594:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** -2595:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** if((htim->State == HAL_TIM_STATE_BUSY)) -2596:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** { -2597:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** return HAL_BUSY; -2598:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** } -2599:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** else if((htim->State == HAL_TIM_STATE_READY)) - ARM GAS /tmp/cccrAAAm.s page 47 - - -2600:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** { -2601:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** if((((pData1 == 0U) || (pData2 == 0U) )) && (Length > 0U)) -2602:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** { -2603:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** return HAL_ERROR; -2604:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** } -2605:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** else -2606:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** { -2607:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** htim->State = HAL_TIM_STATE_BUSY; -2608:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** } -2609:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** } -2610:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** -2611:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** switch (Channel) -2612:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** { -2613:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** case TIM_CHANNEL_1: -2614:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** { -2615:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** /* Set the DMA Period elapsed callback */ -2616:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** htim->hdma[TIM_DMA_ID_CC1]->XferCpltCallback = TIM_DMACaptureCplt; -2617:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** -2618:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** /* Set the DMA error callback */ -2619:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** htim->hdma[TIM_DMA_ID_CC1]->XferErrorCallback = TIM_DMAError ; -2620:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** -2621:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** /* Enable the DMA channel */ -2622:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** HAL_DMA_Start_IT(htim->hdma[TIM_DMA_ID_CC1], (uint32_t)&htim->Instance->CCR1, (uint32_t )pDat -2623:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** -2624:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** /* Enable the TIM Input Capture DMA request */ -2625:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** __HAL_TIM_ENABLE_DMA(htim, TIM_DMA_CC1); -2626:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** -2627:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** /* Enable the Peripheral */ -2628:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** __HAL_TIM_ENABLE(htim); -2629:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** -2630:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** /* Enable the Capture compare channel */ -2631:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** TIM_CCxChannelCmd(htim->Instance, TIM_CHANNEL_1, TIM_CCx_ENABLE); -2632:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** } -2633:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** break; -2634:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** -2635:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** case TIM_CHANNEL_2: -2636:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** { -2637:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** /* Set the DMA Period elapsed callback */ -2638:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** htim->hdma[TIM_DMA_ID_CC2]->XferCpltCallback = TIM_DMACaptureCplt; -2639:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** -2640:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** /* Set the DMA error callback */ -2641:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** htim->hdma[TIM_DMA_ID_CC2]->XferErrorCallback = TIM_DMAError; -2642:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** /* Enable the DMA channel */ -2643:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** HAL_DMA_Start_IT(htim->hdma[TIM_DMA_ID_CC2], (uint32_t)&htim->Instance->CCR2, (uint32_t)pData -2644:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** -2645:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** /* Enable the TIM Input Capture DMA request */ -2646:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** __HAL_TIM_ENABLE_DMA(htim, TIM_DMA_CC2); -2647:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** -2648:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** /* Enable the Peripheral */ -2649:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** __HAL_TIM_ENABLE(htim); -2650:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** -2651:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** /* Enable the Capture compare channel */ -2652:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** TIM_CCxChannelCmd(htim->Instance, TIM_CHANNEL_2, TIM_CCx_ENABLE); -2653:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** } -2654:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** break; -2655:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** -2656:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** case TIM_CHANNEL_ALL: - ARM GAS /tmp/cccrAAAm.s page 48 - - -2657:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** { -2658:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** /* Set the DMA Period elapsed callback */ -2659:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** htim->hdma[TIM_DMA_ID_CC1]->XferCpltCallback = TIM_DMACaptureCplt; -2660:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** -2661:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** /* Set the DMA error callback */ -2662:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** htim->hdma[TIM_DMA_ID_CC1]->XferErrorCallback = TIM_DMAError ; -2663:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** -2664:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** /* Enable the DMA channel */ -2665:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** HAL_DMA_Start_IT(htim->hdma[TIM_DMA_ID_CC1], (uint32_t)&htim->Instance->CCR1, (uint32_t)pData -2666:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** -2667:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** /* Set the DMA Period elapsed callback */ -2668:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** htim->hdma[TIM_DMA_ID_CC2]->XferCpltCallback = TIM_DMACaptureCplt; -2669:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** -2670:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** /* Set the DMA error callback */ -2671:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** htim->hdma[TIM_DMA_ID_CC2]->XferErrorCallback = TIM_DMAError ; -2672:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** -2673:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** /* Enable the DMA channel */ -2674:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** HAL_DMA_Start_IT(htim->hdma[TIM_DMA_ID_CC2], (uint32_t)&htim->Instance->CCR2, (uint32_t)pData -2675:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** -2676:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** /* Enable the Peripheral */ -2677:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** __HAL_TIM_ENABLE(htim); -2678:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** -2679:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** /* Enable the Capture compare channel */ -2680:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** TIM_CCxChannelCmd(htim->Instance, TIM_CHANNEL_1, TIM_CCx_ENABLE); -2681:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** TIM_CCxChannelCmd(htim->Instance, TIM_CHANNEL_2, TIM_CCx_ENABLE); -2682:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** -2683:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** /* Enable the TIM Input Capture DMA request */ -2684:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** __HAL_TIM_ENABLE_DMA(htim, TIM_DMA_CC1); -2685:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** /* Enable the TIM Input Capture DMA request */ -2686:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** __HAL_TIM_ENABLE_DMA(htim, TIM_DMA_CC2); -2687:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** } -2688:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** break; -2689:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** -2690:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** default: -2691:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** break; -2692:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** } -2693:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** /* Return function status */ -2694:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** return HAL_OK; -2695:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** } -2696:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** -2697:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** /** -2698:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** * @brief Stops the TIM Encoder Interface in DMA mode. -2699:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** * @param htim TIM Encoder Interface handle -2700:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** * @param Channel TIM Channels to be enabled -2701:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** * This parameter can be one of the following values: -2702:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** * @arg TIM_CHANNEL_1: TIM Channel 1 selected -2703:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** * @arg TIM_CHANNEL_2: TIM Channel 2 selected -2704:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** * @arg TIM_CHANNEL_ALL: TIM Channel 1 and TIM Channel 2 are selected -2705:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** * @retval HAL status -2706:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** */ -2707:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** HAL_StatusTypeDef HAL_TIM_Encoder_Stop_DMA(TIM_HandleTypeDef *htim, uint32_t Channel) -2708:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** { -2709:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** /* Check the parameters */ -2710:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** assert_param(IS_TIM_DMA_CC_INSTANCE(htim->Instance)); -2711:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** -2712:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** /* Disable the Input Capture channels 1 and 2 -2713:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** (in the EncoderInterface the two possible channels that can be used are TIM_CHANNEL_1 and TIM_C - ARM GAS /tmp/cccrAAAm.s page 49 - - -2714:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** if(Channel == TIM_CHANNEL_1) -2715:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** { -2716:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** TIM_CCxChannelCmd(htim->Instance, TIM_CHANNEL_1, TIM_CCx_DISABLE); -2717:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** -2718:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** /* Disable the capture compare DMA Request 1 */ -2719:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** __HAL_TIM_DISABLE_DMA(htim, TIM_DMA_CC1); -2720:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** } -2721:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** else if(Channel == TIM_CHANNEL_2) -2722:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** { -2723:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** TIM_CCxChannelCmd(htim->Instance, TIM_CHANNEL_2, TIM_CCx_DISABLE); -2724:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** -2725:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** /* Disable the capture compare DMA Request 2 */ -2726:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** __HAL_TIM_DISABLE_DMA(htim, TIM_DMA_CC2); -2727:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** } -2728:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** else -2729:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** { -2730:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** TIM_CCxChannelCmd(htim->Instance, TIM_CHANNEL_1, TIM_CCx_DISABLE); -2731:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** TIM_CCxChannelCmd(htim->Instance, TIM_CHANNEL_2, TIM_CCx_DISABLE); -2732:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** -2733:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** /* Disable the capture compare DMA Request 1 and 2 */ -2734:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** __HAL_TIM_DISABLE_DMA(htim, TIM_DMA_CC1); -2735:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** __HAL_TIM_DISABLE_DMA(htim, TIM_DMA_CC2); -2736:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** } -2737:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** -2738:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** /* Disable the Peripheral */ -2739:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** __HAL_TIM_DISABLE(htim); -2740:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** -2741:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** /* Change the htim state */ -2742:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** htim->State = HAL_TIM_STATE_READY; -2743:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** -2744:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** /* Return function status */ -2745:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** return HAL_OK; -2746:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** } -2747:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** -2748:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** /** -2749:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** * @} -2750:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** */ -2751:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** /** @defgroup TIM_Exported_Functions_Group7 TIM IRQ handler management -2752:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** * @brief IRQ handler management -2753:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** * -2754:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** @verbatim -2755:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** ============================================================================== -2756:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** ##### IRQ handler management ##### -2757:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** ============================================================================== -2758:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** [..] -2759:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** This section provides Timer IRQ handler function. -2760:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** -2761:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** @endverbatim -2762:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** * @{ -2763:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** */ -2764:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** /** -2765:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** * @brief This function handles TIM interrupts requests. -2766:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** * @param htim TIM handle -2767:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** * @retval None -2768:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** */ -2769:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** void HAL_TIM_IRQHandler(TIM_HandleTypeDef *htim) -2770:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** { - ARM GAS /tmp/cccrAAAm.s page 50 - - -2771:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** /* Capture compare 1 event */ -2772:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** if(__HAL_TIM_GET_FLAG(htim, TIM_FLAG_CC1) != RESET) -2773:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** { -2774:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** if(__HAL_TIM_GET_IT_SOURCE(htim, TIM_IT_CC1) !=RESET) -2775:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** { -2776:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** { -2777:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** __HAL_TIM_CLEAR_IT(htim, TIM_IT_CC1); -2778:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** htim->Channel = HAL_TIM_ACTIVE_CHANNEL_1; -2779:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** -2780:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** /* Input capture event */ -2781:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** if((htim->Instance->CCMR1 & TIM_CCMR1_CC1S) != 0x00U) -2782:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** { -2783:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** HAL_TIM_IC_CaptureCallback(htim); -2784:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** } -2785:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** /* Output compare event */ -2786:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** else -2787:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** { -2788:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** HAL_TIM_OC_DelayElapsedCallback(htim); -2789:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** HAL_TIM_PWM_PulseFinishedCallback(htim); -2790:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** } -2791:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** htim->Channel = HAL_TIM_ACTIVE_CHANNEL_CLEARED; -2792:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** } -2793:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** } -2794:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** } -2795:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** /* Capture compare 2 event */ -2796:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** if(__HAL_TIM_GET_FLAG(htim, TIM_FLAG_CC2) != RESET) -2797:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** { -2798:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** if(__HAL_TIM_GET_IT_SOURCE(htim, TIM_IT_CC2) !=RESET) -2799:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** { -2800:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** __HAL_TIM_CLEAR_IT(htim, TIM_IT_CC2); -2801:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** htim->Channel = HAL_TIM_ACTIVE_CHANNEL_2; -2802:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** /* Input capture event */ -2803:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** if((htim->Instance->CCMR1 & TIM_CCMR1_CC2S) != 0x00U) -2804:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** { -2805:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** HAL_TIM_IC_CaptureCallback(htim); -2806:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** } -2807:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** /* Output compare event */ -2808:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** else -2809:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** { -2810:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** HAL_TIM_OC_DelayElapsedCallback(htim); -2811:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** HAL_TIM_PWM_PulseFinishedCallback(htim); -2812:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** } -2813:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** htim->Channel = HAL_TIM_ACTIVE_CHANNEL_CLEARED; -2814:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** } -2815:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** } -2816:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** /* Capture compare 3 event */ -2817:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** if(__HAL_TIM_GET_FLAG(htim, TIM_FLAG_CC3) != RESET) -2818:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** { -2819:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** if(__HAL_TIM_GET_IT_SOURCE(htim, TIM_IT_CC3) !=RESET) -2820:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** { -2821:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** __HAL_TIM_CLEAR_IT(htim, TIM_IT_CC3); -2822:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** htim->Channel = HAL_TIM_ACTIVE_CHANNEL_3; -2823:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** /* Input capture event */ -2824:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** if((htim->Instance->CCMR2 & TIM_CCMR2_CC3S) != 0x00U) -2825:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** { -2826:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** HAL_TIM_IC_CaptureCallback(htim); -2827:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** } - ARM GAS /tmp/cccrAAAm.s page 51 - - -2828:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** /* Output compare event */ -2829:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** else -2830:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** { -2831:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** HAL_TIM_OC_DelayElapsedCallback(htim); -2832:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** HAL_TIM_PWM_PulseFinishedCallback(htim); -2833:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** } -2834:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** htim->Channel = HAL_TIM_ACTIVE_CHANNEL_CLEARED; -2835:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** } -2836:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** } -2837:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** /* Capture compare 4 event */ -2838:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** if(__HAL_TIM_GET_FLAG(htim, TIM_FLAG_CC4) != RESET) -2839:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** { -2840:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** if(__HAL_TIM_GET_IT_SOURCE(htim, TIM_IT_CC4) !=RESET) -2841:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** { -2842:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** __HAL_TIM_CLEAR_IT(htim, TIM_IT_CC4); -2843:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** htim->Channel = HAL_TIM_ACTIVE_CHANNEL_4; -2844:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** /* Input capture event */ -2845:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** if((htim->Instance->CCMR2 & TIM_CCMR2_CC4S) != 0x00U) -2846:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** { -2847:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** HAL_TIM_IC_CaptureCallback(htim); -2848:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** } -2849:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** /* Output compare event */ -2850:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** else -2851:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** { -2852:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** HAL_TIM_OC_DelayElapsedCallback(htim); -2853:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** HAL_TIM_PWM_PulseFinishedCallback(htim); -2854:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** } -2855:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** htim->Channel = HAL_TIM_ACTIVE_CHANNEL_CLEARED; -2856:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** } -2857:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** } -2858:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** /* TIM Update event */ -2859:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** if(__HAL_TIM_GET_FLAG(htim, TIM_FLAG_UPDATE) != RESET) -2860:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** { -2861:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** if(__HAL_TIM_GET_IT_SOURCE(htim, TIM_IT_UPDATE) !=RESET) -2862:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** { -2863:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** __HAL_TIM_CLEAR_IT(htim, TIM_IT_UPDATE); -2864:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** HAL_TIM_PeriodElapsedCallback(htim); -2865:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** } -2866:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** } -2867:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** /* TIM Break input event */ -2868:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** if(__HAL_TIM_GET_FLAG(htim, TIM_FLAG_BREAK) != RESET) -2869:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** { -2870:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** if(__HAL_TIM_GET_IT_SOURCE(htim, TIM_IT_BREAK) !=RESET) -2871:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** { -2872:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** __HAL_TIM_CLEAR_IT(htim, TIM_IT_BREAK); -2873:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** HAL_TIMEx_BreakCallback(htim); -2874:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** } -2875:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** } -2876:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** /* TIM Trigger detection event */ -2877:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** if(__HAL_TIM_GET_FLAG(htim, TIM_FLAG_TRIGGER) != RESET) -2878:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** { -2879:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** if(__HAL_TIM_GET_IT_SOURCE(htim, TIM_IT_TRIGGER) !=RESET) -2880:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** { -2881:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** __HAL_TIM_CLEAR_IT(htim, TIM_IT_TRIGGER); -2882:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** HAL_TIM_TriggerCallback(htim); -2883:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** } -2884:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** } - ARM GAS /tmp/cccrAAAm.s page 52 - - -2885:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** /* TIM commutation event */ -2886:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** if(__HAL_TIM_GET_FLAG(htim, TIM_FLAG_COM) != RESET) -2887:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** { -2888:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** if(__HAL_TIM_GET_IT_SOURCE(htim, TIM_IT_COM) !=RESET) -2889:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** { -2890:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** __HAL_TIM_CLEAR_IT(htim, TIM_FLAG_COM); -2891:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** HAL_TIMEx_CommutationCallback(htim); -2892:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** } -2893:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** } -2894:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** } -2895:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** -2896:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** /** -2897:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** * @} -2898:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** */ -2899:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** -2900:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** /** @defgroup TIM_Exported_Functions_Group8 Peripheral Control functions -2901:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** * @brief Peripheral Control functions -2902:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** * -2903:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** @verbatim -2904:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** ============================================================================== -2905:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** ##### Peripheral Control functions ##### -2906:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** ============================================================================== -2907:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** [..] -2908:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** This section provides functions allowing to: -2909:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** (+) Configure The Input Output channels for OC, PWM, IC or One Pulse mode. -2910:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** (+) Configure External Clock source. -2911:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** (+) Configure Complementary channels, break features and dead time. -2912:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** (+) Configure Master and the Slave synchronization. -2913:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** (+) Configure the DMA Burst Mode. -2914:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** -2915:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** @endverbatim -2916:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** * @{ -2917:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** */ -2918:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** -2919:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** /** -2920:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** * @brief Initializes the TIM Output Compare Channels according to the specified -2921:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** * parameters in the TIM_OC_InitTypeDef. -2922:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** * @param htim TIM Output Compare handle -2923:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** * @param sConfig TIM Output Compare configuration structure -2924:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** * @param Channel TIM Channels to be enabled -2925:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** * This parameter can be one of the following values: -2926:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** * @arg TIM_CHANNEL_1: TIM Channel 1 selected -2927:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** * @arg TIM_CHANNEL_2: TIM Channel 2 selected -2928:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** * @arg TIM_CHANNEL_3: TIM Channel 3 selected -2929:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** * @arg TIM_CHANNEL_4: TIM Channel 4 selected -2930:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** * @retval HAL status -2931:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** */ -2932:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** HAL_StatusTypeDef HAL_TIM_OC_ConfigChannel(TIM_HandleTypeDef *htim, TIM_OC_InitTypeDef* sConfig, ui -2933:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** { -2934:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** /* Check the parameters */ -2935:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** assert_param(IS_TIM_CHANNELS(Channel)); -2936:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** assert_param(IS_TIM_OC_MODE(sConfig->OCMode)); -2937:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** assert_param(IS_TIM_OC_POLARITY(sConfig->OCPolarity)); -2938:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** -2939:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** /* Check input state */ -2940:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** __HAL_LOCK(htim); -2941:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** - ARM GAS /tmp/cccrAAAm.s page 53 - - -2942:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** htim->State = HAL_TIM_STATE_BUSY; -2943:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** -2944:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** switch (Channel) -2945:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** { -2946:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** case TIM_CHANNEL_1: -2947:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** { -2948:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** assert_param(IS_TIM_CC1_INSTANCE(htim->Instance)); -2949:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** /* Configure the TIM Channel 1 in Output Compare */ -2950:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** TIM_OC1_SetConfig(htim->Instance, sConfig); -2951:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** } -2952:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** break; -2953:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** -2954:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** case TIM_CHANNEL_2: -2955:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** { -2956:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** assert_param(IS_TIM_CC2_INSTANCE(htim->Instance)); -2957:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** /* Configure the TIM Channel 2 in Output Compare */ -2958:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** TIM_OC2_SetConfig(htim->Instance, sConfig); -2959:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** } -2960:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** break; -2961:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** -2962:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** case TIM_CHANNEL_3: -2963:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** { -2964:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** assert_param(IS_TIM_CC3_INSTANCE(htim->Instance)); -2965:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** /* Configure the TIM Channel 3 in Output Compare */ -2966:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** TIM_OC3_SetConfig(htim->Instance, sConfig); -2967:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** } -2968:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** break; -2969:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** -2970:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** case TIM_CHANNEL_4: -2971:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** { -2972:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** assert_param(IS_TIM_CC4_INSTANCE(htim->Instance)); -2973:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** /* Configure the TIM Channel 4 in Output Compare */ -2974:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** TIM_OC4_SetConfig(htim->Instance, sConfig); -2975:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** } -2976:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** break; -2977:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** -2978:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** default: -2979:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** break; -2980:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** } -2981:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** htim->State = HAL_TIM_STATE_READY; -2982:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** -2983:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** __HAL_UNLOCK(htim); -2984:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** -2985:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** return HAL_OK; -2986:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** } -2987:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** -2988:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** /** -2989:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** * @brief Initializes the TIM Input Capture Channels according to the specified -2990:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** * parameters in the TIM_IC_InitTypeDef. -2991:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** * @param htim TIM IC handle -2992:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** * @param sConfig TIM Input Capture configuration structure -2993:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** * @param Channel TIM Channels to be enabled -2994:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** * This parameter can be one of the following values: -2995:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** * @arg TIM_CHANNEL_1: TIM Channel 1 selected -2996:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** * @arg TIM_CHANNEL_2: TIM Channel 2 selected -2997:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** * @arg TIM_CHANNEL_3: TIM Channel 3 selected -2998:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** * @arg TIM_CHANNEL_4: TIM Channel 4 selected - ARM GAS /tmp/cccrAAAm.s page 54 - - -2999:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** * @retval HAL status -3000:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** */ -3001:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** HAL_StatusTypeDef HAL_TIM_IC_ConfigChannel(TIM_HandleTypeDef *htim, TIM_IC_InitTypeDef* sConfig, ui -3002:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** { -3003:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** /* Check the parameters */ -3004:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** assert_param(IS_TIM_CC1_INSTANCE(htim->Instance)); -3005:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** assert_param(IS_TIM_IC_POLARITY(sConfig->ICPolarity)); -3006:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** assert_param(IS_TIM_IC_SELECTION(sConfig->ICSelection)); -3007:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** assert_param(IS_TIM_IC_PRESCALER(sConfig->ICPrescaler)); -3008:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** assert_param(IS_TIM_IC_FILTER(sConfig->ICFilter)); -3009:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** -3010:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** __HAL_LOCK(htim); -3011:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** -3012:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** htim->State = HAL_TIM_STATE_BUSY; -3013:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** -3014:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** if (Channel == TIM_CHANNEL_1) -3015:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** { -3016:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** /* TI1 Configuration */ -3017:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** TIM_TI1_SetConfig(htim->Instance, -3018:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** sConfig->ICPolarity, -3019:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** sConfig->ICSelection, -3020:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** sConfig->ICFilter); -3021:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** -3022:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** /* Reset the IC1PSC Bits */ -3023:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** htim->Instance->CCMR1 &= ~TIM_CCMR1_IC1PSC; -3024:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** -3025:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** /* Set the IC1PSC value */ -3026:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** htim->Instance->CCMR1 |= sConfig->ICPrescaler; -3027:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** } -3028:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** else if (Channel == TIM_CHANNEL_2) -3029:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** { -3030:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** /* TI2 Configuration */ -3031:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** assert_param(IS_TIM_CC2_INSTANCE(htim->Instance)); -3032:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** -3033:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** TIM_TI2_SetConfig(htim->Instance, -3034:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** sConfig->ICPolarity, -3035:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** sConfig->ICSelection, -3036:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** sConfig->ICFilter); -3037:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** -3038:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** /* Reset the IC2PSC Bits */ -3039:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** htim->Instance->CCMR1 &= ~TIM_CCMR1_IC2PSC; -3040:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** -3041:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** /* Set the IC2PSC value */ -3042:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** htim->Instance->CCMR1 |= (sConfig->ICPrescaler << 8U); -3043:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** } -3044:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** else if (Channel == TIM_CHANNEL_3) -3045:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** { -3046:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** /* TI3 Configuration */ -3047:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** assert_param(IS_TIM_CC3_INSTANCE(htim->Instance)); -3048:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** -3049:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** TIM_TI3_SetConfig(htim->Instance, -3050:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** sConfig->ICPolarity, -3051:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** sConfig->ICSelection, -3052:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** sConfig->ICFilter); -3053:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** -3054:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** /* Reset the IC3PSC Bits */ -3055:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** htim->Instance->CCMR2 &= ~TIM_CCMR2_IC3PSC; - ARM GAS /tmp/cccrAAAm.s page 55 - - -3056:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** -3057:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** /* Set the IC3PSC value */ -3058:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** htim->Instance->CCMR2 |= sConfig->ICPrescaler; -3059:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** } -3060:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** else -3061:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** { -3062:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** /* TI4 Configuration */ -3063:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** assert_param(IS_TIM_CC4_INSTANCE(htim->Instance)); -3064:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** -3065:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** TIM_TI4_SetConfig(htim->Instance, -3066:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** sConfig->ICPolarity, -3067:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** sConfig->ICSelection, -3068:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** sConfig->ICFilter); -3069:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** -3070:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** /* Reset the IC4PSC Bits */ -3071:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** htim->Instance->CCMR2 &= ~TIM_CCMR2_IC4PSC; -3072:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** -3073:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** /* Set the IC4PSC value */ -3074:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** htim->Instance->CCMR2 |= (sConfig->ICPrescaler << 8U); -3075:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** } -3076:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** -3077:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** htim->State = HAL_TIM_STATE_READY; -3078:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** -3079:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** __HAL_UNLOCK(htim); -3080:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** -3081:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** return HAL_OK; -3082:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** } -3083:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** -3084:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** /** -3085:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** * @brief Initializes the TIM PWM channels according to the specified -3086:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** * parameters in the TIM_OC_InitTypeDef. -3087:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** * @param htim TIM handle -3088:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** * @param sConfig TIM PWM configuration structure -3089:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** * @param Channel TIM Channels to be enabled -3090:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** * This parameter can be one of the following values: -3091:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** * @arg TIM_CHANNEL_1: TIM Channel 1 selected -3092:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** * @arg TIM_CHANNEL_2: TIM Channel 2 selected -3093:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** * @arg TIM_CHANNEL_3: TIM Channel 3 selected -3094:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** * @arg TIM_CHANNEL_4: TIM Channel 4 selected -3095:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** * @retval HAL status -3096:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** */ -3097:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** HAL_StatusTypeDef HAL_TIM_PWM_ConfigChannel(TIM_HandleTypeDef *htim, TIM_OC_InitTypeDef* sConfig, u -3098:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** { -3099:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** __HAL_LOCK(htim); -3100:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** -3101:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** /* Check the parameters */ -3102:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** assert_param(IS_TIM_CHANNELS(Channel)); -3103:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** assert_param(IS_TIM_PWM_MODE(sConfig->OCMode)); -3104:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** assert_param(IS_TIM_OC_POLARITY(sConfig->OCPolarity)); -3105:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** assert_param(IS_TIM_FAST_STATE(sConfig->OCFastMode)); -3106:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** -3107:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** htim->State = HAL_TIM_STATE_BUSY; -3108:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** -3109:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** switch (Channel) -3110:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** { -3111:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** case TIM_CHANNEL_1: -3112:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** { - ARM GAS /tmp/cccrAAAm.s page 56 - - -3113:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** assert_param(IS_TIM_CC1_INSTANCE(htim->Instance)); -3114:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** /* Configure the Channel 1 in PWM mode */ -3115:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** TIM_OC1_SetConfig(htim->Instance, sConfig); -3116:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** -3117:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** /* Set the Preload enable bit for channel1 */ -3118:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** htim->Instance->CCMR1 |= TIM_CCMR1_OC1PE; -3119:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** -3120:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** /* Configure the Output Fast mode */ -3121:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** htim->Instance->CCMR1 &= ~TIM_CCMR1_OC1FE; -3122:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** htim->Instance->CCMR1 |= sConfig->OCFastMode; -3123:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** } -3124:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** break; -3125:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** -3126:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** case TIM_CHANNEL_2: -3127:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** { -3128:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** assert_param(IS_TIM_CC2_INSTANCE(htim->Instance)); -3129:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** /* Configure the Channel 2 in PWM mode */ -3130:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** TIM_OC2_SetConfig(htim->Instance, sConfig); -3131:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** -3132:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** /* Set the Preload enable bit for channel2 */ -3133:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** htim->Instance->CCMR1 |= TIM_CCMR1_OC2PE; -3134:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** -3135:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** /* Configure the Output Fast mode */ -3136:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** htim->Instance->CCMR1 &= ~TIM_CCMR1_OC2FE; -3137:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** htim->Instance->CCMR1 |= sConfig->OCFastMode << 8U; -3138:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** } -3139:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** break; -3140:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** -3141:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** case TIM_CHANNEL_3: -3142:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** { -3143:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** assert_param(IS_TIM_CC3_INSTANCE(htim->Instance)); -3144:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** /* Configure the Channel 3 in PWM mode */ -3145:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** TIM_OC3_SetConfig(htim->Instance, sConfig); -3146:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** -3147:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** /* Set the Preload enable bit for channel3 */ -3148:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** htim->Instance->CCMR2 |= TIM_CCMR2_OC3PE; -3149:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** -3150:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** /* Configure the Output Fast mode */ -3151:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** htim->Instance->CCMR2 &= ~TIM_CCMR2_OC3FE; -3152:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** htim->Instance->CCMR2 |= sConfig->OCFastMode; -3153:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** } -3154:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** break; -3155:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** -3156:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** case TIM_CHANNEL_4: -3157:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** { -3158:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** assert_param(IS_TIM_CC4_INSTANCE(htim->Instance)); -3159:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** /* Configure the Channel 4 in PWM mode */ -3160:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** TIM_OC4_SetConfig(htim->Instance, sConfig); -3161:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** -3162:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** /* Set the Preload enable bit for channel4 */ -3163:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** htim->Instance->CCMR2 |= TIM_CCMR2_OC4PE; -3164:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** -3165:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** /* Configure the Output Fast mode */ -3166:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** htim->Instance->CCMR2 &= ~TIM_CCMR2_OC4FE; -3167:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** htim->Instance->CCMR2 |= sConfig->OCFastMode << 8U; -3168:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** } -3169:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** break; - ARM GAS /tmp/cccrAAAm.s page 57 - - -3170:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** -3171:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** default: -3172:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** break; -3173:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** } -3174:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** -3175:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** htim->State = HAL_TIM_STATE_READY; -3176:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** -3177:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** __HAL_UNLOCK(htim); -3178:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** -3179:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** return HAL_OK; -3180:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** } -3181:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** -3182:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** /** -3183:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** * @brief Initializes the TIM One Pulse Channels according to the specified -3184:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** * parameters in the TIM_OnePulse_InitTypeDef. -3185:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** * @param htim TIM One Pulse handle -3186:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** * @param sConfig TIM One Pulse configuration structure -3187:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** * @param OutputChannel TIM Channels to be enabled -3188:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** * This parameter can be one of the following values: -3189:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** * @arg TIM_CHANNEL_1: TIM Channel 1 selected -3190:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** * @arg TIM_CHANNEL_2: TIM Channel 2 selected -3191:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** * @param InputChannel TIM Channels to be enabled -3192:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** * This parameter can be one of the following values: -3193:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** * @arg TIM_CHANNEL_1: TIM Channel 1 selected -3194:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** * @arg TIM_CHANNEL_2: TIM Channel 2 selected -3195:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** * @retval HAL status -3196:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** */ -3197:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** HAL_StatusTypeDef HAL_TIM_OnePulse_ConfigChannel(TIM_HandleTypeDef *htim, TIM_OnePulse_InitTypeDef -3198:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** { -3199:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** TIM_OC_InitTypeDef temp1; -3200:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** -3201:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** /* Check the parameters */ -3202:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** assert_param(IS_TIM_OPM_CHANNELS(OutputChannel)); -3203:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** assert_param(IS_TIM_OPM_CHANNELS(InputChannel)); -3204:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** -3205:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** if(OutputChannel != InputChannel) -3206:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** { -3207:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** __HAL_LOCK(htim); -3208:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** -3209:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** htim->State = HAL_TIM_STATE_BUSY; -3210:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** -3211:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** /* Extract the Ouput compare configuration from sConfig structure */ -3212:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** temp1.OCMode = sConfig->OCMode; -3213:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** temp1.Pulse = sConfig->Pulse; -3214:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** temp1.OCPolarity = sConfig->OCPolarity; -3215:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** temp1.OCNPolarity = sConfig->OCNPolarity; -3216:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** temp1.OCIdleState = sConfig->OCIdleState; -3217:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** temp1.OCNIdleState = sConfig->OCNIdleState; -3218:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** -3219:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** switch (OutputChannel) -3220:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** { -3221:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** case TIM_CHANNEL_1: -3222:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** { -3223:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** assert_param(IS_TIM_CC1_INSTANCE(htim->Instance)); -3224:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** -3225:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** TIM_OC1_SetConfig(htim->Instance, &temp1); -3226:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** } - ARM GAS /tmp/cccrAAAm.s page 58 - - -3227:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** break; -3228:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** case TIM_CHANNEL_2: -3229:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** { -3230:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** assert_param(IS_TIM_CC2_INSTANCE(htim->Instance)); -3231:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** -3232:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** TIM_OC2_SetConfig(htim->Instance, &temp1); -3233:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** } -3234:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** break; -3235:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** default: -3236:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** break; -3237:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** } -3238:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** switch (InputChannel) -3239:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** { -3240:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** case TIM_CHANNEL_1: -3241:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** { -3242:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** assert_param(IS_TIM_CC1_INSTANCE(htim->Instance)); -3243:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** -3244:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** TIM_TI1_SetConfig(htim->Instance, sConfig->ICPolarity, -3245:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** sConfig->ICSelection, sConfig->ICFilter); -3246:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** -3247:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** /* Reset the IC1PSC Bits */ -3248:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** htim->Instance->CCMR1 &= ~TIM_CCMR1_IC1PSC; -3249:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** -3250:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** /* Select the Trigger source */ -3251:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** htim->Instance->SMCR &= ~TIM_SMCR_TS; -3252:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** htim->Instance->SMCR |= TIM_TS_TI1FP1; -3253:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** -3254:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** /* Select the Slave Mode */ -3255:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** htim->Instance->SMCR &= ~TIM_SMCR_SMS; -3256:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** htim->Instance->SMCR |= TIM_SLAVEMODE_TRIGGER; -3257:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** } -3258:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** break; -3259:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** case TIM_CHANNEL_2: -3260:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** { -3261:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** assert_param(IS_TIM_CC2_INSTANCE(htim->Instance)); -3262:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** -3263:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** TIM_TI2_SetConfig(htim->Instance, sConfig->ICPolarity, -3264:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** sConfig->ICSelection, sConfig->ICFilter); -3265:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** -3266:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** /* Reset the IC2PSC Bits */ -3267:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** htim->Instance->CCMR1 &= ~TIM_CCMR1_IC2PSC; -3268:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** -3269:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** /* Select the Trigger source */ -3270:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** htim->Instance->SMCR &= ~TIM_SMCR_TS; -3271:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** htim->Instance->SMCR |= TIM_TS_TI2FP2; -3272:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** -3273:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** /* Select the Slave Mode */ -3274:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** htim->Instance->SMCR &= ~TIM_SMCR_SMS; -3275:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** htim->Instance->SMCR |= TIM_SLAVEMODE_TRIGGER; -3276:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** } -3277:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** break; -3278:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** -3279:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** default: -3280:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** break; -3281:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** } -3282:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** -3283:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** htim->State = HAL_TIM_STATE_READY; - ARM GAS /tmp/cccrAAAm.s page 59 - - -3284:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** -3285:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** __HAL_UNLOCK(htim); -3286:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** -3287:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** return HAL_OK; -3288:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** } -3289:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** else -3290:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** { -3291:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** return HAL_ERROR; -3292:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** } -3293:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** } -3294:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** -3295:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** /** -3296:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** * @brief Configure the DMA Burst to transfer Data from the memory to the TIM peripheral -3297:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** * @param htim TIM handle -3298:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** * @param BurstBaseAddress TIM Base address from where the DMA will start the Data write -3299:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** * This parameter can be one of the following values: -3300:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** * @arg TIM_DMABASE_CR1 -3301:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** * @arg TIM_DMABASE_CR2 -3302:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** * @arg TIM_DMABASE_SMCR -3303:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** * @arg TIM_DMABASE_DIER -3304:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** * @arg TIM_DMABASE_SR -3305:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** * @arg TIM_DMABASE_EGR -3306:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** * @arg TIM_DMABASE_CCMR1 -3307:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** * @arg TIM_DMABASE_CCMR2 -3308:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** * @arg TIM_DMABASE_CCER -3309:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** * @arg TIM_DMABASE_CNT -3310:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** * @arg TIM_DMABASE_PSC -3311:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** * @arg TIM_DMABASE_ARR -3312:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** * @arg TIM_DMABASE_RCR -3313:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** * @arg TIM_DMABASE_CCR1 -3314:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** * @arg TIM_DMABASE_CCR2 -3315:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** * @arg TIM_DMABASE_CCR3 -3316:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** * @arg TIM_DMABASE_CCR4 -3317:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** * @arg TIM_DMABASE_BDTR -3318:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** * @arg TIM_DMABASE_DCR -3319:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** * @param BurstRequestSrc TIM DMA Request sources -3320:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** * This parameter can be one of the following values: -3321:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** * @arg TIM_DMA_UPDATE: TIM update Interrupt source -3322:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** * @arg TIM_DMA_CC1: TIM Capture Compare 1 DMA source -3323:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** * @arg TIM_DMA_CC2: TIM Capture Compare 2 DMA source -3324:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** * @arg TIM_DMA_CC3: TIM Capture Compare 3 DMA source -3325:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** * @arg TIM_DMA_CC4: TIM Capture Compare 4 DMA source -3326:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** * @arg TIM_DMA_COM: TIM Commutation DMA source -3327:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** * @arg TIM_DMA_TRIGGER: TIM Trigger DMA source -3328:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** * @param BurstBuffer The Buffer address. -3329:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** * @param BurstLength DMA Burst length. This parameter can be one value -3330:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** * between: TIM_DMABURSTLENGTH_1TRANSFER and TIM_DMABURSTLENGTH_18TRANSFERS. -3331:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** * @retval HAL status -3332:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** */ -3333:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** HAL_StatusTypeDef HAL_TIM_DMABurst_WriteStart(TIM_HandleTypeDef *htim, uint32_t BurstBaseAddress, u -3334:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** uint32_t *BurstBuffer, uint32_t BurstLength) -3335:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** { -3336:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** return HAL_TIM_DMABurst_MultiWriteStart(htim, BurstBaseAddress, BurstRequestSrc, BurstBuffer, Burst -3337:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** } -3338:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** -3339:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** /** -3340:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** * @brief Configure the DMA Burst to transfer multiple Data from the memory to the TIM peripheral - ARM GAS /tmp/cccrAAAm.s page 60 - - -3341:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** * @param htim TIM handle -3342:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** * @param BurstBaseAddress TIM Base address from where the DMA will start the Data write -3343:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** * This parameter can be one of the following values: -3344:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** * @arg TIM_DMABASE_CR1 -3345:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** * @arg TIM_DMABASE_CR2 -3346:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** * @arg TIM_DMABASE_SMCR -3347:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** * @arg TIM_DMABASE_DIER -3348:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** * @arg TIM_DMABASE_SR -3349:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** * @arg TIM_DMABASE_EGR -3350:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** * @arg TIM_DMABASE_CCMR1 -3351:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** * @arg TIM_DMABASE_CCMR2 -3352:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** * @arg TIM_DMABASE_CCER -3353:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** * @arg TIM_DMABASE_CNT -3354:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** * @arg TIM_DMABASE_PSC -3355:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** * @arg TIM_DMABASE_ARR -3356:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** * @arg TIM_DMABASE_RCR -3357:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** * @arg TIM_DMABASE_CCR1 -3358:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** * @arg TIM_DMABASE_CCR2 -3359:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** * @arg TIM_DMABASE_CCR3 -3360:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** * @arg TIM_DMABASE_CCR4 -3361:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** * @arg TIM_DMABASE_BDTR -3362:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** * @arg TIM_DMABASE_DCR -3363:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** * @param BurstRequestSrc TIM DMA Request sources -3364:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** * This parameter can be one of the following values: -3365:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** * @arg TIM_DMA_UPDATE: TIM update Interrupt source -3366:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** * @arg TIM_DMA_CC1: TIM Capture Compare 1 DMA source -3367:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** * @arg TIM_DMA_CC2: TIM Capture Compare 2 DMA source -3368:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** * @arg TIM_DMA_CC3: TIM Capture Compare 3 DMA source -3369:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** * @arg TIM_DMA_CC4: TIM Capture Compare 4 DMA source -3370:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** * @arg TIM_DMA_COM: TIM Commutation DMA source -3371:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** * @arg TIM_DMA_TRIGGER: TIM Trigger DMA source -3372:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** * @param BurstBuffer The Buffer address. -3373:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** * @param BurstLength DMA Burst length. This parameter can be one value -3374:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** * between: TIM_DMABURSTLENGTH_1TRANSFER and TIM_DMABURSTLENGTH_18TRANSFERS. -3375:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** * @param DataLength Data length. This parameter can be one value -3376:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** * between 1 and 0xFFFF. -3377:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** * @retval HAL status -3378:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** */ -3379:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** HAL_StatusTypeDef HAL_TIM_DMABurst_MultiWriteStart(TIM_HandleTypeDef *htim, uint32_t BurstBaseAddre -3380:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** uint32_t* BurstBuffer, uint32_t BurstLength, u -3381:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** { -3382:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** /* Check the parameters */ -3383:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** assert_param(IS_TIM_DMABURST_INSTANCE(htim->Instance)); -3384:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** assert_param(IS_TIM_DMA_BASE(BurstBaseAddress)); -3385:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** assert_param(IS_TIM_DMA_SOURCE(BurstRequestSrc)); -3386:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** assert_param(IS_TIM_DMA_LENGTH(BurstLength)); -3387:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** assert_param(IS_TIM_DMA_DATA_LENGTH(DataLength)); -3388:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** -3389:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** if((htim->State == HAL_TIM_STATE_BUSY)) -3390:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** { -3391:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** return HAL_BUSY; -3392:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** } -3393:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** else if((htim->State == HAL_TIM_STATE_READY)) -3394:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** { -3395:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** if((BurstBuffer == 0U ) && (BurstLength > 0U)) -3396:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** { -3397:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** return HAL_ERROR; - ARM GAS /tmp/cccrAAAm.s page 61 - - -3398:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** } -3399:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** else -3400:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** { -3401:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** htim->State = HAL_TIM_STATE_BUSY; -3402:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** } -3403:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** } -3404:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** switch(BurstRequestSrc) -3405:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** { -3406:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** case TIM_DMA_UPDATE: -3407:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** { -3408:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** /* Set the DMA Period elapsed callback */ -3409:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** htim->hdma[TIM_DMA_ID_UPDATE]->XferCpltCallback = TIM_DMAPeriodElapsedCplt; -3410:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** -3411:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** /* Set the DMA error callback */ -3412:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** htim->hdma[TIM_DMA_ID_UPDATE]->XferErrorCallback = TIM_DMAError ; -3413:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** -3414:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** /* Enable the DMA channel */ -3415:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** HAL_DMA_Start_IT(htim->hdma[TIM_DMA_ID_UPDATE], (uint32_t)BurstBuffer, (uint32_t)&htim->Insta -3416:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** } -3417:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** break; -3418:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** case TIM_DMA_CC1: -3419:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** { -3420:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** /* Set the DMA Period elapsed callback */ -3421:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** htim->hdma[TIM_DMA_ID_CC1]->XferCpltCallback = TIM_DMADelayPulseCplt; -3422:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** -3423:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** /* Set the DMA error callback */ -3424:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** htim->hdma[TIM_DMA_ID_CC1]->XferErrorCallback = TIM_DMAError ; -3425:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** -3426:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** /* Enable the DMA channel */ -3427:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** HAL_DMA_Start_IT(htim->hdma[TIM_DMA_ID_CC1], (uint32_t)BurstBuffer, (uint32_t)&htim->Instance -3428:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** } -3429:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** break; -3430:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** case TIM_DMA_CC2: -3431:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** { -3432:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** /* Set the DMA Period elapsed callback */ -3433:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** htim->hdma[TIM_DMA_ID_CC2]->XferCpltCallback = TIM_DMADelayPulseCplt; -3434:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** -3435:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** /* Set the DMA error callback */ -3436:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** htim->hdma[TIM_DMA_ID_CC2]->XferErrorCallback = TIM_DMAError ; -3437:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** -3438:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** /* Enable the DMA channel */ -3439:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** HAL_DMA_Start_IT(htim->hdma[TIM_DMA_ID_CC2], (uint32_t)BurstBuffer, (uint32_t)&htim->Instance -3440:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** } -3441:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** break; -3442:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** case TIM_DMA_CC3: -3443:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** { -3444:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** /* Set the DMA Period elapsed callback */ -3445:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** htim->hdma[TIM_DMA_ID_CC3]->XferCpltCallback = TIM_DMADelayPulseCplt; -3446:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** -3447:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** /* Set the DMA error callback */ -3448:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** htim->hdma[TIM_DMA_ID_CC3]->XferErrorCallback = TIM_DMAError ; -3449:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** -3450:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** /* Enable the DMA channel */ -3451:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** HAL_DMA_Start_IT(htim->hdma[TIM_DMA_ID_CC3], (uint32_t)BurstBuffer, (uint32_t)&htim->Instance -3452:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** } -3453:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** break; -3454:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** case TIM_DMA_CC4: - ARM GAS /tmp/cccrAAAm.s page 62 - - -3455:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** { -3456:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** /* Set the DMA Period elapsed callback */ -3457:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** htim->hdma[TIM_DMA_ID_CC4]->XferCpltCallback = TIM_DMADelayPulseCplt; -3458:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** -3459:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** /* Set the DMA error callback */ -3460:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** htim->hdma[TIM_DMA_ID_CC4]->XferErrorCallback = TIM_DMAError ; -3461:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** -3462:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** /* Enable the DMA channel */ -3463:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** HAL_DMA_Start_IT(htim->hdma[TIM_DMA_ID_CC4], (uint32_t)BurstBuffer, (uint32_t)&htim->Instance -3464:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** } -3465:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** break; -3466:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** case TIM_DMA_COM: -3467:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** { -3468:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** /* Set the DMA Period elapsed callback */ -3469:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** htim->hdma[TIM_DMA_ID_COMMUTATION]->XferCpltCallback = TIMEx_DMACommutationCplt; -3470:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** -3471:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** /* Set the DMA error callback */ -3472:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** htim->hdma[TIM_DMA_ID_COMMUTATION]->XferErrorCallback = TIM_DMAError ; -3473:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** -3474:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** /* Enable the DMA channel */ -3475:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** HAL_DMA_Start_IT(htim->hdma[TIM_DMA_ID_COMMUTATION], (uint32_t)BurstBuffer, (uint32_t)&htim-> -3476:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** } -3477:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** break; -3478:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** case TIM_DMA_TRIGGER: -3479:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** { -3480:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** /* Set the DMA Period elapsed callback */ -3481:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** htim->hdma[TIM_DMA_ID_TRIGGER]->XferCpltCallback = TIM_DMATriggerCplt; -3482:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** -3483:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** /* Set the DMA error callback */ -3484:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** htim->hdma[TIM_DMA_ID_TRIGGER]->XferErrorCallback = TIM_DMAError ; -3485:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** -3486:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** /* Enable the DMA channel */ -3487:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** HAL_DMA_Start_IT(htim->hdma[TIM_DMA_ID_TRIGGER], (uint32_t)BurstBuffer, (uint32_t)&htim->Inst -3488:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** } -3489:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** break; -3490:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** default: -3491:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** break; -3492:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** } -3493:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** /* configure the DMA Burst Mode */ -3494:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** htim->Instance->DCR = BurstBaseAddress | BurstLength; -3495:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** -3496:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** /* Enable the TIM DMA Request */ -3497:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** __HAL_TIM_ENABLE_DMA(htim, BurstRequestSrc); -3498:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** -3499:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** htim->State = HAL_TIM_STATE_READY; -3500:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** -3501:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** /* Return function status */ -3502:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** return HAL_OK; -3503:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** } -3504:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** -3505:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** /** -3506:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** * @brief Stops the TIM DMA Burst mode -3507:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** * @param htim TIM handle -3508:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** * @param BurstRequestSrc TIM DMA Request sources to disable -3509:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** * @retval HAL status -3510:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** */ -3511:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** HAL_StatusTypeDef HAL_TIM_DMABurst_WriteStop(TIM_HandleTypeDef *htim, uint32_t BurstRequestSrc) - ARM GAS /tmp/cccrAAAm.s page 63 - - -3512:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** { -3513:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** /* Check the parameters */ -3514:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** assert_param(IS_TIM_DMA_SOURCE(BurstRequestSrc)); -3515:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** -3516:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** /* Abort the DMA transfer (at least disable the DMA channel) */ -3517:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** switch(BurstRequestSrc) -3518:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** { -3519:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** case TIM_DMA_UPDATE: -3520:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** { -3521:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** HAL_DMA_Abort(htim->hdma[TIM_DMA_ID_UPDATE]); -3522:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** } -3523:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** break; -3524:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** case TIM_DMA_CC1: -3525:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** { -3526:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** HAL_DMA_Abort(htim->hdma[TIM_DMA_ID_CC1]); -3527:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** } -3528:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** break; -3529:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** case TIM_DMA_CC2: -3530:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** { -3531:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** HAL_DMA_Abort(htim->hdma[TIM_DMA_ID_CC2]); -3532:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** } -3533:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** break; -3534:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** case TIM_DMA_CC3: -3535:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** { -3536:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** HAL_DMA_Abort(htim->hdma[TIM_DMA_ID_CC3]); -3537:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** } -3538:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** break; -3539:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** case TIM_DMA_CC4: -3540:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** { -3541:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** HAL_DMA_Abort(htim->hdma[TIM_DMA_ID_CC4]); -3542:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** } -3543:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** break; -3544:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** case TIM_DMA_COM: -3545:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** { -3546:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** HAL_DMA_Abort(htim->hdma[TIM_DMA_ID_COMMUTATION]); -3547:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** } -3548:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** break; -3549:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** case TIM_DMA_TRIGGER: -3550:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** { -3551:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** HAL_DMA_Abort(htim->hdma[TIM_DMA_ID_TRIGGER]); -3552:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** } -3553:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** break; -3554:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** default: -3555:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** break; -3556:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** } -3557:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** -3558:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** /* Disable the TIM Update DMA request */ -3559:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** __HAL_TIM_DISABLE_DMA(htim, BurstRequestSrc); -3560:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** -3561:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** /* Return function status */ -3562:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** return HAL_OK; -3563:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** } -3564:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** -3565:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** /** -3566:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** * @brief Configure the DMA Burst to transfer Data from the TIM peripheral to the memory -3567:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** * @param htim TIM handle -3568:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** * @param BurstBaseAddress TIM Base address from where the DMA will starts the Data read - ARM GAS /tmp/cccrAAAm.s page 64 - - -3569:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** * This parameter can be one of the following values: -3570:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** * @arg TIM_DMABASE_CR1 -3571:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** * @arg TIM_DMABASE_CR2 -3572:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** * @arg TIM_DMABASE_SMCR -3573:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** * @arg TIM_DMABASE_DIER -3574:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** * @arg TIM_DMABASE_SR -3575:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** * @arg TIM_DMABASE_EGR -3576:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** * @arg TIM_DMABASE_CCMR1 -3577:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** * @arg TIM_DMABASE_CCMR2 -3578:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** * @arg TIM_DMABASE_CCER -3579:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** * @arg TIM_DMABASE_CNT -3580:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** * @arg TIM_DMABASE_PSC -3581:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** * @arg TIM_DMABASE_ARR -3582:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** * @arg TIM_DMABASE_RCR -3583:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** * @arg TIM_DMABASE_CCR1 -3584:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** * @arg TIM_DMABASE_CCR2 -3585:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** * @arg TIM_DMABASE_CCR3 -3586:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** * @arg TIM_DMABASE_CCR4 -3587:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** * @arg TIM_DMABASE_BDTR -3588:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** * @arg TIM_DMABASE_DCR -3589:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** * @param BurstRequestSrc TIM DMA Request sources -3590:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** * This parameter can be one of the following values: -3591:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** * @arg TIM_DMA_UPDATE: TIM update Interrupt source -3592:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** * @arg TIM_DMA_CC1: TIM Capture Compare 1 DMA source -3593:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** * @arg TIM_DMA_CC2: TIM Capture Compare 2 DMA source -3594:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** * @arg TIM_DMA_CC3: TIM Capture Compare 3 DMA source -3595:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** * @arg TIM_DMA_CC4: TIM Capture Compare 4 DMA source -3596:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** * @arg TIM_DMA_COM: TIM Commutation DMA source -3597:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** * @arg TIM_DMA_TRIGGER: TIM Trigger DMA source -3598:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** * @param BurstBuffer The Buffer address. -3599:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** * @param BurstLength DMA Burst length. This parameter can be one value -3600:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** * between: TIM_DMABURSTLENGTH_1TRANSFER and TIM_DMABURSTLENGTH_18TRANSFERS. -3601:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** * @retval HAL status -3602:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** */ -3603:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** HAL_StatusTypeDef HAL_TIM_DMABurst_ReadStart(TIM_HandleTypeDef *htim, uint32_t BurstBaseAddress, ui -3604:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** uint32_t *BurstBuffer, uint32_t BurstLength) -3605:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** { -3606:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** return HAL_TIM_DMABurst_MultiReadStart(htim, BurstBaseAddress, BurstRequestSrc, BurstBuffer, BurstL -3607:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** } -3608:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** -3609:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** /** -3610:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** * @brief Configure the DMA Burst to transfer multiple Data from the TIM peripheral to the memory -3611:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** * @param htim TIM handle -3612:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** * @param BurstBaseAddress TIM Base address from where the DMA will starts the Data read -3613:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** * This parameter can be one of the following values: -3614:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** * @arg TIM_DMABASE_CR1 -3615:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** * @arg TIM_DMABASE_CR2 -3616:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** * @arg TIM_DMABASE_SMCR -3617:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** * @arg TIM_DMABASE_DIER -3618:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** * @arg TIM_DMABASE_SR -3619:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** * @arg TIM_DMABASE_EGR -3620:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** * @arg TIM_DMABASE_CCMR1 -3621:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** * @arg TIM_DMABASE_CCMR2 -3622:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** * @arg TIM_DMABASE_CCER -3623:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** * @arg TIM_DMABASE_CNT -3624:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** * @arg TIM_DMABASE_PSC -3625:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** * @arg TIM_DMABASE_ARR - ARM GAS /tmp/cccrAAAm.s page 65 - - -3626:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** * @arg TIM_DMABASE_RCR -3627:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** * @arg TIM_DMABASE_CCR1 -3628:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** * @arg TIM_DMABASE_CCR2 -3629:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** * @arg TIM_DMABASE_CCR3 -3630:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** * @arg TIM_DMABASE_CCR4 -3631:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** * @arg TIM_DMABASE_BDTR -3632:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** * @arg TIM_DMABASE_DCR -3633:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** * @param BurstRequestSrc TIM DMA Request sources -3634:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** * This parameter can be one of the following values: -3635:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** * @arg TIM_DMA_UPDATE: TIM update Interrupt source -3636:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** * @arg TIM_DMA_CC1: TIM Capture Compare 1 DMA source -3637:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** * @arg TIM_DMA_CC2: TIM Capture Compare 2 DMA source -3638:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** * @arg TIM_DMA_CC3: TIM Capture Compare 3 DMA source -3639:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** * @arg TIM_DMA_CC4: TIM Capture Compare 4 DMA source -3640:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** * @arg TIM_DMA_COM: TIM Commutation DMA source -3641:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** * @arg TIM_DMA_TRIGGER: TIM Trigger DMA source -3642:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** * @param BurstBuffer The Buffer address. -3643:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** * @param BurstLength DMA Burst length. This parameter can be one value -3644:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** * between: TIM_DMABURSTLENGTH_1TRANSFER and TIM_DMABURSTLENGTH_18TRANSFERS. -3645:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** * @param DataLength Data length. This parameter can be one value -3646:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** * between 1 and 0xFFFF. -3647:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** * @retval HAL status -3648:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** */ -3649:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** HAL_StatusTypeDef HAL_TIM_DMABurst_MultiReadStart(TIM_HandleTypeDef *htim, uint32_t BurstBaseAddres -3650:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** uint32_t *BurstBuffer, uint32_t BurstLength, ui -3651:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** { -3652:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** /* Check the parameters */ -3653:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** assert_param(IS_TIM_DMABURST_INSTANCE(htim->Instance)); -3654:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** assert_param(IS_TIM_DMA_BASE(BurstBaseAddress)); -3655:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** assert_param(IS_TIM_DMA_SOURCE(BurstRequestSrc)); -3656:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** assert_param(IS_TIM_DMA_LENGTH(BurstLength)); -3657:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** assert_param(IS_TIM_DMA_DATA_LENGTH(DataLength)); -3658:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** -3659:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** if((htim->State == HAL_TIM_STATE_BUSY)) -3660:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** { -3661:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** return HAL_BUSY; -3662:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** } -3663:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** else if((htim->State == HAL_TIM_STATE_READY)) -3664:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** { -3665:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** if((BurstBuffer == 0U ) && (BurstLength > 0U)) -3666:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** { -3667:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** return HAL_ERROR; -3668:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** } -3669:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** else -3670:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** { -3671:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** htim->State = HAL_TIM_STATE_BUSY; -3672:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** } -3673:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** } -3674:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** switch(BurstRequestSrc) -3675:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** { -3676:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** case TIM_DMA_UPDATE: -3677:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** { -3678:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** /* Set the DMA Period elapsed callback */ -3679:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** htim->hdma[TIM_DMA_ID_UPDATE]->XferCpltCallback = TIM_DMAPeriodElapsedCplt; -3680:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** -3681:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** /* Set the DMA error callback */ -3682:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** htim->hdma[TIM_DMA_ID_UPDATE]->XferErrorCallback = TIM_DMAError ; - ARM GAS /tmp/cccrAAAm.s page 66 - - -3683:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** -3684:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** /* Enable the DMA channel */ -3685:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** HAL_DMA_Start_IT(htim->hdma[TIM_DMA_ID_UPDATE], (uint32_t)&htim->Instance->DMAR, (uint32_t)B -3686:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** } -3687:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** break; -3688:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** case TIM_DMA_CC1: -3689:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** { -3690:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** /* Set the DMA Period elapsed callback */ -3691:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** htim->hdma[TIM_DMA_ID_CC1]->XferCpltCallback = TIM_DMACaptureCplt; -3692:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** -3693:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** /* Set the DMA error callback */ -3694:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** htim->hdma[TIM_DMA_ID_CC1]->XferErrorCallback = TIM_DMAError ; -3695:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** -3696:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** /* Enable the DMA channel */ -3697:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** HAL_DMA_Start_IT(htim->hdma[TIM_DMA_ID_CC1], (uint32_t)&htim->Instance->DMAR, (uint32_t)Burst -3698:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** } -3699:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** break; -3700:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** case TIM_DMA_CC2: -3701:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** { -3702:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** /* Set the DMA Period elapsed callback */ -3703:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** htim->hdma[TIM_DMA_ID_CC2]->XferCpltCallback = TIM_DMACaptureCplt; -3704:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** -3705:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** /* Set the DMA error callback */ -3706:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** htim->hdma[TIM_DMA_ID_CC2]->XferErrorCallback = TIM_DMAError ; -3707:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** -3708:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** /* Enable the DMA channel */ -3709:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** HAL_DMA_Start_IT(htim->hdma[TIM_DMA_ID_CC2], (uint32_t)&htim->Instance->DMAR, (uint32_t)Burst -3710:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** } -3711:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** break; -3712:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** case TIM_DMA_CC3: -3713:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** { -3714:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** /* Set the DMA Period elapsed callback */ -3715:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** htim->hdma[TIM_DMA_ID_CC3]->XferCpltCallback = TIM_DMACaptureCplt; -3716:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** -3717:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** /* Set the DMA error callback */ -3718:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** htim->hdma[TIM_DMA_ID_CC3]->XferErrorCallback = TIM_DMAError ; -3719:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** -3720:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** /* Enable the DMA channel */ -3721:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** HAL_DMA_Start_IT(htim->hdma[TIM_DMA_ID_CC3], (uint32_t)&htim->Instance->DMAR, (uint32_t)Burst -3722:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** } -3723:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** break; -3724:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** case TIM_DMA_CC4: -3725:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** { -3726:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** /* Set the DMA Period elapsed callback */ -3727:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** htim->hdma[TIM_DMA_ID_CC4]->XferCpltCallback = TIM_DMACaptureCplt; -3728:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** -3729:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** /* Set the DMA error callback */ -3730:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** htim->hdma[TIM_DMA_ID_CC4]->XferErrorCallback = TIM_DMAError ; -3731:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** -3732:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** /* Enable the DMA channel */ -3733:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** HAL_DMA_Start_IT(htim->hdma[TIM_DMA_ID_CC4], (uint32_t)&htim->Instance->DMAR, (uint32_t)Burst -3734:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** } -3735:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** break; -3736:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** case TIM_DMA_COM: -3737:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** { -3738:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** /* Set the DMA Period elapsed callback */ -3739:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** htim->hdma[TIM_DMA_ID_COMMUTATION]->XferCpltCallback = TIMEx_DMACommutationCplt; - ARM GAS /tmp/cccrAAAm.s page 67 - - -3740:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** -3741:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** /* Set the DMA error callback */ -3742:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** htim->hdma[TIM_DMA_ID_COMMUTATION]->XferErrorCallback = TIM_DMAError ; -3743:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** -3744:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** /* Enable the DMA channel */ -3745:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** HAL_DMA_Start_IT(htim->hdma[TIM_DMA_ID_COMMUTATION], (uint32_t)&htim->Instance->DMAR, (uint32 -3746:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** } -3747:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** break; -3748:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** case TIM_DMA_TRIGGER: -3749:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** { -3750:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** /* Set the DMA Period elapsed callback */ -3751:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** htim->hdma[TIM_DMA_ID_TRIGGER]->XferCpltCallback = TIM_DMATriggerCplt; -3752:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** -3753:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** /* Set the DMA error callback */ -3754:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** htim->hdma[TIM_DMA_ID_TRIGGER]->XferErrorCallback = TIM_DMAError ; -3755:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** -3756:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** /* Enable the DMA channel */ -3757:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** HAL_DMA_Start_IT(htim->hdma[TIM_DMA_ID_TRIGGER], (uint32_t)&htim->Instance->DMAR, (uint32_t)B -3758:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** } -3759:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** break; -3760:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** default: -3761:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** break; -3762:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** } -3763:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** -3764:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** /* configure the DMA Burst Mode */ -3765:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** htim->Instance->DCR = BurstBaseAddress | BurstLength; -3766:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** -3767:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** /* Enable the TIM DMA Request */ -3768:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** __HAL_TIM_ENABLE_DMA(htim, BurstRequestSrc); -3769:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** -3770:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** htim->State = HAL_TIM_STATE_READY; -3771:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** -3772:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** /* Return function status */ -3773:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** return HAL_OK; -3774:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** } -3775:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** -3776:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** /** -3777:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** * @brief Stop the DMA burst reading -3778:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** * @param htim TIM handle -3779:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** * @param BurstRequestSrc TIM DMA Request sources to disable. -3780:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** * @retval HAL status -3781:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** */ -3782:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** HAL_StatusTypeDef HAL_TIM_DMABurst_ReadStop(TIM_HandleTypeDef *htim, uint32_t BurstRequestSrc) -3783:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** { -3784:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** /* Check the parameters */ -3785:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** assert_param(IS_TIM_DMA_SOURCE(BurstRequestSrc)); -3786:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** -3787:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** /* Abort the DMA transfer (at least disable the DMA channel) */ -3788:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** switch(BurstRequestSrc) -3789:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** { -3790:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** case TIM_DMA_UPDATE: -3791:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** { -3792:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** HAL_DMA_Abort(htim->hdma[TIM_DMA_ID_UPDATE]); -3793:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** } -3794:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** break; -3795:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** case TIM_DMA_CC1: -3796:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** { - ARM GAS /tmp/cccrAAAm.s page 68 - - -3797:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** HAL_DMA_Abort(htim->hdma[TIM_DMA_ID_CC1]); -3798:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** } -3799:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** break; -3800:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** case TIM_DMA_CC2: -3801:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** { -3802:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** HAL_DMA_Abort(htim->hdma[TIM_DMA_ID_CC2]); -3803:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** } -3804:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** break; -3805:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** case TIM_DMA_CC3: -3806:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** { -3807:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** HAL_DMA_Abort(htim->hdma[TIM_DMA_ID_CC3]); -3808:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** } -3809:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** break; -3810:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** case TIM_DMA_CC4: -3811:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** { -3812:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** HAL_DMA_Abort(htim->hdma[TIM_DMA_ID_CC4]); -3813:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** } -3814:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** break; -3815:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** case TIM_DMA_COM: -3816:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** { -3817:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** HAL_DMA_Abort(htim->hdma[TIM_DMA_ID_COMMUTATION]); -3818:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** } -3819:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** break; -3820:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** case TIM_DMA_TRIGGER: -3821:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** { -3822:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** HAL_DMA_Abort(htim->hdma[TIM_DMA_ID_TRIGGER]); -3823:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** } -3824:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** break; -3825:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** default: -3826:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** break; -3827:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** } -3828:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** -3829:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** /* Disable the TIM Update DMA request */ -3830:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** __HAL_TIM_DISABLE_DMA(htim, BurstRequestSrc); -3831:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** -3832:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** /* Return function status */ -3833:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** return HAL_OK; -3834:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** } -3835:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** -3836:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** /** -3837:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** * @brief Generate a software event -3838:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** * @param htim TIM handle -3839:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** * @param EventSource specifies the event source. -3840:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** * This parameter can be one of the following values: -3841:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** * @arg TIM_EVENTSOURCE_UPDATE: Timer update Event source -3842:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** * @arg TIM_EVENTSOURCE_CC1: Timer Capture Compare 1 Event source -3843:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** * @arg TIM_EVENTSOURCE_CC2: Timer Capture Compare 2 Event source -3844:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** * @arg TIM_EVENTSOURCE_CC3: Timer Capture Compare 3 Event source -3845:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** * @arg TIM_EVENTSOURCE_CC4: Timer Capture Compare 4 Event source -3846:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** * @arg TIM_EVENTSOURCE_COM: Timer COM event source -3847:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** * @arg TIM_EVENTSOURCE_TRIGGER: Timer Trigger Event source -3848:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** * @arg TIM_EVENTSOURCE_BREAK: Timer Break event source -3849:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** * @note TIM6 and TIM7 can only generate an update event. -3850:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** * @note TIM_EVENTSOURCE_COM and TIM_EVENTSOURCE_BREAK are used only with TIM1, TIM15, TIM16 and T -3851:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** * @retval HAL status -3852:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** */ -3853:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** - ARM GAS /tmp/cccrAAAm.s page 69 - - -3854:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** HAL_StatusTypeDef HAL_TIM_GenerateEvent(TIM_HandleTypeDef *htim, uint32_t EventSource) -3855:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** { -3856:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** /* Check the parameters */ -3857:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** assert_param(IS_TIM_INSTANCE(htim->Instance)); -3858:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** assert_param(IS_TIM_EVENT_SOURCE(EventSource)); -3859:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** -3860:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** /* Process Locked */ -3861:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** __HAL_LOCK(htim); -3862:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** -3863:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** /* Change the TIM state */ -3864:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** htim->State = HAL_TIM_STATE_BUSY; -3865:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** -3866:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** /* Set the event sources */ -3867:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** htim->Instance->EGR = EventSource; -3868:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** -3869:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** /* Change the TIM state */ -3870:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** htim->State = HAL_TIM_STATE_READY; -3871:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** -3872:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** __HAL_UNLOCK(htim); -3873:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** -3874:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** /* Return function status */ -3875:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** return HAL_OK; -3876:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** } -3877:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** -3878:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** /** -3879:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** * @brief Configures the OCRef clear feature -3880:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** * @param htim TIM handle -3881:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** * @param sClearInputConfig pointer to a TIM_ClearInputConfigTypeDef structure that -3882:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** * contains the OCREF clear feature and parameters for the TIM peripheral. -3883:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** * @param Channel specifies the TIM Channel -3884:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** * This parameter can be one of the following values: -3885:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** * @arg TIM_CHANNEL_1: TIM Channel 1 -3886:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** * @arg TIM_CHANNEL_2: TIM Channel 2 -3887:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** * @arg TIM_CHANNEL_3: TIM Channel 3 -3888:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** * @arg TIM_CHANNEL_4: TIM Channel 4 -3889:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** * @retval HAL status -3890:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** */ -3891:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** __weak HAL_StatusTypeDef HAL_TIM_ConfigOCrefClear(TIM_HandleTypeDef *htim, TIM_ClearInputConfigType -3892:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** { -3893:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** uint32_t tmpsmcr = 0; -3894:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** -3895:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** /* Check the parameters */ -3896:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** assert_param(IS_TIM_OCXREF_CLEAR_INSTANCE(htim->Instance)); -3897:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** assert_param(IS_TIM_CLEARINPUT_SOURCE(sClearInputConfig->ClearInputSource)); -3898:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** assert_param(IS_TIM_CLEARINPUT_POLARITY(sClearInputConfig->ClearInputPolarity)); -3899:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** assert_param(IS_TIM_CLEARINPUT_PRESCALER(sClearInputConfig->ClearInputPrescaler)); -3900:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** assert_param(IS_TIM_CLEARINPUT_FILTER(sClearInputConfig->ClearInputFilter)); -3901:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** -3902:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** /* Process Locked */ -3903:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** __HAL_LOCK(htim); -3904:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** -3905:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** htim->State = HAL_TIM_STATE_BUSY; -3906:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** -3907:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** switch (sClearInputConfig->ClearInputSource) -3908:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** { -3909:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** case TIM_CLEARINPUTSOURCE_NONE: -3910:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** { - ARM GAS /tmp/cccrAAAm.s page 70 - - -3911:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** /* Get the TIMx SMCR register value */ -3912:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** tmpsmcr = htim->Instance->SMCR; -3913:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** -3914:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** /* Clear the OCREF clear selection bit */ -3915:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** tmpsmcr &= ~TIM_SMCR_OCCS; -3916:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** -3917:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** /* Clear the ETR Bits */ -3918:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** tmpsmcr &= ~(TIM_SMCR_ETF | TIM_SMCR_ETPS | TIM_SMCR_ECE | TIM_SMCR_ETP); -3919:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** -3920:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** /* Set TIMx_SMCR */ -3921:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** htim->Instance->SMCR = tmpsmcr; -3922:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** } -3923:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** break; -3924:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** -3925:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** case TIM_CLEARINPUTSOURCE_ETR: -3926:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** { -3927:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** TIM_ETR_SetConfig(htim->Instance, -3928:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** sClearInputConfig->ClearInputPrescaler, -3929:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** sClearInputConfig->ClearInputPolarity, -3930:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** sClearInputConfig->ClearInputFilter); -3931:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** -3932:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** /* Set the OCREF clear selection bit */ -3933:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** htim->Instance->SMCR |= TIM_SMCR_OCCS; -3934:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** } -3935:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** break; -3936:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** default: -3937:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** break; -3938:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** } -3939:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** -3940:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** switch (Channel) -3941:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** { -3942:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** case TIM_CHANNEL_1: -3943:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** { -3944:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** if(sClearInputConfig->ClearInputState != RESET) -3945:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** { -3946:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** /* Enable the Ocref clear feature for Channel 1 */ -3947:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** htim->Instance->CCMR1 |= TIM_CCMR1_OC1CE; -3948:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** } -3949:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** else -3950:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** { -3951:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** /* Disable the Ocref clear feature for Channel 1 */ -3952:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** htim->Instance->CCMR1 &= ~TIM_CCMR1_OC1CE; -3953:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** } -3954:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** } -3955:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** break; -3956:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** case TIM_CHANNEL_2: -3957:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** { -3958:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** assert_param(IS_TIM_CC2_INSTANCE(htim->Instance)); -3959:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** if(sClearInputConfig->ClearInputState != RESET) -3960:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** { -3961:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** /* Enable the Ocref clear feature for Channel 2 */ -3962:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** htim->Instance->CCMR1 |= TIM_CCMR1_OC2CE; -3963:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** } -3964:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** else -3965:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** { -3966:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** /* Disable the Ocref clear feature for Channel 2 */ -3967:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** htim->Instance->CCMR1 &= ~TIM_CCMR1_OC2CE; - ARM GAS /tmp/cccrAAAm.s page 71 - - -3968:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** } -3969:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** } -3970:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** break; -3971:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** case TIM_CHANNEL_3: -3972:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** { -3973:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** assert_param(IS_TIM_CC3_INSTANCE(htim->Instance)); -3974:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** if(sClearInputConfig->ClearInputState != RESET) -3975:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** { -3976:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** /* Enable the Ocref clear feature for Channel 3 */ -3977:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** htim->Instance->CCMR2 |= TIM_CCMR2_OC3CE; -3978:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** } -3979:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** else -3980:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** { -3981:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** /* Disable the Ocref clear feature for Channel 3 */ -3982:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** htim->Instance->CCMR2 &= ~TIM_CCMR2_OC3CE; -3983:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** } -3984:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** } -3985:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** break; -3986:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** case TIM_CHANNEL_4: -3987:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** { -3988:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** assert_param(IS_TIM_CC4_INSTANCE(htim->Instance)); -3989:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** if(sClearInputConfig->ClearInputState != RESET) -3990:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** { -3991:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** /* Enable the Ocref clear feature for Channel 4 */ -3992:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** htim->Instance->CCMR2 |= TIM_CCMR2_OC4CE; -3993:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** } -3994:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** else -3995:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** { -3996:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** /* Disable the Ocref clear feature for Channel 4 */ -3997:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** htim->Instance->CCMR2 &= ~TIM_CCMR2_OC4CE; -3998:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** } -3999:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** } -4000:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** break; -4001:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** default: -4002:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** break; -4003:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** } -4004:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** -4005:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** htim->State = HAL_TIM_STATE_READY; -4006:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** -4007:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** __HAL_UNLOCK(htim); -4008:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** -4009:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** return HAL_OK; -4010:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** } -4011:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** -4012:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** /** -4013:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** * @brief Configures the clock source to be used -4014:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** * @param htim TIM handle -4015:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** * @param sClockSourceConfig pointer to a TIM_ClockConfigTypeDef structure that -4016:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** * contains the clock source information for the TIM peripheral. -4017:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** * @retval HAL status -4018:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** */ -4019:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** HAL_StatusTypeDef HAL_TIM_ConfigClockSource(TIM_HandleTypeDef *htim, TIM_ClockConfigTypeDef * sCloc -4020:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** { -4021:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** uint32_t tmpsmcr = 0U; -4022:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** -4023:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** /* Process Locked */ -4024:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** __HAL_LOCK(htim); - ARM GAS /tmp/cccrAAAm.s page 72 - - -4025:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** -4026:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** htim->State = HAL_TIM_STATE_BUSY; -4027:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** -4028:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** /* Check the parameters */ -4029:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** assert_param(IS_TIM_CLOCKSOURCE(sClockSourceConfig->ClockSource)); -4030:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** -4031:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** /* Reset the SMS, TS, ECE, ETPS and ETRF bits */ -4032:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** tmpsmcr = htim->Instance->SMCR; -4033:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** tmpsmcr &= ~(TIM_SMCR_SMS | TIM_SMCR_TS); -4034:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** tmpsmcr &= ~(TIM_SMCR_ETF | TIM_SMCR_ETPS | TIM_SMCR_ECE | TIM_SMCR_ETP); -4035:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** htim->Instance->SMCR = tmpsmcr; -4036:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** -4037:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** switch (sClockSourceConfig->ClockSource) -4038:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** { -4039:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** case TIM_CLOCKSOURCE_INTERNAL: -4040:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** { -4041:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** assert_param(IS_TIM_INSTANCE(htim->Instance)); -4042:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** /* Disable slave mode to clock the prescaler directly with the internal clock */ -4043:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** htim->Instance->SMCR &= ~TIM_SMCR_SMS; -4044:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** } -4045:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** break; -4046:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** -4047:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** case TIM_CLOCKSOURCE_ETRMODE1: -4048:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** { -4049:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** /* Check whether or not the timer instance supports external trigger input mode 1 (ETRF)*/ -4050:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** assert_param(IS_TIM_CLOCKSOURCE_ETRMODE1_INSTANCE(htim->Instance)); -4051:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** -4052:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** /* Check ETR input conditioning related parameters */ -4053:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** assert_param(IS_TIM_CLOCKPRESCALER(sClockSourceConfig->ClockPrescaler)); -4054:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** assert_param(IS_TIM_CLOCKPOLARITY(sClockSourceConfig->ClockPolarity)); -4055:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** assert_param(IS_TIM_CLOCKFILTER(sClockSourceConfig->ClockFilter)); -4056:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** -4057:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** /* Configure the ETR Clock source */ -4058:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** TIM_ETR_SetConfig(htim->Instance, -4059:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** sClockSourceConfig->ClockPrescaler, -4060:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** sClockSourceConfig->ClockPolarity, -4061:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** sClockSourceConfig->ClockFilter); -4062:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** /* Get the TIMx SMCR register value */ -4063:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** tmpsmcr = htim->Instance->SMCR; -4064:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** /* Reset the SMS and TS Bits */ -4065:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** tmpsmcr &= ~(TIM_SMCR_SMS | TIM_SMCR_TS); -4066:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** /* Select the External clock mode1 and the ETRF trigger */ -4067:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** tmpsmcr |= (TIM_SLAVEMODE_EXTERNAL1 | TIM_CLOCKSOURCE_ETRMODE1); -4068:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** /* Write to TIMx SMCR */ -4069:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** htim->Instance->SMCR = tmpsmcr; -4070:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** } -4071:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** break; -4072:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** -4073:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** case TIM_CLOCKSOURCE_ETRMODE2: -4074:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** { -4075:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** /* Check whether or not the timer instance supports external trigger input mode 2 (ETRF)*/ -4076:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** assert_param(IS_TIM_CLOCKSOURCE_ETRMODE2_INSTANCE(htim->Instance)); -4077:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** -4078:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** /* Check ETR input conditioning related parameters */ -4079:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** assert_param(IS_TIM_CLOCKPRESCALER(sClockSourceConfig->ClockPrescaler)); -4080:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** assert_param(IS_TIM_CLOCKPOLARITY(sClockSourceConfig->ClockPolarity)); -4081:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** assert_param(IS_TIM_CLOCKFILTER(sClockSourceConfig->ClockFilter)); - ARM GAS /tmp/cccrAAAm.s page 73 - - -4082:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** -4083:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** /* Configure the ETR Clock source */ -4084:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** TIM_ETR_SetConfig(htim->Instance, -4085:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** sClockSourceConfig->ClockPrescaler, -4086:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** sClockSourceConfig->ClockPolarity, -4087:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** sClockSourceConfig->ClockFilter); -4088:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** /* Enable the External clock mode2 */ -4089:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** htim->Instance->SMCR |= TIM_SMCR_ECE; -4090:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** } -4091:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** break; -4092:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** -4093:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** case TIM_CLOCKSOURCE_TI1: -4094:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** { -4095:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** /* Check whether or not the timer instance supports external clock mode 1 */ -4096:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** assert_param(IS_TIM_CLOCKSOURCE_TIX_INSTANCE(htim->Instance)); -4097:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** -4098:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** /* Check TI1 input conditioning related parameters */ -4099:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** assert_param(IS_TIM_CLOCKPOLARITY(sClockSourceConfig->ClockPolarity)); -4100:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** assert_param(IS_TIM_CLOCKFILTER(sClockSourceConfig->ClockFilter)); -4101:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** -4102:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** TIM_TI1_ConfigInputStage(htim->Instance, -4103:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** sClockSourceConfig->ClockPolarity, -4104:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** sClockSourceConfig->ClockFilter); -4105:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** TIM_ITRx_SetConfig(htim->Instance, TIM_CLOCKSOURCE_TI1); -4106:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** } -4107:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** break; -4108:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** case TIM_CLOCKSOURCE_TI2: -4109:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** { -4110:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** /* Check whether or not the timer instance supports external clock mode 1 (ETRF)*/ -4111:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** assert_param(IS_TIM_CLOCKSOURCE_TIX_INSTANCE(htim->Instance)); -4112:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** -4113:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** /* Check TI2 input conditioning related parameters */ -4114:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** assert_param(IS_TIM_CLOCKPOLARITY(sClockSourceConfig->ClockPolarity)); -4115:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** assert_param(IS_TIM_CLOCKFILTER(sClockSourceConfig->ClockFilter)); -4116:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** -4117:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** TIM_TI2_ConfigInputStage(htim->Instance, -4118:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** sClockSourceConfig->ClockPolarity, -4119:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** sClockSourceConfig->ClockFilter); -4120:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** TIM_ITRx_SetConfig(htim->Instance, TIM_CLOCKSOURCE_TI2); -4121:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** } -4122:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** break; -4123:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** case TIM_CLOCKSOURCE_TI1ED: -4124:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** { -4125:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** /* Check whether or not the timer instance supports external clock mode 1 */ -4126:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** assert_param(IS_TIM_CLOCKSOURCE_TIX_INSTANCE(htim->Instance)); -4127:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** -4128:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** /* Check TI1 input conditioning related parameters */ -4129:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** assert_param(IS_TIM_CLOCKPOLARITY(sClockSourceConfig->ClockPolarity)); -4130:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** assert_param(IS_TIM_CLOCKFILTER(sClockSourceConfig->ClockFilter)); -4131:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** -4132:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** TIM_TI1_ConfigInputStage(htim->Instance, -4133:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** sClockSourceConfig->ClockPolarity, -4134:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** sClockSourceConfig->ClockFilter); -4135:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** TIM_ITRx_SetConfig(htim->Instance, TIM_CLOCKSOURCE_TI1ED); -4136:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** } -4137:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** break; -4138:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** case TIM_CLOCKSOURCE_ITR0: - ARM GAS /tmp/cccrAAAm.s page 74 - - -4139:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** { -4140:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** /* Check whether or not the timer instance supports external clock mode 1 */ -4141:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** assert_param(IS_TIM_CLOCKSOURCE_ITRX_INSTANCE(htim->Instance)); -4142:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** -4143:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** TIM_ITRx_SetConfig(htim->Instance, TIM_CLOCKSOURCE_ITR0); -4144:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** } -4145:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** break; -4146:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** case TIM_CLOCKSOURCE_ITR1: -4147:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** { -4148:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** /* Check whether or not the timer instance supports external clock mode 1 */ -4149:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** assert_param(IS_TIM_CLOCKSOURCE_ITRX_INSTANCE(htim->Instance)); -4150:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** -4151:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** TIM_ITRx_SetConfig(htim->Instance, TIM_CLOCKSOURCE_ITR1); -4152:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** } -4153:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** break; -4154:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** case TIM_CLOCKSOURCE_ITR2: -4155:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** { -4156:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** /* Check whether or not the timer instance supports external clock mode 1 */ -4157:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** assert_param(IS_TIM_CLOCKSOURCE_ITRX_INSTANCE(htim->Instance)); -4158:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** -4159:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** TIM_ITRx_SetConfig(htim->Instance, TIM_CLOCKSOURCE_ITR2); -4160:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** } -4161:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** break; -4162:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** case TIM_CLOCKSOURCE_ITR3: -4163:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** { -4164:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** /* Check whether or not the timer instance supports external clock mode 1 */ -4165:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** assert_param(IS_TIM_CLOCKSOURCE_ITRX_INSTANCE(htim->Instance)); -4166:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** -4167:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** TIM_ITRx_SetConfig(htim->Instance, TIM_CLOCKSOURCE_ITR3); -4168:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** } -4169:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** break; -4170:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** -4171:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** default: -4172:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** break; -4173:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** } -4174:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** htim->State = HAL_TIM_STATE_READY; -4175:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** -4176:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** __HAL_UNLOCK(htim); -4177:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** -4178:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** return HAL_OK; -4179:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** } -4180:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** -4181:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** /** -4182:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** * @brief Selects the signal connected to the TI1 input: direct from CH1_input -4183:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** * or a XOR combination between CH1_input, CH2_input & CH3_input -4184:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** * @param htim TIM handle. -4185:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** * @param TI1_Selection Indicate whether or not channel 1 is connected to the -4186:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** * output of a XOR gate. -4187:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** * This parameter can be one of the following values: -4188:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** * @arg TIM_TI1SELECTION_CH1: The TIMx_CH1 pin is connected to TI1 input -4189:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** * @arg TIM_TI1SELECTION_XORCOMBINATION: The TIMx_CH1, CH2 and CH3 -4190:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** * pins are connected to the TI1 input (XOR combination) -4191:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** * @retval HAL status -4192:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** */ -4193:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** HAL_StatusTypeDef HAL_TIM_ConfigTI1Input(TIM_HandleTypeDef *htim, uint32_t TI1_Selection) -4194:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** { -4195:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** uint32_t tmpcr2 = 0U; - ARM GAS /tmp/cccrAAAm.s page 75 - - -4196:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** -4197:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** /* Check the parameters */ -4198:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** assert_param(IS_TIM_XOR_INSTANCE(htim->Instance)); -4199:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** assert_param(IS_TIM_TI1SELECTION(TI1_Selection)); -4200:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** -4201:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** /* Get the TIMx CR2 register value */ -4202:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** tmpcr2 = htim->Instance->CR2; -4203:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** -4204:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** /* Reset the TI1 selection */ -4205:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** tmpcr2 &= ~TIM_CR2_TI1S; -4206:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** -4207:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** /* Set the the TI1 selection */ -4208:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** tmpcr2 |= TI1_Selection; -4209:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** -4210:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** /* Write to TIMxCR2 */ -4211:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** htim->Instance->CR2 = tmpcr2; -4212:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** -4213:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** return HAL_OK; -4214:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** } -4215:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** -4216:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** /** -4217:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** * @brief Configures the TIM in Slave mode -4218:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** * @param htim TIM handle. -4219:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** * @param sSlaveConfig pointer to a TIM_SlaveConfigTypeDef structure that -4220:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** * contains the selected trigger (internal trigger input, filtered -4221:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** * timer input or external trigger input) and the ) and the Slave -4222:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** * mode (Disable, Reset, Gated, Trigger, External clock mode 1). -4223:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** * @retval HAL status -4224:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** */ -4225:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** HAL_StatusTypeDef HAL_TIM_SlaveConfigSynchronization(TIM_HandleTypeDef *htim, TIM_SlaveConfigTypeDe -4226:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** { -4227:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** /* Check the parameters */ -4228:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** assert_param(IS_TIM_SLAVE_INSTANCE(htim->Instance)); -4229:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** assert_param(IS_TIM_SLAVE_MODE(sSlaveConfig->SlaveMode)); -4230:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** assert_param(IS_TIM_TRIGGER_SELECTION(sSlaveConfig->InputTrigger)); -4231:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** -4232:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** __HAL_LOCK(htim); -4233:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** -4234:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** htim->State = HAL_TIM_STATE_BUSY; -4235:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** -4236:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** TIM_SlaveTimer_SetConfig(htim, sSlaveConfig); -4237:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** -4238:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** /* Disable Trigger Interrupt */ -4239:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** __HAL_TIM_DISABLE_IT(htim, TIM_IT_TRIGGER); -4240:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** -4241:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** /* Disable Trigger DMA request */ -4242:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** __HAL_TIM_DISABLE_DMA(htim, TIM_DMA_TRIGGER); -4243:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** -4244:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** htim->State = HAL_TIM_STATE_READY; -4245:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** -4246:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** __HAL_UNLOCK(htim); -4247:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** -4248:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** return HAL_OK; -4249:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** } -4250:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** -4251:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** /** -4252:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** * @brief Configures the TIM in Slave mode in interrupt mode - ARM GAS /tmp/cccrAAAm.s page 76 - - -4253:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** * @param htim TIM handle. -4254:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** * @param sSlaveConfig pointer to a TIM_SlaveConfigTypeDef structure that -4255:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** * contains the selected trigger (internal trigger input, filtered -4256:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** * timer input or external trigger input) and the ) and the Slave -4257:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** * mode (Disable, Reset, Gated, Trigger, External clock mode 1). -4258:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** * @retval HAL status -4259:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** */ -4260:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** HAL_StatusTypeDef HAL_TIM_SlaveConfigSynchronization_IT(TIM_HandleTypeDef *htim, -4261:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** TIM_SlaveConfigTypeDef * sSlaveConfig) -4262:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** { -4263:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** /* Check the parameters */ -4264:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** assert_param(IS_TIM_SLAVE_INSTANCE(htim->Instance)); -4265:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** assert_param(IS_TIM_SLAVE_MODE(sSlaveConfig->SlaveMode)); -4266:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** assert_param(IS_TIM_TRIGGER_SELECTION(sSlaveConfig->InputTrigger)); -4267:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** -4268:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** __HAL_LOCK(htim); -4269:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** -4270:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** htim->State = HAL_TIM_STATE_BUSY; -4271:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** -4272:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** TIM_SlaveTimer_SetConfig(htim, sSlaveConfig); -4273:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** -4274:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** /* Enable Trigger Interrupt */ -4275:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** __HAL_TIM_ENABLE_IT(htim, TIM_IT_TRIGGER); -4276:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** -4277:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** /* Disable Trigger DMA request */ -4278:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** __HAL_TIM_DISABLE_DMA(htim, TIM_DMA_TRIGGER); -4279:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** -4280:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** htim->State = HAL_TIM_STATE_READY; -4281:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** -4282:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** __HAL_UNLOCK(htim); -4283:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** -4284:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** return HAL_OK; -4285:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** } -4286:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** -4287:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** /** -4288:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** * @brief Read the captured value from Capture Compare unit -4289:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** * @param htim TIM handle. -4290:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** * @param Channel TIM Channels to be enabled -4291:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** * This parameter can be one of the following values: -4292:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** * @arg TIM_CHANNEL_1 : TIM Channel 1 selected -4293:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** * @arg TIM_CHANNEL_2 : TIM Channel 2 selected -4294:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** * @arg TIM_CHANNEL_3 : TIM Channel 3 selected -4295:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** * @arg TIM_CHANNEL_4 : TIM Channel 4 selected -4296:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** * @retval Captured value -4297:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** */ -4298:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** uint32_t HAL_TIM_ReadCapturedValue(TIM_HandleTypeDef *htim, uint32_t Channel) -4299:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** { -4300:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** uint32_t tmpreg = 0U; -4301:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** -4302:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** __HAL_LOCK(htim); -4303:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** -4304:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** switch (Channel) -4305:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** { -4306:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** case TIM_CHANNEL_1: -4307:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** { -4308:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** /* Check the parameters */ -4309:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** assert_param(IS_TIM_CC1_INSTANCE(htim->Instance)); - ARM GAS /tmp/cccrAAAm.s page 77 - - -4310:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** -4311:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** /* Return the capture 1 value */ -4312:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** tmpreg = htim->Instance->CCR1; -4313:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** -4314:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** break; -4315:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** } -4316:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** case TIM_CHANNEL_2: -4317:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** { -4318:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** /* Check the parameters */ -4319:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** assert_param(IS_TIM_CC2_INSTANCE(htim->Instance)); -4320:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** -4321:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** /* Return the capture 2 value */ -4322:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** tmpreg = htim->Instance->CCR2; -4323:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** -4324:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** break; -4325:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** } -4326:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** -4327:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** case TIM_CHANNEL_3: -4328:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** { -4329:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** /* Check the parameters */ -4330:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** assert_param(IS_TIM_CC3_INSTANCE(htim->Instance)); -4331:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** -4332:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** /* Return the capture 3 value */ -4333:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** tmpreg = htim->Instance->CCR3; -4334:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** -4335:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** break; -4336:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** } -4337:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** -4338:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** case TIM_CHANNEL_4: -4339:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** { -4340:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** /* Check the parameters */ -4341:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** assert_param(IS_TIM_CC4_INSTANCE(htim->Instance)); -4342:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** -4343:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** /* Return the capture 4 value */ -4344:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** tmpreg = htim->Instance->CCR4; -4345:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** -4346:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** break; -4347:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** } -4348:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** -4349:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** default: -4350:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** break; -4351:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** } -4352:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** -4353:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** __HAL_UNLOCK(htim); -4354:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** return tmpreg; -4355:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** } -4356:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** -4357:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** /** -4358:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** * @} -4359:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** */ -4360:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** -4361:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** /** @defgroup TIM_Exported_Functions_Group9 TIM Callbacks functions -4362:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** * @brief TIM Callbacks functions -4363:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** * -4364:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** @verbatim -4365:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** ============================================================================== -4366:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** ##### TIM Callbacks functions ##### - ARM GAS /tmp/cccrAAAm.s page 78 - - -4367:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** ============================================================================== -4368:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** [..] -4369:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** This section provides TIM callback functions: -4370:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** (+) Timer Period elapsed callback -4371:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** (+) Timer Output Compare callback -4372:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** (+) Timer Input capture callback -4373:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** (+) Timer Trigger callback -4374:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** (+) Timer Error callback -4375:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** -4376:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** @endverbatim -4377:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** * @{ -4378:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** */ -4379:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** -4380:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** /** -4381:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** * @brief Period elapsed callback in non blocking mode -4382:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** * @param htim TIM handle -4383:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** * @retval None -4384:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** */ -4385:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** __weak void HAL_TIM_PeriodElapsedCallback(TIM_HandleTypeDef *htim) -4386:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** { -4387:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** /* Prevent unused argument(s) compilation warning */ -4388:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** UNUSED(htim); -4389:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** -4390:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** /* NOTE : This function Should not be modified, when the callback is needed, -4391:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** the __HAL_TIM_PeriodElapsedCallback could be implemented in the user file -4392:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** */ -4393:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** -4394:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** } -4395:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** /** -4396:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** * @brief Output Compare callback in non blocking mode -4397:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** * @param htim TIM OC handle -4398:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** * @retval None -4399:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** */ -4400:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** __weak void HAL_TIM_OC_DelayElapsedCallback(TIM_HandleTypeDef *htim) -4401:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** { -4402:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** /* Prevent unused argument(s) compilation warning */ -4403:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** UNUSED(htim); -4404:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** -4405:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** /* NOTE : This function Should not be modified, when the callback is needed, -4406:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** the __HAL_TIM_OC_DelayElapsedCallback could be implemented in the user file -4407:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** */ -4408:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** } -4409:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** /** -4410:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** * @brief Input Capture callback in non blocking mode -4411:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** * @param htim TIM IC handle -4412:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** * @retval None -4413:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** */ -4414:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** __weak void HAL_TIM_IC_CaptureCallback(TIM_HandleTypeDef *htim) -4415:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** { -4416:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** /* Prevent unused argument(s) compilation warning */ -4417:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** UNUSED(htim); -4418:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** -4419:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** /* NOTE : This function Should not be modified, when the callback is needed, -4420:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** the __HAL_TIM_IC_CaptureCallback could be implemented in the user file -4421:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** */ -4422:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** } -4423:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** - ARM GAS /tmp/cccrAAAm.s page 79 - - -4424:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** /** -4425:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** * @brief PWM Pulse finished callback in non blocking mode -4426:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** * @param htim TIM handle -4427:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** * @retval None -4428:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** */ -4429:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** __weak void HAL_TIM_PWM_PulseFinishedCallback(TIM_HandleTypeDef *htim) -4430:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** { -4431:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** /* Prevent unused argument(s) compilation warning */ -4432:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** UNUSED(htim); -4433:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** -4434:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** /* NOTE : This function Should not be modified, when the callback is needed, -4435:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** the __HAL_TIM_PWM_PulseFinishedCallback could be implemented in the user file -4436:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** */ -4437:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** } -4438:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** -4439:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** /** -4440:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** * @brief Hall Trigger detection callback in non blocking mode -4441:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** * @param htim TIM handle -4442:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** * @retval None -4443:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** */ -4444:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** __weak void HAL_TIM_TriggerCallback(TIM_HandleTypeDef *htim) -4445:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** { -4446:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** /* Prevent unused argument(s) compilation warning */ -4447:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** UNUSED(htim); -4448:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** -4449:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** /* NOTE : This function Should not be modified, when the callback is needed, -4450:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** the HAL_TIM_TriggerCallback could be implemented in the user file -4451:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** */ -4452:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** } -4453:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** -4454:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** /** -4455:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** * @brief Timer error callback in non blocking mode -4456:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** * @param htim TIM handle -4457:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** * @retval None -4458:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** */ -4459:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** __weak void HAL_TIM_ErrorCallback(TIM_HandleTypeDef *htim) -4460:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** { -4461:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** /* Prevent unused argument(s) compilation warning */ -4462:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** UNUSED(htim); -4463:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** -4464:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** /* NOTE : This function Should not be modified, when the callback is needed, -4465:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** the HAL_TIM_ErrorCallback could be implemented in the user file -4466:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** */ -4467:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** } -4468:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** -4469:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** /** -4470:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** * @} -4471:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** */ -4472:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** -4473:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** /** @defgroup TIM_Exported_Functions_Group10 Peripheral State functions -4474:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** * @brief Peripheral State functions -4475:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** * -4476:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** @verbatim -4477:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** ============================================================================== -4478:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** ##### Peripheral State functions ##### -4479:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** ============================================================================== -4480:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** [..] - ARM GAS /tmp/cccrAAAm.s page 80 - - -4481:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** This subsection permit to get in run-time the status of the peripheral -4482:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** and the data flow. -4483:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** -4484:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** @endverbatim -4485:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** * @{ -4486:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** */ -4487:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** -4488:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** /** -4489:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** * @brief Return the TIM Base state -4490:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** * @param htim TIM Base handle -4491:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** * @retval HAL state -4492:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** */ -4493:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** HAL_TIM_StateTypeDef HAL_TIM_Base_GetState(TIM_HandleTypeDef *htim) -4494:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** { -4495:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** return htim->State; -4496:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** } -4497:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** -4498:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** /** -4499:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** * @brief Return the TIM OC state -4500:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** * @param htim TIM Ouput Compare handle -4501:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** * @retval HAL state -4502:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** */ -4503:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** HAL_TIM_StateTypeDef HAL_TIM_OC_GetState(TIM_HandleTypeDef *htim) -4504:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** { -4505:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** return htim->State; -4506:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** } -4507:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** -4508:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** /** -4509:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** * @brief Return the TIM PWM state -4510:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** * @param htim TIM handle -4511:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** * @retval HAL state -4512:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** */ -4513:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** HAL_TIM_StateTypeDef HAL_TIM_PWM_GetState(TIM_HandleTypeDef *htim) -4514:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** { -4515:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** return htim->State; -4516:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** } -4517:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** -4518:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** /** -4519:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** * @brief Return the TIM Input Capture state -4520:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** * @param htim TIM IC handle -4521:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** * @retval HAL state -4522:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** */ -4523:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** HAL_TIM_StateTypeDef HAL_TIM_IC_GetState(TIM_HandleTypeDef *htim) -4524:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** { -4525:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** return htim->State; -4526:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** } -4527:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** -4528:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** /** -4529:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** * @brief Return the TIM One Pulse Mode state -4530:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** * @param htim TIM OPM handle -4531:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** * @retval HAL state -4532:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** */ -4533:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** HAL_TIM_StateTypeDef HAL_TIM_OnePulse_GetState(TIM_HandleTypeDef *htim) -4534:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** { -4535:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** return htim->State; -4536:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** } -4537:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** - ARM GAS /tmp/cccrAAAm.s page 81 - - -4538:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** /** -4539:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** * @brief Return the TIM Encoder Mode state -4540:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** * @param htim TIM Encoder handle -4541:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** * @retval HAL state -4542:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** */ -4543:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** HAL_TIM_StateTypeDef HAL_TIM_Encoder_GetState(TIM_HandleTypeDef *htim) -4544:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** { -4545:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** return htim->State; -4546:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** } -4547:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** -4548:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** /** -4549:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** * @} -4550:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** */ -4551:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** -4552:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** /** -4553:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** * @} -4554:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** */ -4555:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** -4556:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** /** @addtogroup TIM_Private_Functions TIM_Private_Functions -4557:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** * @{ -4558:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** */ -4559:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** -4560:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** /** -4561:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** * @brief TIM DMA error callback -4562:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** * @param hdma pointer to DMA handle. -4563:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** * @retval None -4564:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** */ -4565:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** void TIM_DMAError(DMA_HandleTypeDef *hdma) -4566:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** { -4567:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** TIM_HandleTypeDef* htim = ( TIM_HandleTypeDef* )((DMA_HandleTypeDef* )hdma)->Parent; -4568:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** -4569:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** htim->State= HAL_TIM_STATE_READY; -4570:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** -4571:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** HAL_TIM_ErrorCallback(htim); -4572:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** } -4573:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** -4574:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** /** -4575:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** * @brief TIM DMA Delay Pulse complete callback. -4576:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** * @param hdma pointer to DMA handle. -4577:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** * @retval None -4578:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** */ -4579:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** void TIM_DMADelayPulseCplt(DMA_HandleTypeDef *hdma) -4580:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** { -4581:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** TIM_HandleTypeDef* htim = ( TIM_HandleTypeDef* )((DMA_HandleTypeDef* )hdma)->Parent; -4582:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** -4583:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** htim->State= HAL_TIM_STATE_READY; -4584:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** -4585:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** if (hdma == htim->hdma[TIM_DMA_ID_CC1]) -4586:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** { -4587:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** htim->Channel = HAL_TIM_ACTIVE_CHANNEL_1; -4588:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** } -4589:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** else if (hdma == htim->hdma[TIM_DMA_ID_CC2]) -4590:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** { -4591:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** htim->Channel = HAL_TIM_ACTIVE_CHANNEL_2; -4592:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** } -4593:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** else if (hdma == htim->hdma[TIM_DMA_ID_CC3]) -4594:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** { - ARM GAS /tmp/cccrAAAm.s page 82 - - -4595:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** htim->Channel = HAL_TIM_ACTIVE_CHANNEL_3; -4596:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** } -4597:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** else if (hdma == htim->hdma[TIM_DMA_ID_CC4]) -4598:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** { -4599:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** htim->Channel = HAL_TIM_ACTIVE_CHANNEL_4; -4600:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** } -4601:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** -4602:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** HAL_TIM_PWM_PulseFinishedCallback(htim); -4603:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** -4604:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** htim->Channel = HAL_TIM_ACTIVE_CHANNEL_CLEARED; -4605:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** } -4606:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** /** -4607:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** * @brief TIM DMA Capture complete callback. -4608:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** * @param hdma pointer to DMA handle. -4609:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** * @retval None -4610:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** */ -4611:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** void TIM_DMACaptureCplt(DMA_HandleTypeDef *hdma) -4612:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** { -4613:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** TIM_HandleTypeDef* htim = ( TIM_HandleTypeDef* )((DMA_HandleTypeDef* )hdma)->Parent; -4614:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** -4615:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** htim->State= HAL_TIM_STATE_READY; -4616:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** -4617:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** if (hdma == htim->hdma[TIM_DMA_ID_CC1]) -4618:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** { -4619:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** htim->Channel = HAL_TIM_ACTIVE_CHANNEL_1; -4620:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** } -4621:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** else if (hdma == htim->hdma[TIM_DMA_ID_CC2]) -4622:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** { -4623:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** htim->Channel = HAL_TIM_ACTIVE_CHANNEL_2; -4624:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** } -4625:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** else if (hdma == htim->hdma[TIM_DMA_ID_CC3]) -4626:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** { -4627:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** htim->Channel = HAL_TIM_ACTIVE_CHANNEL_3; -4628:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** } -4629:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** else if (hdma == htim->hdma[TIM_DMA_ID_CC4]) -4630:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** { -4631:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** htim->Channel = HAL_TIM_ACTIVE_CHANNEL_4; -4632:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** } -4633:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** -4634:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** HAL_TIM_IC_CaptureCallback(htim); -4635:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** -4636:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** htim->Channel = HAL_TIM_ACTIVE_CHANNEL_CLEARED; -4637:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** } -4638:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** -4639:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** /** -4640:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** * @brief TIM DMA Period Elapse complete callback. -4641:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** * @param hdma pointer to DMA handle. -4642:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** * @retval None -4643:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** */ -4644:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** static void TIM_DMAPeriodElapsedCplt(DMA_HandleTypeDef *hdma) -4645:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** { -4646:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** TIM_HandleTypeDef* htim = ( TIM_HandleTypeDef* )((DMA_HandleTypeDef* )hdma)->Parent; -4647:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** -4648:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** htim->State= HAL_TIM_STATE_READY; -4649:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** -4650:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** HAL_TIM_PeriodElapsedCallback(htim); -4651:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** } - ARM GAS /tmp/cccrAAAm.s page 83 - - -4652:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** -4653:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** /** -4654:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** * @brief TIM DMA Trigger callback. -4655:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** * @param hdma pointer to DMA handle. -4656:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** * @retval None -4657:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** */ -4658:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** static void TIM_DMATriggerCplt(DMA_HandleTypeDef *hdma) -4659:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** { -4660:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** TIM_HandleTypeDef* htim = ( TIM_HandleTypeDef* )((DMA_HandleTypeDef* )hdma)->Parent; -4661:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** -4662:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** htim->State= HAL_TIM_STATE_READY; -4663:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** -4664:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** HAL_TIM_TriggerCallback(htim); -4665:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** } -4666:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** -4667:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** /** -4668:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** * @brief Time Base configuration -4669:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** * @param TIMx TIM periheral -4670:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** * @param Structure TIM Base configuration structure -4671:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** * @retval None -4672:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** */ -4673:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** void TIM_Base_SetConfig(TIM_TypeDef *TIMx, TIM_Base_InitTypeDef *Structure) -4674:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** { -4675:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** uint32_t tmpcr1 = 0U; -4676:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** tmpcr1 = TIMx->CR1; -4677:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** -4678:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** /* Set TIM Time Base Unit parameters ---------------------------------------*/ -4679:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** if (IS_TIM_COUNTER_MODE_SELECT_INSTANCE(TIMx)) -4680:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** { -4681:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** /* Select the Counter Mode */ -4682:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** tmpcr1 &= ~(TIM_CR1_DIR | TIM_CR1_CMS); -4683:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** tmpcr1 |= Structure->CounterMode; -4684:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** } -4685:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** -4686:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** if(IS_TIM_CLOCK_DIVISION_INSTANCE(TIMx)) -4687:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** { -4688:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** /* Set the clock division */ -4689:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** tmpcr1 &= ~TIM_CR1_CKD; -4690:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** tmpcr1 |= (uint32_t)Structure->ClockDivision; -4691:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** } -4692:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** -4693:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** /* Set the auto-reload preload */ -4694:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** MODIFY_REG(tmpcr1, TIM_CR1_ARPE, Structure->AutoReloadPreload); -4695:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** -4696:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** TIMx->CR1 = tmpcr1; -4697:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** -4698:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** /* Set the Autoreload value */ -4699:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** TIMx->ARR = (uint32_t)Structure->Period ; -4700:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** -4701:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** /* Set the Prescaler value */ -4702:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** TIMx->PSC = (uint32_t)Structure->Prescaler; -4703:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** -4704:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** if (IS_TIM_REPETITION_COUNTER_INSTANCE(TIMx)) -4705:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** { -4706:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** /* Set the Repetition Counter value */ -4707:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** TIMx->RCR = Structure->RepetitionCounter; -4708:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** } - ARM GAS /tmp/cccrAAAm.s page 84 - - -4709:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** -4710:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** /* Generate an update event to reload the Prescaler -4711:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** and the repetition counter(only for TIM1 and TIM8) value immediatly */ -4712:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** TIMx->EGR = TIM_EGR_UG; -4713:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** } -4714:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** -4715:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** /** -4716:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** * @brief Time Ouput Compare 1 configuration -4717:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** * @param TIMx to select the TIM peripheral -4718:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** * @param OC_Config The ouput configuration structure -4719:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** * @retval None -4720:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** */ -4721:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** static void TIM_OC1_SetConfig(TIM_TypeDef *TIMx, TIM_OC_InitTypeDef *OC_Config) -4722:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** { - 25 .loc 1 4722 0 - 26 .cfi_startproc - 27 @ args = 0, pretend = 0, frame = 0 - 28 @ frame_needed = 0, uses_anonymous_args = 0 - 29 .LVL0: - 30 0000 30B5 push {r4, r5, lr} - 31 .LCFI0: - 32 .cfi_def_cfa_offset 12 - 33 .cfi_offset 4, -12 - 34 .cfi_offset 5, -8 - 35 .cfi_offset 14, -4 - 36 .LVL1: -4723:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** uint32_t tmpccmrx = 0U; -4724:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** uint32_t tmpccer = 0U; -4725:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** uint32_t tmpcr2 = 0U; -4726:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** -4727:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** /* Disable the Channel 1: Reset the CC1E Bit */ -4728:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** TIMx->CCER &= ~TIM_CCER_CC1E; - 37 .loc 1 4728 0 - 38 0002 036A ldr r3, [r0, #32] - 39 0004 0122 movs r2, #1 - 40 0006 9343 bics r3, r2 - 41 0008 0362 str r3, [r0, #32] -4729:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** -4730:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** /* Get the TIMx CCER register value */ -4731:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** tmpccer = TIMx->CCER; - 42 .loc 1 4731 0 - 43 000a 036A ldr r3, [r0, #32] - 44 .LVL2: -4732:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** /* Get the TIMx CR2 register value */ -4733:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** tmpcr2 = TIMx->CR2; - 45 .loc 1 4733 0 - 46 000c 4268 ldr r2, [r0, #4] - 47 .LVL3: -4734:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** -4735:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** /* Get the TIMx CCMR1 register value */ -4736:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** tmpccmrx = TIMx->CCMR1; - 48 .loc 1 4736 0 - 49 000e 8469 ldr r4, [r0, #24] - 50 .LVL4: -4737:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** -4738:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** /* Reset the Output Compare Mode Bits */ -4739:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** tmpccmrx &= ~TIM_CCMR1_OC1M; - ARM GAS /tmp/cccrAAAm.s page 85 - - -4740:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** tmpccmrx &= ~TIM_CCMR1_CC1S; - 51 .loc 1 4740 0 - 52 0010 7325 movs r5, #115 - 53 0012 AC43 bics r4, r5 - 54 .LVL5: -4741:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** /* Select the Output Compare Mode */ -4742:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** tmpccmrx |= OC_Config->OCMode; - 55 .loc 1 4742 0 - 56 0014 0D68 ldr r5, [r1] - 57 0016 2C43 orrs r4, r5 - 58 .LVL6: -4743:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** -4744:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** /* Reset the Output Polarity level */ -4745:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** tmpccer &= ~TIM_CCER_CC1P; - 59 .loc 1 4745 0 - 60 0018 0225 movs r5, #2 - 61 001a AB43 bics r3, r5 - 62 .LVL7: -4746:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** /* Set the Output Compare Polarity */ -4747:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** tmpccer |= OC_Config->OCPolarity; - 63 .loc 1 4747 0 - 64 001c 8D68 ldr r5, [r1, #8] - 65 001e 2B43 orrs r3, r5 - 66 .LVL8: -4748:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** -4749:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** if(IS_TIM_CCXN_INSTANCE(TIMx, TIM_CHANNEL_1)) - 67 .loc 1 4749 0 - 68 0020 144D ldr r5, .L6 - 69 0022 A842 cmp r0, r5 - 70 0024 08D0 beq .L2 - 71 .loc 1 4749 0 is_stmt 0 discriminator 1 - 72 0026 144D ldr r5, .L6+4 - 73 0028 A842 cmp r0, r5 - 74 002a 05D0 beq .L2 - 75 .loc 1 4749 0 discriminator 2 - 76 002c 134D ldr r5, .L6+8 - 77 002e A842 cmp r0, r5 - 78 0030 02D0 beq .L2 - 79 .loc 1 4749 0 discriminator 3 - 80 0032 134D ldr r5, .L6+12 - 81 0034 A842 cmp r0, r5 - 82 0036 05D1 bne .L3 - 83 .L2: -4750:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** { -4751:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** /* Check parameters */ -4752:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** assert_param(IS_TIM_OCN_POLARITY(OC_Config->OCNPolarity)); -4753:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** -4754:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** /* Reset the Output N Polarity level */ -4755:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** tmpccer &= ~TIM_CCER_CC1NP; - 84 .loc 1 4755 0 is_stmt 1 - 85 0038 0825 movs r5, #8 - 86 003a AB43 bics r3, r5 - 87 .LVL9: -4756:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** /* Set the Output N Polarity */ -4757:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** tmpccer |= OC_Config->OCNPolarity; - 88 .loc 1 4757 0 - 89 003c CD68 ldr r5, [r1, #12] - ARM GAS /tmp/cccrAAAm.s page 86 - - - 90 003e 2B43 orrs r3, r5 - 91 .LVL10: -4758:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** /* Reset the Output N State */ -4759:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** tmpccer &= ~TIM_CCER_CC1NE; - 92 .loc 1 4759 0 - 93 0040 0425 movs r5, #4 - 94 0042 AB43 bics r3, r5 - 95 .LVL11: - 96 .L3: -4760:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** } -4761:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** -4762:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** if(IS_TIM_BREAK_INSTANCE(TIMx)) - 97 .loc 1 4762 0 - 98 0044 0B4D ldr r5, .L6 - 99 0046 A842 cmp r0, r5 - 100 0048 08D0 beq .L4 - 101 .loc 1 4762 0 is_stmt 0 discriminator 1 - 102 004a 0B4D ldr r5, .L6+4 - 103 004c A842 cmp r0, r5 - 104 004e 05D0 beq .L4 - 105 .loc 1 4762 0 discriminator 2 - 106 0050 0A4D ldr r5, .L6+8 - 107 0052 A842 cmp r0, r5 - 108 0054 02D0 beq .L4 - 109 .loc 1 4762 0 discriminator 3 - 110 0056 0A4D ldr r5, .L6+12 - 111 0058 A842 cmp r0, r5 - 112 005a 05D1 bne .L5 - 113 .L4: - 114 .LVL12: -4763:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** { -4764:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** /* Check parameters */ -4765:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** assert_param(IS_TIM_OCNIDLE_STATE(OC_Config->OCNIdleState)); -4766:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** assert_param(IS_TIM_OCIDLE_STATE(OC_Config->OCIdleState)); -4767:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** -4768:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** /* Reset the Output Compare and Output Compare N IDLE State */ -4769:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** tmpcr2 &= ~TIM_CR2_OIS1; -4770:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** tmpcr2 &= ~TIM_CR2_OIS1N; - 115 .loc 1 4770 0 is_stmt 1 - 116 005c 094D ldr r5, .L6+16 - 117 005e 2A40 ands r2, r5 - 118 .LVL13: -4771:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** /* Set the Output Idle state */ -4772:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** tmpcr2 |= OC_Config->OCIdleState; - 119 .loc 1 4772 0 - 120 0060 4D69 ldr r5, [r1, #20] - 121 0062 2A43 orrs r2, r5 - 122 .LVL14: -4773:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** /* Set the Output N Idle state */ -4774:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** tmpcr2 |= OC_Config->OCNIdleState; - 123 .loc 1 4774 0 - 124 0064 8D69 ldr r5, [r1, #24] - 125 0066 2A43 orrs r2, r5 - 126 .LVL15: - 127 .L5: -4775:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** } -4776:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** /* Write to TIMx CR2 */ - ARM GAS /tmp/cccrAAAm.s page 87 - - -4777:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** TIMx->CR2 = tmpcr2; - 128 .loc 1 4777 0 - 129 0068 4260 str r2, [r0, #4] -4778:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** -4779:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** /* Write to TIMx CCMR1 */ -4780:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** TIMx->CCMR1 = tmpccmrx; - 130 .loc 1 4780 0 - 131 006a 8461 str r4, [r0, #24] -4781:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** -4782:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** /* Set the Capture Compare Register value */ -4783:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** TIMx->CCR1 = OC_Config->Pulse; - 132 .loc 1 4783 0 - 133 006c 4A68 ldr r2, [r1, #4] - 134 .LVL16: - 135 006e 4263 str r2, [r0, #52] -4784:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** -4785:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** /* Write to TIMx CCER */ -4786:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** TIMx->CCER = tmpccer; - 136 .loc 1 4786 0 - 137 0070 0362 str r3, [r0, #32] -4787:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** } - 138 .loc 1 4787 0 - 139 @ sp needed - 140 .LVL17: - 141 0072 30BD pop {r4, r5, pc} - 142 .L7: - 143 .align 2 - 144 .L6: - 145 0074 002C0140 .word 1073818624 - 146 0078 00400140 .word 1073823744 - 147 007c 00440140 .word 1073824768 - 148 0080 00480140 .word 1073825792 - 149 0084 FFFCFFFF .word -769 - 150 .cfi_endproc - 151 .LFE131: - 153 .section .text.TIM_OC3_SetConfig,"ax",%progbits - 154 .align 1 - 155 .syntax unified - 156 .code 16 - 157 .thumb_func - 158 .fpu softvfp - 160 TIM_OC3_SetConfig: - 161 .LFB133: -4788:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** -4789:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** /** -4790:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** * @brief Time Ouput Compare 2 configuration -4791:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** * @param TIMx to select the TIM peripheral -4792:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** * @param OC_Config The ouput configuration structure -4793:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** * @retval None -4794:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** */ -4795:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** void TIM_OC2_SetConfig(TIM_TypeDef *TIMx, TIM_OC_InitTypeDef *OC_Config) -4796:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** { -4797:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** uint32_t tmpccmrx = 0U; -4798:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** uint32_t tmpccer = 0U; -4799:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** uint32_t tmpcr2 = 0U; -4800:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** -4801:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** /* Disable the Channel 2: Reset the CC2E Bit */ - ARM GAS /tmp/cccrAAAm.s page 88 - - -4802:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** TIMx->CCER &= ~TIM_CCER_CC2E; -4803:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** -4804:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** /* Get the TIMx CCER register value */ -4805:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** tmpccer = TIMx->CCER; -4806:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** /* Get the TIMx CR2 register value */ -4807:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** tmpcr2 = TIMx->CR2; -4808:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** -4809:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** /* Get the TIMx CCMR1 register value */ -4810:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** tmpccmrx = TIMx->CCMR1; -4811:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** -4812:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** /* Reset the Output Compare mode and Capture/Compare selection Bits */ -4813:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** tmpccmrx &= ~TIM_CCMR1_OC2M; -4814:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** tmpccmrx &= ~TIM_CCMR1_CC2S; -4815:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** -4816:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** /* Select the Output Compare Mode */ -4817:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** tmpccmrx |= (OC_Config->OCMode << 8U); -4818:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** -4819:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** /* Reset the Output Polarity level */ -4820:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** tmpccer &= ~TIM_CCER_CC2P; -4821:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** /* Set the Output Compare Polarity */ -4822:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** tmpccer |= (OC_Config->OCPolarity << 4U); -4823:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** -4824:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** if(IS_TIM_CCXN_INSTANCE(TIMx, TIM_CHANNEL_2)) -4825:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** { -4826:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** assert_param(IS_TIM_OCN_POLARITY(OC_Config->OCNPolarity)); -4827:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** -4828:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** /* Reset the Output N Polarity level */ -4829:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** tmpccer &= ~TIM_CCER_CC2NP; -4830:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** /* Set the Output N Polarity */ -4831:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** tmpccer |= (OC_Config->OCNPolarity << 4U); -4832:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** /* Reset the Output N State */ -4833:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** tmpccer &= ~TIM_CCER_CC2NE; -4834:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** -4835:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** } -4836:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** -4837:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** if(IS_TIM_BREAK_INSTANCE(TIMx)) -4838:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** { -4839:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** /* Check parameters */ -4840:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** assert_param(IS_TIM_OCNIDLE_STATE(OC_Config->OCNIdleState)); -4841:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** assert_param(IS_TIM_OCIDLE_STATE(OC_Config->OCIdleState)); -4842:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** -4843:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** /* Reset the Output Compare and Output Compare N IDLE State */ -4844:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** tmpcr2 &= ~TIM_CR2_OIS2; -4845:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** tmpcr2 &= ~TIM_CR2_OIS2N; -4846:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** /* Set the Output Idle state */ -4847:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** tmpcr2 |= (OC_Config->OCIdleState << 2U); -4848:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** /* Set the Output N Idle state */ -4849:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** tmpcr2 |= (OC_Config->OCNIdleState << 2U); -4850:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** } -4851:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** -4852:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** /* Write to TIMx CR2 */ -4853:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** TIMx->CR2 = tmpcr2; -4854:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** -4855:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** /* Write to TIMx CCMR1 */ -4856:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** TIMx->CCMR1 = tmpccmrx; -4857:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** -4858:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** /* Set the Capture Compare Register value */ - ARM GAS /tmp/cccrAAAm.s page 89 - - -4859:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** TIMx->CCR2 = OC_Config->Pulse; -4860:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** -4861:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** /* Write to TIMx CCER */ -4862:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** TIMx->CCER = tmpccer; -4863:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** } -4864:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** -4865:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** /** -4866:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** * @brief Time Ouput Compare 3 configuration -4867:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** * @param TIMx to select the TIM peripheral -4868:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** * @param OC_Config The ouput configuration structure -4869:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** * @retval None -4870:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** */ -4871:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** static void TIM_OC3_SetConfig(TIM_TypeDef *TIMx, TIM_OC_InitTypeDef *OC_Config) -4872:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** { - 162 .loc 1 4872 0 - 163 .cfi_startproc - 164 @ args = 0, pretend = 0, frame = 0 - 165 @ frame_needed = 0, uses_anonymous_args = 0 - 166 .LVL18: - 167 0000 70B5 push {r4, r5, r6, lr} - 168 .LCFI1: - 169 .cfi_def_cfa_offset 16 - 170 .cfi_offset 4, -16 - 171 .cfi_offset 5, -12 - 172 .cfi_offset 6, -8 - 173 .cfi_offset 14, -4 - 174 .LVL19: -4873:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** uint32_t tmpccmrx = 0U; -4874:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** uint32_t tmpccer = 0U; -4875:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** uint32_t tmpcr2 = 0U; -4876:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** -4877:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** /* Disable the Channel 3: Reset the CC2E Bit */ -4878:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** TIMx->CCER &= ~TIM_CCER_CC3E; - 175 .loc 1 4878 0 - 176 0002 036A ldr r3, [r0, #32] - 177 0004 194A ldr r2, .L13 - 178 0006 1340 ands r3, r2 - 179 0008 0362 str r3, [r0, #32] -4879:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** -4880:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** /* Get the TIMx CCER register value */ -4881:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** tmpccer = TIMx->CCER; - 180 .loc 1 4881 0 - 181 000a 036A ldr r3, [r0, #32] - 182 .LVL20: -4882:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** /* Get the TIMx CR2 register value */ -4883:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** tmpcr2 = TIMx->CR2; - 183 .loc 1 4883 0 - 184 000c 4268 ldr r2, [r0, #4] - 185 .LVL21: -4884:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** -4885:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** /* Get the TIMx CCMR2 register value */ -4886:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** tmpccmrx = TIMx->CCMR2; - 186 .loc 1 4886 0 - 187 000e C469 ldr r4, [r0, #28] - 188 .LVL22: -4887:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** -4888:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** /* Reset the Output Compare mode and Capture/Compare selection Bits */ - ARM GAS /tmp/cccrAAAm.s page 90 - - -4889:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** tmpccmrx &= ~TIM_CCMR2_OC3M; -4890:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** tmpccmrx &= ~TIM_CCMR2_CC3S; - 189 .loc 1 4890 0 - 190 0010 7325 movs r5, #115 - 191 0012 AC43 bics r4, r5 - 192 .LVL23: -4891:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** /* Select the Output Compare Mode */ -4892:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** tmpccmrx |= OC_Config->OCMode; - 193 .loc 1 4892 0 - 194 0014 0E68 ldr r6, [r1] - 195 0016 2643 orrs r6, r4 - 196 .LVL24: -4893:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** -4894:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** /* Reset the Output Polarity level */ -4895:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** tmpccer &= ~TIM_CCER_CC3P; - 197 .loc 1 4895 0 - 198 0018 154C ldr r4, .L13+4 - 199 001a 2340 ands r3, r4 - 200 .LVL25: -4896:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** /* Set the Output Compare Polarity */ -4897:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** tmpccer |= (OC_Config->OCPolarity << 8U); - 201 .loc 1 4897 0 - 202 001c 8C68 ldr r4, [r1, #8] - 203 001e 2402 lsls r4, r4, #8 - 204 0020 2343 orrs r3, r4 - 205 .LVL26: -4898:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** -4899:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** if(IS_TIM_CCXN_INSTANCE(TIMx, TIM_CHANNEL_3)) - 206 .loc 1 4899 0 - 207 0022 144C ldr r4, .L13+8 - 208 0024 A042 cmp r0, r4 - 209 0026 19D0 beq .L12 - 210 .L9: -4900:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** { -4901:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** assert_param(IS_TIM_OCN_POLARITY(OC_Config->OCNPolarity)); -4902:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** -4903:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** /* Reset the Output N Polarity level */ -4904:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** tmpccer &= ~TIM_CCER_CC3NP; -4905:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** /* Set the Output N Polarity */ -4906:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** tmpccer |= (OC_Config->OCNPolarity << 8U); -4907:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** /* Reset the Output N State */ -4908:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** tmpccer &= ~TIM_CCER_CC3NE; -4909:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** } -4910:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** -4911:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** if(IS_TIM_BREAK_INSTANCE(TIMx)) - 211 .loc 1 4911 0 - 212 0028 124C ldr r4, .L13+8 - 213 002a A042 cmp r0, r4 - 214 002c 08D0 beq .L10 - 215 .loc 1 4911 0 is_stmt 0 discriminator 1 - 216 002e 124C ldr r4, .L13+12 - 217 0030 A042 cmp r0, r4 - 218 0032 05D0 beq .L10 - 219 .loc 1 4911 0 discriminator 2 - 220 0034 114C ldr r4, .L13+16 - 221 0036 A042 cmp r0, r4 - 222 0038 02D0 beq .L10 - ARM GAS /tmp/cccrAAAm.s page 91 - - - 223 .loc 1 4911 0 discriminator 3 - 224 003a 114C ldr r4, .L13+20 - 225 003c A042 cmp r0, r4 - 226 003e 07D1 bne .L11 - 227 .L10: - 228 .LVL27: -4912:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** { -4913:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** /* Check parameters */ -4914:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** assert_param(IS_TIM_OCNIDLE_STATE(OC_Config->OCNIdleState)); -4915:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** assert_param(IS_TIM_OCIDLE_STATE(OC_Config->OCIdleState)); -4916:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** -4917:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** /* Reset the Output Compare and Output Compare N IDLE State */ -4918:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** tmpcr2 &= ~TIM_CR2_OIS3; -4919:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** tmpcr2 &= ~TIM_CR2_OIS3N; - 229 .loc 1 4919 0 is_stmt 1 - 230 0040 104C ldr r4, .L13+24 - 231 0042 1440 ands r4, r2 - 232 .LVL28: -4920:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** /* Set the Output Idle state */ -4921:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** tmpcr2 |= (OC_Config->OCIdleState << 4U); - 233 .loc 1 4921 0 - 234 0044 4A69 ldr r2, [r1, #20] - 235 0046 1201 lsls r2, r2, #4 - 236 0048 2243 orrs r2, r4 - 237 .LVL29: -4922:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** /* Set the Output N Idle state */ -4923:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** tmpcr2 |= (OC_Config->OCNIdleState << 4U); - 238 .loc 1 4923 0 - 239 004a 8C69 ldr r4, [r1, #24] - 240 004c 2501 lsls r5, r4, #4 - 241 004e 2A43 orrs r2, r5 - 242 .LVL30: - 243 .L11: -4924:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** } -4925:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** -4926:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** /* Write to TIMx CR2 */ -4927:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** TIMx->CR2 = tmpcr2; - 244 .loc 1 4927 0 - 245 0050 4260 str r2, [r0, #4] -4928:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** -4929:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** /* Write to TIMx CCMR2 */ -4930:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** TIMx->CCMR2 = tmpccmrx; - 246 .loc 1 4930 0 - 247 0052 C661 str r6, [r0, #28] -4931:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** -4932:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** /* Set the Capture Compare Register value */ -4933:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** TIMx->CCR3 = OC_Config->Pulse; - 248 .loc 1 4933 0 - 249 0054 4A68 ldr r2, [r1, #4] - 250 .LVL31: - 251 0056 C263 str r2, [r0, #60] -4934:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** -4935:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** /* Write to TIMx CCER */ -4936:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** TIMx->CCER = tmpccer; - 252 .loc 1 4936 0 - 253 0058 0362 str r3, [r0, #32] -4937:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** } - ARM GAS /tmp/cccrAAAm.s page 92 - - - 254 .loc 1 4937 0 - 255 @ sp needed - 256 .LVL32: - 257 005a 70BD pop {r4, r5, r6, pc} - 258 .LVL33: - 259 .L12: -4904:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** /* Set the Output N Polarity */ - 260 .loc 1 4904 0 - 261 005c 0A4C ldr r4, .L13+28 - 262 005e 1C40 ands r4, r3 - 263 .LVL34: -4906:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** /* Reset the Output N State */ - 264 .loc 1 4906 0 - 265 0060 CB68 ldr r3, [r1, #12] - 266 0062 1B02 lsls r3, r3, #8 - 267 0064 2343 orrs r3, r4 - 268 .LVL35: -4908:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** } - 269 .loc 1 4908 0 - 270 0066 094C ldr r4, .L13+32 - 271 0068 2340 ands r3, r4 - 272 .LVL36: - 273 006a DDE7 b .L9 - 274 .L14: - 275 .align 2 - 276 .L13: - 277 006c FFFEFFFF .word -257 - 278 0070 FFFDFFFF .word -513 - 279 0074 002C0140 .word 1073818624 - 280 0078 00400140 .word 1073823744 - 281 007c 00440140 .word 1073824768 - 282 0080 00480140 .word 1073825792 - 283 0084 FFCFFFFF .word -12289 - 284 0088 FFF7FFFF .word -2049 - 285 008c FFFBFFFF .word -1025 - 286 .cfi_endproc - 287 .LFE133: - 289 .section .text.TIM_OC4_SetConfig,"ax",%progbits - 290 .align 1 - 291 .syntax unified - 292 .code 16 - 293 .thumb_func - 294 .fpu softvfp - 296 TIM_OC4_SetConfig: - 297 .LFB134: -4938:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** -4939:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** /** -4940:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** * @brief Time Ouput Compare 4 configuration -4941:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** * @param TIMx to select the TIM peripheral -4942:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** * @param OC_Config The ouput configuration structure -4943:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** * @retval None -4944:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** */ -4945:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** static void TIM_OC4_SetConfig(TIM_TypeDef *TIMx, TIM_OC_InitTypeDef *OC_Config) -4946:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** { - 298 .loc 1 4946 0 - 299 .cfi_startproc - 300 @ args = 0, pretend = 0, frame = 0 - ARM GAS /tmp/cccrAAAm.s page 93 - - - 301 @ frame_needed = 0, uses_anonymous_args = 0 - 302 .LVL37: - 303 0000 30B5 push {r4, r5, lr} - 304 .LCFI2: - 305 .cfi_def_cfa_offset 12 - 306 .cfi_offset 4, -12 - 307 .cfi_offset 5, -8 - 308 .cfi_offset 14, -4 - 309 .LVL38: -4947:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** uint32_t tmpccmrx = 0U; -4948:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** uint32_t tmpccer = 0U; -4949:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** uint32_t tmpcr2 = 0U; -4950:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** -4951:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** /* Disable the Channel 4: Reset the CC4E Bit */ -4952:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** TIMx->CCER &= ~TIM_CCER_CC4E; - 310 .loc 1 4952 0 - 311 0002 036A ldr r3, [r0, #32] - 312 0004 134A ldr r2, .L18 - 313 0006 1340 ands r3, r2 - 314 0008 0362 str r3, [r0, #32] -4953:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** -4954:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** /* Get the TIMx CCER register value */ -4955:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** tmpccer = TIMx->CCER; - 315 .loc 1 4955 0 - 316 000a 026A ldr r2, [r0, #32] - 317 .LVL39: -4956:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** /* Get the TIMx CR2 register value */ -4957:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** tmpcr2 = TIMx->CR2; - 318 .loc 1 4957 0 - 319 000c 4368 ldr r3, [r0, #4] - 320 .LVL40: -4958:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** -4959:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** /* Get the TIMx CCMR2 register value */ -4960:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** tmpccmrx = TIMx->CCMR2; - 321 .loc 1 4960 0 - 322 000e C469 ldr r4, [r0, #28] - 323 .LVL41: -4961:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** -4962:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** /* Reset the Output Compare mode and Capture/Compare selection Bits */ -4963:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** tmpccmrx &= ~TIM_CCMR2_OC4M; -4964:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** tmpccmrx &= ~TIM_CCMR2_CC4S; - 324 .loc 1 4964 0 - 325 0010 114D ldr r5, .L18+4 - 326 0012 2C40 ands r4, r5 - 327 .LVL42: -4965:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** -4966:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** /* Select the Output Compare Mode */ -4967:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** tmpccmrx |= (OC_Config->OCMode << 8U); - 328 .loc 1 4967 0 - 329 0014 0D68 ldr r5, [r1] - 330 0016 2D02 lsls r5, r5, #8 - 331 0018 2C43 orrs r4, r5 - 332 .LVL43: -4968:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** -4969:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** /* Reset the Output Polarity level */ -4970:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** tmpccer &= ~TIM_CCER_CC4P; - 333 .loc 1 4970 0 - ARM GAS /tmp/cccrAAAm.s page 94 - - - 334 001a 104D ldr r5, .L18+8 - 335 001c 1540 ands r5, r2 - 336 .LVL44: -4971:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** /* Set the Output Compare Polarity */ -4972:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** tmpccer |= (OC_Config->OCPolarity << 12U); - 337 .loc 1 4972 0 - 338 001e 8A68 ldr r2, [r1, #8] - 339 0020 1203 lsls r2, r2, #12 - 340 0022 2A43 orrs r2, r5 - 341 .LVL45: -4973:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** -4974:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** if(IS_TIM_BREAK_INSTANCE(TIMx)) - 342 .loc 1 4974 0 - 343 0024 0E4D ldr r5, .L18+12 - 344 0026 A842 cmp r0, r5 - 345 0028 08D0 beq .L16 - 346 .loc 1 4974 0 is_stmt 0 discriminator 1 - 347 002a 0E4D ldr r5, .L18+16 - 348 002c A842 cmp r0, r5 - 349 002e 05D0 beq .L16 - 350 .loc 1 4974 0 discriminator 2 - 351 0030 0D4D ldr r5, .L18+20 - 352 0032 A842 cmp r0, r5 - 353 0034 02D0 beq .L16 - 354 .loc 1 4974 0 discriminator 3 - 355 0036 0D4D ldr r5, .L18+24 - 356 0038 A842 cmp r0, r5 - 357 003a 04D1 bne .L17 - 358 .L16: -4975:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** { -4976:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** assert_param(IS_TIM_OCIDLE_STATE(OC_Config->OCIdleState)); -4977:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** -4978:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** /* Reset the Output Compare IDLE State */ -4979:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** tmpcr2 &= ~TIM_CR2_OIS4; - 359 .loc 1 4979 0 is_stmt 1 - 360 003c 0C4D ldr r5, .L18+28 - 361 003e 2B40 ands r3, r5 - 362 .LVL46: -4980:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** /* Set the Output Idle state */ -4981:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** tmpcr2 |= (OC_Config->OCIdleState << 6U); - 363 .loc 1 4981 0 - 364 0040 4D69 ldr r5, [r1, #20] - 365 0042 AD01 lsls r5, r5, #6 - 366 0044 2B43 orrs r3, r5 - 367 .LVL47: - 368 .L17: -4982:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** } -4983:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** -4984:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** /* Write to TIMx CR2 */ -4985:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** TIMx->CR2 = tmpcr2; - 369 .loc 1 4985 0 - 370 0046 4360 str r3, [r0, #4] -4986:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** -4987:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** /* Write to TIMx CCMR2 */ -4988:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** TIMx->CCMR2 = tmpccmrx; - 371 .loc 1 4988 0 - 372 0048 C461 str r4, [r0, #28] - ARM GAS /tmp/cccrAAAm.s page 95 - - -4989:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** -4990:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** /* Set the Capture Compare Register value */ -4991:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** TIMx->CCR4 = OC_Config->Pulse; - 373 .loc 1 4991 0 - 374 004a 4B68 ldr r3, [r1, #4] - 375 .LVL48: - 376 004c 0364 str r3, [r0, #64] -4992:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** -4993:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** /* Write to TIMx CCER */ -4994:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** TIMx->CCER = tmpccer; - 377 .loc 1 4994 0 - 378 004e 0262 str r2, [r0, #32] -4995:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** } - 379 .loc 1 4995 0 - 380 @ sp needed - 381 .LVL49: - 382 0050 30BD pop {r4, r5, pc} - 383 .L19: - 384 0052 C046 .align 2 - 385 .L18: - 386 0054 FFEFFFFF .word -4097 - 387 0058 FF8CFFFF .word -29441 - 388 005c FFDFFFFF .word -8193 - 389 0060 002C0140 .word 1073818624 - 390 0064 00400140 .word 1073823744 - 391 0068 00440140 .word 1073824768 - 392 006c 00480140 .word 1073825792 - 393 0070 FFBFFFFF .word -16385 - 394 .cfi_endproc - 395 .LFE134: - 397 .section .text.TIM_TI1_ConfigInputStage,"ax",%progbits - 398 .align 1 - 399 .syntax unified - 400 .code 16 - 401 .thumb_func - 402 .fpu softvfp - 404 TIM_TI1_ConfigInputStage: - 405 .LFB137: -4996:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** -4997:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** static void TIM_SlaveTimer_SetConfig(TIM_HandleTypeDef *htim, -4998:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** TIM_SlaveConfigTypeDef * sSlaveConfig) -4999:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** { -5000:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** uint32_t tmpsmcr = 0U; -5001:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** uint32_t tmpccmr1 = 0U; -5002:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** uint32_t tmpccer = 0U; -5003:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** -5004:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** /* Get the TIMx SMCR register value */ -5005:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** tmpsmcr = htim->Instance->SMCR; -5006:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** -5007:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** /* Reset the Trigger Selection Bits */ -5008:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** tmpsmcr &= ~TIM_SMCR_TS; -5009:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** /* Set the Input Trigger source */ -5010:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** tmpsmcr |= sSlaveConfig->InputTrigger; -5011:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** -5012:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** /* Reset the slave mode Bits */ -5013:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** tmpsmcr &= ~TIM_SMCR_SMS; -5014:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** /* Set the slave mode */ - ARM GAS /tmp/cccrAAAm.s page 96 - - -5015:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** tmpsmcr |= sSlaveConfig->SlaveMode; -5016:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** -5017:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** /* Write to TIMx SMCR */ -5018:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** htim->Instance->SMCR = tmpsmcr; -5019:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** -5020:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** /* Configure the trigger prescaler, filter, and polarity */ -5021:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** switch (sSlaveConfig->InputTrigger) -5022:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** { -5023:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** case TIM_TS_ETRF: -5024:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** { -5025:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** /* Check the parameters */ -5026:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** assert_param(IS_TIM_CLOCKSOURCE_ETRMODE1_INSTANCE(htim->Instance)); -5027:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** assert_param(IS_TIM_TRIGGERPRESCALER(sSlaveConfig->TriggerPrescaler)); -5028:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** assert_param(IS_TIM_TRIGGERPOLARITY(sSlaveConfig->TriggerPolarity)); -5029:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** assert_param(IS_TIM_TRIGGERFILTER(sSlaveConfig->TriggerFilter)); -5030:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** /* Configure the ETR Trigger source */ -5031:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** TIM_ETR_SetConfig(htim->Instance, -5032:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** sSlaveConfig->TriggerPrescaler, -5033:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** sSlaveConfig->TriggerPolarity, -5034:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** sSlaveConfig->TriggerFilter); -5035:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** } -5036:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** break; -5037:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** -5038:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** case TIM_TS_TI1F_ED: -5039:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** { -5040:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** /* Check the parameters */ -5041:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** assert_param(IS_TIM_CC1_INSTANCE(htim->Instance)); -5042:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** assert_param(IS_TIM_TRIGGERFILTER(sSlaveConfig->TriggerFilter)); -5043:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** -5044:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** /* Disable the Channel 1: Reset the CC1E Bit */ -5045:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** tmpccer = htim->Instance->CCER; -5046:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** htim->Instance->CCER &= ~TIM_CCER_CC1E; -5047:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** tmpccmr1 = htim->Instance->CCMR1; -5048:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** -5049:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** /* Set the filter */ -5050:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** tmpccmr1 &= ~TIM_CCMR1_IC1F; -5051:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** tmpccmr1 |= ((sSlaveConfig->TriggerFilter) << 4U); -5052:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** -5053:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** /* Write to TIMx CCMR1 and CCER registers */ -5054:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** htim->Instance->CCMR1 = tmpccmr1; -5055:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** htim->Instance->CCER = tmpccer; -5056:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** -5057:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** } -5058:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** break; -5059:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** -5060:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** case TIM_TS_TI1FP1: -5061:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** { -5062:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** /* Check the parameters */ -5063:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** assert_param(IS_TIM_CC1_INSTANCE(htim->Instance)); -5064:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** assert_param(IS_TIM_TRIGGERPOLARITY(sSlaveConfig->TriggerPolarity)); -5065:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** assert_param(IS_TIM_TRIGGERFILTER(sSlaveConfig->TriggerFilter)); -5066:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** -5067:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** /* Configure TI1 Filter and Polarity */ -5068:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** TIM_TI1_ConfigInputStage(htim->Instance, -5069:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** sSlaveConfig->TriggerPolarity, -5070:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** sSlaveConfig->TriggerFilter); -5071:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** } - ARM GAS /tmp/cccrAAAm.s page 97 - - -5072:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** break; -5073:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** -5074:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** case TIM_TS_TI2FP2: -5075:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** { -5076:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** /* Check the parameters */ -5077:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** assert_param(IS_TIM_CC2_INSTANCE(htim->Instance)); -5078:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** assert_param(IS_TIM_TRIGGERPOLARITY(sSlaveConfig->TriggerPolarity)); -5079:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** assert_param(IS_TIM_TRIGGERFILTER(sSlaveConfig->TriggerFilter)); -5080:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** -5081:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** /* Configure TI2 Filter and Polarity */ -5082:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** TIM_TI2_ConfigInputStage(htim->Instance, -5083:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** sSlaveConfig->TriggerPolarity, -5084:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** sSlaveConfig->TriggerFilter); -5085:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** } -5086:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** break; -5087:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** -5088:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** case TIM_TS_ITR0: -5089:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** { -5090:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** /* Check the parameter */ -5091:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** assert_param(IS_TIM_CC2_INSTANCE(htim->Instance)); -5092:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** } -5093:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** break; -5094:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** -5095:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** case TIM_TS_ITR1: -5096:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** { -5097:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** /* Check the parameter */ -5098:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** assert_param(IS_TIM_CC2_INSTANCE(htim->Instance)); -5099:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** } -5100:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** break; -5101:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** -5102:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** case TIM_TS_ITR2: -5103:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** { -5104:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** /* Check the parameter */ -5105:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** assert_param(IS_TIM_CC2_INSTANCE(htim->Instance)); -5106:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** } -5107:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** break; -5108:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** -5109:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** case TIM_TS_ITR3: -5110:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** { -5111:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** /* Check the parameter */ -5112:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** assert_param(IS_TIM_CC2_INSTANCE(htim->Instance)); -5113:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** } -5114:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** break; -5115:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** -5116:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** default: -5117:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** break; -5118:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** } -5119:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** } -5120:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** -5121:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** /** -5122:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** * @brief Configure the TI1 as Input. -5123:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** * @param TIMx to select the TIM peripheral. -5124:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** * @param TIM_ICPolarity The Input Polarity. -5125:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** * This parameter can be one of the following values: -5126:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** * @arg TIM_ICPOLARITY_RISING -5127:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** * @arg TIM_ICPOLARITY_FALLING -5128:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** * @arg TIM_ICPOLARITY_BOTHEDGE - ARM GAS /tmp/cccrAAAm.s page 98 - - -5129:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** * @param TIM_ICSelection specifies the input to be used. -5130:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** * This parameter can be one of the following values: -5131:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** * @arg TIM_ICSELECTION_DIRECTTI : TIM Input 1 is selected to be connected to IC1. -5132:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** * @arg TIM_ICSELECTION_INDIRECTTI : TIM Input 1 is selected to be connected to IC2. -5133:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** * @arg TIM_ICSELECTION_TRC : TIM Input 1 is selected to be connected to TRC. -5134:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** * @param TIM_ICFilter Specifies the Input Capture Filter. -5135:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** * This parameter must be a value between 0x00 and 0x0F. -5136:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** * @retval None -5137:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** * @note TIM_ICFilter and TIM_ICPolarity are not used in INDIRECT mode as TI2FP1 -5138:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** * (on channel2 path) is used as the input signal. Therefore CCMR1 must be -5139:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** * protected against un-initialized filter and polarity values. -5140:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** */ -5141:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** void TIM_TI1_SetConfig(TIM_TypeDef *TIMx, uint32_t TIM_ICPolarity, uint32_t TIM_ICSelection, -5142:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** uint32_t TIM_ICFilter) -5143:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** { -5144:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** uint32_t tmpccmr1 = 0U; -5145:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** uint32_t tmpccer = 0U; -5146:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** -5147:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** /* Disable the Channel 1: Reset the CC1E Bit */ -5148:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** TIMx->CCER &= ~TIM_CCER_CC1E; -5149:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** tmpccmr1 = TIMx->CCMR1; -5150:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** tmpccer = TIMx->CCER; -5151:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** -5152:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** /* Select the Input */ -5153:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** if(IS_TIM_CC2_INSTANCE(TIMx) != RESET) -5154:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** { -5155:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** tmpccmr1 &= ~TIM_CCMR1_CC1S; -5156:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** tmpccmr1 |= TIM_ICSelection; -5157:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** } -5158:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** else -5159:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** { -5160:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** tmpccmr1 |= TIM_CCMR1_CC1S_0; -5161:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** } -5162:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** -5163:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** /* Set the filter */ -5164:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** tmpccmr1 &= ~TIM_CCMR1_IC1F; -5165:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** tmpccmr1 |= ((TIM_ICFilter << 4U) & TIM_CCMR1_IC1F); -5166:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** -5167:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** /* Select the Polarity and set the CC1E Bit */ -5168:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** tmpccer &= ~(TIM_CCER_CC1P | TIM_CCER_CC1NP); -5169:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** tmpccer |= (TIM_ICPolarity & (TIM_CCER_CC1P | TIM_CCER_CC1NP)); -5170:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** -5171:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** /* Write to TIMx CCMR1 and CCER registers */ -5172:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** TIMx->CCMR1 = tmpccmr1; -5173:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** TIMx->CCER = tmpccer; -5174:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** } -5175:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** -5176:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** /** -5177:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** * @brief Configure the Polarity and Filter for TI1. -5178:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** * @param TIMx to select the TIM peripheral. -5179:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** * @param TIM_ICPolarity The Input Polarity. -5180:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** * This parameter can be one of the following values: -5181:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** * @arg TIM_ICPOLARITY_RISING -5182:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** * @arg TIM_ICPOLARITY_FALLING -5183:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** * @arg TIM_ICPOLARITY_BOTHEDGE -5184:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** * @param TIM_ICFilter Specifies the Input Capture Filter. -5185:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** * This parameter must be a value between 0x00 and 0x0F. - ARM GAS /tmp/cccrAAAm.s page 99 - - -5186:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** * @retval None -5187:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** */ -5188:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** static void TIM_TI1_ConfigInputStage(TIM_TypeDef *TIMx, uint32_t TIM_ICPolarity, uint32_t TIM_ICFil -5189:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** { - 406 .loc 1 5189 0 - 407 .cfi_startproc - 408 @ args = 0, pretend = 0, frame = 0 - 409 @ frame_needed = 0, uses_anonymous_args = 0 - 410 .LVL50: - 411 0000 30B5 push {r4, r5, lr} - 412 .LCFI3: - 413 .cfi_def_cfa_offset 12 - 414 .cfi_offset 4, -12 - 415 .cfi_offset 5, -8 - 416 .cfi_offset 14, -4 - 417 .LVL51: -5190:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** uint32_t tmpccmr1 = 0U; -5191:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** uint32_t tmpccer = 0U; -5192:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** -5193:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** /* Disable the Channel 1: Reset the CC1E Bit */ -5194:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** tmpccer = TIMx->CCER; - 418 .loc 1 5194 0 - 419 0002 036A ldr r3, [r0, #32] - 420 .LVL52: -5195:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** TIMx->CCER &= ~TIM_CCER_CC1E; - 421 .loc 1 5195 0 - 422 0004 046A ldr r4, [r0, #32] - 423 0006 0125 movs r5, #1 - 424 0008 AC43 bics r4, r5 - 425 000a 0462 str r4, [r0, #32] -5196:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** tmpccmr1 = TIMx->CCMR1; - 426 .loc 1 5196 0 - 427 000c 8469 ldr r4, [r0, #24] - 428 .LVL53: -5197:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** -5198:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** /* Set the filter */ -5199:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** tmpccmr1 &= ~TIM_CCMR1_IC1F; - 429 .loc 1 5199 0 - 430 000e EF35 adds r5, r5, #239 - 431 0010 AC43 bics r4, r5 - 432 .LVL54: -5200:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** tmpccmr1 |= (TIM_ICFilter << 4U); - 433 .loc 1 5200 0 - 434 0012 1201 lsls r2, r2, #4 - 435 .LVL55: - 436 0014 2243 orrs r2, r4 - 437 .LVL56: -5201:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** -5202:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** /* Select the Polarity and set the CC1E Bit */ -5203:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** tmpccer &= ~(TIM_CCER_CC1P | TIM_CCER_CC1NP); - 438 .loc 1 5203 0 - 439 0016 0A24 movs r4, #10 - 440 0018 A343 bics r3, r4 - 441 .LVL57: -5204:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** tmpccer |= TIM_ICPolarity; - 442 .loc 1 5204 0 - 443 001a 1943 orrs r1, r3 - ARM GAS /tmp/cccrAAAm.s page 100 - - - 444 .LVL58: -5205:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** -5206:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** /* Write to TIMx CCMR1 and CCER registers */ -5207:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** TIMx->CCMR1 = tmpccmr1; - 445 .loc 1 5207 0 - 446 001c 8261 str r2, [r0, #24] -5208:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** TIMx->CCER = tmpccer; - 447 .loc 1 5208 0 - 448 001e 0162 str r1, [r0, #32] -5209:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** } - 449 .loc 1 5209 0 - 450 @ sp needed - 451 0020 30BD pop {r4, r5, pc} - 452 .cfi_endproc - 453 .LFE137: - 455 .section .text.TIM_TI2_SetConfig,"ax",%progbits - 456 .align 1 - 457 .syntax unified - 458 .code 16 - 459 .thumb_func - 460 .fpu softvfp - 462 TIM_TI2_SetConfig: - 463 .LFB138: -5210:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** -5211:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** /** -5212:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** * @brief Configure the TI2 as Input. -5213:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** * @param TIMx to select the TIM peripheral -5214:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** * @param TIM_ICPolarity The Input Polarity. -5215:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** * This parameter can be one of the following values: -5216:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** * @arg TIM_ICPOLARITY_RISING -5217:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** * @arg TIM_ICPOLARITY_FALLING -5218:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** * @arg TIM_ICPOLARITY_BOTHEDGE -5219:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** * @param TIM_ICSelection specifies the input to be used. -5220:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** * This parameter can be one of the following values: -5221:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** * @arg TIM_ICSELECTION_DIRECTTI : TIM Input 2 is selected to be connected to IC2. -5222:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** * @arg TIM_ICSELECTION_INDIRECTTI : TIM Input 2 is selected to be connected to IC1. -5223:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** * @arg TIM_ICSELECTION_TRC : TIM Input 2 is selected to be connected to TRC. -5224:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** * @param TIM_ICFilter Specifies the Input Capture Filter. -5225:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** * This parameter must be a value between 0x00 and 0x0F. -5226:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** * @retval None -5227:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** * @note TIM_ICFilter and TIM_ICPolarity are not used in INDIRECT mode as TI1FP2 -5228:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** * (on channel1 path) is used as the input signal. Therefore CCMR1 must be -5229:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** * protected against un-initialized filter and polarity values. -5230:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** */ -5231:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** static void TIM_TI2_SetConfig(TIM_TypeDef *TIMx, uint32_t TIM_ICPolarity, uint32_t TIM_ICSelection, -5232:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** uint32_t TIM_ICFilter) -5233:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** { - 464 .loc 1 5233 0 - 465 .cfi_startproc - 466 @ args = 0, pretend = 0, frame = 0 - 467 @ frame_needed = 0, uses_anonymous_args = 0 - 468 .LVL59: - 469 0000 70B5 push {r4, r5, r6, lr} - 470 .LCFI4: - 471 .cfi_def_cfa_offset 16 - 472 .cfi_offset 4, -16 - 473 .cfi_offset 5, -12 - ARM GAS /tmp/cccrAAAm.s page 101 - - - 474 .cfi_offset 6, -8 - 475 .cfi_offset 14, -4 - 476 .LVL60: -5234:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** uint32_t tmpccmr1 = 0U; -5235:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** uint32_t tmpccer = 0U; -5236:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** -5237:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** /* Disable the Channel 2: Reset the CC2E Bit */ -5238:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** TIMx->CCER &= ~TIM_CCER_CC2E; - 477 .loc 1 5238 0 - 478 0002 046A ldr r4, [r0, #32] - 479 0004 1025 movs r5, #16 - 480 0006 AC43 bics r4, r5 - 481 0008 0462 str r4, [r0, #32] -5239:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** tmpccmr1 = TIMx->CCMR1; - 482 .loc 1 5239 0 - 483 000a 8569 ldr r5, [r0, #24] - 484 .LVL61: -5240:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** tmpccer = TIMx->CCER; - 485 .loc 1 5240 0 - 486 000c 046A ldr r4, [r0, #32] - 487 .LVL62: -5241:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** -5242:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** /* Select the Input */ -5243:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** tmpccmr1 &= ~TIM_CCMR1_CC2S; - 488 .loc 1 5243 0 - 489 000e 084E ldr r6, .L22 - 490 0010 3540 ands r5, r6 - 491 .LVL63: -5244:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** tmpccmr1 |= (TIM_ICSelection << 8U); - 492 .loc 1 5244 0 - 493 0012 1202 lsls r2, r2, #8 - 494 .LVL64: - 495 0014 2A43 orrs r2, r5 - 496 .LVL65: -5245:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** -5246:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** /* Set the filter */ -5247:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** tmpccmr1 &= ~TIM_CCMR1_IC2F; - 497 .loc 1 5247 0 - 498 0016 074D ldr r5, .L22+4 - 499 0018 2A40 ands r2, r5 - 500 .LVL66: -5248:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** tmpccmr1 |= ((TIM_ICFilter << 12U) & TIM_CCMR1_IC2F); - 501 .loc 1 5248 0 - 502 001a 1B07 lsls r3, r3, #28 - 503 .LVL67: - 504 001c 1B0C lsrs r3, r3, #16 - 505 001e 1343 orrs r3, r2 - 506 .LVL68: -5249:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** -5250:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** /* Select the Polarity and set the CC2E Bit */ -5251:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** tmpccer &= ~(TIM_CCER_CC2P | TIM_CCER_CC2NP); - 507 .loc 1 5251 0 - 508 0020 A022 movs r2, #160 - 509 0022 9443 bics r4, r2 - 510 .LVL69: -5252:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** tmpccer |= ((TIM_ICPolarity << 4U) & (TIM_CCER_CC2P | TIM_CCER_CC2NP)); - 511 .loc 1 5252 0 - ARM GAS /tmp/cccrAAAm.s page 102 - - - 512 0024 0901 lsls r1, r1, #4 - 513 .LVL70: - 514 0026 0A40 ands r2, r1 - 515 0028 2243 orrs r2, r4 - 516 .LVL71: -5253:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** -5254:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** /* Write to TIMx CCMR1 and CCER registers */ -5255:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** TIMx->CCMR1 = tmpccmr1 ; - 517 .loc 1 5255 0 - 518 002a 8361 str r3, [r0, #24] -5256:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** TIMx->CCER = tmpccer; - 519 .loc 1 5256 0 - 520 002c 0262 str r2, [r0, #32] -5257:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** } - 521 .loc 1 5257 0 - 522 @ sp needed - 523 002e 70BD pop {r4, r5, r6, pc} - 524 .L23: - 525 .align 2 - 526 .L22: - 527 0030 FFFCFFFF .word -769 - 528 0034 FF0FFFFF .word -61441 - 529 .cfi_endproc - 530 .LFE138: - 532 .section .text.TIM_TI2_ConfigInputStage,"ax",%progbits - 533 .align 1 - 534 .syntax unified - 535 .code 16 - 536 .thumb_func - 537 .fpu softvfp - 539 TIM_TI2_ConfigInputStage: - 540 .LFB139: -5258:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** -5259:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** /** -5260:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** * @brief Configure the Polarity and Filter for TI2. -5261:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** * @param TIMx to select the TIM peripheral. -5262:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** * @param TIM_ICPolarity The Input Polarity. -5263:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** * This parameter can be one of the following values: -5264:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** * @arg TIM_ICPOLARITY_RISING -5265:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** * @arg TIM_ICPOLARITY_FALLING -5266:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** * @arg TIM_ICPOLARITY_BOTHEDGE -5267:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** * @param TIM_ICFilter Specifies the Input Capture Filter. -5268:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** * This parameter must be a value between 0x00 and 0x0F. -5269:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** * @retval None -5270:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** */ -5271:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** static void TIM_TI2_ConfigInputStage(TIM_TypeDef *TIMx, uint32_t TIM_ICPolarity, uint32_t TIM_ICFil -5272:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** { - 541 .loc 1 5272 0 - 542 .cfi_startproc - 543 @ args = 0, pretend = 0, frame = 0 - 544 @ frame_needed = 0, uses_anonymous_args = 0 - 545 .LVL72: - 546 0000 30B5 push {r4, r5, lr} - 547 .LCFI5: - 548 .cfi_def_cfa_offset 12 - 549 .cfi_offset 4, -12 - 550 .cfi_offset 5, -8 - ARM GAS /tmp/cccrAAAm.s page 103 - - - 551 .cfi_offset 14, -4 - 552 .LVL73: -5273:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** uint32_t tmpccmr1 = 0U; -5274:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** uint32_t tmpccer = 0U; -5275:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** -5276:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** /* Disable the Channel 2: Reset the CC2E Bit */ -5277:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** TIMx->CCER &= ~TIM_CCER_CC2E; - 553 .loc 1 5277 0 - 554 0002 036A ldr r3, [r0, #32] - 555 0004 1024 movs r4, #16 - 556 0006 A343 bics r3, r4 - 557 0008 0362 str r3, [r0, #32] -5278:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** tmpccmr1 = TIMx->CCMR1; - 558 .loc 1 5278 0 - 559 000a 8469 ldr r4, [r0, #24] - 560 .LVL74: -5279:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** tmpccer = TIMx->CCER; - 561 .loc 1 5279 0 - 562 000c 036A ldr r3, [r0, #32] - 563 .LVL75: -5280:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** -5281:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** /* Set the filter */ -5282:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** tmpccmr1 &= ~TIM_CCMR1_IC2F; - 564 .loc 1 5282 0 - 565 000e 054D ldr r5, .L25 - 566 0010 2C40 ands r4, r5 - 567 .LVL76: -5283:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** tmpccmr1 |= (TIM_ICFilter << 12U); - 568 .loc 1 5283 0 - 569 0012 1203 lsls r2, r2, #12 - 570 .LVL77: - 571 0014 2243 orrs r2, r4 - 572 .LVL78: -5284:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** -5285:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** /* Select the Polarity and set the CC2E Bit */ -5286:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** tmpccer &= ~(TIM_CCER_CC2P | TIM_CCER_CC2NP); - 573 .loc 1 5286 0 - 574 0016 A024 movs r4, #160 - 575 0018 A343 bics r3, r4 - 576 .LVL79: -5287:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** tmpccer |= (TIM_ICPolarity << 4U); - 577 .loc 1 5287 0 - 578 001a 0901 lsls r1, r1, #4 - 579 .LVL80: - 580 001c 1943 orrs r1, r3 - 581 .LVL81: -5288:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** -5289:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** /* Write to TIMx CCMR1 and CCER registers */ -5290:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** TIMx->CCMR1 = tmpccmr1 ; - 582 .loc 1 5290 0 - 583 001e 8261 str r2, [r0, #24] -5291:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** TIMx->CCER = tmpccer; - 584 .loc 1 5291 0 - 585 0020 0162 str r1, [r0, #32] -5292:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** } - 586 .loc 1 5292 0 - 587 @ sp needed - ARM GAS /tmp/cccrAAAm.s page 104 - - - 588 0022 30BD pop {r4, r5, pc} - 589 .L26: - 590 .align 2 - 591 .L25: - 592 0024 FF0FFFFF .word -61441 - 593 .cfi_endproc - 594 .LFE139: - 596 .section .text.TIM_TI3_SetConfig,"ax",%progbits - 597 .align 1 - 598 .syntax unified - 599 .code 16 - 600 .thumb_func - 601 .fpu softvfp - 603 TIM_TI3_SetConfig: - 604 .LFB140: -5293:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** -5294:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** /** -5295:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** * @brief Configure the TI3 as Input. -5296:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** * @param TIMx to select the TIM peripheral -5297:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** * @param TIM_ICPolarity The Input Polarity. -5298:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** * This parameter can be one of the following values: -5299:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** * @arg TIM_ICPOLARITY_RISING -5300:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** * @arg TIM_ICPOLARITY_FALLING -5301:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** * @arg TIM_ICPOLARITY_BOTHEDGE -5302:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** * @param TIM_ICSelection specifies the input to be used. -5303:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** * This parameter can be one of the following values: -5304:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** * @arg TIM_ICSELECTION_DIRECTTI : TIM Input 3 is selected to be connected to IC3. -5305:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** * @arg TIM_ICSELECTION_INDIRECTTI : TIM Input 3 is selected to be connected to IC4. -5306:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** * @arg TIM_ICSELECTION_TRC : TIM Input 3 is selected to be connected to TRC. -5307:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** * @param TIM_ICFilter Specifies the Input Capture Filter. -5308:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** * This parameter must be a value between 0x00 and 0x0F. -5309:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** * @retval None -5310:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** * @note TIM_ICFilter and TIM_ICPolarity are not used in INDIRECT mode as TI3FP4 -5311:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** * (on channel1 path) is used as the input signal. Therefore CCMR2 must be -5312:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** * protected against un-initialized filter and polarity values. -5313:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** */ -5314:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** static void TIM_TI3_SetConfig(TIM_TypeDef *TIMx, uint32_t TIM_ICPolarity, uint32_t TIM_ICSelection, -5315:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** uint32_t TIM_ICFilter) -5316:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** { - 605 .loc 1 5316 0 - 606 .cfi_startproc - 607 @ args = 0, pretend = 0, frame = 0 - 608 @ frame_needed = 0, uses_anonymous_args = 0 - 609 .LVL82: - 610 0000 70B5 push {r4, r5, r6, lr} - 611 .LCFI6: - 612 .cfi_def_cfa_offset 16 - 613 .cfi_offset 4, -16 - 614 .cfi_offset 5, -12 - 615 .cfi_offset 6, -8 - 616 .cfi_offset 14, -4 - 617 .LVL83: -5317:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** uint32_t tmpccmr2 = 0U; -5318:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** uint32_t tmpccer = 0U; -5319:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** -5320:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** /* Disable the Channel 3: Reset the CC3E Bit */ -5321:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** TIMx->CCER &= ~TIM_CCER_CC3E; - ARM GAS /tmp/cccrAAAm.s page 105 - - - 618 .loc 1 5321 0 - 619 0002 046A ldr r4, [r0, #32] - 620 0004 0B4D ldr r5, .L28 - 621 0006 2C40 ands r4, r5 - 622 0008 0462 str r4, [r0, #32] -5322:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** tmpccmr2 = TIMx->CCMR2; - 623 .loc 1 5322 0 - 624 000a C469 ldr r4, [r0, #28] - 625 .LVL84: -5323:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** tmpccer = TIMx->CCER; - 626 .loc 1 5323 0 - 627 000c 056A ldr r5, [r0, #32] - 628 .LVL85: -5324:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** -5325:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** /* Select the Input */ -5326:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** tmpccmr2 &= ~TIM_CCMR2_CC3S; - 629 .loc 1 5326 0 - 630 000e 0326 movs r6, #3 - 631 0010 B443 bics r4, r6 - 632 .LVL86: -5327:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** tmpccmr2 |= TIM_ICSelection; - 633 .loc 1 5327 0 - 634 0012 2243 orrs r2, r4 - 635 .LVL87: -5328:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** -5329:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** /* Set the filter */ -5330:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** tmpccmr2 &= ~TIM_CCMR2_IC3F; - 636 .loc 1 5330 0 - 637 0014 F024 movs r4, #240 - 638 0016 A243 bics r2, r4 - 639 .LVL88: -5331:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** tmpccmr2 |= ((TIM_ICFilter << 4U) & TIM_CCMR2_IC3F); - 640 .loc 1 5331 0 - 641 0018 1C01 lsls r4, r3, #4 - 642 001a FF23 movs r3, #255 - 643 .LVL89: - 644 001c 2340 ands r3, r4 - 645 001e 1A43 orrs r2, r3 - 646 .LVL90: -5332:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** -5333:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** /* Select the Polarity and set the CC3E Bit */ -5334:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** tmpccer &= ~(TIM_CCER_CC3P | TIM_CCER_CC3NP); - 647 .loc 1 5334 0 - 648 0020 054B ldr r3, .L28+4 - 649 0022 2B40 ands r3, r5 - 650 .LVL91: -5335:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** tmpccer |= ((TIM_ICPolarity << 8U) & (TIM_CCER_CC3P | TIM_CCER_CC3NP)); - 651 .loc 1 5335 0 - 652 0024 0902 lsls r1, r1, #8 - 653 .LVL92: - 654 0026 A024 movs r4, #160 - 655 0028 2401 lsls r4, r4, #4 - 656 002a 2140 ands r1, r4 - 657 002c 1943 orrs r1, r3 - 658 .LVL93: -5336:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** -5337:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** /* Write to TIMx CCMR2 and CCER registers */ - ARM GAS /tmp/cccrAAAm.s page 106 - - -5338:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** TIMx->CCMR2 = tmpccmr2; - 659 .loc 1 5338 0 - 660 002e C261 str r2, [r0, #28] -5339:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** TIMx->CCER = tmpccer; - 661 .loc 1 5339 0 - 662 0030 0162 str r1, [r0, #32] -5340:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** } - 663 .loc 1 5340 0 - 664 @ sp needed - 665 0032 70BD pop {r4, r5, r6, pc} - 666 .L29: - 667 .align 2 - 668 .L28: - 669 0034 FFFEFFFF .word -257 - 670 0038 FFF5FFFF .word -2561 - 671 .cfi_endproc - 672 .LFE140: - 674 .section .text.TIM_TI4_SetConfig,"ax",%progbits - 675 .align 1 - 676 .syntax unified - 677 .code 16 - 678 .thumb_func - 679 .fpu softvfp - 681 TIM_TI4_SetConfig: - 682 .LFB141: -5341:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** -5342:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** /** -5343:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** * @brief Configure the TI4 as Input. -5344:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** * @param TIMx to select the TIM peripheral -5345:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** * @param TIM_ICPolarity The Input Polarity. -5346:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** * This parameter can be one of the following values: -5347:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** * @arg TIM_ICPOLARITY_RISING -5348:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** * @arg TIM_ICPOLARITY_FALLING -5349:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** * @arg TIM_ICPOLARITY_BOTHEDGE -5350:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** * @param TIM_ICSelection specifies the input to be used. -5351:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** * This parameter can be one of the following values: -5352:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** * @arg TIM_ICSELECTION_DIRECTTI : TIM Input 4 is selected to be connected to IC4. -5353:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** * @arg TIM_ICSELECTION_INDIRECTTI : TIM Input 4 is selected to be connected to IC3. -5354:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** * @arg TIM_ICSELECTION_TRC : TIM Input 4 is selected to be connected to TRC. -5355:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** * @param TIM_ICFilter Specifies the Input Capture Filter. -5356:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** * This parameter must be a value between 0x00 and 0x0F. -5357:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** * @note TIM_ICFilter and TIM_ICPolarity are not used in INDIRECT mode as TI4FP3 -5358:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** * (on channel1 path) is used as the input signal. Therefore CCMR2 must be -5359:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** * protected against un-initialized filter and polarity values. -5360:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** * @retval None -5361:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** */ -5362:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** static void TIM_TI4_SetConfig(TIM_TypeDef *TIMx, uint32_t TIM_ICPolarity, uint32_t TIM_ICSelection, -5363:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** uint32_t TIM_ICFilter) -5364:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** { - 683 .loc 1 5364 0 - 684 .cfi_startproc - 685 @ args = 0, pretend = 0, frame = 0 - 686 @ frame_needed = 0, uses_anonymous_args = 0 - 687 .LVL94: - 688 0000 70B5 push {r4, r5, r6, lr} - 689 .LCFI7: - 690 .cfi_def_cfa_offset 16 - ARM GAS /tmp/cccrAAAm.s page 107 - - - 691 .cfi_offset 4, -16 - 692 .cfi_offset 5, -12 - 693 .cfi_offset 6, -8 - 694 .cfi_offset 14, -4 - 695 .LVL95: -5365:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** uint32_t tmpccmr2 = 0U; -5366:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** uint32_t tmpccer = 0U; -5367:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** -5368:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** /* Disable the Channel 4: Reset the CC4E Bit */ -5369:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** TIMx->CCER &= ~TIM_CCER_CC4E; - 696 .loc 1 5369 0 - 697 0002 046A ldr r4, [r0, #32] - 698 0004 0B4D ldr r5, .L31 - 699 0006 2C40 ands r4, r5 - 700 0008 0462 str r4, [r0, #32] -5370:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** tmpccmr2 = TIMx->CCMR2; - 701 .loc 1 5370 0 - 702 000a C569 ldr r5, [r0, #28] - 703 .LVL96: -5371:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** tmpccer = TIMx->CCER; - 704 .loc 1 5371 0 - 705 000c 046A ldr r4, [r0, #32] - 706 .LVL97: -5372:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** -5373:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** /* Select the Input */ -5374:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** tmpccmr2 &= ~TIM_CCMR2_CC4S; - 707 .loc 1 5374 0 - 708 000e 0A4E ldr r6, .L31+4 - 709 0010 3540 ands r5, r6 - 710 .LVL98: -5375:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** tmpccmr2 |= (TIM_ICSelection << 8U); - 711 .loc 1 5375 0 - 712 0012 1202 lsls r2, r2, #8 - 713 .LVL99: - 714 0014 2A43 orrs r2, r5 - 715 .LVL100: -5376:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** -5377:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** /* Set the filter */ -5378:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** tmpccmr2 &= ~TIM_CCMR2_IC4F; - 716 .loc 1 5378 0 - 717 0016 094D ldr r5, .L31+8 - 718 0018 2A40 ands r2, r5 - 719 .LVL101: -5379:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** tmpccmr2 |= ((TIM_ICFilter << 12U) & TIM_CCMR2_IC4F); - 720 .loc 1 5379 0 - 721 001a 1B07 lsls r3, r3, #28 - 722 .LVL102: - 723 001c 1B0C lsrs r3, r3, #16 - 724 001e 1343 orrs r3, r2 - 725 .LVL103: -5380:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** -5381:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** /* Select the Polarity and set the CC4E Bit */ -5382:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** tmpccer &= ~(TIM_CCER_CC4P | TIM_CCER_CC4NP); - 726 .loc 1 5382 0 - 727 0020 074A ldr r2, .L31+12 - 728 0022 2240 ands r2, r4 - 729 .LVL104: - ARM GAS /tmp/cccrAAAm.s page 108 - - -5383:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** tmpccer |= ((TIM_ICPolarity << 12U) & (TIM_CCER_CC4P | TIM_CCER_CC4NP)); - 730 .loc 1 5383 0 - 731 0024 0903 lsls r1, r1, #12 - 732 .LVL105: - 733 0026 A024 movs r4, #160 - 734 0028 2402 lsls r4, r4, #8 - 735 002a 2140 ands r1, r4 - 736 002c 1143 orrs r1, r2 - 737 .LVL106: -5384:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** -5385:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** /* Write to TIMx CCMR2 and CCER registers */ -5386:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** TIMx->CCMR2 = tmpccmr2; - 738 .loc 1 5386 0 - 739 002e C361 str r3, [r0, #28] -5387:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** TIMx->CCER = tmpccer ; - 740 .loc 1 5387 0 - 741 0030 0162 str r1, [r0, #32] -5388:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** } - 742 .loc 1 5388 0 - 743 @ sp needed - 744 0032 70BD pop {r4, r5, r6, pc} - 745 .L32: - 746 .align 2 - 747 .L31: - 748 0034 FFEFFFFF .word -4097 - 749 0038 FFFCFFFF .word -769 - 750 003c FF0FFFFF .word -61441 - 751 0040 FF5FFFFF .word -40961 - 752 .cfi_endproc - 753 .LFE141: - 755 .section .text.TIM_ITRx_SetConfig,"ax",%progbits - 756 .align 1 - 757 .syntax unified - 758 .code 16 - 759 .thumb_func - 760 .fpu softvfp - 762 TIM_ITRx_SetConfig: - 763 .LFB142: -5389:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** -5390:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** /** -5391:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** * @brief Selects the Input Trigger source -5392:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** * @param TIMx to select the TIM peripheral -5393:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** * @param InputTriggerSource The Input Trigger source. -5394:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** * This parameter can be one of the following values: -5395:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** * @arg TIM_TS_ITR0 : Internal Trigger 0 -5396:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** * @arg TIM_TS_ITR1 : Internal Trigger 1 -5397:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** * @arg TIM_TS_ITR2 : Internal Trigger 2 -5398:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** * @arg TIM_TS_ITR3 : Internal Trigger 3 -5399:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** * @arg TIM_TS_TI1F_ED : TI1 Edge Detector -5400:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** * @arg TIM_TS_TI1FP1 : Filtered Timer Input 1 -5401:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** * @arg TIM_TS_TI2FP2 : Filtered Timer Input 2 -5402:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** * @arg TIM_TS_ETRF : External Trigger input -5403:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** * @retval None -5404:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** */ -5405:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** static void TIM_ITRx_SetConfig(TIM_TypeDef *TIMx, uint16_t InputTriggerSource) -5406:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** { - 764 .loc 1 5406 0 - ARM GAS /tmp/cccrAAAm.s page 109 - - - 765 .cfi_startproc - 766 @ args = 0, pretend = 0, frame = 0 - 767 @ frame_needed = 0, uses_anonymous_args = 0 - 768 @ link register save eliminated. - 769 .LVL107: -5407:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** uint32_t tmpsmcr = 0U; -5408:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** -5409:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** /* Get the TIMx SMCR register value */ -5410:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** tmpsmcr = TIMx->SMCR; - 770 .loc 1 5410 0 - 771 0000 8368 ldr r3, [r0, #8] - 772 .LVL108: -5411:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** /* Reset the TS Bits */ -5412:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** tmpsmcr &= ~TIM_SMCR_TS; - 773 .loc 1 5412 0 - 774 0002 7022 movs r2, #112 - 775 0004 9343 bics r3, r2 - 776 .LVL109: -5413:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** /* Set the Input Trigger source and the slave mode*/ -5414:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** tmpsmcr |= InputTriggerSource | TIM_SLAVEMODE_EXTERNAL1; - 777 .loc 1 5414 0 - 778 0006 0722 movs r2, #7 - 779 0008 1143 orrs r1, r2 - 780 .LVL110: - 781 000a 1943 orrs r1, r3 - 782 .LVL111: -5415:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** /* Write to TIMx SMCR */ -5416:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** TIMx->SMCR = tmpsmcr; - 783 .loc 1 5416 0 - 784 000c 8160 str r1, [r0, #8] -5417:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** } - 785 .loc 1 5417 0 - 786 @ sp needed - 787 000e 7047 bx lr - 788 .cfi_endproc - 789 .LFE142: - 791 .section .text.HAL_TIM_Base_MspInit,"ax",%progbits - 792 .align 1 - 793 .weak HAL_TIM_Base_MspInit - 794 .syntax unified - 795 .code 16 - 796 .thumb_func - 797 .fpu softvfp - 799 HAL_TIM_Base_MspInit: - 800 .LFB39: - 271:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** /* Prevent unused argument(s) compilation warning */ - 801 .loc 1 271 0 - 802 .cfi_startproc - 803 @ args = 0, pretend = 0, frame = 0 - 804 @ frame_needed = 0, uses_anonymous_args = 0 - 805 @ link register save eliminated. - 806 .LVL112: - 278:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** - 807 .loc 1 278 0 - 808 @ sp needed - 809 0000 7047 bx lr - 810 .cfi_endproc - ARM GAS /tmp/cccrAAAm.s page 110 - - - 811 .LFE39: - 813 .section .text.HAL_TIM_Base_MspDeInit,"ax",%progbits - 814 .align 1 - 815 .weak HAL_TIM_Base_MspDeInit - 816 .syntax unified - 817 .code 16 - 818 .thumb_func - 819 .fpu softvfp - 821 HAL_TIM_Base_MspDeInit: - 822 .LFB40: - 286:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** /* Prevent unused argument(s) compilation warning */ - 823 .loc 1 286 0 - 824 .cfi_startproc - 825 @ args = 0, pretend = 0, frame = 0 - 826 @ frame_needed = 0, uses_anonymous_args = 0 - 827 @ link register save eliminated. - 828 .LVL113: - 293:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** - 829 .loc 1 293 0 - 830 @ sp needed - 831 0000 7047 bx lr - 832 .cfi_endproc - 833 .LFE40: - 835 .section .text.HAL_TIM_Base_DeInit,"ax",%progbits - 836 .align 1 - 837 .global HAL_TIM_Base_DeInit - 838 .syntax unified - 839 .code 16 - 840 .thumb_func - 841 .fpu softvfp - 843 HAL_TIM_Base_DeInit: - 844 .LFB38: - 244:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** /* Check the parameters */ - 845 .loc 1 244 0 - 846 .cfi_startproc - 847 @ args = 0, pretend = 0, frame = 0 - 848 @ frame_needed = 0, uses_anonymous_args = 0 - 849 .LVL114: - 850 0000 10B5 push {r4, lr} - 851 .LCFI8: - 852 .cfi_def_cfa_offset 8 - 853 .cfi_offset 4, -8 - 854 .cfi_offset 14, -4 - 855 0002 0400 movs r4, r0 - 248:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** - 856 .loc 1 248 0 - 857 0004 3D23 movs r3, #61 - 858 0006 0222 movs r2, #2 - 859 0008 C254 strb r2, [r0, r3] - 251:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** - 860 .loc 1 251 0 - 861 000a 0368 ldr r3, [r0] - 862 000c 196A ldr r1, [r3, #32] - 863 000e 0A4A ldr r2, .L38 - 864 0010 1142 tst r1, r2 - 865 0012 07D1 bne .L37 - 251:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** - ARM GAS /tmp/cccrAAAm.s page 111 - - - 866 .loc 1 251 0 is_stmt 0 discriminator 1 - 867 0014 196A ldr r1, [r3, #32] - 868 0016 094A ldr r2, .L38+4 - 869 0018 1142 tst r1, r2 - 870 001a 03D1 bne .L37 - 251:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** - 871 .loc 1 251 0 discriminator 2 - 872 001c 1A68 ldr r2, [r3] - 873 001e 0121 movs r1, #1 - 874 0020 8A43 bics r2, r1 - 875 0022 1A60 str r2, [r3] - 876 .L37: - 254:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** - 877 .loc 1 254 0 is_stmt 1 - 878 0024 2000 movs r0, r4 - 879 .LVL115: - 880 0026 FFF7FEFF bl HAL_TIM_Base_MspDeInit - 881 .LVL116: - 257:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** - 882 .loc 1 257 0 - 883 002a 0023 movs r3, #0 - 884 002c 3D22 movs r2, #61 - 885 002e A354 strb r3, [r4, r2] - 260:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** - 886 .loc 1 260 0 - 887 0030 013A subs r2, r2, #1 - 888 0032 A354 strb r3, [r4, r2] - 263:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** - 889 .loc 1 263 0 - 890 0034 0020 movs r0, #0 - 891 @ sp needed - 892 .LVL117: - 893 0036 10BD pop {r4, pc} - 894 .L39: - 895 .align 2 - 896 .L38: - 897 0038 11110000 .word 4369 - 898 003c 44040000 .word 1092 - 899 .cfi_endproc - 900 .LFE38: - 902 .section .text.HAL_TIM_Base_Start,"ax",%progbits - 903 .align 1 - 904 .global HAL_TIM_Base_Start - 905 .syntax unified - 906 .code 16 - 907 .thumb_func - 908 .fpu softvfp - 910 HAL_TIM_Base_Start: - 911 .LFB41: - 302:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** /* Check the parameters */ - 912 .loc 1 302 0 - 913 .cfi_startproc - 914 @ args = 0, pretend = 0, frame = 0 - 915 @ frame_needed = 0, uses_anonymous_args = 0 - 916 .LVL118: - 917 0000 10B5 push {r4, lr} - 918 .LCFI9: - ARM GAS /tmp/cccrAAAm.s page 112 - - - 919 .cfi_def_cfa_offset 8 - 920 .cfi_offset 4, -8 - 921 .cfi_offset 14, -4 - 307:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** - 922 .loc 1 307 0 - 923 0002 3D22 movs r2, #61 - 924 0004 0223 movs r3, #2 - 925 0006 8354 strb r3, [r0, r2] - 310:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** - 926 .loc 1 310 0 - 927 0008 0468 ldr r4, [r0] - 928 000a 2368 ldr r3, [r4] - 929 000c 0121 movs r1, #1 - 930 000e 0B43 orrs r3, r1 - 931 0010 2360 str r3, [r4] - 313:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** - 932 .loc 1 313 0 - 933 0012 8154 strb r1, [r0, r2] - 317:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** - 934 .loc 1 317 0 - 935 0014 0020 movs r0, #0 - 936 .LVL119: - 937 @ sp needed - 938 0016 10BD pop {r4, pc} - 939 .cfi_endproc - 940 .LFE41: - 942 .section .text.HAL_TIM_Base_Stop,"ax",%progbits - 943 .align 1 - 944 .global HAL_TIM_Base_Stop - 945 .syntax unified - 946 .code 16 - 947 .thumb_func - 948 .fpu softvfp - 950 HAL_TIM_Base_Stop: - 951 .LFB42: - 325:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** /* Check the parameters */ - 952 .loc 1 325 0 - 953 .cfi_startproc - 954 @ args = 0, pretend = 0, frame = 0 - 955 @ frame_needed = 0, uses_anonymous_args = 0 - 956 @ link register save eliminated. - 957 .LVL120: - 330:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** - 958 .loc 1 330 0 - 959 0000 3D23 movs r3, #61 - 960 0002 0222 movs r2, #2 - 961 0004 C254 strb r2, [r0, r3] - 333:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** - 962 .loc 1 333 0 - 963 0006 0368 ldr r3, [r0] - 964 0008 196A ldr r1, [r3, #32] - 965 000a 084A ldr r2, .L43 - 966 000c 1142 tst r1, r2 - 967 000e 07D1 bne .L42 - 333:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** - 968 .loc 1 333 0 is_stmt 0 discriminator 1 - 969 0010 196A ldr r1, [r3, #32] - ARM GAS /tmp/cccrAAAm.s page 113 - - - 970 0012 074A ldr r2, .L43+4 - 971 0014 1142 tst r1, r2 - 972 0016 03D1 bne .L42 - 333:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** - 973 .loc 1 333 0 discriminator 2 - 974 0018 1A68 ldr r2, [r3] - 975 001a 0121 movs r1, #1 - 976 001c 8A43 bics r2, r1 - 977 001e 1A60 str r2, [r3] - 978 .L42: - 336:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** - 979 .loc 1 336 0 is_stmt 1 - 980 0020 3D23 movs r3, #61 - 981 0022 0122 movs r2, #1 - 982 0024 C254 strb r2, [r0, r3] - 340:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** - 983 .loc 1 340 0 - 984 0026 0020 movs r0, #0 - 985 .LVL121: - 986 @ sp needed - 987 0028 7047 bx lr - 988 .L44: - 989 002a C046 .align 2 - 990 .L43: - 991 002c 11110000 .word 4369 - 992 0030 44040000 .word 1092 - 993 .cfi_endproc - 994 .LFE42: - 996 .section .text.HAL_TIM_Base_Start_IT,"ax",%progbits - 997 .align 1 - 998 .global HAL_TIM_Base_Start_IT - 999 .syntax unified - 1000 .code 16 - 1001 .thumb_func - 1002 .fpu softvfp - 1004 HAL_TIM_Base_Start_IT: - 1005 .LFB43: - 348:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** /* Check the parameters */ - 1006 .loc 1 348 0 - 1007 .cfi_startproc - 1008 @ args = 0, pretend = 0, frame = 0 - 1009 @ frame_needed = 0, uses_anonymous_args = 0 - 1010 @ link register save eliminated. - 1011 .LVL122: - 353:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** - 1012 .loc 1 353 0 - 1013 0000 0368 ldr r3, [r0] - 1014 0002 DA68 ldr r2, [r3, #12] - 1015 0004 0121 movs r1, #1 - 1016 0006 0A43 orrs r2, r1 - 1017 0008 DA60 str r2, [r3, #12] - 356:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** - 1018 .loc 1 356 0 - 1019 000a 0268 ldr r2, [r0] - 1020 000c 1368 ldr r3, [r2] - 1021 000e 0B43 orrs r3, r1 - 1022 0010 1360 str r3, [r2] - ARM GAS /tmp/cccrAAAm.s page 114 - - - 360:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** - 1023 .loc 1 360 0 - 1024 0012 0020 movs r0, #0 - 1025 .LVL123: - 1026 @ sp needed - 1027 0014 7047 bx lr - 1028 .cfi_endproc - 1029 .LFE43: - 1031 .section .text.HAL_TIM_Base_Stop_IT,"ax",%progbits - 1032 .align 1 - 1033 .global HAL_TIM_Base_Stop_IT - 1034 .syntax unified - 1035 .code 16 - 1036 .thumb_func - 1037 .fpu softvfp - 1039 HAL_TIM_Base_Stop_IT: - 1040 .LFB44: - 368:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** /* Check the parameters */ - 1041 .loc 1 368 0 - 1042 .cfi_startproc - 1043 @ args = 0, pretend = 0, frame = 0 - 1044 @ frame_needed = 0, uses_anonymous_args = 0 - 1045 @ link register save eliminated. - 1046 .LVL124: - 372:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** - 1047 .loc 1 372 0 - 1048 0000 0268 ldr r2, [r0] - 1049 0002 D368 ldr r3, [r2, #12] - 1050 0004 0121 movs r1, #1 - 1051 0006 8B43 bics r3, r1 - 1052 0008 D360 str r3, [r2, #12] - 375:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** - 1053 .loc 1 375 0 - 1054 000a 0368 ldr r3, [r0] - 1055 000c 196A ldr r1, [r3, #32] - 1056 000e 064A ldr r2, .L48 - 1057 0010 1142 tst r1, r2 - 1058 0012 07D1 bne .L47 - 375:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** - 1059 .loc 1 375 0 is_stmt 0 discriminator 1 - 1060 0014 196A ldr r1, [r3, #32] - 1061 0016 054A ldr r2, .L48+4 - 1062 0018 1142 tst r1, r2 - 1063 001a 03D1 bne .L47 - 375:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** - 1064 .loc 1 375 0 discriminator 2 - 1065 001c 1A68 ldr r2, [r3] - 1066 001e 0121 movs r1, #1 - 1067 0020 8A43 bics r2, r1 - 1068 0022 1A60 str r2, [r3] - 1069 .L47: - 379:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** - 1070 .loc 1 379 0 is_stmt 1 - 1071 0024 0020 movs r0, #0 - 1072 .LVL125: - 1073 @ sp needed - 1074 0026 7047 bx lr - ARM GAS /tmp/cccrAAAm.s page 115 - - - 1075 .L49: - 1076 .align 2 - 1077 .L48: - 1078 0028 11110000 .word 4369 - 1079 002c 44040000 .word 1092 - 1080 .cfi_endproc - 1081 .LFE44: - 1083 .section .text.HAL_TIM_Base_Start_DMA,"ax",%progbits - 1084 .align 1 - 1085 .global HAL_TIM_Base_Start_DMA - 1086 .syntax unified - 1087 .code 16 - 1088 .thumb_func - 1089 .fpu softvfp - 1091 HAL_TIM_Base_Start_DMA: - 1092 .LFB45: - 389:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** /* Check the parameters */ - 1093 .loc 1 389 0 - 1094 .cfi_startproc - 1095 @ args = 0, pretend = 0, frame = 0 - 1096 @ frame_needed = 0, uses_anonymous_args = 0 - 1097 .LVL126: - 1098 0000 10B5 push {r4, lr} - 1099 .LCFI10: - 1100 .cfi_def_cfa_offset 8 - 1101 .cfi_offset 4, -8 - 1102 .cfi_offset 14, -4 - 1103 0002 0400 movs r4, r0 - 1104 0004 1300 movs r3, r2 - 393:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** { - 1105 .loc 1 393 0 - 1106 0006 3D20 movs r0, #61 - 1107 .LVL127: - 1108 0008 205C ldrb r0, [r4, r0] - 1109 000a 0228 cmp r0, #2 - 1110 000c 24D0 beq .L54 - 397:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** { - 1111 .loc 1 397 0 - 1112 000e 3D22 movs r2, #61 - 1113 .LVL128: - 1114 0010 A25C ldrb r2, [r4, r2] - 1115 0012 012A cmp r2, #1 - 1116 0014 04D1 bne .L52 - 399:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** { - 1117 .loc 1 399 0 - 1118 0016 0029 cmp r1, #0 - 1119 0018 1AD0 beq .L56 - 1120 .L53: - 405:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** } - 1121 .loc 1 405 0 - 1122 001a 3D22 movs r2, #61 - 1123 001c 0220 movs r0, #2 - 1124 001e A054 strb r0, [r4, r2] - 1125 .L52: - 409:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** - 1126 .loc 1 409 0 - 1127 0020 226A ldr r2, [r4, #32] - ARM GAS /tmp/cccrAAAm.s page 116 - - - 1128 0022 0E48 ldr r0, .L57 - 1129 0024 9062 str r0, [r2, #40] - 412:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** - 1130 .loc 1 412 0 - 1131 0026 226A ldr r2, [r4, #32] - 1132 0028 0D48 ldr r0, .L57+4 - 1133 002a 1063 str r0, [r2, #48] - 415:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** - 1134 .loc 1 415 0 - 1135 002c 2268 ldr r2, [r4] - 1136 002e 2C32 adds r2, r2, #44 - 1137 0030 206A ldr r0, [r4, #32] - 1138 0032 FFF7FEFF bl HAL_DMA_Start_IT - 1139 .LVL129: - 418:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** - 1140 .loc 1 418 0 - 1141 0036 2268 ldr r2, [r4] - 1142 0038 D168 ldr r1, [r2, #12] - 1143 003a 8023 movs r3, #128 - 1144 003c 5B00 lsls r3, r3, #1 - 1145 003e 0B43 orrs r3, r1 - 1146 0040 D360 str r3, [r2, #12] - 421:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** - 1147 .loc 1 421 0 - 1148 0042 2268 ldr r2, [r4] - 1149 0044 1368 ldr r3, [r2] - 1150 0046 0121 movs r1, #1 - 1151 0048 0B43 orrs r3, r1 - 1152 004a 1360 str r3, [r2] - 424:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** } - 1153 .loc 1 424 0 - 1154 004c 0020 movs r0, #0 - 1155 .L51: - 425:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** - 1156 .loc 1 425 0 - 1157 @ sp needed - 1158 .LVL130: - 1159 004e 10BD pop {r4, pc} - 1160 .LVL131: - 1161 .L56: - 399:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** { - 1162 .loc 1 399 0 discriminator 1 - 1163 0050 002B cmp r3, #0 - 1164 0052 E2D0 beq .L53 - 401:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** } - 1165 .loc 1 401 0 - 1166 0054 0120 movs r0, #1 - 1167 0056 FAE7 b .L51 - 1168 .LVL132: - 1169 .L54: - 395:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** } - 1170 .loc 1 395 0 - 1171 0058 0220 movs r0, #2 - 1172 005a F8E7 b .L51 - 1173 .L58: - 1174 .align 2 - 1175 .L57: - ARM GAS /tmp/cccrAAAm.s page 117 - - - 1176 005c 00000000 .word TIM_DMAPeriodElapsedCplt - 1177 0060 00000000 .word TIM_DMAError - 1178 .cfi_endproc - 1179 .LFE45: - 1181 .section .text.HAL_TIM_Base_Stop_DMA,"ax",%progbits - 1182 .align 1 - 1183 .global HAL_TIM_Base_Stop_DMA - 1184 .syntax unified - 1185 .code 16 - 1186 .thumb_func - 1187 .fpu softvfp - 1189 HAL_TIM_Base_Stop_DMA: - 1190 .LFB46: - 433:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** /* Check the parameters */ - 1191 .loc 1 433 0 - 1192 .cfi_startproc - 1193 @ args = 0, pretend = 0, frame = 0 - 1194 @ frame_needed = 0, uses_anonymous_args = 0 - 1195 @ link register save eliminated. - 1196 .LVL133: - 438:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** - 1197 .loc 1 438 0 - 1198 0000 0268 ldr r2, [r0] - 1199 0002 D368 ldr r3, [r2, #12] - 1200 0004 0A49 ldr r1, .L61 - 1201 0006 0B40 ands r3, r1 - 1202 0008 D360 str r3, [r2, #12] - 441:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** - 1203 .loc 1 441 0 - 1204 000a 0368 ldr r3, [r0] - 1205 000c 196A ldr r1, [r3, #32] - 1206 000e 094A ldr r2, .L61+4 - 1207 0010 1142 tst r1, r2 - 1208 0012 07D1 bne .L60 - 441:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** - 1209 .loc 1 441 0 is_stmt 0 discriminator 1 - 1210 0014 196A ldr r1, [r3, #32] - 1211 0016 084A ldr r2, .L61+8 - 1212 0018 1142 tst r1, r2 - 1213 001a 03D1 bne .L60 - 441:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** - 1214 .loc 1 441 0 discriminator 2 - 1215 001c 1A68 ldr r2, [r3] - 1216 001e 0121 movs r1, #1 - 1217 0020 8A43 bics r2, r1 - 1218 0022 1A60 str r2, [r3] - 1219 .L60: - 444:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** - 1220 .loc 1 444 0 is_stmt 1 - 1221 0024 3D23 movs r3, #61 - 1222 0026 0122 movs r2, #1 - 1223 0028 C254 strb r2, [r0, r3] - 448:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** - 1224 .loc 1 448 0 - 1225 002a 0020 movs r0, #0 - 1226 .LVL134: - 1227 @ sp needed - ARM GAS /tmp/cccrAAAm.s page 118 - - - 1228 002c 7047 bx lr - 1229 .L62: - 1230 002e C046 .align 2 - 1231 .L61: - 1232 0030 FFFEFFFF .word -257 - 1233 0034 11110000 .word 4369 - 1234 0038 44040000 .word 1092 - 1235 .cfi_endproc - 1236 .LFE46: - 1238 .section .text.HAL_TIM_OC_MspInit,"ax",%progbits - 1239 .align 1 - 1240 .weak HAL_TIM_OC_MspInit - 1241 .syntax unified - 1242 .code 16 - 1243 .thumb_func - 1244 .fpu softvfp - 1246 HAL_TIM_OC_MspInit: - 1247 .LFB49: - 549:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** /* Prevent unused argument(s) compilation warning */ - 1248 .loc 1 549 0 - 1249 .cfi_startproc - 1250 @ args = 0, pretend = 0, frame = 0 - 1251 @ frame_needed = 0, uses_anonymous_args = 0 - 1252 @ link register save eliminated. - 1253 .LVL135: - 556:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** - 1254 .loc 1 556 0 - 1255 @ sp needed - 1256 0000 7047 bx lr - 1257 .cfi_endproc - 1258 .LFE49: - 1260 .section .text.HAL_TIM_OC_MspDeInit,"ax",%progbits - 1261 .align 1 - 1262 .weak HAL_TIM_OC_MspDeInit - 1263 .syntax unified - 1264 .code 16 - 1265 .thumb_func - 1266 .fpu softvfp - 1268 HAL_TIM_OC_MspDeInit: - 1269 .LFB50: - 564:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** /* Prevent unused argument(s) compilation warning */ - 1270 .loc 1 564 0 - 1271 .cfi_startproc - 1272 @ args = 0, pretend = 0, frame = 0 - 1273 @ frame_needed = 0, uses_anonymous_args = 0 - 1274 @ link register save eliminated. - 1275 .LVL136: - 571:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** - 1276 .loc 1 571 0 - 1277 @ sp needed - 1278 0000 7047 bx lr - 1279 .cfi_endproc - 1280 .LFE50: - 1282 .section .text.HAL_TIM_OC_DeInit,"ax",%progbits - 1283 .align 1 - 1284 .global HAL_TIM_OC_DeInit - 1285 .syntax unified - ARM GAS /tmp/cccrAAAm.s page 119 - - - 1286 .code 16 - 1287 .thumb_func - 1288 .fpu softvfp - 1290 HAL_TIM_OC_DeInit: - 1291 .LFB48: - 522:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** /* Check the parameters */ - 1292 .loc 1 522 0 - 1293 .cfi_startproc - 1294 @ args = 0, pretend = 0, frame = 0 - 1295 @ frame_needed = 0, uses_anonymous_args = 0 - 1296 .LVL137: - 1297 0000 10B5 push {r4, lr} - 1298 .LCFI11: - 1299 .cfi_def_cfa_offset 8 - 1300 .cfi_offset 4, -8 - 1301 .cfi_offset 14, -4 - 1302 0002 0400 movs r4, r0 - 526:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** - 1303 .loc 1 526 0 - 1304 0004 3D23 movs r3, #61 - 1305 0006 0222 movs r2, #2 - 1306 0008 C254 strb r2, [r0, r3] - 529:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** - 1307 .loc 1 529 0 - 1308 000a 0368 ldr r3, [r0] - 1309 000c 196A ldr r1, [r3, #32] - 1310 000e 0A4A ldr r2, .L67 - 1311 0010 1142 tst r1, r2 - 1312 0012 07D1 bne .L66 - 529:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** - 1313 .loc 1 529 0 is_stmt 0 discriminator 1 - 1314 0014 196A ldr r1, [r3, #32] - 1315 0016 094A ldr r2, .L67+4 - 1316 0018 1142 tst r1, r2 - 1317 001a 03D1 bne .L66 - 529:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** - 1318 .loc 1 529 0 discriminator 2 - 1319 001c 1A68 ldr r2, [r3] - 1320 001e 0121 movs r1, #1 - 1321 0020 8A43 bics r2, r1 - 1322 0022 1A60 str r2, [r3] - 1323 .L66: - 532:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** - 1324 .loc 1 532 0 is_stmt 1 - 1325 0024 2000 movs r0, r4 - 1326 .LVL138: - 1327 0026 FFF7FEFF bl HAL_TIM_OC_MspDeInit - 1328 .LVL139: - 535:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** - 1329 .loc 1 535 0 - 1330 002a 0023 movs r3, #0 - 1331 002c 3D22 movs r2, #61 - 1332 002e A354 strb r3, [r4, r2] - 538:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** - 1333 .loc 1 538 0 - 1334 0030 013A subs r2, r2, #1 - 1335 0032 A354 strb r3, [r4, r2] - ARM GAS /tmp/cccrAAAm.s page 120 - - - 541:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** - 1336 .loc 1 541 0 - 1337 0034 0020 movs r0, #0 - 1338 @ sp needed - 1339 .LVL140: - 1340 0036 10BD pop {r4, pc} - 1341 .L68: - 1342 .align 2 - 1343 .L67: - 1344 0038 11110000 .word 4369 - 1345 003c 44040000 .word 1092 - 1346 .cfi_endproc - 1347 .LFE48: - 1349 .section .text.HAL_TIM_PWM_MspInit,"ax",%progbits - 1350 .align 1 - 1351 .weak HAL_TIM_PWM_MspInit - 1352 .syntax unified - 1353 .code 16 - 1354 .thumb_func - 1355 .fpu softvfp - 1357 HAL_TIM_PWM_MspInit: - 1358 .LFB59: -1056:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** /* Prevent unused argument(s) compilation warning */ - 1359 .loc 1 1056 0 - 1360 .cfi_startproc - 1361 @ args = 0, pretend = 0, frame = 0 - 1362 @ frame_needed = 0, uses_anonymous_args = 0 - 1363 @ link register save eliminated. - 1364 .LVL141: -1063:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** - 1365 .loc 1 1063 0 - 1366 @ sp needed - 1367 0000 7047 bx lr - 1368 .cfi_endproc - 1369 .LFE59: - 1371 .section .text.HAL_TIM_PWM_MspDeInit,"ax",%progbits - 1372 .align 1 - 1373 .weak HAL_TIM_PWM_MspDeInit - 1374 .syntax unified - 1375 .code 16 - 1376 .thumb_func - 1377 .fpu softvfp - 1379 HAL_TIM_PWM_MspDeInit: - 1380 .LFB60: -1071:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** /* Prevent unused argument(s) compilation warning */ - 1381 .loc 1 1071 0 - 1382 .cfi_startproc - 1383 @ args = 0, pretend = 0, frame = 0 - 1384 @ frame_needed = 0, uses_anonymous_args = 0 - 1385 @ link register save eliminated. - 1386 .LVL142: -1078:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** - 1387 .loc 1 1078 0 - 1388 @ sp needed - 1389 0000 7047 bx lr - 1390 .cfi_endproc - 1391 .LFE60: - ARM GAS /tmp/cccrAAAm.s page 121 - - - 1393 .section .text.HAL_TIM_PWM_DeInit,"ax",%progbits - 1394 .align 1 - 1395 .global HAL_TIM_PWM_DeInit - 1396 .syntax unified - 1397 .code 16 - 1398 .thumb_func - 1399 .fpu softvfp - 1401 HAL_TIM_PWM_DeInit: - 1402 .LFB58: -1029:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** /* Check the parameters */ - 1403 .loc 1 1029 0 - 1404 .cfi_startproc - 1405 @ args = 0, pretend = 0, frame = 0 - 1406 @ frame_needed = 0, uses_anonymous_args = 0 - 1407 .LVL143: - 1408 0000 10B5 push {r4, lr} - 1409 .LCFI12: - 1410 .cfi_def_cfa_offset 8 - 1411 .cfi_offset 4, -8 - 1412 .cfi_offset 14, -4 - 1413 0002 0400 movs r4, r0 -1033:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** - 1414 .loc 1 1033 0 - 1415 0004 3D23 movs r3, #61 - 1416 0006 0222 movs r2, #2 - 1417 0008 C254 strb r2, [r0, r3] -1036:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** - 1418 .loc 1 1036 0 - 1419 000a 0368 ldr r3, [r0] - 1420 000c 196A ldr r1, [r3, #32] - 1421 000e 0A4A ldr r2, .L73 - 1422 0010 1142 tst r1, r2 - 1423 0012 07D1 bne .L72 -1036:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** - 1424 .loc 1 1036 0 is_stmt 0 discriminator 1 - 1425 0014 196A ldr r1, [r3, #32] - 1426 0016 094A ldr r2, .L73+4 - 1427 0018 1142 tst r1, r2 - 1428 001a 03D1 bne .L72 -1036:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** - 1429 .loc 1 1036 0 discriminator 2 - 1430 001c 1A68 ldr r2, [r3] - 1431 001e 0121 movs r1, #1 - 1432 0020 8A43 bics r2, r1 - 1433 0022 1A60 str r2, [r3] - 1434 .L72: -1039:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** - 1435 .loc 1 1039 0 is_stmt 1 - 1436 0024 2000 movs r0, r4 - 1437 .LVL144: - 1438 0026 FFF7FEFF bl HAL_TIM_PWM_MspDeInit - 1439 .LVL145: -1042:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** - 1440 .loc 1 1042 0 - 1441 002a 0023 movs r3, #0 - 1442 002c 3D22 movs r2, #61 - 1443 002e A354 strb r3, [r4, r2] - ARM GAS /tmp/cccrAAAm.s page 122 - - -1045:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** - 1444 .loc 1 1045 0 - 1445 0030 013A subs r2, r2, #1 - 1446 0032 A354 strb r3, [r4, r2] -1048:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** - 1447 .loc 1 1048 0 - 1448 0034 0020 movs r0, #0 - 1449 @ sp needed - 1450 .LVL146: - 1451 0036 10BD pop {r4, pc} - 1452 .L74: - 1453 .align 2 - 1454 .L73: - 1455 0038 11110000 .word 4369 - 1456 003c 44040000 .word 1092 - 1457 .cfi_endproc - 1458 .LFE58: - 1460 .section .text.HAL_TIM_IC_MspInit,"ax",%progbits - 1461 .align 1 - 1462 .weak HAL_TIM_IC_MspInit - 1463 .syntax unified - 1464 .code 16 - 1465 .thumb_func - 1466 .fpu softvfp - 1468 HAL_TIM_IC_MspInit: - 1469 .LFB69: -1566:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** /* Prevent unused argument(s) compilation warning */ - 1470 .loc 1 1566 0 - 1471 .cfi_startproc - 1472 @ args = 0, pretend = 0, frame = 0 - 1473 @ frame_needed = 0, uses_anonymous_args = 0 - 1474 @ link register save eliminated. - 1475 .LVL147: -1573:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** - 1476 .loc 1 1573 0 - 1477 @ sp needed - 1478 0000 7047 bx lr - 1479 .cfi_endproc - 1480 .LFE69: - 1482 .section .text.HAL_TIM_IC_MspDeInit,"ax",%progbits - 1483 .align 1 - 1484 .weak HAL_TIM_IC_MspDeInit - 1485 .syntax unified - 1486 .code 16 - 1487 .thumb_func - 1488 .fpu softvfp - 1490 HAL_TIM_IC_MspDeInit: - 1491 .LFB70: -1581:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** /* Prevent unused argument(s) compilation warning */ - 1492 .loc 1 1581 0 - 1493 .cfi_startproc - 1494 @ args = 0, pretend = 0, frame = 0 - 1495 @ frame_needed = 0, uses_anonymous_args = 0 - 1496 @ link register save eliminated. - 1497 .LVL148: -1588:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** - 1498 .loc 1 1588 0 - ARM GAS /tmp/cccrAAAm.s page 123 - - - 1499 @ sp needed - 1500 0000 7047 bx lr - 1501 .cfi_endproc - 1502 .LFE70: - 1504 .section .text.HAL_TIM_IC_DeInit,"ax",%progbits - 1505 .align 1 - 1506 .global HAL_TIM_IC_DeInit - 1507 .syntax unified - 1508 .code 16 - 1509 .thumb_func - 1510 .fpu softvfp - 1512 HAL_TIM_IC_DeInit: - 1513 .LFB68: -1539:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** /* Check the parameters */ - 1514 .loc 1 1539 0 - 1515 .cfi_startproc - 1516 @ args = 0, pretend = 0, frame = 0 - 1517 @ frame_needed = 0, uses_anonymous_args = 0 - 1518 .LVL149: - 1519 0000 10B5 push {r4, lr} - 1520 .LCFI13: - 1521 .cfi_def_cfa_offset 8 - 1522 .cfi_offset 4, -8 - 1523 .cfi_offset 14, -4 - 1524 0002 0400 movs r4, r0 -1543:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** - 1525 .loc 1 1543 0 - 1526 0004 3D23 movs r3, #61 - 1527 0006 0222 movs r2, #2 - 1528 0008 C254 strb r2, [r0, r3] -1546:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** - 1529 .loc 1 1546 0 - 1530 000a 0368 ldr r3, [r0] - 1531 000c 196A ldr r1, [r3, #32] - 1532 000e 0A4A ldr r2, .L79 - 1533 0010 1142 tst r1, r2 - 1534 0012 07D1 bne .L78 -1546:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** - 1535 .loc 1 1546 0 is_stmt 0 discriminator 1 - 1536 0014 196A ldr r1, [r3, #32] - 1537 0016 094A ldr r2, .L79+4 - 1538 0018 1142 tst r1, r2 - 1539 001a 03D1 bne .L78 -1546:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** - 1540 .loc 1 1546 0 discriminator 2 - 1541 001c 1A68 ldr r2, [r3] - 1542 001e 0121 movs r1, #1 - 1543 0020 8A43 bics r2, r1 - 1544 0022 1A60 str r2, [r3] - 1545 .L78: -1549:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** - 1546 .loc 1 1549 0 is_stmt 1 - 1547 0024 2000 movs r0, r4 - 1548 .LVL150: - 1549 0026 FFF7FEFF bl HAL_TIM_IC_MspDeInit - 1550 .LVL151: -1552:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** - ARM GAS /tmp/cccrAAAm.s page 124 - - - 1551 .loc 1 1552 0 - 1552 002a 0023 movs r3, #0 - 1553 002c 3D22 movs r2, #61 - 1554 002e A354 strb r3, [r4, r2] -1555:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** - 1555 .loc 1 1555 0 - 1556 0030 013A subs r2, r2, #1 - 1557 0032 A354 strb r3, [r4, r2] -1558:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** - 1558 .loc 1 1558 0 - 1559 0034 0020 movs r0, #0 - 1560 @ sp needed - 1561 .LVL152: - 1562 0036 10BD pop {r4, pc} - 1563 .L80: - 1564 .align 2 - 1565 .L79: - 1566 0038 11110000 .word 4369 - 1567 003c 44040000 .word 1092 - 1568 .cfi_endproc - 1569 .LFE68: - 1571 .section .text.HAL_TIM_OnePulse_MspInit,"ax",%progbits - 1572 .align 1 - 1573 .weak HAL_TIM_OnePulse_MspInit - 1574 .syntax unified - 1575 .code 16 - 1576 .thumb_func - 1577 .fpu softvfp - 1579 HAL_TIM_OnePulse_MspInit: - 1580 .LFB79: -2049:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** /* Prevent unused argument(s) compilation warning */ - 1581 .loc 1 2049 0 - 1582 .cfi_startproc - 1583 @ args = 0, pretend = 0, frame = 0 - 1584 @ frame_needed = 0, uses_anonymous_args = 0 - 1585 @ link register save eliminated. - 1586 .LVL153: -2056:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** - 1587 .loc 1 2056 0 - 1588 @ sp needed - 1589 0000 7047 bx lr - 1590 .cfi_endproc - 1591 .LFE79: - 1593 .section .text.HAL_TIM_OnePulse_MspDeInit,"ax",%progbits - 1594 .align 1 - 1595 .weak HAL_TIM_OnePulse_MspDeInit - 1596 .syntax unified - 1597 .code 16 - 1598 .thumb_func - 1599 .fpu softvfp - 1601 HAL_TIM_OnePulse_MspDeInit: - 1602 .LFB80: -2064:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** /* Prevent unused argument(s) compilation warning */ - 1603 .loc 1 2064 0 - 1604 .cfi_startproc - 1605 @ args = 0, pretend = 0, frame = 0 - 1606 @ frame_needed = 0, uses_anonymous_args = 0 - ARM GAS /tmp/cccrAAAm.s page 125 - - - 1607 @ link register save eliminated. - 1608 .LVL154: -2071:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** - 1609 .loc 1 2071 0 - 1610 @ sp needed - 1611 0000 7047 bx lr - 1612 .cfi_endproc - 1613 .LFE80: - 1615 .section .text.HAL_TIM_OnePulse_DeInit,"ax",%progbits - 1616 .align 1 - 1617 .global HAL_TIM_OnePulse_DeInit - 1618 .syntax unified - 1619 .code 16 - 1620 .thumb_func - 1621 .fpu softvfp - 1623 HAL_TIM_OnePulse_DeInit: - 1624 .LFB78: -2022:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** /* Check the parameters */ - 1625 .loc 1 2022 0 - 1626 .cfi_startproc - 1627 @ args = 0, pretend = 0, frame = 0 - 1628 @ frame_needed = 0, uses_anonymous_args = 0 - 1629 .LVL155: - 1630 0000 10B5 push {r4, lr} - 1631 .LCFI14: - 1632 .cfi_def_cfa_offset 8 - 1633 .cfi_offset 4, -8 - 1634 .cfi_offset 14, -4 - 1635 0002 0400 movs r4, r0 -2026:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** - 1636 .loc 1 2026 0 - 1637 0004 3D23 movs r3, #61 - 1638 0006 0222 movs r2, #2 - 1639 0008 C254 strb r2, [r0, r3] -2029:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** - 1640 .loc 1 2029 0 - 1641 000a 0368 ldr r3, [r0] - 1642 000c 196A ldr r1, [r3, #32] - 1643 000e 0A4A ldr r2, .L85 - 1644 0010 1142 tst r1, r2 - 1645 0012 07D1 bne .L84 -2029:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** - 1646 .loc 1 2029 0 is_stmt 0 discriminator 1 - 1647 0014 196A ldr r1, [r3, #32] - 1648 0016 094A ldr r2, .L85+4 - 1649 0018 1142 tst r1, r2 - 1650 001a 03D1 bne .L84 -2029:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** - 1651 .loc 1 2029 0 discriminator 2 - 1652 001c 1A68 ldr r2, [r3] - 1653 001e 0121 movs r1, #1 - 1654 0020 8A43 bics r2, r1 - 1655 0022 1A60 str r2, [r3] - 1656 .L84: -2032:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** - 1657 .loc 1 2032 0 is_stmt 1 - 1658 0024 2000 movs r0, r4 - ARM GAS /tmp/cccrAAAm.s page 126 - - - 1659 .LVL156: - 1660 0026 FFF7FEFF bl HAL_TIM_OnePulse_MspDeInit - 1661 .LVL157: -2035:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** - 1662 .loc 1 2035 0 - 1663 002a 0023 movs r3, #0 - 1664 002c 3D22 movs r2, #61 - 1665 002e A354 strb r3, [r4, r2] -2038:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** - 1666 .loc 1 2038 0 - 1667 0030 013A subs r2, r2, #1 - 1668 0032 A354 strb r3, [r4, r2] -2041:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** - 1669 .loc 1 2041 0 - 1670 0034 0020 movs r0, #0 - 1671 @ sp needed - 1672 .LVL158: - 1673 0036 10BD pop {r4, pc} - 1674 .L86: - 1675 .align 2 - 1676 .L85: - 1677 0038 11110000 .word 4369 - 1678 003c 44040000 .word 1092 - 1679 .cfi_endproc - 1680 .LFE78: - 1682 .section .text.HAL_TIM_Encoder_MspInit,"ax",%progbits - 1683 .align 1 - 1684 .weak HAL_TIM_Encoder_MspInit - 1685 .syntax unified - 1686 .code 16 - 1687 .thumb_func - 1688 .fpu softvfp - 1690 HAL_TIM_Encoder_MspInit: - 1691 .LFB87: -2368:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** /* Prevent unused argument(s) compilation warning */ - 1692 .loc 1 2368 0 - 1693 .cfi_startproc - 1694 @ args = 0, pretend = 0, frame = 0 - 1695 @ frame_needed = 0, uses_anonymous_args = 0 - 1696 @ link register save eliminated. - 1697 .LVL159: -2375:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** - 1698 .loc 1 2375 0 - 1699 @ sp needed - 1700 0000 7047 bx lr - 1701 .cfi_endproc - 1702 .LFE87: - 1704 .section .text.HAL_TIM_Encoder_MspDeInit,"ax",%progbits - 1705 .align 1 - 1706 .weak HAL_TIM_Encoder_MspDeInit - 1707 .syntax unified - 1708 .code 16 - 1709 .thumb_func - 1710 .fpu softvfp - 1712 HAL_TIM_Encoder_MspDeInit: - 1713 .LFB88: -2383:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** /* Prevent unused argument(s) compilation warning */ - ARM GAS /tmp/cccrAAAm.s page 127 - - - 1714 .loc 1 2383 0 - 1715 .cfi_startproc - 1716 @ args = 0, pretend = 0, frame = 0 - 1717 @ frame_needed = 0, uses_anonymous_args = 0 - 1718 @ link register save eliminated. - 1719 .LVL160: -2390:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** - 1720 .loc 1 2390 0 - 1721 @ sp needed - 1722 0000 7047 bx lr - 1723 .cfi_endproc - 1724 .LFE88: - 1726 .section .text.HAL_TIM_Encoder_DeInit,"ax",%progbits - 1727 .align 1 - 1728 .global HAL_TIM_Encoder_DeInit - 1729 .syntax unified - 1730 .code 16 - 1731 .thumb_func - 1732 .fpu softvfp - 1734 HAL_TIM_Encoder_DeInit: - 1735 .LFB86: -2341:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** /* Check the parameters */ - 1736 .loc 1 2341 0 - 1737 .cfi_startproc - 1738 @ args = 0, pretend = 0, frame = 0 - 1739 @ frame_needed = 0, uses_anonymous_args = 0 - 1740 .LVL161: - 1741 0000 10B5 push {r4, lr} - 1742 .LCFI15: - 1743 .cfi_def_cfa_offset 8 - 1744 .cfi_offset 4, -8 - 1745 .cfi_offset 14, -4 - 1746 0002 0400 movs r4, r0 -2345:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** - 1747 .loc 1 2345 0 - 1748 0004 3D23 movs r3, #61 - 1749 0006 0222 movs r2, #2 - 1750 0008 C254 strb r2, [r0, r3] -2348:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** - 1751 .loc 1 2348 0 - 1752 000a 0368 ldr r3, [r0] - 1753 000c 196A ldr r1, [r3, #32] - 1754 000e 0A4A ldr r2, .L91 - 1755 0010 1142 tst r1, r2 - 1756 0012 07D1 bne .L90 -2348:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** - 1757 .loc 1 2348 0 is_stmt 0 discriminator 1 - 1758 0014 196A ldr r1, [r3, #32] - 1759 0016 094A ldr r2, .L91+4 - 1760 0018 1142 tst r1, r2 - 1761 001a 03D1 bne .L90 -2348:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** - 1762 .loc 1 2348 0 discriminator 2 - 1763 001c 1A68 ldr r2, [r3] - 1764 001e 0121 movs r1, #1 - 1765 0020 8A43 bics r2, r1 - 1766 0022 1A60 str r2, [r3] - ARM GAS /tmp/cccrAAAm.s page 128 - - - 1767 .L90: -2351:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** - 1768 .loc 1 2351 0 is_stmt 1 - 1769 0024 2000 movs r0, r4 - 1770 .LVL162: - 1771 0026 FFF7FEFF bl HAL_TIM_Encoder_MspDeInit - 1772 .LVL163: -2354:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** - 1773 .loc 1 2354 0 - 1774 002a 0023 movs r3, #0 - 1775 002c 3D22 movs r2, #61 - 1776 002e A354 strb r3, [r4, r2] -2357:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** - 1777 .loc 1 2357 0 - 1778 0030 013A subs r2, r2, #1 - 1779 0032 A354 strb r3, [r4, r2] -2360:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** - 1780 .loc 1 2360 0 - 1781 0034 0020 movs r0, #0 - 1782 @ sp needed - 1783 .LVL164: - 1784 0036 10BD pop {r4, pc} - 1785 .L92: - 1786 .align 2 - 1787 .L91: - 1788 0038 11110000 .word 4369 - 1789 003c 44040000 .word 1092 - 1790 .cfi_endproc - 1791 .LFE86: - 1793 .section .text.HAL_TIM_DMABurst_MultiWriteStart,"ax",%progbits - 1794 .align 1 - 1795 .global HAL_TIM_DMABurst_MultiWriteStart - 1796 .syntax unified - 1797 .code 16 - 1798 .thumb_func - 1799 .fpu softvfp - 1801 HAL_TIM_DMABurst_MultiWriteStart: - 1802 .LFB101: -3381:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** /* Check the parameters */ - 1803 .loc 1 3381 0 - 1804 .cfi_startproc - 1805 @ args = 8, pretend = 0, frame = 0 - 1806 @ frame_needed = 0, uses_anonymous_args = 0 - 1807 .LVL165: - 1808 0000 70B5 push {r4, r5, r6, lr} - 1809 .LCFI16: - 1810 .cfi_def_cfa_offset 16 - 1811 .cfi_offset 4, -16 - 1812 .cfi_offset 5, -12 - 1813 .cfi_offset 6, -8 - 1814 .cfi_offset 14, -4 - 1815 0002 0400 movs r4, r0 - 1816 0004 0E00 movs r6, r1 - 1817 0006 1500 movs r5, r2 - 1818 0008 1900 movs r1, r3 - 1819 .LVL166: -3389:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** { - ARM GAS /tmp/cccrAAAm.s page 129 - - - 1820 .loc 1 3389 0 - 1821 000a 3D23 movs r3, #61 - 1822 .LVL167: - 1823 000c C35C ldrb r3, [r0, r3] - 1824 000e 022B cmp r3, #2 - 1825 0010 00D1 bne .LCB1505 - 1826 0012 92E0 b .L106 @long jump - 1827 .LCB1505: -3393:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** { - 1828 .loc 1 3393 0 - 1829 0014 3D23 movs r3, #61 - 1830 0016 C35C ldrb r3, [r0, r3] - 1831 0018 012B cmp r3, #1 - 1832 001a 29D0 beq .L108 - 1833 .LVL168: - 1834 .L95: -3404:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** { - 1835 .loc 1 3404 0 - 1836 001c 8023 movs r3, #128 - 1837 001e 1B01 lsls r3, r3, #4 - 1838 0020 9D42 cmp r5, r3 - 1839 0022 63D0 beq .L98 - 1840 0024 2FD8 bhi .L99 - 1841 0026 8023 movs r3, #128 - 1842 0028 9B00 lsls r3, r3, #2 - 1843 002a 9D42 cmp r5, r3 - 1844 002c 44D0 beq .L100 - 1845 002e 8023 movs r3, #128 - 1846 0030 DB00 lsls r3, r3, #3 - 1847 0032 9D42 cmp r5, r3 - 1848 0034 4DD0 beq .L101 - 1849 0036 8023 movs r3, #128 - 1850 0038 5B00 lsls r3, r3, #1 - 1851 003a 9D42 cmp r5, r3 - 1852 003c 0BD1 bne .L97 -3409:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** - 1853 .loc 1 3409 0 - 1854 003e 236A ldr r3, [r4, #32] - 1855 0040 3F4A ldr r2, .L110 - 1856 0042 9A62 str r2, [r3, #40] -3412:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** - 1857 .loc 1 3412 0 - 1858 0044 236A ldr r3, [r4, #32] - 1859 0046 3F4A ldr r2, .L110+4 - 1860 0048 1A63 str r2, [r3, #48] -3415:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** } - 1861 .loc 1 3415 0 - 1862 004a 2268 ldr r2, [r4] - 1863 004c 4C32 adds r2, r2, #76 - 1864 004e 059B ldr r3, [sp, #20] - 1865 0050 206A ldr r0, [r4, #32] - 1866 .LVL169: - 1867 0052 FFF7FEFF bl HAL_DMA_Start_IT - 1868 .LVL170: - 1869 .L97: -3494:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** - 1870 .loc 1 3494 0 - ARM GAS /tmp/cccrAAAm.s page 130 - - - 1871 0056 2368 ldr r3, [r4] - 1872 0058 049A ldr r2, [sp, #16] - 1873 005a 1643 orrs r6, r2 - 1874 .LVL171: - 1875 005c 9E64 str r6, [r3, #72] -3497:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** - 1876 .loc 1 3497 0 - 1877 005e 2268 ldr r2, [r4] - 1878 0060 D368 ldr r3, [r2, #12] - 1879 0062 1D43 orrs r5, r3 - 1880 .LVL172: - 1881 0064 D560 str r5, [r2, #12] -3499:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** - 1882 .loc 1 3499 0 - 1883 0066 3D23 movs r3, #61 - 1884 0068 0122 movs r2, #1 - 1885 006a E254 strb r2, [r4, r3] -3502:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** } - 1886 .loc 1 3502 0 - 1887 006c 0020 movs r0, #0 - 1888 .L94: -3503:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** - 1889 .loc 1 3503 0 - 1890 @ sp needed - 1891 .LVL173: - 1892 006e 70BD pop {r4, r5, r6, pc} - 1893 .LVL174: - 1894 .L108: -3395:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** { - 1895 .loc 1 3395 0 - 1896 0070 0029 cmp r1, #0 - 1897 0072 03D0 beq .L109 - 1898 .L96: -3401:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** } - 1899 .loc 1 3401 0 - 1900 0074 3D23 movs r3, #61 - 1901 0076 0222 movs r2, #2 - 1902 .LVL175: - 1903 0078 E254 strb r2, [r4, r3] - 1904 007a CFE7 b .L95 - 1905 .LVL176: - 1906 .L109: -3395:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** { - 1907 .loc 1 3395 0 discriminator 1 - 1908 007c 049B ldr r3, [sp, #16] - 1909 007e 002B cmp r3, #0 - 1910 0080 F8D0 beq .L96 -3397:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** } - 1911 .loc 1 3397 0 - 1912 0082 0120 movs r0, #1 - 1913 .LVL177: - 1914 0084 F3E7 b .L94 - 1915 .LVL178: - 1916 .L99: -3404:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** { - 1917 .loc 1 3404 0 - 1918 0086 8023 movs r3, #128 - ARM GAS /tmp/cccrAAAm.s page 131 - - - 1919 0088 9B01 lsls r3, r3, #6 - 1920 008a 9D42 cmp r5, r3 - 1921 008c 3BD0 beq .L103 - 1922 008e 8023 movs r3, #128 - 1923 0090 DB01 lsls r3, r3, #7 - 1924 0092 9D42 cmp r5, r3 - 1925 0094 44D0 beq .L104 - 1926 0096 8023 movs r3, #128 - 1927 0098 5B01 lsls r3, r3, #5 - 1928 009a 9D42 cmp r5, r3 - 1929 009c DBD1 bne .L97 -3457:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** - 1930 .loc 1 3457 0 - 1931 009e 236B ldr r3, [r4, #48] - 1932 00a0 294A ldr r2, .L110+8 - 1933 00a2 9A62 str r2, [r3, #40] -3460:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** - 1934 .loc 1 3460 0 - 1935 00a4 236B ldr r3, [r4, #48] - 1936 00a6 274A ldr r2, .L110+4 - 1937 00a8 1A63 str r2, [r3, #48] -3463:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** } - 1938 .loc 1 3463 0 - 1939 00aa 2268 ldr r2, [r4] - 1940 00ac 4C32 adds r2, r2, #76 - 1941 00ae 059B ldr r3, [sp, #20] - 1942 00b0 206B ldr r0, [r4, #48] - 1943 .LVL179: - 1944 00b2 FFF7FEFF bl HAL_DMA_Start_IT - 1945 .LVL180: -3465:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** case TIM_DMA_COM: - 1946 .loc 1 3465 0 - 1947 00b6 CEE7 b .L97 - 1948 .LVL181: - 1949 .L100: -3421:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** - 1950 .loc 1 3421 0 - 1951 00b8 636A ldr r3, [r4, #36] - 1952 00ba 234A ldr r2, .L110+8 - 1953 00bc 9A62 str r2, [r3, #40] -3424:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** - 1954 .loc 1 3424 0 - 1955 00be 636A ldr r3, [r4, #36] - 1956 00c0 204A ldr r2, .L110+4 - 1957 00c2 1A63 str r2, [r3, #48] -3427:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** } - 1958 .loc 1 3427 0 - 1959 00c4 2268 ldr r2, [r4] - 1960 00c6 4C32 adds r2, r2, #76 - 1961 00c8 059B ldr r3, [sp, #20] - 1962 00ca 606A ldr r0, [r4, #36] - 1963 .LVL182: - 1964 00cc FFF7FEFF bl HAL_DMA_Start_IT - 1965 .LVL183: -3429:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** case TIM_DMA_CC2: - 1966 .loc 1 3429 0 - 1967 00d0 C1E7 b .L97 - ARM GAS /tmp/cccrAAAm.s page 132 - - - 1968 .LVL184: - 1969 .L101: -3433:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** - 1970 .loc 1 3433 0 - 1971 00d2 A36A ldr r3, [r4, #40] - 1972 00d4 1C4A ldr r2, .L110+8 - 1973 00d6 9A62 str r2, [r3, #40] -3436:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** - 1974 .loc 1 3436 0 - 1975 00d8 A36A ldr r3, [r4, #40] - 1976 00da 1A4A ldr r2, .L110+4 - 1977 00dc 1A63 str r2, [r3, #48] -3439:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** } - 1978 .loc 1 3439 0 - 1979 00de 2268 ldr r2, [r4] - 1980 00e0 4C32 adds r2, r2, #76 - 1981 00e2 059B ldr r3, [sp, #20] - 1982 00e4 A06A ldr r0, [r4, #40] - 1983 .LVL185: - 1984 00e6 FFF7FEFF bl HAL_DMA_Start_IT - 1985 .LVL186: -3441:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** case TIM_DMA_CC3: - 1986 .loc 1 3441 0 - 1987 00ea B4E7 b .L97 - 1988 .LVL187: - 1989 .L98: -3445:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** - 1990 .loc 1 3445 0 - 1991 00ec E36A ldr r3, [r4, #44] - 1992 00ee 164A ldr r2, .L110+8 - 1993 00f0 9A62 str r2, [r3, #40] -3448:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** - 1994 .loc 1 3448 0 - 1995 00f2 E36A ldr r3, [r4, #44] - 1996 00f4 134A ldr r2, .L110+4 - 1997 00f6 1A63 str r2, [r3, #48] -3451:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** } - 1998 .loc 1 3451 0 - 1999 00f8 2268 ldr r2, [r4] - 2000 00fa 4C32 adds r2, r2, #76 - 2001 00fc 059B ldr r3, [sp, #20] - 2002 00fe E06A ldr r0, [r4, #44] - 2003 .LVL188: - 2004 0100 FFF7FEFF bl HAL_DMA_Start_IT - 2005 .LVL189: -3453:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** case TIM_DMA_CC4: - 2006 .loc 1 3453 0 - 2007 0104 A7E7 b .L97 - 2008 .LVL190: - 2009 .L103: -3469:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** - 2010 .loc 1 3469 0 - 2011 0106 636B ldr r3, [r4, #52] - 2012 0108 104A ldr r2, .L110+12 - 2013 010a 9A62 str r2, [r3, #40] -3472:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** - 2014 .loc 1 3472 0 - ARM GAS /tmp/cccrAAAm.s page 133 - - - 2015 010c 636B ldr r3, [r4, #52] - 2016 010e 0D4A ldr r2, .L110+4 - 2017 0110 1A63 str r2, [r3, #48] -3475:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** } - 2018 .loc 1 3475 0 - 2019 0112 2268 ldr r2, [r4] - 2020 0114 4C32 adds r2, r2, #76 - 2021 0116 059B ldr r3, [sp, #20] - 2022 0118 606B ldr r0, [r4, #52] - 2023 .LVL191: - 2024 011a FFF7FEFF bl HAL_DMA_Start_IT - 2025 .LVL192: -3477:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** case TIM_DMA_TRIGGER: - 2026 .loc 1 3477 0 - 2027 011e 9AE7 b .L97 - 2028 .LVL193: - 2029 .L104: -3481:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** - 2030 .loc 1 3481 0 - 2031 0120 A36B ldr r3, [r4, #56] - 2032 0122 0B4A ldr r2, .L110+16 - 2033 0124 9A62 str r2, [r3, #40] -3484:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** - 2034 .loc 1 3484 0 - 2035 0126 A36B ldr r3, [r4, #56] - 2036 0128 064A ldr r2, .L110+4 - 2037 012a 1A63 str r2, [r3, #48] -3487:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** } - 2038 .loc 1 3487 0 - 2039 012c 2268 ldr r2, [r4] - 2040 012e 4C32 adds r2, r2, #76 - 2041 0130 059B ldr r3, [sp, #20] - 2042 0132 A06B ldr r0, [r4, #56] - 2043 .LVL194: - 2044 0134 FFF7FEFF bl HAL_DMA_Start_IT - 2045 .LVL195: -3489:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** default: - 2046 .loc 1 3489 0 - 2047 0138 8DE7 b .L97 - 2048 .LVL196: - 2049 .L106: -3391:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** } - 2050 .loc 1 3391 0 - 2051 013a 0220 movs r0, #2 - 2052 .LVL197: - 2053 013c 97E7 b .L94 - 2054 .L111: - 2055 013e C046 .align 2 - 2056 .L110: - 2057 0140 00000000 .word TIM_DMAPeriodElapsedCplt - 2058 0144 00000000 .word TIM_DMAError - 2059 0148 00000000 .word TIM_DMADelayPulseCplt - 2060 014c 00000000 .word TIMEx_DMACommutationCplt - 2061 0150 00000000 .word TIM_DMATriggerCplt - 2062 .cfi_endproc - 2063 .LFE101: - 2065 .section .text.HAL_TIM_DMABurst_WriteStart,"ax",%progbits - ARM GAS /tmp/cccrAAAm.s page 134 - - - 2066 .align 1 - 2067 .global HAL_TIM_DMABurst_WriteStart - 2068 .syntax unified - 2069 .code 16 - 2070 .thumb_func - 2071 .fpu softvfp - 2073 HAL_TIM_DMABurst_WriteStart: - 2074 .LFB100: -3335:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** return HAL_TIM_DMABurst_MultiWriteStart(htim, BurstBaseAddress, BurstRequestSrc, BurstBuffer, Burst - 2075 .loc 1 3335 0 - 2076 .cfi_startproc - 2077 @ args = 4, pretend = 0, frame = 0 - 2078 @ frame_needed = 0, uses_anonymous_args = 0 - 2079 .LVL198: - 2080 0000 30B5 push {r4, r5, lr} - 2081 .LCFI17: - 2082 .cfi_def_cfa_offset 12 - 2083 .cfi_offset 4, -12 - 2084 .cfi_offset 5, -8 - 2085 .cfi_offset 14, -4 - 2086 0002 83B0 sub sp, sp, #12 - 2087 .LCFI18: - 2088 .cfi_def_cfa_offset 24 - 2089 0004 069D ldr r5, [sp, #24] -3336:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** } - 2090 .loc 1 3336 0 - 2091 0006 2C0A lsrs r4, r5, #8 - 2092 0008 0134 adds r4, r4, #1 - 2093 000a 0194 str r4, [sp, #4] - 2094 000c 0095 str r5, [sp] - 2095 000e FFF7FEFF bl HAL_TIM_DMABurst_MultiWriteStart - 2096 .LVL199: -3337:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** - 2097 .loc 1 3337 0 - 2098 0012 03B0 add sp, sp, #12 - 2099 @ sp needed - 2100 0014 30BD pop {r4, r5, pc} - 2101 .cfi_endproc - 2102 .LFE100: - 2104 .section .text.HAL_TIM_DMABurst_WriteStop,"ax",%progbits - 2105 .align 1 - 2106 .global HAL_TIM_DMABurst_WriteStop - 2107 .syntax unified - 2108 .code 16 - 2109 .thumb_func - 2110 .fpu softvfp - 2112 HAL_TIM_DMABurst_WriteStop: - 2113 .LFB102: -3512:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** /* Check the parameters */ - 2114 .loc 1 3512 0 - 2115 .cfi_startproc - 2116 @ args = 0, pretend = 0, frame = 0 - 2117 @ frame_needed = 0, uses_anonymous_args = 0 - 2118 .LVL200: - 2119 0000 70B5 push {r4, r5, r6, lr} - 2120 .LCFI19: - 2121 .cfi_def_cfa_offset 16 - ARM GAS /tmp/cccrAAAm.s page 135 - - - 2122 .cfi_offset 4, -16 - 2123 .cfi_offset 5, -12 - 2124 .cfi_offset 6, -8 - 2125 .cfi_offset 14, -4 - 2126 0002 0500 movs r5, r0 - 2127 0004 0C00 movs r4, r1 -3517:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** { - 2128 .loc 1 3517 0 - 2129 0006 8023 movs r3, #128 - 2130 0008 1B01 lsls r3, r3, #4 - 2131 000a 9942 cmp r1, r3 - 2132 000c 2DD0 beq .L115 - 2133 000e 14D8 bhi .L116 - 2134 0010 8023 movs r3, #128 - 2135 0012 9B00 lsls r3, r3, #2 - 2136 0014 9942 cmp r1, r3 - 2137 0016 20D0 beq .L117 - 2138 0018 8023 movs r3, #128 - 2139 001a DB00 lsls r3, r3, #3 - 2140 001c 9942 cmp r1, r3 - 2141 001e 20D0 beq .L118 - 2142 0020 8023 movs r3, #128 - 2143 0022 5B00 lsls r3, r3, #1 - 2144 0024 9942 cmp r1, r3 - 2145 0026 02D1 bne .L114 -3521:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** } - 2146 .loc 1 3521 0 - 2147 0028 006A ldr r0, [r0, #32] - 2148 .LVL201: - 2149 002a FFF7FEFF bl HAL_DMA_Abort - 2150 .LVL202: - 2151 .L114: -3559:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** - 2152 .loc 1 3559 0 - 2153 002e 2A68 ldr r2, [r5] - 2154 0030 D368 ldr r3, [r2, #12] - 2155 0032 A343 bics r3, r4 - 2156 0034 D360 str r3, [r2, #12] -3563:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** - 2157 .loc 1 3563 0 - 2158 0036 0020 movs r0, #0 - 2159 @ sp needed - 2160 .LVL203: - 2161 .LVL204: - 2162 0038 70BD pop {r4, r5, r6, pc} - 2163 .LVL205: - 2164 .L116: -3517:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** { - 2165 .loc 1 3517 0 - 2166 003a 8023 movs r3, #128 - 2167 003c 9B01 lsls r3, r3, #6 - 2168 003e 9942 cmp r1, r3 - 2169 0040 17D0 beq .L120 - 2170 0042 8023 movs r3, #128 - 2171 0044 DB01 lsls r3, r3, #7 - 2172 0046 9942 cmp r1, r3 - 2173 0048 17D0 beq .L121 - ARM GAS /tmp/cccrAAAm.s page 136 - - - 2174 004a 8023 movs r3, #128 - 2175 004c 5B01 lsls r3, r3, #5 - 2176 004e 9942 cmp r1, r3 - 2177 0050 EDD1 bne .L114 -3541:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** } - 2178 .loc 1 3541 0 - 2179 0052 006B ldr r0, [r0, #48] - 2180 .LVL206: - 2181 0054 FFF7FEFF bl HAL_DMA_Abort - 2182 .LVL207: -3543:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** case TIM_DMA_COM: - 2183 .loc 1 3543 0 - 2184 0058 E9E7 b .L114 - 2185 .LVL208: - 2186 .L117: -3526:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** } - 2187 .loc 1 3526 0 - 2188 005a 406A ldr r0, [r0, #36] - 2189 .LVL209: - 2190 005c FFF7FEFF bl HAL_DMA_Abort - 2191 .LVL210: -3528:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** case TIM_DMA_CC2: - 2192 .loc 1 3528 0 - 2193 0060 E5E7 b .L114 - 2194 .LVL211: - 2195 .L118: -3531:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** } - 2196 .loc 1 3531 0 - 2197 0062 806A ldr r0, [r0, #40] - 2198 .LVL212: - 2199 0064 FFF7FEFF bl HAL_DMA_Abort - 2200 .LVL213: -3533:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** case TIM_DMA_CC3: - 2201 .loc 1 3533 0 - 2202 0068 E1E7 b .L114 - 2203 .LVL214: - 2204 .L115: -3536:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** } - 2205 .loc 1 3536 0 - 2206 006a C06A ldr r0, [r0, #44] - 2207 .LVL215: - 2208 006c FFF7FEFF bl HAL_DMA_Abort - 2209 .LVL216: -3538:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** case TIM_DMA_CC4: - 2210 .loc 1 3538 0 - 2211 0070 DDE7 b .L114 - 2212 .LVL217: - 2213 .L120: -3546:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** } - 2214 .loc 1 3546 0 - 2215 0072 406B ldr r0, [r0, #52] - 2216 .LVL218: - 2217 0074 FFF7FEFF bl HAL_DMA_Abort - 2218 .LVL219: -3548:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** case TIM_DMA_TRIGGER: - 2219 .loc 1 3548 0 - 2220 0078 D9E7 b .L114 - ARM GAS /tmp/cccrAAAm.s page 137 - - - 2221 .LVL220: - 2222 .L121: -3551:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** } - 2223 .loc 1 3551 0 - 2224 007a 806B ldr r0, [r0, #56] - 2225 .LVL221: - 2226 007c FFF7FEFF bl HAL_DMA_Abort - 2227 .LVL222: -3553:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** default: - 2228 .loc 1 3553 0 - 2229 0080 D5E7 b .L114 - 2230 .cfi_endproc - 2231 .LFE102: - 2233 .section .text.HAL_TIM_DMABurst_MultiReadStart,"ax",%progbits - 2234 .align 1 - 2235 .global HAL_TIM_DMABurst_MultiReadStart - 2236 .syntax unified - 2237 .code 16 - 2238 .thumb_func - 2239 .fpu softvfp - 2241 HAL_TIM_DMABurst_MultiReadStart: - 2242 .LFB104: -3651:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** /* Check the parameters */ - 2243 .loc 1 3651 0 - 2244 .cfi_startproc - 2245 @ args = 8, pretend = 0, frame = 0 - 2246 @ frame_needed = 0, uses_anonymous_args = 0 - 2247 .LVL223: - 2248 0000 70B5 push {r4, r5, r6, lr} - 2249 .LCFI20: - 2250 .cfi_def_cfa_offset 16 - 2251 .cfi_offset 4, -16 - 2252 .cfi_offset 5, -12 - 2253 .cfi_offset 6, -8 - 2254 .cfi_offset 14, -4 - 2255 0002 0400 movs r4, r0 - 2256 0004 0E00 movs r6, r1 - 2257 0006 1500 movs r5, r2 - 2258 0008 1A00 movs r2, r3 - 2259 .LVL224: -3659:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** { - 2260 .loc 1 3659 0 - 2261 000a 3D23 movs r3, #61 - 2262 .LVL225: - 2263 000c C35C ldrb r3, [r0, r3] - 2264 000e 022B cmp r3, #2 - 2265 0010 00D1 bne .LCB1991 - 2266 0012 92E0 b .L136 @long jump - 2267 .LCB1991: -3663:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** { - 2268 .loc 1 3663 0 - 2269 0014 3D23 movs r3, #61 - 2270 0016 C35C ldrb r3, [r0, r3] - 2271 0018 012B cmp r3, #1 - 2272 001a 29D0 beq .L138 - 2273 .LVL226: - 2274 .L125: - ARM GAS /tmp/cccrAAAm.s page 138 - - -3674:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** { - 2275 .loc 1 3674 0 - 2276 001c 8023 movs r3, #128 - 2277 001e 1B01 lsls r3, r3, #4 - 2278 0020 9D42 cmp r5, r3 - 2279 0022 63D0 beq .L128 - 2280 0024 2FD8 bhi .L129 - 2281 0026 8023 movs r3, #128 - 2282 0028 9B00 lsls r3, r3, #2 - 2283 002a 9D42 cmp r5, r3 - 2284 002c 44D0 beq .L130 - 2285 002e 8023 movs r3, #128 - 2286 0030 DB00 lsls r3, r3, #3 - 2287 0032 9D42 cmp r5, r3 - 2288 0034 4DD0 beq .L131 - 2289 0036 8023 movs r3, #128 - 2290 0038 5B00 lsls r3, r3, #1 - 2291 003a 9D42 cmp r5, r3 - 2292 003c 0BD1 bne .L127 -3679:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** - 2293 .loc 1 3679 0 - 2294 003e 236A ldr r3, [r4, #32] - 2295 0040 3F49 ldr r1, .L140 - 2296 0042 9962 str r1, [r3, #40] -3682:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** - 2297 .loc 1 3682 0 - 2298 0044 236A ldr r3, [r4, #32] - 2299 0046 3F49 ldr r1, .L140+4 - 2300 0048 1963 str r1, [r3, #48] -3685:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** } - 2301 .loc 1 3685 0 - 2302 004a 2168 ldr r1, [r4] - 2303 004c 4C31 adds r1, r1, #76 - 2304 004e 059B ldr r3, [sp, #20] - 2305 0050 206A ldr r0, [r4, #32] - 2306 .LVL227: - 2307 0052 FFF7FEFF bl HAL_DMA_Start_IT - 2308 .LVL228: - 2309 .L127: -3765:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** - 2310 .loc 1 3765 0 - 2311 0056 2368 ldr r3, [r4] - 2312 0058 049A ldr r2, [sp, #16] - 2313 005a 1643 orrs r6, r2 - 2314 .LVL229: - 2315 005c 9E64 str r6, [r3, #72] -3768:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** - 2316 .loc 1 3768 0 - 2317 005e 2268 ldr r2, [r4] - 2318 0060 D368 ldr r3, [r2, #12] - 2319 0062 1D43 orrs r5, r3 - 2320 .LVL230: - 2321 0064 D560 str r5, [r2, #12] -3770:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** - 2322 .loc 1 3770 0 - 2323 0066 3D23 movs r3, #61 - 2324 0068 0122 movs r2, #1 - ARM GAS /tmp/cccrAAAm.s page 139 - - - 2325 006a E254 strb r2, [r4, r3] -3773:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** } - 2326 .loc 1 3773 0 - 2327 006c 0020 movs r0, #0 - 2328 .L124: -3774:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** - 2329 .loc 1 3774 0 - 2330 @ sp needed - 2331 .LVL231: - 2332 006e 70BD pop {r4, r5, r6, pc} - 2333 .LVL232: - 2334 .L138: -3665:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** { - 2335 .loc 1 3665 0 - 2336 0070 002A cmp r2, #0 - 2337 0072 03D0 beq .L139 - 2338 .L126: -3671:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** } - 2339 .loc 1 3671 0 - 2340 0074 3D23 movs r3, #61 - 2341 0076 0221 movs r1, #2 - 2342 .LVL233: - 2343 0078 E154 strb r1, [r4, r3] - 2344 007a CFE7 b .L125 - 2345 .LVL234: - 2346 .L139: -3665:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** { - 2347 .loc 1 3665 0 discriminator 1 - 2348 007c 049B ldr r3, [sp, #16] - 2349 007e 002B cmp r3, #0 - 2350 0080 F8D0 beq .L126 -3667:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** } - 2351 .loc 1 3667 0 - 2352 0082 0120 movs r0, #1 - 2353 .LVL235: - 2354 0084 F3E7 b .L124 - 2355 .LVL236: - 2356 .L129: -3674:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** { - 2357 .loc 1 3674 0 - 2358 0086 8023 movs r3, #128 - 2359 0088 9B01 lsls r3, r3, #6 - 2360 008a 9D42 cmp r5, r3 - 2361 008c 3BD0 beq .L133 - 2362 008e 8023 movs r3, #128 - 2363 0090 DB01 lsls r3, r3, #7 - 2364 0092 9D42 cmp r5, r3 - 2365 0094 44D0 beq .L134 - 2366 0096 8023 movs r3, #128 - 2367 0098 5B01 lsls r3, r3, #5 - 2368 009a 9D42 cmp r5, r3 - 2369 009c DBD1 bne .L127 -3727:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** - 2370 .loc 1 3727 0 - 2371 009e 236B ldr r3, [r4, #48] - 2372 00a0 2949 ldr r1, .L140+8 - 2373 00a2 9962 str r1, [r3, #40] - ARM GAS /tmp/cccrAAAm.s page 140 - - -3730:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** - 2374 .loc 1 3730 0 - 2375 00a4 236B ldr r3, [r4, #48] - 2376 00a6 2749 ldr r1, .L140+4 - 2377 00a8 1963 str r1, [r3, #48] -3733:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** } - 2378 .loc 1 3733 0 - 2379 00aa 2168 ldr r1, [r4] - 2380 00ac 4C31 adds r1, r1, #76 - 2381 00ae 059B ldr r3, [sp, #20] - 2382 00b0 206B ldr r0, [r4, #48] - 2383 .LVL237: - 2384 00b2 FFF7FEFF bl HAL_DMA_Start_IT - 2385 .LVL238: -3735:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** case TIM_DMA_COM: - 2386 .loc 1 3735 0 - 2387 00b6 CEE7 b .L127 - 2388 .LVL239: - 2389 .L130: -3691:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** - 2390 .loc 1 3691 0 - 2391 00b8 636A ldr r3, [r4, #36] - 2392 00ba 2349 ldr r1, .L140+8 - 2393 00bc 9962 str r1, [r3, #40] -3694:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** - 2394 .loc 1 3694 0 - 2395 00be 636A ldr r3, [r4, #36] - 2396 00c0 2049 ldr r1, .L140+4 - 2397 00c2 1963 str r1, [r3, #48] -3697:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** } - 2398 .loc 1 3697 0 - 2399 00c4 2168 ldr r1, [r4] - 2400 00c6 4C31 adds r1, r1, #76 - 2401 00c8 059B ldr r3, [sp, #20] - 2402 00ca 606A ldr r0, [r4, #36] - 2403 .LVL240: - 2404 00cc FFF7FEFF bl HAL_DMA_Start_IT - 2405 .LVL241: -3699:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** case TIM_DMA_CC2: - 2406 .loc 1 3699 0 - 2407 00d0 C1E7 b .L127 - 2408 .LVL242: - 2409 .L131: -3703:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** - 2410 .loc 1 3703 0 - 2411 00d2 A36A ldr r3, [r4, #40] - 2412 00d4 1C49 ldr r1, .L140+8 - 2413 00d6 9962 str r1, [r3, #40] -3706:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** - 2414 .loc 1 3706 0 - 2415 00d8 A36A ldr r3, [r4, #40] - 2416 00da 1A49 ldr r1, .L140+4 - 2417 00dc 1963 str r1, [r3, #48] -3709:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** } - 2418 .loc 1 3709 0 - 2419 00de 2168 ldr r1, [r4] - 2420 00e0 4C31 adds r1, r1, #76 - ARM GAS /tmp/cccrAAAm.s page 141 - - - 2421 00e2 059B ldr r3, [sp, #20] - 2422 00e4 A06A ldr r0, [r4, #40] - 2423 .LVL243: - 2424 00e6 FFF7FEFF bl HAL_DMA_Start_IT - 2425 .LVL244: -3711:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** case TIM_DMA_CC3: - 2426 .loc 1 3711 0 - 2427 00ea B4E7 b .L127 - 2428 .LVL245: - 2429 .L128: -3715:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** - 2430 .loc 1 3715 0 - 2431 00ec E36A ldr r3, [r4, #44] - 2432 00ee 1649 ldr r1, .L140+8 - 2433 00f0 9962 str r1, [r3, #40] -3718:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** - 2434 .loc 1 3718 0 - 2435 00f2 E36A ldr r3, [r4, #44] - 2436 00f4 1349 ldr r1, .L140+4 - 2437 00f6 1963 str r1, [r3, #48] -3721:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** } - 2438 .loc 1 3721 0 - 2439 00f8 2168 ldr r1, [r4] - 2440 00fa 4C31 adds r1, r1, #76 - 2441 00fc 059B ldr r3, [sp, #20] - 2442 00fe E06A ldr r0, [r4, #44] - 2443 .LVL246: - 2444 0100 FFF7FEFF bl HAL_DMA_Start_IT - 2445 .LVL247: -3723:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** case TIM_DMA_CC4: - 2446 .loc 1 3723 0 - 2447 0104 A7E7 b .L127 - 2448 .LVL248: - 2449 .L133: -3739:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** - 2450 .loc 1 3739 0 - 2451 0106 636B ldr r3, [r4, #52] - 2452 0108 1049 ldr r1, .L140+12 - 2453 010a 9962 str r1, [r3, #40] -3742:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** - 2454 .loc 1 3742 0 - 2455 010c 636B ldr r3, [r4, #52] - 2456 010e 0D49 ldr r1, .L140+4 - 2457 0110 1963 str r1, [r3, #48] -3745:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** } - 2458 .loc 1 3745 0 - 2459 0112 2168 ldr r1, [r4] - 2460 0114 4C31 adds r1, r1, #76 - 2461 0116 059B ldr r3, [sp, #20] - 2462 0118 606B ldr r0, [r4, #52] - 2463 .LVL249: - 2464 011a FFF7FEFF bl HAL_DMA_Start_IT - 2465 .LVL250: -3747:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** case TIM_DMA_TRIGGER: - 2466 .loc 1 3747 0 - 2467 011e 9AE7 b .L127 - 2468 .LVL251: - ARM GAS /tmp/cccrAAAm.s page 142 - - - 2469 .L134: -3751:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** - 2470 .loc 1 3751 0 - 2471 0120 A36B ldr r3, [r4, #56] - 2472 0122 0B49 ldr r1, .L140+16 - 2473 0124 9962 str r1, [r3, #40] -3754:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** - 2474 .loc 1 3754 0 - 2475 0126 A36B ldr r3, [r4, #56] - 2476 0128 0649 ldr r1, .L140+4 - 2477 012a 1963 str r1, [r3, #48] -3757:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** } - 2478 .loc 1 3757 0 - 2479 012c 2168 ldr r1, [r4] - 2480 012e 4C31 adds r1, r1, #76 - 2481 0130 059B ldr r3, [sp, #20] - 2482 0132 A06B ldr r0, [r4, #56] - 2483 .LVL252: - 2484 0134 FFF7FEFF bl HAL_DMA_Start_IT - 2485 .LVL253: -3759:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** default: - 2486 .loc 1 3759 0 - 2487 0138 8DE7 b .L127 - 2488 .LVL254: - 2489 .L136: -3661:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** } - 2490 .loc 1 3661 0 - 2491 013a 0220 movs r0, #2 - 2492 .LVL255: - 2493 013c 97E7 b .L124 - 2494 .L141: - 2495 013e C046 .align 2 - 2496 .L140: - 2497 0140 00000000 .word TIM_DMAPeriodElapsedCplt - 2498 0144 00000000 .word TIM_DMAError - 2499 0148 00000000 .word TIM_DMACaptureCplt - 2500 014c 00000000 .word TIMEx_DMACommutationCplt - 2501 0150 00000000 .word TIM_DMATriggerCplt - 2502 .cfi_endproc - 2503 .LFE104: - 2505 .section .text.HAL_TIM_DMABurst_ReadStart,"ax",%progbits - 2506 .align 1 - 2507 .global HAL_TIM_DMABurst_ReadStart - 2508 .syntax unified - 2509 .code 16 - 2510 .thumb_func - 2511 .fpu softvfp - 2513 HAL_TIM_DMABurst_ReadStart: - 2514 .LFB103: -3605:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** return HAL_TIM_DMABurst_MultiReadStart(htim, BurstBaseAddress, BurstRequestSrc, BurstBuffer, BurstL - 2515 .loc 1 3605 0 - 2516 .cfi_startproc - 2517 @ args = 4, pretend = 0, frame = 0 - 2518 @ frame_needed = 0, uses_anonymous_args = 0 - 2519 .LVL256: - 2520 0000 30B5 push {r4, r5, lr} - 2521 .LCFI21: - ARM GAS /tmp/cccrAAAm.s page 143 - - - 2522 .cfi_def_cfa_offset 12 - 2523 .cfi_offset 4, -12 - 2524 .cfi_offset 5, -8 - 2525 .cfi_offset 14, -4 - 2526 0002 83B0 sub sp, sp, #12 - 2527 .LCFI22: - 2528 .cfi_def_cfa_offset 24 - 2529 0004 069D ldr r5, [sp, #24] -3606:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** } - 2530 .loc 1 3606 0 - 2531 0006 2C0A lsrs r4, r5, #8 - 2532 0008 0134 adds r4, r4, #1 - 2533 000a 0194 str r4, [sp, #4] - 2534 000c 0095 str r5, [sp] - 2535 000e FFF7FEFF bl HAL_TIM_DMABurst_MultiReadStart - 2536 .LVL257: -3607:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** - 2537 .loc 1 3607 0 - 2538 0012 03B0 add sp, sp, #12 - 2539 @ sp needed - 2540 0014 30BD pop {r4, r5, pc} - 2541 .cfi_endproc - 2542 .LFE103: - 2544 .section .text.HAL_TIM_DMABurst_ReadStop,"ax",%progbits - 2545 .align 1 - 2546 .global HAL_TIM_DMABurst_ReadStop - 2547 .syntax unified - 2548 .code 16 - 2549 .thumb_func - 2550 .fpu softvfp - 2552 HAL_TIM_DMABurst_ReadStop: - 2553 .LFB105: -3783:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** /* Check the parameters */ - 2554 .loc 1 3783 0 - 2555 .cfi_startproc - 2556 @ args = 0, pretend = 0, frame = 0 - 2557 @ frame_needed = 0, uses_anonymous_args = 0 - 2558 .LVL258: - 2559 0000 70B5 push {r4, r5, r6, lr} - 2560 .LCFI23: - 2561 .cfi_def_cfa_offset 16 - 2562 .cfi_offset 4, -16 - 2563 .cfi_offset 5, -12 - 2564 .cfi_offset 6, -8 - 2565 .cfi_offset 14, -4 - 2566 0002 0500 movs r5, r0 - 2567 0004 0C00 movs r4, r1 -3788:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** { - 2568 .loc 1 3788 0 - 2569 0006 8023 movs r3, #128 - 2570 0008 1B01 lsls r3, r3, #4 - 2571 000a 9942 cmp r1, r3 - 2572 000c 2DD0 beq .L145 - 2573 000e 14D8 bhi .L146 - 2574 0010 8023 movs r3, #128 - 2575 0012 9B00 lsls r3, r3, #2 - 2576 0014 9942 cmp r1, r3 - ARM GAS /tmp/cccrAAAm.s page 144 - - - 2577 0016 20D0 beq .L147 - 2578 0018 8023 movs r3, #128 - 2579 001a DB00 lsls r3, r3, #3 - 2580 001c 9942 cmp r1, r3 - 2581 001e 20D0 beq .L148 - 2582 0020 8023 movs r3, #128 - 2583 0022 5B00 lsls r3, r3, #1 - 2584 0024 9942 cmp r1, r3 - 2585 0026 02D1 bne .L144 -3792:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** } - 2586 .loc 1 3792 0 - 2587 0028 006A ldr r0, [r0, #32] - 2588 .LVL259: - 2589 002a FFF7FEFF bl HAL_DMA_Abort - 2590 .LVL260: - 2591 .L144: -3830:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** - 2592 .loc 1 3830 0 - 2593 002e 2A68 ldr r2, [r5] - 2594 0030 D368 ldr r3, [r2, #12] - 2595 0032 A343 bics r3, r4 - 2596 0034 D360 str r3, [r2, #12] -3834:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** - 2597 .loc 1 3834 0 - 2598 0036 0020 movs r0, #0 - 2599 @ sp needed - 2600 .LVL261: - 2601 .LVL262: - 2602 0038 70BD pop {r4, r5, r6, pc} - 2603 .LVL263: - 2604 .L146: -3788:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** { - 2605 .loc 1 3788 0 - 2606 003a 8023 movs r3, #128 - 2607 003c 9B01 lsls r3, r3, #6 - 2608 003e 9942 cmp r1, r3 - 2609 0040 17D0 beq .L150 - 2610 0042 8023 movs r3, #128 - 2611 0044 DB01 lsls r3, r3, #7 - 2612 0046 9942 cmp r1, r3 - 2613 0048 17D0 beq .L151 - 2614 004a 8023 movs r3, #128 - 2615 004c 5B01 lsls r3, r3, #5 - 2616 004e 9942 cmp r1, r3 - 2617 0050 EDD1 bne .L144 -3812:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** } - 2618 .loc 1 3812 0 - 2619 0052 006B ldr r0, [r0, #48] - 2620 .LVL264: - 2621 0054 FFF7FEFF bl HAL_DMA_Abort - 2622 .LVL265: -3814:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** case TIM_DMA_COM: - 2623 .loc 1 3814 0 - 2624 0058 E9E7 b .L144 - 2625 .LVL266: - 2626 .L147: -3797:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** } - ARM GAS /tmp/cccrAAAm.s page 145 - - - 2627 .loc 1 3797 0 - 2628 005a 406A ldr r0, [r0, #36] - 2629 .LVL267: - 2630 005c FFF7FEFF bl HAL_DMA_Abort - 2631 .LVL268: -3799:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** case TIM_DMA_CC2: - 2632 .loc 1 3799 0 - 2633 0060 E5E7 b .L144 - 2634 .LVL269: - 2635 .L148: -3802:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** } - 2636 .loc 1 3802 0 - 2637 0062 806A ldr r0, [r0, #40] - 2638 .LVL270: - 2639 0064 FFF7FEFF bl HAL_DMA_Abort - 2640 .LVL271: -3804:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** case TIM_DMA_CC3: - 2641 .loc 1 3804 0 - 2642 0068 E1E7 b .L144 - 2643 .LVL272: - 2644 .L145: -3807:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** } - 2645 .loc 1 3807 0 - 2646 006a C06A ldr r0, [r0, #44] - 2647 .LVL273: - 2648 006c FFF7FEFF bl HAL_DMA_Abort - 2649 .LVL274: -3809:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** case TIM_DMA_CC4: - 2650 .loc 1 3809 0 - 2651 0070 DDE7 b .L144 - 2652 .LVL275: - 2653 .L150: -3817:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** } - 2654 .loc 1 3817 0 - 2655 0072 406B ldr r0, [r0, #52] - 2656 .LVL276: - 2657 0074 FFF7FEFF bl HAL_DMA_Abort - 2658 .LVL277: -3819:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** case TIM_DMA_TRIGGER: - 2659 .loc 1 3819 0 - 2660 0078 D9E7 b .L144 - 2661 .LVL278: - 2662 .L151: -3822:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** } - 2663 .loc 1 3822 0 - 2664 007a 806B ldr r0, [r0, #56] - 2665 .LVL279: - 2666 007c FFF7FEFF bl HAL_DMA_Abort - 2667 .LVL280: -3824:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** default: - 2668 .loc 1 3824 0 - 2669 0080 D5E7 b .L144 - 2670 .cfi_endproc - 2671 .LFE105: - 2673 .section .text.HAL_TIM_GenerateEvent,"ax",%progbits - 2674 .align 1 - 2675 .global HAL_TIM_GenerateEvent - ARM GAS /tmp/cccrAAAm.s page 146 - - - 2676 .syntax unified - 2677 .code 16 - 2678 .thumb_func - 2679 .fpu softvfp - 2681 HAL_TIM_GenerateEvent: - 2682 .LFB106: -3855:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** /* Check the parameters */ - 2683 .loc 1 3855 0 - 2684 .cfi_startproc - 2685 @ args = 0, pretend = 0, frame = 0 - 2686 @ frame_needed = 0, uses_anonymous_args = 0 - 2687 @ link register save eliminated. - 2688 .LVL281: -3861:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** - 2689 .loc 1 3861 0 - 2690 0000 3C23 movs r3, #60 - 2691 0002 C35C ldrb r3, [r0, r3] - 2692 0004 012B cmp r3, #1 - 2693 0006 0BD0 beq .L155 -3864:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** - 2694 .loc 1 3864 0 discriminator 2 - 2695 0008 3D23 movs r3, #61 - 2696 000a 0222 movs r2, #2 - 2697 000c C254 strb r2, [r0, r3] -3867:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** - 2698 .loc 1 3867 0 discriminator 2 - 2699 000e 0268 ldr r2, [r0] - 2700 0010 5161 str r1, [r2, #20] -3870:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** - 2701 .loc 1 3870 0 discriminator 2 - 2702 0012 0122 movs r2, #1 - 2703 0014 C254 strb r2, [r0, r3] -3872:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** - 2704 .loc 1 3872 0 discriminator 2 - 2705 0016 013B subs r3, r3, #1 - 2706 0018 0022 movs r2, #0 - 2707 001a C254 strb r2, [r0, r3] -3875:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** } - 2708 .loc 1 3875 0 discriminator 2 - 2709 001c 0020 movs r0, #0 - 2710 .LVL282: - 2711 .L154: -3876:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** - 2712 .loc 1 3876 0 - 2713 @ sp needed - 2714 001e 7047 bx lr - 2715 .LVL283: - 2716 .L155: -3861:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** - 2717 .loc 1 3861 0 - 2718 0020 0220 movs r0, #2 - 2719 .LVL284: - 2720 0022 FCE7 b .L154 - 2721 .cfi_endproc - 2722 .LFE106: - 2724 .section .text.HAL_TIM_ConfigTI1Input,"ax",%progbits - 2725 .align 1 - ARM GAS /tmp/cccrAAAm.s page 147 - - - 2726 .global HAL_TIM_ConfigTI1Input - 2727 .syntax unified - 2728 .code 16 - 2729 .thumb_func - 2730 .fpu softvfp - 2732 HAL_TIM_ConfigTI1Input: - 2733 .LFB109: -4194:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** uint32_t tmpcr2 = 0U; - 2734 .loc 1 4194 0 - 2735 .cfi_startproc - 2736 @ args = 0, pretend = 0, frame = 0 - 2737 @ frame_needed = 0, uses_anonymous_args = 0 - 2738 @ link register save eliminated. - 2739 .LVL285: -4202:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** - 2740 .loc 1 4202 0 - 2741 0000 0268 ldr r2, [r0] - 2742 0002 5368 ldr r3, [r2, #4] - 2743 .LVL286: -4205:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** - 2744 .loc 1 4205 0 - 2745 0004 8020 movs r0, #128 - 2746 .LVL287: - 2747 0006 8343 bics r3, r0 - 2748 .LVL288: -4208:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** - 2749 .loc 1 4208 0 - 2750 0008 1943 orrs r1, r3 - 2751 .LVL289: -4211:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** - 2752 .loc 1 4211 0 - 2753 000a 5160 str r1, [r2, #4] -4214:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** - 2754 .loc 1 4214 0 - 2755 000c 0020 movs r0, #0 - 2756 @ sp needed - 2757 000e 7047 bx lr - 2758 .cfi_endproc - 2759 .LFE109: - 2761 .section .text.HAL_TIM_ReadCapturedValue,"ax",%progbits - 2762 .align 1 - 2763 .global HAL_TIM_ReadCapturedValue - 2764 .syntax unified - 2765 .code 16 - 2766 .thumb_func - 2767 .fpu softvfp - 2769 HAL_TIM_ReadCapturedValue: - 2770 .LFB112: -4299:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** uint32_t tmpreg = 0U; - 2771 .loc 1 4299 0 - 2772 .cfi_startproc - 2773 @ args = 0, pretend = 0, frame = 0 - 2774 @ frame_needed = 0, uses_anonymous_args = 0 - 2775 @ link register save eliminated. - 2776 .LVL290: -4302:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** - 2777 .loc 1 4302 0 - ARM GAS /tmp/cccrAAAm.s page 148 - - - 2778 0000 3C23 movs r3, #60 - 2779 0002 C35C ldrb r3, [r0, r3] - 2780 0004 012B cmp r3, #1 - 2781 0006 1DD0 beq .L165 -4302:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** - 2782 .loc 1 4302 0 is_stmt 0 discriminator 2 - 2783 0008 3C23 movs r3, #60 - 2784 000a 0122 movs r2, #1 - 2785 000c C254 strb r2, [r0, r3] -4304:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** { - 2786 .loc 1 4304 0 is_stmt 1 discriminator 2 - 2787 000e 0429 cmp r1, #4 - 2788 0010 10D0 beq .L160 - 2789 0012 06D9 bls .L167 - 2790 0014 0829 cmp r1, #8 - 2791 0016 10D0 beq .L163 - 2792 0018 0C29 cmp r1, #12 - 2793 001a 11D1 bne .L166 -4344:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** - 2794 .loc 1 4344 0 - 2795 001c 0368 ldr r3, [r0] - 2796 001e 1B6C ldr r3, [r3, #64] - 2797 .LVL291: -4346:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** } - 2798 .loc 1 4346 0 - 2799 0020 03E0 b .L159 - 2800 .LVL292: - 2801 .L167: -4304:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** { - 2802 .loc 1 4304 0 discriminator 2 - 2803 0022 0029 cmp r1, #0 - 2804 0024 0CD1 bne .L166 -4312:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** - 2805 .loc 1 4312 0 - 2806 0026 0368 ldr r3, [r0] - 2807 0028 5B6B ldr r3, [r3, #52] - 2808 .LVL293: - 2809 .L159: -4353:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** return tmpreg; - 2810 .loc 1 4353 0 - 2811 002a 3C22 movs r2, #60 - 2812 002c 0021 movs r1, #0 - 2813 .LVL294: - 2814 002e 8154 strb r1, [r0, r2] - 2815 .LVL295: - 2816 .L157: -4355:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** - 2817 .loc 1 4355 0 - 2818 0030 1800 movs r0, r3 - 2819 .LVL296: - 2820 @ sp needed - 2821 0032 7047 bx lr - 2822 .LVL297: - 2823 .L160: -4322:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** - 2824 .loc 1 4322 0 - 2825 0034 0368 ldr r3, [r0] - ARM GAS /tmp/cccrAAAm.s page 149 - - - 2826 0036 9B6B ldr r3, [r3, #56] - 2827 .LVL298: -4324:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** } - 2828 .loc 1 4324 0 - 2829 0038 F7E7 b .L159 - 2830 .LVL299: - 2831 .L163: -4333:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** - 2832 .loc 1 4333 0 - 2833 003a 0368 ldr r3, [r0] - 2834 003c DB6B ldr r3, [r3, #60] - 2835 .LVL300: -4335:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** } - 2836 .loc 1 4335 0 - 2837 003e F4E7 b .L159 - 2838 .LVL301: - 2839 .L166: -4300:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** - 2840 .loc 1 4300 0 - 2841 0040 0023 movs r3, #0 - 2842 0042 F2E7 b .L159 - 2843 .L165: -4302:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** - 2844 .loc 1 4302 0 - 2845 0044 0223 movs r3, #2 - 2846 0046 F3E7 b .L157 - 2847 .cfi_endproc - 2848 .LFE112: - 2850 .section .text.HAL_TIM_PeriodElapsedCallback,"ax",%progbits - 2851 .align 1 - 2852 .weak HAL_TIM_PeriodElapsedCallback - 2853 .syntax unified - 2854 .code 16 - 2855 .thumb_func - 2856 .fpu softvfp - 2858 HAL_TIM_PeriodElapsedCallback: - 2859 .LFB113: -4386:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** /* Prevent unused argument(s) compilation warning */ - 2860 .loc 1 4386 0 - 2861 .cfi_startproc - 2862 @ args = 0, pretend = 0, frame = 0 - 2863 @ frame_needed = 0, uses_anonymous_args = 0 - 2864 @ link register save eliminated. - 2865 .LVL302: -4394:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** /** - 2866 .loc 1 4394 0 - 2867 @ sp needed - 2868 0000 7047 bx lr - 2869 .cfi_endproc - 2870 .LFE113: - 2872 .section .text.TIM_DMAPeriodElapsedCplt,"ax",%progbits - 2873 .align 1 - 2874 .syntax unified - 2875 .code 16 - 2876 .thumb_func - 2877 .fpu softvfp - 2879 TIM_DMAPeriodElapsedCplt: - ARM GAS /tmp/cccrAAAm.s page 150 - - - 2880 .LFB128: -4645:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** TIM_HandleTypeDef* htim = ( TIM_HandleTypeDef* )((DMA_HandleTypeDef* )hdma)->Parent; - 2881 .loc 1 4645 0 - 2882 .cfi_startproc - 2883 @ args = 0, pretend = 0, frame = 0 - 2884 @ frame_needed = 0, uses_anonymous_args = 0 - 2885 .LVL303: - 2886 0000 10B5 push {r4, lr} - 2887 .LCFI24: - 2888 .cfi_def_cfa_offset 8 - 2889 .cfi_offset 4, -8 - 2890 .cfi_offset 14, -4 -4646:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** - 2891 .loc 1 4646 0 - 2892 0002 406A ldr r0, [r0, #36] - 2893 .LVL304: -4648:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** - 2894 .loc 1 4648 0 - 2895 0004 3D23 movs r3, #61 - 2896 0006 0122 movs r2, #1 - 2897 0008 C254 strb r2, [r0, r3] -4650:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** } - 2898 .loc 1 4650 0 - 2899 000a FFF7FEFF bl HAL_TIM_PeriodElapsedCallback - 2900 .LVL305: -4651:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** - 2901 .loc 1 4651 0 - 2902 @ sp needed - 2903 000e 10BD pop {r4, pc} - 2904 .cfi_endproc - 2905 .LFE128: - 2907 .section .text.HAL_TIM_OC_DelayElapsedCallback,"ax",%progbits - 2908 .align 1 - 2909 .weak HAL_TIM_OC_DelayElapsedCallback - 2910 .syntax unified - 2911 .code 16 - 2912 .thumb_func - 2913 .fpu softvfp - 2915 HAL_TIM_OC_DelayElapsedCallback: - 2916 .LFB114: -4401:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** /* Prevent unused argument(s) compilation warning */ - 2917 .loc 1 4401 0 - 2918 .cfi_startproc - 2919 @ args = 0, pretend = 0, frame = 0 - 2920 @ frame_needed = 0, uses_anonymous_args = 0 - 2921 @ link register save eliminated. - 2922 .LVL306: -4408:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** /** - 2923 .loc 1 4408 0 - 2924 @ sp needed - 2925 0000 7047 bx lr - 2926 .cfi_endproc - 2927 .LFE114: - 2929 .section .text.HAL_TIM_IC_CaptureCallback,"ax",%progbits - 2930 .align 1 - 2931 .weak HAL_TIM_IC_CaptureCallback - 2932 .syntax unified - ARM GAS /tmp/cccrAAAm.s page 151 - - - 2933 .code 16 - 2934 .thumb_func - 2935 .fpu softvfp - 2937 HAL_TIM_IC_CaptureCallback: - 2938 .LFB115: -4415:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** /* Prevent unused argument(s) compilation warning */ - 2939 .loc 1 4415 0 - 2940 .cfi_startproc - 2941 @ args = 0, pretend = 0, frame = 0 - 2942 @ frame_needed = 0, uses_anonymous_args = 0 - 2943 @ link register save eliminated. - 2944 .LVL307: -4422:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** - 2945 .loc 1 4422 0 - 2946 @ sp needed - 2947 0000 7047 bx lr - 2948 .cfi_endproc - 2949 .LFE115: - 2951 .section .text.TIM_DMACaptureCplt,"ax",%progbits - 2952 .align 1 - 2953 .global TIM_DMACaptureCplt - 2954 .syntax unified - 2955 .code 16 - 2956 .thumb_func - 2957 .fpu softvfp - 2959 TIM_DMACaptureCplt: - 2960 .LFB127: -4612:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** TIM_HandleTypeDef* htim = ( TIM_HandleTypeDef* )((DMA_HandleTypeDef* )hdma)->Parent; - 2961 .loc 1 4612 0 - 2962 .cfi_startproc - 2963 @ args = 0, pretend = 0, frame = 0 - 2964 @ frame_needed = 0, uses_anonymous_args = 0 - 2965 .LVL308: - 2966 0000 10B5 push {r4, lr} - 2967 .LCFI25: - 2968 .cfi_def_cfa_offset 8 - 2969 .cfi_offset 4, -8 - 2970 .cfi_offset 14, -4 -4613:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** - 2971 .loc 1 4613 0 - 2972 0002 446A ldr r4, [r0, #36] - 2973 .LVL309: -4615:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** - 2974 .loc 1 4615 0 - 2975 0004 3D23 movs r3, #61 - 2976 0006 0122 movs r2, #1 - 2977 0008 E254 strb r2, [r4, r3] -4617:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** { - 2978 .loc 1 4617 0 - 2979 000a 636A ldr r3, [r4, #36] - 2980 000c 8342 cmp r3, r0 - 2981 000e 0BD0 beq .L177 -4621:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** { - 2982 .loc 1 4621 0 - 2983 0010 A36A ldr r3, [r4, #40] - 2984 0012 8342 cmp r3, r0 - 2985 0014 10D0 beq .L178 - ARM GAS /tmp/cccrAAAm.s page 152 - - -4625:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** { - 2986 .loc 1 4625 0 - 2987 0016 E36A ldr r3, [r4, #44] - 2988 0018 8342 cmp r3, r0 - 2989 001a 10D0 beq .L179 -4629:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** { - 2990 .loc 1 4629 0 - 2991 001c 236B ldr r3, [r4, #48] - 2992 001e 8342 cmp r3, r0 - 2993 0020 04D1 bne .L174 -4631:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** } - 2994 .loc 1 4631 0 - 2995 0022 0823 movs r3, #8 - 2996 0024 2377 strb r3, [r4, #28] - 2997 0026 01E0 b .L174 - 2998 .L177: -4619:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** } - 2999 .loc 1 4619 0 - 3000 0028 0123 movs r3, #1 - 3001 002a 2377 strb r3, [r4, #28] - 3002 .L174: -4634:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** - 3003 .loc 1 4634 0 - 3004 002c 2000 movs r0, r4 - 3005 .LVL310: - 3006 002e FFF7FEFF bl HAL_TIM_IC_CaptureCallback - 3007 .LVL311: -4636:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** } - 3008 .loc 1 4636 0 - 3009 0032 0023 movs r3, #0 - 3010 0034 2377 strb r3, [r4, #28] -4637:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** - 3011 .loc 1 4637 0 - 3012 @ sp needed - 3013 .LVL312: - 3014 0036 10BD pop {r4, pc} - 3015 .LVL313: - 3016 .L178: -4623:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** } - 3017 .loc 1 4623 0 - 3018 0038 0223 movs r3, #2 - 3019 003a 2377 strb r3, [r4, #28] - 3020 003c F6E7 b .L174 - 3021 .L179: -4627:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** } - 3022 .loc 1 4627 0 - 3023 003e 0423 movs r3, #4 - 3024 0040 2377 strb r3, [r4, #28] - 3025 0042 F3E7 b .L174 - 3026 .cfi_endproc - 3027 .LFE127: - 3029 .section .text.HAL_TIM_PWM_PulseFinishedCallback,"ax",%progbits - 3030 .align 1 - 3031 .weak HAL_TIM_PWM_PulseFinishedCallback - 3032 .syntax unified - 3033 .code 16 - 3034 .thumb_func - ARM GAS /tmp/cccrAAAm.s page 153 - - - 3035 .fpu softvfp - 3037 HAL_TIM_PWM_PulseFinishedCallback: - 3038 .LFB116: -4430:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** /* Prevent unused argument(s) compilation warning */ - 3039 .loc 1 4430 0 - 3040 .cfi_startproc - 3041 @ args = 0, pretend = 0, frame = 0 - 3042 @ frame_needed = 0, uses_anonymous_args = 0 - 3043 @ link register save eliminated. - 3044 .LVL314: -4437:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** - 3045 .loc 1 4437 0 - 3046 @ sp needed - 3047 0000 7047 bx lr - 3048 .cfi_endproc - 3049 .LFE116: - 3051 .section .text.TIM_DMADelayPulseCplt,"ax",%progbits - 3052 .align 1 - 3053 .global TIM_DMADelayPulseCplt - 3054 .syntax unified - 3055 .code 16 - 3056 .thumb_func - 3057 .fpu softvfp - 3059 TIM_DMADelayPulseCplt: - 3060 .LFB126: -4580:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** TIM_HandleTypeDef* htim = ( TIM_HandleTypeDef* )((DMA_HandleTypeDef* )hdma)->Parent; - 3061 .loc 1 4580 0 - 3062 .cfi_startproc - 3063 @ args = 0, pretend = 0, frame = 0 - 3064 @ frame_needed = 0, uses_anonymous_args = 0 - 3065 .LVL315: - 3066 0000 10B5 push {r4, lr} - 3067 .LCFI26: - 3068 .cfi_def_cfa_offset 8 - 3069 .cfi_offset 4, -8 - 3070 .cfi_offset 14, -4 -4581:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** - 3071 .loc 1 4581 0 - 3072 0002 446A ldr r4, [r0, #36] - 3073 .LVL316: -4583:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** - 3074 .loc 1 4583 0 - 3075 0004 3D23 movs r3, #61 - 3076 0006 0122 movs r2, #1 - 3077 0008 E254 strb r2, [r4, r3] -4585:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** { - 3078 .loc 1 4585 0 - 3079 000a 636A ldr r3, [r4, #36] - 3080 000c 8342 cmp r3, r0 - 3081 000e 0BD0 beq .L186 -4589:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** { - 3082 .loc 1 4589 0 - 3083 0010 A36A ldr r3, [r4, #40] - 3084 0012 8342 cmp r3, r0 - 3085 0014 10D0 beq .L187 -4593:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** { - 3086 .loc 1 4593 0 - ARM GAS /tmp/cccrAAAm.s page 154 - - - 3087 0016 E36A ldr r3, [r4, #44] - 3088 0018 8342 cmp r3, r0 - 3089 001a 10D0 beq .L188 -4597:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** { - 3090 .loc 1 4597 0 - 3091 001c 236B ldr r3, [r4, #48] - 3092 001e 8342 cmp r3, r0 - 3093 0020 04D1 bne .L183 -4599:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** } - 3094 .loc 1 4599 0 - 3095 0022 0823 movs r3, #8 - 3096 0024 2377 strb r3, [r4, #28] - 3097 0026 01E0 b .L183 - 3098 .L186: -4587:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** } - 3099 .loc 1 4587 0 - 3100 0028 0123 movs r3, #1 - 3101 002a 2377 strb r3, [r4, #28] - 3102 .L183: -4602:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** - 3103 .loc 1 4602 0 - 3104 002c 2000 movs r0, r4 - 3105 .LVL317: - 3106 002e FFF7FEFF bl HAL_TIM_PWM_PulseFinishedCallback - 3107 .LVL318: -4604:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** } - 3108 .loc 1 4604 0 - 3109 0032 0023 movs r3, #0 - 3110 0034 2377 strb r3, [r4, #28] -4605:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** /** - 3111 .loc 1 4605 0 - 3112 @ sp needed - 3113 .LVL319: - 3114 0036 10BD pop {r4, pc} - 3115 .LVL320: - 3116 .L187: -4591:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** } - 3117 .loc 1 4591 0 - 3118 0038 0223 movs r3, #2 - 3119 003a 2377 strb r3, [r4, #28] - 3120 003c F6E7 b .L183 - 3121 .L188: -4595:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** } - 3122 .loc 1 4595 0 - 3123 003e 0423 movs r3, #4 - 3124 0040 2377 strb r3, [r4, #28] - 3125 0042 F3E7 b .L183 - 3126 .cfi_endproc - 3127 .LFE126: - 3129 .section .text.HAL_TIM_TriggerCallback,"ax",%progbits - 3130 .align 1 - 3131 .weak HAL_TIM_TriggerCallback - 3132 .syntax unified - 3133 .code 16 - 3134 .thumb_func - 3135 .fpu softvfp - 3137 HAL_TIM_TriggerCallback: - ARM GAS /tmp/cccrAAAm.s page 155 - - - 3138 .LFB117: -4445:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** /* Prevent unused argument(s) compilation warning */ - 3139 .loc 1 4445 0 - 3140 .cfi_startproc - 3141 @ args = 0, pretend = 0, frame = 0 - 3142 @ frame_needed = 0, uses_anonymous_args = 0 - 3143 @ link register save eliminated. - 3144 .LVL321: -4452:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** - 3145 .loc 1 4452 0 - 3146 @ sp needed - 3147 0000 7047 bx lr - 3148 .cfi_endproc - 3149 .LFE117: - 3151 .section .text.HAL_TIM_IRQHandler,"ax",%progbits - 3152 .align 1 - 3153 .global HAL_TIM_IRQHandler - 3154 .syntax unified - 3155 .code 16 - 3156 .thumb_func - 3157 .fpu softvfp - 3159 HAL_TIM_IRQHandler: - 3160 .LFB95: -2770:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** /* Capture compare 1 event */ - 3161 .loc 1 2770 0 - 3162 .cfi_startproc - 3163 @ args = 0, pretend = 0, frame = 0 - 3164 @ frame_needed = 0, uses_anonymous_args = 0 - 3165 .LVL322: - 3166 0000 10B5 push {r4, lr} - 3167 .LCFI27: - 3168 .cfi_def_cfa_offset 8 - 3169 .cfi_offset 4, -8 - 3170 .cfi_offset 14, -4 - 3171 0002 0400 movs r4, r0 -2772:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** { - 3172 .loc 1 2772 0 - 3173 0004 0368 ldr r3, [r0] - 3174 0006 1A69 ldr r2, [r3, #16] - 3175 0008 9207 lsls r2, r2, #30 - 3176 000a 0FD5 bpl .L191 -2774:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** { - 3177 .loc 1 2774 0 - 3178 000c DA68 ldr r2, [r3, #12] - 3179 000e 9207 lsls r2, r2, #30 - 3180 0010 0CD5 bpl .L191 -2777:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** htim->Channel = HAL_TIM_ACTIVE_CHANNEL_1; - 3181 .loc 1 2777 0 - 3182 0012 0322 movs r2, #3 - 3183 0014 5242 rsbs r2, r2, #0 - 3184 0016 1A61 str r2, [r3, #16] -2778:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** - 3185 .loc 1 2778 0 - 3186 0018 0123 movs r3, #1 - 3187 001a 0377 strb r3, [r0, #28] -2781:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** { - 3188 .loc 1 2781 0 - ARM GAS /tmp/cccrAAAm.s page 156 - - - 3189 001c 0368 ldr r3, [r0] - 3190 001e 9B69 ldr r3, [r3, #24] - 3191 0020 9B07 lsls r3, r3, #30 - 3192 0022 63D0 beq .L192 -2783:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** } - 3193 .loc 1 2783 0 - 3194 0024 FFF7FEFF bl HAL_TIM_IC_CaptureCallback - 3195 .LVL323: - 3196 .L193: -2791:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** } - 3197 .loc 1 2791 0 - 3198 0028 0023 movs r3, #0 - 3199 002a 2377 strb r3, [r4, #28] - 3200 .L191: -2796:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** { - 3201 .loc 1 2796 0 - 3202 002c 2368 ldr r3, [r4] - 3203 002e 1A69 ldr r2, [r3, #16] - 3204 0030 5207 lsls r2, r2, #29 - 3205 0032 12D5 bpl .L194 -2798:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** { - 3206 .loc 1 2798 0 - 3207 0034 DA68 ldr r2, [r3, #12] - 3208 0036 5207 lsls r2, r2, #29 - 3209 0038 0FD5 bpl .L194 -2800:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** htim->Channel = HAL_TIM_ACTIVE_CHANNEL_2; - 3210 .loc 1 2800 0 - 3211 003a 0522 movs r2, #5 - 3212 003c 5242 rsbs r2, r2, #0 - 3213 003e 1A61 str r2, [r3, #16] -2801:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** /* Input capture event */ - 3214 .loc 1 2801 0 - 3215 0040 0223 movs r3, #2 - 3216 0042 2377 strb r3, [r4, #28] -2803:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** { - 3217 .loc 1 2803 0 - 3218 0044 2368 ldr r3, [r4] - 3219 0046 9A69 ldr r2, [r3, #24] - 3220 0048 C023 movs r3, #192 - 3221 004a 9B00 lsls r3, r3, #2 - 3222 004c 1A42 tst r2, r3 - 3223 004e 53D0 beq .L195 -2805:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** } - 3224 .loc 1 2805 0 - 3225 0050 2000 movs r0, r4 - 3226 0052 FFF7FEFF bl HAL_TIM_IC_CaptureCallback - 3227 .LVL324: - 3228 .L196: -2813:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** } - 3229 .loc 1 2813 0 - 3230 0056 0023 movs r3, #0 - 3231 0058 2377 strb r3, [r4, #28] - 3232 .L194: -2817:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** { - 3233 .loc 1 2817 0 - 3234 005a 2368 ldr r3, [r4] - 3235 005c 1A69 ldr r2, [r3, #16] - ARM GAS /tmp/cccrAAAm.s page 157 - - - 3236 005e 1207 lsls r2, r2, #28 - 3237 0060 10D5 bpl .L197 -2819:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** { - 3238 .loc 1 2819 0 - 3239 0062 DA68 ldr r2, [r3, #12] - 3240 0064 1207 lsls r2, r2, #28 - 3241 0066 0DD5 bpl .L197 -2821:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** htim->Channel = HAL_TIM_ACTIVE_CHANNEL_3; - 3242 .loc 1 2821 0 - 3243 0068 0922 movs r2, #9 - 3244 006a 5242 rsbs r2, r2, #0 - 3245 006c 1A61 str r2, [r3, #16] -2822:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** /* Input capture event */ - 3246 .loc 1 2822 0 - 3247 006e 0423 movs r3, #4 - 3248 0070 2377 strb r3, [r4, #28] -2824:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** { - 3249 .loc 1 2824 0 - 3250 0072 2368 ldr r3, [r4] - 3251 0074 DB69 ldr r3, [r3, #28] - 3252 0076 9B07 lsls r3, r3, #30 - 3253 0078 45D0 beq .L198 -2826:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** } - 3254 .loc 1 2826 0 - 3255 007a 2000 movs r0, r4 - 3256 007c FFF7FEFF bl HAL_TIM_IC_CaptureCallback - 3257 .LVL325: - 3258 .L199: -2834:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** } - 3259 .loc 1 2834 0 - 3260 0080 0023 movs r3, #0 - 3261 0082 2377 strb r3, [r4, #28] - 3262 .L197: -2838:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** { - 3263 .loc 1 2838 0 - 3264 0084 2368 ldr r3, [r4] - 3265 0086 1A69 ldr r2, [r3, #16] - 3266 0088 D206 lsls r2, r2, #27 - 3267 008a 12D5 bpl .L200 -2840:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** { - 3268 .loc 1 2840 0 - 3269 008c DA68 ldr r2, [r3, #12] - 3270 008e D206 lsls r2, r2, #27 - 3271 0090 0FD5 bpl .L200 -2842:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** htim->Channel = HAL_TIM_ACTIVE_CHANNEL_4; - 3272 .loc 1 2842 0 - 3273 0092 1122 movs r2, #17 - 3274 0094 5242 rsbs r2, r2, #0 - 3275 0096 1A61 str r2, [r3, #16] -2843:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** /* Input capture event */ - 3276 .loc 1 2843 0 - 3277 0098 0823 movs r3, #8 - 3278 009a 2377 strb r3, [r4, #28] -2845:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** { - 3279 .loc 1 2845 0 - 3280 009c 2368 ldr r3, [r4] - 3281 009e DA69 ldr r2, [r3, #28] - ARM GAS /tmp/cccrAAAm.s page 158 - - - 3282 00a0 C023 movs r3, #192 - 3283 00a2 9B00 lsls r3, r3, #2 - 3284 00a4 1A42 tst r2, r3 - 3285 00a6 35D0 beq .L201 -2847:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** } - 3286 .loc 1 2847 0 - 3287 00a8 2000 movs r0, r4 - 3288 00aa FFF7FEFF bl HAL_TIM_IC_CaptureCallback - 3289 .LVL326: - 3290 .L202: -2855:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** } - 3291 .loc 1 2855 0 - 3292 00ae 0023 movs r3, #0 - 3293 00b0 2377 strb r3, [r4, #28] - 3294 .L200: -2859:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** { - 3295 .loc 1 2859 0 - 3296 00b2 2368 ldr r3, [r4] - 3297 00b4 1A69 ldr r2, [r3, #16] - 3298 00b6 D207 lsls r2, r2, #31 - 3299 00b8 02D5 bpl .L203 -2861:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** { - 3300 .loc 1 2861 0 - 3301 00ba DA68 ldr r2, [r3, #12] - 3302 00bc D207 lsls r2, r2, #31 - 3303 00be 30D4 bmi .L207 - 3304 .L203: -2868:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** { - 3305 .loc 1 2868 0 - 3306 00c0 2368 ldr r3, [r4] - 3307 00c2 1A69 ldr r2, [r3, #16] - 3308 00c4 1206 lsls r2, r2, #24 - 3309 00c6 02D5 bpl .L204 -2870:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** { - 3310 .loc 1 2870 0 - 3311 00c8 DA68 ldr r2, [r3, #12] - 3312 00ca 1206 lsls r2, r2, #24 - 3313 00cc 30D4 bmi .L208 - 3314 .L204: -2877:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** { - 3315 .loc 1 2877 0 - 3316 00ce 2368 ldr r3, [r4] - 3317 00d0 1A69 ldr r2, [r3, #16] - 3318 00d2 5206 lsls r2, r2, #25 - 3319 00d4 02D5 bpl .L205 -2879:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** { - 3320 .loc 1 2879 0 - 3321 00d6 DA68 ldr r2, [r3, #12] - 3322 00d8 5206 lsls r2, r2, #25 - 3323 00da 30D4 bmi .L209 - 3324 .L205: -2886:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** { - 3325 .loc 1 2886 0 - 3326 00dc 2368 ldr r3, [r4] - 3327 00de 1A69 ldr r2, [r3, #16] - 3328 00e0 9206 lsls r2, r2, #26 - 3329 00e2 02D5 bpl .L190 - ARM GAS /tmp/cccrAAAm.s page 159 - - -2888:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** { - 3330 .loc 1 2888 0 - 3331 00e4 DA68 ldr r2, [r3, #12] - 3332 00e6 9206 lsls r2, r2, #26 - 3333 00e8 30D4 bmi .L210 - 3334 .L190: -2894:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** - 3335 .loc 1 2894 0 - 3336 @ sp needed - 3337 .LVL327: - 3338 00ea 10BD pop {r4, pc} - 3339 .LVL328: - 3340 .L192: -2788:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** HAL_TIM_PWM_PulseFinishedCallback(htim); - 3341 .loc 1 2788 0 - 3342 00ec FFF7FEFF bl HAL_TIM_OC_DelayElapsedCallback - 3343 .LVL329: -2789:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** } - 3344 .loc 1 2789 0 - 3345 00f0 2000 movs r0, r4 - 3346 00f2 FFF7FEFF bl HAL_TIM_PWM_PulseFinishedCallback - 3347 .LVL330: - 3348 00f6 97E7 b .L193 - 3349 .L195: -2810:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** HAL_TIM_PWM_PulseFinishedCallback(htim); - 3350 .loc 1 2810 0 - 3351 00f8 2000 movs r0, r4 - 3352 00fa FFF7FEFF bl HAL_TIM_OC_DelayElapsedCallback - 3353 .LVL331: -2811:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** } - 3354 .loc 1 2811 0 - 3355 00fe 2000 movs r0, r4 - 3356 0100 FFF7FEFF bl HAL_TIM_PWM_PulseFinishedCallback - 3357 .LVL332: - 3358 0104 A7E7 b .L196 - 3359 .L198: -2831:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** HAL_TIM_PWM_PulseFinishedCallback(htim); - 3360 .loc 1 2831 0 - 3361 0106 2000 movs r0, r4 - 3362 0108 FFF7FEFF bl HAL_TIM_OC_DelayElapsedCallback - 3363 .LVL333: -2832:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** } - 3364 .loc 1 2832 0 - 3365 010c 2000 movs r0, r4 - 3366 010e FFF7FEFF bl HAL_TIM_PWM_PulseFinishedCallback - 3367 .LVL334: - 3368 0112 B5E7 b .L199 - 3369 .L201: -2852:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** HAL_TIM_PWM_PulseFinishedCallback(htim); - 3370 .loc 1 2852 0 - 3371 0114 2000 movs r0, r4 - 3372 0116 FFF7FEFF bl HAL_TIM_OC_DelayElapsedCallback - 3373 .LVL335: -2853:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** } - 3374 .loc 1 2853 0 - 3375 011a 2000 movs r0, r4 - 3376 011c FFF7FEFF bl HAL_TIM_PWM_PulseFinishedCallback - ARM GAS /tmp/cccrAAAm.s page 160 - - - 3377 .LVL336: - 3378 0120 C5E7 b .L202 - 3379 .L207: -2863:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** HAL_TIM_PeriodElapsedCallback(htim); - 3380 .loc 1 2863 0 - 3381 0122 0222 movs r2, #2 - 3382 0124 5242 rsbs r2, r2, #0 - 3383 0126 1A61 str r2, [r3, #16] -2864:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** } - 3384 .loc 1 2864 0 - 3385 0128 2000 movs r0, r4 - 3386 012a FFF7FEFF bl HAL_TIM_PeriodElapsedCallback - 3387 .LVL337: - 3388 012e C7E7 b .L203 - 3389 .L208: -2872:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** HAL_TIMEx_BreakCallback(htim); - 3390 .loc 1 2872 0 - 3391 0130 8122 movs r2, #129 - 3392 0132 5242 rsbs r2, r2, #0 - 3393 0134 1A61 str r2, [r3, #16] -2873:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** } - 3394 .loc 1 2873 0 - 3395 0136 2000 movs r0, r4 - 3396 0138 FFF7FEFF bl HAL_TIMEx_BreakCallback - 3397 .LVL338: - 3398 013c C7E7 b .L204 - 3399 .L209: -2881:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** HAL_TIM_TriggerCallback(htim); - 3400 .loc 1 2881 0 - 3401 013e 4122 movs r2, #65 - 3402 0140 5242 rsbs r2, r2, #0 - 3403 0142 1A61 str r2, [r3, #16] -2882:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** } - 3404 .loc 1 2882 0 - 3405 0144 2000 movs r0, r4 - 3406 0146 FFF7FEFF bl HAL_TIM_TriggerCallback - 3407 .LVL339: - 3408 014a C7E7 b .L205 - 3409 .L210: -2890:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** HAL_TIMEx_CommutationCallback(htim); - 3410 .loc 1 2890 0 - 3411 014c 2122 movs r2, #33 - 3412 014e 5242 rsbs r2, r2, #0 - 3413 0150 1A61 str r2, [r3, #16] -2891:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** } - 3414 .loc 1 2891 0 - 3415 0152 2000 movs r0, r4 - 3416 0154 FFF7FEFF bl HAL_TIMEx_CommutationCallback - 3417 .LVL340: -2894:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** - 3418 .loc 1 2894 0 - 3419 0158 C7E7 b .L190 - 3420 .cfi_endproc - 3421 .LFE95: - 3423 .section .text.TIM_DMATriggerCplt,"ax",%progbits - 3424 .align 1 - 3425 .syntax unified - ARM GAS /tmp/cccrAAAm.s page 161 - - - 3426 .code 16 - 3427 .thumb_func - 3428 .fpu softvfp - 3430 TIM_DMATriggerCplt: - 3431 .LFB129: -4659:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** TIM_HandleTypeDef* htim = ( TIM_HandleTypeDef* )((DMA_HandleTypeDef* )hdma)->Parent; - 3432 .loc 1 4659 0 - 3433 .cfi_startproc - 3434 @ args = 0, pretend = 0, frame = 0 - 3435 @ frame_needed = 0, uses_anonymous_args = 0 - 3436 .LVL341: - 3437 0000 10B5 push {r4, lr} - 3438 .LCFI28: - 3439 .cfi_def_cfa_offset 8 - 3440 .cfi_offset 4, -8 - 3441 .cfi_offset 14, -4 -4660:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** - 3442 .loc 1 4660 0 - 3443 0002 406A ldr r0, [r0, #36] - 3444 .LVL342: -4662:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** - 3445 .loc 1 4662 0 - 3446 0004 3D23 movs r3, #61 - 3447 0006 0122 movs r2, #1 - 3448 0008 C254 strb r2, [r0, r3] -4664:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** } - 3449 .loc 1 4664 0 - 3450 000a FFF7FEFF bl HAL_TIM_TriggerCallback - 3451 .LVL343: -4665:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** - 3452 .loc 1 4665 0 - 3453 @ sp needed - 3454 000e 10BD pop {r4, pc} - 3455 .cfi_endproc - 3456 .LFE129: - 3458 .section .text.HAL_TIM_ErrorCallback,"ax",%progbits - 3459 .align 1 - 3460 .weak HAL_TIM_ErrorCallback - 3461 .syntax unified - 3462 .code 16 - 3463 .thumb_func - 3464 .fpu softvfp - 3466 HAL_TIM_ErrorCallback: - 3467 .LFB118: -4460:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** /* Prevent unused argument(s) compilation warning */ - 3468 .loc 1 4460 0 - 3469 .cfi_startproc - 3470 @ args = 0, pretend = 0, frame = 0 - 3471 @ frame_needed = 0, uses_anonymous_args = 0 - 3472 @ link register save eliminated. - 3473 .LVL344: -4467:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** - 3474 .loc 1 4467 0 - 3475 @ sp needed - 3476 0000 7047 bx lr - 3477 .cfi_endproc - 3478 .LFE118: - ARM GAS /tmp/cccrAAAm.s page 162 - - - 3480 .section .text.TIM_DMAError,"ax",%progbits - 3481 .align 1 - 3482 .global TIM_DMAError - 3483 .syntax unified - 3484 .code 16 - 3485 .thumb_func - 3486 .fpu softvfp - 3488 TIM_DMAError: - 3489 .LFB125: -4566:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** TIM_HandleTypeDef* htim = ( TIM_HandleTypeDef* )((DMA_HandleTypeDef* )hdma)->Parent; - 3490 .loc 1 4566 0 - 3491 .cfi_startproc - 3492 @ args = 0, pretend = 0, frame = 0 - 3493 @ frame_needed = 0, uses_anonymous_args = 0 - 3494 .LVL345: - 3495 0000 10B5 push {r4, lr} - 3496 .LCFI29: - 3497 .cfi_def_cfa_offset 8 - 3498 .cfi_offset 4, -8 - 3499 .cfi_offset 14, -4 -4567:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** - 3500 .loc 1 4567 0 - 3501 0002 406A ldr r0, [r0, #36] - 3502 .LVL346: -4569:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** - 3503 .loc 1 4569 0 - 3504 0004 3D23 movs r3, #61 - 3505 0006 0122 movs r2, #1 - 3506 0008 C254 strb r2, [r0, r3] -4571:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** } - 3507 .loc 1 4571 0 - 3508 000a FFF7FEFF bl HAL_TIM_ErrorCallback - 3509 .LVL347: -4572:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** - 3510 .loc 1 4572 0 - 3511 @ sp needed - 3512 000e 10BD pop {r4, pc} - 3513 .cfi_endproc - 3514 .LFE125: - 3516 .section .text.HAL_TIM_Base_GetState,"ax",%progbits - 3517 .align 1 - 3518 .global HAL_TIM_Base_GetState - 3519 .syntax unified - 3520 .code 16 - 3521 .thumb_func - 3522 .fpu softvfp - 3524 HAL_TIM_Base_GetState: - 3525 .LFB119: -4494:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** return htim->State; - 3526 .loc 1 4494 0 - 3527 .cfi_startproc - 3528 @ args = 0, pretend = 0, frame = 0 - 3529 @ frame_needed = 0, uses_anonymous_args = 0 - 3530 @ link register save eliminated. - 3531 .LVL348: -4495:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** } - 3532 .loc 1 4495 0 - ARM GAS /tmp/cccrAAAm.s page 163 - - - 3533 0000 3D23 movs r3, #61 - 3534 0002 C05C ldrb r0, [r0, r3] - 3535 .LVL349: - 3536 0004 C0B2 uxtb r0, r0 -4496:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** - 3537 .loc 1 4496 0 - 3538 @ sp needed - 3539 0006 7047 bx lr - 3540 .cfi_endproc - 3541 .LFE119: - 3543 .section .text.HAL_TIM_OC_GetState,"ax",%progbits - 3544 .align 1 - 3545 .global HAL_TIM_OC_GetState - 3546 .syntax unified - 3547 .code 16 - 3548 .thumb_func - 3549 .fpu softvfp - 3551 HAL_TIM_OC_GetState: - 3552 .LFB120: -4504:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** return htim->State; - 3553 .loc 1 4504 0 - 3554 .cfi_startproc - 3555 @ args = 0, pretend = 0, frame = 0 - 3556 @ frame_needed = 0, uses_anonymous_args = 0 - 3557 @ link register save eliminated. - 3558 .LVL350: -4505:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** } - 3559 .loc 1 4505 0 - 3560 0000 3D23 movs r3, #61 - 3561 0002 C05C ldrb r0, [r0, r3] - 3562 .LVL351: - 3563 0004 C0B2 uxtb r0, r0 -4506:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** - 3564 .loc 1 4506 0 - 3565 @ sp needed - 3566 0006 7047 bx lr - 3567 .cfi_endproc - 3568 .LFE120: - 3570 .section .text.HAL_TIM_PWM_GetState,"ax",%progbits - 3571 .align 1 - 3572 .global HAL_TIM_PWM_GetState - 3573 .syntax unified - 3574 .code 16 - 3575 .thumb_func - 3576 .fpu softvfp - 3578 HAL_TIM_PWM_GetState: - 3579 .LFB121: -4514:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** return htim->State; - 3580 .loc 1 4514 0 - 3581 .cfi_startproc - 3582 @ args = 0, pretend = 0, frame = 0 - 3583 @ frame_needed = 0, uses_anonymous_args = 0 - 3584 @ link register save eliminated. - 3585 .LVL352: -4515:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** } - 3586 .loc 1 4515 0 - 3587 0000 3D23 movs r3, #61 - ARM GAS /tmp/cccrAAAm.s page 164 - - - 3588 0002 C05C ldrb r0, [r0, r3] - 3589 .LVL353: - 3590 0004 C0B2 uxtb r0, r0 -4516:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** - 3591 .loc 1 4516 0 - 3592 @ sp needed - 3593 0006 7047 bx lr - 3594 .cfi_endproc - 3595 .LFE121: - 3597 .section .text.HAL_TIM_IC_GetState,"ax",%progbits - 3598 .align 1 - 3599 .global HAL_TIM_IC_GetState - 3600 .syntax unified - 3601 .code 16 - 3602 .thumb_func - 3603 .fpu softvfp - 3605 HAL_TIM_IC_GetState: - 3606 .LFB122: -4524:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** return htim->State; - 3607 .loc 1 4524 0 - 3608 .cfi_startproc - 3609 @ args = 0, pretend = 0, frame = 0 - 3610 @ frame_needed = 0, uses_anonymous_args = 0 - 3611 @ link register save eliminated. - 3612 .LVL354: -4525:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** } - 3613 .loc 1 4525 0 - 3614 0000 3D23 movs r3, #61 - 3615 0002 C05C ldrb r0, [r0, r3] - 3616 .LVL355: - 3617 0004 C0B2 uxtb r0, r0 -4526:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** - 3618 .loc 1 4526 0 - 3619 @ sp needed - 3620 0006 7047 bx lr - 3621 .cfi_endproc - 3622 .LFE122: - 3624 .section .text.HAL_TIM_OnePulse_GetState,"ax",%progbits - 3625 .align 1 - 3626 .global HAL_TIM_OnePulse_GetState - 3627 .syntax unified - 3628 .code 16 - 3629 .thumb_func - 3630 .fpu softvfp - 3632 HAL_TIM_OnePulse_GetState: - 3633 .LFB123: -4534:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** return htim->State; - 3634 .loc 1 4534 0 - 3635 .cfi_startproc - 3636 @ args = 0, pretend = 0, frame = 0 - 3637 @ frame_needed = 0, uses_anonymous_args = 0 - 3638 @ link register save eliminated. - 3639 .LVL356: -4535:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** } - 3640 .loc 1 4535 0 - 3641 0000 3D23 movs r3, #61 - 3642 0002 C05C ldrb r0, [r0, r3] - ARM GAS /tmp/cccrAAAm.s page 165 - - - 3643 .LVL357: - 3644 0004 C0B2 uxtb r0, r0 -4536:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** - 3645 .loc 1 4536 0 - 3646 @ sp needed - 3647 0006 7047 bx lr - 3648 .cfi_endproc - 3649 .LFE123: - 3651 .section .text.HAL_TIM_Encoder_GetState,"ax",%progbits - 3652 .align 1 - 3653 .global HAL_TIM_Encoder_GetState - 3654 .syntax unified - 3655 .code 16 - 3656 .thumb_func - 3657 .fpu softvfp - 3659 HAL_TIM_Encoder_GetState: - 3660 .LFB124: -4544:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** return htim->State; - 3661 .loc 1 4544 0 - 3662 .cfi_startproc - 3663 @ args = 0, pretend = 0, frame = 0 - 3664 @ frame_needed = 0, uses_anonymous_args = 0 - 3665 @ link register save eliminated. - 3666 .LVL358: -4545:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** } - 3667 .loc 1 4545 0 - 3668 0000 3D23 movs r3, #61 - 3669 0002 C05C ldrb r0, [r0, r3] - 3670 .LVL359: - 3671 0004 C0B2 uxtb r0, r0 -4546:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** - 3672 .loc 1 4546 0 - 3673 @ sp needed - 3674 0006 7047 bx lr - 3675 .cfi_endproc - 3676 .LFE124: - 3678 .section .text.TIM_Base_SetConfig,"ax",%progbits - 3679 .align 1 - 3680 .global TIM_Base_SetConfig - 3681 .syntax unified - 3682 .code 16 - 3683 .thumb_func - 3684 .fpu softvfp - 3686 TIM_Base_SetConfig: - 3687 .LFB130: -4674:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** uint32_t tmpcr1 = 0U; - 3688 .loc 1 4674 0 - 3689 .cfi_startproc - 3690 @ args = 0, pretend = 0, frame = 0 - 3691 @ frame_needed = 0, uses_anonymous_args = 0 - 3692 @ link register save eliminated. - 3693 .LVL360: -4676:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** - 3694 .loc 1 4676 0 - 3695 0000 0368 ldr r3, [r0] - 3696 .LVL361: -4679:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** { - ARM GAS /tmp/cccrAAAm.s page 166 - - - 3697 .loc 1 4679 0 - 3698 0002 214A ldr r2, .L227 - 3699 0004 9042 cmp r0, r2 - 3700 0006 06D0 beq .L221 -4679:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** { - 3701 .loc 1 4679 0 is_stmt 0 discriminator 1 - 3702 0008 8022 movs r2, #128 - 3703 000a D205 lsls r2, r2, #23 - 3704 000c 9042 cmp r0, r2 - 3705 000e 02D0 beq .L221 -4679:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** { - 3706 .loc 1 4679 0 discriminator 2 - 3707 0010 1E4A ldr r2, .L227+4 - 3708 0012 9042 cmp r0, r2 - 3709 0014 03D1 bne .L222 - 3710 .L221: -4682:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** tmpcr1 |= Structure->CounterMode; - 3711 .loc 1 4682 0 is_stmt 1 - 3712 0016 7022 movs r2, #112 - 3713 0018 9343 bics r3, r2 - 3714 .LVL362: -4683:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** } - 3715 .loc 1 4683 0 - 3716 001a 4A68 ldr r2, [r1, #4] - 3717 001c 1343 orrs r3, r2 - 3718 .LVL363: - 3719 .L222: -4686:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** { - 3720 .loc 1 4686 0 - 3721 001e 1A4A ldr r2, .L227 - 3722 0020 9042 cmp r0, r2 - 3723 0022 12D0 beq .L223 -4686:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** { - 3724 .loc 1 4686 0 is_stmt 0 discriminator 1 - 3725 0024 8022 movs r2, #128 - 3726 0026 D205 lsls r2, r2, #23 - 3727 0028 9042 cmp r0, r2 - 3728 002a 0ED0 beq .L223 -4686:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** { - 3729 .loc 1 4686 0 discriminator 2 - 3730 002c 174A ldr r2, .L227+4 - 3731 002e 9042 cmp r0, r2 - 3732 0030 0BD0 beq .L223 -4686:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** { - 3733 .loc 1 4686 0 discriminator 3 - 3734 0032 174A ldr r2, .L227+8 - 3735 0034 9042 cmp r0, r2 - 3736 0036 08D0 beq .L223 -4686:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** { - 3737 .loc 1 4686 0 discriminator 4 - 3738 0038 164A ldr r2, .L227+12 - 3739 003a 9042 cmp r0, r2 - 3740 003c 05D0 beq .L223 -4686:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** { - 3741 .loc 1 4686 0 discriminator 5 - 3742 003e 164A ldr r2, .L227+16 - 3743 0040 9042 cmp r0, r2 - ARM GAS /tmp/cccrAAAm.s page 167 - - - 3744 0042 02D0 beq .L223 -4686:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** { - 3745 .loc 1 4686 0 discriminator 6 - 3746 0044 154A ldr r2, .L227+20 - 3747 0046 9042 cmp r0, r2 - 3748 0048 03D1 bne .L224 - 3749 .L223: -4689:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** tmpcr1 |= (uint32_t)Structure->ClockDivision; - 3750 .loc 1 4689 0 is_stmt 1 - 3751 004a 154A ldr r2, .L227+24 - 3752 004c 1340 ands r3, r2 - 3753 .LVL364: -4690:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** } - 3754 .loc 1 4690 0 - 3755 004e CA68 ldr r2, [r1, #12] - 3756 0050 1343 orrs r3, r2 - 3757 .LVL365: - 3758 .L224: -4694:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** - 3759 .loc 1 4694 0 - 3760 0052 8022 movs r2, #128 - 3761 0054 9343 bics r3, r2 - 3762 .LVL366: - 3763 0056 4A69 ldr r2, [r1, #20] - 3764 0058 1343 orrs r3, r2 - 3765 .LVL367: -4696:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** - 3766 .loc 1 4696 0 - 3767 005a 0360 str r3, [r0] -4699:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** - 3768 .loc 1 4699 0 - 3769 005c 8B68 ldr r3, [r1, #8] - 3770 .LVL368: - 3771 005e C362 str r3, [r0, #44] - 3772 .LVL369: -4702:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** - 3773 .loc 1 4702 0 - 3774 0060 0B68 ldr r3, [r1] - 3775 0062 8362 str r3, [r0, #40] -4704:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** { - 3776 .loc 1 4704 0 - 3777 0064 084B ldr r3, .L227 - 3778 0066 9842 cmp r0, r3 - 3779 0068 08D0 beq .L225 -4704:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** { - 3780 .loc 1 4704 0 is_stmt 0 discriminator 1 - 3781 006a 0A4B ldr r3, .L227+12 - 3782 006c 9842 cmp r0, r3 - 3783 006e 05D0 beq .L225 -4704:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** { - 3784 .loc 1 4704 0 discriminator 2 - 3785 0070 094B ldr r3, .L227+16 - 3786 0072 9842 cmp r0, r3 - 3787 0074 02D0 beq .L225 -4704:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** { - 3788 .loc 1 4704 0 discriminator 3 - 3789 0076 094B ldr r3, .L227+20 - ARM GAS /tmp/cccrAAAm.s page 168 - - - 3790 0078 9842 cmp r0, r3 - 3791 007a 01D1 bne .L226 - 3792 .L225: -4707:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** } - 3793 .loc 1 4707 0 is_stmt 1 - 3794 007c 0B69 ldr r3, [r1, #16] - 3795 007e 0363 str r3, [r0, #48] - 3796 .L226: -4712:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** } - 3797 .loc 1 4712 0 - 3798 0080 0123 movs r3, #1 - 3799 0082 4361 str r3, [r0, #20] -4713:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** - 3800 .loc 1 4713 0 - 3801 @ sp needed - 3802 0084 7047 bx lr - 3803 .L228: - 3804 0086 C046 .align 2 - 3805 .L227: - 3806 0088 002C0140 .word 1073818624 - 3807 008c 00040040 .word 1073742848 - 3808 0090 00200040 .word 1073750016 - 3809 0094 00400140 .word 1073823744 - 3810 0098 00440140 .word 1073824768 - 3811 009c 00480140 .word 1073825792 - 3812 00a0 FFFCFFFF .word -769 - 3813 .cfi_endproc - 3814 .LFE130: - 3816 .section .text.HAL_TIM_Base_Init,"ax",%progbits - 3817 .align 1 - 3818 .global HAL_TIM_Base_Init - 3819 .syntax unified - 3820 .code 16 - 3821 .thumb_func - 3822 .fpu softvfp - 3824 HAL_TIM_Base_Init: - 3825 .LFB37: - 204:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** /* Check the TIM handle allocation */ - 3826 .loc 1 204 0 - 3827 .cfi_startproc - 3828 @ args = 0, pretend = 0, frame = 0 - 3829 @ frame_needed = 0, uses_anonymous_args = 0 - 3830 .LVL370: - 3831 0000 70B5 push {r4, r5, r6, lr} - 3832 .LCFI30: - 3833 .cfi_def_cfa_offset 16 - 3834 .cfi_offset 4, -16 - 3835 .cfi_offset 5, -12 - 3836 .cfi_offset 6, -8 - 3837 .cfi_offset 14, -4 - 3838 0002 041E subs r4, r0, #0 - 206:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** { - 3839 .loc 1 206 0 - 3840 0004 14D0 beq .L232 - 217:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** { - 3841 .loc 1 217 0 - 3842 0006 3D23 movs r3, #61 - ARM GAS /tmp/cccrAAAm.s page 169 - - - 3843 0008 C35C ldrb r3, [r0, r3] - 3844 000a 002B cmp r3, #0 - 3845 000c 0AD0 beq .L233 - 3846 .LVL371: - 3847 .L231: - 227:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** - 3848 .loc 1 227 0 - 3849 000e 3D25 movs r5, #61 - 3850 0010 0223 movs r3, #2 - 3851 0012 6355 strb r3, [r4, r5] - 230:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** - 3852 .loc 1 230 0 - 3853 0014 211D adds r1, r4, #4 - 3854 0016 2068 ldr r0, [r4] - 3855 0018 FFF7FEFF bl TIM_Base_SetConfig - 3856 .LVL372: - 233:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** - 3857 .loc 1 233 0 - 3858 001c 0123 movs r3, #1 - 3859 001e 6355 strb r3, [r4, r5] - 235:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** } - 3860 .loc 1 235 0 - 3861 0020 0020 movs r0, #0 - 3862 .L230: - 236:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** - 3863 .loc 1 236 0 - 3864 @ sp needed - 3865 .LVL373: - 3866 0022 70BD pop {r4, r5, r6, pc} - 3867 .LVL374: - 3868 .L233: - 220:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** - 3869 .loc 1 220 0 - 3870 0024 3C33 adds r3, r3, #60 - 3871 0026 0022 movs r2, #0 - 3872 0028 C254 strb r2, [r0, r3] - 223:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** } - 3873 .loc 1 223 0 - 3874 002a FFF7FEFF bl HAL_TIM_Base_MspInit - 3875 .LVL375: - 3876 002e EEE7 b .L231 - 3877 .LVL376: - 3878 .L232: - 208:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** } - 3879 .loc 1 208 0 - 3880 0030 0120 movs r0, #1 - 3881 .LVL377: - 3882 0032 F6E7 b .L230 - 3883 .cfi_endproc - 3884 .LFE37: - 3886 .section .text.HAL_TIM_OC_Init,"ax",%progbits - 3887 .align 1 - 3888 .global HAL_TIM_OC_Init - 3889 .syntax unified - 3890 .code 16 - 3891 .thumb_func - 3892 .fpu softvfp - ARM GAS /tmp/cccrAAAm.s page 170 - - - 3894 HAL_TIM_OC_Init: - 3895 .LFB47: - 482:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** /* Check the TIM handle allocation */ - 3896 .loc 1 482 0 - 3897 .cfi_startproc - 3898 @ args = 0, pretend = 0, frame = 0 - 3899 @ frame_needed = 0, uses_anonymous_args = 0 - 3900 .LVL378: - 3901 0000 70B5 push {r4, r5, r6, lr} - 3902 .LCFI31: - 3903 .cfi_def_cfa_offset 16 - 3904 .cfi_offset 4, -16 - 3905 .cfi_offset 5, -12 - 3906 .cfi_offset 6, -8 - 3907 .cfi_offset 14, -4 - 3908 0002 041E subs r4, r0, #0 - 484:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** { - 3909 .loc 1 484 0 - 3910 0004 14D0 beq .L237 - 495:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** { - 3911 .loc 1 495 0 - 3912 0006 3D23 movs r3, #61 - 3913 0008 C35C ldrb r3, [r0, r3] - 3914 000a 002B cmp r3, #0 - 3915 000c 0AD0 beq .L238 - 3916 .LVL379: - 3917 .L236: - 505:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** - 3918 .loc 1 505 0 - 3919 000e 3D25 movs r5, #61 - 3920 0010 0223 movs r3, #2 - 3921 0012 6355 strb r3, [r4, r5] - 508:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** - 3922 .loc 1 508 0 - 3923 0014 211D adds r1, r4, #4 - 3924 0016 2068 ldr r0, [r4] - 3925 0018 FFF7FEFF bl TIM_Base_SetConfig - 3926 .LVL380: - 511:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** - 3927 .loc 1 511 0 - 3928 001c 0123 movs r3, #1 - 3929 001e 6355 strb r3, [r4, r5] - 513:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** } - 3930 .loc 1 513 0 - 3931 0020 0020 movs r0, #0 - 3932 .L235: - 514:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** - 3933 .loc 1 514 0 - 3934 @ sp needed - 3935 .LVL381: - 3936 0022 70BD pop {r4, r5, r6, pc} - 3937 .LVL382: - 3938 .L238: - 498:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** - 3939 .loc 1 498 0 - 3940 0024 3C33 adds r3, r3, #60 - 3941 0026 0022 movs r2, #0 - ARM GAS /tmp/cccrAAAm.s page 171 - - - 3942 0028 C254 strb r2, [r0, r3] - 501:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** } - 3943 .loc 1 501 0 - 3944 002a FFF7FEFF bl HAL_TIM_OC_MspInit - 3945 .LVL383: - 3946 002e EEE7 b .L236 - 3947 .LVL384: - 3948 .L237: - 486:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** } - 3949 .loc 1 486 0 - 3950 0030 0120 movs r0, #1 - 3951 .LVL385: - 3952 0032 F6E7 b .L235 - 3953 .cfi_endproc - 3954 .LFE47: - 3956 .section .text.HAL_TIM_PWM_Init,"ax",%progbits - 3957 .align 1 - 3958 .global HAL_TIM_PWM_Init - 3959 .syntax unified - 3960 .code 16 - 3961 .thumb_func - 3962 .fpu softvfp - 3964 HAL_TIM_PWM_Init: - 3965 .LFB57: - 989:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** /* Check the TIM handle allocation */ - 3966 .loc 1 989 0 - 3967 .cfi_startproc - 3968 @ args = 0, pretend = 0, frame = 0 - 3969 @ frame_needed = 0, uses_anonymous_args = 0 - 3970 .LVL386: - 3971 0000 70B5 push {r4, r5, r6, lr} - 3972 .LCFI32: - 3973 .cfi_def_cfa_offset 16 - 3974 .cfi_offset 4, -16 - 3975 .cfi_offset 5, -12 - 3976 .cfi_offset 6, -8 - 3977 .cfi_offset 14, -4 - 3978 0002 041E subs r4, r0, #0 - 991:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** { - 3979 .loc 1 991 0 - 3980 0004 14D0 beq .L242 -1002:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** { - 3981 .loc 1 1002 0 - 3982 0006 3D23 movs r3, #61 - 3983 0008 C35C ldrb r3, [r0, r3] - 3984 000a 002B cmp r3, #0 - 3985 000c 0AD0 beq .L243 - 3986 .LVL387: - 3987 .L241: -1012:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** - 3988 .loc 1 1012 0 - 3989 000e 3D25 movs r5, #61 - 3990 0010 0223 movs r3, #2 - 3991 0012 6355 strb r3, [r4, r5] -1015:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** - 3992 .loc 1 1015 0 - 3993 0014 211D adds r1, r4, #4 - ARM GAS /tmp/cccrAAAm.s page 172 - - - 3994 0016 2068 ldr r0, [r4] - 3995 0018 FFF7FEFF bl TIM_Base_SetConfig - 3996 .LVL388: -1018:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** - 3997 .loc 1 1018 0 - 3998 001c 0123 movs r3, #1 - 3999 001e 6355 strb r3, [r4, r5] -1020:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** } - 4000 .loc 1 1020 0 - 4001 0020 0020 movs r0, #0 - 4002 .L240: -1021:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** - 4003 .loc 1 1021 0 - 4004 @ sp needed - 4005 .LVL389: - 4006 0022 70BD pop {r4, r5, r6, pc} - 4007 .LVL390: - 4008 .L243: -1005:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** - 4009 .loc 1 1005 0 - 4010 0024 3C33 adds r3, r3, #60 - 4011 0026 0022 movs r2, #0 - 4012 0028 C254 strb r2, [r0, r3] -1008:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** } - 4013 .loc 1 1008 0 - 4014 002a FFF7FEFF bl HAL_TIM_PWM_MspInit - 4015 .LVL391: - 4016 002e EEE7 b .L241 - 4017 .LVL392: - 4018 .L242: - 993:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** } - 4019 .loc 1 993 0 - 4020 0030 0120 movs r0, #1 - 4021 .LVL393: - 4022 0032 F6E7 b .L240 - 4023 .cfi_endproc - 4024 .LFE57: - 4026 .section .text.HAL_TIM_IC_Init,"ax",%progbits - 4027 .align 1 - 4028 .global HAL_TIM_IC_Init - 4029 .syntax unified - 4030 .code 16 - 4031 .thumb_func - 4032 .fpu softvfp - 4034 HAL_TIM_IC_Init: - 4035 .LFB67: -1499:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** /* Check the TIM handle allocation */ - 4036 .loc 1 1499 0 - 4037 .cfi_startproc - 4038 @ args = 0, pretend = 0, frame = 0 - 4039 @ frame_needed = 0, uses_anonymous_args = 0 - 4040 .LVL394: - 4041 0000 70B5 push {r4, r5, r6, lr} - 4042 .LCFI33: - 4043 .cfi_def_cfa_offset 16 - 4044 .cfi_offset 4, -16 - 4045 .cfi_offset 5, -12 - ARM GAS /tmp/cccrAAAm.s page 173 - - - 4046 .cfi_offset 6, -8 - 4047 .cfi_offset 14, -4 - 4048 0002 041E subs r4, r0, #0 -1501:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** { - 4049 .loc 1 1501 0 - 4050 0004 14D0 beq .L247 -1512:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** { - 4051 .loc 1 1512 0 - 4052 0006 3D23 movs r3, #61 - 4053 0008 C35C ldrb r3, [r0, r3] - 4054 000a 002B cmp r3, #0 - 4055 000c 0AD0 beq .L248 - 4056 .LVL395: - 4057 .L246: -1522:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** - 4058 .loc 1 1522 0 - 4059 000e 3D25 movs r5, #61 - 4060 0010 0223 movs r3, #2 - 4061 0012 6355 strb r3, [r4, r5] -1525:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** - 4062 .loc 1 1525 0 - 4063 0014 211D adds r1, r4, #4 - 4064 0016 2068 ldr r0, [r4] - 4065 0018 FFF7FEFF bl TIM_Base_SetConfig - 4066 .LVL396: -1528:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** - 4067 .loc 1 1528 0 - 4068 001c 0123 movs r3, #1 - 4069 001e 6355 strb r3, [r4, r5] -1530:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** } - 4070 .loc 1 1530 0 - 4071 0020 0020 movs r0, #0 - 4072 .L245: -1531:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** - 4073 .loc 1 1531 0 - 4074 @ sp needed - 4075 .LVL397: - 4076 0022 70BD pop {r4, r5, r6, pc} - 4077 .LVL398: - 4078 .L248: -1515:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** - 4079 .loc 1 1515 0 - 4080 0024 3C33 adds r3, r3, #60 - 4081 0026 0022 movs r2, #0 - 4082 0028 C254 strb r2, [r0, r3] -1518:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** } - 4083 .loc 1 1518 0 - 4084 002a FFF7FEFF bl HAL_TIM_IC_MspInit - 4085 .LVL399: - 4086 002e EEE7 b .L246 - 4087 .LVL400: - 4088 .L247: -1503:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** } - 4089 .loc 1 1503 0 - 4090 0030 0120 movs r0, #1 - 4091 .LVL401: - 4092 0032 F6E7 b .L245 - ARM GAS /tmp/cccrAAAm.s page 174 - - - 4093 .cfi_endproc - 4094 .LFE67: - 4096 .section .text.HAL_TIM_OnePulse_Init,"ax",%progbits - 4097 .align 1 - 4098 .global HAL_TIM_OnePulse_Init - 4099 .syntax unified - 4100 .code 16 - 4101 .thumb_func - 4102 .fpu softvfp - 4104 HAL_TIM_OnePulse_Init: - 4105 .LFB77: -1975:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** /* Check the TIM handle allocation */ - 4106 .loc 1 1975 0 - 4107 .cfi_startproc - 4108 @ args = 0, pretend = 0, frame = 0 - 4109 @ frame_needed = 0, uses_anonymous_args = 0 - 4110 .LVL402: - 4111 0000 70B5 push {r4, r5, r6, lr} - 4112 .LCFI34: - 4113 .cfi_def_cfa_offset 16 - 4114 .cfi_offset 4, -16 - 4115 .cfi_offset 5, -12 - 4116 .cfi_offset 6, -8 - 4117 .cfi_offset 14, -4 - 4118 0002 0400 movs r4, r0 - 4119 0004 0D00 movs r5, r1 -1977:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** { - 4120 .loc 1 1977 0 - 4121 0006 0028 cmp r0, #0 - 4122 0008 1DD0 beq .L252 -1989:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** { - 4123 .loc 1 1989 0 - 4124 000a 3D23 movs r3, #61 - 4125 000c C35C ldrb r3, [r0, r3] - 4126 000e 002B cmp r3, #0 - 4127 0010 13D0 beq .L253 - 4128 .LVL403: - 4129 .L251: -1999:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** - 4130 .loc 1 1999 0 - 4131 0012 3D26 movs r6, #61 - 4132 0014 0223 movs r3, #2 - 4133 0016 A355 strb r3, [r4, r6] -2002:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** - 4134 .loc 1 2002 0 - 4135 0018 211D adds r1, r4, #4 - 4136 001a 2068 ldr r0, [r4] - 4137 001c FFF7FEFF bl TIM_Base_SetConfig - 4138 .LVL404: -2005:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** - 4139 .loc 1 2005 0 - 4140 0020 2268 ldr r2, [r4] - 4141 0022 1368 ldr r3, [r2] - 4142 0024 0821 movs r1, #8 - 4143 0026 8B43 bics r3, r1 - 4144 0028 1360 str r3, [r2] -2008:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** - ARM GAS /tmp/cccrAAAm.s page 175 - - - 4145 .loc 1 2008 0 - 4146 002a 2368 ldr r3, [r4] - 4147 002c 1968 ldr r1, [r3] - 4148 002e 2943 orrs r1, r5 - 4149 0030 1960 str r1, [r3] -2011:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** - 4150 .loc 1 2011 0 - 4151 0032 0123 movs r3, #1 - 4152 0034 A355 strb r3, [r4, r6] -2013:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** } - 4153 .loc 1 2013 0 - 4154 0036 0020 movs r0, #0 - 4155 .L250: -2014:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** - 4156 .loc 1 2014 0 - 4157 @ sp needed - 4158 .LVL405: - 4159 .LVL406: - 4160 0038 70BD pop {r4, r5, r6, pc} - 4161 .LVL407: - 4162 .L253: -1992:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** - 4163 .loc 1 1992 0 - 4164 003a 3C33 adds r3, r3, #60 - 4165 003c 0022 movs r2, #0 - 4166 003e C254 strb r2, [r0, r3] -1995:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** } - 4167 .loc 1 1995 0 - 4168 0040 FFF7FEFF bl HAL_TIM_OnePulse_MspInit - 4169 .LVL408: - 4170 0044 E5E7 b .L251 - 4171 .LVL409: - 4172 .L252: -1979:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** } - 4173 .loc 1 1979 0 - 4174 0046 0120 movs r0, #1 - 4175 .LVL410: - 4176 0048 F6E7 b .L250 - 4177 .cfi_endproc - 4178 .LFE77: - 4180 .section .text.HAL_TIM_Encoder_Init,"ax",%progbits - 4181 .align 1 - 4182 .global HAL_TIM_Encoder_Init - 4183 .syntax unified - 4184 .code 16 - 4185 .thumb_func - 4186 .fpu softvfp - 4188 HAL_TIM_Encoder_Init: - 4189 .LFB85: -2248:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** uint32_t tmpsmcr = 0U; - 4190 .loc 1 2248 0 - 4191 .cfi_startproc - 4192 @ args = 0, pretend = 0, frame = 0 - 4193 @ frame_needed = 0, uses_anonymous_args = 0 - 4194 .LVL411: - 4195 0000 F0B5 push {r4, r5, r6, r7, lr} - 4196 .LCFI35: - ARM GAS /tmp/cccrAAAm.s page 176 - - - 4197 .cfi_def_cfa_offset 20 - 4198 .cfi_offset 4, -20 - 4199 .cfi_offset 5, -16 - 4200 .cfi_offset 6, -12 - 4201 .cfi_offset 7, -8 - 4202 .cfi_offset 14, -4 - 4203 0002 C646 mov lr, r8 - 4204 0004 00B5 push {lr} - 4205 .LCFI36: - 4206 .cfi_def_cfa_offset 24 - 4207 .cfi_offset 8, -24 - 4208 0006 0400 movs r4, r0 - 4209 0008 0D00 movs r5, r1 - 4210 .LVL412: -2254:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** { - 4211 .loc 1 2254 0 - 4212 000a 0028 cmp r0, #0 - 4213 000c 43D0 beq .L257 -2274:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** { - 4214 .loc 1 2274 0 - 4215 000e 3D23 movs r3, #61 - 4216 0010 C35C ldrb r3, [r0, r3] - 4217 0012 002B cmp r3, #0 - 4218 0014 39D0 beq .L258 - 4219 .LVL413: - 4220 .L256: -2284:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** - 4221 .loc 1 2284 0 - 4222 0016 3D26 movs r6, #61 - 4223 0018 0223 movs r3, #2 - 4224 001a A355 strb r3, [r4, r6] -2287:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** - 4225 .loc 1 2287 0 - 4226 001c 2100 movs r1, r4 - 4227 001e 04C9 ldmia r1!, {r2} - 4228 0020 9368 ldr r3, [r2, #8] - 4229 0022 0720 movs r0, #7 - 4230 0024 8343 bics r3, r0 - 4231 0026 9360 str r3, [r2, #8] -2290:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** - 4232 .loc 1 2290 0 - 4233 0028 2068 ldr r0, [r4] - 4234 002a FFF7FEFF bl TIM_Base_SetConfig - 4235 .LVL414: -2293:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** - 4236 .loc 1 2293 0 - 4237 002e 2168 ldr r1, [r4] - 4238 0030 8868 ldr r0, [r1, #8] - 4239 .LVL415: -2296:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** - 4240 .loc 1 2296 0 - 4241 0032 8A69 ldr r2, [r1, #24] - 4242 .LVL416: -2299:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** - 4243 .loc 1 2299 0 - 4244 0034 0F6A ldr r7, [r1, #32] - 4245 .LVL417: - ARM GAS /tmp/cccrAAAm.s page 177 - - -2302:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** - 4246 .loc 1 2302 0 - 4247 0036 2B68 ldr r3, [r5] - 4248 0038 1843 orrs r0, r3 - 4249 .LVL418: - 4250 003a 8046 mov r8, r0 - 4251 .LVL419: -2305:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** tmpccmr1 |= (sConfig->IC1Selection | (sConfig->IC2Selection << 8U)); - 4252 .loc 1 2305 0 - 4253 003c 174B ldr r3, .L259 - 4254 003e 1340 ands r3, r2 - 4255 .LVL420: -2306:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** - 4256 .loc 1 2306 0 - 4257 0040 AA69 ldr r2, [r5, #24] - 4258 0042 1202 lsls r2, r2, #8 - 4259 0044 A868 ldr r0, [r5, #8] - 4260 .LVL421: - 4261 0046 0243 orrs r2, r0 - 4262 0048 1A43 orrs r2, r3 - 4263 .LVL422: -2310:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** tmpccmr1 |= sConfig->IC1Prescaler | (sConfig->IC2Prescaler << 8U); - 4264 .loc 1 2310 0 - 4265 004a 154B ldr r3, .L259+4 - 4266 004c 1A40 ands r2, r3 - 4267 .LVL423: -2311:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** tmpccmr1 |= (sConfig->IC1Filter << 4U) | (sConfig->IC2Filter << 12U); - 4268 .loc 1 2311 0 - 4269 004e EB69 ldr r3, [r5, #28] - 4270 0050 1B02 lsls r3, r3, #8 - 4271 0052 E868 ldr r0, [r5, #12] - 4272 0054 0343 orrs r3, r0 - 4273 0056 1A43 orrs r2, r3 - 4274 .LVL424: -2312:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** - 4275 .loc 1 2312 0 - 4276 0058 2B69 ldr r3, [r5, #16] - 4277 005a 1B01 lsls r3, r3, #4 - 4278 005c 286A ldr r0, [r5, #32] - 4279 005e 0003 lsls r0, r0, #12 - 4280 0060 0343 orrs r3, r0 - 4281 0062 1343 orrs r3, r2 - 4282 .LVL425: -2316:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** tmpccer |= sConfig->IC1Polarity | (sConfig->IC2Polarity << 4U); - 4283 .loc 1 2316 0 - 4284 0064 AA22 movs r2, #170 - 4285 0066 9743 bics r7, r2 - 4286 .LVL426: -2317:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** - 4287 .loc 1 2317 0 - 4288 0068 6A68 ldr r2, [r5, #4] - 4289 006a 6D69 ldr r5, [r5, #20] - 4290 .LVL427: - 4291 006c 2D01 lsls r5, r5, #4 - 4292 006e 2A43 orrs r2, r5 - 4293 0070 3A43 orrs r2, r7 - 4294 .LVL428: - ARM GAS /tmp/cccrAAAm.s page 178 - - -2320:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** - 4295 .loc 1 2320 0 - 4296 0072 4046 mov r0, r8 - 4297 0074 8860 str r0, [r1, #8] -2323:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** - 4298 .loc 1 2323 0 - 4299 0076 2168 ldr r1, [r4] - 4300 0078 8B61 str r3, [r1, #24] -2326:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** - 4301 .loc 1 2326 0 - 4302 007a 2368 ldr r3, [r4] - 4303 .LVL429: - 4304 007c 1A62 str r2, [r3, #32] - 4305 .LVL430: -2329:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** - 4306 .loc 1 2329 0 - 4307 007e 0123 movs r3, #1 - 4308 0080 A355 strb r3, [r4, r6] -2331:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** } - 4309 .loc 1 2331 0 - 4310 0082 0020 movs r0, #0 - 4311 .LVL431: - 4312 .L255: -2332:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** - 4313 .loc 1 2332 0 - 4314 @ sp needed - 4315 .LVL432: - 4316 0084 04BC pop {r2} - 4317 0086 9046 mov r8, r2 - 4318 0088 F0BD pop {r4, r5, r6, r7, pc} - 4319 .LVL433: - 4320 .L258: -2277:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** - 4321 .loc 1 2277 0 - 4322 008a 3C33 adds r3, r3, #60 - 4323 008c 0022 movs r2, #0 - 4324 008e C254 strb r2, [r0, r3] -2280:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** } - 4325 .loc 1 2280 0 - 4326 0090 FFF7FEFF bl HAL_TIM_Encoder_MspInit - 4327 .LVL434: - 4328 0094 BFE7 b .L256 - 4329 .LVL435: - 4330 .L257: -2256:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** } - 4331 .loc 1 2256 0 - 4332 0096 0120 movs r0, #1 - 4333 .LVL436: - 4334 0098 F4E7 b .L255 - 4335 .L260: - 4336 009a C046 .align 2 - 4337 .L259: - 4338 009c FCFCFFFF .word -772 - 4339 00a0 0303FFFF .word -64765 - 4340 .cfi_endproc - 4341 .LFE85: - 4343 .section .text.TIM_OC2_SetConfig,"ax",%progbits - ARM GAS /tmp/cccrAAAm.s page 179 - - - 4344 .align 1 - 4345 .global TIM_OC2_SetConfig - 4346 .syntax unified - 4347 .code 16 - 4348 .thumb_func - 4349 .fpu softvfp - 4351 TIM_OC2_SetConfig: - 4352 .LFB132: -4796:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** uint32_t tmpccmrx = 0U; - 4353 .loc 1 4796 0 - 4354 .cfi_startproc - 4355 @ args = 0, pretend = 0, frame = 0 - 4356 @ frame_needed = 0, uses_anonymous_args = 0 - 4357 .LVL437: - 4358 0000 70B5 push {r4, r5, r6, lr} - 4359 .LCFI37: - 4360 .cfi_def_cfa_offset 16 - 4361 .cfi_offset 4, -16 - 4362 .cfi_offset 5, -12 - 4363 .cfi_offset 6, -8 - 4364 .cfi_offset 14, -4 - 4365 .LVL438: -4802:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** - 4366 .loc 1 4802 0 - 4367 0002 036A ldr r3, [r0, #32] - 4368 0004 1022 movs r2, #16 - 4369 0006 9343 bics r3, r2 - 4370 0008 0362 str r3, [r0, #32] -4805:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** /* Get the TIMx CR2 register value */ - 4371 .loc 1 4805 0 - 4372 000a 036A ldr r3, [r0, #32] - 4373 .LVL439: -4807:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** - 4374 .loc 1 4807 0 - 4375 000c 4268 ldr r2, [r0, #4] - 4376 .LVL440: -4810:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** - 4377 .loc 1 4810 0 - 4378 000e 8469 ldr r4, [r0, #24] - 4379 .LVL441: -4814:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** - 4380 .loc 1 4814 0 - 4381 0010 174D ldr r5, .L266 - 4382 0012 2C40 ands r4, r5 - 4383 .LVL442: -4817:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** - 4384 .loc 1 4817 0 - 4385 0014 0D68 ldr r5, [r1] - 4386 0016 2D02 lsls r5, r5, #8 - 4387 0018 2543 orrs r5, r4 - 4388 .LVL443: -4820:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** /* Set the Output Compare Polarity */ - 4389 .loc 1 4820 0 - 4390 001a 2024 movs r4, #32 - 4391 001c A343 bics r3, r4 - 4392 .LVL444: -4822:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** - ARM GAS /tmp/cccrAAAm.s page 180 - - - 4393 .loc 1 4822 0 - 4394 001e 8C68 ldr r4, [r1, #8] - 4395 0020 2401 lsls r4, r4, #4 - 4396 0022 2343 orrs r3, r4 - 4397 .LVL445: -4824:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** { - 4398 .loc 1 4824 0 - 4399 0024 134C ldr r4, .L266+4 - 4400 0026 A042 cmp r0, r4 - 4401 0028 19D0 beq .L265 - 4402 .L262: -4837:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** { - 4403 .loc 1 4837 0 - 4404 002a 124C ldr r4, .L266+4 - 4405 002c A042 cmp r0, r4 - 4406 002e 08D0 beq .L263 -4837:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** { - 4407 .loc 1 4837 0 is_stmt 0 discriminator 1 - 4408 0030 114C ldr r4, .L266+8 - 4409 0032 A042 cmp r0, r4 - 4410 0034 05D0 beq .L263 -4837:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** { - 4411 .loc 1 4837 0 discriminator 2 - 4412 0036 114C ldr r4, .L266+12 - 4413 0038 A042 cmp r0, r4 - 4414 003a 02D0 beq .L263 -4837:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** { - 4415 .loc 1 4837 0 discriminator 3 - 4416 003c 104C ldr r4, .L266+16 - 4417 003e A042 cmp r0, r4 - 4418 0040 07D1 bne .L264 - 4419 .L263: - 4420 .LVL446: -4845:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** /* Set the Output Idle state */ - 4421 .loc 1 4845 0 is_stmt 1 - 4422 0042 104C ldr r4, .L266+20 - 4423 0044 1440 ands r4, r2 - 4424 .LVL447: -4847:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** /* Set the Output N Idle state */ - 4425 .loc 1 4847 0 - 4426 0046 4A69 ldr r2, [r1, #20] - 4427 0048 9200 lsls r2, r2, #2 - 4428 004a 2243 orrs r2, r4 - 4429 .LVL448: -4849:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** } - 4430 .loc 1 4849 0 - 4431 004c 8C69 ldr r4, [r1, #24] - 4432 004e A600 lsls r6, r4, #2 - 4433 0050 3243 orrs r2, r6 - 4434 .LVL449: - 4435 .L264: -4853:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** - 4436 .loc 1 4853 0 - 4437 0052 4260 str r2, [r0, #4] -4856:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** - 4438 .loc 1 4856 0 - 4439 0054 8561 str r5, [r0, #24] - ARM GAS /tmp/cccrAAAm.s page 181 - - -4859:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** - 4440 .loc 1 4859 0 - 4441 0056 4A68 ldr r2, [r1, #4] - 4442 .LVL450: - 4443 0058 8263 str r2, [r0, #56] -4862:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** } - 4444 .loc 1 4862 0 - 4445 005a 0362 str r3, [r0, #32] -4863:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** - 4446 .loc 1 4863 0 - 4447 @ sp needed - 4448 .LVL451: - 4449 005c 70BD pop {r4, r5, r6, pc} - 4450 .LVL452: - 4451 .L265: -4829:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** /* Set the Output N Polarity */ - 4452 .loc 1 4829 0 - 4453 005e 8024 movs r4, #128 - 4454 0060 A343 bics r3, r4 - 4455 .LVL453: - 4456 0062 1C00 movs r4, r3 - 4457 .LVL454: -4831:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** /* Reset the Output N State */ - 4458 .loc 1 4831 0 - 4459 0064 CB68 ldr r3, [r1, #12] - 4460 .LVL455: - 4461 0066 1B01 lsls r3, r3, #4 - 4462 0068 2343 orrs r3, r4 - 4463 .LVL456: -4833:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** - 4464 .loc 1 4833 0 - 4465 006a 4024 movs r4, #64 - 4466 006c A343 bics r3, r4 - 4467 .LVL457: - 4468 006e DCE7 b .L262 - 4469 .L267: - 4470 .align 2 - 4471 .L266: - 4472 0070 FF8CFFFF .word -29441 - 4473 0074 002C0140 .word 1073818624 - 4474 0078 00400140 .word 1073823744 - 4475 007c 00440140 .word 1073824768 - 4476 0080 00480140 .word 1073825792 - 4477 0084 FFF3FFFF .word -3073 - 4478 .cfi_endproc - 4479 .LFE132: - 4481 .section .text.HAL_TIM_OC_ConfigChannel,"ax",%progbits - 4482 .align 1 - 4483 .global HAL_TIM_OC_ConfigChannel - 4484 .syntax unified - 4485 .code 16 - 4486 .thumb_func - 4487 .fpu softvfp - 4489 HAL_TIM_OC_ConfigChannel: - 4490 .LFB96: -2933:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** /* Check the parameters */ - 4491 .loc 1 2933 0 - ARM GAS /tmp/cccrAAAm.s page 182 - - - 4492 .cfi_startproc - 4493 @ args = 0, pretend = 0, frame = 0 - 4494 @ frame_needed = 0, uses_anonymous_args = 0 - 4495 .LVL458: - 4496 0000 10B5 push {r4, lr} - 4497 .LCFI38: - 4498 .cfi_def_cfa_offset 8 - 4499 .cfi_offset 4, -8 - 4500 .cfi_offset 14, -4 - 4501 0002 0400 movs r4, r0 -2940:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** - 4502 .loc 1 2940 0 - 4503 0004 3C23 movs r3, #60 - 4504 0006 C35C ldrb r3, [r0, r3] - 4505 0008 012B cmp r3, #1 - 4506 000a 25D0 beq .L276 -2940:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** - 4507 .loc 1 2940 0 is_stmt 0 discriminator 2 - 4508 000c 3C23 movs r3, #60 - 4509 000e 0120 movs r0, #1 - 4510 .LVL459: - 4511 0010 E054 strb r0, [r4, r3] -2942:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** - 4512 .loc 1 2942 0 is_stmt 1 discriminator 2 - 4513 0012 0133 adds r3, r3, #1 - 4514 0014 0130 adds r0, r0, #1 - 4515 0016 E054 strb r0, [r4, r3] -2944:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** { - 4516 .loc 1 2944 0 discriminator 2 - 4517 0018 042A cmp r2, #4 - 4518 001a 15D0 beq .L271 - 4519 001c 07D9 bls .L277 - 4520 001e 082A cmp r2, #8 - 4521 0020 16D0 beq .L274 - 4522 0022 0C2A cmp r2, #12 - 4523 0024 08D1 bne .L270 -2974:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** } - 4524 .loc 1 2974 0 - 4525 0026 2068 ldr r0, [r4] - 4526 0028 FFF7FEFF bl TIM_OC4_SetConfig - 4527 .LVL460: -2976:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** - 4528 .loc 1 2976 0 - 4529 002c 04E0 b .L270 - 4530 .LVL461: - 4531 .L277: -2944:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** { - 4532 .loc 1 2944 0 discriminator 2 - 4533 002e 002A cmp r2, #0 - 4534 0030 02D1 bne .L270 -2950:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** } - 4535 .loc 1 2950 0 - 4536 0032 2068 ldr r0, [r4] - 4537 0034 FFF7FEFF bl TIM_OC1_SetConfig - 4538 .LVL462: - 4539 .L270: -2981:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** - ARM GAS /tmp/cccrAAAm.s page 183 - - - 4540 .loc 1 2981 0 - 4541 0038 3D23 movs r3, #61 - 4542 003a 0122 movs r2, #1 - 4543 003c E254 strb r2, [r4, r3] -2983:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** - 4544 .loc 1 2983 0 - 4545 003e 013B subs r3, r3, #1 - 4546 0040 0022 movs r2, #0 - 4547 0042 E254 strb r2, [r4, r3] -2985:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** } - 4548 .loc 1 2985 0 - 4549 0044 0020 movs r0, #0 - 4550 .L269: -2986:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** - 4551 .loc 1 2986 0 - 4552 @ sp needed - 4553 .LVL463: - 4554 0046 10BD pop {r4, pc} - 4555 .LVL464: - 4556 .L271: -2958:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** } - 4557 .loc 1 2958 0 - 4558 0048 2068 ldr r0, [r4] - 4559 004a FFF7FEFF bl TIM_OC2_SetConfig - 4560 .LVL465: -2960:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** - 4561 .loc 1 2960 0 - 4562 004e F3E7 b .L270 - 4563 .LVL466: - 4564 .L274: -2966:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** } - 4565 .loc 1 2966 0 - 4566 0050 2068 ldr r0, [r4] - 4567 0052 FFF7FEFF bl TIM_OC3_SetConfig - 4568 .LVL467: -2968:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** - 4569 .loc 1 2968 0 - 4570 0056 EFE7 b .L270 - 4571 .LVL468: - 4572 .L276: -2940:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** - 4573 .loc 1 2940 0 - 4574 0058 0220 movs r0, #2 - 4575 .LVL469: - 4576 005a F4E7 b .L269 - 4577 .cfi_endproc - 4578 .LFE96: - 4580 .section .text.HAL_TIM_PWM_ConfigChannel,"ax",%progbits - 4581 .align 1 - 4582 .global HAL_TIM_PWM_ConfigChannel - 4583 .syntax unified - 4584 .code 16 - 4585 .thumb_func - 4586 .fpu softvfp - 4588 HAL_TIM_PWM_ConfigChannel: - 4589 .LFB98: -3098:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** __HAL_LOCK(htim); - ARM GAS /tmp/cccrAAAm.s page 184 - - - 4590 .loc 1 3098 0 - 4591 .cfi_startproc - 4592 @ args = 0, pretend = 0, frame = 0 - 4593 @ frame_needed = 0, uses_anonymous_args = 0 - 4594 .LVL470: - 4595 0000 70B5 push {r4, r5, r6, lr} - 4596 .LCFI39: - 4597 .cfi_def_cfa_offset 16 - 4598 .cfi_offset 4, -16 - 4599 .cfi_offset 5, -12 - 4600 .cfi_offset 6, -8 - 4601 .cfi_offset 14, -4 - 4602 0002 0400 movs r4, r0 - 4603 0004 0D00 movs r5, r1 -3099:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** - 4604 .loc 1 3099 0 - 4605 0006 3C23 movs r3, #60 - 4606 0008 C35C ldrb r3, [r0, r3] - 4607 000a 012B cmp r3, #1 - 4608 000c 69D0 beq .L286 -3099:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** - 4609 .loc 1 3099 0 is_stmt 0 discriminator 2 - 4610 000e 3C23 movs r3, #60 - 4611 0010 0121 movs r1, #1 - 4612 .LVL471: - 4613 0012 C154 strb r1, [r0, r3] -3107:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** - 4614 .loc 1 3107 0 is_stmt 1 discriminator 2 - 4615 0014 0133 adds r3, r3, #1 - 4616 0016 0131 adds r1, r1, #1 - 4617 0018 C154 strb r1, [r0, r3] -3109:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** { - 4618 .loc 1 3109 0 discriminator 2 - 4619 001a 042A cmp r2, #4 - 4620 001c 37D0 beq .L281 - 4621 001e 19D9 bls .L287 - 4622 0020 082A cmp r2, #8 - 4623 0022 4AD0 beq .L284 - 4624 0024 0C2A cmp r2, #12 - 4625 0026 2AD1 bne .L280 -3160:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** - 4626 .loc 1 3160 0 - 4627 0028 2900 movs r1, r5 - 4628 002a 0068 ldr r0, [r0] - 4629 .LVL472: - 4630 002c FFF7FEFF bl TIM_OC4_SetConfig - 4631 .LVL473: -3163:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** - 4632 .loc 1 3163 0 - 4633 0030 2268 ldr r2, [r4] - 4634 0032 D169 ldr r1, [r2, #28] - 4635 0034 8023 movs r3, #128 - 4636 0036 1B01 lsls r3, r3, #4 - 4637 0038 0B43 orrs r3, r1 - 4638 003a D361 str r3, [r2, #28] -3166:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** htim->Instance->CCMR2 |= sConfig->OCFastMode << 8U; - 4639 .loc 1 3166 0 - ARM GAS /tmp/cccrAAAm.s page 185 - - - 4640 003c 2268 ldr r2, [r4] - 4641 003e D369 ldr r3, [r2, #28] - 4642 0040 2949 ldr r1, .L288 - 4643 0042 0B40 ands r3, r1 - 4644 0044 D361 str r3, [r2, #28] -3167:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** } - 4645 .loc 1 3167 0 - 4646 0046 2168 ldr r1, [r4] - 4647 0048 CB69 ldr r3, [r1, #28] - 4648 004a 2A69 ldr r2, [r5, #16] - 4649 004c 1202 lsls r2, r2, #8 - 4650 004e 1343 orrs r3, r2 - 4651 0050 CB61 str r3, [r1, #28] -3169:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** - 4652 .loc 1 3169 0 - 4653 0052 14E0 b .L280 - 4654 .LVL474: - 4655 .L287: -3109:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** { - 4656 .loc 1 3109 0 discriminator 2 - 4657 0054 002A cmp r2, #0 - 4658 0056 12D1 bne .L280 -3115:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** - 4659 .loc 1 3115 0 - 4660 0058 2900 movs r1, r5 - 4661 005a 0068 ldr r0, [r0] - 4662 .LVL475: - 4663 005c FFF7FEFF bl TIM_OC1_SetConfig - 4664 .LVL476: -3118:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** - 4665 .loc 1 3118 0 - 4666 0060 2268 ldr r2, [r4] - 4667 0062 9369 ldr r3, [r2, #24] - 4668 0064 0821 movs r1, #8 - 4669 0066 0B43 orrs r3, r1 - 4670 0068 9361 str r3, [r2, #24] -3121:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** htim->Instance->CCMR1 |= sConfig->OCFastMode; - 4671 .loc 1 3121 0 - 4672 006a 2268 ldr r2, [r4] - 4673 006c 9369 ldr r3, [r2, #24] - 4674 006e 0439 subs r1, r1, #4 - 4675 0070 8B43 bics r3, r1 - 4676 0072 9361 str r3, [r2, #24] -3122:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** } - 4677 .loc 1 3122 0 - 4678 0074 2268 ldr r2, [r4] - 4679 0076 9369 ldr r3, [r2, #24] - 4680 0078 2969 ldr r1, [r5, #16] - 4681 007a 0B43 orrs r3, r1 - 4682 007c 9361 str r3, [r2, #24] - 4683 .L280: -3175:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** - 4684 .loc 1 3175 0 - 4685 007e 3D23 movs r3, #61 - 4686 0080 0122 movs r2, #1 - 4687 0082 E254 strb r2, [r4, r3] -3177:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** - ARM GAS /tmp/cccrAAAm.s page 186 - - - 4688 .loc 1 3177 0 - 4689 0084 013B subs r3, r3, #1 - 4690 0086 0022 movs r2, #0 - 4691 0088 E254 strb r2, [r4, r3] -3179:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** } - 4692 .loc 1 3179 0 - 4693 008a 0020 movs r0, #0 - 4694 .L279: -3180:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** - 4695 .loc 1 3180 0 - 4696 @ sp needed - 4697 .LVL477: - 4698 .LVL478: - 4699 008c 70BD pop {r4, r5, r6, pc} - 4700 .LVL479: - 4701 .L281: -3130:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** - 4702 .loc 1 3130 0 - 4703 008e 2900 movs r1, r5 - 4704 0090 0068 ldr r0, [r0] - 4705 .LVL480: - 4706 0092 FFF7FEFF bl TIM_OC2_SetConfig - 4707 .LVL481: -3133:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** - 4708 .loc 1 3133 0 - 4709 0096 2268 ldr r2, [r4] - 4710 0098 9169 ldr r1, [r2, #24] - 4711 009a 8023 movs r3, #128 - 4712 009c 1B01 lsls r3, r3, #4 - 4713 009e 0B43 orrs r3, r1 - 4714 00a0 9361 str r3, [r2, #24] -3136:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** htim->Instance->CCMR1 |= sConfig->OCFastMode << 8U; - 4715 .loc 1 3136 0 - 4716 00a2 2268 ldr r2, [r4] - 4717 00a4 9369 ldr r3, [r2, #24] - 4718 00a6 1049 ldr r1, .L288 - 4719 00a8 0B40 ands r3, r1 - 4720 00aa 9361 str r3, [r2, #24] -3137:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** } - 4721 .loc 1 3137 0 - 4722 00ac 2168 ldr r1, [r4] - 4723 00ae 8B69 ldr r3, [r1, #24] - 4724 00b0 2A69 ldr r2, [r5, #16] - 4725 00b2 1202 lsls r2, r2, #8 - 4726 00b4 1343 orrs r3, r2 - 4727 00b6 8B61 str r3, [r1, #24] -3139:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** - 4728 .loc 1 3139 0 - 4729 00b8 E1E7 b .L280 - 4730 .LVL482: - 4731 .L284: -3145:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** - 4732 .loc 1 3145 0 - 4733 00ba 2900 movs r1, r5 - 4734 00bc 0068 ldr r0, [r0] - 4735 .LVL483: - 4736 00be FFF7FEFF bl TIM_OC3_SetConfig - ARM GAS /tmp/cccrAAAm.s page 187 - - - 4737 .LVL484: -3148:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** - 4738 .loc 1 3148 0 - 4739 00c2 2268 ldr r2, [r4] - 4740 00c4 D369 ldr r3, [r2, #28] - 4741 00c6 0821 movs r1, #8 - 4742 00c8 0B43 orrs r3, r1 - 4743 00ca D361 str r3, [r2, #28] -3151:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** htim->Instance->CCMR2 |= sConfig->OCFastMode; - 4744 .loc 1 3151 0 - 4745 00cc 2268 ldr r2, [r4] - 4746 00ce D369 ldr r3, [r2, #28] - 4747 00d0 0439 subs r1, r1, #4 - 4748 00d2 8B43 bics r3, r1 - 4749 00d4 D361 str r3, [r2, #28] -3152:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** } - 4750 .loc 1 3152 0 - 4751 00d6 2268 ldr r2, [r4] - 4752 00d8 D369 ldr r3, [r2, #28] - 4753 00da 2969 ldr r1, [r5, #16] - 4754 00dc 0B43 orrs r3, r1 - 4755 00de D361 str r3, [r2, #28] -3154:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** - 4756 .loc 1 3154 0 - 4757 00e0 CDE7 b .L280 - 4758 .LVL485: - 4759 .L286: -3099:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** - 4760 .loc 1 3099 0 - 4761 00e2 0220 movs r0, #2 - 4762 .LVL486: - 4763 00e4 D2E7 b .L279 - 4764 .L289: - 4765 00e6 C046 .align 2 - 4766 .L288: - 4767 00e8 FFFBFFFF .word -1025 - 4768 .cfi_endproc - 4769 .LFE98: - 4771 .section .text.TIM_TI1_SetConfig,"ax",%progbits - 4772 .align 1 - 4773 .global TIM_TI1_SetConfig - 4774 .syntax unified - 4775 .code 16 - 4776 .thumb_func - 4777 .fpu softvfp - 4779 TIM_TI1_SetConfig: - 4780 .LFB136: -5143:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** uint32_t tmpccmr1 = 0U; - 4781 .loc 1 5143 0 - 4782 .cfi_startproc - 4783 @ args = 0, pretend = 0, frame = 0 - 4784 @ frame_needed = 0, uses_anonymous_args = 0 - 4785 .LVL487: - 4786 0000 F0B5 push {r4, r5, r6, r7, lr} - 4787 .LCFI40: - 4788 .cfi_def_cfa_offset 20 - 4789 .cfi_offset 4, -20 - ARM GAS /tmp/cccrAAAm.s page 188 - - - 4790 .cfi_offset 5, -16 - 4791 .cfi_offset 6, -12 - 4792 .cfi_offset 7, -8 - 4793 .cfi_offset 14, -4 - 4794 0002 1700 movs r7, r2 - 4795 .LVL488: -5148:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** tmpccmr1 = TIMx->CCMR1; - 4796 .loc 1 5148 0 - 4797 0004 046A ldr r4, [r0, #32] - 4798 0006 0125 movs r5, #1 - 4799 0008 AC43 bics r4, r5 - 4800 000a 0462 str r4, [r0, #32] -5149:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** tmpccer = TIMx->CCER; - 4801 .loc 1 5149 0 - 4802 000c 8469 ldr r4, [r0, #24] - 4803 .LVL489: -5150:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** - 4804 .loc 1 5150 0 - 4805 000e 056A ldr r5, [r0, #32] - 4806 .LVL490: -5153:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** { - 4807 .loc 1 5153 0 - 4808 0010 104E ldr r6, .L293 - 4809 0012 B042 cmp r0, r6 - 4810 0014 0CD0 beq .L291 -5153:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** { - 4811 .loc 1 5153 0 is_stmt 0 discriminator 2 - 4812 0016 8022 movs r2, #128 - 4813 .LVL491: - 4814 0018 D205 lsls r2, r2, #23 - 4815 001a 9042 cmp r0, r2 - 4816 001c 08D0 beq .L291 -5153:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** { - 4817 .loc 1 5153 0 discriminator 4 - 4818 001e 0E4A ldr r2, .L293+4 - 4819 0020 9042 cmp r0, r2 - 4820 0022 05D0 beq .L291 -5153:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** { - 4821 .loc 1 5153 0 discriminator 6 - 4822 0024 0D4A ldr r2, .L293+8 - 4823 0026 9042 cmp r0, r2 - 4824 0028 02D0 beq .L291 -5160:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** } - 4825 .loc 1 5160 0 is_stmt 1 - 4826 002a 0122 movs r2, #1 - 4827 002c 2243 orrs r2, r4 - 4828 .LVL492: - 4829 002e 03E0 b .L292 - 4830 .LVL493: - 4831 .L291: -5155:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** tmpccmr1 |= TIM_ICSelection; - 4832 .loc 1 5155 0 - 4833 0030 0322 movs r2, #3 - 4834 0032 9443 bics r4, r2 - 4835 .LVL494: - 4836 0034 2200 movs r2, r4 - 4837 .LVL495: - ARM GAS /tmp/cccrAAAm.s page 189 - - -5156:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** } - 4838 .loc 1 5156 0 - 4839 0036 3A43 orrs r2, r7 - 4840 .LVL496: - 4841 .L292: -5164:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** tmpccmr1 |= ((TIM_ICFilter << 4U) & TIM_CCMR1_IC1F); - 4842 .loc 1 5164 0 - 4843 0038 F024 movs r4, #240 - 4844 003a A243 bics r2, r4 - 4845 .LVL497: -5165:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** - 4846 .loc 1 5165 0 - 4847 003c 1C01 lsls r4, r3, #4 - 4848 003e FF23 movs r3, #255 - 4849 .LVL498: - 4850 0040 2340 ands r3, r4 - 4851 0042 1A43 orrs r2, r3 - 4852 .LVL499: -5168:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** tmpccer |= (TIM_ICPolarity & (TIM_CCER_CC1P | TIM_CCER_CC1NP)); - 4853 .loc 1 5168 0 - 4854 0044 0A24 movs r4, #10 - 4855 0046 A543 bics r5, r4 - 4856 .LVL500: -5169:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** - 4857 .loc 1 5169 0 - 4858 0048 0C40 ands r4, r1 - 4859 004a 2C43 orrs r4, r5 - 4860 .LVL501: -5172:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** TIMx->CCER = tmpccer; - 4861 .loc 1 5172 0 - 4862 004c 8261 str r2, [r0, #24] -5173:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** } - 4863 .loc 1 5173 0 - 4864 004e 0462 str r4, [r0, #32] -5174:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** - 4865 .loc 1 5174 0 - 4866 @ sp needed - 4867 .LVL502: - 4868 .LVL503: - 4869 0050 F0BD pop {r4, r5, r6, r7, pc} - 4870 .L294: - 4871 0052 C046 .align 2 - 4872 .L293: - 4873 0054 002C0140 .word 1073818624 - 4874 0058 00040040 .word 1073742848 - 4875 005c 00400140 .word 1073823744 - 4876 .cfi_endproc - 4877 .LFE136: - 4879 .section .text.HAL_TIM_IC_ConfigChannel,"ax",%progbits - 4880 .align 1 - 4881 .global HAL_TIM_IC_ConfigChannel - 4882 .syntax unified - 4883 .code 16 - 4884 .thumb_func - 4885 .fpu softvfp - 4887 HAL_TIM_IC_ConfigChannel: - 4888 .LFB97: - ARM GAS /tmp/cccrAAAm.s page 190 - - -3002:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** /* Check the parameters */ - 4889 .loc 1 3002 0 - 4890 .cfi_startproc - 4891 @ args = 0, pretend = 0, frame = 0 - 4892 @ frame_needed = 0, uses_anonymous_args = 0 - 4893 .LVL504: - 4894 0000 70B5 push {r4, r5, r6, lr} - 4895 .LCFI41: - 4896 .cfi_def_cfa_offset 16 - 4897 .cfi_offset 4, -16 - 4898 .cfi_offset 5, -12 - 4899 .cfi_offset 6, -8 - 4900 .cfi_offset 14, -4 - 4901 0002 0400 movs r4, r0 - 4902 0004 0D00 movs r5, r1 -3010:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** - 4903 .loc 1 3010 0 - 4904 0006 3C23 movs r3, #60 - 4905 0008 C35C ldrb r3, [r0, r3] - 4906 000a 012B cmp r3, #1 - 4907 000c 58D0 beq .L301 -3010:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** - 4908 .loc 1 3010 0 is_stmt 0 discriminator 2 - 4909 000e 3C23 movs r3, #60 - 4910 0010 0121 movs r1, #1 - 4911 .LVL505: - 4912 0012 C154 strb r1, [r0, r3] -3012:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** - 4913 .loc 1 3012 0 is_stmt 1 discriminator 2 - 4914 0014 0133 adds r3, r3, #1 - 4915 0016 0131 adds r1, r1, #1 - 4916 0018 C154 strb r1, [r0, r3] -3014:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** { - 4917 .loc 1 3014 0 discriminator 2 - 4918 001a 002A cmp r2, #0 - 4919 001c 1CD0 beq .L302 -3028:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** { - 4920 .loc 1 3028 0 - 4921 001e 042A cmp r2, #4 - 4922 0020 2BD0 beq .L303 -3044:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** { - 4923 .loc 1 3044 0 - 4924 0022 082A cmp r2, #8 - 4925 0024 3BD0 beq .L304 -3065:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** sConfig->ICPolarity, - 4926 .loc 1 3065 0 - 4927 0026 EB68 ldr r3, [r5, #12] - 4928 0028 6A68 ldr r2, [r5, #4] - 4929 .LVL506: - 4930 002a 2968 ldr r1, [r5] - 4931 002c 0068 ldr r0, [r0] - 4932 .LVL507: - 4933 002e FFF7FEFF bl TIM_TI4_SetConfig - 4934 .LVL508: -3071:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** - 4935 .loc 1 3071 0 - 4936 0032 2268 ldr r2, [r4] - ARM GAS /tmp/cccrAAAm.s page 191 - - - 4937 0034 D369 ldr r3, [r2, #28] - 4938 0036 2349 ldr r1, .L305 - 4939 0038 0B40 ands r3, r1 - 4940 003a D361 str r3, [r2, #28] -3074:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** } - 4941 .loc 1 3074 0 - 4942 003c 2168 ldr r1, [r4] - 4943 003e CB69 ldr r3, [r1, #28] - 4944 0040 AA68 ldr r2, [r5, #8] - 4945 0042 1202 lsls r2, r2, #8 - 4946 0044 1343 orrs r3, r2 - 4947 0046 CB61 str r3, [r1, #28] - 4948 .L298: -3077:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** - 4949 .loc 1 3077 0 - 4950 0048 3D23 movs r3, #61 - 4951 004a 0122 movs r2, #1 - 4952 004c E254 strb r2, [r4, r3] -3079:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** - 4953 .loc 1 3079 0 - 4954 004e 013B subs r3, r3, #1 - 4955 0050 0022 movs r2, #0 - 4956 0052 E254 strb r2, [r4, r3] -3081:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** } - 4957 .loc 1 3081 0 - 4958 0054 0020 movs r0, #0 - 4959 .L296: -3082:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** - 4960 .loc 1 3082 0 - 4961 @ sp needed - 4962 .LVL509: - 4963 .LVL510: - 4964 0056 70BD pop {r4, r5, r6, pc} - 4965 .LVL511: - 4966 .L302: -3017:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** sConfig->ICPolarity, - 4967 .loc 1 3017 0 - 4968 0058 EB68 ldr r3, [r5, #12] - 4969 005a 6A68 ldr r2, [r5, #4] - 4970 .LVL512: - 4971 005c 2968 ldr r1, [r5] - 4972 005e 0068 ldr r0, [r0] - 4973 .LVL513: - 4974 0060 FFF7FEFF bl TIM_TI1_SetConfig - 4975 .LVL514: -3023:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** - 4976 .loc 1 3023 0 - 4977 0064 2268 ldr r2, [r4] - 4978 0066 9369 ldr r3, [r2, #24] - 4979 0068 0C21 movs r1, #12 - 4980 006a 8B43 bics r3, r1 - 4981 006c 9361 str r3, [r2, #24] -3026:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** } - 4982 .loc 1 3026 0 - 4983 006e 2268 ldr r2, [r4] - 4984 0070 9369 ldr r3, [r2, #24] - 4985 0072 A968 ldr r1, [r5, #8] - ARM GAS /tmp/cccrAAAm.s page 192 - - - 4986 0074 0B43 orrs r3, r1 - 4987 0076 9361 str r3, [r2, #24] - 4988 0078 E6E7 b .L298 - 4989 .LVL515: - 4990 .L303: -3033:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** sConfig->ICPolarity, - 4991 .loc 1 3033 0 - 4992 007a EB68 ldr r3, [r5, #12] - 4993 007c 6A68 ldr r2, [r5, #4] - 4994 .LVL516: - 4995 007e 2968 ldr r1, [r5] - 4996 0080 0068 ldr r0, [r0] - 4997 .LVL517: - 4998 0082 FFF7FEFF bl TIM_TI2_SetConfig - 4999 .LVL518: -3039:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** - 5000 .loc 1 3039 0 - 5001 0086 2268 ldr r2, [r4] - 5002 0088 9369 ldr r3, [r2, #24] - 5003 008a 0E49 ldr r1, .L305 - 5004 008c 0B40 ands r3, r1 - 5005 008e 9361 str r3, [r2, #24] -3042:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** } - 5006 .loc 1 3042 0 - 5007 0090 2168 ldr r1, [r4] - 5008 0092 8B69 ldr r3, [r1, #24] - 5009 0094 AA68 ldr r2, [r5, #8] - 5010 0096 1202 lsls r2, r2, #8 - 5011 0098 1343 orrs r3, r2 - 5012 009a 8B61 str r3, [r1, #24] - 5013 009c D4E7 b .L298 - 5014 .LVL519: - 5015 .L304: -3049:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** sConfig->ICPolarity, - 5016 .loc 1 3049 0 - 5017 009e EB68 ldr r3, [r5, #12] - 5018 00a0 6A68 ldr r2, [r5, #4] - 5019 .LVL520: - 5020 00a2 2968 ldr r1, [r5] - 5021 00a4 0068 ldr r0, [r0] - 5022 .LVL521: - 5023 00a6 FFF7FEFF bl TIM_TI3_SetConfig - 5024 .LVL522: -3055:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** - 5025 .loc 1 3055 0 - 5026 00aa 2268 ldr r2, [r4] - 5027 00ac D369 ldr r3, [r2, #28] - 5028 00ae 0C21 movs r1, #12 - 5029 00b0 8B43 bics r3, r1 - 5030 00b2 D361 str r3, [r2, #28] -3058:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** } - 5031 .loc 1 3058 0 - 5032 00b4 2268 ldr r2, [r4] - 5033 00b6 D369 ldr r3, [r2, #28] - 5034 00b8 A968 ldr r1, [r5, #8] - 5035 00ba 0B43 orrs r3, r1 - 5036 00bc D361 str r3, [r2, #28] - ARM GAS /tmp/cccrAAAm.s page 193 - - - 5037 00be C3E7 b .L298 - 5038 .LVL523: - 5039 .L301: -3010:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** - 5040 .loc 1 3010 0 - 5041 00c0 0220 movs r0, #2 - 5042 .LVL524: - 5043 00c2 C8E7 b .L296 - 5044 .L306: - 5045 .align 2 - 5046 .L305: - 5047 00c4 FFF3FFFF .word -3073 - 5048 .cfi_endproc - 5049 .LFE97: - 5051 .section .text.HAL_TIM_OnePulse_ConfigChannel,"ax",%progbits - 5052 .align 1 - 5053 .global HAL_TIM_OnePulse_ConfigChannel - 5054 .syntax unified - 5055 .code 16 - 5056 .thumb_func - 5057 .fpu softvfp - 5059 HAL_TIM_OnePulse_ConfigChannel: - 5060 .LFB99: -3198:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** TIM_OC_InitTypeDef temp1; - 5061 .loc 1 3198 0 - 5062 .cfi_startproc - 5063 @ args = 0, pretend = 0, frame = 32 - 5064 @ frame_needed = 0, uses_anonymous_args = 0 - 5065 .LVL525: - 5066 0000 70B5 push {r4, r5, r6, lr} - 5067 .LCFI42: - 5068 .cfi_def_cfa_offset 16 - 5069 .cfi_offset 4, -16 - 5070 .cfi_offset 5, -12 - 5071 .cfi_offset 6, -8 - 5072 .cfi_offset 14, -4 - 5073 0002 88B0 sub sp, sp, #32 - 5074 .LCFI43: - 5075 .cfi_def_cfa_offset 48 - 5076 0004 0400 movs r4, r0 - 5077 0006 0D00 movs r5, r1 - 5078 0008 1E00 movs r6, r3 -3205:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** { - 5079 .loc 1 3205 0 - 5080 000a 9A42 cmp r2, r3 - 5081 000c 00D1 bne .LCB4633 - 5082 000e 71E0 b .L315 @long jump - 5083 .LCB4633: -3207:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** - 5084 .loc 1 3207 0 - 5085 0010 3C23 movs r3, #60 - 5086 .LVL526: - 5087 0012 C35C ldrb r3, [r0, r3] - 5088 0014 012B cmp r3, #1 - 5089 0016 00D1 bne .LCB4638 - 5090 0018 6EE0 b .L316 @long jump - 5091 .LCB4638: - ARM GAS /tmp/cccrAAAm.s page 194 - - -3207:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** - 5092 .loc 1 3207 0 is_stmt 0 discriminator 2 - 5093 001a 3C23 movs r3, #60 - 5094 001c 0121 movs r1, #1 - 5095 .LVL527: - 5096 001e C154 strb r1, [r0, r3] -3209:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** - 5097 .loc 1 3209 0 is_stmt 1 discriminator 2 - 5098 0020 0133 adds r3, r3, #1 - 5099 0022 0131 adds r1, r1, #1 - 5100 0024 C154 strb r1, [r0, r3] -3212:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** temp1.Pulse = sConfig->Pulse; - 5101 .loc 1 3212 0 discriminator 2 - 5102 0026 2B68 ldr r3, [r5] - 5103 0028 0193 str r3, [sp, #4] -3213:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** temp1.OCPolarity = sConfig->OCPolarity; - 5104 .loc 1 3213 0 discriminator 2 - 5105 002a 6B68 ldr r3, [r5, #4] - 5106 002c 0293 str r3, [sp, #8] -3214:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** temp1.OCNPolarity = sConfig->OCNPolarity; - 5107 .loc 1 3214 0 discriminator 2 - 5108 002e AB68 ldr r3, [r5, #8] - 5109 0030 0393 str r3, [sp, #12] -3215:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** temp1.OCIdleState = sConfig->OCIdleState; - 5110 .loc 1 3215 0 discriminator 2 - 5111 0032 EB68 ldr r3, [r5, #12] - 5112 0034 0493 str r3, [sp, #16] -3216:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** temp1.OCNIdleState = sConfig->OCNIdleState; - 5113 .loc 1 3216 0 discriminator 2 - 5114 0036 2B69 ldr r3, [r5, #16] - 5115 0038 0693 str r3, [sp, #24] -3217:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** - 5116 .loc 1 3217 0 discriminator 2 - 5117 003a 6B69 ldr r3, [r5, #20] - 5118 003c 0793 str r3, [sp, #28] -3219:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** { - 5119 .loc 1 3219 0 discriminator 2 - 5120 003e 002A cmp r2, #0 - 5121 0040 0ED0 beq .L310 - 5122 0042 042A cmp r2, #4 - 5123 0044 11D0 beq .L311 - 5124 .LVL528: - 5125 .L309: -3238:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** { - 5126 .loc 1 3238 0 - 5127 0046 002E cmp r6, #0 - 5128 0048 14D0 beq .L313 - 5129 004a 042E cmp r6, #4 - 5130 004c 32D0 beq .L314 - 5131 .L312: -3283:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** - 5132 .loc 1 3283 0 - 5133 004e 3D23 movs r3, #61 - 5134 0050 0122 movs r2, #1 - 5135 0052 E254 strb r2, [r4, r3] -3285:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** - 5136 .loc 1 3285 0 - ARM GAS /tmp/cccrAAAm.s page 195 - - - 5137 0054 013B subs r3, r3, #1 - 5138 0056 0022 movs r2, #0 - 5139 0058 E254 strb r2, [r4, r3] -3287:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** } - 5140 .loc 1 3287 0 - 5141 005a 0020 movs r0, #0 - 5142 .L308: -3293:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** - 5143 .loc 1 3293 0 - 5144 005c 08B0 add sp, sp, #32 - 5145 @ sp needed - 5146 .LVL529: - 5147 .LVL530: - 5148 .LVL531: - 5149 005e 70BD pop {r4, r5, r6, pc} - 5150 .LVL532: - 5151 .L310: -3225:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** } - 5152 .loc 1 3225 0 - 5153 0060 01A9 add r1, sp, #4 - 5154 0062 0068 ldr r0, [r0] - 5155 .LVL533: - 5156 0064 FFF7FEFF bl TIM_OC1_SetConfig - 5157 .LVL534: -3227:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** case TIM_CHANNEL_2: - 5158 .loc 1 3227 0 - 5159 0068 EDE7 b .L309 - 5160 .LVL535: - 5161 .L311: -3232:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** } - 5162 .loc 1 3232 0 - 5163 006a 01A9 add r1, sp, #4 - 5164 006c 0068 ldr r0, [r0] - 5165 .LVL536: - 5166 006e FFF7FEFF bl TIM_OC2_SetConfig - 5167 .LVL537: -3234:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** default: - 5168 .loc 1 3234 0 - 5169 0072 E8E7 b .L309 - 5170 .L313: -3244:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** sConfig->ICSelection, sConfig->ICFilter); - 5171 .loc 1 3244 0 - 5172 0074 2B6A ldr r3, [r5, #32] - 5173 0076 EA69 ldr r2, [r5, #28] - 5174 0078 A969 ldr r1, [r5, #24] - 5175 007a 2068 ldr r0, [r4] - 5176 007c FFF7FEFF bl TIM_TI1_SetConfig - 5177 .LVL538: -3248:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** - 5178 .loc 1 3248 0 - 5179 0080 2268 ldr r2, [r4] - 5180 0082 9369 ldr r3, [r2, #24] - 5181 0084 0C21 movs r1, #12 - 5182 0086 8B43 bics r3, r1 - 5183 0088 9361 str r3, [r2, #24] -3251:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** htim->Instance->SMCR |= TIM_TS_TI1FP1; - 5184 .loc 1 3251 0 - ARM GAS /tmp/cccrAAAm.s page 196 - - - 5185 008a 2268 ldr r2, [r4] - 5186 008c 9368 ldr r3, [r2, #8] - 5187 008e 6431 adds r1, r1, #100 - 5188 0090 8B43 bics r3, r1 - 5189 0092 9360 str r3, [r2, #8] -3252:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** - 5190 .loc 1 3252 0 - 5191 0094 2268 ldr r2, [r4] - 5192 0096 9368 ldr r3, [r2, #8] - 5193 0098 2039 subs r1, r1, #32 - 5194 009a 0B43 orrs r3, r1 - 5195 009c 9360 str r3, [r2, #8] -3255:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** htim->Instance->SMCR |= TIM_SLAVEMODE_TRIGGER; - 5196 .loc 1 3255 0 - 5197 009e 2268 ldr r2, [r4] - 5198 00a0 9368 ldr r3, [r2, #8] - 5199 00a2 4939 subs r1, r1, #73 - 5200 00a4 8B43 bics r3, r1 - 5201 00a6 9360 str r3, [r2, #8] -3256:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** } - 5202 .loc 1 3256 0 - 5203 00a8 2268 ldr r2, [r4] - 5204 00aa 9368 ldr r3, [r2, #8] - 5205 00ac 0139 subs r1, r1, #1 - 5206 00ae 0B43 orrs r3, r1 - 5207 00b0 9360 str r3, [r2, #8] -3258:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** case TIM_CHANNEL_2: - 5208 .loc 1 3258 0 - 5209 00b2 CCE7 b .L312 - 5210 .L314: -3263:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** sConfig->ICSelection, sConfig->ICFilter); - 5211 .loc 1 3263 0 - 5212 00b4 2B6A ldr r3, [r5, #32] - 5213 00b6 EA69 ldr r2, [r5, #28] - 5214 00b8 A969 ldr r1, [r5, #24] - 5215 00ba 2068 ldr r0, [r4] - 5216 00bc FFF7FEFF bl TIM_TI2_SetConfig - 5217 .LVL539: -3267:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** - 5218 .loc 1 3267 0 - 5219 00c0 2268 ldr r2, [r4] - 5220 00c2 9369 ldr r3, [r2, #24] - 5221 00c4 0D49 ldr r1, .L317 - 5222 00c6 0B40 ands r3, r1 - 5223 00c8 9361 str r3, [r2, #24] -3270:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** htim->Instance->SMCR |= TIM_TS_TI2FP2; - 5224 .loc 1 3270 0 - 5225 00ca 2268 ldr r2, [r4] - 5226 00cc 9368 ldr r3, [r2, #8] - 5227 00ce 7021 movs r1, #112 - 5228 00d0 8B43 bics r3, r1 - 5229 00d2 9360 str r3, [r2, #8] -3271:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** - 5230 .loc 1 3271 0 - 5231 00d4 2268 ldr r2, [r4] - 5232 00d6 9368 ldr r3, [r2, #8] - 5233 00d8 1039 subs r1, r1, #16 - ARM GAS /tmp/cccrAAAm.s page 197 - - - 5234 00da 0B43 orrs r3, r1 - 5235 00dc 9360 str r3, [r2, #8] -3274:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** htim->Instance->SMCR |= TIM_SLAVEMODE_TRIGGER; - 5236 .loc 1 3274 0 - 5237 00de 2268 ldr r2, [r4] - 5238 00e0 9368 ldr r3, [r2, #8] - 5239 00e2 5939 subs r1, r1, #89 - 5240 00e4 8B43 bics r3, r1 - 5241 00e6 9360 str r3, [r2, #8] -3275:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** } - 5242 .loc 1 3275 0 - 5243 00e8 2268 ldr r2, [r4] - 5244 00ea 9368 ldr r3, [r2, #8] - 5245 00ec 0139 subs r1, r1, #1 - 5246 00ee 0B43 orrs r3, r1 - 5247 00f0 9360 str r3, [r2, #8] -3277:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** - 5248 .loc 1 3277 0 - 5249 00f2 ACE7 b .L312 - 5250 .LVL540: - 5251 .L315: -3291:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** } - 5252 .loc 1 3291 0 - 5253 00f4 0120 movs r0, #1 - 5254 .LVL541: - 5255 00f6 B1E7 b .L308 - 5256 .LVL542: - 5257 .L316: -3207:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** - 5258 .loc 1 3207 0 - 5259 00f8 0220 movs r0, #2 - 5260 .LVL543: - 5261 00fa AFE7 b .L308 - 5262 .L318: - 5263 .align 2 - 5264 .L317: - 5265 00fc FFF3FFFF .word -3073 - 5266 .cfi_endproc - 5267 .LFE99: - 5269 .section .text.TIM_ETR_SetConfig,"ax",%progbits - 5270 .align 1 - 5271 .global TIM_ETR_SetConfig - 5272 .syntax unified - 5273 .code 16 - 5274 .thumb_func - 5275 .fpu softvfp - 5277 TIM_ETR_SetConfig: - 5278 .LFB143: -5418:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** /** -5419:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** * @brief Configures the TIMx External Trigger (ETR). -5420:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** * @param TIMx to select the TIM peripheral -5421:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** * @param TIM_ExtTRGPrescaler The external Trigger Prescaler. -5422:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** * This parameter can be one of the following values: -5423:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** * @arg TIM_ETRPRESCALER_DIV1 : ETRP Prescaler OFF. -5424:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** * @arg TIM_ETRPRESCALER_DIV2 : ETRP frequency divided by 2. -5425:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** * @arg TIM_ETRPRESCALER_DIV4 : ETRP frequency divided by 4. -5426:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** * @arg TIM_ETRPRESCALER_DIV8 : ETRP frequency divided by 8. - ARM GAS /tmp/cccrAAAm.s page 198 - - -5427:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** * @param TIM_ExtTRGPolarity The external Trigger Polarity. -5428:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** * This parameter can be one of the following values: -5429:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** * @arg TIM_ETRPOLARITY_INVERTED : active low or falling edge active. -5430:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** * @arg TIM_ETRPOLARITY_NONINVERTED : active high or rising edge active. -5431:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** * @param ExtTRGFilter External Trigger Filter. -5432:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** * This parameter must be a value between 0x00 and 0x0F -5433:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** * @retval None -5434:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** */ -5435:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** void TIM_ETR_SetConfig(TIM_TypeDef* TIMx, uint32_t TIM_ExtTRGPrescaler, -5436:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** uint32_t TIM_ExtTRGPolarity, uint32_t ExtTRGFilter) -5437:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** { - 5279 .loc 1 5437 0 - 5280 .cfi_startproc - 5281 @ args = 0, pretend = 0, frame = 0 - 5282 @ frame_needed = 0, uses_anonymous_args = 0 - 5283 .LVL544: - 5284 0000 30B5 push {r4, r5, lr} - 5285 .LCFI44: - 5286 .cfi_def_cfa_offset 12 - 5287 .cfi_offset 4, -12 - 5288 .cfi_offset 5, -8 - 5289 .cfi_offset 14, -4 - 5290 .LVL545: -5438:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** uint32_t tmpsmcr = 0U; -5439:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** -5440:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** tmpsmcr = TIMx->SMCR; - 5291 .loc 1 5440 0 - 5292 0002 8468 ldr r4, [r0, #8] - 5293 .LVL546: -5441:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** -5442:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** /* Reset the ETR Bits */ -5443:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** tmpsmcr &= ~(TIM_SMCR_ETF | TIM_SMCR_ETPS | TIM_SMCR_ECE | TIM_SMCR_ETP); - 5294 .loc 1 5443 0 - 5295 0004 034D ldr r5, .L320 - 5296 0006 2C40 ands r4, r5 - 5297 .LVL547: -5444:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** -5445:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** /* Set the Prescaler, the Filter value and the Polarity */ -5446:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** tmpsmcr |= (uint32_t)(TIM_ExtTRGPrescaler | (TIM_ExtTRGPolarity | (ExtTRGFilter << 8U))); - 5298 .loc 1 5446 0 - 5299 0008 1B02 lsls r3, r3, #8 - 5300 .LVL548: - 5301 000a 1A43 orrs r2, r3 - 5302 .LVL549: - 5303 000c 1143 orrs r1, r2 - 5304 .LVL550: - 5305 000e 2143 orrs r1, r4 - 5306 .LVL551: -5447:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** -5448:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** /* Write to TIMx SMCR */ -5449:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** TIMx->SMCR = tmpsmcr; - 5307 .loc 1 5449 0 - 5308 0010 8160 str r1, [r0, #8] -5450:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** } - 5309 .loc 1 5450 0 - 5310 @ sp needed - 5311 0012 30BD pop {r4, r5, pc} - ARM GAS /tmp/cccrAAAm.s page 199 - - - 5312 .L321: - 5313 .align 2 - 5314 .L320: - 5315 0014 FF00FFFF .word -65281 - 5316 .cfi_endproc - 5317 .LFE143: - 5319 .section .text.HAL_TIM_ConfigOCrefClear,"ax",%progbits - 5320 .align 1 - 5321 .weak HAL_TIM_ConfigOCrefClear - 5322 .syntax unified - 5323 .code 16 - 5324 .thumb_func - 5325 .fpu softvfp - 5327 HAL_TIM_ConfigOCrefClear: - 5328 .LFB107: -3892:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** uint32_t tmpsmcr = 0; - 5329 .loc 1 3892 0 - 5330 .cfi_startproc - 5331 @ args = 0, pretend = 0, frame = 0 - 5332 @ frame_needed = 0, uses_anonymous_args = 0 - 5333 .LVL552: - 5334 0000 70B5 push {r4, r5, r6, lr} - 5335 .LCFI45: - 5336 .cfi_def_cfa_offset 16 - 5337 .cfi_offset 4, -16 - 5338 .cfi_offset 5, -12 - 5339 .cfi_offset 6, -8 - 5340 .cfi_offset 14, -4 - 5341 0002 0400 movs r4, r0 - 5342 0004 0E00 movs r6, r1 - 5343 0006 1500 movs r5, r2 - 5344 .LVL553: -3903:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** - 5345 .loc 1 3903 0 - 5346 0008 3C23 movs r3, #60 - 5347 000a C35C ldrb r3, [r0, r3] - 5348 000c 012B cmp r3, #1 - 5349 000e 00D1 bne .LCB4894 - 5350 0010 6AE0 b .L337 @long jump - 5351 .LCB4894: -3903:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** - 5352 .loc 1 3903 0 is_stmt 0 discriminator 2 - 5353 0012 3C23 movs r3, #60 - 5354 0014 0122 movs r2, #1 - 5355 .LVL554: - 5356 0016 C254 strb r2, [r0, r3] -3905:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** - 5357 .loc 1 3905 0 is_stmt 1 discriminator 2 - 5358 0018 0133 adds r3, r3, #1 - 5359 001a 0132 adds r2, r2, #1 - 5360 001c C254 strb r2, [r0, r3] -3907:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** { - 5361 .loc 1 3907 0 discriminator 2 - 5362 001e 4B68 ldr r3, [r1, #4] - 5363 0020 002B cmp r3, #0 - 5364 0022 12D0 beq .L325 - 5365 0024 012B cmp r3, #1 - ARM GAS /tmp/cccrAAAm.s page 200 - - - 5366 0026 16D0 beq .L326 - 5367 .LVL555: - 5368 .L324: -3940:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** { - 5369 .loc 1 3940 0 - 5370 0028 042D cmp r5, #4 - 5371 002a 38D0 beq .L328 - 5372 002c 1FD9 bls .L338 - 5373 002e 082D cmp r5, #8 - 5374 0030 45D0 beq .L331 - 5375 0032 0C2D cmp r5, #12 - 5376 0034 25D1 bne .L327 -3989:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** { - 5377 .loc 1 3989 0 - 5378 0036 3368 ldr r3, [r6] - 5379 0038 002B cmp r3, #0 - 5380 003a 4FD0 beq .L336 -3992:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** } - 5381 .loc 1 3992 0 - 5382 003c 2268 ldr r2, [r4] - 5383 003e D169 ldr r1, [r2, #28] - 5384 0040 8023 movs r3, #128 - 5385 0042 1B02 lsls r3, r3, #8 - 5386 0044 0B43 orrs r3, r1 - 5387 0046 D361 str r3, [r2, #28] - 5388 0048 1BE0 b .L327 - 5389 .LVL556: - 5390 .L325: -3912:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** - 5391 .loc 1 3912 0 - 5392 004a 0268 ldr r2, [r0] - 5393 004c 9368 ldr r3, [r2, #8] - 5394 .LVL557: -3918:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** - 5395 .loc 1 3918 0 - 5396 004e 2749 ldr r1, .L339 - 5397 .LVL558: - 5398 0050 0B40 ands r3, r1 - 5399 .LVL559: -3921:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** } - 5400 .loc 1 3921 0 - 5401 0052 9360 str r3, [r2, #8] -3923:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** - 5402 .loc 1 3923 0 - 5403 0054 E8E7 b .L324 - 5404 .LVL560: - 5405 .L326: -3927:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** sClearInputConfig->ClearInputPrescaler, - 5406 .loc 1 3927 0 - 5407 0056 0B69 ldr r3, [r1, #16] - 5408 0058 8A68 ldr r2, [r1, #8] - 5409 005a C968 ldr r1, [r1, #12] - 5410 .LVL561: - 5411 005c 0068 ldr r0, [r0] - 5412 .LVL562: - 5413 005e FFF7FEFF bl TIM_ETR_SetConfig - 5414 .LVL563: - ARM GAS /tmp/cccrAAAm.s page 201 - - -3933:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** } - 5415 .loc 1 3933 0 - 5416 0062 2268 ldr r2, [r4] - 5417 0064 9368 ldr r3, [r2, #8] - 5418 0066 0821 movs r1, #8 - 5419 0068 0B43 orrs r3, r1 - 5420 006a 9360 str r3, [r2, #8] -3935:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** default: - 5421 .loc 1 3935 0 - 5422 006c DCE7 b .L324 - 5423 .LVL564: - 5424 .L338: -3940:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** { - 5425 .loc 1 3940 0 - 5426 006e 002D cmp r5, #0 - 5427 0070 07D1 bne .L327 -3944:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** { - 5428 .loc 1 3944 0 - 5429 0072 3368 ldr r3, [r6] - 5430 0074 002B cmp r3, #0 - 5431 0076 0CD0 beq .L333 -3947:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** } - 5432 .loc 1 3947 0 - 5433 0078 2268 ldr r2, [r4] - 5434 007a 9369 ldr r3, [r2, #24] - 5435 007c 8021 movs r1, #128 - 5436 007e 0B43 orrs r3, r1 - 5437 0080 9361 str r3, [r2, #24] - 5438 .L327: -4005:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** - 5439 .loc 1 4005 0 - 5440 0082 3D23 movs r3, #61 - 5441 0084 0122 movs r2, #1 - 5442 0086 E254 strb r2, [r4, r3] -4007:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** - 5443 .loc 1 4007 0 - 5444 0088 013B subs r3, r3, #1 - 5445 008a 0022 movs r2, #0 - 5446 008c E254 strb r2, [r4, r3] -4009:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** } - 5447 .loc 1 4009 0 - 5448 008e 0020 movs r0, #0 - 5449 .L323: -4010:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** - 5450 .loc 1 4010 0 - 5451 @ sp needed - 5452 .LVL565: - 5453 .LVL566: - 5454 .LVL567: - 5455 0090 70BD pop {r4, r5, r6, pc} - 5456 .LVL568: - 5457 .L333: -3952:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** } - 5458 .loc 1 3952 0 - 5459 0092 2268 ldr r2, [r4] - 5460 0094 9369 ldr r3, [r2, #24] - 5461 0096 8021 movs r1, #128 - ARM GAS /tmp/cccrAAAm.s page 202 - - - 5462 0098 8B43 bics r3, r1 - 5463 009a 9361 str r3, [r2, #24] - 5464 009c F1E7 b .L327 - 5465 .L328: -3959:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** { - 5466 .loc 1 3959 0 - 5467 009e 3368 ldr r3, [r6] - 5468 00a0 002B cmp r3, #0 - 5469 00a2 06D0 beq .L334 -3962:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** } - 5470 .loc 1 3962 0 - 5471 00a4 2268 ldr r2, [r4] - 5472 00a6 9169 ldr r1, [r2, #24] - 5473 00a8 8023 movs r3, #128 - 5474 00aa 1B02 lsls r3, r3, #8 - 5475 00ac 0B43 orrs r3, r1 - 5476 00ae 9361 str r3, [r2, #24] - 5477 00b0 E7E7 b .L327 - 5478 .L334: -3967:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** } - 5479 .loc 1 3967 0 - 5480 00b2 2268 ldr r2, [r4] - 5481 00b4 9369 ldr r3, [r2, #24] - 5482 00b6 0E49 ldr r1, .L339+4 - 5483 00b8 0B40 ands r3, r1 - 5484 00ba 9361 str r3, [r2, #24] - 5485 00bc E1E7 b .L327 - 5486 .L331: -3974:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** { - 5487 .loc 1 3974 0 - 5488 00be 3368 ldr r3, [r6] - 5489 00c0 002B cmp r3, #0 - 5490 00c2 05D0 beq .L335 -3977:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** } - 5491 .loc 1 3977 0 - 5492 00c4 2268 ldr r2, [r4] - 5493 00c6 D369 ldr r3, [r2, #28] - 5494 00c8 8021 movs r1, #128 - 5495 00ca 0B43 orrs r3, r1 - 5496 00cc D361 str r3, [r2, #28] - 5497 00ce D8E7 b .L327 - 5498 .L335: -3982:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** } - 5499 .loc 1 3982 0 - 5500 00d0 2268 ldr r2, [r4] - 5501 00d2 D369 ldr r3, [r2, #28] - 5502 00d4 8021 movs r1, #128 - 5503 00d6 8B43 bics r3, r1 - 5504 00d8 D361 str r3, [r2, #28] - 5505 00da D2E7 b .L327 - 5506 .L336: -3997:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** } - 5507 .loc 1 3997 0 - 5508 00dc 2268 ldr r2, [r4] - 5509 00de D369 ldr r3, [r2, #28] - 5510 00e0 0349 ldr r1, .L339+4 - 5511 00e2 0B40 ands r3, r1 - ARM GAS /tmp/cccrAAAm.s page 203 - - - 5512 00e4 D361 str r3, [r2, #28] - 5513 00e6 CCE7 b .L327 - 5514 .LVL569: - 5515 .L337: -3903:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** - 5516 .loc 1 3903 0 - 5517 00e8 0220 movs r0, #2 - 5518 .LVL570: - 5519 00ea D1E7 b .L323 - 5520 .L340: - 5521 .align 2 - 5522 .L339: - 5523 00ec F700FFFF .word -65289 - 5524 00f0 FF7FFFFF .word -32769 - 5525 .cfi_endproc - 5526 .LFE107: - 5528 .section .text.HAL_TIM_ConfigClockSource,"ax",%progbits - 5529 .align 1 - 5530 .global HAL_TIM_ConfigClockSource - 5531 .syntax unified - 5532 .code 16 - 5533 .thumb_func - 5534 .fpu softvfp - 5536 HAL_TIM_ConfigClockSource: - 5537 .LFB108: -4020:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** uint32_t tmpsmcr = 0U; - 5538 .loc 1 4020 0 - 5539 .cfi_startproc - 5540 @ args = 0, pretend = 0, frame = 0 - 5541 @ frame_needed = 0, uses_anonymous_args = 0 - 5542 .LVL571: - 5543 0000 10B5 push {r4, lr} - 5544 .LCFI46: - 5545 .cfi_def_cfa_offset 8 - 5546 .cfi_offset 4, -8 - 5547 .cfi_offset 14, -4 - 5548 0002 0400 movs r4, r0 - 5549 .LVL572: -4024:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** - 5550 .loc 1 4024 0 - 5551 0004 3C23 movs r3, #60 - 5552 0006 C35C ldrb r3, [r0, r3] - 5553 0008 012B cmp r3, #1 - 5554 000a 00D1 bne .LCB5117 - 5555 000c 7FE0 b .L357 @long jump - 5556 .LCB5117: -4024:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** - 5557 .loc 1 4024 0 is_stmt 0 discriminator 2 - 5558 000e 3C23 movs r3, #60 - 5559 0010 0122 movs r2, #1 - 5560 0012 C254 strb r2, [r0, r3] -4026:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** - 5561 .loc 1 4026 0 is_stmt 1 discriminator 2 - 5562 0014 0133 adds r3, r3, #1 - 5563 0016 0132 adds r2, r2, #1 - 5564 0018 C254 strb r2, [r0, r3] -4032:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** tmpsmcr &= ~(TIM_SMCR_SMS | TIM_SMCR_TS); - ARM GAS /tmp/cccrAAAm.s page 204 - - - 5565 .loc 1 4032 0 discriminator 2 - 5566 001a 0268 ldr r2, [r0] - 5567 001c 9368 ldr r3, [r2, #8] - 5568 .LVL573: -4034:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** htim->Instance->SMCR = tmpsmcr; - 5569 .loc 1 4034 0 discriminator 2 - 5570 001e 3D48 ldr r0, .L360 - 5571 .LVL574: - 5572 0020 0340 ands r3, r0 - 5573 .LVL575: -4035:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** - 5574 .loc 1 4035 0 discriminator 2 - 5575 0022 9360 str r3, [r2, #8] -4037:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** { - 5576 .loc 1 4037 0 discriminator 2 - 5577 0024 0B68 ldr r3, [r1] - 5578 .LVL576: - 5579 0026 402B cmp r3, #64 - 5580 0028 5DD0 beq .L344 - 5581 002a 10D9 bls .L358 - 5582 002c 702B cmp r3, #112 - 5583 002e 43D0 beq .L351 - 5584 0030 20D8 bhi .L352 - 5585 0032 502B cmp r3, #80 - 5586 0034 4DD0 beq .L353 - 5587 0036 602B cmp r3, #96 - 5588 0038 36D1 bne .L343 -4117:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** sClockSourceConfig->ClockPolarity, - 5589 .loc 1 4117 0 - 5590 003a CA68 ldr r2, [r1, #12] - 5591 .LVL577: - 5592 003c 4968 ldr r1, [r1, #4] - 5593 .LVL578: - 5594 003e 2068 ldr r0, [r4] - 5595 0040 FFF7FEFF bl TIM_TI2_ConfigInputStage - 5596 .LVL579: -4120:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** } - 5597 .loc 1 4120 0 - 5598 0044 6021 movs r1, #96 - 5599 0046 2068 ldr r0, [r4] - 5600 0048 FFF7FEFF bl TIM_ITRx_SetConfig - 5601 .LVL580: -4122:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** case TIM_CLOCKSOURCE_TI1ED: - 5602 .loc 1 4122 0 - 5603 004c 2CE0 b .L343 - 5604 .LVL581: - 5605 .L358: -4037:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** { - 5606 .loc 1 4037 0 discriminator 2 - 5607 004e 102B cmp r3, #16 - 5608 0050 53D0 beq .L346 - 5609 0052 08D9 bls .L359 - 5610 0054 202B cmp r3, #32 - 5611 0056 55D0 beq .L349 - 5612 0058 302B cmp r3, #48 - 5613 005a 25D1 bne .L343 -4167:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** } - ARM GAS /tmp/cccrAAAm.s page 205 - - - 5614 .loc 1 4167 0 - 5615 005c 3021 movs r1, #48 - 5616 .LVL582: - 5617 005e 2068 ldr r0, [r4] - 5618 0060 FFF7FEFF bl TIM_ITRx_SetConfig - 5619 .LVL583: -4169:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** - 5620 .loc 1 4169 0 - 5621 0064 20E0 b .L343 - 5622 .LVL584: - 5623 .L359: -4037:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** { - 5624 .loc 1 4037 0 discriminator 2 - 5625 0066 002B cmp r3, #0 - 5626 0068 1ED1 bne .L343 -4143:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** } - 5627 .loc 1 4143 0 - 5628 006a 0021 movs r1, #0 - 5629 .LVL585: - 5630 006c 2068 ldr r0, [r4] - 5631 006e FFF7FEFF bl TIM_ITRx_SetConfig - 5632 .LVL586: -4145:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** case TIM_CLOCKSOURCE_ITR1: - 5633 .loc 1 4145 0 - 5634 0072 19E0 b .L343 - 5635 .LVL587: - 5636 .L352: -4037:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** { - 5637 .loc 1 4037 0 discriminator 2 - 5638 0074 8022 movs r2, #128 - 5639 .LVL588: - 5640 0076 5201 lsls r2, r2, #5 - 5641 0078 9342 cmp r3, r2 - 5642 007a 10D0 beq .L355 - 5643 007c 8022 movs r2, #128 - 5644 007e 9201 lsls r2, r2, #6 - 5645 0080 9342 cmp r3, r2 - 5646 0082 11D1 bne .L343 -4084:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** sClockSourceConfig->ClockPrescaler, - 5647 .loc 1 4084 0 - 5648 0084 CB68 ldr r3, [r1, #12] - 5649 0086 4A68 ldr r2, [r1, #4] - 5650 0088 8968 ldr r1, [r1, #8] - 5651 .LVL589: - 5652 008a 2068 ldr r0, [r4] - 5653 008c FFF7FEFF bl TIM_ETR_SetConfig - 5654 .LVL590: -4089:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** } - 5655 .loc 1 4089 0 - 5656 0090 2268 ldr r2, [r4] - 5657 0092 9168 ldr r1, [r2, #8] - 5658 0094 8023 movs r3, #128 - 5659 0096 DB01 lsls r3, r3, #7 - 5660 0098 0B43 orrs r3, r1 - 5661 009a 9360 str r3, [r2, #8] -4091:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** - 5662 .loc 1 4091 0 - ARM GAS /tmp/cccrAAAm.s page 206 - - - 5663 009c 04E0 b .L343 - 5664 .LVL591: - 5665 .L355: -4043:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** } - 5666 .loc 1 4043 0 - 5667 009e 2268 ldr r2, [r4] - 5668 00a0 9368 ldr r3, [r2, #8] - 5669 00a2 0721 movs r1, #7 - 5670 .LVL592: - 5671 00a4 8B43 bics r3, r1 - 5672 00a6 9360 str r3, [r2, #8] - 5673 .L343: -4174:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** - 5674 .loc 1 4174 0 - 5675 00a8 3D23 movs r3, #61 - 5676 00aa 0122 movs r2, #1 - 5677 00ac E254 strb r2, [r4, r3] -4176:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** - 5678 .loc 1 4176 0 - 5679 00ae 013B subs r3, r3, #1 - 5680 00b0 0022 movs r2, #0 - 5681 00b2 E254 strb r2, [r4, r3] -4178:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** } - 5682 .loc 1 4178 0 - 5683 00b4 0020 movs r0, #0 - 5684 .L342: -4179:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** - 5685 .loc 1 4179 0 - 5686 @ sp needed - 5687 .LVL593: - 5688 00b6 10BD pop {r4, pc} - 5689 .LVL594: - 5690 .L351: -4058:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** sClockSourceConfig->ClockPrescaler, - 5691 .loc 1 4058 0 - 5692 00b8 CB68 ldr r3, [r1, #12] - 5693 00ba 4A68 ldr r2, [r1, #4] - 5694 .LVL595: - 5695 00bc 8968 ldr r1, [r1, #8] - 5696 .LVL596: - 5697 00be 2068 ldr r0, [r4] - 5698 00c0 FFF7FEFF bl TIM_ETR_SetConfig - 5699 .LVL597: -4063:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** /* Reset the SMS and TS Bits */ - 5700 .loc 1 4063 0 - 5701 00c4 2268 ldr r2, [r4] - 5702 00c6 9368 ldr r3, [r2, #8] - 5703 .LVL598: -4065:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** /* Select the External clock mode1 and the ETRF trigger */ - 5704 .loc 1 4065 0 - 5705 00c8 7721 movs r1, #119 - 5706 00ca 8B43 bics r3, r1 - 5707 .LVL599: -4067:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** /* Write to TIMx SMCR */ - 5708 .loc 1 4067 0 - 5709 00cc 0B43 orrs r3, r1 - 5710 .LVL600: - ARM GAS /tmp/cccrAAAm.s page 207 - - -4069:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** } - 5711 .loc 1 4069 0 - 5712 00ce 9360 str r3, [r2, #8] -4071:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** - 5713 .loc 1 4071 0 - 5714 00d0 EAE7 b .L343 - 5715 .LVL601: - 5716 .L353: -4102:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** sClockSourceConfig->ClockPolarity, - 5717 .loc 1 4102 0 - 5718 00d2 CA68 ldr r2, [r1, #12] - 5719 .LVL602: - 5720 00d4 4968 ldr r1, [r1, #4] - 5721 .LVL603: - 5722 00d6 2068 ldr r0, [r4] - 5723 00d8 FFF7FEFF bl TIM_TI1_ConfigInputStage - 5724 .LVL604: -4105:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** } - 5725 .loc 1 4105 0 - 5726 00dc 5021 movs r1, #80 - 5727 00de 2068 ldr r0, [r4] - 5728 00e0 FFF7FEFF bl TIM_ITRx_SetConfig - 5729 .LVL605: -4107:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** case TIM_CLOCKSOURCE_TI2: - 5730 .loc 1 4107 0 - 5731 00e4 E0E7 b .L343 - 5732 .LVL606: - 5733 .L344: -4132:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** sClockSourceConfig->ClockPolarity, - 5734 .loc 1 4132 0 - 5735 00e6 CA68 ldr r2, [r1, #12] - 5736 .LVL607: - 5737 00e8 4968 ldr r1, [r1, #4] - 5738 .LVL608: - 5739 00ea 2068 ldr r0, [r4] - 5740 00ec FFF7FEFF bl TIM_TI1_ConfigInputStage - 5741 .LVL609: -4135:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** } - 5742 .loc 1 4135 0 - 5743 00f0 4021 movs r1, #64 - 5744 00f2 2068 ldr r0, [r4] - 5745 00f4 FFF7FEFF bl TIM_ITRx_SetConfig - 5746 .LVL610: -4137:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** case TIM_CLOCKSOURCE_ITR0: - 5747 .loc 1 4137 0 - 5748 00f8 D6E7 b .L343 - 5749 .LVL611: - 5750 .L346: -4151:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** } - 5751 .loc 1 4151 0 - 5752 00fa 1021 movs r1, #16 - 5753 .LVL612: - 5754 00fc 2068 ldr r0, [r4] - 5755 00fe FFF7FEFF bl TIM_ITRx_SetConfig - 5756 .LVL613: -4153:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** case TIM_CLOCKSOURCE_ITR2: - 5757 .loc 1 4153 0 - ARM GAS /tmp/cccrAAAm.s page 208 - - - 5758 0102 D1E7 b .L343 - 5759 .LVL614: - 5760 .L349: -4159:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** } - 5761 .loc 1 4159 0 - 5762 0104 2021 movs r1, #32 - 5763 .LVL615: - 5764 0106 2068 ldr r0, [r4] - 5765 0108 FFF7FEFF bl TIM_ITRx_SetConfig - 5766 .LVL616: -4161:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** case TIM_CLOCKSOURCE_ITR3: - 5767 .loc 1 4161 0 - 5768 010c CCE7 b .L343 - 5769 .LVL617: - 5770 .L357: -4024:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** - 5771 .loc 1 4024 0 - 5772 010e 0220 movs r0, #2 - 5773 .LVL618: - 5774 0110 D1E7 b .L342 - 5775 .L361: - 5776 0112 C046 .align 2 - 5777 .L360: - 5778 0114 8800FFFF .word -65400 - 5779 .cfi_endproc - 5780 .LFE108: - 5782 .section .text.TIM_SlaveTimer_SetConfig,"ax",%progbits - 5783 .align 1 - 5784 .syntax unified - 5785 .code 16 - 5786 .thumb_func - 5787 .fpu softvfp - 5789 TIM_SlaveTimer_SetConfig: - 5790 .LFB135: -4999:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** uint32_t tmpsmcr = 0U; - 5791 .loc 1 4999 0 - 5792 .cfi_startproc - 5793 @ args = 0, pretend = 0, frame = 0 - 5794 @ frame_needed = 0, uses_anonymous_args = 0 - 5795 .LVL619: - 5796 0000 70B5 push {r4, r5, r6, lr} - 5797 .LCFI47: - 5798 .cfi_def_cfa_offset 16 - 5799 .cfi_offset 4, -16 - 5800 .cfi_offset 5, -12 - 5801 .cfi_offset 6, -8 - 5802 .cfi_offset 14, -4 - 5803 .LVL620: -5005:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** - 5804 .loc 1 5005 0 - 5805 0002 0268 ldr r2, [r0] - 5806 0004 9368 ldr r3, [r2, #8] - 5807 .LVL621: -5008:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** /* Set the Input Trigger source */ - 5808 .loc 1 5008 0 - 5809 0006 7024 movs r4, #112 - 5810 0008 A343 bics r3, r4 - ARM GAS /tmp/cccrAAAm.s page 209 - - - 5811 .LVL622: -5010:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** - 5812 .loc 1 5010 0 - 5813 000a 4C68 ldr r4, [r1, #4] - 5814 000c 2343 orrs r3, r4 - 5815 .LVL623: -5013:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** /* Set the slave mode */ - 5816 .loc 1 5013 0 - 5817 000e 0724 movs r4, #7 - 5818 0010 A343 bics r3, r4 - 5819 .LVL624: -5015:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** - 5820 .loc 1 5015 0 - 5821 0012 0C68 ldr r4, [r1] - 5822 0014 2343 orrs r3, r4 - 5823 .LVL625: -5018:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** - 5824 .loc 1 5018 0 - 5825 0016 9360 str r3, [r2, #8] -5021:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** { - 5826 .loc 1 5021 0 - 5827 0018 4B68 ldr r3, [r1, #4] - 5828 .LVL626: - 5829 001a 502B cmp r3, #80 - 5830 001c 1FD0 beq .L364 - 5831 001e 0AD9 bls .L369 - 5832 0020 602B cmp r3, #96 - 5833 0022 22D0 beq .L367 - 5834 0024 702B cmp r3, #112 - 5835 0026 05D1 bne .L362 -5031:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** sSlaveConfig->TriggerPrescaler, - 5836 .loc 1 5031 0 - 5837 0028 0B69 ldr r3, [r1, #16] - 5838 002a 8A68 ldr r2, [r1, #8] - 5839 .LVL627: - 5840 002c C968 ldr r1, [r1, #12] - 5841 .LVL628: - 5842 002e 0068 ldr r0, [r0] - 5843 .LVL629: - 5844 0030 FFF7FEFF bl TIM_ETR_SetConfig - 5845 .LVL630: - 5846 .L362: -5119:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** - 5847 .loc 1 5119 0 - 5848 @ sp needed - 5849 0034 70BD pop {r4, r5, r6, pc} - 5850 .LVL631: - 5851 .L369: -5021:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** { - 5852 .loc 1 5021 0 - 5853 0036 402B cmp r3, #64 - 5854 0038 FCD1 bne .L362 -5045:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** htim->Instance->CCER &= ~TIM_CCER_CC1E; - 5855 .loc 1 5045 0 - 5856 003a 0368 ldr r3, [r0] - 5857 003c 1D6A ldr r5, [r3, #32] - 5858 .LVL632: - ARM GAS /tmp/cccrAAAm.s page 210 - - -5046:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** tmpccmr1 = htim->Instance->CCMR1; - 5859 .loc 1 5046 0 - 5860 003e 1A6A ldr r2, [r3, #32] - 5861 .LVL633: - 5862 0040 0124 movs r4, #1 - 5863 0042 A243 bics r2, r4 - 5864 0044 1A62 str r2, [r3, #32] -5047:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** - 5865 .loc 1 5047 0 - 5866 0046 0468 ldr r4, [r0] - 5867 0048 A369 ldr r3, [r4, #24] - 5868 .LVL634: -5050:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** tmpccmr1 |= ((sSlaveConfig->TriggerFilter) << 4U); - 5869 .loc 1 5050 0 - 5870 004a F022 movs r2, #240 - 5871 004c 9343 bics r3, r2 - 5872 .LVL635: - 5873 004e 1A00 movs r2, r3 - 5874 .LVL636: -5051:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** - 5875 .loc 1 5051 0 - 5876 0050 0B69 ldr r3, [r1, #16] - 5877 0052 1B01 lsls r3, r3, #4 - 5878 0054 1343 orrs r3, r2 - 5879 .LVL637: -5054:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** htim->Instance->CCER = tmpccer; - 5880 .loc 1 5054 0 - 5881 0056 A361 str r3, [r4, #24] -5055:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** - 5882 .loc 1 5055 0 - 5883 0058 0368 ldr r3, [r0] - 5884 .LVL638: - 5885 005a 1D62 str r5, [r3, #32] - 5886 .LVL639: -5058:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** - 5887 .loc 1 5058 0 - 5888 005c EAE7 b .L362 - 5889 .LVL640: - 5890 .L364: -5068:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** sSlaveConfig->TriggerPolarity, - 5891 .loc 1 5068 0 - 5892 005e 0A69 ldr r2, [r1, #16] - 5893 .LVL641: - 5894 0060 8968 ldr r1, [r1, #8] - 5895 .LVL642: - 5896 0062 0068 ldr r0, [r0] - 5897 .LVL643: - 5898 0064 FFF7FEFF bl TIM_TI1_ConfigInputStage - 5899 .LVL644: -5072:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** - 5900 .loc 1 5072 0 - 5901 0068 E4E7 b .L362 - 5902 .LVL645: - 5903 .L367: -5082:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** sSlaveConfig->TriggerPolarity, - 5904 .loc 1 5082 0 - 5905 006a 0A69 ldr r2, [r1, #16] - ARM GAS /tmp/cccrAAAm.s page 211 - - - 5906 .LVL646: - 5907 006c 8968 ldr r1, [r1, #8] - 5908 .LVL647: - 5909 006e 0068 ldr r0, [r0] - 5910 .LVL648: - 5911 0070 FFF7FEFF bl TIM_TI2_ConfigInputStage - 5912 .LVL649: -5119:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** - 5913 .loc 1 5119 0 - 5914 0074 DEE7 b .L362 - 5915 .cfi_endproc - 5916 .LFE135: - 5918 .section .text.HAL_TIM_SlaveConfigSynchronization,"ax",%progbits - 5919 .align 1 - 5920 .global HAL_TIM_SlaveConfigSynchronization - 5921 .syntax unified - 5922 .code 16 - 5923 .thumb_func - 5924 .fpu softvfp - 5926 HAL_TIM_SlaveConfigSynchronization: - 5927 .LFB110: -4226:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** /* Check the parameters */ - 5928 .loc 1 4226 0 - 5929 .cfi_startproc - 5930 @ args = 0, pretend = 0, frame = 0 - 5931 @ frame_needed = 0, uses_anonymous_args = 0 - 5932 .LVL650: - 5933 0000 F8B5 push {r3, r4, r5, r6, r7, lr} - 5934 .LCFI48: - 5935 .cfi_def_cfa_offset 24 - 5936 .cfi_offset 3, -24 - 5937 .cfi_offset 4, -20 - 5938 .cfi_offset 5, -16 - 5939 .cfi_offset 6, -12 - 5940 .cfi_offset 7, -8 - 5941 .cfi_offset 14, -4 - 5942 0002 0400 movs r4, r0 -4232:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** - 5943 .loc 1 4232 0 - 5944 0004 3C23 movs r3, #60 - 5945 0006 C35C ldrb r3, [r0, r3] - 5946 0008 012B cmp r3, #1 - 5947 000a 16D0 beq .L372 -4232:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** - 5948 .loc 1 4232 0 is_stmt 0 discriminator 2 - 5949 000c 3C25 movs r5, #60 - 5950 000e 0127 movs r7, #1 - 5951 0010 4755 strb r7, [r0, r5] -4234:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** - 5952 .loc 1 4234 0 is_stmt 1 discriminator 2 - 5953 0012 3D26 movs r6, #61 - 5954 0014 0223 movs r3, #2 - 5955 0016 8355 strb r3, [r0, r6] -4236:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** - 5956 .loc 1 4236 0 discriminator 2 - 5957 0018 FFF7FEFF bl TIM_SlaveTimer_SetConfig - 5958 .LVL651: - ARM GAS /tmp/cccrAAAm.s page 212 - - -4239:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** - 5959 .loc 1 4239 0 discriminator 2 - 5960 001c 2268 ldr r2, [r4] - 5961 001e D368 ldr r3, [r2, #12] - 5962 0020 4021 movs r1, #64 - 5963 0022 8B43 bics r3, r1 - 5964 0024 D360 str r3, [r2, #12] -4242:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** - 5965 .loc 1 4242 0 discriminator 2 - 5966 0026 2268 ldr r2, [r4] - 5967 0028 D368 ldr r3, [r2, #12] - 5968 002a 0549 ldr r1, .L373 - 5969 002c 0B40 ands r3, r1 - 5970 002e D360 str r3, [r2, #12] -4244:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** - 5971 .loc 1 4244 0 discriminator 2 - 5972 0030 A755 strb r7, [r4, r6] -4246:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** - 5973 .loc 1 4246 0 discriminator 2 - 5974 0032 0023 movs r3, #0 - 5975 0034 6355 strb r3, [r4, r5] -4248:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** } - 5976 .loc 1 4248 0 discriminator 2 - 5977 0036 0020 movs r0, #0 - 5978 .L371: -4249:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** - 5979 .loc 1 4249 0 - 5980 @ sp needed - 5981 .LVL652: - 5982 0038 F8BD pop {r3, r4, r5, r6, r7, pc} - 5983 .LVL653: - 5984 .L372: -4232:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** - 5985 .loc 1 4232 0 - 5986 003a 0220 movs r0, #2 - 5987 .LVL654: - 5988 003c FCE7 b .L371 - 5989 .L374: - 5990 003e C046 .align 2 - 5991 .L373: - 5992 0040 FFBFFFFF .word -16385 - 5993 .cfi_endproc - 5994 .LFE110: - 5996 .section .text.HAL_TIM_SlaveConfigSynchronization_IT,"ax",%progbits - 5997 .align 1 - 5998 .global HAL_TIM_SlaveConfigSynchronization_IT - 5999 .syntax unified - 6000 .code 16 - 6001 .thumb_func - 6002 .fpu softvfp - 6004 HAL_TIM_SlaveConfigSynchronization_IT: - 6005 .LFB111: -4262:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** /* Check the parameters */ - 6006 .loc 1 4262 0 - 6007 .cfi_startproc - 6008 @ args = 0, pretend = 0, frame = 0 - 6009 @ frame_needed = 0, uses_anonymous_args = 0 - ARM GAS /tmp/cccrAAAm.s page 213 - - - 6010 .LVL655: - 6011 0000 F8B5 push {r3, r4, r5, r6, r7, lr} - 6012 .LCFI49: - 6013 .cfi_def_cfa_offset 24 - 6014 .cfi_offset 3, -24 - 6015 .cfi_offset 4, -20 - 6016 .cfi_offset 5, -16 - 6017 .cfi_offset 6, -12 - 6018 .cfi_offset 7, -8 - 6019 .cfi_offset 14, -4 - 6020 0002 0400 movs r4, r0 -4268:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** - 6021 .loc 1 4268 0 - 6022 0004 3C23 movs r3, #60 - 6023 0006 C35C ldrb r3, [r0, r3] - 6024 0008 012B cmp r3, #1 - 6025 000a 16D0 beq .L377 -4268:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** - 6026 .loc 1 4268 0 is_stmt 0 discriminator 2 - 6027 000c 3C25 movs r5, #60 - 6028 000e 0127 movs r7, #1 - 6029 0010 4755 strb r7, [r0, r5] -4270:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** - 6030 .loc 1 4270 0 is_stmt 1 discriminator 2 - 6031 0012 3D26 movs r6, #61 - 6032 0014 0223 movs r3, #2 - 6033 0016 8355 strb r3, [r0, r6] -4272:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** - 6034 .loc 1 4272 0 discriminator 2 - 6035 0018 FFF7FEFF bl TIM_SlaveTimer_SetConfig - 6036 .LVL656: -4275:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** - 6037 .loc 1 4275 0 discriminator 2 - 6038 001c 2268 ldr r2, [r4] - 6039 001e D368 ldr r3, [r2, #12] - 6040 0020 4021 movs r1, #64 - 6041 0022 0B43 orrs r3, r1 - 6042 0024 D360 str r3, [r2, #12] -4278:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** - 6043 .loc 1 4278 0 discriminator 2 - 6044 0026 2268 ldr r2, [r4] - 6045 0028 D368 ldr r3, [r2, #12] - 6046 002a 0549 ldr r1, .L378 - 6047 002c 0B40 ands r3, r1 - 6048 002e D360 str r3, [r2, #12] -4280:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** - 6049 .loc 1 4280 0 discriminator 2 - 6050 0030 A755 strb r7, [r4, r6] -4282:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** - 6051 .loc 1 4282 0 discriminator 2 - 6052 0032 0023 movs r3, #0 - 6053 0034 6355 strb r3, [r4, r5] -4284:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** } - 6054 .loc 1 4284 0 discriminator 2 - 6055 0036 0020 movs r0, #0 - 6056 .L376: -4285:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** - ARM GAS /tmp/cccrAAAm.s page 214 - - - 6057 .loc 1 4285 0 - 6058 @ sp needed - 6059 .LVL657: - 6060 0038 F8BD pop {r3, r4, r5, r6, r7, pc} - 6061 .LVL658: - 6062 .L377: -4268:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** - 6063 .loc 1 4268 0 - 6064 003a 0220 movs r0, #2 - 6065 .LVL659: - 6066 003c FCE7 b .L376 - 6067 .L379: - 6068 003e C046 .align 2 - 6069 .L378: - 6070 0040 FFBFFFFF .word -16385 - 6071 .cfi_endproc - 6072 .LFE111: - 6074 .section .text.TIM_CCxChannelCmd,"ax",%progbits - 6075 .align 1 - 6076 .global TIM_CCxChannelCmd - 6077 .syntax unified - 6078 .code 16 - 6079 .thumb_func - 6080 .fpu softvfp - 6082 TIM_CCxChannelCmd: - 6083 .LFB144: -5451:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** -5452:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** /** -5453:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** * @brief Enables or disables the TIM Capture Compare Channel x. -5454:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** * @param TIMx to select the TIM peripheral -5455:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** * @param Channel specifies the TIM Channel -5456:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** * This parameter can be one of the following values: -5457:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** * @arg TIM_CHANNEL_1 : TIM Channel 1 -5458:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** * @arg TIM_CHANNEL_2 : TIM Channel 2 -5459:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** * @arg TIM_CHANNEL_3 : TIM Channel 3 -5460:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** * @arg TIM_CHANNEL_4 : TIM Channel 4 -5461:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** * @param ChannelState specifies the TIM Channel CCxE bit new state. -5462:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** * This parameter can be: TIM_CCx_ENABLE or TIM_CCx_Disable. -5463:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** * @retval None -5464:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** */ -5465:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** void TIM_CCxChannelCmd(TIM_TypeDef* TIMx, uint32_t Channel, uint32_t ChannelState) -5466:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** { - 6084 .loc 1 5466 0 - 6085 .cfi_startproc - 6086 @ args = 0, pretend = 0, frame = 0 - 6087 @ frame_needed = 0, uses_anonymous_args = 0 - 6088 .LVL660: - 6089 0000 10B5 push {r4, lr} - 6090 .LCFI50: - 6091 .cfi_def_cfa_offset 8 - 6092 .cfi_offset 4, -8 - 6093 .cfi_offset 14, -4 - 6094 .LVL661: -5467:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** uint32_t tmp = 0U; -5468:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** -5469:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** /* Check the parameters */ -5470:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** assert_param(IS_TIM_CC1_INSTANCE(TIMx)); - ARM GAS /tmp/cccrAAAm.s page 215 - - -5471:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** assert_param(IS_TIM_CHANNELS(Channel)); -5472:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** -5473:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** tmp = TIM_CCER_CC1E << Channel; - 6095 .loc 1 5473 0 - 6096 0002 0124 movs r4, #1 - 6097 0004 8C40 lsls r4, r4, r1 - 6098 .LVL662: -5474:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** -5475:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** /* Reset the CCxE Bit */ -5476:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** TIMx->CCER &= ~tmp; - 6099 .loc 1 5476 0 - 6100 0006 036A ldr r3, [r0, #32] - 6101 0008 A343 bics r3, r4 - 6102 000a 0362 str r3, [r0, #32] -5477:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** -5478:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** /* Set or reset the CCxE Bit */ -5479:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** TIMx->CCER |= (uint32_t)(ChannelState << Channel); - 6103 .loc 1 5479 0 - 6104 000c 036A ldr r3, [r0, #32] - 6105 000e 8A40 lsls r2, r2, r1 - 6106 .LVL663: - 6107 0010 1A43 orrs r2, r3 - 6108 0012 0262 str r2, [r0, #32] -5480:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** } - 6109 .loc 1 5480 0 - 6110 @ sp needed - 6111 .LVL664: - 6112 0014 10BD pop {r4, pc} - 6113 .cfi_endproc - 6114 .LFE144: - 6116 .section .text.HAL_TIM_OC_Start,"ax",%progbits - 6117 .align 1 - 6118 .global HAL_TIM_OC_Start - 6119 .syntax unified - 6120 .code 16 - 6121 .thumb_func - 6122 .fpu softvfp - 6124 HAL_TIM_OC_Start: - 6125 .LFB51: - 585:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** /* Check the parameters */ - 6126 .loc 1 585 0 - 6127 .cfi_startproc - 6128 @ args = 0, pretend = 0, frame = 0 - 6129 @ frame_needed = 0, uses_anonymous_args = 0 - 6130 .LVL665: - 6131 0000 10B5 push {r4, lr} - 6132 .LCFI51: - 6133 .cfi_def_cfa_offset 8 - 6134 .cfi_offset 4, -8 - 6135 .cfi_offset 14, -4 - 6136 0002 0400 movs r4, r0 - 590:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** - 6137 .loc 1 590 0 - 6138 0004 0122 movs r2, #1 - 6139 0006 0068 ldr r0, [r0] - 6140 .LVL666: - 6141 0008 FFF7FEFF bl TIM_CCxChannelCmd - ARM GAS /tmp/cccrAAAm.s page 216 - - - 6142 .LVL667: - 592:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** { - 6143 .loc 1 592 0 - 6144 000c 2368 ldr r3, [r4] - 6145 000e 0C4A ldr r2, .L384 - 6146 0010 9342 cmp r3, r2 - 6147 0012 08D0 beq .L382 - 592:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** { - 6148 .loc 1 592 0 is_stmt 0 discriminator 2 - 6149 0014 0B4A ldr r2, .L384+4 - 6150 0016 9342 cmp r3, r2 - 6151 0018 05D0 beq .L382 - 592:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** { - 6152 .loc 1 592 0 discriminator 4 - 6153 001a 0B4A ldr r2, .L384+8 - 6154 001c 9342 cmp r3, r2 - 6155 001e 02D0 beq .L382 - 592:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** { - 6156 .loc 1 592 0 discriminator 6 - 6157 0020 0A4A ldr r2, .L384+12 - 6158 0022 9342 cmp r3, r2 - 6159 0024 04D1 bne .L383 - 6160 .L382: - 595:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** } - 6161 .loc 1 595 0 is_stmt 1 - 6162 0026 596C ldr r1, [r3, #68] - 6163 0028 8022 movs r2, #128 - 6164 002a 1202 lsls r2, r2, #8 - 6165 002c 0A43 orrs r2, r1 - 6166 002e 5A64 str r2, [r3, #68] - 6167 .L383: - 599:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** - 6168 .loc 1 599 0 - 6169 0030 2268 ldr r2, [r4] - 6170 0032 1368 ldr r3, [r2] - 6171 0034 0121 movs r1, #1 - 6172 0036 0B43 orrs r3, r1 - 6173 0038 1360 str r3, [r2] - 603:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** - 6174 .loc 1 603 0 - 6175 003a 0020 movs r0, #0 - 6176 @ sp needed - 6177 .LVL668: - 6178 003c 10BD pop {r4, pc} - 6179 .L385: - 6180 003e C046 .align 2 - 6181 .L384: - 6182 0040 002C0140 .word 1073818624 - 6183 0044 00400140 .word 1073823744 - 6184 0048 00440140 .word 1073824768 - 6185 004c 00480140 .word 1073825792 - 6186 .cfi_endproc - 6187 .LFE51: - 6189 .section .text.HAL_TIM_OC_Stop,"ax",%progbits - 6190 .align 1 - 6191 .global HAL_TIM_OC_Stop - 6192 .syntax unified - ARM GAS /tmp/cccrAAAm.s page 217 - - - 6193 .code 16 - 6194 .thumb_func - 6195 .fpu softvfp - 6197 HAL_TIM_OC_Stop: - 6198 .LFB52: - 617:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** /* Check the parameters */ - 6199 .loc 1 617 0 - 6200 .cfi_startproc - 6201 @ args = 0, pretend = 0, frame = 0 - 6202 @ frame_needed = 0, uses_anonymous_args = 0 - 6203 .LVL669: - 6204 0000 10B5 push {r4, lr} - 6205 .LCFI52: - 6206 .cfi_def_cfa_offset 8 - 6207 .cfi_offset 4, -8 - 6208 .cfi_offset 14, -4 - 6209 0002 0400 movs r4, r0 - 622:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** - 6210 .loc 1 622 0 - 6211 0004 0022 movs r2, #0 - 6212 0006 0068 ldr r0, [r0] - 6213 .LVL670: - 6214 0008 FFF7FEFF bl TIM_CCxChannelCmd - 6215 .LVL671: - 624:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** { - 6216 .loc 1 624 0 - 6217 000c 2368 ldr r3, [r4] - 6218 000e 144A ldr r2, .L390 - 6219 0010 9342 cmp r3, r2 - 6220 0012 17D0 beq .L387 - 624:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** { - 6221 .loc 1 624 0 is_stmt 0 discriminator 2 - 6222 0014 134A ldr r2, .L390+4 - 6223 0016 9342 cmp r3, r2 - 6224 0018 14D0 beq .L387 - 624:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** { - 6225 .loc 1 624 0 discriminator 4 - 6226 001a 134A ldr r2, .L390+8 - 6227 001c 9342 cmp r3, r2 - 6228 001e 11D0 beq .L387 - 624:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** { - 6229 .loc 1 624 0 discriminator 6 - 6230 0020 124A ldr r2, .L390+12 - 6231 0022 9342 cmp r3, r2 - 6232 0024 0ED0 beq .L387 - 6233 .L388: - 631:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** - 6234 .loc 1 631 0 is_stmt 1 - 6235 0026 2368 ldr r3, [r4] - 6236 0028 196A ldr r1, [r3, #32] - 6237 002a 114A ldr r2, .L390+16 - 6238 002c 1142 tst r1, r2 - 6239 002e 07D1 bne .L389 - 631:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** - 6240 .loc 1 631 0 is_stmt 0 discriminator 1 - 6241 0030 196A ldr r1, [r3, #32] - 6242 0032 104A ldr r2, .L390+20 - ARM GAS /tmp/cccrAAAm.s page 218 - - - 6243 0034 1142 tst r1, r2 - 6244 0036 03D1 bne .L389 - 631:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** - 6245 .loc 1 631 0 discriminator 2 - 6246 0038 1A68 ldr r2, [r3] - 6247 003a 0121 movs r1, #1 - 6248 003c 8A43 bics r2, r1 - 6249 003e 1A60 str r2, [r3] - 6250 .L389: - 635:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** - 6251 .loc 1 635 0 is_stmt 1 - 6252 0040 0020 movs r0, #0 - 6253 @ sp needed - 6254 .LVL672: - 6255 0042 10BD pop {r4, pc} - 6256 .LVL673: - 6257 .L387: - 627:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** } - 6258 .loc 1 627 0 - 6259 0044 196A ldr r1, [r3, #32] - 6260 0046 0A4A ldr r2, .L390+16 - 6261 0048 1142 tst r1, r2 - 6262 004a ECD1 bne .L388 - 627:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** } - 6263 .loc 1 627 0 is_stmt 0 discriminator 1 - 6264 004c 196A ldr r1, [r3, #32] - 6265 004e 094A ldr r2, .L390+20 - 6266 0050 1142 tst r1, r2 - 6267 0052 E8D1 bne .L388 - 627:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** } - 6268 .loc 1 627 0 discriminator 2 - 6269 0054 5A6C ldr r2, [r3, #68] - 6270 0056 0849 ldr r1, .L390+24 - 6271 0058 0A40 ands r2, r1 - 6272 005a 5A64 str r2, [r3, #68] - 6273 005c E3E7 b .L388 - 6274 .L391: - 6275 005e C046 .align 2 - 6276 .L390: - 6277 0060 002C0140 .word 1073818624 - 6278 0064 00400140 .word 1073823744 - 6279 0068 00440140 .word 1073824768 - 6280 006c 00480140 .word 1073825792 - 6281 0070 11110000 .word 4369 - 6282 0074 44040000 .word 1092 - 6283 0078 FF7FFFFF .word -32769 - 6284 .cfi_endproc - 6285 .LFE52: - 6287 .section .text.HAL_TIM_OC_Start_IT,"ax",%progbits - 6288 .align 1 - 6289 .global HAL_TIM_OC_Start_IT - 6290 .syntax unified - 6291 .code 16 - 6292 .thumb_func - 6293 .fpu softvfp - 6295 HAL_TIM_OC_Start_IT: - 6296 .LFB53: - ARM GAS /tmp/cccrAAAm.s page 219 - - - 649:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** /* Check the parameters */ - 6297 .loc 1 649 0 is_stmt 1 - 6298 .cfi_startproc - 6299 @ args = 0, pretend = 0, frame = 0 - 6300 @ frame_needed = 0, uses_anonymous_args = 0 - 6301 .LVL674: - 6302 0000 10B5 push {r4, lr} - 6303 .LCFI53: - 6304 .cfi_def_cfa_offset 8 - 6305 .cfi_offset 4, -8 - 6306 .cfi_offset 14, -4 - 6307 0002 0400 movs r4, r0 - 653:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** { - 6308 .loc 1 653 0 - 6309 0004 0429 cmp r1, #4 - 6310 0006 2ED0 beq .L394 - 6311 0008 09D9 bls .L401 - 6312 000a 0829 cmp r1, #8 - 6313 000c 31D0 beq .L397 - 6314 000e 0C29 cmp r1, #12 - 6315 0010 0CD1 bne .L393 - 679:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** } - 6316 .loc 1 679 0 - 6317 0012 0268 ldr r2, [r0] - 6318 0014 D368 ldr r3, [r2, #12] - 6319 0016 1020 movs r0, #16 - 6320 .LVL675: - 6321 0018 0343 orrs r3, r0 - 6322 001a D360 str r3, [r2, #12] - 681:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** - 6323 .loc 1 681 0 - 6324 001c 06E0 b .L393 - 6325 .LVL676: - 6326 .L401: - 653:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** { - 6327 .loc 1 653 0 - 6328 001e 0029 cmp r1, #0 - 6329 0020 04D1 bne .L393 - 658:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** } - 6330 .loc 1 658 0 - 6331 0022 0268 ldr r2, [r0] - 6332 0024 D368 ldr r3, [r2, #12] - 6333 0026 0220 movs r0, #2 - 6334 .LVL677: - 6335 0028 0343 orrs r3, r0 - 6336 002a D360 str r3, [r2, #12] - 6337 .L393: - 688:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** - 6338 .loc 1 688 0 - 6339 002c 0122 movs r2, #1 - 6340 002e 2068 ldr r0, [r4] - 6341 0030 FFF7FEFF bl TIM_CCxChannelCmd - 6342 .LVL678: - 690:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** { - 6343 .loc 1 690 0 - 6344 0034 2368 ldr r3, [r4] - 6345 0036 124A ldr r2, .L402 - ARM GAS /tmp/cccrAAAm.s page 220 - - - 6346 0038 9342 cmp r3, r2 - 6347 003a 08D0 beq .L399 - 690:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** { - 6348 .loc 1 690 0 is_stmt 0 discriminator 2 - 6349 003c 114A ldr r2, .L402+4 - 6350 003e 9342 cmp r3, r2 - 6351 0040 05D0 beq .L399 - 690:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** { - 6352 .loc 1 690 0 discriminator 4 - 6353 0042 114A ldr r2, .L402+8 - 6354 0044 9342 cmp r3, r2 - 6355 0046 02D0 beq .L399 - 690:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** { - 6356 .loc 1 690 0 discriminator 6 - 6357 0048 104A ldr r2, .L402+12 - 6358 004a 9342 cmp r3, r2 - 6359 004c 04D1 bne .L400 - 6360 .L399: - 693:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** } - 6361 .loc 1 693 0 is_stmt 1 - 6362 004e 596C ldr r1, [r3, #68] - 6363 0050 8022 movs r2, #128 - 6364 0052 1202 lsls r2, r2, #8 - 6365 0054 0A43 orrs r2, r1 - 6366 0056 5A64 str r2, [r3, #68] - 6367 .L400: - 697:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** - 6368 .loc 1 697 0 - 6369 0058 2268 ldr r2, [r4] - 6370 005a 1368 ldr r3, [r2] - 6371 005c 0121 movs r1, #1 - 6372 005e 0B43 orrs r3, r1 - 6373 0060 1360 str r3, [r2] - 701:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** - 6374 .loc 1 701 0 - 6375 0062 0020 movs r0, #0 - 6376 @ sp needed - 6377 .LVL679: - 6378 0064 10BD pop {r4, pc} - 6379 .LVL680: - 6380 .L394: - 665:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** } - 6381 .loc 1 665 0 - 6382 0066 0268 ldr r2, [r0] - 6383 0068 D368 ldr r3, [r2, #12] - 6384 006a 0420 movs r0, #4 - 6385 .LVL681: - 6386 006c 0343 orrs r3, r0 - 6387 006e D360 str r3, [r2, #12] - 667:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** - 6388 .loc 1 667 0 - 6389 0070 DCE7 b .L393 - 6390 .LVL682: - 6391 .L397: - 672:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** } - 6392 .loc 1 672 0 - 6393 0072 0268 ldr r2, [r0] - ARM GAS /tmp/cccrAAAm.s page 221 - - - 6394 0074 D368 ldr r3, [r2, #12] - 6395 0076 0820 movs r0, #8 - 6396 .LVL683: - 6397 0078 0343 orrs r3, r0 - 6398 007a D360 str r3, [r2, #12] - 674:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** - 6399 .loc 1 674 0 - 6400 007c D6E7 b .L393 - 6401 .L403: - 6402 007e C046 .align 2 - 6403 .L402: - 6404 0080 002C0140 .word 1073818624 - 6405 0084 00400140 .word 1073823744 - 6406 0088 00440140 .word 1073824768 - 6407 008c 00480140 .word 1073825792 - 6408 .cfi_endproc - 6409 .LFE53: - 6411 .section .text.HAL_TIM_OC_Stop_IT,"ax",%progbits - 6412 .align 1 - 6413 .global HAL_TIM_OC_Stop_IT - 6414 .syntax unified - 6415 .code 16 - 6416 .thumb_func - 6417 .fpu softvfp - 6419 HAL_TIM_OC_Stop_IT: - 6420 .LFB54: - 715:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** /* Check the parameters */ - 6421 .loc 1 715 0 - 6422 .cfi_startproc - 6423 @ args = 0, pretend = 0, frame = 0 - 6424 @ frame_needed = 0, uses_anonymous_args = 0 - 6425 .LVL684: - 6426 0000 10B5 push {r4, lr} - 6427 .LCFI54: - 6428 .cfi_def_cfa_offset 8 - 6429 .cfi_offset 4, -8 - 6430 .cfi_offset 14, -4 - 6431 0002 0400 movs r4, r0 - 719:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** { - 6432 .loc 1 719 0 - 6433 0004 0429 cmp r1, #4 - 6434 0006 31D0 beq .L406 - 6435 0008 09D9 bls .L414 - 6436 000a 0829 cmp r1, #8 - 6437 000c 34D0 beq .L409 - 6438 000e 0C29 cmp r1, #12 - 6439 0010 0CD1 bne .L405 - 745:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** } - 6440 .loc 1 745 0 - 6441 0012 0268 ldr r2, [r0] - 6442 0014 D368 ldr r3, [r2, #12] - 6443 0016 1020 movs r0, #16 - 6444 .LVL685: - 6445 0018 8343 bics r3, r0 - 6446 001a D360 str r3, [r2, #12] - 747:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** - 6447 .loc 1 747 0 - ARM GAS /tmp/cccrAAAm.s page 222 - - - 6448 001c 06E0 b .L405 - 6449 .LVL686: - 6450 .L414: - 719:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** { - 6451 .loc 1 719 0 - 6452 001e 0029 cmp r1, #0 - 6453 0020 04D1 bne .L405 - 724:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** } - 6454 .loc 1 724 0 - 6455 0022 0268 ldr r2, [r0] - 6456 0024 D368 ldr r3, [r2, #12] - 6457 0026 0220 movs r0, #2 - 6458 .LVL687: - 6459 0028 8343 bics r3, r0 - 6460 002a D360 str r3, [r2, #12] - 6461 .L405: - 754:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** - 6462 .loc 1 754 0 - 6463 002c 0022 movs r2, #0 - 6464 002e 2068 ldr r0, [r4] - 6465 0030 FFF7FEFF bl TIM_CCxChannelCmd - 6466 .LVL688: - 756:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** { - 6467 .loc 1 756 0 - 6468 0034 2368 ldr r3, [r4] - 6469 0036 1A4A ldr r2, .L415 - 6470 0038 9342 cmp r3, r2 - 6471 003a 23D0 beq .L411 - 756:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** { - 6472 .loc 1 756 0 is_stmt 0 discriminator 2 - 6473 003c 194A ldr r2, .L415+4 - 6474 003e 9342 cmp r3, r2 - 6475 0040 20D0 beq .L411 - 756:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** { - 6476 .loc 1 756 0 discriminator 4 - 6477 0042 194A ldr r2, .L415+8 - 6478 0044 9342 cmp r3, r2 - 6479 0046 1DD0 beq .L411 - 756:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** { - 6480 .loc 1 756 0 discriminator 6 - 6481 0048 184A ldr r2, .L415+12 - 6482 004a 9342 cmp r3, r2 - 6483 004c 1AD0 beq .L411 - 6484 .L412: - 763:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** - 6485 .loc 1 763 0 is_stmt 1 - 6486 004e 2368 ldr r3, [r4] - 6487 0050 196A ldr r1, [r3, #32] - 6488 0052 174A ldr r2, .L415+16 - 6489 0054 1142 tst r1, r2 - 6490 0056 07D1 bne .L413 - 763:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** - 6491 .loc 1 763 0 is_stmt 0 discriminator 1 - 6492 0058 196A ldr r1, [r3, #32] - 6493 005a 164A ldr r2, .L415+20 - 6494 005c 1142 tst r1, r2 - 6495 005e 03D1 bne .L413 - ARM GAS /tmp/cccrAAAm.s page 223 - - - 763:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** - 6496 .loc 1 763 0 discriminator 2 - 6497 0060 1A68 ldr r2, [r3] - 6498 0062 0121 movs r1, #1 - 6499 0064 8A43 bics r2, r1 - 6500 0066 1A60 str r2, [r3] - 6501 .L413: - 767:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** - 6502 .loc 1 767 0 is_stmt 1 - 6503 0068 0020 movs r0, #0 - 6504 @ sp needed - 6505 .LVL689: - 6506 006a 10BD pop {r4, pc} - 6507 .LVL690: - 6508 .L406: - 731:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** } - 6509 .loc 1 731 0 - 6510 006c 0268 ldr r2, [r0] - 6511 006e D368 ldr r3, [r2, #12] - 6512 0070 0420 movs r0, #4 - 6513 .LVL691: - 6514 0072 8343 bics r3, r0 - 6515 0074 D360 str r3, [r2, #12] - 733:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** - 6516 .loc 1 733 0 - 6517 0076 D9E7 b .L405 - 6518 .LVL692: - 6519 .L409: - 738:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** } - 6520 .loc 1 738 0 - 6521 0078 0268 ldr r2, [r0] - 6522 007a D368 ldr r3, [r2, #12] - 6523 007c 0820 movs r0, #8 - 6524 .LVL693: - 6525 007e 8343 bics r3, r0 - 6526 0080 D360 str r3, [r2, #12] - 740:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** - 6527 .loc 1 740 0 - 6528 0082 D3E7 b .L405 - 6529 .LVL694: - 6530 .L411: - 759:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** } - 6531 .loc 1 759 0 - 6532 0084 196A ldr r1, [r3, #32] - 6533 0086 0A4A ldr r2, .L415+16 - 6534 0088 1142 tst r1, r2 - 6535 008a E0D1 bne .L412 - 759:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** } - 6536 .loc 1 759 0 is_stmt 0 discriminator 1 - 6537 008c 196A ldr r1, [r3, #32] - 6538 008e 094A ldr r2, .L415+20 - 6539 0090 1142 tst r1, r2 - 6540 0092 DCD1 bne .L412 - 759:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** } - 6541 .loc 1 759 0 discriminator 2 - 6542 0094 5A6C ldr r2, [r3, #68] - 6543 0096 0849 ldr r1, .L415+24 - ARM GAS /tmp/cccrAAAm.s page 224 - - - 6544 0098 0A40 ands r2, r1 - 6545 009a 5A64 str r2, [r3, #68] - 6546 009c D7E7 b .L412 - 6547 .L416: - 6548 009e C046 .align 2 - 6549 .L415: - 6550 00a0 002C0140 .word 1073818624 - 6551 00a4 00400140 .word 1073823744 - 6552 00a8 00440140 .word 1073824768 - 6553 00ac 00480140 .word 1073825792 - 6554 00b0 11110000 .word 4369 - 6555 00b4 44040000 .word 1092 - 6556 00b8 FF7FFFFF .word -32769 - 6557 .cfi_endproc - 6558 .LFE54: - 6560 .section .text.HAL_TIM_OC_Start_DMA,"ax",%progbits - 6561 .align 1 - 6562 .global HAL_TIM_OC_Start_DMA - 6563 .syntax unified - 6564 .code 16 - 6565 .thumb_func - 6566 .fpu softvfp - 6568 HAL_TIM_OC_Start_DMA: - 6569 .LFB55: - 783:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** /* Check the parameters */ - 6570 .loc 1 783 0 is_stmt 1 - 6571 .cfi_startproc - 6572 @ args = 0, pretend = 0, frame = 0 - 6573 @ frame_needed = 0, uses_anonymous_args = 0 - 6574 .LVL695: - 6575 0000 70B5 push {r4, r5, r6, lr} - 6576 .LCFI55: - 6577 .cfi_def_cfa_offset 16 - 6578 .cfi_offset 4, -16 - 6579 .cfi_offset 5, -12 - 6580 .cfi_offset 6, -8 - 6581 .cfi_offset 14, -4 - 6582 0002 0400 movs r4, r0 - 6583 0004 0D00 movs r5, r1 - 6584 0006 1100 movs r1, r2 - 6585 .LVL696: - 787:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** { - 6586 .loc 1 787 0 - 6587 0008 3D22 movs r2, #61 - 6588 .LVL697: - 6589 000a 825C ldrb r2, [r0, r2] - 6590 000c 022A cmp r2, #2 - 6591 000e 00D1 bne .LCB6133 - 6592 0010 7BE0 b .L429 @long jump - 6593 .LCB6133: - 791:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** { - 6594 .loc 1 791 0 - 6595 0012 3D22 movs r2, #61 - 6596 0014 825C ldrb r2, [r0, r2] - 6597 0016 012A cmp r2, #1 - 6598 0018 18D0 beq .L431 - 6599 .LVL698: - ARM GAS /tmp/cccrAAAm.s page 225 - - - 6600 .L419: - 802:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** { - 6601 .loc 1 802 0 - 6602 001a 042D cmp r5, #4 - 6603 001c 51D0 beq .L422 - 6604 001e 1FD9 bls .L432 - 6605 0020 082D cmp r5, #8 - 6606 0022 60D0 beq .L425 - 6607 0024 0C2D cmp r5, #12 - 6608 0026 2ED1 bne .L421 - 855:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** - 6609 .loc 1 855 0 - 6610 0028 226B ldr r2, [r4, #48] - 6611 002a 3948 ldr r0, .L434 - 6612 002c 9062 str r0, [r2, #40] - 858:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** - 6613 .loc 1 858 0 - 6614 002e 226B ldr r2, [r4, #48] - 6615 0030 3848 ldr r0, .L434+4 - 6616 0032 1063 str r0, [r2, #48] - 861:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** - 6617 .loc 1 861 0 - 6618 0034 2268 ldr r2, [r4] - 6619 0036 4032 adds r2, r2, #64 - 6620 0038 206B ldr r0, [r4, #48] - 6621 003a FFF7FEFF bl HAL_DMA_Start_IT - 6622 .LVL699: - 864:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** } - 6623 .loc 1 864 0 - 6624 003e 2268 ldr r2, [r4] - 6625 0040 D168 ldr r1, [r2, #12] - 6626 0042 8023 movs r3, #128 - 6627 0044 5B01 lsls r3, r3, #5 - 6628 0046 0B43 orrs r3, r1 - 6629 0048 D360 str r3, [r2, #12] - 866:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** - 6630 .loc 1 866 0 - 6631 004a 1CE0 b .L421 - 6632 .LVL700: - 6633 .L431: - 793:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** { - 6634 .loc 1 793 0 - 6635 004c 0029 cmp r1, #0 - 6636 004e 03D0 beq .L433 - 6637 .L420: - 799:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** } - 6638 .loc 1 799 0 - 6639 0050 3D22 movs r2, #61 - 6640 0052 0220 movs r0, #2 - 6641 .LVL701: - 6642 0054 A054 strb r0, [r4, r2] - 6643 0056 E0E7 b .L419 - 6644 .LVL702: - 6645 .L433: - 793:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** { - 6646 .loc 1 793 0 discriminator 1 - 6647 0058 002B cmp r3, #0 - ARM GAS /tmp/cccrAAAm.s page 226 - - - 6648 005a F9D0 beq .L420 - 795:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** } - 6649 .loc 1 795 0 - 6650 005c 0120 movs r0, #1 - 6651 .LVL703: - 6652 005e 2FE0 b .L418 - 6653 .L432: - 802:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** { - 6654 .loc 1 802 0 - 6655 0060 002D cmp r5, #0 - 6656 0062 10D1 bne .L421 - 807:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** - 6657 .loc 1 807 0 - 6658 0064 626A ldr r2, [r4, #36] - 6659 0066 2A48 ldr r0, .L434 - 6660 0068 9062 str r0, [r2, #40] - 810:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** - 6661 .loc 1 810 0 - 6662 006a 626A ldr r2, [r4, #36] - 6663 006c 2948 ldr r0, .L434+4 - 6664 006e 1063 str r0, [r2, #48] - 813:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** - 6665 .loc 1 813 0 - 6666 0070 2268 ldr r2, [r4] - 6667 0072 3432 adds r2, r2, #52 - 6668 0074 606A ldr r0, [r4, #36] - 6669 0076 FFF7FEFF bl HAL_DMA_Start_IT - 6670 .LVL704: - 816:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** } - 6671 .loc 1 816 0 - 6672 007a 2268 ldr r2, [r4] - 6673 007c D168 ldr r1, [r2, #12] - 6674 007e 8023 movs r3, #128 - 6675 0080 9B00 lsls r3, r3, #2 - 6676 0082 0B43 orrs r3, r1 - 6677 0084 D360 str r3, [r2, #12] - 6678 .L421: - 873:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** - 6679 .loc 1 873 0 - 6680 0086 0122 movs r2, #1 - 6681 0088 2900 movs r1, r5 - 6682 008a 2068 ldr r0, [r4] - 6683 008c FFF7FEFF bl TIM_CCxChannelCmd - 6684 .LVL705: - 875:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** { - 6685 .loc 1 875 0 - 6686 0090 2368 ldr r3, [r4] - 6687 0092 214A ldr r2, .L434+8 - 6688 0094 9342 cmp r3, r2 - 6689 0096 08D0 beq .L427 - 875:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** { - 6690 .loc 1 875 0 is_stmt 0 discriminator 2 - 6691 0098 204A ldr r2, .L434+12 - 6692 009a 9342 cmp r3, r2 - 6693 009c 05D0 beq .L427 - 875:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** { - 6694 .loc 1 875 0 discriminator 4 - ARM GAS /tmp/cccrAAAm.s page 227 - - - 6695 009e 204A ldr r2, .L434+16 - 6696 00a0 9342 cmp r3, r2 - 6697 00a2 02D0 beq .L427 - 875:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** { - 6698 .loc 1 875 0 discriminator 6 - 6699 00a4 1F4A ldr r2, .L434+20 - 6700 00a6 9342 cmp r3, r2 - 6701 00a8 04D1 bne .L428 - 6702 .L427: - 878:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** } - 6703 .loc 1 878 0 is_stmt 1 - 6704 00aa 596C ldr r1, [r3, #68] - 6705 00ac 8022 movs r2, #128 - 6706 00ae 1202 lsls r2, r2, #8 - 6707 00b0 0A43 orrs r2, r1 - 6708 00b2 5A64 str r2, [r3, #68] - 6709 .L428: - 882:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** - 6710 .loc 1 882 0 - 6711 00b4 2268 ldr r2, [r4] - 6712 00b6 1368 ldr r3, [r2] - 6713 00b8 0121 movs r1, #1 - 6714 00ba 0B43 orrs r3, r1 - 6715 00bc 1360 str r3, [r2] - 885:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** } - 6716 .loc 1 885 0 - 6717 00be 0020 movs r0, #0 - 6718 .L418: - 886:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** - 6719 .loc 1 886 0 - 6720 @ sp needed - 6721 .LVL706: - 6722 .LVL707: - 6723 00c0 70BD pop {r4, r5, r6, pc} - 6724 .LVL708: - 6725 .L422: - 823:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** - 6726 .loc 1 823 0 - 6727 00c2 A26A ldr r2, [r4, #40] - 6728 00c4 1248 ldr r0, .L434 - 6729 00c6 9062 str r0, [r2, #40] - 826:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** - 6730 .loc 1 826 0 - 6731 00c8 A26A ldr r2, [r4, #40] - 6732 00ca 1248 ldr r0, .L434+4 - 6733 00cc 1063 str r0, [r2, #48] - 829:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** - 6734 .loc 1 829 0 - 6735 00ce 2268 ldr r2, [r4] - 6736 00d0 3832 adds r2, r2, #56 - 6737 00d2 A06A ldr r0, [r4, #40] - 6738 00d4 FFF7FEFF bl HAL_DMA_Start_IT - 6739 .LVL709: - 832:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** } - 6740 .loc 1 832 0 - 6741 00d8 2268 ldr r2, [r4] - 6742 00da D168 ldr r1, [r2, #12] - ARM GAS /tmp/cccrAAAm.s page 228 - - - 6743 00dc 8023 movs r3, #128 - 6744 00de DB00 lsls r3, r3, #3 - 6745 00e0 0B43 orrs r3, r1 - 6746 00e2 D360 str r3, [r2, #12] - 834:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** - 6747 .loc 1 834 0 - 6748 00e4 CFE7 b .L421 - 6749 .LVL710: - 6750 .L425: - 839:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** - 6751 .loc 1 839 0 - 6752 00e6 E26A ldr r2, [r4, #44] - 6753 00e8 0948 ldr r0, .L434 - 6754 00ea 9062 str r0, [r2, #40] - 842:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** - 6755 .loc 1 842 0 - 6756 00ec E26A ldr r2, [r4, #44] - 6757 00ee 0948 ldr r0, .L434+4 - 6758 00f0 1063 str r0, [r2, #48] - 845:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** - 6759 .loc 1 845 0 - 6760 00f2 2268 ldr r2, [r4] - 6761 00f4 3C32 adds r2, r2, #60 - 6762 00f6 E06A ldr r0, [r4, #44] - 6763 00f8 FFF7FEFF bl HAL_DMA_Start_IT - 6764 .LVL711: - 848:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** } - 6765 .loc 1 848 0 - 6766 00fc 2268 ldr r2, [r4] - 6767 00fe D168 ldr r1, [r2, #12] - 6768 0100 8023 movs r3, #128 - 6769 0102 1B01 lsls r3, r3, #4 - 6770 0104 0B43 orrs r3, r1 - 6771 0106 D360 str r3, [r2, #12] - 850:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** - 6772 .loc 1 850 0 - 6773 0108 BDE7 b .L421 - 6774 .LVL712: - 6775 .L429: - 789:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** } - 6776 .loc 1 789 0 - 6777 010a 0220 movs r0, #2 - 6778 .LVL713: - 6779 010c D8E7 b .L418 - 6780 .L435: - 6781 010e C046 .align 2 - 6782 .L434: - 6783 0110 00000000 .word TIM_DMADelayPulseCplt - 6784 0114 00000000 .word TIM_DMAError - 6785 0118 002C0140 .word 1073818624 - 6786 011c 00400140 .word 1073823744 - 6787 0120 00440140 .word 1073824768 - 6788 0124 00480140 .word 1073825792 - 6789 .cfi_endproc - 6790 .LFE55: - 6792 .section .text.HAL_TIM_OC_Stop_DMA,"ax",%progbits - 6793 .align 1 - ARM GAS /tmp/cccrAAAm.s page 229 - - - 6794 .global HAL_TIM_OC_Stop_DMA - 6795 .syntax unified - 6796 .code 16 - 6797 .thumb_func - 6798 .fpu softvfp - 6800 HAL_TIM_OC_Stop_DMA: - 6801 .LFB56: - 900:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** /* Check the parameters */ - 6802 .loc 1 900 0 - 6803 .cfi_startproc - 6804 @ args = 0, pretend = 0, frame = 0 - 6805 @ frame_needed = 0, uses_anonymous_args = 0 - 6806 .LVL714: - 6807 0000 10B5 push {r4, lr} - 6808 .LCFI56: - 6809 .cfi_def_cfa_offset 8 - 6810 .cfi_offset 4, -8 - 6811 .cfi_offset 14, -4 - 6812 0002 0400 movs r4, r0 - 904:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** { - 6813 .loc 1 904 0 - 6814 0004 0429 cmp r1, #4 - 6815 0006 34D0 beq .L438 - 6816 0008 09D9 bls .L446 - 6817 000a 0829 cmp r1, #8 - 6818 000c 37D0 beq .L441 - 6819 000e 0C29 cmp r1, #12 - 6820 0010 0CD1 bne .L437 - 930:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** } - 6821 .loc 1 930 0 - 6822 0012 0268 ldr r2, [r0] - 6823 0014 D368 ldr r3, [r2, #12] - 6824 0016 2348 ldr r0, .L447 - 6825 .LVL715: - 6826 0018 0340 ands r3, r0 - 6827 001a D360 str r3, [r2, #12] - 932:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** - 6828 .loc 1 932 0 - 6829 001c 06E0 b .L437 - 6830 .LVL716: - 6831 .L446: - 904:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** { - 6832 .loc 1 904 0 - 6833 001e 0029 cmp r1, #0 - 6834 0020 04D1 bne .L437 - 909:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** } - 6835 .loc 1 909 0 - 6836 0022 0268 ldr r2, [r0] - 6837 0024 D368 ldr r3, [r2, #12] - 6838 0026 2048 ldr r0, .L447+4 - 6839 .LVL717: - 6840 0028 0340 ands r3, r0 - 6841 002a D360 str r3, [r2, #12] - 6842 .L437: - 939:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** - 6843 .loc 1 939 0 - 6844 002c 0022 movs r2, #0 - ARM GAS /tmp/cccrAAAm.s page 230 - - - 6845 002e 2068 ldr r0, [r4] - 6846 0030 FFF7FEFF bl TIM_CCxChannelCmd - 6847 .LVL718: - 941:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** { - 6848 .loc 1 941 0 - 6849 0034 2368 ldr r3, [r4] - 6850 0036 1D4A ldr r2, .L447+8 - 6851 0038 9342 cmp r3, r2 - 6852 003a 26D0 beq .L443 - 941:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** { - 6853 .loc 1 941 0 is_stmt 0 discriminator 2 - 6854 003c 1C4A ldr r2, .L447+12 - 6855 003e 9342 cmp r3, r2 - 6856 0040 23D0 beq .L443 - 941:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** { - 6857 .loc 1 941 0 discriminator 4 - 6858 0042 1C4A ldr r2, .L447+16 - 6859 0044 9342 cmp r3, r2 - 6860 0046 20D0 beq .L443 - 941:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** { - 6861 .loc 1 941 0 discriminator 6 - 6862 0048 1B4A ldr r2, .L447+20 - 6863 004a 9342 cmp r3, r2 - 6864 004c 1DD0 beq .L443 - 6865 .L444: - 948:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** - 6866 .loc 1 948 0 is_stmt 1 - 6867 004e 2368 ldr r3, [r4] - 6868 0050 196A ldr r1, [r3, #32] - 6869 0052 1A4A ldr r2, .L447+24 - 6870 0054 1142 tst r1, r2 - 6871 0056 07D1 bne .L445 - 948:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** - 6872 .loc 1 948 0 is_stmt 0 discriminator 1 - 6873 0058 196A ldr r1, [r3, #32] - 6874 005a 194A ldr r2, .L447+28 - 6875 005c 1142 tst r1, r2 - 6876 005e 03D1 bne .L445 - 948:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** - 6877 .loc 1 948 0 discriminator 2 - 6878 0060 1A68 ldr r2, [r3] - 6879 0062 0121 movs r1, #1 - 6880 0064 8A43 bics r2, r1 - 6881 0066 1A60 str r2, [r3] - 6882 .L445: - 951:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** - 6883 .loc 1 951 0 is_stmt 1 - 6884 0068 3D23 movs r3, #61 - 6885 006a 0122 movs r2, #1 - 6886 006c E254 strb r2, [r4, r3] - 955:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** - 6887 .loc 1 955 0 - 6888 006e 0020 movs r0, #0 - 6889 @ sp needed - 6890 .LVL719: - 6891 0070 10BD pop {r4, pc} - 6892 .LVL720: - ARM GAS /tmp/cccrAAAm.s page 231 - - - 6893 .L438: - 916:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** } - 6894 .loc 1 916 0 - 6895 0072 0268 ldr r2, [r0] - 6896 0074 D368 ldr r3, [r2, #12] - 6897 0076 1348 ldr r0, .L447+32 - 6898 .LVL721: - 6899 0078 0340 ands r3, r0 - 6900 007a D360 str r3, [r2, #12] - 918:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** - 6901 .loc 1 918 0 - 6902 007c D6E7 b .L437 - 6903 .LVL722: - 6904 .L441: - 923:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** } - 6905 .loc 1 923 0 - 6906 007e 0268 ldr r2, [r0] - 6907 0080 D368 ldr r3, [r2, #12] - 6908 0082 1148 ldr r0, .L447+36 - 6909 .LVL723: - 6910 0084 0340 ands r3, r0 - 6911 0086 D360 str r3, [r2, #12] - 925:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** - 6912 .loc 1 925 0 - 6913 0088 D0E7 b .L437 - 6914 .LVL724: - 6915 .L443: - 944:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** } - 6916 .loc 1 944 0 - 6917 008a 196A ldr r1, [r3, #32] - 6918 008c 0B4A ldr r2, .L447+24 - 6919 008e 1142 tst r1, r2 - 6920 0090 DDD1 bne .L444 - 944:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** } - 6921 .loc 1 944 0 is_stmt 0 discriminator 1 - 6922 0092 196A ldr r1, [r3, #32] - 6923 0094 0A4A ldr r2, .L447+28 - 6924 0096 1142 tst r1, r2 - 6925 0098 D9D1 bne .L444 - 944:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** } - 6926 .loc 1 944 0 discriminator 2 - 6927 009a 5A6C ldr r2, [r3, #68] - 6928 009c 0B49 ldr r1, .L447+40 - 6929 009e 0A40 ands r2, r1 - 6930 00a0 5A64 str r2, [r3, #68] - 6931 00a2 D4E7 b .L444 - 6932 .L448: - 6933 .align 2 - 6934 .L447: - 6935 00a4 FFEFFFFF .word -4097 - 6936 00a8 FFFDFFFF .word -513 - 6937 00ac 002C0140 .word 1073818624 - 6938 00b0 00400140 .word 1073823744 - 6939 00b4 00440140 .word 1073824768 - 6940 00b8 00480140 .word 1073825792 - 6941 00bc 11110000 .word 4369 - 6942 00c0 44040000 .word 1092 - ARM GAS /tmp/cccrAAAm.s page 232 - - - 6943 00c4 FFFBFFFF .word -1025 - 6944 00c8 FFF7FFFF .word -2049 - 6945 00cc FF7FFFFF .word -32769 - 6946 .cfi_endproc - 6947 .LFE56: - 6949 .section .text.HAL_TIM_PWM_Start,"ax",%progbits - 6950 .align 1 - 6951 .global HAL_TIM_PWM_Start - 6952 .syntax unified - 6953 .code 16 - 6954 .thumb_func - 6955 .fpu softvfp - 6957 HAL_TIM_PWM_Start: - 6958 .LFB61: -1092:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** /* Check the parameters */ - 6959 .loc 1 1092 0 is_stmt 1 - 6960 .cfi_startproc - 6961 @ args = 0, pretend = 0, frame = 0 - 6962 @ frame_needed = 0, uses_anonymous_args = 0 - 6963 .LVL725: - 6964 0000 10B5 push {r4, lr} - 6965 .LCFI57: - 6966 .cfi_def_cfa_offset 8 - 6967 .cfi_offset 4, -8 - 6968 .cfi_offset 14, -4 - 6969 0002 0400 movs r4, r0 -1097:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** - 6970 .loc 1 1097 0 - 6971 0004 0122 movs r2, #1 - 6972 0006 0068 ldr r0, [r0] - 6973 .LVL726: - 6974 0008 FFF7FEFF bl TIM_CCxChannelCmd - 6975 .LVL727: -1099:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** { - 6976 .loc 1 1099 0 - 6977 000c 2368 ldr r3, [r4] - 6978 000e 0C4A ldr r2, .L452 - 6979 0010 9342 cmp r3, r2 - 6980 0012 08D0 beq .L450 -1099:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** { - 6981 .loc 1 1099 0 is_stmt 0 discriminator 2 - 6982 0014 0B4A ldr r2, .L452+4 - 6983 0016 9342 cmp r3, r2 - 6984 0018 05D0 beq .L450 -1099:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** { - 6985 .loc 1 1099 0 discriminator 4 - 6986 001a 0B4A ldr r2, .L452+8 - 6987 001c 9342 cmp r3, r2 - 6988 001e 02D0 beq .L450 -1099:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** { - 6989 .loc 1 1099 0 discriminator 6 - 6990 0020 0A4A ldr r2, .L452+12 - 6991 0022 9342 cmp r3, r2 - 6992 0024 04D1 bne .L451 - 6993 .L450: -1102:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** } - 6994 .loc 1 1102 0 is_stmt 1 - ARM GAS /tmp/cccrAAAm.s page 233 - - - 6995 0026 596C ldr r1, [r3, #68] - 6996 0028 8022 movs r2, #128 - 6997 002a 1202 lsls r2, r2, #8 - 6998 002c 0A43 orrs r2, r1 - 6999 002e 5A64 str r2, [r3, #68] - 7000 .L451: -1106:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** - 7001 .loc 1 1106 0 - 7002 0030 2268 ldr r2, [r4] - 7003 0032 1368 ldr r3, [r2] - 7004 0034 0121 movs r1, #1 - 7005 0036 0B43 orrs r3, r1 - 7006 0038 1360 str r3, [r2] -1110:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** - 7007 .loc 1 1110 0 - 7008 003a 0020 movs r0, #0 - 7009 @ sp needed - 7010 .LVL728: - 7011 003c 10BD pop {r4, pc} - 7012 .L453: - 7013 003e C046 .align 2 - 7014 .L452: - 7015 0040 002C0140 .word 1073818624 - 7016 0044 00400140 .word 1073823744 - 7017 0048 00440140 .word 1073824768 - 7018 004c 00480140 .word 1073825792 - 7019 .cfi_endproc - 7020 .LFE61: - 7022 .section .text.HAL_TIM_PWM_Stop,"ax",%progbits - 7023 .align 1 - 7024 .global HAL_TIM_PWM_Stop - 7025 .syntax unified - 7026 .code 16 - 7027 .thumb_func - 7028 .fpu softvfp - 7030 HAL_TIM_PWM_Stop: - 7031 .LFB62: -1124:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** /* Check the parameters */ - 7032 .loc 1 1124 0 - 7033 .cfi_startproc - 7034 @ args = 0, pretend = 0, frame = 0 - 7035 @ frame_needed = 0, uses_anonymous_args = 0 - 7036 .LVL729: - 7037 0000 10B5 push {r4, lr} - 7038 .LCFI58: - 7039 .cfi_def_cfa_offset 8 - 7040 .cfi_offset 4, -8 - 7041 .cfi_offset 14, -4 - 7042 0002 0400 movs r4, r0 -1129:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** - 7043 .loc 1 1129 0 - 7044 0004 0022 movs r2, #0 - 7045 0006 0068 ldr r0, [r0] - 7046 .LVL730: - 7047 0008 FFF7FEFF bl TIM_CCxChannelCmd - 7048 .LVL731: -1131:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** { - ARM GAS /tmp/cccrAAAm.s page 234 - - - 7049 .loc 1 1131 0 - 7050 000c 2368 ldr r3, [r4] - 7051 000e 154A ldr r2, .L458 - 7052 0010 9342 cmp r3, r2 - 7053 0012 1AD0 beq .L455 -1131:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** { - 7054 .loc 1 1131 0 is_stmt 0 discriminator 2 - 7055 0014 144A ldr r2, .L458+4 - 7056 0016 9342 cmp r3, r2 - 7057 0018 17D0 beq .L455 -1131:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** { - 7058 .loc 1 1131 0 discriminator 4 - 7059 001a 144A ldr r2, .L458+8 - 7060 001c 9342 cmp r3, r2 - 7061 001e 14D0 beq .L455 -1131:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** { - 7062 .loc 1 1131 0 discriminator 6 - 7063 0020 134A ldr r2, .L458+12 - 7064 0022 9342 cmp r3, r2 - 7065 0024 11D0 beq .L455 - 7066 .L456: -1138:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** - 7067 .loc 1 1138 0 is_stmt 1 - 7068 0026 2368 ldr r3, [r4] - 7069 0028 196A ldr r1, [r3, #32] - 7070 002a 124A ldr r2, .L458+16 - 7071 002c 1142 tst r1, r2 - 7072 002e 07D1 bne .L457 -1138:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** - 7073 .loc 1 1138 0 is_stmt 0 discriminator 1 - 7074 0030 196A ldr r1, [r3, #32] - 7075 0032 114A ldr r2, .L458+20 - 7076 0034 1142 tst r1, r2 - 7077 0036 03D1 bne .L457 -1138:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** - 7078 .loc 1 1138 0 discriminator 2 - 7079 0038 1A68 ldr r2, [r3] - 7080 003a 0121 movs r1, #1 - 7081 003c 8A43 bics r2, r1 - 7082 003e 1A60 str r2, [r3] - 7083 .L457: -1141:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** - 7084 .loc 1 1141 0 is_stmt 1 - 7085 0040 3D23 movs r3, #61 - 7086 0042 0122 movs r2, #1 - 7087 0044 E254 strb r2, [r4, r3] -1145:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** - 7088 .loc 1 1145 0 - 7089 0046 0020 movs r0, #0 - 7090 @ sp needed - 7091 .LVL732: - 7092 0048 10BD pop {r4, pc} - 7093 .LVL733: - 7094 .L455: -1134:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** } - 7095 .loc 1 1134 0 - 7096 004a 196A ldr r1, [r3, #32] - ARM GAS /tmp/cccrAAAm.s page 235 - - - 7097 004c 094A ldr r2, .L458+16 - 7098 004e 1142 tst r1, r2 - 7099 0050 E9D1 bne .L456 -1134:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** } - 7100 .loc 1 1134 0 is_stmt 0 discriminator 1 - 7101 0052 196A ldr r1, [r3, #32] - 7102 0054 084A ldr r2, .L458+20 - 7103 0056 1142 tst r1, r2 - 7104 0058 E5D1 bne .L456 -1134:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** } - 7105 .loc 1 1134 0 discriminator 2 - 7106 005a 5A6C ldr r2, [r3, #68] - 7107 005c 0749 ldr r1, .L458+24 - 7108 005e 0A40 ands r2, r1 - 7109 0060 5A64 str r2, [r3, #68] - 7110 0062 E0E7 b .L456 - 7111 .L459: - 7112 .align 2 - 7113 .L458: - 7114 0064 002C0140 .word 1073818624 - 7115 0068 00400140 .word 1073823744 - 7116 006c 00440140 .word 1073824768 - 7117 0070 00480140 .word 1073825792 - 7118 0074 11110000 .word 4369 - 7119 0078 44040000 .word 1092 - 7120 007c FF7FFFFF .word -32769 - 7121 .cfi_endproc - 7122 .LFE62: - 7124 .section .text.HAL_TIM_PWM_Start_IT,"ax",%progbits - 7125 .align 1 - 7126 .global HAL_TIM_PWM_Start_IT - 7127 .syntax unified - 7128 .code 16 - 7129 .thumb_func - 7130 .fpu softvfp - 7132 HAL_TIM_PWM_Start_IT: - 7133 .LFB63: -1159:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** /* Check the parameters */ - 7134 .loc 1 1159 0 is_stmt 1 - 7135 .cfi_startproc - 7136 @ args = 0, pretend = 0, frame = 0 - 7137 @ frame_needed = 0, uses_anonymous_args = 0 - 7138 .LVL734: - 7139 0000 10B5 push {r4, lr} - 7140 .LCFI59: - 7141 .cfi_def_cfa_offset 8 - 7142 .cfi_offset 4, -8 - 7143 .cfi_offset 14, -4 - 7144 0002 0400 movs r4, r0 -1163:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** { - 7145 .loc 1 1163 0 - 7146 0004 0429 cmp r1, #4 - 7147 0006 2ED0 beq .L462 - 7148 0008 09D9 bls .L469 - 7149 000a 0829 cmp r1, #8 - 7150 000c 31D0 beq .L465 - 7151 000e 0C29 cmp r1, #12 - ARM GAS /tmp/cccrAAAm.s page 236 - - - 7152 0010 0CD1 bne .L461 -1189:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** } - 7153 .loc 1 1189 0 - 7154 0012 0268 ldr r2, [r0] - 7155 0014 D368 ldr r3, [r2, #12] - 7156 0016 1020 movs r0, #16 - 7157 .LVL735: - 7158 0018 0343 orrs r3, r0 - 7159 001a D360 str r3, [r2, #12] -1191:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** - 7160 .loc 1 1191 0 - 7161 001c 06E0 b .L461 - 7162 .LVL736: - 7163 .L469: -1163:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** { - 7164 .loc 1 1163 0 - 7165 001e 0029 cmp r1, #0 - 7166 0020 04D1 bne .L461 -1168:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** } - 7167 .loc 1 1168 0 - 7168 0022 0268 ldr r2, [r0] - 7169 0024 D368 ldr r3, [r2, #12] - 7170 0026 0220 movs r0, #2 - 7171 .LVL737: - 7172 0028 0343 orrs r3, r0 - 7173 002a D360 str r3, [r2, #12] - 7174 .L461: -1198:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** - 7175 .loc 1 1198 0 - 7176 002c 0122 movs r2, #1 - 7177 002e 2068 ldr r0, [r4] - 7178 0030 FFF7FEFF bl TIM_CCxChannelCmd - 7179 .LVL738: -1200:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** { - 7180 .loc 1 1200 0 - 7181 0034 2368 ldr r3, [r4] - 7182 0036 124A ldr r2, .L470 - 7183 0038 9342 cmp r3, r2 - 7184 003a 08D0 beq .L467 -1200:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** { - 7185 .loc 1 1200 0 is_stmt 0 discriminator 2 - 7186 003c 114A ldr r2, .L470+4 - 7187 003e 9342 cmp r3, r2 - 7188 0040 05D0 beq .L467 -1200:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** { - 7189 .loc 1 1200 0 discriminator 4 - 7190 0042 114A ldr r2, .L470+8 - 7191 0044 9342 cmp r3, r2 - 7192 0046 02D0 beq .L467 -1200:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** { - 7193 .loc 1 1200 0 discriminator 6 - 7194 0048 104A ldr r2, .L470+12 - 7195 004a 9342 cmp r3, r2 - 7196 004c 04D1 bne .L468 - 7197 .L467: -1203:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** } - 7198 .loc 1 1203 0 is_stmt 1 - ARM GAS /tmp/cccrAAAm.s page 237 - - - 7199 004e 596C ldr r1, [r3, #68] - 7200 0050 8022 movs r2, #128 - 7201 0052 1202 lsls r2, r2, #8 - 7202 0054 0A43 orrs r2, r1 - 7203 0056 5A64 str r2, [r3, #68] - 7204 .L468: -1207:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** - 7205 .loc 1 1207 0 - 7206 0058 2268 ldr r2, [r4] - 7207 005a 1368 ldr r3, [r2] - 7208 005c 0121 movs r1, #1 - 7209 005e 0B43 orrs r3, r1 - 7210 0060 1360 str r3, [r2] -1211:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** - 7211 .loc 1 1211 0 - 7212 0062 0020 movs r0, #0 - 7213 @ sp needed - 7214 .LVL739: - 7215 0064 10BD pop {r4, pc} - 7216 .LVL740: - 7217 .L462: -1175:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** } - 7218 .loc 1 1175 0 - 7219 0066 0268 ldr r2, [r0] - 7220 0068 D368 ldr r3, [r2, #12] - 7221 006a 0420 movs r0, #4 - 7222 .LVL741: - 7223 006c 0343 orrs r3, r0 - 7224 006e D360 str r3, [r2, #12] -1177:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** - 7225 .loc 1 1177 0 - 7226 0070 DCE7 b .L461 - 7227 .LVL742: - 7228 .L465: -1182:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** } - 7229 .loc 1 1182 0 - 7230 0072 0268 ldr r2, [r0] - 7231 0074 D368 ldr r3, [r2, #12] - 7232 0076 0820 movs r0, #8 - 7233 .LVL743: - 7234 0078 0343 orrs r3, r0 - 7235 007a D360 str r3, [r2, #12] -1184:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** - 7236 .loc 1 1184 0 - 7237 007c D6E7 b .L461 - 7238 .L471: - 7239 007e C046 .align 2 - 7240 .L470: - 7241 0080 002C0140 .word 1073818624 - 7242 0084 00400140 .word 1073823744 - 7243 0088 00440140 .word 1073824768 - 7244 008c 00480140 .word 1073825792 - 7245 .cfi_endproc - 7246 .LFE63: - 7248 .section .text.HAL_TIM_PWM_Stop_IT,"ax",%progbits - 7249 .align 1 - 7250 .global HAL_TIM_PWM_Stop_IT - ARM GAS /tmp/cccrAAAm.s page 238 - - - 7251 .syntax unified - 7252 .code 16 - 7253 .thumb_func - 7254 .fpu softvfp - 7256 HAL_TIM_PWM_Stop_IT: - 7257 .LFB64: -1225:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** /* Check the parameters */ - 7258 .loc 1 1225 0 - 7259 .cfi_startproc - 7260 @ args = 0, pretend = 0, frame = 0 - 7261 @ frame_needed = 0, uses_anonymous_args = 0 - 7262 .LVL744: - 7263 0000 10B5 push {r4, lr} - 7264 .LCFI60: - 7265 .cfi_def_cfa_offset 8 - 7266 .cfi_offset 4, -8 - 7267 .cfi_offset 14, -4 - 7268 0002 0400 movs r4, r0 -1229:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** { - 7269 .loc 1 1229 0 - 7270 0004 0429 cmp r1, #4 - 7271 0006 31D0 beq .L474 - 7272 0008 09D9 bls .L482 - 7273 000a 0829 cmp r1, #8 - 7274 000c 34D0 beq .L477 - 7275 000e 0C29 cmp r1, #12 - 7276 0010 0CD1 bne .L473 -1255:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** } - 7277 .loc 1 1255 0 - 7278 0012 0268 ldr r2, [r0] - 7279 0014 D368 ldr r3, [r2, #12] - 7280 0016 1020 movs r0, #16 - 7281 .LVL745: - 7282 0018 8343 bics r3, r0 - 7283 001a D360 str r3, [r2, #12] -1257:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** - 7284 .loc 1 1257 0 - 7285 001c 06E0 b .L473 - 7286 .LVL746: - 7287 .L482: -1229:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** { - 7288 .loc 1 1229 0 - 7289 001e 0029 cmp r1, #0 - 7290 0020 04D1 bne .L473 -1234:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** } - 7291 .loc 1 1234 0 - 7292 0022 0268 ldr r2, [r0] - 7293 0024 D368 ldr r3, [r2, #12] - 7294 0026 0220 movs r0, #2 - 7295 .LVL747: - 7296 0028 8343 bics r3, r0 - 7297 002a D360 str r3, [r2, #12] - 7298 .L473: -1264:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** - 7299 .loc 1 1264 0 - 7300 002c 0022 movs r2, #0 - 7301 002e 2068 ldr r0, [r4] - ARM GAS /tmp/cccrAAAm.s page 239 - - - 7302 0030 FFF7FEFF bl TIM_CCxChannelCmd - 7303 .LVL748: -1266:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** { - 7304 .loc 1 1266 0 - 7305 0034 2368 ldr r3, [r4] - 7306 0036 1A4A ldr r2, .L483 - 7307 0038 9342 cmp r3, r2 - 7308 003a 23D0 beq .L479 -1266:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** { - 7309 .loc 1 1266 0 is_stmt 0 discriminator 2 - 7310 003c 194A ldr r2, .L483+4 - 7311 003e 9342 cmp r3, r2 - 7312 0040 20D0 beq .L479 -1266:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** { - 7313 .loc 1 1266 0 discriminator 4 - 7314 0042 194A ldr r2, .L483+8 - 7315 0044 9342 cmp r3, r2 - 7316 0046 1DD0 beq .L479 -1266:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** { - 7317 .loc 1 1266 0 discriminator 6 - 7318 0048 184A ldr r2, .L483+12 - 7319 004a 9342 cmp r3, r2 - 7320 004c 1AD0 beq .L479 - 7321 .L480: -1273:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** - 7322 .loc 1 1273 0 is_stmt 1 - 7323 004e 2368 ldr r3, [r4] - 7324 0050 196A ldr r1, [r3, #32] - 7325 0052 174A ldr r2, .L483+16 - 7326 0054 1142 tst r1, r2 - 7327 0056 07D1 bne .L481 -1273:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** - 7328 .loc 1 1273 0 is_stmt 0 discriminator 1 - 7329 0058 196A ldr r1, [r3, #32] - 7330 005a 164A ldr r2, .L483+20 - 7331 005c 1142 tst r1, r2 - 7332 005e 03D1 bne .L481 -1273:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** - 7333 .loc 1 1273 0 discriminator 2 - 7334 0060 1A68 ldr r2, [r3] - 7335 0062 0121 movs r1, #1 - 7336 0064 8A43 bics r2, r1 - 7337 0066 1A60 str r2, [r3] - 7338 .L481: -1277:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** - 7339 .loc 1 1277 0 is_stmt 1 - 7340 0068 0020 movs r0, #0 - 7341 @ sp needed - 7342 .LVL749: - 7343 006a 10BD pop {r4, pc} - 7344 .LVL750: - 7345 .L474: -1241:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** } - 7346 .loc 1 1241 0 - 7347 006c 0268 ldr r2, [r0] - 7348 006e D368 ldr r3, [r2, #12] - 7349 0070 0420 movs r0, #4 - ARM GAS /tmp/cccrAAAm.s page 240 - - - 7350 .LVL751: - 7351 0072 8343 bics r3, r0 - 7352 0074 D360 str r3, [r2, #12] -1243:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** - 7353 .loc 1 1243 0 - 7354 0076 D9E7 b .L473 - 7355 .LVL752: - 7356 .L477: -1248:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** } - 7357 .loc 1 1248 0 - 7358 0078 0268 ldr r2, [r0] - 7359 007a D368 ldr r3, [r2, #12] - 7360 007c 0820 movs r0, #8 - 7361 .LVL753: - 7362 007e 8343 bics r3, r0 - 7363 0080 D360 str r3, [r2, #12] -1250:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** - 7364 .loc 1 1250 0 - 7365 0082 D3E7 b .L473 - 7366 .LVL754: - 7367 .L479: -1269:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** } - 7368 .loc 1 1269 0 - 7369 0084 196A ldr r1, [r3, #32] - 7370 0086 0A4A ldr r2, .L483+16 - 7371 0088 1142 tst r1, r2 - 7372 008a E0D1 bne .L480 -1269:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** } - 7373 .loc 1 1269 0 is_stmt 0 discriminator 1 - 7374 008c 196A ldr r1, [r3, #32] - 7375 008e 094A ldr r2, .L483+20 - 7376 0090 1142 tst r1, r2 - 7377 0092 DCD1 bne .L480 -1269:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** } - 7378 .loc 1 1269 0 discriminator 2 - 7379 0094 5A6C ldr r2, [r3, #68] - 7380 0096 0849 ldr r1, .L483+24 - 7381 0098 0A40 ands r2, r1 - 7382 009a 5A64 str r2, [r3, #68] - 7383 009c D7E7 b .L480 - 7384 .L484: - 7385 009e C046 .align 2 - 7386 .L483: - 7387 00a0 002C0140 .word 1073818624 - 7388 00a4 00400140 .word 1073823744 - 7389 00a8 00440140 .word 1073824768 - 7390 00ac 00480140 .word 1073825792 - 7391 00b0 11110000 .word 4369 - 7392 00b4 44040000 .word 1092 - 7393 00b8 FF7FFFFF .word -32769 - 7394 .cfi_endproc - 7395 .LFE64: - 7397 .section .text.HAL_TIM_PWM_Start_DMA,"ax",%progbits - 7398 .align 1 - 7399 .global HAL_TIM_PWM_Start_DMA - 7400 .syntax unified - 7401 .code 16 - ARM GAS /tmp/cccrAAAm.s page 241 - - - 7402 .thumb_func - 7403 .fpu softvfp - 7405 HAL_TIM_PWM_Start_DMA: - 7406 .LFB65: -1293:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** /* Check the parameters */ - 7407 .loc 1 1293 0 is_stmt 1 - 7408 .cfi_startproc - 7409 @ args = 0, pretend = 0, frame = 0 - 7410 @ frame_needed = 0, uses_anonymous_args = 0 - 7411 .LVL755: - 7412 0000 70B5 push {r4, r5, r6, lr} - 7413 .LCFI61: - 7414 .cfi_def_cfa_offset 16 - 7415 .cfi_offset 4, -16 - 7416 .cfi_offset 5, -12 - 7417 .cfi_offset 6, -8 - 7418 .cfi_offset 14, -4 - 7419 0002 0400 movs r4, r0 - 7420 0004 0D00 movs r5, r1 - 7421 0006 1100 movs r1, r2 - 7422 .LVL756: -1297:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** { - 7423 .loc 1 1297 0 - 7424 0008 3D22 movs r2, #61 - 7425 .LVL757: - 7426 000a 825C ldrb r2, [r0, r2] - 7427 000c 022A cmp r2, #2 - 7428 000e 00D1 bne .LCB6935 - 7429 0010 7BE0 b .L497 @long jump - 7430 .LCB6935: -1301:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** { - 7431 .loc 1 1301 0 - 7432 0012 3D22 movs r2, #61 - 7433 0014 825C ldrb r2, [r0, r2] - 7434 0016 012A cmp r2, #1 - 7435 0018 18D0 beq .L499 - 7436 .LVL758: - 7437 .L487: -1312:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** { - 7438 .loc 1 1312 0 - 7439 001a 042D cmp r5, #4 - 7440 001c 51D0 beq .L490 - 7441 001e 1FD9 bls .L500 - 7442 0020 082D cmp r5, #8 - 7443 0022 60D0 beq .L493 - 7444 0024 0C2D cmp r5, #12 - 7445 0026 2ED1 bne .L489 -1365:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** - 7446 .loc 1 1365 0 - 7447 0028 226B ldr r2, [r4, #48] - 7448 002a 3948 ldr r0, .L502 - 7449 002c 9062 str r0, [r2, #40] -1368:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** - 7450 .loc 1 1368 0 - 7451 002e 226B ldr r2, [r4, #48] - 7452 0030 3848 ldr r0, .L502+4 - 7453 0032 1063 str r0, [r2, #48] - ARM GAS /tmp/cccrAAAm.s page 242 - - -1371:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** - 7454 .loc 1 1371 0 - 7455 0034 2268 ldr r2, [r4] - 7456 0036 4032 adds r2, r2, #64 - 7457 0038 206B ldr r0, [r4, #48] - 7458 003a FFF7FEFF bl HAL_DMA_Start_IT - 7459 .LVL759: -1374:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** } - 7460 .loc 1 1374 0 - 7461 003e 2268 ldr r2, [r4] - 7462 0040 D168 ldr r1, [r2, #12] - 7463 0042 8023 movs r3, #128 - 7464 0044 5B01 lsls r3, r3, #5 - 7465 0046 0B43 orrs r3, r1 - 7466 0048 D360 str r3, [r2, #12] -1376:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** - 7467 .loc 1 1376 0 - 7468 004a 1CE0 b .L489 - 7469 .LVL760: - 7470 .L499: -1303:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** { - 7471 .loc 1 1303 0 - 7472 004c 0029 cmp r1, #0 - 7473 004e 03D0 beq .L501 - 7474 .L488: -1309:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** } - 7475 .loc 1 1309 0 - 7476 0050 3D22 movs r2, #61 - 7477 0052 0220 movs r0, #2 - 7478 .LVL761: - 7479 0054 A054 strb r0, [r4, r2] - 7480 0056 E0E7 b .L487 - 7481 .LVL762: - 7482 .L501: -1303:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** { - 7483 .loc 1 1303 0 discriminator 1 - 7484 0058 002B cmp r3, #0 - 7485 005a F9D0 beq .L488 -1305:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** } - 7486 .loc 1 1305 0 - 7487 005c 0120 movs r0, #1 - 7488 .LVL763: - 7489 005e 2FE0 b .L486 - 7490 .L500: -1312:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** { - 7491 .loc 1 1312 0 - 7492 0060 002D cmp r5, #0 - 7493 0062 10D1 bne .L489 -1317:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** - 7494 .loc 1 1317 0 - 7495 0064 626A ldr r2, [r4, #36] - 7496 0066 2A48 ldr r0, .L502 - 7497 0068 9062 str r0, [r2, #40] -1320:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** - 7498 .loc 1 1320 0 - 7499 006a 626A ldr r2, [r4, #36] - 7500 006c 2948 ldr r0, .L502+4 - ARM GAS /tmp/cccrAAAm.s page 243 - - - 7501 006e 1063 str r0, [r2, #48] -1323:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** - 7502 .loc 1 1323 0 - 7503 0070 2268 ldr r2, [r4] - 7504 0072 3432 adds r2, r2, #52 - 7505 0074 606A ldr r0, [r4, #36] - 7506 0076 FFF7FEFF bl HAL_DMA_Start_IT - 7507 .LVL764: -1326:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** } - 7508 .loc 1 1326 0 - 7509 007a 2268 ldr r2, [r4] - 7510 007c D168 ldr r1, [r2, #12] - 7511 007e 8023 movs r3, #128 - 7512 0080 9B00 lsls r3, r3, #2 - 7513 0082 0B43 orrs r3, r1 - 7514 0084 D360 str r3, [r2, #12] - 7515 .L489: -1383:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** - 7516 .loc 1 1383 0 - 7517 0086 0122 movs r2, #1 - 7518 0088 2900 movs r1, r5 - 7519 008a 2068 ldr r0, [r4] - 7520 008c FFF7FEFF bl TIM_CCxChannelCmd - 7521 .LVL765: -1385:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** { - 7522 .loc 1 1385 0 - 7523 0090 2368 ldr r3, [r4] - 7524 0092 214A ldr r2, .L502+8 - 7525 0094 9342 cmp r3, r2 - 7526 0096 08D0 beq .L495 -1385:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** { - 7527 .loc 1 1385 0 is_stmt 0 discriminator 2 - 7528 0098 204A ldr r2, .L502+12 - 7529 009a 9342 cmp r3, r2 - 7530 009c 05D0 beq .L495 -1385:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** { - 7531 .loc 1 1385 0 discriminator 4 - 7532 009e 204A ldr r2, .L502+16 - 7533 00a0 9342 cmp r3, r2 - 7534 00a2 02D0 beq .L495 -1385:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** { - 7535 .loc 1 1385 0 discriminator 6 - 7536 00a4 1F4A ldr r2, .L502+20 - 7537 00a6 9342 cmp r3, r2 - 7538 00a8 04D1 bne .L496 - 7539 .L495: -1388:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** } - 7540 .loc 1 1388 0 is_stmt 1 - 7541 00aa 596C ldr r1, [r3, #68] - 7542 00ac 8022 movs r2, #128 - 7543 00ae 1202 lsls r2, r2, #8 - 7544 00b0 0A43 orrs r2, r1 - 7545 00b2 5A64 str r2, [r3, #68] - 7546 .L496: -1392:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** - 7547 .loc 1 1392 0 - 7548 00b4 2268 ldr r2, [r4] - ARM GAS /tmp/cccrAAAm.s page 244 - - - 7549 00b6 1368 ldr r3, [r2] - 7550 00b8 0121 movs r1, #1 - 7551 00ba 0B43 orrs r3, r1 - 7552 00bc 1360 str r3, [r2] -1395:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** } - 7553 .loc 1 1395 0 - 7554 00be 0020 movs r0, #0 - 7555 .L486: -1396:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** - 7556 .loc 1 1396 0 - 7557 @ sp needed - 7558 .LVL766: - 7559 .LVL767: - 7560 00c0 70BD pop {r4, r5, r6, pc} - 7561 .LVL768: - 7562 .L490: -1333:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** - 7563 .loc 1 1333 0 - 7564 00c2 A26A ldr r2, [r4, #40] - 7565 00c4 1248 ldr r0, .L502 - 7566 00c6 9062 str r0, [r2, #40] -1336:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** - 7567 .loc 1 1336 0 - 7568 00c8 A26A ldr r2, [r4, #40] - 7569 00ca 1248 ldr r0, .L502+4 - 7570 00cc 1063 str r0, [r2, #48] -1339:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** - 7571 .loc 1 1339 0 - 7572 00ce 2268 ldr r2, [r4] - 7573 00d0 3832 adds r2, r2, #56 - 7574 00d2 A06A ldr r0, [r4, #40] - 7575 00d4 FFF7FEFF bl HAL_DMA_Start_IT - 7576 .LVL769: -1342:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** } - 7577 .loc 1 1342 0 - 7578 00d8 2268 ldr r2, [r4] - 7579 00da D168 ldr r1, [r2, #12] - 7580 00dc 8023 movs r3, #128 - 7581 00de DB00 lsls r3, r3, #3 - 7582 00e0 0B43 orrs r3, r1 - 7583 00e2 D360 str r3, [r2, #12] -1344:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** - 7584 .loc 1 1344 0 - 7585 00e4 CFE7 b .L489 - 7586 .LVL770: - 7587 .L493: -1349:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** - 7588 .loc 1 1349 0 - 7589 00e6 E26A ldr r2, [r4, #44] - 7590 00e8 0948 ldr r0, .L502 - 7591 00ea 9062 str r0, [r2, #40] -1352:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** - 7592 .loc 1 1352 0 - 7593 00ec E26A ldr r2, [r4, #44] - 7594 00ee 0948 ldr r0, .L502+4 - 7595 00f0 1063 str r0, [r2, #48] -1355:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** - ARM GAS /tmp/cccrAAAm.s page 245 - - - 7596 .loc 1 1355 0 - 7597 00f2 2268 ldr r2, [r4] - 7598 00f4 3C32 adds r2, r2, #60 - 7599 00f6 E06A ldr r0, [r4, #44] - 7600 00f8 FFF7FEFF bl HAL_DMA_Start_IT - 7601 .LVL771: -1358:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** } - 7602 .loc 1 1358 0 - 7603 00fc 2268 ldr r2, [r4] - 7604 00fe D168 ldr r1, [r2, #12] - 7605 0100 8023 movs r3, #128 - 7606 0102 1B01 lsls r3, r3, #4 - 7607 0104 0B43 orrs r3, r1 - 7608 0106 D360 str r3, [r2, #12] -1360:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** - 7609 .loc 1 1360 0 - 7610 0108 BDE7 b .L489 - 7611 .LVL772: - 7612 .L497: -1299:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** } - 7613 .loc 1 1299 0 - 7614 010a 0220 movs r0, #2 - 7615 .LVL773: - 7616 010c D8E7 b .L486 - 7617 .L503: - 7618 010e C046 .align 2 - 7619 .L502: - 7620 0110 00000000 .word TIM_DMADelayPulseCplt - 7621 0114 00000000 .word TIM_DMAError - 7622 0118 002C0140 .word 1073818624 - 7623 011c 00400140 .word 1073823744 - 7624 0120 00440140 .word 1073824768 - 7625 0124 00480140 .word 1073825792 - 7626 .cfi_endproc - 7627 .LFE65: - 7629 .section .text.HAL_TIM_PWM_Stop_DMA,"ax",%progbits - 7630 .align 1 - 7631 .global HAL_TIM_PWM_Stop_DMA - 7632 .syntax unified - 7633 .code 16 - 7634 .thumb_func - 7635 .fpu softvfp - 7637 HAL_TIM_PWM_Stop_DMA: - 7638 .LFB66: -1410:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** /* Check the parameters */ - 7639 .loc 1 1410 0 - 7640 .cfi_startproc - 7641 @ args = 0, pretend = 0, frame = 0 - 7642 @ frame_needed = 0, uses_anonymous_args = 0 - 7643 .LVL774: - 7644 0000 10B5 push {r4, lr} - 7645 .LCFI62: - 7646 .cfi_def_cfa_offset 8 - 7647 .cfi_offset 4, -8 - 7648 .cfi_offset 14, -4 - 7649 0002 0400 movs r4, r0 -1414:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** { - ARM GAS /tmp/cccrAAAm.s page 246 - - - 7650 .loc 1 1414 0 - 7651 0004 0429 cmp r1, #4 - 7652 0006 34D0 beq .L506 - 7653 0008 09D9 bls .L514 - 7654 000a 0829 cmp r1, #8 - 7655 000c 37D0 beq .L509 - 7656 000e 0C29 cmp r1, #12 - 7657 0010 0CD1 bne .L505 -1440:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** } - 7658 .loc 1 1440 0 - 7659 0012 0268 ldr r2, [r0] - 7660 0014 D368 ldr r3, [r2, #12] - 7661 0016 2348 ldr r0, .L515 - 7662 .LVL775: - 7663 0018 0340 ands r3, r0 - 7664 001a D360 str r3, [r2, #12] -1442:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** - 7665 .loc 1 1442 0 - 7666 001c 06E0 b .L505 - 7667 .LVL776: - 7668 .L514: -1414:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** { - 7669 .loc 1 1414 0 - 7670 001e 0029 cmp r1, #0 - 7671 0020 04D1 bne .L505 -1419:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** } - 7672 .loc 1 1419 0 - 7673 0022 0268 ldr r2, [r0] - 7674 0024 D368 ldr r3, [r2, #12] - 7675 0026 2048 ldr r0, .L515+4 - 7676 .LVL777: - 7677 0028 0340 ands r3, r0 - 7678 002a D360 str r3, [r2, #12] - 7679 .L505: -1449:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** - 7680 .loc 1 1449 0 - 7681 002c 0022 movs r2, #0 - 7682 002e 2068 ldr r0, [r4] - 7683 0030 FFF7FEFF bl TIM_CCxChannelCmd - 7684 .LVL778: -1451:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** { - 7685 .loc 1 1451 0 - 7686 0034 2368 ldr r3, [r4] - 7687 0036 1D4A ldr r2, .L515+8 - 7688 0038 9342 cmp r3, r2 - 7689 003a 26D0 beq .L511 -1451:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** { - 7690 .loc 1 1451 0 is_stmt 0 discriminator 2 - 7691 003c 1C4A ldr r2, .L515+12 - 7692 003e 9342 cmp r3, r2 - 7693 0040 23D0 beq .L511 -1451:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** { - 7694 .loc 1 1451 0 discriminator 4 - 7695 0042 1C4A ldr r2, .L515+16 - 7696 0044 9342 cmp r3, r2 - 7697 0046 20D0 beq .L511 -1451:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** { - ARM GAS /tmp/cccrAAAm.s page 247 - - - 7698 .loc 1 1451 0 discriminator 6 - 7699 0048 1B4A ldr r2, .L515+20 - 7700 004a 9342 cmp r3, r2 - 7701 004c 1DD0 beq .L511 - 7702 .L512: -1458:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** - 7703 .loc 1 1458 0 is_stmt 1 - 7704 004e 2368 ldr r3, [r4] - 7705 0050 196A ldr r1, [r3, #32] - 7706 0052 1A4A ldr r2, .L515+24 - 7707 0054 1142 tst r1, r2 - 7708 0056 07D1 bne .L513 -1458:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** - 7709 .loc 1 1458 0 is_stmt 0 discriminator 1 - 7710 0058 196A ldr r1, [r3, #32] - 7711 005a 194A ldr r2, .L515+28 - 7712 005c 1142 tst r1, r2 - 7713 005e 03D1 bne .L513 -1458:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** - 7714 .loc 1 1458 0 discriminator 2 - 7715 0060 1A68 ldr r2, [r3] - 7716 0062 0121 movs r1, #1 - 7717 0064 8A43 bics r2, r1 - 7718 0066 1A60 str r2, [r3] - 7719 .L513: -1461:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** - 7720 .loc 1 1461 0 is_stmt 1 - 7721 0068 3D23 movs r3, #61 - 7722 006a 0122 movs r2, #1 - 7723 006c E254 strb r2, [r4, r3] -1465:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** - 7724 .loc 1 1465 0 - 7725 006e 0020 movs r0, #0 - 7726 @ sp needed - 7727 .LVL779: - 7728 0070 10BD pop {r4, pc} - 7729 .LVL780: - 7730 .L506: -1426:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** } - 7731 .loc 1 1426 0 - 7732 0072 0268 ldr r2, [r0] - 7733 0074 D368 ldr r3, [r2, #12] - 7734 0076 1348 ldr r0, .L515+32 - 7735 .LVL781: - 7736 0078 0340 ands r3, r0 - 7737 007a D360 str r3, [r2, #12] -1428:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** - 7738 .loc 1 1428 0 - 7739 007c D6E7 b .L505 - 7740 .LVL782: - 7741 .L509: -1433:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** } - 7742 .loc 1 1433 0 - 7743 007e 0268 ldr r2, [r0] - 7744 0080 D368 ldr r3, [r2, #12] - 7745 0082 1148 ldr r0, .L515+36 - 7746 .LVL783: - ARM GAS /tmp/cccrAAAm.s page 248 - - - 7747 0084 0340 ands r3, r0 - 7748 0086 D360 str r3, [r2, #12] -1435:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** - 7749 .loc 1 1435 0 - 7750 0088 D0E7 b .L505 - 7751 .LVL784: - 7752 .L511: -1454:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** } - 7753 .loc 1 1454 0 - 7754 008a 196A ldr r1, [r3, #32] - 7755 008c 0B4A ldr r2, .L515+24 - 7756 008e 1142 tst r1, r2 - 7757 0090 DDD1 bne .L512 -1454:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** } - 7758 .loc 1 1454 0 is_stmt 0 discriminator 1 - 7759 0092 196A ldr r1, [r3, #32] - 7760 0094 0A4A ldr r2, .L515+28 - 7761 0096 1142 tst r1, r2 - 7762 0098 D9D1 bne .L512 -1454:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** } - 7763 .loc 1 1454 0 discriminator 2 - 7764 009a 5A6C ldr r2, [r3, #68] - 7765 009c 0B49 ldr r1, .L515+40 - 7766 009e 0A40 ands r2, r1 - 7767 00a0 5A64 str r2, [r3, #68] - 7768 00a2 D4E7 b .L512 - 7769 .L516: - 7770 .align 2 - 7771 .L515: - 7772 00a4 FFEFFFFF .word -4097 - 7773 00a8 FFFDFFFF .word -513 - 7774 00ac 002C0140 .word 1073818624 - 7775 00b0 00400140 .word 1073823744 - 7776 00b4 00440140 .word 1073824768 - 7777 00b8 00480140 .word 1073825792 - 7778 00bc 11110000 .word 4369 - 7779 00c0 44040000 .word 1092 - 7780 00c4 FFFBFFFF .word -1025 - 7781 00c8 FFF7FFFF .word -2049 - 7782 00cc FF7FFFFF .word -32769 - 7783 .cfi_endproc - 7784 .LFE66: - 7786 .section .text.HAL_TIM_IC_Start,"ax",%progbits - 7787 .align 1 - 7788 .global HAL_TIM_IC_Start - 7789 .syntax unified - 7790 .code 16 - 7791 .thumb_func - 7792 .fpu softvfp - 7794 HAL_TIM_IC_Start: - 7795 .LFB71: -1602:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** /* Check the parameters */ - 7796 .loc 1 1602 0 is_stmt 1 - 7797 .cfi_startproc - 7798 @ args = 0, pretend = 0, frame = 0 - 7799 @ frame_needed = 0, uses_anonymous_args = 0 - 7800 .LVL785: - ARM GAS /tmp/cccrAAAm.s page 249 - - - 7801 0000 10B5 push {r4, lr} - 7802 .LCFI63: - 7803 .cfi_def_cfa_offset 8 - 7804 .cfi_offset 4, -8 - 7805 .cfi_offset 14, -4 - 7806 0002 0400 movs r4, r0 -1607:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** - 7807 .loc 1 1607 0 - 7808 0004 0122 movs r2, #1 - 7809 0006 0068 ldr r0, [r0] - 7810 .LVL786: - 7811 0008 FFF7FEFF bl TIM_CCxChannelCmd - 7812 .LVL787: -1610:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** - 7813 .loc 1 1610 0 - 7814 000c 2268 ldr r2, [r4] - 7815 000e 1368 ldr r3, [r2] - 7816 0010 0121 movs r1, #1 - 7817 0012 0B43 orrs r3, r1 - 7818 0014 1360 str r3, [r2] -1614:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** - 7819 .loc 1 1614 0 - 7820 0016 0020 movs r0, #0 - 7821 @ sp needed - 7822 .LVL788: - 7823 0018 10BD pop {r4, pc} - 7824 .cfi_endproc - 7825 .LFE71: - 7827 .section .text.HAL_TIM_IC_Stop,"ax",%progbits - 7828 .align 1 - 7829 .global HAL_TIM_IC_Stop - 7830 .syntax unified - 7831 .code 16 - 7832 .thumb_func - 7833 .fpu softvfp - 7835 HAL_TIM_IC_Stop: - 7836 .LFB72: -1628:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** /* Check the parameters */ - 7837 .loc 1 1628 0 - 7838 .cfi_startproc - 7839 @ args = 0, pretend = 0, frame = 0 - 7840 @ frame_needed = 0, uses_anonymous_args = 0 - 7841 .LVL789: - 7842 0000 10B5 push {r4, lr} - 7843 .LCFI64: - 7844 .cfi_def_cfa_offset 8 - 7845 .cfi_offset 4, -8 - 7846 .cfi_offset 14, -4 - 7847 0002 0400 movs r4, r0 -1633:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** - 7848 .loc 1 1633 0 - 7849 0004 0022 movs r2, #0 - 7850 0006 0068 ldr r0, [r0] - 7851 .LVL790: - 7852 0008 FFF7FEFF bl TIM_CCxChannelCmd - 7853 .LVL791: -1636:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** - ARM GAS /tmp/cccrAAAm.s page 250 - - - 7854 .loc 1 1636 0 - 7855 000c 2368 ldr r3, [r4] - 7856 000e 196A ldr r1, [r3, #32] - 7857 0010 064A ldr r2, .L520 - 7858 0012 1142 tst r1, r2 - 7859 0014 07D1 bne .L519 -1636:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** - 7860 .loc 1 1636 0 is_stmt 0 discriminator 1 - 7861 0016 196A ldr r1, [r3, #32] - 7862 0018 054A ldr r2, .L520+4 - 7863 001a 1142 tst r1, r2 - 7864 001c 03D1 bne .L519 -1636:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** - 7865 .loc 1 1636 0 discriminator 2 - 7866 001e 1A68 ldr r2, [r3] - 7867 0020 0121 movs r1, #1 - 7868 0022 8A43 bics r2, r1 - 7869 0024 1A60 str r2, [r3] - 7870 .L519: -1640:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** - 7871 .loc 1 1640 0 is_stmt 1 - 7872 0026 0020 movs r0, #0 - 7873 @ sp needed - 7874 .LVL792: - 7875 0028 10BD pop {r4, pc} - 7876 .L521: - 7877 002a C046 .align 2 - 7878 .L520: - 7879 002c 11110000 .word 4369 - 7880 0030 44040000 .word 1092 - 7881 .cfi_endproc - 7882 .LFE72: - 7884 .section .text.HAL_TIM_IC_Start_IT,"ax",%progbits - 7885 .align 1 - 7886 .global HAL_TIM_IC_Start_IT - 7887 .syntax unified - 7888 .code 16 - 7889 .thumb_func - 7890 .fpu softvfp - 7892 HAL_TIM_IC_Start_IT: - 7893 .LFB73: -1654:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** /* Check the parameters */ - 7894 .loc 1 1654 0 - 7895 .cfi_startproc - 7896 @ args = 0, pretend = 0, frame = 0 - 7897 @ frame_needed = 0, uses_anonymous_args = 0 - 7898 .LVL793: - 7899 0000 10B5 push {r4, lr} - 7900 .LCFI65: - 7901 .cfi_def_cfa_offset 8 - 7902 .cfi_offset 4, -8 - 7903 .cfi_offset 14, -4 - 7904 0002 0400 movs r4, r0 -1658:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** { - 7905 .loc 1 1658 0 - 7906 0004 0429 cmp r1, #4 - 7907 0006 1CD0 beq .L524 - ARM GAS /tmp/cccrAAAm.s page 251 - - - 7908 0008 09D9 bls .L529 - 7909 000a 0829 cmp r1, #8 - 7910 000c 1FD0 beq .L527 - 7911 000e 0C29 cmp r1, #12 - 7912 0010 0CD1 bne .L523 -1684:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** } - 7913 .loc 1 1684 0 - 7914 0012 0268 ldr r2, [r0] - 7915 0014 D368 ldr r3, [r2, #12] - 7916 0016 1020 movs r0, #16 - 7917 .LVL794: - 7918 0018 0343 orrs r3, r0 - 7919 001a D360 str r3, [r2, #12] -1686:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** - 7920 .loc 1 1686 0 - 7921 001c 06E0 b .L523 - 7922 .LVL795: - 7923 .L529: -1658:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** { - 7924 .loc 1 1658 0 - 7925 001e 0029 cmp r1, #0 - 7926 0020 04D1 bne .L523 -1663:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** } - 7927 .loc 1 1663 0 - 7928 0022 0268 ldr r2, [r0] - 7929 0024 D368 ldr r3, [r2, #12] - 7930 0026 0220 movs r0, #2 - 7931 .LVL796: - 7932 0028 0343 orrs r3, r0 - 7933 002a D360 str r3, [r2, #12] - 7934 .L523: -1692:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** - 7935 .loc 1 1692 0 - 7936 002c 0122 movs r2, #1 - 7937 002e 2068 ldr r0, [r4] - 7938 0030 FFF7FEFF bl TIM_CCxChannelCmd - 7939 .LVL797: -1695:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** - 7940 .loc 1 1695 0 - 7941 0034 2268 ldr r2, [r4] - 7942 0036 1368 ldr r3, [r2] - 7943 0038 0121 movs r1, #1 - 7944 003a 0B43 orrs r3, r1 - 7945 003c 1360 str r3, [r2] -1699:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** - 7946 .loc 1 1699 0 - 7947 003e 0020 movs r0, #0 - 7948 @ sp needed - 7949 .LVL798: - 7950 0040 10BD pop {r4, pc} - 7951 .LVL799: - 7952 .L524: -1670:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** } - 7953 .loc 1 1670 0 - 7954 0042 0268 ldr r2, [r0] - 7955 0044 D368 ldr r3, [r2, #12] - 7956 0046 0420 movs r0, #4 - ARM GAS /tmp/cccrAAAm.s page 252 - - - 7957 .LVL800: - 7958 0048 0343 orrs r3, r0 - 7959 004a D360 str r3, [r2, #12] -1672:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** - 7960 .loc 1 1672 0 - 7961 004c EEE7 b .L523 - 7962 .LVL801: - 7963 .L527: -1677:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** } - 7964 .loc 1 1677 0 - 7965 004e 0268 ldr r2, [r0] - 7966 0050 D368 ldr r3, [r2, #12] - 7967 0052 0820 movs r0, #8 - 7968 .LVL802: - 7969 0054 0343 orrs r3, r0 - 7970 0056 D360 str r3, [r2, #12] -1679:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** - 7971 .loc 1 1679 0 - 7972 0058 E8E7 b .L523 - 7973 .cfi_endproc - 7974 .LFE73: - 7976 .section .text.HAL_TIM_IC_Stop_IT,"ax",%progbits - 7977 .align 1 - 7978 .global HAL_TIM_IC_Stop_IT - 7979 .syntax unified - 7980 .code 16 - 7981 .thumb_func - 7982 .fpu softvfp - 7984 HAL_TIM_IC_Stop_IT: - 7985 .LFB74: -1713:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** /* Check the parameters */ - 7986 .loc 1 1713 0 - 7987 .cfi_startproc - 7988 @ args = 0, pretend = 0, frame = 0 - 7989 @ frame_needed = 0, uses_anonymous_args = 0 - 7990 .LVL803: - 7991 0000 10B5 push {r4, lr} - 7992 .LCFI66: - 7993 .cfi_def_cfa_offset 8 - 7994 .cfi_offset 4, -8 - 7995 .cfi_offset 14, -4 - 7996 0002 0400 movs r4, r0 -1717:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** { - 7997 .loc 1 1717 0 - 7998 0004 0429 cmp r1, #4 - 7999 0006 24D0 beq .L532 - 8000 0008 09D9 bls .L538 - 8001 000a 0829 cmp r1, #8 - 8002 000c 27D0 beq .L535 - 8003 000e 0C29 cmp r1, #12 - 8004 0010 0CD1 bne .L531 -1743:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** } - 8005 .loc 1 1743 0 - 8006 0012 0268 ldr r2, [r0] - 8007 0014 D368 ldr r3, [r2, #12] - 8008 0016 1020 movs r0, #16 - 8009 .LVL804: - ARM GAS /tmp/cccrAAAm.s page 253 - - - 8010 0018 8343 bics r3, r0 - 8011 001a D360 str r3, [r2, #12] -1745:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** - 8012 .loc 1 1745 0 - 8013 001c 06E0 b .L531 - 8014 .LVL805: - 8015 .L538: -1717:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** { - 8016 .loc 1 1717 0 - 8017 001e 0029 cmp r1, #0 - 8018 0020 04D1 bne .L531 -1722:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** } - 8019 .loc 1 1722 0 - 8020 0022 0268 ldr r2, [r0] - 8021 0024 D368 ldr r3, [r2, #12] - 8022 0026 0220 movs r0, #2 - 8023 .LVL806: - 8024 0028 8343 bics r3, r0 - 8025 002a D360 str r3, [r2, #12] - 8026 .L531: -1752:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** - 8027 .loc 1 1752 0 - 8028 002c 0022 movs r2, #0 - 8029 002e 2068 ldr r0, [r4] - 8030 0030 FFF7FEFF bl TIM_CCxChannelCmd - 8031 .LVL807: -1755:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** - 8032 .loc 1 1755 0 - 8033 0034 2368 ldr r3, [r4] - 8034 0036 196A ldr r1, [r3, #32] - 8035 0038 0C4A ldr r2, .L539 - 8036 003a 1142 tst r1, r2 - 8037 003c 07D1 bne .L537 -1755:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** - 8038 .loc 1 1755 0 is_stmt 0 discriminator 1 - 8039 003e 196A ldr r1, [r3, #32] - 8040 0040 0B4A ldr r2, .L539+4 - 8041 0042 1142 tst r1, r2 - 8042 0044 03D1 bne .L537 -1755:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** - 8043 .loc 1 1755 0 discriminator 2 - 8044 0046 1A68 ldr r2, [r3] - 8045 0048 0121 movs r1, #1 - 8046 004a 8A43 bics r2, r1 - 8047 004c 1A60 str r2, [r3] - 8048 .L537: -1759:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** - 8049 .loc 1 1759 0 is_stmt 1 - 8050 004e 0020 movs r0, #0 - 8051 @ sp needed - 8052 .LVL808: - 8053 0050 10BD pop {r4, pc} - 8054 .LVL809: - 8055 .L532: -1729:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** } - 8056 .loc 1 1729 0 - 8057 0052 0268 ldr r2, [r0] - ARM GAS /tmp/cccrAAAm.s page 254 - - - 8058 0054 D368 ldr r3, [r2, #12] - 8059 0056 0420 movs r0, #4 - 8060 .LVL810: - 8061 0058 8343 bics r3, r0 - 8062 005a D360 str r3, [r2, #12] -1731:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** - 8063 .loc 1 1731 0 - 8064 005c E6E7 b .L531 - 8065 .LVL811: - 8066 .L535: -1736:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** } - 8067 .loc 1 1736 0 - 8068 005e 0268 ldr r2, [r0] - 8069 0060 D368 ldr r3, [r2, #12] - 8070 0062 0820 movs r0, #8 - 8071 .LVL812: - 8072 0064 8343 bics r3, r0 - 8073 0066 D360 str r3, [r2, #12] -1738:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** - 8074 .loc 1 1738 0 - 8075 0068 E0E7 b .L531 - 8076 .L540: - 8077 006a C046 .align 2 - 8078 .L539: - 8079 006c 11110000 .word 4369 - 8080 0070 44040000 .word 1092 - 8081 .cfi_endproc - 8082 .LFE74: - 8084 .section .text.HAL_TIM_IC_Start_DMA,"ax",%progbits - 8085 .align 1 - 8086 .global HAL_TIM_IC_Start_DMA - 8087 .syntax unified - 8088 .code 16 - 8089 .thumb_func - 8090 .fpu softvfp - 8092 HAL_TIM_IC_Start_DMA: - 8093 .LFB75: -1775:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** /* Check the parameters */ - 8094 .loc 1 1775 0 - 8095 .cfi_startproc - 8096 @ args = 0, pretend = 0, frame = 0 - 8097 @ frame_needed = 0, uses_anonymous_args = 0 - 8098 .LVL813: - 8099 0000 70B5 push {r4, r5, r6, lr} - 8100 .LCFI67: - 8101 .cfi_def_cfa_offset 16 - 8102 .cfi_offset 4, -16 - 8103 .cfi_offset 5, -12 - 8104 .cfi_offset 6, -8 - 8105 .cfi_offset 14, -4 - 8106 0002 0400 movs r4, r0 - 8107 0004 0D00 movs r5, r1 -1780:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** { - 8108 .loc 1 1780 0 - 8109 0006 3D21 movs r1, #61 - 8110 .LVL814: - 8111 0008 415C ldrb r1, [r0, r1] - ARM GAS /tmp/cccrAAAm.s page 255 - - - 8112 000a 0229 cmp r1, #2 - 8113 000c 69D0 beq .L551 -1784:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** { - 8114 .loc 1 1784 0 - 8115 000e 3D21 movs r1, #61 - 8116 0010 415C ldrb r1, [r0, r1] - 8117 0012 0129 cmp r1, #1 - 8118 0014 18D0 beq .L553 - 8119 .LVL815: - 8120 .L543: -1796:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** { - 8121 .loc 1 1796 0 - 8122 0016 042D cmp r5, #4 - 8123 0018 3FD0 beq .L546 - 8124 001a 1FD9 bls .L554 - 8125 001c 082D cmp r5, #8 - 8126 001e 4ED0 beq .L549 - 8127 0020 0C2D cmp r5, #12 - 8128 0022 2ED1 bne .L545 -1849:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** - 8129 .loc 1 1849 0 - 8130 0024 216B ldr r1, [r4, #48] - 8131 0026 3048 ldr r0, .L556 - 8132 0028 8862 str r0, [r1, #40] -1852:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** - 8133 .loc 1 1852 0 - 8134 002a 216B ldr r1, [r4, #48] - 8135 002c 2F48 ldr r0, .L556+4 - 8136 002e 0863 str r0, [r1, #48] -1855:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** - 8137 .loc 1 1855 0 - 8138 0030 2168 ldr r1, [r4] - 8139 0032 4031 adds r1, r1, #64 - 8140 0034 206B ldr r0, [r4, #48] - 8141 0036 FFF7FEFF bl HAL_DMA_Start_IT - 8142 .LVL816: -1858:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** } - 8143 .loc 1 1858 0 - 8144 003a 2268 ldr r2, [r4] - 8145 003c D168 ldr r1, [r2, #12] - 8146 003e 8023 movs r3, #128 - 8147 0040 5B01 lsls r3, r3, #5 - 8148 0042 0B43 orrs r3, r1 - 8149 0044 D360 str r3, [r2, #12] -1860:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** - 8150 .loc 1 1860 0 - 8151 0046 1CE0 b .L545 - 8152 .LVL817: - 8153 .L553: -1786:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** { - 8154 .loc 1 1786 0 - 8155 0048 002A cmp r2, #0 - 8156 004a 03D0 beq .L555 - 8157 .L544: -1792:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** } - 8158 .loc 1 1792 0 - 8159 004c 3D21 movs r1, #61 - ARM GAS /tmp/cccrAAAm.s page 256 - - - 8160 004e 0220 movs r0, #2 - 8161 .LVL818: - 8162 0050 6054 strb r0, [r4, r1] - 8163 0052 E0E7 b .L543 - 8164 .LVL819: - 8165 .L555: -1786:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** { - 8166 .loc 1 1786 0 discriminator 1 - 8167 0054 002B cmp r3, #0 - 8168 0056 F9D0 beq .L544 -1788:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** } - 8169 .loc 1 1788 0 - 8170 0058 0120 movs r0, #1 - 8171 .LVL820: - 8172 005a 1DE0 b .L542 - 8173 .L554: -1796:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** { - 8174 .loc 1 1796 0 - 8175 005c 002D cmp r5, #0 - 8176 005e 10D1 bne .L545 -1801:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** - 8177 .loc 1 1801 0 - 8178 0060 616A ldr r1, [r4, #36] - 8179 0062 2148 ldr r0, .L556 - 8180 0064 8862 str r0, [r1, #40] -1804:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** - 8181 .loc 1 1804 0 - 8182 0066 616A ldr r1, [r4, #36] - 8183 0068 2048 ldr r0, .L556+4 - 8184 006a 0863 str r0, [r1, #48] -1807:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** - 8185 .loc 1 1807 0 - 8186 006c 2168 ldr r1, [r4] - 8187 006e 3431 adds r1, r1, #52 - 8188 0070 606A ldr r0, [r4, #36] - 8189 0072 FFF7FEFF bl HAL_DMA_Start_IT - 8190 .LVL821: -1810:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** } - 8191 .loc 1 1810 0 - 8192 0076 2268 ldr r2, [r4] - 8193 0078 D168 ldr r1, [r2, #12] - 8194 007a 8023 movs r3, #128 - 8195 007c 9B00 lsls r3, r3, #2 - 8196 007e 0B43 orrs r3, r1 - 8197 0080 D360 str r3, [r2, #12] - 8198 .L545: -1867:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** - 8199 .loc 1 1867 0 - 8200 0082 0122 movs r2, #1 - 8201 0084 2900 movs r1, r5 - 8202 0086 2068 ldr r0, [r4] - 8203 0088 FFF7FEFF bl TIM_CCxChannelCmd - 8204 .LVL822: -1870:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** - 8205 .loc 1 1870 0 - 8206 008c 2268 ldr r2, [r4] - 8207 008e 1368 ldr r3, [r2] - ARM GAS /tmp/cccrAAAm.s page 257 - - - 8208 0090 0121 movs r1, #1 - 8209 0092 0B43 orrs r3, r1 - 8210 0094 1360 str r3, [r2] -1873:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** } - 8211 .loc 1 1873 0 - 8212 0096 0020 movs r0, #0 - 8213 .L542: -1874:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** - 8214 .loc 1 1874 0 - 8215 @ sp needed - 8216 .LVL823: - 8217 .LVL824: - 8218 0098 70BD pop {r4, r5, r6, pc} - 8219 .LVL825: - 8220 .L546: -1817:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** - 8221 .loc 1 1817 0 - 8222 009a A16A ldr r1, [r4, #40] - 8223 009c 1248 ldr r0, .L556 - 8224 009e 8862 str r0, [r1, #40] -1820:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** - 8225 .loc 1 1820 0 - 8226 00a0 A16A ldr r1, [r4, #40] - 8227 00a2 1248 ldr r0, .L556+4 - 8228 00a4 0863 str r0, [r1, #48] -1823:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** - 8229 .loc 1 1823 0 - 8230 00a6 2168 ldr r1, [r4] - 8231 00a8 3831 adds r1, r1, #56 - 8232 00aa A06A ldr r0, [r4, #40] - 8233 00ac FFF7FEFF bl HAL_DMA_Start_IT - 8234 .LVL826: -1826:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** } - 8235 .loc 1 1826 0 - 8236 00b0 2268 ldr r2, [r4] - 8237 00b2 D168 ldr r1, [r2, #12] - 8238 00b4 8023 movs r3, #128 - 8239 00b6 DB00 lsls r3, r3, #3 - 8240 00b8 0B43 orrs r3, r1 - 8241 00ba D360 str r3, [r2, #12] -1828:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** - 8242 .loc 1 1828 0 - 8243 00bc E1E7 b .L545 - 8244 .LVL827: - 8245 .L549: -1833:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** - 8246 .loc 1 1833 0 - 8247 00be E16A ldr r1, [r4, #44] - 8248 00c0 0948 ldr r0, .L556 - 8249 00c2 8862 str r0, [r1, #40] -1836:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** - 8250 .loc 1 1836 0 - 8251 00c4 E16A ldr r1, [r4, #44] - 8252 00c6 0948 ldr r0, .L556+4 - 8253 00c8 0863 str r0, [r1, #48] -1839:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** - 8254 .loc 1 1839 0 - ARM GAS /tmp/cccrAAAm.s page 258 - - - 8255 00ca 2168 ldr r1, [r4] - 8256 00cc 3C31 adds r1, r1, #60 - 8257 00ce E06A ldr r0, [r4, #44] - 8258 00d0 FFF7FEFF bl HAL_DMA_Start_IT - 8259 .LVL828: -1842:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** } - 8260 .loc 1 1842 0 - 8261 00d4 2268 ldr r2, [r4] - 8262 00d6 D168 ldr r1, [r2, #12] - 8263 00d8 8023 movs r3, #128 - 8264 00da 1B01 lsls r3, r3, #4 - 8265 00dc 0B43 orrs r3, r1 - 8266 00de D360 str r3, [r2, #12] -1844:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** - 8267 .loc 1 1844 0 - 8268 00e0 CFE7 b .L545 - 8269 .LVL829: - 8270 .L551: -1782:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** } - 8271 .loc 1 1782 0 - 8272 00e2 0220 movs r0, #2 - 8273 .LVL830: - 8274 00e4 D8E7 b .L542 - 8275 .L557: - 8276 00e6 C046 .align 2 - 8277 .L556: - 8278 00e8 00000000 .word TIM_DMACaptureCplt - 8279 00ec 00000000 .word TIM_DMAError - 8280 .cfi_endproc - 8281 .LFE75: - 8283 .section .text.HAL_TIM_IC_Stop_DMA,"ax",%progbits - 8284 .align 1 - 8285 .global HAL_TIM_IC_Stop_DMA - 8286 .syntax unified - 8287 .code 16 - 8288 .thumb_func - 8289 .fpu softvfp - 8291 HAL_TIM_IC_Stop_DMA: - 8292 .LFB76: -1888:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** /* Check the parameters */ - 8293 .loc 1 1888 0 - 8294 .cfi_startproc - 8295 @ args = 0, pretend = 0, frame = 0 - 8296 @ frame_needed = 0, uses_anonymous_args = 0 - 8297 .LVL831: - 8298 0000 10B5 push {r4, lr} - 8299 .LCFI68: - 8300 .cfi_def_cfa_offset 8 - 8301 .cfi_offset 4, -8 - 8302 .cfi_offset 14, -4 - 8303 0002 0400 movs r4, r0 -1893:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** { - 8304 .loc 1 1893 0 - 8305 0004 0429 cmp r1, #4 - 8306 0006 27D0 beq .L560 - 8307 0008 09D9 bls .L566 - 8308 000a 0829 cmp r1, #8 - ARM GAS /tmp/cccrAAAm.s page 259 - - - 8309 000c 2AD0 beq .L563 - 8310 000e 0C29 cmp r1, #12 - 8311 0010 0CD1 bne .L559 -1919:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** } - 8312 .loc 1 1919 0 - 8313 0012 0268 ldr r2, [r0] - 8314 0014 D368 ldr r3, [r2, #12] - 8315 0016 1648 ldr r0, .L567 - 8316 .LVL832: - 8317 0018 0340 ands r3, r0 - 8318 001a D360 str r3, [r2, #12] -1921:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** - 8319 .loc 1 1921 0 - 8320 001c 06E0 b .L559 - 8321 .LVL833: - 8322 .L566: -1893:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** { - 8323 .loc 1 1893 0 - 8324 001e 0029 cmp r1, #0 - 8325 0020 04D1 bne .L559 -1898:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** } - 8326 .loc 1 1898 0 - 8327 0022 0268 ldr r2, [r0] - 8328 0024 D368 ldr r3, [r2, #12] - 8329 0026 1348 ldr r0, .L567+4 - 8330 .LVL834: - 8331 0028 0340 ands r3, r0 - 8332 002a D360 str r3, [r2, #12] - 8333 .L559: -1928:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** - 8334 .loc 1 1928 0 - 8335 002c 0022 movs r2, #0 - 8336 002e 2068 ldr r0, [r4] - 8337 0030 FFF7FEFF bl TIM_CCxChannelCmd - 8338 .LVL835: -1931:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** - 8339 .loc 1 1931 0 - 8340 0034 2368 ldr r3, [r4] - 8341 0036 196A ldr r1, [r3, #32] - 8342 0038 0F4A ldr r2, .L567+8 - 8343 003a 1142 tst r1, r2 - 8344 003c 07D1 bne .L565 -1931:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** - 8345 .loc 1 1931 0 is_stmt 0 discriminator 1 - 8346 003e 196A ldr r1, [r3, #32] - 8347 0040 0E4A ldr r2, .L567+12 - 8348 0042 1142 tst r1, r2 - 8349 0044 03D1 bne .L565 -1931:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** - 8350 .loc 1 1931 0 discriminator 2 - 8351 0046 1A68 ldr r2, [r3] - 8352 0048 0121 movs r1, #1 - 8353 004a 8A43 bics r2, r1 - 8354 004c 1A60 str r2, [r3] - 8355 .L565: -1934:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** - 8356 .loc 1 1934 0 is_stmt 1 - ARM GAS /tmp/cccrAAAm.s page 260 - - - 8357 004e 3D23 movs r3, #61 - 8358 0050 0122 movs r2, #1 - 8359 0052 E254 strb r2, [r4, r3] -1938:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** /** - 8360 .loc 1 1938 0 - 8361 0054 0020 movs r0, #0 - 8362 @ sp needed - 8363 .LVL836: - 8364 0056 10BD pop {r4, pc} - 8365 .LVL837: - 8366 .L560: -1905:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** } - 8367 .loc 1 1905 0 - 8368 0058 0268 ldr r2, [r0] - 8369 005a D368 ldr r3, [r2, #12] - 8370 005c 0848 ldr r0, .L567+16 - 8371 .LVL838: - 8372 005e 0340 ands r3, r0 - 8373 0060 D360 str r3, [r2, #12] -1907:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** - 8374 .loc 1 1907 0 - 8375 0062 E3E7 b .L559 - 8376 .LVL839: - 8377 .L563: -1912:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** } - 8378 .loc 1 1912 0 - 8379 0064 0268 ldr r2, [r0] - 8380 0066 D368 ldr r3, [r2, #12] - 8381 0068 0648 ldr r0, .L567+20 - 8382 .LVL840: - 8383 006a 0340 ands r3, r0 - 8384 006c D360 str r3, [r2, #12] -1914:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** - 8385 .loc 1 1914 0 - 8386 006e DDE7 b .L559 - 8387 .L568: - 8388 .align 2 - 8389 .L567: - 8390 0070 FFEFFFFF .word -4097 - 8391 0074 FFFDFFFF .word -513 - 8392 0078 11110000 .word 4369 - 8393 007c 44040000 .word 1092 - 8394 0080 FFFBFFFF .word -1025 - 8395 0084 FFF7FFFF .word -2049 - 8396 .cfi_endproc - 8397 .LFE76: - 8399 .section .text.HAL_TIM_OnePulse_Start,"ax",%progbits - 8400 .align 1 - 8401 .global HAL_TIM_OnePulse_Start - 8402 .syntax unified - 8403 .code 16 - 8404 .thumb_func - 8405 .fpu softvfp - 8407 HAL_TIM_OnePulse_Start: - 8408 .LFB81: -2083:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** /* Enable the Capture compare and the Input Capture channels - 8409 .loc 1 2083 0 - ARM GAS /tmp/cccrAAAm.s page 261 - - - 8410 .cfi_startproc - 8411 @ args = 0, pretend = 0, frame = 0 - 8412 @ frame_needed = 0, uses_anonymous_args = 0 - 8413 .LVL841: - 8414 0000 10B5 push {r4, lr} - 8415 .LCFI69: - 8416 .cfi_def_cfa_offset 8 - 8417 .cfi_offset 4, -8 - 8418 .cfi_offset 14, -4 - 8419 0002 0400 movs r4, r0 -2093:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** TIM_CCxChannelCmd(htim->Instance, TIM_CHANNEL_2, TIM_CCx_ENABLE); - 8420 .loc 1 2093 0 - 8421 0004 0122 movs r2, #1 - 8422 0006 0021 movs r1, #0 - 8423 .LVL842: - 8424 0008 0068 ldr r0, [r0] - 8425 .LVL843: - 8426 000a FFF7FEFF bl TIM_CCxChannelCmd - 8427 .LVL844: -2094:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** - 8428 .loc 1 2094 0 - 8429 000e 0122 movs r2, #1 - 8430 0010 0421 movs r1, #4 - 8431 0012 2068 ldr r0, [r4] - 8432 0014 FFF7FEFF bl TIM_CCxChannelCmd - 8433 .LVL845: -2096:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** { - 8434 .loc 1 2096 0 - 8435 0018 2368 ldr r3, [r4] - 8436 001a 094A ldr r2, .L572 - 8437 001c 9342 cmp r3, r2 - 8438 001e 08D0 beq .L570 -2096:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** { - 8439 .loc 1 2096 0 is_stmt 0 discriminator 2 - 8440 0020 084A ldr r2, .L572+4 - 8441 0022 9342 cmp r3, r2 - 8442 0024 05D0 beq .L570 -2096:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** { - 8443 .loc 1 2096 0 discriminator 4 - 8444 0026 084A ldr r2, .L572+8 - 8445 0028 9342 cmp r3, r2 - 8446 002a 02D0 beq .L570 -2096:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** { - 8447 .loc 1 2096 0 discriminator 6 - 8448 002c 074A ldr r2, .L572+12 - 8449 002e 9342 cmp r3, r2 - 8450 0030 04D1 bne .L571 - 8451 .L570: -2099:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** } - 8452 .loc 1 2099 0 is_stmt 1 - 8453 0032 596C ldr r1, [r3, #68] - 8454 0034 8022 movs r2, #128 - 8455 0036 1202 lsls r2, r2, #8 - 8456 0038 0A43 orrs r2, r1 - 8457 003a 5A64 str r2, [r3, #68] - 8458 .L571: -2104:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** - ARM GAS /tmp/cccrAAAm.s page 262 - - - 8459 .loc 1 2104 0 - 8460 003c 0020 movs r0, #0 - 8461 @ sp needed - 8462 .LVL846: - 8463 003e 10BD pop {r4, pc} - 8464 .L573: - 8465 .align 2 - 8466 .L572: - 8467 0040 002C0140 .word 1073818624 - 8468 0044 00400140 .word 1073823744 - 8469 0048 00440140 .word 1073824768 - 8470 004c 00480140 .word 1073825792 - 8471 .cfi_endproc - 8472 .LFE81: - 8474 .section .text.HAL_TIM_OnePulse_Stop,"ax",%progbits - 8475 .align 1 - 8476 .global HAL_TIM_OnePulse_Stop - 8477 .syntax unified - 8478 .code 16 - 8479 .thumb_func - 8480 .fpu softvfp - 8482 HAL_TIM_OnePulse_Stop: - 8483 .LFB82: -2116:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** /* Disable the Capture compare and the Input Capture channels - 8484 .loc 1 2116 0 - 8485 .cfi_startproc - 8486 @ args = 0, pretend = 0, frame = 0 - 8487 @ frame_needed = 0, uses_anonymous_args = 0 - 8488 .LVL847: - 8489 0000 10B5 push {r4, lr} - 8490 .LCFI70: - 8491 .cfi_def_cfa_offset 8 - 8492 .cfi_offset 4, -8 - 8493 .cfi_offset 14, -4 - 8494 0002 0400 movs r4, r0 -2123:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** TIM_CCxChannelCmd(htim->Instance, TIM_CHANNEL_2, TIM_CCx_DISABLE); - 8495 .loc 1 2123 0 - 8496 0004 0022 movs r2, #0 - 8497 0006 0021 movs r1, #0 - 8498 .LVL848: - 8499 0008 0068 ldr r0, [r0] - 8500 .LVL849: - 8501 000a FFF7FEFF bl TIM_CCxChannelCmd - 8502 .LVL850: -2124:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** - 8503 .loc 1 2124 0 - 8504 000e 0022 movs r2, #0 - 8505 0010 0421 movs r1, #4 - 8506 0012 2068 ldr r0, [r4] - 8507 0014 FFF7FEFF bl TIM_CCxChannelCmd - 8508 .LVL851: -2126:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** { - 8509 .loc 1 2126 0 - 8510 0018 2368 ldr r3, [r4] - 8511 001a 144A ldr r2, .L578 - 8512 001c 9342 cmp r3, r2 - 8513 001e 17D0 beq .L575 - ARM GAS /tmp/cccrAAAm.s page 263 - - -2126:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** { - 8514 .loc 1 2126 0 is_stmt 0 discriminator 2 - 8515 0020 134A ldr r2, .L578+4 - 8516 0022 9342 cmp r3, r2 - 8517 0024 14D0 beq .L575 -2126:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** { - 8518 .loc 1 2126 0 discriminator 4 - 8519 0026 134A ldr r2, .L578+8 - 8520 0028 9342 cmp r3, r2 - 8521 002a 11D0 beq .L575 -2126:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** { - 8522 .loc 1 2126 0 discriminator 6 - 8523 002c 124A ldr r2, .L578+12 - 8524 002e 9342 cmp r3, r2 - 8525 0030 0ED0 beq .L575 - 8526 .L576: -2133:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** - 8527 .loc 1 2133 0 is_stmt 1 - 8528 0032 2368 ldr r3, [r4] - 8529 0034 196A ldr r1, [r3, #32] - 8530 0036 114A ldr r2, .L578+16 - 8531 0038 1142 tst r1, r2 - 8532 003a 07D1 bne .L577 -2133:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** - 8533 .loc 1 2133 0 is_stmt 0 discriminator 1 - 8534 003c 196A ldr r1, [r3, #32] - 8535 003e 104A ldr r2, .L578+20 - 8536 0040 1142 tst r1, r2 - 8537 0042 03D1 bne .L577 -2133:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** - 8538 .loc 1 2133 0 discriminator 2 - 8539 0044 1A68 ldr r2, [r3] - 8540 0046 0121 movs r1, #1 - 8541 0048 8A43 bics r2, r1 - 8542 004a 1A60 str r2, [r3] - 8543 .L577: -2137:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** - 8544 .loc 1 2137 0 is_stmt 1 - 8545 004c 0020 movs r0, #0 - 8546 @ sp needed - 8547 .LVL852: - 8548 004e 10BD pop {r4, pc} - 8549 .LVL853: - 8550 .L575: -2129:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** } - 8551 .loc 1 2129 0 - 8552 0050 196A ldr r1, [r3, #32] - 8553 0052 0A4A ldr r2, .L578+16 - 8554 0054 1142 tst r1, r2 - 8555 0056 ECD1 bne .L576 -2129:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** } - 8556 .loc 1 2129 0 is_stmt 0 discriminator 1 - 8557 0058 196A ldr r1, [r3, #32] - 8558 005a 094A ldr r2, .L578+20 - 8559 005c 1142 tst r1, r2 - 8560 005e E8D1 bne .L576 -2129:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** } - ARM GAS /tmp/cccrAAAm.s page 264 - - - 8561 .loc 1 2129 0 discriminator 2 - 8562 0060 5A6C ldr r2, [r3, #68] - 8563 0062 0849 ldr r1, .L578+24 - 8564 0064 0A40 ands r2, r1 - 8565 0066 5A64 str r2, [r3, #68] - 8566 0068 E3E7 b .L576 - 8567 .L579: - 8568 006a C046 .align 2 - 8569 .L578: - 8570 006c 002C0140 .word 1073818624 - 8571 0070 00400140 .word 1073823744 - 8572 0074 00440140 .word 1073824768 - 8573 0078 00480140 .word 1073825792 - 8574 007c 11110000 .word 4369 - 8575 0080 44040000 .word 1092 - 8576 0084 FF7FFFFF .word -32769 - 8577 .cfi_endproc - 8578 .LFE82: - 8580 .section .text.HAL_TIM_OnePulse_Start_IT,"ax",%progbits - 8581 .align 1 - 8582 .global HAL_TIM_OnePulse_Start_IT - 8583 .syntax unified - 8584 .code 16 - 8585 .thumb_func - 8586 .fpu softvfp - 8588 HAL_TIM_OnePulse_Start_IT: - 8589 .LFB83: -2149:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** /* Enable the Capture compare and the Input Capture channels - 8590 .loc 1 2149 0 is_stmt 1 - 8591 .cfi_startproc - 8592 @ args = 0, pretend = 0, frame = 0 - 8593 @ frame_needed = 0, uses_anonymous_args = 0 - 8594 .LVL854: - 8595 0000 10B5 push {r4, lr} - 8596 .LCFI71: - 8597 .cfi_def_cfa_offset 8 - 8598 .cfi_offset 4, -8 - 8599 .cfi_offset 14, -4 - 8600 0002 0400 movs r4, r0 -2160:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** - 8601 .loc 1 2160 0 - 8602 0004 0268 ldr r2, [r0] - 8603 0006 D368 ldr r3, [r2, #12] - 8604 0008 0221 movs r1, #2 - 8605 .LVL855: - 8606 000a 0B43 orrs r3, r1 - 8607 000c D360 str r3, [r2, #12] -2163:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** - 8608 .loc 1 2163 0 - 8609 000e 0268 ldr r2, [r0] - 8610 0010 D368 ldr r3, [r2, #12] - 8611 0012 0231 adds r1, r1, #2 - 8612 0014 0B43 orrs r3, r1 - 8613 0016 D360 str r3, [r2, #12] -2165:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** TIM_CCxChannelCmd(htim->Instance, TIM_CHANNEL_2, TIM_CCx_ENABLE); - 8614 .loc 1 2165 0 - 8615 0018 0122 movs r2, #1 - ARM GAS /tmp/cccrAAAm.s page 265 - - - 8616 001a 0021 movs r1, #0 - 8617 001c 0068 ldr r0, [r0] - 8618 .LVL856: - 8619 001e FFF7FEFF bl TIM_CCxChannelCmd - 8620 .LVL857: -2166:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** - 8621 .loc 1 2166 0 - 8622 0022 0122 movs r2, #1 - 8623 0024 0421 movs r1, #4 - 8624 0026 2068 ldr r0, [r4] - 8625 0028 FFF7FEFF bl TIM_CCxChannelCmd - 8626 .LVL858: -2168:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** { - 8627 .loc 1 2168 0 - 8628 002c 2368 ldr r3, [r4] - 8629 002e 094A ldr r2, .L583 - 8630 0030 9342 cmp r3, r2 - 8631 0032 08D0 beq .L581 -2168:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** { - 8632 .loc 1 2168 0 is_stmt 0 discriminator 2 - 8633 0034 084A ldr r2, .L583+4 - 8634 0036 9342 cmp r3, r2 - 8635 0038 05D0 beq .L581 -2168:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** { - 8636 .loc 1 2168 0 discriminator 4 - 8637 003a 084A ldr r2, .L583+8 - 8638 003c 9342 cmp r3, r2 - 8639 003e 02D0 beq .L581 -2168:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** { - 8640 .loc 1 2168 0 discriminator 6 - 8641 0040 074A ldr r2, .L583+12 - 8642 0042 9342 cmp r3, r2 - 8643 0044 04D1 bne .L582 - 8644 .L581: -2171:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** } - 8645 .loc 1 2171 0 is_stmt 1 - 8646 0046 596C ldr r1, [r3, #68] - 8647 0048 8022 movs r2, #128 - 8648 004a 1202 lsls r2, r2, #8 - 8649 004c 0A43 orrs r2, r1 - 8650 004e 5A64 str r2, [r3, #68] - 8651 .L582: -2176:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** - 8652 .loc 1 2176 0 - 8653 0050 0020 movs r0, #0 - 8654 @ sp needed - 8655 .LVL859: - 8656 0052 10BD pop {r4, pc} - 8657 .L584: - 8658 .align 2 - 8659 .L583: - 8660 0054 002C0140 .word 1073818624 - 8661 0058 00400140 .word 1073823744 - 8662 005c 00440140 .word 1073824768 - 8663 0060 00480140 .word 1073825792 - 8664 .cfi_endproc - 8665 .LFE83: - ARM GAS /tmp/cccrAAAm.s page 266 - - - 8667 .section .text.HAL_TIM_OnePulse_Stop_IT,"ax",%progbits - 8668 .align 1 - 8669 .global HAL_TIM_OnePulse_Stop_IT - 8670 .syntax unified - 8671 .code 16 - 8672 .thumb_func - 8673 .fpu softvfp - 8675 HAL_TIM_OnePulse_Stop_IT: - 8676 .LFB84: -2188:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** /* Disable the TIM Capture/Compare 1 interrupt */ - 8677 .loc 1 2188 0 - 8678 .cfi_startproc - 8679 @ args = 0, pretend = 0, frame = 0 - 8680 @ frame_needed = 0, uses_anonymous_args = 0 - 8681 .LVL860: - 8682 0000 10B5 push {r4, lr} - 8683 .LCFI72: - 8684 .cfi_def_cfa_offset 8 - 8685 .cfi_offset 4, -8 - 8686 .cfi_offset 14, -4 - 8687 0002 0400 movs r4, r0 -2190:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** - 8688 .loc 1 2190 0 - 8689 0004 0268 ldr r2, [r0] - 8690 0006 D368 ldr r3, [r2, #12] - 8691 0008 0221 movs r1, #2 - 8692 .LVL861: - 8693 000a 8B43 bics r3, r1 - 8694 000c D360 str r3, [r2, #12] -2193:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** - 8695 .loc 1 2193 0 - 8696 000e 0268 ldr r2, [r0] - 8697 0010 D368 ldr r3, [r2, #12] - 8698 0012 0231 adds r1, r1, #2 - 8699 0014 8B43 bics r3, r1 - 8700 0016 D360 str r3, [r2, #12] -2200:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** TIM_CCxChannelCmd(htim->Instance, TIM_CHANNEL_2, TIM_CCx_DISABLE); - 8701 .loc 1 2200 0 - 8702 0018 0022 movs r2, #0 - 8703 001a 0021 movs r1, #0 - 8704 001c 0068 ldr r0, [r0] - 8705 .LVL862: - 8706 001e FFF7FEFF bl TIM_CCxChannelCmd - 8707 .LVL863: -2201:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** - 8708 .loc 1 2201 0 - 8709 0022 0022 movs r2, #0 - 8710 0024 0421 movs r1, #4 - 8711 0026 2068 ldr r0, [r4] - 8712 0028 FFF7FEFF bl TIM_CCxChannelCmd - 8713 .LVL864: -2203:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** { - 8714 .loc 1 2203 0 - 8715 002c 2368 ldr r3, [r4] - 8716 002e 144A ldr r2, .L589 - 8717 0030 9342 cmp r3, r2 - 8718 0032 17D0 beq .L586 - ARM GAS /tmp/cccrAAAm.s page 267 - - -2203:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** { - 8719 .loc 1 2203 0 is_stmt 0 discriminator 2 - 8720 0034 134A ldr r2, .L589+4 - 8721 0036 9342 cmp r3, r2 - 8722 0038 14D0 beq .L586 -2203:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** { - 8723 .loc 1 2203 0 discriminator 4 - 8724 003a 134A ldr r2, .L589+8 - 8725 003c 9342 cmp r3, r2 - 8726 003e 11D0 beq .L586 -2203:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** { - 8727 .loc 1 2203 0 discriminator 6 - 8728 0040 124A ldr r2, .L589+12 - 8729 0042 9342 cmp r3, r2 - 8730 0044 0ED0 beq .L586 - 8731 .L587: -2210:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** - 8732 .loc 1 2210 0 is_stmt 1 - 8733 0046 2368 ldr r3, [r4] - 8734 0048 196A ldr r1, [r3, #32] - 8735 004a 114A ldr r2, .L589+16 - 8736 004c 1142 tst r1, r2 - 8737 004e 07D1 bne .L588 -2210:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** - 8738 .loc 1 2210 0 is_stmt 0 discriminator 1 - 8739 0050 196A ldr r1, [r3, #32] - 8740 0052 104A ldr r2, .L589+20 - 8741 0054 1142 tst r1, r2 - 8742 0056 03D1 bne .L588 -2210:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** - 8743 .loc 1 2210 0 discriminator 2 - 8744 0058 1A68 ldr r2, [r3] - 8745 005a 0121 movs r1, #1 - 8746 005c 8A43 bics r2, r1 - 8747 005e 1A60 str r2, [r3] - 8748 .L588: -2214:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** - 8749 .loc 1 2214 0 is_stmt 1 - 8750 0060 0020 movs r0, #0 - 8751 @ sp needed - 8752 .LVL865: - 8753 0062 10BD pop {r4, pc} - 8754 .LVL866: - 8755 .L586: -2206:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** } - 8756 .loc 1 2206 0 - 8757 0064 196A ldr r1, [r3, #32] - 8758 0066 0A4A ldr r2, .L589+16 - 8759 0068 1142 tst r1, r2 - 8760 006a ECD1 bne .L587 -2206:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** } - 8761 .loc 1 2206 0 is_stmt 0 discriminator 1 - 8762 006c 196A ldr r1, [r3, #32] - 8763 006e 094A ldr r2, .L589+20 - 8764 0070 1142 tst r1, r2 - 8765 0072 E8D1 bne .L587 -2206:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** } - ARM GAS /tmp/cccrAAAm.s page 268 - - - 8766 .loc 1 2206 0 discriminator 2 - 8767 0074 5A6C ldr r2, [r3, #68] - 8768 0076 0849 ldr r1, .L589+24 - 8769 0078 0A40 ands r2, r1 - 8770 007a 5A64 str r2, [r3, #68] - 8771 007c E3E7 b .L587 - 8772 .L590: - 8773 007e C046 .align 2 - 8774 .L589: - 8775 0080 002C0140 .word 1073818624 - 8776 0084 00400140 .word 1073823744 - 8777 0088 00440140 .word 1073824768 - 8778 008c 00480140 .word 1073825792 - 8779 0090 11110000 .word 4369 - 8780 0094 44040000 .word 1092 - 8781 0098 FF7FFFFF .word -32769 - 8782 .cfi_endproc - 8783 .LFE84: - 8785 .section .text.HAL_TIM_Encoder_Start,"ax",%progbits - 8786 .align 1 - 8787 .global HAL_TIM_Encoder_Start - 8788 .syntax unified - 8789 .code 16 - 8790 .thumb_func - 8791 .fpu softvfp - 8793 HAL_TIM_Encoder_Start: - 8794 .LFB89: -2403:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** /* Check the parameters */ - 8795 .loc 1 2403 0 is_stmt 1 - 8796 .cfi_startproc - 8797 @ args = 0, pretend = 0, frame = 0 - 8798 @ frame_needed = 0, uses_anonymous_args = 0 - 8799 .LVL867: - 8800 0000 10B5 push {r4, lr} - 8801 .LCFI73: - 8802 .cfi_def_cfa_offset 8 - 8803 .cfi_offset 4, -8 - 8804 .cfi_offset 14, -4 - 8805 0002 0400 movs r4, r0 -2408:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** { - 8806 .loc 1 2408 0 - 8807 0004 0029 cmp r1, #0 - 8808 0006 0CD0 beq .L593 - 8809 0008 0429 cmp r1, #4 - 8810 000a 16D0 beq .L594 -2422:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** TIM_CCxChannelCmd(htim->Instance, TIM_CHANNEL_2, TIM_CCx_ENABLE); - 8811 .loc 1 2422 0 - 8812 000c 0122 movs r2, #1 - 8813 000e 0021 movs r1, #0 - 8814 .LVL868: - 8815 0010 0068 ldr r0, [r0] - 8816 .LVL869: - 8817 0012 FFF7FEFF bl TIM_CCxChannelCmd - 8818 .LVL870: -2423:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** break; - 8819 .loc 1 2423 0 - 8820 0016 0122 movs r2, #1 - ARM GAS /tmp/cccrAAAm.s page 269 - - - 8821 0018 0421 movs r1, #4 - 8822 001a 2068 ldr r0, [r4] - 8823 001c FFF7FEFF bl TIM_CCxChannelCmd - 8824 .LVL871: -2424:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** } - 8825 .loc 1 2424 0 - 8826 0020 04E0 b .L595 - 8827 .LVL872: - 8828 .L593: -2412:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** break; - 8829 .loc 1 2412 0 - 8830 0022 0122 movs r2, #1 - 8831 0024 0021 movs r1, #0 - 8832 .LVL873: - 8833 0026 0068 ldr r0, [r0] - 8834 .LVL874: - 8835 0028 FFF7FEFF bl TIM_CCxChannelCmd - 8836 .LVL875: - 8837 .L595: -2428:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** - 8838 .loc 1 2428 0 - 8839 002c 2268 ldr r2, [r4] - 8840 002e 1368 ldr r3, [r2] - 8841 0030 0121 movs r1, #1 - 8842 0032 0B43 orrs r3, r1 - 8843 0034 1360 str r3, [r2] -2432:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** - 8844 .loc 1 2432 0 - 8845 0036 0020 movs r0, #0 - 8846 @ sp needed - 8847 .LVL876: - 8848 0038 10BD pop {r4, pc} - 8849 .LVL877: - 8850 .L594: -2417:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** break; - 8851 .loc 1 2417 0 - 8852 003a 0122 movs r2, #1 - 8853 003c 0421 movs r1, #4 - 8854 .LVL878: - 8855 003e 0068 ldr r0, [r0] - 8856 .LVL879: - 8857 0040 FFF7FEFF bl TIM_CCxChannelCmd - 8858 .LVL880: -2418:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** } - 8859 .loc 1 2418 0 - 8860 0044 F2E7 b .L595 - 8861 .cfi_endproc - 8862 .LFE89: - 8864 .section .text.HAL_TIM_Encoder_Stop,"ax",%progbits - 8865 .align 1 - 8866 .global HAL_TIM_Encoder_Stop - 8867 .syntax unified - 8868 .code 16 - 8869 .thumb_func - 8870 .fpu softvfp - 8872 HAL_TIM_Encoder_Stop: - 8873 .LFB90: - ARM GAS /tmp/cccrAAAm.s page 270 - - -2445:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** /* Check the parameters */ - 8874 .loc 1 2445 0 - 8875 .cfi_startproc - 8876 @ args = 0, pretend = 0, frame = 0 - 8877 @ frame_needed = 0, uses_anonymous_args = 0 - 8878 .LVL881: - 8879 0000 10B5 push {r4, lr} - 8880 .LCFI74: - 8881 .cfi_def_cfa_offset 8 - 8882 .cfi_offset 4, -8 - 8883 .cfi_offset 14, -4 - 8884 0002 0400 movs r4, r0 -2451:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** { - 8885 .loc 1 2451 0 - 8886 0004 0029 cmp r1, #0 - 8887 0006 0CD0 beq .L599 - 8888 0008 0429 cmp r1, #4 - 8889 000a 1ED0 beq .L600 -2465:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** TIM_CCxChannelCmd(htim->Instance, TIM_CHANNEL_2, TIM_CCx_DISABLE); - 8890 .loc 1 2465 0 - 8891 000c 0022 movs r2, #0 - 8892 000e 0021 movs r1, #0 - 8893 .LVL882: - 8894 0010 0068 ldr r0, [r0] - 8895 .LVL883: - 8896 0012 FFF7FEFF bl TIM_CCxChannelCmd - 8897 .LVL884: -2466:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** break; - 8898 .loc 1 2466 0 - 8899 0016 0022 movs r2, #0 - 8900 0018 0421 movs r1, #4 - 8901 001a 2068 ldr r0, [r4] - 8902 001c FFF7FEFF bl TIM_CCxChannelCmd - 8903 .LVL885: -2467:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** } - 8904 .loc 1 2467 0 - 8905 0020 04E0 b .L601 - 8906 .LVL886: - 8907 .L599: -2455:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** break; - 8908 .loc 1 2455 0 - 8909 0022 0022 movs r2, #0 - 8910 0024 0021 movs r1, #0 - 8911 .LVL887: - 8912 0026 0068 ldr r0, [r0] - 8913 .LVL888: - 8914 0028 FFF7FEFF bl TIM_CCxChannelCmd - 8915 .LVL889: - 8916 .L601: -2472:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** - 8917 .loc 1 2472 0 - 8918 002c 2368 ldr r3, [r4] - 8919 002e 196A ldr r1, [r3, #32] - 8920 0030 094A ldr r2, .L604 - 8921 0032 1142 tst r1, r2 - 8922 0034 07D1 bne .L602 -2472:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** - ARM GAS /tmp/cccrAAAm.s page 271 - - - 8923 .loc 1 2472 0 is_stmt 0 discriminator 1 - 8924 0036 196A ldr r1, [r3, #32] - 8925 0038 084A ldr r2, .L604+4 - 8926 003a 1142 tst r1, r2 - 8927 003c 03D1 bne .L602 -2472:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** - 8928 .loc 1 2472 0 discriminator 2 - 8929 003e 1A68 ldr r2, [r3] - 8930 0040 0121 movs r1, #1 - 8931 0042 8A43 bics r2, r1 - 8932 0044 1A60 str r2, [r3] - 8933 .L602: -2476:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** - 8934 .loc 1 2476 0 is_stmt 1 - 8935 0046 0020 movs r0, #0 - 8936 @ sp needed - 8937 .LVL890: - 8938 0048 10BD pop {r4, pc} - 8939 .LVL891: - 8940 .L600: -2460:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** break; - 8941 .loc 1 2460 0 - 8942 004a 0022 movs r2, #0 - 8943 004c 0421 movs r1, #4 - 8944 .LVL892: - 8945 004e 0068 ldr r0, [r0] - 8946 .LVL893: - 8947 0050 FFF7FEFF bl TIM_CCxChannelCmd - 8948 .LVL894: -2461:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** } - 8949 .loc 1 2461 0 - 8950 0054 EAE7 b .L601 - 8951 .L605: - 8952 0056 C046 .align 2 - 8953 .L604: - 8954 0058 11110000 .word 4369 - 8955 005c 44040000 .word 1092 - 8956 .cfi_endproc - 8957 .LFE90: - 8959 .section .text.HAL_TIM_Encoder_Start_IT,"ax",%progbits - 8960 .align 1 - 8961 .global HAL_TIM_Encoder_Start_IT - 8962 .syntax unified - 8963 .code 16 - 8964 .thumb_func - 8965 .fpu softvfp - 8967 HAL_TIM_Encoder_Start_IT: - 8968 .LFB91: -2489:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** /* Check the parameters */ - 8969 .loc 1 2489 0 - 8970 .cfi_startproc - 8971 @ args = 0, pretend = 0, frame = 0 - 8972 @ frame_needed = 0, uses_anonymous_args = 0 - 8973 .LVL895: - 8974 0000 10B5 push {r4, lr} - 8975 .LCFI75: - 8976 .cfi_def_cfa_offset 8 - ARM GAS /tmp/cccrAAAm.s page 272 - - - 8977 .cfi_offset 4, -8 - 8978 .cfi_offset 14, -4 - 8979 0002 0400 movs r4, r0 -2495:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** { - 8980 .loc 1 2495 0 - 8981 0004 0029 cmp r1, #0 - 8982 0006 16D0 beq .L608 - 8983 0008 0429 cmp r1, #4 - 8984 000a 25D0 beq .L609 -2511:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** TIM_CCxChannelCmd(htim->Instance, TIM_CHANNEL_2, TIM_CCx_ENABLE); - 8985 .loc 1 2511 0 - 8986 000c 0122 movs r2, #1 - 8987 000e 0021 movs r1, #0 - 8988 .LVL896: - 8989 0010 0068 ldr r0, [r0] - 8990 .LVL897: - 8991 0012 FFF7FEFF bl TIM_CCxChannelCmd - 8992 .LVL898: -2512:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** __HAL_TIM_ENABLE_IT(htim, TIM_IT_CC1); - 8993 .loc 1 2512 0 - 8994 0016 0122 movs r2, #1 - 8995 0018 0421 movs r1, #4 - 8996 001a 2068 ldr r0, [r4] - 8997 001c FFF7FEFF bl TIM_CCxChannelCmd - 8998 .LVL899: -2513:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** __HAL_TIM_ENABLE_IT(htim, TIM_IT_CC2); - 8999 .loc 1 2513 0 - 9000 0020 2268 ldr r2, [r4] - 9001 0022 D368 ldr r3, [r2, #12] - 9002 0024 0221 movs r1, #2 - 9003 0026 0B43 orrs r3, r1 - 9004 0028 D360 str r3, [r2, #12] -2514:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** break; - 9005 .loc 1 2514 0 - 9006 002a 2268 ldr r2, [r4] - 9007 002c D368 ldr r3, [r2, #12] - 9008 002e 0231 adds r1, r1, #2 - 9009 0030 0B43 orrs r3, r1 - 9010 0032 D360 str r3, [r2, #12] -2515:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** } - 9011 .loc 1 2515 0 - 9012 0034 09E0 b .L610 - 9013 .LVL900: - 9014 .L608: -2499:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** __HAL_TIM_ENABLE_IT(htim, TIM_IT_CC1); - 9015 .loc 1 2499 0 - 9016 0036 0122 movs r2, #1 - 9017 0038 0021 movs r1, #0 - 9018 .LVL901: - 9019 003a 0068 ldr r0, [r0] - 9020 .LVL902: - 9021 003c FFF7FEFF bl TIM_CCxChannelCmd - 9022 .LVL903: -2500:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** break; - 9023 .loc 1 2500 0 - 9024 0040 2268 ldr r2, [r4] - 9025 0042 D368 ldr r3, [r2, #12] - ARM GAS /tmp/cccrAAAm.s page 273 - - - 9026 0044 0221 movs r1, #2 - 9027 0046 0B43 orrs r3, r1 - 9028 0048 D360 str r3, [r2, #12] - 9029 .L610: -2520:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** - 9030 .loc 1 2520 0 - 9031 004a 2268 ldr r2, [r4] - 9032 004c 1368 ldr r3, [r2] - 9033 004e 0121 movs r1, #1 - 9034 0050 0B43 orrs r3, r1 - 9035 0052 1360 str r3, [r2] -2524:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** - 9036 .loc 1 2524 0 - 9037 0054 0020 movs r0, #0 - 9038 @ sp needed - 9039 .LVL904: - 9040 0056 10BD pop {r4, pc} - 9041 .LVL905: - 9042 .L609: -2505:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** __HAL_TIM_ENABLE_IT(htim, TIM_IT_CC2); - 9043 .loc 1 2505 0 - 9044 0058 0122 movs r2, #1 - 9045 005a 0421 movs r1, #4 - 9046 .LVL906: - 9047 005c 0068 ldr r0, [r0] - 9048 .LVL907: - 9049 005e FFF7FEFF bl TIM_CCxChannelCmd - 9050 .LVL908: -2506:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** break; - 9051 .loc 1 2506 0 - 9052 0062 2268 ldr r2, [r4] - 9053 0064 D368 ldr r3, [r2, #12] - 9054 0066 0421 movs r1, #4 - 9055 0068 0B43 orrs r3, r1 - 9056 006a D360 str r3, [r2, #12] -2507:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** } - 9057 .loc 1 2507 0 - 9058 006c EDE7 b .L610 - 9059 .cfi_endproc - 9060 .LFE91: - 9062 .section .text.HAL_TIM_Encoder_Stop_IT,"ax",%progbits - 9063 .align 1 - 9064 .global HAL_TIM_Encoder_Stop_IT - 9065 .syntax unified - 9066 .code 16 - 9067 .thumb_func - 9068 .fpu softvfp - 9070 HAL_TIM_Encoder_Stop_IT: - 9071 .LFB92: -2537:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** /* Check the parameters */ - 9072 .loc 1 2537 0 - 9073 .cfi_startproc - 9074 @ args = 0, pretend = 0, frame = 0 - 9075 @ frame_needed = 0, uses_anonymous_args = 0 - 9076 .LVL909: - 9077 0000 10B5 push {r4, lr} - 9078 .LCFI76: - ARM GAS /tmp/cccrAAAm.s page 274 - - - 9079 .cfi_def_cfa_offset 8 - 9080 .cfi_offset 4, -8 - 9081 .cfi_offset 14, -4 - 9082 0002 0400 movs r4, r0 -2543:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** { - 9083 .loc 1 2543 0 - 9084 0004 0029 cmp r1, #0 - 9085 0006 27D0 beq .L617 -2550:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** { - 9086 .loc 1 2550 0 - 9087 0008 0429 cmp r1, #4 - 9088 000a 2FD0 beq .L618 -2559:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** TIM_CCxChannelCmd(htim->Instance, TIM_CHANNEL_2, TIM_CCx_DISABLE); - 9089 .loc 1 2559 0 - 9090 000c 0022 movs r2, #0 - 9091 000e 0021 movs r1, #0 - 9092 .LVL910: - 9093 0010 0068 ldr r0, [r0] - 9094 .LVL911: - 9095 0012 FFF7FEFF bl TIM_CCxChannelCmd - 9096 .LVL912: -2560:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** - 9097 .loc 1 2560 0 - 9098 0016 0022 movs r2, #0 - 9099 0018 0421 movs r1, #4 - 9100 001a 2068 ldr r0, [r4] - 9101 001c FFF7FEFF bl TIM_CCxChannelCmd - 9102 .LVL913: -2563:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** __HAL_TIM_DISABLE_IT(htim, TIM_IT_CC2); - 9103 .loc 1 2563 0 - 9104 0020 2268 ldr r2, [r4] - 9105 0022 D368 ldr r3, [r2, #12] - 9106 0024 0221 movs r1, #2 - 9107 0026 8B43 bics r3, r1 - 9108 0028 D360 str r3, [r2, #12] -2564:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** } - 9109 .loc 1 2564 0 - 9110 002a 2268 ldr r2, [r4] - 9111 002c D368 ldr r3, [r2, #12] - 9112 002e 0231 adds r1, r1, #2 - 9113 0030 8B43 bics r3, r1 - 9114 0032 D360 str r3, [r2, #12] - 9115 .L614: -2568:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** - 9116 .loc 1 2568 0 - 9117 0034 2368 ldr r3, [r4] - 9118 0036 196A ldr r1, [r3, #32] - 9119 0038 114A ldr r2, .L619 - 9120 003a 1142 tst r1, r2 - 9121 003c 07D1 bne .L616 -2568:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** - 9122 .loc 1 2568 0 is_stmt 0 discriminator 1 - 9123 003e 196A ldr r1, [r3, #32] - 9124 0040 104A ldr r2, .L619+4 - 9125 0042 1142 tst r1, r2 - 9126 0044 03D1 bne .L616 -2568:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** - ARM GAS /tmp/cccrAAAm.s page 275 - - - 9127 .loc 1 2568 0 discriminator 2 - 9128 0046 1A68 ldr r2, [r3] - 9129 0048 0121 movs r1, #1 - 9130 004a 8A43 bics r2, r1 - 9131 004c 1A60 str r2, [r3] - 9132 .L616: -2571:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** - 9133 .loc 1 2571 0 is_stmt 1 - 9134 004e 3D23 movs r3, #61 - 9135 0050 0122 movs r2, #1 - 9136 0052 E254 strb r2, [r4, r3] -2575:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** - 9137 .loc 1 2575 0 - 9138 0054 0020 movs r0, #0 - 9139 @ sp needed - 9140 .LVL914: - 9141 0056 10BD pop {r4, pc} - 9142 .LVL915: - 9143 .L617: -2545:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** - 9144 .loc 1 2545 0 - 9145 0058 0022 movs r2, #0 - 9146 005a 0068 ldr r0, [r0] - 9147 .LVL916: - 9148 005c FFF7FEFF bl TIM_CCxChannelCmd - 9149 .LVL917: -2548:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** } - 9150 .loc 1 2548 0 - 9151 0060 2268 ldr r2, [r4] - 9152 0062 D368 ldr r3, [r2, #12] - 9153 0064 0221 movs r1, #2 - 9154 0066 8B43 bics r3, r1 - 9155 0068 D360 str r3, [r2, #12] - 9156 006a E3E7 b .L614 - 9157 .LVL918: - 9158 .L618: -2552:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** - 9159 .loc 1 2552 0 - 9160 006c 0022 movs r2, #0 - 9161 006e 0068 ldr r0, [r0] - 9162 .LVL919: - 9163 0070 FFF7FEFF bl TIM_CCxChannelCmd - 9164 .LVL920: -2555:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** } - 9165 .loc 1 2555 0 - 9166 0074 2268 ldr r2, [r4] - 9167 0076 D368 ldr r3, [r2, #12] - 9168 0078 0421 movs r1, #4 - 9169 007a 8B43 bics r3, r1 - 9170 007c D360 str r3, [r2, #12] - 9171 007e D9E7 b .L614 - 9172 .L620: - 9173 .align 2 - 9174 .L619: - 9175 0080 11110000 .word 4369 - 9176 0084 44040000 .word 1092 - 9177 .cfi_endproc - ARM GAS /tmp/cccrAAAm.s page 276 - - - 9178 .LFE92: - 9180 .section .text.HAL_TIM_Encoder_Start_DMA,"ax",%progbits - 9181 .align 1 - 9182 .global HAL_TIM_Encoder_Start_DMA - 9183 .syntax unified - 9184 .code 16 - 9185 .thumb_func - 9186 .fpu softvfp - 9188 HAL_TIM_Encoder_Start_DMA: - 9189 .LFB93: -2591:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** /* Check the parameters */ - 9190 .loc 1 2591 0 - 9191 .cfi_startproc - 9192 @ args = 4, pretend = 0, frame = 0 - 9193 @ frame_needed = 0, uses_anonymous_args = 0 - 9194 .LVL921: - 9195 0000 F0B5 push {r4, r5, r6, r7, lr} - 9196 .LCFI77: - 9197 .cfi_def_cfa_offset 20 - 9198 .cfi_offset 4, -20 - 9199 .cfi_offset 5, -16 - 9200 .cfi_offset 6, -12 - 9201 .cfi_offset 7, -8 - 9202 .cfi_offset 14, -4 - 9203 0002 C646 mov lr, r8 - 9204 0004 00B5 push {lr} - 9205 .LCFI78: - 9206 .cfi_def_cfa_offset 24 - 9207 .cfi_offset 8, -24 - 9208 0006 0400 movs r4, r0 - 9209 0008 1D00 movs r5, r3 - 9210 000a 06AB add r3, sp, #24 - 9211 .LVL922: - 9212 000c 1E88 ldrh r6, [r3] -2595:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** { - 9213 .loc 1 2595 0 - 9214 000e 3D23 movs r3, #61 - 9215 .LVL923: - 9216 0010 C35C ldrb r3, [r0, r3] - 9217 0012 022B cmp r3, #2 - 9218 0014 00D1 bne .LCB8650 - 9219 0016 8AE0 b .L629 @long jump - 9220 .LCB8650: -2599:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** { - 9221 .loc 1 2599 0 - 9222 0018 3D23 movs r3, #61 - 9223 001a C35C ldrb r3, [r0, r3] - 9224 001c 012B cmp r3, #1 - 9225 001e 07D0 beq .L633 - 9226 .LVL924: - 9227 .L623: -2611:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** { - 9228 .loc 1 2611 0 - 9229 0020 0429 cmp r1, #4 - 9230 0022 2FD0 beq .L626 - 9231 0024 1829 cmp r1, #24 - 9232 0026 4CD0 beq .L627 - ARM GAS /tmp/cccrAAAm.s page 277 - - - 9233 0028 0029 cmp r1, #0 - 9234 002a 0DD0 beq .L634 -2694:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** } - 9235 .loc 1 2694 0 - 9236 002c 0020 movs r0, #0 - 9237 002e 7FE0 b .L622 - 9238 .LVL925: - 9239 .L633: -2601:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** { - 9240 .loc 1 2601 0 - 9241 0030 002A cmp r2, #0 - 9242 0032 05D0 beq .L624 -2601:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** { - 9243 .loc 1 2601 0 is_stmt 0 discriminator 2 - 9244 0034 002D cmp r5, #0 - 9245 0036 03D0 beq .L624 - 9246 .L625: -2607:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** } - 9247 .loc 1 2607 0 is_stmt 1 - 9248 0038 3D23 movs r3, #61 - 9249 003a 0220 movs r0, #2 - 9250 .LVL926: - 9251 003c E054 strb r0, [r4, r3] - 9252 003e EFE7 b .L623 - 9253 .LVL927: - 9254 .L624: -2601:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** { - 9255 .loc 1 2601 0 discriminator 3 - 9256 0040 002E cmp r6, #0 - 9257 0042 F9D0 beq .L625 -2603:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** } - 9258 .loc 1 2603 0 - 9259 0044 0120 movs r0, #1 - 9260 .LVL928: - 9261 0046 73E0 b .L622 - 9262 .L634: -2616:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** - 9263 .loc 1 2616 0 - 9264 0048 636A ldr r3, [r4, #36] - 9265 004a 3B49 ldr r1, .L635 - 9266 .LVL929: - 9267 004c 9962 str r1, [r3, #40] -2619:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** - 9268 .loc 1 2619 0 - 9269 004e 636A ldr r3, [r4, #36] - 9270 0050 3A49 ldr r1, .L635+4 - 9271 0052 1963 str r1, [r3, #48] -2622:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** - 9272 .loc 1 2622 0 - 9273 0054 2168 ldr r1, [r4] - 9274 0056 3431 adds r1, r1, #52 - 9275 0058 3300 movs r3, r6 - 9276 005a 606A ldr r0, [r4, #36] - 9277 005c FFF7FEFF bl HAL_DMA_Start_IT - 9278 .LVL930: -2625:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** - 9279 .loc 1 2625 0 - ARM GAS /tmp/cccrAAAm.s page 278 - - - 9280 0060 2268 ldr r2, [r4] - 9281 0062 D168 ldr r1, [r2, #12] - 9282 0064 8023 movs r3, #128 - 9283 0066 9B00 lsls r3, r3, #2 - 9284 0068 0B43 orrs r3, r1 - 9285 006a D360 str r3, [r2, #12] -2628:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** - 9286 .loc 1 2628 0 - 9287 006c 2268 ldr r2, [r4] - 9288 006e 1368 ldr r3, [r2] - 9289 0070 0121 movs r1, #1 - 9290 0072 0B43 orrs r3, r1 - 9291 0074 1360 str r3, [r2] -2631:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** } - 9292 .loc 1 2631 0 - 9293 0076 2068 ldr r0, [r4] - 9294 0078 0122 movs r2, #1 - 9295 007a 0021 movs r1, #0 - 9296 007c FFF7FEFF bl TIM_CCxChannelCmd - 9297 .LVL931: -2694:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** } - 9298 .loc 1 2694 0 - 9299 0080 0020 movs r0, #0 -2633:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** - 9300 .loc 1 2633 0 - 9301 0082 55E0 b .L622 - 9302 .LVL932: - 9303 .L626: -2638:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** - 9304 .loc 1 2638 0 - 9305 0084 A36A ldr r3, [r4, #40] - 9306 0086 2C4A ldr r2, .L635 - 9307 .LVL933: - 9308 0088 9A62 str r2, [r3, #40] -2641:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** /* Enable the DMA channel */ - 9309 .loc 1 2641 0 - 9310 008a A36A ldr r3, [r4, #40] - 9311 008c 2B4A ldr r2, .L635+4 - 9312 008e 1A63 str r2, [r3, #48] -2643:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** - 9313 .loc 1 2643 0 - 9314 0090 2168 ldr r1, [r4] - 9315 .LVL934: - 9316 0092 3831 adds r1, r1, #56 - 9317 0094 3300 movs r3, r6 - 9318 0096 2A00 movs r2, r5 - 9319 0098 A06A ldr r0, [r4, #40] - 9320 009a FFF7FEFF bl HAL_DMA_Start_IT - 9321 .LVL935: -2646:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** - 9322 .loc 1 2646 0 - 9323 009e 2268 ldr r2, [r4] - 9324 00a0 D168 ldr r1, [r2, #12] - 9325 00a2 8023 movs r3, #128 - 9326 00a4 DB00 lsls r3, r3, #3 - 9327 00a6 0B43 orrs r3, r1 - 9328 00a8 D360 str r3, [r2, #12] - ARM GAS /tmp/cccrAAAm.s page 279 - - -2649:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** - 9329 .loc 1 2649 0 - 9330 00aa 2268 ldr r2, [r4] - 9331 00ac 1368 ldr r3, [r2] - 9332 00ae 0121 movs r1, #1 - 9333 00b0 0B43 orrs r3, r1 - 9334 00b2 1360 str r3, [r2] -2652:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** } - 9335 .loc 1 2652 0 - 9336 00b4 2068 ldr r0, [r4] - 9337 00b6 0122 movs r2, #1 - 9338 00b8 0331 adds r1, r1, #3 - 9339 00ba FFF7FEFF bl TIM_CCxChannelCmd - 9340 .LVL936: -2694:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** } - 9341 .loc 1 2694 0 - 9342 00be 0020 movs r0, #0 -2654:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** - 9343 .loc 1 2654 0 - 9344 00c0 36E0 b .L622 - 9345 .LVL937: - 9346 .L627: -2659:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** - 9347 .loc 1 2659 0 - 9348 00c2 636A ldr r3, [r4, #36] - 9349 00c4 1C49 ldr r1, .L635 - 9350 .LVL938: - 9351 00c6 8846 mov r8, r1 - 9352 00c8 9962 str r1, [r3, #40] -2662:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** - 9353 .loc 1 2662 0 - 9354 00ca 636A ldr r3, [r4, #36] - 9355 00cc 1B4F ldr r7, .L635+4 - 9356 00ce 1F63 str r7, [r3, #48] -2665:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** - 9357 .loc 1 2665 0 - 9358 00d0 2168 ldr r1, [r4] - 9359 00d2 3431 adds r1, r1, #52 - 9360 00d4 3300 movs r3, r6 - 9361 00d6 606A ldr r0, [r4, #36] - 9362 00d8 FFF7FEFF bl HAL_DMA_Start_IT - 9363 .LVL939: -2668:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** - 9364 .loc 1 2668 0 - 9365 00dc A36A ldr r3, [r4, #40] - 9366 00de 4246 mov r2, r8 - 9367 00e0 9A62 str r2, [r3, #40] -2671:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** - 9368 .loc 1 2671 0 - 9369 00e2 A36A ldr r3, [r4, #40] - 9370 00e4 1F63 str r7, [r3, #48] -2674:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** - 9371 .loc 1 2674 0 - 9372 00e6 2168 ldr r1, [r4] - 9373 00e8 3831 adds r1, r1, #56 - 9374 00ea 3300 movs r3, r6 - 9375 00ec 2A00 movs r2, r5 - ARM GAS /tmp/cccrAAAm.s page 280 - - - 9376 00ee A06A ldr r0, [r4, #40] - 9377 00f0 FFF7FEFF bl HAL_DMA_Start_IT - 9378 .LVL940: -2677:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** - 9379 .loc 1 2677 0 - 9380 00f4 2268 ldr r2, [r4] - 9381 00f6 1368 ldr r3, [r2] - 9382 00f8 0121 movs r1, #1 - 9383 00fa 0B43 orrs r3, r1 - 9384 00fc 1360 str r3, [r2] -2680:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** TIM_CCxChannelCmd(htim->Instance, TIM_CHANNEL_2, TIM_CCx_ENABLE); - 9385 .loc 1 2680 0 - 9386 00fe 0122 movs r2, #1 - 9387 0100 0021 movs r1, #0 - 9388 0102 2068 ldr r0, [r4] - 9389 0104 FFF7FEFF bl TIM_CCxChannelCmd - 9390 .LVL941: -2681:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** - 9391 .loc 1 2681 0 - 9392 0108 0122 movs r2, #1 - 9393 010a 0421 movs r1, #4 - 9394 010c 2068 ldr r0, [r4] - 9395 010e FFF7FEFF bl TIM_CCxChannelCmd - 9396 .LVL942: -2684:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** /* Enable the TIM Input Capture DMA request */ - 9397 .loc 1 2684 0 - 9398 0112 2268 ldr r2, [r4] - 9399 0114 D168 ldr r1, [r2, #12] - 9400 0116 8023 movs r3, #128 - 9401 0118 9B00 lsls r3, r3, #2 - 9402 011a 0B43 orrs r3, r1 - 9403 011c D360 str r3, [r2, #12] -2686:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** } - 9404 .loc 1 2686 0 - 9405 011e 2268 ldr r2, [r4] - 9406 0120 D168 ldr r1, [r2, #12] - 9407 0122 8023 movs r3, #128 - 9408 0124 DB00 lsls r3, r3, #3 - 9409 0126 0B43 orrs r3, r1 - 9410 0128 D360 str r3, [r2, #12] -2694:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** } - 9411 .loc 1 2694 0 - 9412 012a 0020 movs r0, #0 -2688:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** - 9413 .loc 1 2688 0 - 9414 012c 00E0 b .L622 - 9415 .LVL943: - 9416 .L629: -2597:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** } - 9417 .loc 1 2597 0 - 9418 012e 0220 movs r0, #2 - 9419 .LVL944: - 9420 .L622: -2695:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** - 9421 .loc 1 2695 0 - 9422 @ sp needed - 9423 .LVL945: - ARM GAS /tmp/cccrAAAm.s page 281 - - - 9424 .LVL946: - 9425 0130 04BC pop {r2} - 9426 0132 9046 mov r8, r2 - 9427 0134 F0BD pop {r4, r5, r6, r7, pc} - 9428 .L636: - 9429 0136 C046 .align 2 - 9430 .L635: - 9431 0138 00000000 .word TIM_DMACaptureCplt - 9432 013c 00000000 .word TIM_DMAError - 9433 .cfi_endproc - 9434 .LFE93: - 9436 .section .text.HAL_TIM_Encoder_Stop_DMA,"ax",%progbits - 9437 .align 1 - 9438 .global HAL_TIM_Encoder_Stop_DMA - 9439 .syntax unified - 9440 .code 16 - 9441 .thumb_func - 9442 .fpu softvfp - 9444 HAL_TIM_Encoder_Stop_DMA: - 9445 .LFB94: -2708:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** /* Check the parameters */ - 9446 .loc 1 2708 0 - 9447 .cfi_startproc - 9448 @ args = 0, pretend = 0, frame = 0 - 9449 @ frame_needed = 0, uses_anonymous_args = 0 - 9450 .LVL947: - 9451 0000 10B5 push {r4, lr} - 9452 .LCFI79: - 9453 .cfi_def_cfa_offset 8 - 9454 .cfi_offset 4, -8 - 9455 .cfi_offset 14, -4 - 9456 0002 0400 movs r4, r0 -2714:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** { - 9457 .loc 1 2714 0 - 9458 0004 0029 cmp r1, #0 - 9459 0006 27D0 beq .L642 -2721:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** { - 9460 .loc 1 2721 0 - 9461 0008 0429 cmp r1, #4 - 9462 000a 2FD0 beq .L643 -2730:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** TIM_CCxChannelCmd(htim->Instance, TIM_CHANNEL_2, TIM_CCx_DISABLE); - 9463 .loc 1 2730 0 - 9464 000c 0022 movs r2, #0 - 9465 000e 0021 movs r1, #0 - 9466 .LVL948: - 9467 0010 0068 ldr r0, [r0] - 9468 .LVL949: - 9469 0012 FFF7FEFF bl TIM_CCxChannelCmd - 9470 .LVL950: -2731:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** - 9471 .loc 1 2731 0 - 9472 0016 0022 movs r2, #0 - 9473 0018 0421 movs r1, #4 - 9474 001a 2068 ldr r0, [r4] - 9475 001c FFF7FEFF bl TIM_CCxChannelCmd - 9476 .LVL951: -2734:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** __HAL_TIM_DISABLE_DMA(htim, TIM_DMA_CC2); - ARM GAS /tmp/cccrAAAm.s page 282 - - - 9477 .loc 1 2734 0 - 9478 0020 2268 ldr r2, [r4] - 9479 0022 D368 ldr r3, [r2, #12] - 9480 0024 1649 ldr r1, .L644 - 9481 0026 0B40 ands r3, r1 - 9482 0028 D360 str r3, [r2, #12] -2735:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** } - 9483 .loc 1 2735 0 - 9484 002a 2268 ldr r2, [r4] - 9485 002c D368 ldr r3, [r2, #12] - 9486 002e 1549 ldr r1, .L644+4 - 9487 0030 0B40 ands r3, r1 - 9488 0032 D360 str r3, [r2, #12] - 9489 .L639: -2739:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** - 9490 .loc 1 2739 0 - 9491 0034 2368 ldr r3, [r4] - 9492 0036 196A ldr r1, [r3, #32] - 9493 0038 134A ldr r2, .L644+8 - 9494 003a 1142 tst r1, r2 - 9495 003c 07D1 bne .L641 -2739:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** - 9496 .loc 1 2739 0 is_stmt 0 discriminator 1 - 9497 003e 196A ldr r1, [r3, #32] - 9498 0040 124A ldr r2, .L644+12 - 9499 0042 1142 tst r1, r2 - 9500 0044 03D1 bne .L641 -2739:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** - 9501 .loc 1 2739 0 discriminator 2 - 9502 0046 1A68 ldr r2, [r3] - 9503 0048 0121 movs r1, #1 - 9504 004a 8A43 bics r2, r1 - 9505 004c 1A60 str r2, [r3] - 9506 .L641: -2742:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** - 9507 .loc 1 2742 0 is_stmt 1 - 9508 004e 3D23 movs r3, #61 - 9509 0050 0122 movs r2, #1 - 9510 0052 E254 strb r2, [r4, r3] -2746:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** - 9511 .loc 1 2746 0 - 9512 0054 0020 movs r0, #0 - 9513 @ sp needed - 9514 .LVL952: - 9515 0056 10BD pop {r4, pc} - 9516 .LVL953: - 9517 .L642: -2716:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** - 9518 .loc 1 2716 0 - 9519 0058 0022 movs r2, #0 - 9520 005a 0068 ldr r0, [r0] - 9521 .LVL954: - 9522 005c FFF7FEFF bl TIM_CCxChannelCmd - 9523 .LVL955: -2719:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** } - 9524 .loc 1 2719 0 - 9525 0060 2268 ldr r2, [r4] - ARM GAS /tmp/cccrAAAm.s page 283 - - - 9526 0062 D368 ldr r3, [r2, #12] - 9527 0064 0649 ldr r1, .L644 - 9528 0066 0B40 ands r3, r1 - 9529 0068 D360 str r3, [r2, #12] - 9530 006a E3E7 b .L639 - 9531 .LVL956: - 9532 .L643: -2723:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** - 9533 .loc 1 2723 0 - 9534 006c 0022 movs r2, #0 - 9535 006e 0068 ldr r0, [r0] - 9536 .LVL957: - 9537 0070 FFF7FEFF bl TIM_CCxChannelCmd - 9538 .LVL958: -2726:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c **** } - 9539 .loc 1 2726 0 - 9540 0074 2268 ldr r2, [r4] - 9541 0076 D368 ldr r3, [r2, #12] - 9542 0078 0249 ldr r1, .L644+4 - 9543 007a 0B40 ands r3, r1 - 9544 007c D360 str r3, [r2, #12] - 9545 007e D9E7 b .L639 - 9546 .L645: - 9547 .align 2 - 9548 .L644: - 9549 0080 FFFDFFFF .word -513 - 9550 0084 FFFBFFFF .word -1025 - 9551 0088 11110000 .word 4369 - 9552 008c 44040000 .word 1092 - 9553 .cfi_endproc - 9554 .LFE94: - 9556 .text - 9557 .Letext0: - 9558 .file 2 "/home/janhenrik/programme/gcc-arm-none-eabi-7-2018-q2-update/arm-none-eabi/include/machin - 9559 .file 3 "/home/janhenrik/programme/gcc-arm-none-eabi-7-2018-q2-update/arm-none-eabi/include/sys/_s - 9560 .file 4 "Drivers/CMSIS/Device/ST/STM32F0xx/Include/system_stm32f0xx.h" - 9561 .file 5 "Drivers/CMSIS/Device/ST/STM32F0xx/Include/stm32f072xb.h" - 9562 .file 6 "/home/janhenrik/programme/gcc-arm-none-eabi-7-2018-q2-update/arm-none-eabi/include/sys/lo - 9563 .file 7 "/home/janhenrik/programme/gcc-arm-none-eabi-7-2018-q2-update/arm-none-eabi/include/sys/_t - 9564 .file 8 "/home/janhenrik/programme/gcc-arm-none-eabi-7-2018-q2-update/lib/gcc/arm-none-eabi/7.3.1/ - 9565 .file 9 "/home/janhenrik/programme/gcc-arm-none-eabi-7-2018-q2-update/arm-none-eabi/include/sys/re - 9566 .file 10 "Drivers/CMSIS/Device/ST/STM32F0xx/Include/stm32f0xx.h" - 9567 .file 11 "Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_def.h" - 9568 .file 12 "Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_dma.h" - 9569 .file 13 "Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_tim.h" - 9570 .file 14 "Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_tim_ex.h" - ARM GAS /tmp/cccrAAAm.s page 284 - - -DEFINED SYMBOLS - *ABS*:0000000000000000 stm32f0xx_hal_tim.c - /tmp/cccrAAAm.s:16 .text.TIM_OC1_SetConfig:0000000000000000 $t - /tmp/cccrAAAm.s:22 .text.TIM_OC1_SetConfig:0000000000000000 TIM_OC1_SetConfig - /tmp/cccrAAAm.s:145 .text.TIM_OC1_SetConfig:0000000000000074 $d - /tmp/cccrAAAm.s:154 .text.TIM_OC3_SetConfig:0000000000000000 $t - /tmp/cccrAAAm.s:160 .text.TIM_OC3_SetConfig:0000000000000000 TIM_OC3_SetConfig - /tmp/cccrAAAm.s:277 .text.TIM_OC3_SetConfig:000000000000006c $d - /tmp/cccrAAAm.s:290 .text.TIM_OC4_SetConfig:0000000000000000 $t - /tmp/cccrAAAm.s:296 .text.TIM_OC4_SetConfig:0000000000000000 TIM_OC4_SetConfig - /tmp/cccrAAAm.s:386 .text.TIM_OC4_SetConfig:0000000000000054 $d - /tmp/cccrAAAm.s:398 .text.TIM_TI1_ConfigInputStage:0000000000000000 $t - /tmp/cccrAAAm.s:404 .text.TIM_TI1_ConfigInputStage:0000000000000000 TIM_TI1_ConfigInputStage - /tmp/cccrAAAm.s:456 .text.TIM_TI2_SetConfig:0000000000000000 $t - /tmp/cccrAAAm.s:462 .text.TIM_TI2_SetConfig:0000000000000000 TIM_TI2_SetConfig - /tmp/cccrAAAm.s:527 .text.TIM_TI2_SetConfig:0000000000000030 $d - /tmp/cccrAAAm.s:533 .text.TIM_TI2_ConfigInputStage:0000000000000000 $t - /tmp/cccrAAAm.s:539 .text.TIM_TI2_ConfigInputStage:0000000000000000 TIM_TI2_ConfigInputStage - /tmp/cccrAAAm.s:592 .text.TIM_TI2_ConfigInputStage:0000000000000024 $d - /tmp/cccrAAAm.s:597 .text.TIM_TI3_SetConfig:0000000000000000 $t - /tmp/cccrAAAm.s:603 .text.TIM_TI3_SetConfig:0000000000000000 TIM_TI3_SetConfig - /tmp/cccrAAAm.s:669 .text.TIM_TI3_SetConfig:0000000000000034 $d - /tmp/cccrAAAm.s:675 .text.TIM_TI4_SetConfig:0000000000000000 $t - /tmp/cccrAAAm.s:681 .text.TIM_TI4_SetConfig:0000000000000000 TIM_TI4_SetConfig - /tmp/cccrAAAm.s:748 .text.TIM_TI4_SetConfig:0000000000000034 $d - /tmp/cccrAAAm.s:756 .text.TIM_ITRx_SetConfig:0000000000000000 $t - /tmp/cccrAAAm.s:762 .text.TIM_ITRx_SetConfig:0000000000000000 TIM_ITRx_SetConfig - /tmp/cccrAAAm.s:792 .text.HAL_TIM_Base_MspInit:0000000000000000 $t - /tmp/cccrAAAm.s:799 .text.HAL_TIM_Base_MspInit:0000000000000000 HAL_TIM_Base_MspInit - /tmp/cccrAAAm.s:814 .text.HAL_TIM_Base_MspDeInit:0000000000000000 $t - /tmp/cccrAAAm.s:821 .text.HAL_TIM_Base_MspDeInit:0000000000000000 HAL_TIM_Base_MspDeInit - /tmp/cccrAAAm.s:836 .text.HAL_TIM_Base_DeInit:0000000000000000 $t - /tmp/cccrAAAm.s:843 .text.HAL_TIM_Base_DeInit:0000000000000000 HAL_TIM_Base_DeInit - /tmp/cccrAAAm.s:897 .text.HAL_TIM_Base_DeInit:0000000000000038 $d - /tmp/cccrAAAm.s:903 .text.HAL_TIM_Base_Start:0000000000000000 $t - /tmp/cccrAAAm.s:910 .text.HAL_TIM_Base_Start:0000000000000000 HAL_TIM_Base_Start - /tmp/cccrAAAm.s:943 .text.HAL_TIM_Base_Stop:0000000000000000 $t - /tmp/cccrAAAm.s:950 .text.HAL_TIM_Base_Stop:0000000000000000 HAL_TIM_Base_Stop - /tmp/cccrAAAm.s:991 .text.HAL_TIM_Base_Stop:000000000000002c $d - /tmp/cccrAAAm.s:997 .text.HAL_TIM_Base_Start_IT:0000000000000000 $t - /tmp/cccrAAAm.s:1004 .text.HAL_TIM_Base_Start_IT:0000000000000000 HAL_TIM_Base_Start_IT - /tmp/cccrAAAm.s:1032 .text.HAL_TIM_Base_Stop_IT:0000000000000000 $t - /tmp/cccrAAAm.s:1039 .text.HAL_TIM_Base_Stop_IT:0000000000000000 HAL_TIM_Base_Stop_IT - /tmp/cccrAAAm.s:1078 .text.HAL_TIM_Base_Stop_IT:0000000000000028 $d - /tmp/cccrAAAm.s:1084 .text.HAL_TIM_Base_Start_DMA:0000000000000000 $t - /tmp/cccrAAAm.s:1091 .text.HAL_TIM_Base_Start_DMA:0000000000000000 HAL_TIM_Base_Start_DMA - /tmp/cccrAAAm.s:1176 .text.HAL_TIM_Base_Start_DMA:000000000000005c $d - /tmp/cccrAAAm.s:2879 .text.TIM_DMAPeriodElapsedCplt:0000000000000000 TIM_DMAPeriodElapsedCplt - /tmp/cccrAAAm.s:3488 .text.TIM_DMAError:0000000000000000 TIM_DMAError - /tmp/cccrAAAm.s:1182 .text.HAL_TIM_Base_Stop_DMA:0000000000000000 $t - /tmp/cccrAAAm.s:1189 .text.HAL_TIM_Base_Stop_DMA:0000000000000000 HAL_TIM_Base_Stop_DMA - /tmp/cccrAAAm.s:1232 .text.HAL_TIM_Base_Stop_DMA:0000000000000030 $d - /tmp/cccrAAAm.s:1239 .text.HAL_TIM_OC_MspInit:0000000000000000 $t - /tmp/cccrAAAm.s:1246 .text.HAL_TIM_OC_MspInit:0000000000000000 HAL_TIM_OC_MspInit - /tmp/cccrAAAm.s:1261 .text.HAL_TIM_OC_MspDeInit:0000000000000000 $t - /tmp/cccrAAAm.s:1268 .text.HAL_TIM_OC_MspDeInit:0000000000000000 HAL_TIM_OC_MspDeInit - /tmp/cccrAAAm.s:1283 .text.HAL_TIM_OC_DeInit:0000000000000000 $t - ARM GAS /tmp/cccrAAAm.s page 285 - - - /tmp/cccrAAAm.s:1290 .text.HAL_TIM_OC_DeInit:0000000000000000 HAL_TIM_OC_DeInit - /tmp/cccrAAAm.s:1344 .text.HAL_TIM_OC_DeInit:0000000000000038 $d - /tmp/cccrAAAm.s:1350 .text.HAL_TIM_PWM_MspInit:0000000000000000 $t - /tmp/cccrAAAm.s:1357 .text.HAL_TIM_PWM_MspInit:0000000000000000 HAL_TIM_PWM_MspInit - /tmp/cccrAAAm.s:1372 .text.HAL_TIM_PWM_MspDeInit:0000000000000000 $t - /tmp/cccrAAAm.s:1379 .text.HAL_TIM_PWM_MspDeInit:0000000000000000 HAL_TIM_PWM_MspDeInit - /tmp/cccrAAAm.s:1394 .text.HAL_TIM_PWM_DeInit:0000000000000000 $t - /tmp/cccrAAAm.s:1401 .text.HAL_TIM_PWM_DeInit:0000000000000000 HAL_TIM_PWM_DeInit - /tmp/cccrAAAm.s:1455 .text.HAL_TIM_PWM_DeInit:0000000000000038 $d - /tmp/cccrAAAm.s:1461 .text.HAL_TIM_IC_MspInit:0000000000000000 $t - /tmp/cccrAAAm.s:1468 .text.HAL_TIM_IC_MspInit:0000000000000000 HAL_TIM_IC_MspInit - /tmp/cccrAAAm.s:1483 .text.HAL_TIM_IC_MspDeInit:0000000000000000 $t - /tmp/cccrAAAm.s:1490 .text.HAL_TIM_IC_MspDeInit:0000000000000000 HAL_TIM_IC_MspDeInit - /tmp/cccrAAAm.s:1505 .text.HAL_TIM_IC_DeInit:0000000000000000 $t - /tmp/cccrAAAm.s:1512 .text.HAL_TIM_IC_DeInit:0000000000000000 HAL_TIM_IC_DeInit - /tmp/cccrAAAm.s:1566 .text.HAL_TIM_IC_DeInit:0000000000000038 $d - /tmp/cccrAAAm.s:1572 .text.HAL_TIM_OnePulse_MspInit:0000000000000000 $t - /tmp/cccrAAAm.s:1579 .text.HAL_TIM_OnePulse_MspInit:0000000000000000 HAL_TIM_OnePulse_MspInit - /tmp/cccrAAAm.s:1594 .text.HAL_TIM_OnePulse_MspDeInit:0000000000000000 $t - /tmp/cccrAAAm.s:1601 .text.HAL_TIM_OnePulse_MspDeInit:0000000000000000 HAL_TIM_OnePulse_MspDeInit - /tmp/cccrAAAm.s:1616 .text.HAL_TIM_OnePulse_DeInit:0000000000000000 $t - /tmp/cccrAAAm.s:1623 .text.HAL_TIM_OnePulse_DeInit:0000000000000000 HAL_TIM_OnePulse_DeInit - /tmp/cccrAAAm.s:1677 .text.HAL_TIM_OnePulse_DeInit:0000000000000038 $d - /tmp/cccrAAAm.s:1683 .text.HAL_TIM_Encoder_MspInit:0000000000000000 $t - /tmp/cccrAAAm.s:1690 .text.HAL_TIM_Encoder_MspInit:0000000000000000 HAL_TIM_Encoder_MspInit - /tmp/cccrAAAm.s:1705 .text.HAL_TIM_Encoder_MspDeInit:0000000000000000 $t - /tmp/cccrAAAm.s:1712 .text.HAL_TIM_Encoder_MspDeInit:0000000000000000 HAL_TIM_Encoder_MspDeInit - /tmp/cccrAAAm.s:1727 .text.HAL_TIM_Encoder_DeInit:0000000000000000 $t - /tmp/cccrAAAm.s:1734 .text.HAL_TIM_Encoder_DeInit:0000000000000000 HAL_TIM_Encoder_DeInit - /tmp/cccrAAAm.s:1788 .text.HAL_TIM_Encoder_DeInit:0000000000000038 $d - /tmp/cccrAAAm.s:1794 .text.HAL_TIM_DMABurst_MultiWriteStart:0000000000000000 $t - /tmp/cccrAAAm.s:1801 .text.HAL_TIM_DMABurst_MultiWriteStart:0000000000000000 HAL_TIM_DMABurst_MultiWriteStart - /tmp/cccrAAAm.s:2057 .text.HAL_TIM_DMABurst_MultiWriteStart:0000000000000140 $d - /tmp/cccrAAAm.s:3059 .text.TIM_DMADelayPulseCplt:0000000000000000 TIM_DMADelayPulseCplt - /tmp/cccrAAAm.s:3430 .text.TIM_DMATriggerCplt:0000000000000000 TIM_DMATriggerCplt - /tmp/cccrAAAm.s:2066 .text.HAL_TIM_DMABurst_WriteStart:0000000000000000 $t - /tmp/cccrAAAm.s:2073 .text.HAL_TIM_DMABurst_WriteStart:0000000000000000 HAL_TIM_DMABurst_WriteStart - /tmp/cccrAAAm.s:2105 .text.HAL_TIM_DMABurst_WriteStop:0000000000000000 $t - /tmp/cccrAAAm.s:2112 .text.HAL_TIM_DMABurst_WriteStop:0000000000000000 HAL_TIM_DMABurst_WriteStop - /tmp/cccrAAAm.s:2234 .text.HAL_TIM_DMABurst_MultiReadStart:0000000000000000 $t - /tmp/cccrAAAm.s:2241 .text.HAL_TIM_DMABurst_MultiReadStart:0000000000000000 HAL_TIM_DMABurst_MultiReadStart - /tmp/cccrAAAm.s:2497 .text.HAL_TIM_DMABurst_MultiReadStart:0000000000000140 $d - /tmp/cccrAAAm.s:2959 .text.TIM_DMACaptureCplt:0000000000000000 TIM_DMACaptureCplt - /tmp/cccrAAAm.s:2506 .text.HAL_TIM_DMABurst_ReadStart:0000000000000000 $t - /tmp/cccrAAAm.s:2513 .text.HAL_TIM_DMABurst_ReadStart:0000000000000000 HAL_TIM_DMABurst_ReadStart - /tmp/cccrAAAm.s:2545 .text.HAL_TIM_DMABurst_ReadStop:0000000000000000 $t - /tmp/cccrAAAm.s:2552 .text.HAL_TIM_DMABurst_ReadStop:0000000000000000 HAL_TIM_DMABurst_ReadStop - /tmp/cccrAAAm.s:2674 .text.HAL_TIM_GenerateEvent:0000000000000000 $t - /tmp/cccrAAAm.s:2681 .text.HAL_TIM_GenerateEvent:0000000000000000 HAL_TIM_GenerateEvent - /tmp/cccrAAAm.s:2725 .text.HAL_TIM_ConfigTI1Input:0000000000000000 $t - /tmp/cccrAAAm.s:2732 .text.HAL_TIM_ConfigTI1Input:0000000000000000 HAL_TIM_ConfigTI1Input - /tmp/cccrAAAm.s:2762 .text.HAL_TIM_ReadCapturedValue:0000000000000000 $t - /tmp/cccrAAAm.s:2769 .text.HAL_TIM_ReadCapturedValue:0000000000000000 HAL_TIM_ReadCapturedValue - /tmp/cccrAAAm.s:2851 .text.HAL_TIM_PeriodElapsedCallback:0000000000000000 $t - /tmp/cccrAAAm.s:2858 .text.HAL_TIM_PeriodElapsedCallback:0000000000000000 HAL_TIM_PeriodElapsedCallback - /tmp/cccrAAAm.s:2873 .text.TIM_DMAPeriodElapsedCplt:0000000000000000 $t - /tmp/cccrAAAm.s:2908 .text.HAL_TIM_OC_DelayElapsedCallback:0000000000000000 $t - ARM GAS /tmp/cccrAAAm.s page 286 - - - /tmp/cccrAAAm.s:2915 .text.HAL_TIM_OC_DelayElapsedCallback:0000000000000000 HAL_TIM_OC_DelayElapsedCallback - /tmp/cccrAAAm.s:2930 .text.HAL_TIM_IC_CaptureCallback:0000000000000000 $t - /tmp/cccrAAAm.s:2937 .text.HAL_TIM_IC_CaptureCallback:0000000000000000 HAL_TIM_IC_CaptureCallback - /tmp/cccrAAAm.s:2952 .text.TIM_DMACaptureCplt:0000000000000000 $t - /tmp/cccrAAAm.s:3030 .text.HAL_TIM_PWM_PulseFinishedCallback:0000000000000000 $t - /tmp/cccrAAAm.s:3037 .text.HAL_TIM_PWM_PulseFinishedCallback:0000000000000000 HAL_TIM_PWM_PulseFinishedCallback - /tmp/cccrAAAm.s:3052 .text.TIM_DMADelayPulseCplt:0000000000000000 $t - /tmp/cccrAAAm.s:3130 .text.HAL_TIM_TriggerCallback:0000000000000000 $t - /tmp/cccrAAAm.s:3137 .text.HAL_TIM_TriggerCallback:0000000000000000 HAL_TIM_TriggerCallback - /tmp/cccrAAAm.s:3152 .text.HAL_TIM_IRQHandler:0000000000000000 $t - /tmp/cccrAAAm.s:3159 .text.HAL_TIM_IRQHandler:0000000000000000 HAL_TIM_IRQHandler - /tmp/cccrAAAm.s:3424 .text.TIM_DMATriggerCplt:0000000000000000 $t - /tmp/cccrAAAm.s:3459 .text.HAL_TIM_ErrorCallback:0000000000000000 $t - /tmp/cccrAAAm.s:3466 .text.HAL_TIM_ErrorCallback:0000000000000000 HAL_TIM_ErrorCallback - /tmp/cccrAAAm.s:3481 .text.TIM_DMAError:0000000000000000 $t - /tmp/cccrAAAm.s:3517 .text.HAL_TIM_Base_GetState:0000000000000000 $t - /tmp/cccrAAAm.s:3524 .text.HAL_TIM_Base_GetState:0000000000000000 HAL_TIM_Base_GetState - /tmp/cccrAAAm.s:3544 .text.HAL_TIM_OC_GetState:0000000000000000 $t - /tmp/cccrAAAm.s:3551 .text.HAL_TIM_OC_GetState:0000000000000000 HAL_TIM_OC_GetState - /tmp/cccrAAAm.s:3571 .text.HAL_TIM_PWM_GetState:0000000000000000 $t - /tmp/cccrAAAm.s:3578 .text.HAL_TIM_PWM_GetState:0000000000000000 HAL_TIM_PWM_GetState - /tmp/cccrAAAm.s:3598 .text.HAL_TIM_IC_GetState:0000000000000000 $t - /tmp/cccrAAAm.s:3605 .text.HAL_TIM_IC_GetState:0000000000000000 HAL_TIM_IC_GetState - /tmp/cccrAAAm.s:3625 .text.HAL_TIM_OnePulse_GetState:0000000000000000 $t - /tmp/cccrAAAm.s:3632 .text.HAL_TIM_OnePulse_GetState:0000000000000000 HAL_TIM_OnePulse_GetState - /tmp/cccrAAAm.s:3652 .text.HAL_TIM_Encoder_GetState:0000000000000000 $t - /tmp/cccrAAAm.s:3659 .text.HAL_TIM_Encoder_GetState:0000000000000000 HAL_TIM_Encoder_GetState - /tmp/cccrAAAm.s:3679 .text.TIM_Base_SetConfig:0000000000000000 $t - /tmp/cccrAAAm.s:3686 .text.TIM_Base_SetConfig:0000000000000000 TIM_Base_SetConfig - /tmp/cccrAAAm.s:3806 .text.TIM_Base_SetConfig:0000000000000088 $d - /tmp/cccrAAAm.s:3817 .text.HAL_TIM_Base_Init:0000000000000000 $t - /tmp/cccrAAAm.s:3824 .text.HAL_TIM_Base_Init:0000000000000000 HAL_TIM_Base_Init - /tmp/cccrAAAm.s:3887 .text.HAL_TIM_OC_Init:0000000000000000 $t - /tmp/cccrAAAm.s:3894 .text.HAL_TIM_OC_Init:0000000000000000 HAL_TIM_OC_Init - /tmp/cccrAAAm.s:3957 .text.HAL_TIM_PWM_Init:0000000000000000 $t - /tmp/cccrAAAm.s:3964 .text.HAL_TIM_PWM_Init:0000000000000000 HAL_TIM_PWM_Init - /tmp/cccrAAAm.s:4027 .text.HAL_TIM_IC_Init:0000000000000000 $t - /tmp/cccrAAAm.s:4034 .text.HAL_TIM_IC_Init:0000000000000000 HAL_TIM_IC_Init - /tmp/cccrAAAm.s:4097 .text.HAL_TIM_OnePulse_Init:0000000000000000 $t - /tmp/cccrAAAm.s:4104 .text.HAL_TIM_OnePulse_Init:0000000000000000 HAL_TIM_OnePulse_Init - /tmp/cccrAAAm.s:4181 .text.HAL_TIM_Encoder_Init:0000000000000000 $t - /tmp/cccrAAAm.s:4188 .text.HAL_TIM_Encoder_Init:0000000000000000 HAL_TIM_Encoder_Init - /tmp/cccrAAAm.s:4338 .text.HAL_TIM_Encoder_Init:000000000000009c $d - /tmp/cccrAAAm.s:4344 .text.TIM_OC2_SetConfig:0000000000000000 $t - /tmp/cccrAAAm.s:4351 .text.TIM_OC2_SetConfig:0000000000000000 TIM_OC2_SetConfig - /tmp/cccrAAAm.s:4472 .text.TIM_OC2_SetConfig:0000000000000070 $d - /tmp/cccrAAAm.s:4482 .text.HAL_TIM_OC_ConfigChannel:0000000000000000 $t - /tmp/cccrAAAm.s:4489 .text.HAL_TIM_OC_ConfigChannel:0000000000000000 HAL_TIM_OC_ConfigChannel - /tmp/cccrAAAm.s:4581 .text.HAL_TIM_PWM_ConfigChannel:0000000000000000 $t - /tmp/cccrAAAm.s:4588 .text.HAL_TIM_PWM_ConfigChannel:0000000000000000 HAL_TIM_PWM_ConfigChannel - /tmp/cccrAAAm.s:4767 .text.HAL_TIM_PWM_ConfigChannel:00000000000000e8 $d - /tmp/cccrAAAm.s:4772 .text.TIM_TI1_SetConfig:0000000000000000 $t - /tmp/cccrAAAm.s:4779 .text.TIM_TI1_SetConfig:0000000000000000 TIM_TI1_SetConfig - /tmp/cccrAAAm.s:4873 .text.TIM_TI1_SetConfig:0000000000000054 $d - /tmp/cccrAAAm.s:4880 .text.HAL_TIM_IC_ConfigChannel:0000000000000000 $t - /tmp/cccrAAAm.s:4887 .text.HAL_TIM_IC_ConfigChannel:0000000000000000 HAL_TIM_IC_ConfigChannel - /tmp/cccrAAAm.s:5047 .text.HAL_TIM_IC_ConfigChannel:00000000000000c4 $d - ARM GAS /tmp/cccrAAAm.s page 287 - - - /tmp/cccrAAAm.s:5052 .text.HAL_TIM_OnePulse_ConfigChannel:0000000000000000 $t - /tmp/cccrAAAm.s:5059 .text.HAL_TIM_OnePulse_ConfigChannel:0000000000000000 HAL_TIM_OnePulse_ConfigChannel - /tmp/cccrAAAm.s:5265 .text.HAL_TIM_OnePulse_ConfigChannel:00000000000000fc $d - /tmp/cccrAAAm.s:5270 .text.TIM_ETR_SetConfig:0000000000000000 $t - /tmp/cccrAAAm.s:5277 .text.TIM_ETR_SetConfig:0000000000000000 TIM_ETR_SetConfig - /tmp/cccrAAAm.s:5315 .text.TIM_ETR_SetConfig:0000000000000014 $d - /tmp/cccrAAAm.s:5320 .text.HAL_TIM_ConfigOCrefClear:0000000000000000 $t - /tmp/cccrAAAm.s:5327 .text.HAL_TIM_ConfigOCrefClear:0000000000000000 HAL_TIM_ConfigOCrefClear - /tmp/cccrAAAm.s:5523 .text.HAL_TIM_ConfigOCrefClear:00000000000000ec $d - /tmp/cccrAAAm.s:5529 .text.HAL_TIM_ConfigClockSource:0000000000000000 $t - /tmp/cccrAAAm.s:5536 .text.HAL_TIM_ConfigClockSource:0000000000000000 HAL_TIM_ConfigClockSource - /tmp/cccrAAAm.s:5778 .text.HAL_TIM_ConfigClockSource:0000000000000114 $d - /tmp/cccrAAAm.s:5783 .text.TIM_SlaveTimer_SetConfig:0000000000000000 $t - /tmp/cccrAAAm.s:5789 .text.TIM_SlaveTimer_SetConfig:0000000000000000 TIM_SlaveTimer_SetConfig - /tmp/cccrAAAm.s:5919 .text.HAL_TIM_SlaveConfigSynchronization:0000000000000000 $t - /tmp/cccrAAAm.s:5926 .text.HAL_TIM_SlaveConfigSynchronization:0000000000000000 HAL_TIM_SlaveConfigSynchronization - /tmp/cccrAAAm.s:5992 .text.HAL_TIM_SlaveConfigSynchronization:0000000000000040 $d - /tmp/cccrAAAm.s:5997 .text.HAL_TIM_SlaveConfigSynchronization_IT:0000000000000000 $t - /tmp/cccrAAAm.s:6004 .text.HAL_TIM_SlaveConfigSynchronization_IT:0000000000000000 HAL_TIM_SlaveConfigSynchronization_IT - /tmp/cccrAAAm.s:6070 .text.HAL_TIM_SlaveConfigSynchronization_IT:0000000000000040 $d - /tmp/cccrAAAm.s:6075 .text.TIM_CCxChannelCmd:0000000000000000 $t - /tmp/cccrAAAm.s:6082 .text.TIM_CCxChannelCmd:0000000000000000 TIM_CCxChannelCmd - /tmp/cccrAAAm.s:6117 .text.HAL_TIM_OC_Start:0000000000000000 $t - /tmp/cccrAAAm.s:6124 .text.HAL_TIM_OC_Start:0000000000000000 HAL_TIM_OC_Start - /tmp/cccrAAAm.s:6182 .text.HAL_TIM_OC_Start:0000000000000040 $d - /tmp/cccrAAAm.s:6190 .text.HAL_TIM_OC_Stop:0000000000000000 $t - /tmp/cccrAAAm.s:6197 .text.HAL_TIM_OC_Stop:0000000000000000 HAL_TIM_OC_Stop - /tmp/cccrAAAm.s:6277 .text.HAL_TIM_OC_Stop:0000000000000060 $d - /tmp/cccrAAAm.s:6288 .text.HAL_TIM_OC_Start_IT:0000000000000000 $t - /tmp/cccrAAAm.s:6295 .text.HAL_TIM_OC_Start_IT:0000000000000000 HAL_TIM_OC_Start_IT - /tmp/cccrAAAm.s:6404 .text.HAL_TIM_OC_Start_IT:0000000000000080 $d - /tmp/cccrAAAm.s:6412 .text.HAL_TIM_OC_Stop_IT:0000000000000000 $t - /tmp/cccrAAAm.s:6419 .text.HAL_TIM_OC_Stop_IT:0000000000000000 HAL_TIM_OC_Stop_IT - /tmp/cccrAAAm.s:6550 .text.HAL_TIM_OC_Stop_IT:00000000000000a0 $d - /tmp/cccrAAAm.s:6561 .text.HAL_TIM_OC_Start_DMA:0000000000000000 $t - /tmp/cccrAAAm.s:6568 .text.HAL_TIM_OC_Start_DMA:0000000000000000 HAL_TIM_OC_Start_DMA - /tmp/cccrAAAm.s:6783 .text.HAL_TIM_OC_Start_DMA:0000000000000110 $d - /tmp/cccrAAAm.s:6793 .text.HAL_TIM_OC_Stop_DMA:0000000000000000 $t - /tmp/cccrAAAm.s:6800 .text.HAL_TIM_OC_Stop_DMA:0000000000000000 HAL_TIM_OC_Stop_DMA - /tmp/cccrAAAm.s:6935 .text.HAL_TIM_OC_Stop_DMA:00000000000000a4 $d - /tmp/cccrAAAm.s:6950 .text.HAL_TIM_PWM_Start:0000000000000000 $t - /tmp/cccrAAAm.s:6957 .text.HAL_TIM_PWM_Start:0000000000000000 HAL_TIM_PWM_Start - /tmp/cccrAAAm.s:7015 .text.HAL_TIM_PWM_Start:0000000000000040 $d - /tmp/cccrAAAm.s:7023 .text.HAL_TIM_PWM_Stop:0000000000000000 $t - /tmp/cccrAAAm.s:7030 .text.HAL_TIM_PWM_Stop:0000000000000000 HAL_TIM_PWM_Stop - /tmp/cccrAAAm.s:7114 .text.HAL_TIM_PWM_Stop:0000000000000064 $d - /tmp/cccrAAAm.s:7125 .text.HAL_TIM_PWM_Start_IT:0000000000000000 $t - /tmp/cccrAAAm.s:7132 .text.HAL_TIM_PWM_Start_IT:0000000000000000 HAL_TIM_PWM_Start_IT - /tmp/cccrAAAm.s:7241 .text.HAL_TIM_PWM_Start_IT:0000000000000080 $d - /tmp/cccrAAAm.s:7249 .text.HAL_TIM_PWM_Stop_IT:0000000000000000 $t - /tmp/cccrAAAm.s:7256 .text.HAL_TIM_PWM_Stop_IT:0000000000000000 HAL_TIM_PWM_Stop_IT - /tmp/cccrAAAm.s:7387 .text.HAL_TIM_PWM_Stop_IT:00000000000000a0 $d - /tmp/cccrAAAm.s:7398 .text.HAL_TIM_PWM_Start_DMA:0000000000000000 $t - /tmp/cccrAAAm.s:7405 .text.HAL_TIM_PWM_Start_DMA:0000000000000000 HAL_TIM_PWM_Start_DMA - /tmp/cccrAAAm.s:7620 .text.HAL_TIM_PWM_Start_DMA:0000000000000110 $d - /tmp/cccrAAAm.s:7630 .text.HAL_TIM_PWM_Stop_DMA:0000000000000000 $t - /tmp/cccrAAAm.s:7637 .text.HAL_TIM_PWM_Stop_DMA:0000000000000000 HAL_TIM_PWM_Stop_DMA - ARM GAS /tmp/cccrAAAm.s page 288 - - - /tmp/cccrAAAm.s:7772 .text.HAL_TIM_PWM_Stop_DMA:00000000000000a4 $d - /tmp/cccrAAAm.s:7787 .text.HAL_TIM_IC_Start:0000000000000000 $t - /tmp/cccrAAAm.s:7794 .text.HAL_TIM_IC_Start:0000000000000000 HAL_TIM_IC_Start - /tmp/cccrAAAm.s:7828 .text.HAL_TIM_IC_Stop:0000000000000000 $t - /tmp/cccrAAAm.s:7835 .text.HAL_TIM_IC_Stop:0000000000000000 HAL_TIM_IC_Stop - /tmp/cccrAAAm.s:7879 .text.HAL_TIM_IC_Stop:000000000000002c $d - /tmp/cccrAAAm.s:7885 .text.HAL_TIM_IC_Start_IT:0000000000000000 $t - /tmp/cccrAAAm.s:7892 .text.HAL_TIM_IC_Start_IT:0000000000000000 HAL_TIM_IC_Start_IT - /tmp/cccrAAAm.s:7977 .text.HAL_TIM_IC_Stop_IT:0000000000000000 $t - /tmp/cccrAAAm.s:7984 .text.HAL_TIM_IC_Stop_IT:0000000000000000 HAL_TIM_IC_Stop_IT - /tmp/cccrAAAm.s:8079 .text.HAL_TIM_IC_Stop_IT:000000000000006c $d - /tmp/cccrAAAm.s:8085 .text.HAL_TIM_IC_Start_DMA:0000000000000000 $t - /tmp/cccrAAAm.s:8092 .text.HAL_TIM_IC_Start_DMA:0000000000000000 HAL_TIM_IC_Start_DMA - /tmp/cccrAAAm.s:8278 .text.HAL_TIM_IC_Start_DMA:00000000000000e8 $d - /tmp/cccrAAAm.s:8284 .text.HAL_TIM_IC_Stop_DMA:0000000000000000 $t - /tmp/cccrAAAm.s:8291 .text.HAL_TIM_IC_Stop_DMA:0000000000000000 HAL_TIM_IC_Stop_DMA - /tmp/cccrAAAm.s:8390 .text.HAL_TIM_IC_Stop_DMA:0000000000000070 $d - /tmp/cccrAAAm.s:8400 .text.HAL_TIM_OnePulse_Start:0000000000000000 $t - /tmp/cccrAAAm.s:8407 .text.HAL_TIM_OnePulse_Start:0000000000000000 HAL_TIM_OnePulse_Start - /tmp/cccrAAAm.s:8467 .text.HAL_TIM_OnePulse_Start:0000000000000040 $d - /tmp/cccrAAAm.s:8475 .text.HAL_TIM_OnePulse_Stop:0000000000000000 $t - /tmp/cccrAAAm.s:8482 .text.HAL_TIM_OnePulse_Stop:0000000000000000 HAL_TIM_OnePulse_Stop - /tmp/cccrAAAm.s:8570 .text.HAL_TIM_OnePulse_Stop:000000000000006c $d - /tmp/cccrAAAm.s:8581 .text.HAL_TIM_OnePulse_Start_IT:0000000000000000 $t - /tmp/cccrAAAm.s:8588 .text.HAL_TIM_OnePulse_Start_IT:0000000000000000 HAL_TIM_OnePulse_Start_IT - /tmp/cccrAAAm.s:8660 .text.HAL_TIM_OnePulse_Start_IT:0000000000000054 $d - /tmp/cccrAAAm.s:8668 .text.HAL_TIM_OnePulse_Stop_IT:0000000000000000 $t - /tmp/cccrAAAm.s:8675 .text.HAL_TIM_OnePulse_Stop_IT:0000000000000000 HAL_TIM_OnePulse_Stop_IT - /tmp/cccrAAAm.s:8775 .text.HAL_TIM_OnePulse_Stop_IT:0000000000000080 $d - /tmp/cccrAAAm.s:8786 .text.HAL_TIM_Encoder_Start:0000000000000000 $t - /tmp/cccrAAAm.s:8793 .text.HAL_TIM_Encoder_Start:0000000000000000 HAL_TIM_Encoder_Start - /tmp/cccrAAAm.s:8865 .text.HAL_TIM_Encoder_Stop:0000000000000000 $t - /tmp/cccrAAAm.s:8872 .text.HAL_TIM_Encoder_Stop:0000000000000000 HAL_TIM_Encoder_Stop - /tmp/cccrAAAm.s:8954 .text.HAL_TIM_Encoder_Stop:0000000000000058 $d - /tmp/cccrAAAm.s:8960 .text.HAL_TIM_Encoder_Start_IT:0000000000000000 $t - /tmp/cccrAAAm.s:8967 .text.HAL_TIM_Encoder_Start_IT:0000000000000000 HAL_TIM_Encoder_Start_IT - /tmp/cccrAAAm.s:9063 .text.HAL_TIM_Encoder_Stop_IT:0000000000000000 $t - /tmp/cccrAAAm.s:9070 .text.HAL_TIM_Encoder_Stop_IT:0000000000000000 HAL_TIM_Encoder_Stop_IT - /tmp/cccrAAAm.s:9175 .text.HAL_TIM_Encoder_Stop_IT:0000000000000080 $d - /tmp/cccrAAAm.s:9181 .text.HAL_TIM_Encoder_Start_DMA:0000000000000000 $t - /tmp/cccrAAAm.s:9188 .text.HAL_TIM_Encoder_Start_DMA:0000000000000000 HAL_TIM_Encoder_Start_DMA - /tmp/cccrAAAm.s:9431 .text.HAL_TIM_Encoder_Start_DMA:0000000000000138 $d - /tmp/cccrAAAm.s:9437 .text.HAL_TIM_Encoder_Stop_DMA:0000000000000000 $t - /tmp/cccrAAAm.s:9444 .text.HAL_TIM_Encoder_Stop_DMA:0000000000000000 HAL_TIM_Encoder_Stop_DMA - /tmp/cccrAAAm.s:9549 .text.HAL_TIM_Encoder_Stop_DMA:0000000000000080 $d - -UNDEFINED SYMBOLS -HAL_DMA_Start_IT -TIMEx_DMACommutationCplt -HAL_DMA_Abort -HAL_TIMEx_BreakCallback -HAL_TIMEx_CommutationCallback diff --git a/firmware/build/stm32f0xx_hal_tim.o b/firmware/build/stm32f0xx_hal_tim.o deleted file mode 100644 index 133f391..0000000 Binary files a/firmware/build/stm32f0xx_hal_tim.o and /dev/null differ diff --git a/firmware/build/stm32f0xx_hal_tim_ex.d b/firmware/build/stm32f0xx_hal_tim_ex.d deleted file mode 100644 index 0f9ceee..0000000 --- a/firmware/build/stm32f0xx_hal_tim_ex.d +++ /dev/null @@ -1,87 +0,0 @@ -build/stm32f0xx_hal_tim_ex.o: \ - Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c \ - Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal.h \ - Inc/stm32f0xx_hal_conf.h \ - Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_rcc.h \ - Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_def.h \ - Drivers/CMSIS/Device/ST/STM32F0xx/Include/stm32f0xx.h \ - Drivers/CMSIS/Device/ST/STM32F0xx/Include/stm32f072xb.h \ - Drivers/CMSIS/Include/core_cm0.h Drivers/CMSIS/Include/core_cmInstr.h \ - Drivers/CMSIS/Include/cmsis_gcc.h Drivers/CMSIS/Include/core_cmFunc.h \ - Drivers/CMSIS/Device/ST/STM32F0xx/Include/system_stm32f0xx.h \ - Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_rcc_ex.h \ - Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_gpio.h \ - Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_gpio_ex.h \ - Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_dma.h \ - Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_dma_ex.h \ - Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_cortex.h \ - Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_adc.h \ - Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_adc_ex.h \ - Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_flash.h \ - Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_flash_ex.h \ - Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_i2c.h \ - Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_i2c_ex.h \ - Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_pcd.h \ - Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_pcd_ex.h \ - Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_pwr.h \ - Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_pwr_ex.h \ - Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_tim.h \ - Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_tim_ex.h - -Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal.h: - -Inc/stm32f0xx_hal_conf.h: - -Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_rcc.h: - -Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_def.h: - -Drivers/CMSIS/Device/ST/STM32F0xx/Include/stm32f0xx.h: - -Drivers/CMSIS/Device/ST/STM32F0xx/Include/stm32f072xb.h: - -Drivers/CMSIS/Include/core_cm0.h: - -Drivers/CMSIS/Include/core_cmInstr.h: - -Drivers/CMSIS/Include/cmsis_gcc.h: - -Drivers/CMSIS/Include/core_cmFunc.h: - -Drivers/CMSIS/Device/ST/STM32F0xx/Include/system_stm32f0xx.h: - -Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_rcc_ex.h: - -Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_gpio.h: - -Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_gpio_ex.h: - -Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_dma.h: - -Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_dma_ex.h: - -Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_cortex.h: - -Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_adc.h: - -Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_adc_ex.h: - -Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_flash.h: - -Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_flash_ex.h: - -Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_i2c.h: - -Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_i2c_ex.h: - -Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_pcd.h: - -Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_pcd_ex.h: - -Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_pwr.h: - -Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_pwr_ex.h: - -Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_tim.h: - -Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_tim_ex.h: diff --git a/firmware/build/stm32f0xx_hal_tim_ex.lst b/firmware/build/stm32f0xx_hal_tim_ex.lst deleted file mode 100644 index 83ebd8c..0000000 --- a/firmware/build/stm32f0xx_hal_tim_ex.lst +++ /dev/null @@ -1,6098 +0,0 @@ -ARM GAS /tmp/cc365F3j.s page 1 - - - 1 .cpu cortex-m0 - 2 .eabi_attribute 20, 1 - 3 .eabi_attribute 21, 1 - 4 .eabi_attribute 23, 3 - 5 .eabi_attribute 24, 1 - 6 .eabi_attribute 25, 1 - 7 .eabi_attribute 26, 1 - 8 .eabi_attribute 30, 1 - 9 .eabi_attribute 34, 0 - 10 .eabi_attribute 18, 4 - 11 .file "stm32f0xx_hal_tim_ex.c" - 12 .text - 13 .Ltext0: - 14 .cfi_sections .debug_frame - 15 .section .text.TIM_CCxNChannelCmd,"ax",%progbits - 16 .align 1 - 17 .syntax unified - 18 .code 16 - 19 .thumb_func - 20 .fpu softvfp - 22 TIM_CCxNChannelCmd: - 23 .LFB74: - 24 .file 1 "Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c" - 1:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** /** - 2:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** ****************************************************************************** - 3:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** * @file stm32f0xx_hal_tim_ex.c - 4:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** * @author MCD Application Team - 5:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** * @brief TIM HAL module driver. - 6:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** * This file provides firmware functions to manage the following - 7:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** * functionalities of the Timer Extended peripheral: - 8:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** * + Time Hall Sensor Interface Initialization - 9:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** * + Time Hall Sensor Interface Start - 10:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** * + Time Complementary signal bread and dead time configuration - 11:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** * + Time Master and Slave synchronization configuration - 12:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** * + Timer remapping capabilities configuration - 13:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** @verbatim - 14:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** ============================================================================== - 15:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** ##### TIMER Extended features ##### - 16:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** ============================================================================== - 17:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** [..] - 18:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** The Timer Extended features include: - 19:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** (#) Complementary outputs with programmable dead-time for : - 20:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** (++) Output Compare - 21:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** (++) PWM generation (Edge and Center-aligned Mode) - 22:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** (++) One-pulse mode output - 23:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** (#) Synchronization circuit to control the timer with external signals and to - 24:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** interconnect several timers together. - 25:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** (#) Break input to put the timer output signals in reset state or in a known state. - 26:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** (#) Supports incremental (quadrature) encoder and hall-sensor circuitry for - 27:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** positioning purposes - 28:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** - 29:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** ##### How to use this driver ##### - 30:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** ============================================================================== - 31:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** [..] - 32:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** (#) Initialize the TIM low level resources by implementing the following functions - 33:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** depending from feature used : - 34:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** (++) Complementary Output Compare : HAL_TIM_OC_MspInit() - ARM GAS /tmp/cc365F3j.s page 2 - - - 35:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** (++) Complementary PWM generation : HAL_TIM_PWM_MspInit() - 36:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** (++) Complementary One-pulse mode output : HAL_TIM_OnePulse_MspInit() - 37:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** (++) Hall Sensor output : HAL_TIM_HallSensor_MspInit() - 38:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** - 39:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** (#) Initialize the TIM low level resources : - 40:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** (##) Enable the TIM interface clock using __HAL_RCC_TIMx_CLK_ENABLE(); - 41:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** (##) TIM pins configuration - 42:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** (+++) Enable the clock for the TIM GPIOs using the following function: - 43:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** __HAL_RCC_GPIOx_CLK_ENABLE(); - 44:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** (+++) Configure these TIM pins in Alternate function mode using HAL_GPIO_Init(); - 45:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** - 46:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** (#) The external Clock can be configured, if needed (the default clock is the - 47:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** internal clock from the APBx), using the following function: - 48:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** HAL_TIM_ConfigClockSource, the clock configuration should be done before - 49:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** any start function. - 50:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** - 51:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** (#) Configure the TIM in the desired functioning mode using one of the - 52:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** initialization function of this driver: - 53:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** (++) HAL_TIMEx_HallSensor_Init and HAL_TIMEx_ConfigCommutationEvent: to use the - 54:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** Timer Hall Sensor Interface and the commutation event with the corresponding - 55:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** Interrupt and DMA request if needed (Note that One Timer is used to interface - 56:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** with the Hall sensor Interface and another Timer should be used to use - 57:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** the commutation event). - 58:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** - 59:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** (#) Activate the TIM peripheral using one of the start functions: - 60:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** (++) Complementary Output Compare : HAL_TIMEx_OCN_Start(), HAL_TIMEx_OCN_Start_DMA(), HA - 61:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** (++) Complementary PWM generation : HAL_TIMEx_PWMN_Start(), HAL_TIMEx_PWMN_Start_DMA(), - 62:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** (++) Complementary One-pulse mode output : HAL_TIMEx_OnePulseN_Start(), HAL_TIMEx_OnePul - 63:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** (++) Hall Sensor output : HAL_TIMEx_HallSensor_Start(), HAL_TIMEx_HallSensor_Start_DMA() - 64:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** - 65:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** - 66:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** @endverbatim - 67:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** ****************************************************************************** - 68:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** * @attention - 69:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** * - 70:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** *

© COPYRIGHT(c) 2016 STMicroelectronics

- 71:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** * - 72:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** * Redistribution and use in source and binary forms, with or without modification, - 73:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** * are permitted provided that the following conditions are met: - 74:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** * 1. Redistributions of source code must retain the above copyright notice, - 75:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** * this list of conditions and the following disclaimer. - 76:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** * 2. Redistributions in binary form must reproduce the above copyright notice, - 77:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** * this list of conditions and the following disclaimer in the documentation - 78:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** * and/or other materials provided with the distribution. - 79:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** * 3. Neither the name of STMicroelectronics nor the names of its contributors - 80:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** * may be used to endorse or promote products derived from this software - 81:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** * without specific prior written permission. - 82:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** * - 83:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" - 84:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE - 85:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE - 86:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** * DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE - 87:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL - 88:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR - 89:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** * SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER - 90:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** * CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, - 91:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE - ARM GAS /tmp/cc365F3j.s page 3 - - - 92:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. - 93:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** * - 94:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** ****************************************************************************** - 95:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** */ - 96:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** - 97:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** /* Includes ------------------------------------------------------------------*/ - 98:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** #include "stm32f0xx_hal.h" - 99:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** - 100:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** /** @addtogroup STM32F0xx_HAL_Driver - 101:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** * @{ - 102:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** */ - 103:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** - 104:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** /** @defgroup TIMEx TIMEx - 105:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** * @brief TIM Extended HAL module driver - 106:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** * @{ - 107:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** */ - 108:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** - 109:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** #ifdef HAL_TIM_MODULE_ENABLED - 110:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** - 111:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** /* Private typedef -----------------------------------------------------------*/ - 112:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** /* Private define ------------------------------------------------------------*/ - 113:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** /* Private macro -------------------------------------------------------------*/ - 114:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** /* Private variables ---------------------------------------------------------*/ - 115:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** /* Private function prototypes -----------------------------------------------*/ - 116:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** - 117:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** /** @defgroup TIMEx_Private_Functions TIMEx Private Functions - 118:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** * @{ - 119:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** */ - 120:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** static void TIM_CCxNChannelCmd(TIM_TypeDef* TIMx, uint32_t Channel, uint32_t ChannelNState); - 121:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** /** - 122:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** * @} - 123:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** */ - 124:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** - 125:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** /* Exported functions ---------------------------------------------------------*/ - 126:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** - 127:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** /** @defgroup TIMEx_Exported_Functions TIMEx Exported Functions - 128:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** * @{ - 129:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** */ - 130:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** - 131:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** /** @defgroup TIMEx_Exported_Functions_Group1 Timer Hall Sensor functions - 132:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** * @brief Timer Hall Sensor functions - 133:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** * - 134:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** @verbatim - 135:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** ============================================================================== - 136:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** ##### Timer Hall Sensor functions ##### - 137:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** ============================================================================== - 138:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** [..] - 139:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** This section provides functions allowing to: - 140:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** (+) Initialize and configure TIM HAL Sensor. - 141:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** (+) De-initialize TIM HAL Sensor. - 142:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** (+) Start the Hall Sensor Interface. - 143:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** (+) Stop the Hall Sensor Interface. - 144:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** (+) Start the Hall Sensor Interface and enable interrupts. - 145:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** (+) Stop the Hall Sensor Interface and disable interrupts. - 146:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** (+) Start the Hall Sensor Interface and enable DMA transfers. - 147:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** (+) Stop the Hall Sensor Interface and disable DMA transfers. - 148:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** - ARM GAS /tmp/cc365F3j.s page 4 - - - 149:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** @endverbatim - 150:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** * @{ - 151:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** */ - 152:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** /** - 153:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** * @brief Initializes the TIM Hall Sensor Interface and create the associated handle. - 154:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** * @param htim TIM Encoder Interface handle - 155:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** * @param sConfig TIM Hall Sensor configuration structure - 156:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** * @retval HAL status - 157:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** */ - 158:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** HAL_StatusTypeDef HAL_TIMEx_HallSensor_Init(TIM_HandleTypeDef *htim, TIM_HallSensor_InitTypeDef* sC - 159:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** { - 160:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** TIM_OC_InitTypeDef OC_Config; - 161:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** - 162:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** /* Check the TIM handle allocation */ - 163:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** if(htim == NULL) - 164:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** { - 165:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** return HAL_ERROR; - 166:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** } - 167:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** - 168:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** assert_param(IS_TIM_HALL_INTERFACE_INSTANCE(htim->Instance)); - 169:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** assert_param(IS_TIM_COUNTER_MODE(htim->Init.CounterMode)); - 170:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** assert_param(IS_TIM_CLOCKDIVISION_DIV(htim->Init.ClockDivision)); - 171:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** assert_param(IS_TIM_IC_POLARITY(sConfig->IC1Polarity)); - 172:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** assert_param(IS_TIM_IC_PRESCALER(sConfig->IC1Prescaler)); - 173:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** assert_param(IS_TIM_IC_FILTER(sConfig->IC1Filter)); - 174:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** assert_param(IS_TIM_AUTORELOAD_PRELOAD(htim->Init.AutoReloadPreload)); - 175:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** - 176:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** if(htim->State == HAL_TIM_STATE_RESET) - 177:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** { - 178:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** /* Allocate lock resource and initialize it */ - 179:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** htim->Lock = HAL_UNLOCKED; - 180:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** - 181:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** /* Init the low level hardware : GPIO, CLOCK, NVIC and DMA */ - 182:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** HAL_TIMEx_HallSensor_MspInit(htim); - 183:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** } - 184:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** - 185:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** /* Set the TIM state */ - 186:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** htim->State= HAL_TIM_STATE_BUSY; - 187:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** - 188:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** /* Configure the Time base in the Encoder Mode */ - 189:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** TIM_Base_SetConfig(htim->Instance, &htim->Init); - 190:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** - 191:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** /* Configure the Channel 1 as Input Channel to interface with the three Outputs of the Hall sens - 192:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** TIM_TI1_SetConfig(htim->Instance, sConfig->IC1Polarity, TIM_ICSELECTION_TRC, sConfig->IC1Filter); - 193:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** - 194:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** /* Reset the IC1PSC Bits */ - 195:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** htim->Instance->CCMR1 &= ~TIM_CCMR1_IC1PSC; - 196:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** /* Set the IC1PSC value */ - 197:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** htim->Instance->CCMR1 |= sConfig->IC1Prescaler; - 198:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** - 199:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** /* Enable the Hall sensor interface (XOR function of the three inputs) */ - 200:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** htim->Instance->CR2 |= TIM_CR2_TI1S; - 201:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** - 202:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** /* Select the TIM_TS_TI1F_ED signal as Input trigger for the TIM */ - 203:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** htim->Instance->SMCR &= ~TIM_SMCR_TS; - 204:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** htim->Instance->SMCR |= TIM_TS_TI1F_ED; - 205:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** - ARM GAS /tmp/cc365F3j.s page 5 - - - 206:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** /* Use the TIM_TS_TI1F_ED signal to reset the TIM counter each edge detection */ - 207:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** htim->Instance->SMCR &= ~TIM_SMCR_SMS; - 208:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** htim->Instance->SMCR |= TIM_SLAVEMODE_RESET; - 209:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** - 210:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** /* Program channel 2 in PWM 2 mode with the desired Commutation_Delay*/ - 211:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** OC_Config.OCFastMode = TIM_OCFAST_DISABLE; - 212:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** OC_Config.OCIdleState = TIM_OCIDLESTATE_RESET; - 213:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** OC_Config.OCMode = TIM_OCMODE_PWM2; - 214:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** OC_Config.OCNIdleState = TIM_OCNIDLESTATE_RESET; - 215:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** OC_Config.OCNPolarity = TIM_OCNPOLARITY_HIGH; - 216:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** OC_Config.OCPolarity = TIM_OCPOLARITY_HIGH; - 217:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** OC_Config.Pulse = sConfig->Commutation_Delay; - 218:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** - 219:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** TIM_OC2_SetConfig(htim->Instance, &OC_Config); - 220:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** - 221:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** /* Select OC2REF as trigger output on TRGO: write the MMS bits in the TIMx_CR2 - 222:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** register to 101 */ - 223:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** htim->Instance->CR2 &= ~TIM_CR2_MMS; - 224:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** htim->Instance->CR2 |= TIM_TRGO_OC2REF; - 225:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** - 226:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** /* Initialize the TIM state*/ - 227:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** htim->State= HAL_TIM_STATE_READY; - 228:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** - 229:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** return HAL_OK; - 230:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** } - 231:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** - 232:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** /** - 233:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** * @brief DeInitializes the TIM Hall Sensor interface - 234:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** * @param htim TIM Hall Sensor handle - 235:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** * @retval HAL status - 236:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** */ - 237:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** HAL_StatusTypeDef HAL_TIMEx_HallSensor_DeInit(TIM_HandleTypeDef *htim) - 238:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** { - 239:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** /* Check the parameters */ - 240:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** assert_param(IS_TIM_INSTANCE(htim->Instance)); - 241:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** - 242:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** htim->State = HAL_TIM_STATE_BUSY; - 243:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** - 244:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** /* Disable the TIM Peripheral Clock */ - 245:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** __HAL_TIM_DISABLE(htim); - 246:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** - 247:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** /* DeInit the low level hardware: GPIO, CLOCK, NVIC */ - 248:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** HAL_TIMEx_HallSensor_MspDeInit(htim); - 249:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** - 250:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** /* Change TIM state */ - 251:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** htim->State = HAL_TIM_STATE_RESET; - 252:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** - 253:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** /* Release Lock */ - 254:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** __HAL_UNLOCK(htim); - 255:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** - 256:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** return HAL_OK; - 257:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** } - 258:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** - 259:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** /** - 260:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** * @brief Initializes the TIM Hall Sensor MSP. - 261:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** * @param htim TIM handle - 262:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** * @retval None - ARM GAS /tmp/cc365F3j.s page 6 - - - 263:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** */ - 264:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** __weak void HAL_TIMEx_HallSensor_MspInit(TIM_HandleTypeDef *htim) - 265:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** { - 266:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** /* Prevent unused argument(s) compilation warning */ - 267:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** UNUSED(htim); - 268:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** - 269:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** /* NOTE : This function Should not be modified, when the callback is needed, - 270:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** the HAL_TIMEx_HallSensor_MspInit could be implemented in the user file - 271:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** */ - 272:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** } - 273:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** - 274:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** /** - 275:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** * @brief DeInitializes TIM Hall Sensor MSP. - 276:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** * @param htim TIM handle - 277:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** * @retval None - 278:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** */ - 279:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** __weak void HAL_TIMEx_HallSensor_MspDeInit(TIM_HandleTypeDef *htim) - 280:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** { - 281:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** /* Prevent unused argument(s) compilation warning */ - 282:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** UNUSED(htim); - 283:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** - 284:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** /* NOTE : This function Should not be modified, when the callback is needed, - 285:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** the HAL_TIMEx_HallSensor_MspDeInit could be implemented in the user file - 286:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** */ - 287:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** } - 288:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** - 289:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** /** - 290:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** * @brief Starts the TIM Hall Sensor Interface. - 291:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** * @param htim TIM Hall Sensor handle - 292:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** * @retval HAL status - 293:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** */ - 294:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** HAL_StatusTypeDef HAL_TIMEx_HallSensor_Start(TIM_HandleTypeDef *htim) - 295:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** { - 296:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** /* Check the parameters */ - 297:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** assert_param(IS_TIM_HALL_INTERFACE_INSTANCE(htim->Instance)); - 298:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** - 299:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** /* Enable the Input Capture channel 1 - 300:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** (in the Hall Sensor Interface the three possible channels that can be used are TIM_CHANNEL_1, T - 301:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** TIM_CCxChannelCmd(htim->Instance, TIM_CHANNEL_1, TIM_CCx_ENABLE); - 302:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** - 303:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** /* Enable the Peripheral */ - 304:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** __HAL_TIM_ENABLE(htim); - 305:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** - 306:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** /* Return function status */ - 307:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** return HAL_OK; - 308:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** } - 309:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** - 310:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** /** - 311:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** * @brief Stops the TIM Hall sensor Interface. - 312:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** * @param htim TIM Hall Sensor handle - 313:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** * @retval HAL status - 314:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** */ - 315:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** HAL_StatusTypeDef HAL_TIMEx_HallSensor_Stop(TIM_HandleTypeDef *htim) - 316:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** { - 317:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** /* Check the parameters */ - 318:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** assert_param(IS_TIM_HALL_INTERFACE_INSTANCE(htim->Instance)); - 319:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** - ARM GAS /tmp/cc365F3j.s page 7 - - - 320:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** /* Disable the Input Capture channels 1, 2 and 3 - 321:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** (in the Hall Sensor Interface the three possible channels that can be used are TIM_CHANNEL_1, T - 322:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** TIM_CCxChannelCmd(htim->Instance, TIM_CHANNEL_1, TIM_CCx_DISABLE); - 323:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** - 324:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** /* Disable the Peripheral */ - 325:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** __HAL_TIM_DISABLE(htim); - 326:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** - 327:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** /* Return function status */ - 328:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** return HAL_OK; - 329:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** } - 330:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** - 331:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** /** - 332:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** * @brief Starts the TIM Hall Sensor Interface in interrupt mode. - 333:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** * @param htim TIM Hall Sensor handle - 334:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** * @retval HAL status - 335:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** */ - 336:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** HAL_StatusTypeDef HAL_TIMEx_HallSensor_Start_IT(TIM_HandleTypeDef *htim) - 337:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** { - 338:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** /* Check the parameters */ - 339:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** assert_param(IS_TIM_HALL_INTERFACE_INSTANCE(htim->Instance)); - 340:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** - 341:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** /* Enable the capture compare Interrupts 1 event */ - 342:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** __HAL_TIM_ENABLE_IT(htim, TIM_IT_CC1); - 343:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** - 344:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** /* Enable the Input Capture channel 1 - 345:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** (in the Hall Sensor Interface the three possible channels that can be used are TIM_CHANNEL_1, T - 346:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** TIM_CCxChannelCmd(htim->Instance, TIM_CHANNEL_1, TIM_CCx_ENABLE); - 347:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** - 348:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** /* Enable the Peripheral */ - 349:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** __HAL_TIM_ENABLE(htim); - 350:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** - 351:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** /* Return function status */ - 352:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** return HAL_OK; - 353:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** } - 354:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** - 355:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** /** - 356:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** * @brief Stops the TIM Hall Sensor Interface in interrupt mode. - 357:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** * @param htim TIM handle - 358:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** * @retval HAL status - 359:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** */ - 360:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** HAL_StatusTypeDef HAL_TIMEx_HallSensor_Stop_IT(TIM_HandleTypeDef *htim) - 361:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** { - 362:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** /* Check the parameters */ - 363:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** assert_param(IS_TIM_HALL_INTERFACE_INSTANCE(htim->Instance)); - 364:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** - 365:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** /* Disable the Input Capture channel 1 - 366:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** (in the Hall Sensor Interface the three possible channels that can be used are TIM_CHANNEL_1, T - 367:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** TIM_CCxChannelCmd(htim->Instance, TIM_CHANNEL_1, TIM_CCx_DISABLE); - 368:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** - 369:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** /* Disable the capture compare Interrupts event */ - 370:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** __HAL_TIM_DISABLE_IT(htim, TIM_IT_CC1); - 371:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** - 372:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** /* Disable the Peripheral */ - 373:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** __HAL_TIM_DISABLE(htim); - 374:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** - 375:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** /* Return function status */ - 376:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** return HAL_OK; - ARM GAS /tmp/cc365F3j.s page 8 - - - 377:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** } - 378:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** - 379:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** /** - 380:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** * @brief Starts the TIM Hall Sensor Interface in DMA mode. - 381:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** * @param htim TIM Hall Sensor handle - 382:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** * @param pData The destination Buffer address. - 383:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** * @param Length The length of data to be transferred from TIM peripheral to memory. - 384:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** * @retval HAL status - 385:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** */ - 386:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** HAL_StatusTypeDef HAL_TIMEx_HallSensor_Start_DMA(TIM_HandleTypeDef *htim, uint32_t *pData, uint16_t - 387:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** { - 388:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** /* Check the parameters */ - 389:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** assert_param(IS_TIM_HALL_INTERFACE_INSTANCE(htim->Instance)); - 390:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** - 391:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** if((htim->State == HAL_TIM_STATE_BUSY)) - 392:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** { - 393:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** return HAL_BUSY; - 394:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** } - 395:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** else if((htim->State == HAL_TIM_STATE_READY)) - 396:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** { - 397:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** if(((uint32_t)pData == 0U ) && (Length > 0U)) - 398:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** { - 399:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** return HAL_ERROR; - 400:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** } - 401:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** else - 402:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** { - 403:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** htim->State = HAL_TIM_STATE_BUSY; - 404:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** } - 405:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** } - 406:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** /* Enable the Input Capture channel 1 - 407:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** (in the Hall Sensor Interface the three possible channels that can be used are TIM_CHANNEL_1, T - 408:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** TIM_CCxChannelCmd(htim->Instance, TIM_CHANNEL_1, TIM_CCx_ENABLE); - 409:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** - 410:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** /* Set the DMA Input Capture 1 Callback */ - 411:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** htim->hdma[TIM_DMA_ID_CC1]->XferCpltCallback = TIM_DMACaptureCplt; - 412:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** /* Set the DMA error callback */ - 413:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** htim->hdma[TIM_DMA_ID_CC1]->XferErrorCallback = TIM_DMAError ; - 414:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** - 415:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** /* Enable the DMA channel for Capture 1*/ - 416:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** HAL_DMA_Start_IT(htim->hdma[TIM_DMA_ID_CC1], (uint32_t)&htim->Instance->CCR1, (uint32_t)pData, Le - 417:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** - 418:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** /* Enable the capture compare 1 Interrupt */ - 419:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** __HAL_TIM_ENABLE_DMA(htim, TIM_DMA_CC1); - 420:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** - 421:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** /* Enable the Peripheral */ - 422:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** __HAL_TIM_ENABLE(htim); - 423:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** - 424:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** /* Return function status */ - 425:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** return HAL_OK; - 426:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** } - 427:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** - 428:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** /** - 429:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** * @brief Stops the TIM Hall Sensor Interface in DMA mode. - 430:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** * @param htim TIM handle - 431:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** * @retval HAL status - 432:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** */ - 433:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** HAL_StatusTypeDef HAL_TIMEx_HallSensor_Stop_DMA(TIM_HandleTypeDef *htim) - ARM GAS /tmp/cc365F3j.s page 9 - - - 434:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** { - 435:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** /* Check the parameters */ - 436:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** assert_param(IS_TIM_HALL_INTERFACE_INSTANCE(htim->Instance)); - 437:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** - 438:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** /* Disable the Input Capture channel 1 - 439:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** (in the Hall Sensor Interface the three possible channels that can be used are TIM_CHANNEL_1, T - 440:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** TIM_CCxChannelCmd(htim->Instance, TIM_CHANNEL_1, TIM_CCx_DISABLE); - 441:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** - 442:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** - 443:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** /* Disable the capture compare Interrupts 1 event */ - 444:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** __HAL_TIM_DISABLE_DMA(htim, TIM_DMA_CC1); - 445:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** - 446:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** /* Disable the Peripheral */ - 447:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** __HAL_TIM_DISABLE(htim); - 448:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** - 449:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** /* Return function status */ - 450:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** return HAL_OK; - 451:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** } - 452:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** - 453:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** /** - 454:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** * @} - 455:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** */ - 456:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** - 457:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** /** @defgroup TIMEx_Exported_Functions_Group2 Timer Complementary Output Compare functions - 458:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** * @brief Timer Complementary Output Compare functions - 459:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** * - 460:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** @verbatim - 461:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** ============================================================================== - 462:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** ##### Timer Complementary Output Compare functions ##### - 463:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** ============================================================================== - 464:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** [..] - 465:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** This section provides functions allowing to: - 466:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** (+) Start the Complementary Output Compare/PWM. - 467:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** (+) Stop the Complementary Output Compare/PWM. - 468:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** (+) Start the Complementary Output Compare/PWM and enable interrupts. - 469:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** (+) Stop the Complementary Output Compare/PWM and disable interrupts. - 470:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** (+) Start the Complementary Output Compare/PWM and enable DMA transfers. - 471:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** (+) Stop the Complementary Output Compare/PWM and disable DMA transfers. - 472:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** - 473:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** @endverbatim - 474:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** * @{ - 475:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** */ - 476:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** - 477:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** /** - 478:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** * @brief Starts the TIM Output Compare signal generation on the complementary - 479:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** * output. - 480:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** * @param htim TIM Output Compare handle - 481:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** * @param Channel TIM Channel to be enabled - 482:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** * This parameter can be one of the following values: - 483:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** * @arg TIM_CHANNEL_1: TIM Channel 1 selected - 484:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** * @arg TIM_CHANNEL_2: TIM Channel 2 selected - 485:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** * @arg TIM_CHANNEL_3: TIM Channel 3 selected - 486:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** * @arg TIM_CHANNEL_4: TIM Channel 4 selected - 487:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** * @retval HAL status - 488:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** */ - 489:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** HAL_StatusTypeDef HAL_TIMEx_OCN_Start(TIM_HandleTypeDef *htim, uint32_t Channel) - 490:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** { - ARM GAS /tmp/cc365F3j.s page 10 - - - 491:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** /* Check the parameters */ - 492:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** assert_param(IS_TIM_CCXN_INSTANCE(htim->Instance, Channel)); - 493:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** - 494:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** /* Enable the Capture compare channel N */ - 495:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** TIM_CCxNChannelCmd(htim->Instance, Channel, TIM_CCxN_ENABLE); - 496:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** - 497:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** /* Enable the Main Ouput */ - 498:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** __HAL_TIM_MOE_ENABLE(htim); - 499:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** - 500:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** /* Enable the Peripheral */ - 501:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** __HAL_TIM_ENABLE(htim); - 502:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** - 503:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** /* Return function status */ - 504:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** return HAL_OK; - 505:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** } - 506:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** - 507:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** /** - 508:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** * @brief Stops the TIM Output Compare signal generation on the complementary - 509:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** * output. - 510:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** * @param htim TIM handle - 511:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** * @param Channel TIM Channel to be disabled - 512:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** * This parameter can be one of the following values: - 513:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** * @arg TIM_CHANNEL_1: TIM Channel 1 selected - 514:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** * @arg TIM_CHANNEL_2: TIM Channel 2 selected - 515:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** * @arg TIM_CHANNEL_3: TIM Channel 3 selected - 516:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** * @arg TIM_CHANNEL_4: TIM Channel 4 selected - 517:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** * @retval HAL status - 518:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** */ - 519:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** HAL_StatusTypeDef HAL_TIMEx_OCN_Stop(TIM_HandleTypeDef *htim, uint32_t Channel) - 520:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** { - 521:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** /* Check the parameters */ - 522:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** assert_param(IS_TIM_CCXN_INSTANCE(htim->Instance, Channel)); - 523:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** - 524:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** /* Disable the Capture compare channel N */ - 525:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** TIM_CCxNChannelCmd(htim->Instance, Channel, TIM_CCxN_DISABLE); - 526:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** - 527:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** /* Disable the Main Ouput */ - 528:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** __HAL_TIM_MOE_DISABLE(htim); - 529:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** - 530:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** /* Disable the Peripheral */ - 531:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** __HAL_TIM_DISABLE(htim); - 532:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** - 533:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** /* Return function status */ - 534:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** return HAL_OK; - 535:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** } - 536:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** - 537:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** /** - 538:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** * @brief Starts the TIM Output Compare signal generation in interrupt mode - 539:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** * on the complementary output. - 540:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** * @param htim TIM OC handle - 541:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** * @param Channel TIM Channel to be enabled - 542:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** * This parameter can be one of the following values: - 543:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** * @arg TIM_CHANNEL_1: TIM Channel 1 selected - 544:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** * @arg TIM_CHANNEL_2: TIM Channel 2 selected - 545:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** * @arg TIM_CHANNEL_3: TIM Channel 3 selected - 546:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** * @arg TIM_CHANNEL_4: TIM Channel 4 selected - 547:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** * @retval HAL status - ARM GAS /tmp/cc365F3j.s page 11 - - - 548:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** */ - 549:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** HAL_StatusTypeDef HAL_TIMEx_OCN_Start_IT(TIM_HandleTypeDef *htim, uint32_t Channel) - 550:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** { - 551:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** /* Check the parameters */ - 552:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** assert_param(IS_TIM_CCXN_INSTANCE(htim->Instance, Channel)); - 553:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** - 554:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** switch (Channel) - 555:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** { - 556:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** case TIM_CHANNEL_1: - 557:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** { - 558:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** /* Enable the TIM Output Compare interrupt */ - 559:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** __HAL_TIM_ENABLE_IT(htim, TIM_IT_CC1); - 560:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** } - 561:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** break; - 562:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** - 563:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** case TIM_CHANNEL_2: - 564:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** { - 565:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** /* Enable the TIM Output Compare interrupt */ - 566:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** __HAL_TIM_ENABLE_IT(htim, TIM_IT_CC2); - 567:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** } - 568:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** break; - 569:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** - 570:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** case TIM_CHANNEL_3: - 571:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** { - 572:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** /* Enable the TIM Output Compare interrupt */ - 573:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** __HAL_TIM_ENABLE_IT(htim, TIM_IT_CC3); - 574:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** } - 575:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** break; - 576:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** - 577:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** case TIM_CHANNEL_4: - 578:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** { - 579:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** /* Enable the TIM Output Compare interrupt */ - 580:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** __HAL_TIM_ENABLE_IT(htim, TIM_IT_CC4); - 581:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** } - 582:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** break; - 583:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** - 584:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** default: - 585:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** break; - 586:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** } - 587:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** - 588:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** /* Enable the TIM Break interrupt */ - 589:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** __HAL_TIM_ENABLE_IT(htim, TIM_IT_BREAK); - 590:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** - 591:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** /* Enable the Capture compare channel N */ - 592:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** TIM_CCxNChannelCmd(htim->Instance, Channel, TIM_CCxN_ENABLE); - 593:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** - 594:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** /* Enable the Main Ouput */ - 595:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** __HAL_TIM_MOE_ENABLE(htim); - 596:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** - 597:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** /* Enable the Peripheral */ - 598:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** __HAL_TIM_ENABLE(htim); - 599:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** - 600:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** /* Return function status */ - 601:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** return HAL_OK; - 602:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** } - 603:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** - 604:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** /** - ARM GAS /tmp/cc365F3j.s page 12 - - - 605:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** * @brief Stops the TIM Output Compare signal generation in interrupt mode - 606:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** * on the complementary output. - 607:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** * @param htim TIM Output Compare handle - 608:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** * @param Channel TIM Channel to be disabled - 609:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** * This parameter can be one of the following values: - 610:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** * @arg TIM_CHANNEL_1: TIM Channel 1 selected - 611:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** * @arg TIM_CHANNEL_2: TIM Channel 2 selected - 612:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** * @arg TIM_CHANNEL_3: TIM Channel 3 selected - 613:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** * @arg TIM_CHANNEL_4: TIM Channel 4 selected - 614:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** * @retval HAL status - 615:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** */ - 616:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** HAL_StatusTypeDef HAL_TIMEx_OCN_Stop_IT(TIM_HandleTypeDef *htim, uint32_t Channel) - 617:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** { - 618:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** uint32_t tmpccer = 0U; - 619:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** - 620:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** /* Check the parameters */ - 621:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** assert_param(IS_TIM_CCXN_INSTANCE(htim->Instance, Channel)); - 622:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** - 623:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** switch (Channel) - 624:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** { - 625:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** case TIM_CHANNEL_1: - 626:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** { - 627:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** /* Disable the TIM Output Compare interrupt */ - 628:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** __HAL_TIM_DISABLE_IT(htim, TIM_IT_CC1); - 629:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** } - 630:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** break; - 631:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** - 632:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** case TIM_CHANNEL_2: - 633:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** { - 634:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** /* Disable the TIM Output Compare interrupt */ - 635:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** __HAL_TIM_DISABLE_IT(htim, TIM_IT_CC2); - 636:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** } - 637:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** break; - 638:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** - 639:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** case TIM_CHANNEL_3: - 640:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** { - 641:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** /* Disable the TIM Output Compare interrupt */ - 642:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** __HAL_TIM_DISABLE_IT(htim, TIM_IT_CC3); - 643:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** } - 644:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** break; - 645:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** - 646:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** case TIM_CHANNEL_4: - 647:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** { - 648:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** /* Disable the TIM Output Compare interrupt */ - 649:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** __HAL_TIM_DISABLE_IT(htim, TIM_IT_CC4); - 650:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** } - 651:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** break; - 652:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** - 653:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** default: - 654:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** break; - 655:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** } - 656:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** - 657:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** /* Disable the Capture compare channel N */ - 658:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** TIM_CCxNChannelCmd(htim->Instance, Channel, TIM_CCxN_DISABLE); - 659:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** - 660:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** /* Disable the TIM Break interrupt (only if no more channel is active) */ - 661:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** tmpccer = htim->Instance->CCER; - ARM GAS /tmp/cc365F3j.s page 13 - - - 662:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** if ((tmpccer & (TIM_CCER_CC1NE | TIM_CCER_CC2NE | TIM_CCER_CC3NE)) == RESET) - 663:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** { - 664:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** __HAL_TIM_DISABLE_IT(htim, TIM_IT_BREAK); - 665:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** } - 666:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** - 667:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** /* Disable the Main Ouput */ - 668:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** __HAL_TIM_MOE_DISABLE(htim); - 669:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** - 670:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** /* Disable the Peripheral */ - 671:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** __HAL_TIM_DISABLE(htim); - 672:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** - 673:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** /* Return function status */ - 674:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** return HAL_OK; - 675:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** } - 676:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** - 677:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** /** - 678:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** * @brief Starts the TIM Output Compare signal generation in DMA mode - 679:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** * on the complementary output. - 680:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** * @param htim TIM Output Compare handle - 681:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** * @param Channel TIM Channel to be enabled - 682:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** * This parameter can be one of the following values: - 683:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** * @arg TIM_CHANNEL_1: TIM Channel 1 selected - 684:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** * @arg TIM_CHANNEL_2: TIM Channel 2 selected - 685:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** * @arg TIM_CHANNEL_3: TIM Channel 3 selected - 686:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** * @arg TIM_CHANNEL_4: TIM Channel 4 selected - 687:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** * @param pData The source Buffer address. - 688:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** * @param Length The length of data to be transferred from memory to TIM peripheral - 689:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** * @retval HAL status - 690:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** */ - 691:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** HAL_StatusTypeDef HAL_TIMEx_OCN_Start_DMA(TIM_HandleTypeDef *htim, uint32_t Channel, uint32_t *pDat - 692:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** { - 693:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** /* Check the parameters */ - 694:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** assert_param(IS_TIM_CCXN_INSTANCE(htim->Instance, Channel)); - 695:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** - 696:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** if((htim->State == HAL_TIM_STATE_BUSY)) - 697:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** { - 698:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** return HAL_BUSY; - 699:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** } - 700:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** else if((htim->State == HAL_TIM_STATE_READY)) - 701:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** { - 702:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** if(((uint32_t)pData == 0U ) && (Length > 0U)) - 703:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** { - 704:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** return HAL_ERROR; - 705:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** } - 706:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** else - 707:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** { - 708:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** htim->State = HAL_TIM_STATE_BUSY; - 709:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** } - 710:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** } - 711:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** switch (Channel) - 712:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** { - 713:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** case TIM_CHANNEL_1: - 714:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** { - 715:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** /* Set the DMA Period elapsed callback */ - 716:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** htim->hdma[TIM_DMA_ID_CC1]->XferCpltCallback = TIM_DMADelayPulseCplt; - 717:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** - 718:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** /* Set the DMA error callback */ - ARM GAS /tmp/cc365F3j.s page 14 - - - 719:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** htim->hdma[TIM_DMA_ID_CC1]->XferErrorCallback = TIM_DMAError ; - 720:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** - 721:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** /* Enable the DMA channel */ - 722:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** HAL_DMA_Start_IT(htim->hdma[TIM_DMA_ID_CC1], (uint32_t)pData, (uint32_t)&htim->Instance->CCR1 - 723:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** - 724:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** /* Enable the TIM Output Compare DMA request */ - 725:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** __HAL_TIM_ENABLE_DMA(htim, TIM_DMA_CC1); - 726:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** } - 727:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** break; - 728:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** - 729:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** case TIM_CHANNEL_2: - 730:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** { - 731:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** /* Set the DMA Period elapsed callback */ - 732:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** htim->hdma[TIM_DMA_ID_CC2]->XferCpltCallback = TIM_DMADelayPulseCplt; - 733:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** - 734:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** /* Set the DMA error callback */ - 735:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** htim->hdma[TIM_DMA_ID_CC2]->XferErrorCallback = TIM_DMAError ; - 736:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** - 737:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** /* Enable the DMA channel */ - 738:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** HAL_DMA_Start_IT(htim->hdma[TIM_DMA_ID_CC2], (uint32_t)pData, (uint32_t)&htim->Instance->CCR2 - 739:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** - 740:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** /* Enable the TIM Output Compare DMA request */ - 741:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** __HAL_TIM_ENABLE_DMA(htim, TIM_DMA_CC2); - 742:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** } - 743:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** break; - 744:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** - 745:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** case TIM_CHANNEL_3: - 746:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** { - 747:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** /* Set the DMA Period elapsed callback */ - 748:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** htim->hdma[TIM_DMA_ID_CC3]->XferCpltCallback = TIM_DMADelayPulseCplt; - 749:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** - 750:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** /* Set the DMA error callback */ - 751:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** htim->hdma[TIM_DMA_ID_CC3]->XferErrorCallback = TIM_DMAError ; - 752:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** - 753:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** /* Enable the DMA channel */ - 754:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** HAL_DMA_Start_IT(htim->hdma[TIM_DMA_ID_CC3], (uint32_t)pData, (uint32_t)&htim->Instance->CCR3 - 755:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** - 756:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** /* Enable the TIM Output Compare DMA request */ - 757:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** __HAL_TIM_ENABLE_DMA(htim, TIM_DMA_CC3); - 758:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** } - 759:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** break; - 760:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** - 761:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** case TIM_CHANNEL_4: - 762:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** { - 763:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** /* Set the DMA Period elapsed callback */ - 764:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** htim->hdma[TIM_DMA_ID_CC4]->XferCpltCallback = TIM_DMADelayPulseCplt; - 765:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** - 766:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** /* Set the DMA error callback */ - 767:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** htim->hdma[TIM_DMA_ID_CC4]->XferErrorCallback = TIM_DMAError ; - 768:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** - 769:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** /* Enable the DMA channel */ - 770:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** HAL_DMA_Start_IT(htim->hdma[TIM_DMA_ID_CC4], (uint32_t)pData, (uint32_t)&htim->Instance->CCR4 - 771:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** - 772:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** /* Enable the TIM Output Compare DMA request */ - 773:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** __HAL_TIM_ENABLE_DMA(htim, TIM_DMA_CC4); - 774:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** } - 775:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** break; - ARM GAS /tmp/cc365F3j.s page 15 - - - 776:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** - 777:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** default: - 778:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** break; - 779:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** } - 780:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** - 781:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** /* Enable the Capture compare channel N */ - 782:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** TIM_CCxNChannelCmd(htim->Instance, Channel, TIM_CCxN_ENABLE); - 783:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** - 784:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** /* Enable the Main Ouput */ - 785:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** __HAL_TIM_MOE_ENABLE(htim); - 786:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** - 787:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** /* Enable the Peripheral */ - 788:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** __HAL_TIM_ENABLE(htim); - 789:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** - 790:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** /* Return function status */ - 791:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** return HAL_OK; - 792:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** } - 793:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** - 794:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** /** - 795:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** * @brief Stops the TIM Output Compare signal generation in DMA mode - 796:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** * on the complementary output. - 797:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** * @param htim TIM Output Compare handle - 798:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** * @param Channel TIM Channel to be disabled - 799:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** * This parameter can be one of the following values: - 800:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** * @arg TIM_CHANNEL_1: TIM Channel 1 selected - 801:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** * @arg TIM_CHANNEL_2: TIM Channel 2 selected - 802:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** * @arg TIM_CHANNEL_3: TIM Channel 3 selected - 803:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** * @arg TIM_CHANNEL_4: TIM Channel 4 selected - 804:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** * @retval HAL status - 805:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** */ - 806:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** HAL_StatusTypeDef HAL_TIMEx_OCN_Stop_DMA(TIM_HandleTypeDef *htim, uint32_t Channel) - 807:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** { - 808:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** /* Check the parameters */ - 809:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** assert_param(IS_TIM_CCXN_INSTANCE(htim->Instance, Channel)); - 810:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** - 811:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** switch (Channel) - 812:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** { - 813:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** case TIM_CHANNEL_1: - 814:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** { - 815:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** /* Disable the TIM Output Compare DMA request */ - 816:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** __HAL_TIM_DISABLE_DMA(htim, TIM_DMA_CC1); - 817:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** } - 818:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** break; - 819:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** - 820:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** case TIM_CHANNEL_2: - 821:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** { - 822:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** /* Disable the TIM Output Compare DMA request */ - 823:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** __HAL_TIM_DISABLE_DMA(htim, TIM_DMA_CC2); - 824:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** } - 825:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** break; - 826:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** - 827:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** case TIM_CHANNEL_3: - 828:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** { - 829:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** /* Disable the TIM Output Compare DMA request */ - 830:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** __HAL_TIM_DISABLE_DMA(htim, TIM_DMA_CC3); - 831:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** } - 832:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** break; - ARM GAS /tmp/cc365F3j.s page 16 - - - 833:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** - 834:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** case TIM_CHANNEL_4: - 835:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** { - 836:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** /* Disable the TIM Output Compare interrupt */ - 837:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** __HAL_TIM_DISABLE_DMA(htim, TIM_DMA_CC4); - 838:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** } - 839:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** break; - 840:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** - 841:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** default: - 842:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** break; - 843:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** } - 844:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** - 845:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** /* Disable the Capture compare channel N */ - 846:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** TIM_CCxNChannelCmd(htim->Instance, Channel, TIM_CCxN_DISABLE); - 847:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** - 848:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** /* Disable the Main Ouput */ - 849:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** __HAL_TIM_MOE_DISABLE(htim); - 850:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** - 851:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** /* Disable the Peripheral */ - 852:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** __HAL_TIM_DISABLE(htim); - 853:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** - 854:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** /* Change the htim state */ - 855:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** htim->State = HAL_TIM_STATE_READY; - 856:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** - 857:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** /* Return function status */ - 858:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** return HAL_OK; - 859:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** } - 860:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** - 861:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** /** - 862:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** * @} - 863:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** */ - 864:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** - 865:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** /** @defgroup TIMEx_Exported_Functions_Group3 Timer Complementary PWM functions - 866:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** * @brief Timer Complementary PWM functions - 867:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** * - 868:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** @verbatim - 869:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** ============================================================================== - 870:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** ##### Timer Complementary PWM functions ##### - 871:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** ============================================================================== - 872:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** [..] - 873:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** This section provides functions allowing to: - 874:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** (+) Start the Complementary PWM. - 875:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** (+) Stop the Complementary PWM. - 876:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** (+) Start the Complementary PWM and enable interrupts. - 877:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** (+) Stop the Complementary PWM and disable interrupts. - 878:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** (+) Start the Complementary PWM and enable DMA transfers. - 879:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** (+) Stop the Complementary PWM and disable DMA transfers. - 880:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** (+) Start the Complementary Input Capture measurement. - 881:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** (+) Stop the Complementary Input Capture. - 882:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** (+) Start the Complementary Input Capture and enable interrupts. - 883:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** (+) Stop the Complementary Input Capture and disable interrupts. - 884:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** (+) Start the Complementary Input Capture and enable DMA transfers. - 885:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** (+) Stop the Complementary Input Capture and disable DMA transfers. - 886:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** (+) Start the Complementary One Pulse generation. - 887:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** (+) Stop the Complementary One Pulse. - 888:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** (+) Start the Complementary One Pulse and enable interrupts. - 889:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** (+) Stop the Complementary One Pulse and disable interrupts. - ARM GAS /tmp/cc365F3j.s page 17 - - - 890:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** - 891:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** @endverbatim - 892:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** * @{ - 893:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** */ - 894:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** - 895:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** /** - 896:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** * @brief Starts the PWM signal generation on the complementary output. - 897:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** * @param htim TIM handle - 898:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** * @param Channel TIM Channel to be enabled - 899:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** * This parameter can be one of the following values: - 900:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** * @arg TIM_CHANNEL_1: TIM Channel 1 selected - 901:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** * @arg TIM_CHANNEL_2: TIM Channel 2 selected - 902:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** * @arg TIM_CHANNEL_3: TIM Channel 3 selected - 903:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** * @arg TIM_CHANNEL_4: TIM Channel 4 selected - 904:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** * @retval HAL status - 905:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** */ - 906:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** HAL_StatusTypeDef HAL_TIMEx_PWMN_Start(TIM_HandleTypeDef *htim, uint32_t Channel) - 907:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** { - 908:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** /* Check the parameters */ - 909:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** assert_param(IS_TIM_CCXN_INSTANCE(htim->Instance, Channel)); - 910:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** - 911:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** /* Enable the complementary PWM output */ - 912:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** TIM_CCxNChannelCmd(htim->Instance, Channel, TIM_CCxN_ENABLE); - 913:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** - 914:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** /* Enable the Main Ouput */ - 915:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** __HAL_TIM_MOE_ENABLE(htim); - 916:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** - 917:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** /* Enable the Peripheral */ - 918:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** __HAL_TIM_ENABLE(htim); - 919:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** - 920:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** /* Return function status */ - 921:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** return HAL_OK; - 922:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** } - 923:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** - 924:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** /** - 925:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** * @brief Stops the PWM signal generation on the complementary output. - 926:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** * @param htim TIM handle - 927:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** * @param Channel TIM Channel to be disabled - 928:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** * This parameter can be one of the following values: - 929:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** * @arg TIM_CHANNEL_1: TIM Channel 1 selected - 930:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** * @arg TIM_CHANNEL_2: TIM Channel 2 selected - 931:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** * @arg TIM_CHANNEL_3: TIM Channel 3 selected - 932:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** * @arg TIM_CHANNEL_4: TIM Channel 4 selected - 933:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** * @retval HAL status - 934:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** */ - 935:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** HAL_StatusTypeDef HAL_TIMEx_PWMN_Stop(TIM_HandleTypeDef *htim, uint32_t Channel) - 936:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** { - 937:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** /* Check the parameters */ - 938:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** assert_param(IS_TIM_CCXN_INSTANCE(htim->Instance, Channel)); - 939:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** - 940:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** /* Disable the complementary PWM output */ - 941:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** TIM_CCxNChannelCmd(htim->Instance, Channel, TIM_CCxN_DISABLE); - 942:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** - 943:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** /* Disable the Main Ouput */ - 944:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** __HAL_TIM_MOE_DISABLE(htim); - 945:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** - 946:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** /* Disable the Peripheral */ - ARM GAS /tmp/cc365F3j.s page 18 - - - 947:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** __HAL_TIM_DISABLE(htim); - 948:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** - 949:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** /* Return function status */ - 950:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** return HAL_OK; - 951:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** } - 952:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** - 953:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** /** - 954:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** * @brief Starts the PWM signal generation in interrupt mode on the - 955:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** * complementary output. - 956:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** * @param htim TIM handle - 957:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** * @param Channel TIM Channel to be disabled - 958:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** * This parameter can be one of the following values: - 959:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** * @arg TIM_CHANNEL_1: TIM Channel 1 selected - 960:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** * @arg TIM_CHANNEL_2: TIM Channel 2 selected - 961:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** * @arg TIM_CHANNEL_3: TIM Channel 3 selected - 962:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** * @arg TIM_CHANNEL_4: TIM Channel 4 selected - 963:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** * @retval HAL status - 964:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** */ - 965:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** HAL_StatusTypeDef HAL_TIMEx_PWMN_Start_IT(TIM_HandleTypeDef *htim, uint32_t Channel) - 966:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** { - 967:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** /* Check the parameters */ - 968:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** assert_param(IS_TIM_CCXN_INSTANCE(htim->Instance, Channel)); - 969:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** - 970:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** switch (Channel) - 971:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** { - 972:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** case TIM_CHANNEL_1: - 973:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** { - 974:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** /* Enable the TIM Capture/Compare 1 interrupt */ - 975:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** __HAL_TIM_ENABLE_IT(htim, TIM_IT_CC1); - 976:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** } - 977:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** break; - 978:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** - 979:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** case TIM_CHANNEL_2: - 980:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** { - 981:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** /* Enable the TIM Capture/Compare 2 interrupt */ - 982:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** __HAL_TIM_ENABLE_IT(htim, TIM_IT_CC2); - 983:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** } - 984:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** break; - 985:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** - 986:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** case TIM_CHANNEL_3: - 987:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** { - 988:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** /* Enable the TIM Capture/Compare 3 interrupt */ - 989:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** __HAL_TIM_ENABLE_IT(htim, TIM_IT_CC3); - 990:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** } - 991:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** break; - 992:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** - 993:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** case TIM_CHANNEL_4: - 994:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** { - 995:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** /* Enable the TIM Capture/Compare 4 interrupt */ - 996:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** __HAL_TIM_ENABLE_IT(htim, TIM_IT_CC4); - 997:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** } - 998:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** break; - 999:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** -1000:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** default: -1001:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** break; -1002:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** } -1003:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** - ARM GAS /tmp/cc365F3j.s page 19 - - -1004:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** /* Enable the TIM Break interrupt */ -1005:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** __HAL_TIM_ENABLE_IT(htim, TIM_IT_BREAK); -1006:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** -1007:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** /* Enable the complementary PWM output */ -1008:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** TIM_CCxNChannelCmd(htim->Instance, Channel, TIM_CCxN_ENABLE); -1009:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** -1010:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** /* Enable the Main Ouput */ -1011:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** __HAL_TIM_MOE_ENABLE(htim); -1012:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** -1013:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** /* Enable the Peripheral */ -1014:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** __HAL_TIM_ENABLE(htim); -1015:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** -1016:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** /* Return function status */ -1017:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** return HAL_OK; -1018:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** } -1019:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** -1020:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** /** -1021:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** * @brief Stops the PWM signal generation in interrupt mode on the -1022:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** * complementary output. -1023:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** * @param htim TIM handle -1024:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** * @param Channel TIM Channel to be disabled -1025:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** * This parameter can be one of the following values: -1026:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** * @arg TIM_CHANNEL_1: TIM Channel 1 selected -1027:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** * @arg TIM_CHANNEL_2: TIM Channel 2 selected -1028:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** * @arg TIM_CHANNEL_3: TIM Channel 3 selected -1029:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** * @arg TIM_CHANNEL_4: TIM Channel 4 selected -1030:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** * @retval HAL status -1031:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** */ -1032:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** HAL_StatusTypeDef HAL_TIMEx_PWMN_Stop_IT (TIM_HandleTypeDef *htim, uint32_t Channel) -1033:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** { -1034:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** uint32_t tmpccer = 0U; -1035:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** -1036:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** /* Check the parameters */ -1037:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** assert_param(IS_TIM_CCXN_INSTANCE(htim->Instance, Channel)); -1038:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** -1039:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** switch (Channel) -1040:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** { -1041:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** case TIM_CHANNEL_1: -1042:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** { -1043:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** /* Disable the TIM Capture/Compare 1 interrupt */ -1044:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** __HAL_TIM_DISABLE_IT(htim, TIM_IT_CC1); -1045:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** } -1046:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** break; -1047:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** -1048:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** case TIM_CHANNEL_2: -1049:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** { -1050:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** /* Disable the TIM Capture/Compare 2 interrupt */ -1051:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** __HAL_TIM_DISABLE_IT(htim, TIM_IT_CC2); -1052:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** } -1053:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** break; -1054:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** -1055:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** case TIM_CHANNEL_3: -1056:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** { -1057:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** /* Disable the TIM Capture/Compare 3 interrupt */ -1058:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** __HAL_TIM_DISABLE_IT(htim, TIM_IT_CC3); -1059:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** } -1060:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** break; - ARM GAS /tmp/cc365F3j.s page 20 - - -1061:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** -1062:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** case TIM_CHANNEL_4: -1063:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** { -1064:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** /* Disable the TIM Capture/Compare 3 interrupt */ -1065:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** __HAL_TIM_DISABLE_IT(htim, TIM_IT_CC4); -1066:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** } -1067:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** break; -1068:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** -1069:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** default: -1070:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** break; -1071:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** } -1072:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** -1073:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** /* Disable the complementary PWM output */ -1074:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** TIM_CCxNChannelCmd(htim->Instance, Channel, TIM_CCxN_DISABLE); -1075:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** -1076:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** /* Disable the TIM Break interrupt (only if no more channel is active) */ -1077:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** tmpccer = htim->Instance->CCER; -1078:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** if ((tmpccer & (TIM_CCER_CC1NE | TIM_CCER_CC2NE | TIM_CCER_CC3NE)) == RESET) -1079:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** { -1080:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** __HAL_TIM_DISABLE_IT(htim, TIM_IT_BREAK); -1081:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** } -1082:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** -1083:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** /* Disable the Main Ouput */ -1084:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** __HAL_TIM_MOE_DISABLE(htim); -1085:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** -1086:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** /* Disable the Peripheral */ -1087:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** __HAL_TIM_DISABLE(htim); -1088:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** -1089:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** /* Return function status */ -1090:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** return HAL_OK; -1091:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** } -1092:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** -1093:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** /** -1094:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** * @brief Starts the TIM PWM signal generation in DMA mode on the -1095:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** * complementary output -1096:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** * @param htim TIM handle -1097:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** * @param Channel TIM Channel to be enabled -1098:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** * This parameter can be one of the following values: -1099:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** * @arg TIM_CHANNEL_1: TIM Channel 1 selected -1100:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** * @arg TIM_CHANNEL_2: TIM Channel 2 selected -1101:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** * @arg TIM_CHANNEL_3: TIM Channel 3 selected -1102:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** * @arg TIM_CHANNEL_4: TIM Channel 4 selected -1103:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** * @param pData The source Buffer address. -1104:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** * @param Length The length of data to be transferred from memory to TIM peripheral -1105:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** * @retval HAL status -1106:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** */ -1107:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** HAL_StatusTypeDef HAL_TIMEx_PWMN_Start_DMA(TIM_HandleTypeDef *htim, uint32_t Channel, uint32_t *pDa -1108:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** { -1109:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** /* Check the parameters */ -1110:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** assert_param(IS_TIM_CCXN_INSTANCE(htim->Instance, Channel)); -1111:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** -1112:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** if((htim->State == HAL_TIM_STATE_BUSY)) -1113:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** { -1114:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** return HAL_BUSY; -1115:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** } -1116:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** else if((htim->State == HAL_TIM_STATE_READY)) -1117:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** { - ARM GAS /tmp/cc365F3j.s page 21 - - -1118:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** if(((uint32_t)pData == 0U ) && (Length > 0U)) -1119:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** { -1120:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** return HAL_ERROR; -1121:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** } -1122:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** else -1123:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** { -1124:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** htim->State = HAL_TIM_STATE_BUSY; -1125:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** } -1126:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** } -1127:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** switch (Channel) -1128:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** { -1129:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** case TIM_CHANNEL_1: -1130:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** { -1131:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** /* Set the DMA Period elapsed callback */ -1132:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** htim->hdma[TIM_DMA_ID_CC1]->XferCpltCallback = TIM_DMADelayPulseCplt; -1133:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** -1134:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** /* Set the DMA error callback */ -1135:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** htim->hdma[TIM_DMA_ID_CC1]->XferErrorCallback = TIM_DMAError ; -1136:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** -1137:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** /* Enable the DMA channel */ -1138:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** HAL_DMA_Start_IT(htim->hdma[TIM_DMA_ID_CC1], (uint32_t)pData, (uint32_t)&htim->Instance->CCR1 -1139:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** -1140:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** /* Enable the TIM Capture/Compare 1 DMA request */ -1141:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** __HAL_TIM_ENABLE_DMA(htim, TIM_DMA_CC1); -1142:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** } -1143:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** break; -1144:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** -1145:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** case TIM_CHANNEL_2: -1146:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** { -1147:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** /* Set the DMA Period elapsed callback */ -1148:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** htim->hdma[TIM_DMA_ID_CC2]->XferCpltCallback = TIM_DMADelayPulseCplt; -1149:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** -1150:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** /* Set the DMA error callback */ -1151:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** htim->hdma[TIM_DMA_ID_CC2]->XferErrorCallback = TIM_DMAError ; -1152:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** -1153:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** /* Enable the DMA channel */ -1154:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** HAL_DMA_Start_IT(htim->hdma[TIM_DMA_ID_CC2], (uint32_t)pData, (uint32_t)&htim->Instance->CCR2 -1155:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** -1156:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** /* Enable the TIM Capture/Compare 2 DMA request */ -1157:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** __HAL_TIM_ENABLE_DMA(htim, TIM_DMA_CC2); -1158:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** } -1159:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** break; -1160:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** -1161:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** case TIM_CHANNEL_3: -1162:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** { -1163:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** /* Set the DMA Period elapsed callback */ -1164:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** htim->hdma[TIM_DMA_ID_CC3]->XferCpltCallback = TIM_DMADelayPulseCplt; -1165:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** -1166:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** /* Set the DMA error callback */ -1167:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** htim->hdma[TIM_DMA_ID_CC3]->XferErrorCallback = TIM_DMAError ; -1168:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** -1169:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** /* Enable the DMA channel */ -1170:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** HAL_DMA_Start_IT(htim->hdma[TIM_DMA_ID_CC3], (uint32_t)pData, (uint32_t)&htim->Instance->CCR3 -1171:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** -1172:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** /* Enable the TIM Capture/Compare 3 DMA request */ -1173:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** __HAL_TIM_ENABLE_DMA(htim, TIM_DMA_CC3); -1174:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** } - ARM GAS /tmp/cc365F3j.s page 22 - - -1175:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** break; -1176:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** -1177:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** case TIM_CHANNEL_4: -1178:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** { -1179:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** /* Set the DMA Period elapsed callback */ -1180:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** htim->hdma[TIM_DMA_ID_CC4]->XferCpltCallback = TIM_DMADelayPulseCplt; -1181:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** -1182:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** /* Set the DMA error callback */ -1183:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** htim->hdma[TIM_DMA_ID_CC4]->XferErrorCallback = TIM_DMAError ; -1184:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** -1185:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** /* Enable the DMA channel */ -1186:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** HAL_DMA_Start_IT(htim->hdma[TIM_DMA_ID_CC4], (uint32_t)pData, (uint32_t)&htim->Instance->CCR4 -1187:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** -1188:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** /* Enable the TIM Capture/Compare 4 DMA request */ -1189:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** __HAL_TIM_ENABLE_DMA(htim, TIM_DMA_CC4); -1190:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** } -1191:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** break; -1192:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** -1193:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** default: -1194:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** break; -1195:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** } -1196:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** -1197:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** /* Enable the complementary PWM output */ -1198:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** TIM_CCxNChannelCmd(htim->Instance, Channel, TIM_CCxN_ENABLE); -1199:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** -1200:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** /* Enable the Main Ouput */ -1201:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** __HAL_TIM_MOE_ENABLE(htim); -1202:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** -1203:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** /* Enable the Peripheral */ -1204:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** __HAL_TIM_ENABLE(htim); -1205:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** -1206:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** /* Return function status */ -1207:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** return HAL_OK; -1208:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** } -1209:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** -1210:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** /** -1211:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** * @brief Stops the TIM PWM signal generation in DMA mode on the complementary -1212:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** * output -1213:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** * @param htim TIM handle -1214:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** * @param Channel TIM Channel to be disabled -1215:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** * This parameter can be one of the following values: -1216:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** * @arg TIM_CHANNEL_1: TIM Channel 1 selected -1217:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** * @arg TIM_CHANNEL_2: TIM Channel 2 selected -1218:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** * @arg TIM_CHANNEL_3: TIM Channel 3 selected -1219:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** * @arg TIM_CHANNEL_4: TIM Channel 4 selected -1220:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** * @retval HAL status -1221:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** */ -1222:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** HAL_StatusTypeDef HAL_TIMEx_PWMN_Stop_DMA(TIM_HandleTypeDef *htim, uint32_t Channel) -1223:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** { -1224:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** /* Check the parameters */ -1225:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** assert_param(IS_TIM_CCXN_INSTANCE(htim->Instance, Channel)); -1226:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** -1227:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** switch (Channel) -1228:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** { -1229:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** case TIM_CHANNEL_1: -1230:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** { -1231:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** /* Disable the TIM Capture/Compare 1 DMA request */ - ARM GAS /tmp/cc365F3j.s page 23 - - -1232:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** __HAL_TIM_DISABLE_DMA(htim, TIM_DMA_CC1); -1233:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** } -1234:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** break; -1235:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** -1236:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** case TIM_CHANNEL_2: -1237:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** { -1238:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** /* Disable the TIM Capture/Compare 2 DMA request */ -1239:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** __HAL_TIM_DISABLE_DMA(htim, TIM_DMA_CC2); -1240:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** } -1241:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** break; -1242:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** -1243:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** case TIM_CHANNEL_3: -1244:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** { -1245:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** /* Disable the TIM Capture/Compare 3 DMA request */ -1246:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** __HAL_TIM_DISABLE_DMA(htim, TIM_DMA_CC3); -1247:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** } -1248:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** break; -1249:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** -1250:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** case TIM_CHANNEL_4: -1251:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** { -1252:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** /* Disable the TIM Capture/Compare 4 DMA request */ -1253:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** __HAL_TIM_DISABLE_DMA(htim, TIM_DMA_CC4); -1254:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** } -1255:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** break; -1256:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** -1257:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** default: -1258:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** break; -1259:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** } -1260:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** -1261:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** /* Disable the complementary PWM output */ -1262:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** TIM_CCxNChannelCmd(htim->Instance, Channel, TIM_CCxN_DISABLE); -1263:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** -1264:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** /* Disable the Main Ouput */ -1265:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** __HAL_TIM_MOE_DISABLE(htim); -1266:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** -1267:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** /* Disable the Peripheral */ -1268:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** __HAL_TIM_DISABLE(htim); -1269:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** -1270:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** /* Change the htim state */ -1271:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** htim->State = HAL_TIM_STATE_READY; -1272:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** -1273:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** /* Return function status */ -1274:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** return HAL_OK; -1275:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** } -1276:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** -1277:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** /** -1278:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** * @} -1279:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** */ -1280:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** -1281:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** /** @defgroup TIMEx_Exported_Functions_Group4 Timer Complementary One Pulse functions -1282:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** * @brief Timer Complementary One Pulse functions -1283:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** * -1284:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** @verbatim -1285:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** ============================================================================== -1286:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** ##### Timer Complementary One Pulse functions ##### -1287:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** ============================================================================== -1288:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** [..] - ARM GAS /tmp/cc365F3j.s page 24 - - -1289:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** This section provides functions allowing to: -1290:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** (+) Start the Complementary One Pulse generation. -1291:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** (+) Stop the Complementary One Pulse. -1292:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** (+) Start the Complementary One Pulse and enable interrupts. -1293:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** (+) Stop the Complementary One Pulse and disable interrupts. -1294:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** -1295:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** @endverbatim -1296:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** * @{ -1297:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** */ -1298:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** -1299:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** /** -1300:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** * @brief Starts the TIM One Pulse signal generation on the complemetary -1301:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** * output. -1302:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** * @param htim TIM One Pulse handle -1303:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** * @param OutputChannel TIM Channel to be enabled -1304:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** * This parameter can be one of the following values: -1305:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** * @arg TIM_CHANNEL_1: TIM Channel 1 selected -1306:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** * @arg TIM_CHANNEL_2: TIM Channel 2 selected -1307:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** * @retval HAL status -1308:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** */ -1309:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** HAL_StatusTypeDef HAL_TIMEx_OnePulseN_Start(TIM_HandleTypeDef *htim, uint32_t OutputChannel) -1310:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** { -1311:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** /* Check the parameters */ -1312:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** assert_param(IS_TIM_CCXN_INSTANCE(htim->Instance, OutputChannel)); -1313:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** -1314:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** /* Enable the complementary One Pulse output */ -1315:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** TIM_CCxNChannelCmd(htim->Instance, OutputChannel, TIM_CCxN_ENABLE); -1316:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** -1317:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** /* Enable the Main Ouput */ -1318:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** __HAL_TIM_MOE_ENABLE(htim); -1319:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** -1320:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** /* Return function status */ -1321:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** return HAL_OK; -1322:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** } -1323:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** -1324:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** /** -1325:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** * @brief Stops the TIM One Pulse signal generation on the complementary -1326:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** * output. -1327:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** * @param htim TIM One Pulse handle -1328:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** * @param OutputChannel TIM Channel to be disabled -1329:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** * This parameter can be one of the following values: -1330:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** * @arg TIM_CHANNEL_1: TIM Channel 1 selected -1331:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** * @arg TIM_CHANNEL_2: TIM Channel 2 selected -1332:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** * @retval HAL status -1333:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** */ -1334:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** HAL_StatusTypeDef HAL_TIMEx_OnePulseN_Stop(TIM_HandleTypeDef *htim, uint32_t OutputChannel) -1335:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** { -1336:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** -1337:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** /* Check the parameters */ -1338:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** assert_param(IS_TIM_CCXN_INSTANCE(htim->Instance, OutputChannel)); -1339:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** -1340:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** /* Disable the complementary One Pulse output */ -1341:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** TIM_CCxNChannelCmd(htim->Instance, OutputChannel, TIM_CCxN_DISABLE); -1342:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** -1343:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** /* Disable the Main Ouput */ -1344:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** __HAL_TIM_MOE_DISABLE(htim); -1345:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** - ARM GAS /tmp/cc365F3j.s page 25 - - -1346:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** /* Disable the Peripheral */ -1347:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** __HAL_TIM_DISABLE(htim); -1348:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** -1349:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** /* Return function status */ -1350:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** return HAL_OK; -1351:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** } -1352:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** -1353:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** /** -1354:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** * @brief Starts the TIM One Pulse signal generation in interrupt mode on the -1355:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** * complementary channel. -1356:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** * @param htim TIM One Pulse handle -1357:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** * @param OutputChannel TIM Channel to be enabled -1358:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** * This parameter can be one of the following values: -1359:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** * @arg TIM_CHANNEL_1: TIM Channel 1 selected -1360:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** * @arg TIM_CHANNEL_2: TIM Channel 2 selected -1361:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** * @retval HAL status -1362:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** */ -1363:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** HAL_StatusTypeDef HAL_TIMEx_OnePulseN_Start_IT(TIM_HandleTypeDef *htim, uint32_t OutputChannel) -1364:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** { -1365:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** /* Check the parameters */ -1366:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** assert_param(IS_TIM_CCXN_INSTANCE(htim->Instance, OutputChannel)); -1367:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** -1368:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** /* Enable the TIM Capture/Compare 1 interrupt */ -1369:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** __HAL_TIM_ENABLE_IT(htim, TIM_IT_CC1); -1370:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** -1371:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** /* Enable the TIM Capture/Compare 2 interrupt */ -1372:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** __HAL_TIM_ENABLE_IT(htim, TIM_IT_CC2); -1373:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** -1374:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** /* Enable the complementary One Pulse output */ -1375:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** TIM_CCxNChannelCmd(htim->Instance, OutputChannel, TIM_CCxN_ENABLE); -1376:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** -1377:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** /* Enable the Main Ouput */ -1378:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** __HAL_TIM_MOE_ENABLE(htim); -1379:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** -1380:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** /* Return function status */ -1381:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** return HAL_OK; -1382:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** } -1383:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** -1384:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** /** -1385:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** * @brief Stops the TIM One Pulse signal generation in interrupt mode on the -1386:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** * complementary channel. -1387:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** * @param htim TIM One Pulse handle -1388:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** * @param OutputChannel TIM Channel to be disabled -1389:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** * This parameter can be one of the following values: -1390:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** * @arg TIM_CHANNEL_1: TIM Channel 1 selected -1391:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** * @arg TIM_CHANNEL_2: TIM Channel 2 selected -1392:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** * @retval HAL status -1393:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** */ -1394:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** HAL_StatusTypeDef HAL_TIMEx_OnePulseN_Stop_IT(TIM_HandleTypeDef *htim, uint32_t OutputChannel) -1395:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** { -1396:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** /* Check the parameters */ -1397:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** assert_param(IS_TIM_CCXN_INSTANCE(htim->Instance, OutputChannel)); -1398:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** -1399:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** /* Disable the TIM Capture/Compare 1 interrupt */ -1400:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** __HAL_TIM_DISABLE_IT(htim, TIM_IT_CC1); -1401:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** -1402:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** /* Disable the TIM Capture/Compare 2 interrupt */ - ARM GAS /tmp/cc365F3j.s page 26 - - -1403:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** __HAL_TIM_DISABLE_IT(htim, TIM_IT_CC2); -1404:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** -1405:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** /* Disable the complementary One Pulse output */ -1406:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** TIM_CCxNChannelCmd(htim->Instance, OutputChannel, TIM_CCxN_DISABLE); -1407:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** -1408:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** /* Disable the Main Ouput */ -1409:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** __HAL_TIM_MOE_DISABLE(htim); -1410:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** -1411:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** /* Disable the Peripheral */ -1412:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** __HAL_TIM_DISABLE(htim); -1413:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** -1414:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** /* Return function status */ -1415:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** return HAL_OK; -1416:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** } -1417:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** -1418:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** /** -1419:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** * @} -1420:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** */ -1421:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** /** @defgroup TIMEx_Exported_Functions_Group5 Peripheral Control functions -1422:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** * @brief Peripheral Control functions -1423:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** * -1424:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** @verbatim -1425:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** ============================================================================== -1426:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** ##### Peripheral Control functions ##### -1427:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** ============================================================================== -1428:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** [..] -1429:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** This section provides functions allowing to: -1430:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** (+) Configure the commutation event in case of use of the Hall sensor interface. -1431:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** (+) Configure Complementary channels, break features and dead time. -1432:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** (+) Configure Master synchronization. -1433:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** (+) Configure timer remapping capabilities. -1434:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** -1435:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** @endverbatim -1436:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** * @{ -1437:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** */ -1438:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** /** -1439:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** * @brief Configure the TIM commutation event sequence. -1440:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** * @note: this function is mandatory to use the commutation event in order to -1441:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** * update the configuration at each commutation detection on the TRGI input of the Timer, -1442:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** * the typical use of this feature is with the use of another Timer(interface Timer) -1443:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** * configured in Hall sensor interface, this interface Timer will generate the -1444:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** * commutation at its TRGO output (connected to Timer used in this function) each time -1445:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** * the TI1 of the Interface Timer detect a commutation at its input TI1. -1446:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** * @param htim TIM handle -1447:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** * @param InputTrigger the Internal trigger corresponding to the Timer Interfacing with the Hall -1448:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** * This parameter can be one of the following values: -1449:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** * @arg TIM_TS_ITR0: Internal trigger 0 selected -1450:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** * @arg TIM_TS_ITR1: Internal trigger 1 selected -1451:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** * @arg TIM_TS_ITR2: Internal trigger 2 selected -1452:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** * @arg TIM_TS_ITR3: Internal trigger 3 selected -1453:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** * @arg TIM_TS_NONE: No trigger is needed -1454:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** * @param CommutationSource the Commutation Event source -1455:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** * This parameter can be one of the following values: -1456:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** * @arg TIM_COMMUTATION_TRGI: Commutation source is the TRGI of the Interface Timer -1457:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** * @arg TIM_COMMUTATION_SOFTWARE: Commutation source is set by software using the COMG -1458:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** * @retval HAL status -1459:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** */ - ARM GAS /tmp/cc365F3j.s page 27 - - -1460:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** HAL_StatusTypeDef HAL_TIMEx_ConfigCommutationEvent(TIM_HandleTypeDef *htim, uint32_t InputTrigger, -1461:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** { -1462:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** /* Check the parameters */ -1463:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** assert_param(IS_TIM_COMMUTATION_EVENT_INSTANCE(htim->Instance)); -1464:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** assert_param(IS_TIM_INTERNAL_TRIGGEREVENT_SELECTION(InputTrigger)); -1465:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** -1466:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** __HAL_LOCK(htim); -1467:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** -1468:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** if ((InputTrigger == TIM_TS_ITR0) || (InputTrigger == TIM_TS_ITR1) || -1469:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** (InputTrigger == TIM_TS_ITR2) || (InputTrigger == TIM_TS_ITR3)) -1470:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** { -1471:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** /* Select the Input trigger */ -1472:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** htim->Instance->SMCR &= ~TIM_SMCR_TS; -1473:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** htim->Instance->SMCR |= InputTrigger; -1474:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** } -1475:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** -1476:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** /* Select the Capture Compare preload feature */ -1477:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** htim->Instance->CR2 |= TIM_CR2_CCPC; -1478:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** /* Select the Commutation event source */ -1479:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** htim->Instance->CR2 &= ~TIM_CR2_CCUS; -1480:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** htim->Instance->CR2 |= CommutationSource; -1481:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** -1482:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** __HAL_UNLOCK(htim); -1483:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** -1484:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** return HAL_OK; -1485:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** } -1486:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** -1487:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** /** -1488:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** * @brief Configure the TIM commutation event sequence with interrupt. -1489:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** * @note: this function is mandatory to use the commutation event in order to -1490:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** * update the configuration at each commutation detection on the TRGI input of the Timer, -1491:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** * the typical use of this feature is with the use of another Timer(interface Timer) -1492:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** * configured in Hall sensor interface, this interface Timer will generate the -1493:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** * commutation at its TRGO output (connected to Timer used in this function) each time -1494:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** * the TI1 of the Interface Timer detect a commutation at its input TI1. -1495:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** * @param htim TIM handle -1496:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** * @param InputTrigger the Internal trigger corresponding to the Timer Interfacing with the Hall -1497:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** * This parameter can be one of the following values: -1498:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** * @arg TIM_TS_ITR0: Internal trigger 0 selected -1499:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** * @arg TIM_TS_ITR1: Internal trigger 1 selected -1500:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** * @arg TIM_TS_ITR2: Internal trigger 2 selected -1501:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** * @arg TIM_TS_ITR3: Internal trigger 3 selected -1502:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** * @arg TIM_TS_NONE: No trigger is needed -1503:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** * @param CommutationSource the Commutation Event source -1504:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** * This parameter can be one of the following values: -1505:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** * @arg TIM_COMMUTATION_TRGI: Commutation source is the TRGI of the Interface Timer -1506:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** * @arg TIM_COMMUTATION_SOFTWARE: Commutation source is set by software using the COMG -1507:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** * @retval HAL status -1508:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** */ -1509:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** HAL_StatusTypeDef HAL_TIMEx_ConfigCommutationEvent_IT(TIM_HandleTypeDef *htim, uint32_t InputTrigg -1510:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** { -1511:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** /* Check the parameters */ -1512:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** assert_param(IS_TIM_COMMUTATION_EVENT_INSTANCE(htim->Instance)); -1513:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** assert_param(IS_TIM_INTERNAL_TRIGGEREVENT_SELECTION(InputTrigger)); -1514:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** -1515:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** __HAL_LOCK(htim); -1516:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** - ARM GAS /tmp/cc365F3j.s page 28 - - -1517:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** if ((InputTrigger == TIM_TS_ITR0) || (InputTrigger == TIM_TS_ITR1) || -1518:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** (InputTrigger == TIM_TS_ITR2) || (InputTrigger == TIM_TS_ITR3)) -1519:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** { -1520:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** /* Select the Input trigger */ -1521:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** htim->Instance->SMCR &= ~TIM_SMCR_TS; -1522:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** htim->Instance->SMCR |= InputTrigger; -1523:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** } -1524:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** -1525:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** /* Select the Capture Compare preload feature */ -1526:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** htim->Instance->CR2 |= TIM_CR2_CCPC; -1527:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** /* Select the Commutation event source */ -1528:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** htim->Instance->CR2 &= ~TIM_CR2_CCUS; -1529:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** htim->Instance->CR2 |= CommutationSource; -1530:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** -1531:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** /* Enable the Commutation Interrupt Request */ -1532:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** __HAL_TIM_ENABLE_IT(htim, TIM_IT_COM); -1533:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** -1534:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** __HAL_UNLOCK(htim); -1535:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** -1536:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** return HAL_OK; -1537:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** } -1538:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** -1539:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** /** -1540:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** * @brief Configure the TIM commutation event sequence with DMA. -1541:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** * @note: this function is mandatory to use the commutation event in order to -1542:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** * update the configuration at each commutation detection on the TRGI input of the Timer, -1543:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** * the typical use of this feature is with the use of another Timer(interface Timer) -1544:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** * configured in Hall sensor interface, this interface Timer will generate the -1545:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** * commutation at its TRGO output (connected to Timer used in this function) each time -1546:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** * the TI1 of the Interface Timer detect a commutation at its input TI1. -1547:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** * @note: The user should configure the DMA in his own software, in This function only the COMDE b -1548:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** * @param htim TIM handle -1549:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** * @param InputTrigger the Internal trigger corresponding to the Timer Interfacing with the Hall -1550:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** * This parameter can be one of the following values: -1551:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** * @arg TIM_TS_ITR0: Internal trigger 0 selected -1552:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** * @arg TIM_TS_ITR1: Internal trigger 1 selected -1553:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** * @arg TIM_TS_ITR2: Internal trigger 2 selected -1554:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** * @arg TIM_TS_ITR3: Internal trigger 3 selected -1555:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** * @arg TIM_TS_NONE: No trigger is needed -1556:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** * @param CommutationSource the Commutation Event source -1557:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** * This parameter can be one of the following values: -1558:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** * @arg TIM_COMMUTATION_TRGI: Commutation source is the TRGI of the Interface Timer -1559:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** * @arg TIM_COMMUTATION_SOFTWARE: Commutation source is set by software using the COMG -1560:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** * @retval HAL status -1561:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** */ -1562:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** HAL_StatusTypeDef HAL_TIMEx_ConfigCommutationEvent_DMA(TIM_HandleTypeDef *htim, uint32_t InputTrig -1563:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** { -1564:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** /* Check the parameters */ -1565:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** assert_param(IS_TIM_COMMUTATION_EVENT_INSTANCE(htim->Instance)); -1566:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** assert_param(IS_TIM_INTERNAL_TRIGGEREVENT_SELECTION(InputTrigger)); -1567:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** -1568:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** __HAL_LOCK(htim); -1569:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** -1570:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** if ((InputTrigger == TIM_TS_ITR0) || (InputTrigger == TIM_TS_ITR1) || -1571:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** (InputTrigger == TIM_TS_ITR2) || (InputTrigger == TIM_TS_ITR3)) -1572:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** { -1573:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** /* Select the Input trigger */ - ARM GAS /tmp/cc365F3j.s page 29 - - -1574:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** htim->Instance->SMCR &= ~TIM_SMCR_TS; -1575:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** htim->Instance->SMCR |= InputTrigger; -1576:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** } -1577:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** -1578:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** /* Select the Capture Compare preload feature */ -1579:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** htim->Instance->CR2 |= TIM_CR2_CCPC; -1580:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** /* Select the Commutation event source */ -1581:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** htim->Instance->CR2 &= ~TIM_CR2_CCUS; -1582:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** htim->Instance->CR2 |= CommutationSource; -1583:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** -1584:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** /* Enable the Commutation DMA Request */ -1585:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** /* Set the DMA Commutation Callback */ -1586:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** htim->hdma[TIM_DMA_ID_COMMUTATION]->XferCpltCallback = TIMEx_DMACommutationCplt; -1587:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** /* Set the DMA error callback */ -1588:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** htim->hdma[TIM_DMA_ID_COMMUTATION]->XferErrorCallback = TIM_DMAError; -1589:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** -1590:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** /* Enable the Commutation DMA Request */ -1591:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** __HAL_TIM_ENABLE_DMA(htim, TIM_DMA_COM); -1592:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** -1593:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** __HAL_UNLOCK(htim); -1594:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** -1595:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** return HAL_OK; -1596:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** } -1597:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** -1598:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** /** -1599:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** * @brief Configures the TIM in master mode. -1600:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** * @param htim TIM handle. -1601:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** * @param sMasterConfig pointer to a TIM_MasterConfigTypeDef structure that -1602:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** * contains the selected trigger output (TRGO) and the Master/Slave -1603:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** * mode. -1604:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** * @retval HAL status -1605:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** */ -1606:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** HAL_StatusTypeDef HAL_TIMEx_MasterConfigSynchronization(TIM_HandleTypeDef *htim, TIM_MasterConfigTy -1607:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** { -1608:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** /* Check the parameters */ -1609:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** assert_param(IS_TIM_MASTER_INSTANCE(htim->Instance)); -1610:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** assert_param(IS_TIM_TRGO_SOURCE(sMasterConfig->MasterOutputTrigger)); -1611:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** assert_param(IS_TIM_MSM_STATE(sMasterConfig->MasterSlaveMode)); -1612:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** -1613:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** __HAL_LOCK(htim); -1614:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** -1615:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** htim->State = HAL_TIM_STATE_BUSY; -1616:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** -1617:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** /* Reset the MMS Bits */ -1618:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** htim->Instance->CR2 &= ~TIM_CR2_MMS; -1619:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** /* Select the TRGO source */ -1620:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** htim->Instance->CR2 |= sMasterConfig->MasterOutputTrigger; -1621:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** -1622:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** /* Reset the MSM Bit */ -1623:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** htim->Instance->SMCR &= ~TIM_SMCR_MSM; -1624:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** /* Set or Reset the MSM Bit */ -1625:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** htim->Instance->SMCR |= sMasterConfig->MasterSlaveMode; -1626:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** -1627:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** htim->State = HAL_TIM_STATE_READY; -1628:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** -1629:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** __HAL_UNLOCK(htim); -1630:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** - ARM GAS /tmp/cc365F3j.s page 30 - - -1631:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** return HAL_OK; -1632:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** } -1633:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** -1634:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** /** -1635:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** * @brief Configures the Break feature, dead time, Lock level, OSSI/OSSR State -1636:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** * and the AOE(automatic output enable). -1637:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** * @param htim TIM handle -1638:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** * @param sBreakDeadTimeConfig pointer to a TIM_ConfigBreakDeadConfigTypeDef structure that -1639:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** * contains the BDTR Register configuration information for the TIM peripheral. -1640:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** * @retval HAL status -1641:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** */ -1642:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** HAL_StatusTypeDef HAL_TIMEx_ConfigBreakDeadTime(TIM_HandleTypeDef *htim, -1643:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** TIM_BreakDeadTimeConfigTypeDef *sBreakDeadTimeConfi -1644:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** { -1645:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** uint32_t tmpbdtr = 0; -1646:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** -1647:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** /* Check the parameters */ -1648:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** assert_param(IS_TIM_BREAK_INSTANCE(htim->Instance)); -1649:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** assert_param(IS_TIM_OSSR_STATE(sBreakDeadTimeConfig->OffStateRunMode)); -1650:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** assert_param(IS_TIM_OSSI_STATE(sBreakDeadTimeConfig->OffStateIDLEMode)); -1651:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** assert_param(IS_TIM_LOCK_LEVEL(sBreakDeadTimeConfig->LockLevel)); -1652:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** assert_param(IS_TIM_DEADTIME(sBreakDeadTimeConfig->DeadTime)); -1653:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** assert_param(IS_TIM_BREAK_STATE(sBreakDeadTimeConfig->BreakState)); -1654:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** assert_param(IS_TIM_BREAK_POLARITY(sBreakDeadTimeConfig->BreakPolarity)); -1655:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** assert_param(IS_TIM_AUTOMATIC_OUTPUT_STATE(sBreakDeadTimeConfig->AutomaticOutput)); -1656:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** -1657:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** /* Process Locked */ -1658:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** __HAL_LOCK(htim); -1659:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** -1660:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** htim->State = HAL_TIM_STATE_BUSY; -1661:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** -1662:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** /* Set the Lock level, the Break enable Bit and the Polarity, the OSSR State, -1663:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** the OSSI State, the dead time value and the Automatic Output Enable Bit */ -1664:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** -1665:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** /* Set the BDTR bits */ -1666:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** MODIFY_REG(tmpbdtr, TIM_BDTR_DTG, sBreakDeadTimeConfig->DeadTime); -1667:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** MODIFY_REG(tmpbdtr, TIM_BDTR_LOCK, sBreakDeadTimeConfig->LockLevel); -1668:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** MODIFY_REG(tmpbdtr, TIM_BDTR_OSSI, sBreakDeadTimeConfig->OffStateIDLEMode); -1669:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** MODIFY_REG(tmpbdtr, TIM_BDTR_OSSR, sBreakDeadTimeConfig->OffStateRunMode); -1670:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** MODIFY_REG(tmpbdtr, TIM_BDTR_BKE, sBreakDeadTimeConfig->BreakState); -1671:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** MODIFY_REG(tmpbdtr, TIM_BDTR_BKP, sBreakDeadTimeConfig->BreakPolarity); -1672:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** MODIFY_REG(tmpbdtr, TIM_BDTR_AOE, sBreakDeadTimeConfig->AutomaticOutput); -1673:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** MODIFY_REG(tmpbdtr, TIM_BDTR_MOE, sBreakDeadTimeConfig->AutomaticOutput); -1674:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** -1675:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** /* Set TIMx_BDTR */ -1676:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** htim->Instance->BDTR = tmpbdtr; -1677:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** -1678:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** htim->State = HAL_TIM_STATE_READY; -1679:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** -1680:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** __HAL_UNLOCK(htim); -1681:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** -1682:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** return HAL_OK; -1683:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** } -1684:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** -1685:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** /** -1686:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** * @brief Configures the TIM14 Remapping input capabilities. -1687:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** * @param htim TIM handle. - ARM GAS /tmp/cc365F3j.s page 31 - - -1688:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** * @param Remap specifies the TIM remapping source. -1689:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** * This parameter can be one of the following values: -1690:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** * @arg TIM_TIM14_GPIO: TIM14 TI1 is connected to GPIO -1691:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** * @arg TIM_TIM14_RTC: TIM14 TI1 is connected to RTC_clock -1692:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** * @arg TIM_TIM14_HSE: TIM14 TI1 is connected to HSE/32 -1693:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** * @arg TIM_TIM14_MCO: TIM14 TI1 is connected to MCO -1694:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** * @retval HAL status -1695:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** */ -1696:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** HAL_StatusTypeDef HAL_TIMEx_RemapConfig(TIM_HandleTypeDef *htim, uint32_t Remap) -1697:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** { -1698:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** __HAL_LOCK(htim); -1699:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** -1700:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** /* Check parameters */ -1701:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** assert_param(IS_TIM_REMAP_INSTANCE(htim->Instance)); -1702:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** assert_param(IS_TIM_REMAP(Remap)); -1703:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** -1704:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** /* Set the Timer remapping configuration */ -1705:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** htim->Instance->OR = Remap; -1706:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** -1707:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** htim->State = HAL_TIM_STATE_READY; -1708:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** -1709:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** __HAL_UNLOCK(htim); -1710:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** -1711:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** return HAL_OK; -1712:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** } -1713:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** -1714:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** /** -1715:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** * @} -1716:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** */ -1717:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** -1718:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** /** @addtogroup TIM_Exported_Functions_Group8 -1719:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** * @{ -1720:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** */ -1721:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** #if defined(STM32F051x8) || defined(STM32F058xx) || \ -1722:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** defined(STM32F071xB) || defined(STM32F072xB) || defined(STM32F078xx) || \ -1723:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** defined(STM32F091xC) || defined (STM32F098xx) -1724:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** /** -1725:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** * @brief Configures the OCRef clear feature -1726:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** * @param htim TIM handle -1727:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** * @param sClearInputConfig pointer to a TIM_ClearInputConfigTypeDef structure that -1728:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** * contains the OCREF clear feature and parameters for the TIM peripheral. -1729:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** * @param Channel specifies the TIM Channel -1730:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** * This parameter can be one of the following values: -1731:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** * @arg TIM_CHANNEL_1: TIM Channel 1 -1732:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** * @arg TIM_CHANNEL_2: TIM Channel 2 -1733:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** * @arg TIM_CHANNEL_3: TIM Channel 3 -1734:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** * @arg TIM_CHANNEL_4: TIM Channel 4 -1735:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** * @arg TIM_Channel_5: TIM Channel 5 -1736:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** * @retval None -1737:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** */ -1738:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** HAL_StatusTypeDef HAL_TIM_ConfigOCrefClear(TIM_HandleTypeDef *htim, -1739:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** TIM_ClearInputConfigTypeDef *sClearInputConfig, -1740:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** uint32_t Channel) -1741:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** { -1742:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** uint32_t tmpsmcr = 0U; -1743:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** -1744:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** /* Check the parameters */ - ARM GAS /tmp/cc365F3j.s page 32 - - -1745:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** assert_param(IS_TIM_OCXREF_CLEAR_INSTANCE(htim->Instance)); -1746:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** assert_param(IS_TIM_CLEARINPUT_SOURCE(sClearInputConfig->ClearInputSource)); -1747:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** -1748:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** /* Check input state */ -1749:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** __HAL_LOCK(htim); -1750:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** -1751:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** htim->State = HAL_TIM_STATE_BUSY; -1752:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** -1753:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** switch (sClearInputConfig->ClearInputSource) -1754:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** { -1755:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** case TIM_CLEARINPUTSOURCE_NONE: -1756:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** { -1757:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** /* Get the TIMx SMCR register value */ -1758:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** tmpsmcr = htim->Instance->SMCR; -1759:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** -1760:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** /* Clear the OCREF clear selection bit */ -1761:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** tmpsmcr &= ~TIM_SMCR_OCCS; -1762:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** -1763:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** /* Clear the ETR Bits */ -1764:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** tmpsmcr &= ~(TIM_SMCR_ETF | TIM_SMCR_ETPS | TIM_SMCR_ECE | TIM_SMCR_ETP); -1765:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** -1766:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** /* Set TIMx_SMCR */ -1767:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** htim->Instance->SMCR = tmpsmcr; -1768:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** } -1769:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** break; -1770:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** -1771:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** case TIM_CLEARINPUTSOURCE_OCREFCLR: -1772:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** { -1773:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** /* Clear the OCREF clear selection bit */ -1774:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** htim->Instance->SMCR &= ~TIM_SMCR_OCCS; -1775:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** } -1776:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** break; -1777:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** -1778:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** case TIM_CLEARINPUTSOURCE_ETR: -1779:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** { -1780:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** /* Check the parameters */ -1781:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** assert_param(IS_TIM_CLEARINPUT_POLARITY(sClearInputConfig->ClearInputPolarity)); -1782:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** assert_param(IS_TIM_CLEARINPUT_PRESCALER(sClearInputConfig->ClearInputPrescaler)); -1783:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** assert_param(IS_TIM_CLEARINPUT_FILTER(sClearInputConfig->ClearInputFilter)); -1784:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** -1785:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** TIM_ETR_SetConfig(htim->Instance, -1786:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** sClearInputConfig->ClearInputPrescaler, -1787:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** sClearInputConfig->ClearInputPolarity, -1788:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** sClearInputConfig->ClearInputFilter); -1789:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** -1790:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** /* Set the OCREF clear selection bit */ -1791:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** htim->Instance->SMCR |= TIM_SMCR_OCCS; -1792:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** } -1793:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** break; -1794:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** default: -1795:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** break; -1796:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** } -1797:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** -1798:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** switch (Channel) -1799:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** { -1800:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** case TIM_CHANNEL_1: -1801:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** { - ARM GAS /tmp/cc365F3j.s page 33 - - -1802:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** if(sClearInputConfig->ClearInputState != RESET) -1803:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** { -1804:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** /* Enable the Ocref clear feature for Channel 1 */ -1805:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** htim->Instance->CCMR1 |= TIM_CCMR1_OC1CE; -1806:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** } -1807:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** else -1808:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** { -1809:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** /* Disable the Ocref clear feature for Channel 1 */ -1810:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** htim->Instance->CCMR1 &= ~TIM_CCMR1_OC1CE; -1811:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** } -1812:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** } -1813:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** break; -1814:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** case TIM_CHANNEL_2: -1815:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** { -1816:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** if(sClearInputConfig->ClearInputState != RESET) -1817:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** { -1818:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** /* Enable the Ocref clear feature for Channel 2 */ -1819:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** htim->Instance->CCMR1 |= TIM_CCMR1_OC2CE; -1820:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** } -1821:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** else -1822:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** { -1823:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** /* Disable the Ocref clear feature for Channel 2 */ -1824:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** htim->Instance->CCMR1 &= ~TIM_CCMR1_OC2CE; -1825:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** } -1826:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** } -1827:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** break; -1828:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** case TIM_CHANNEL_3: -1829:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** { -1830:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** if(sClearInputConfig->ClearInputState != RESET) -1831:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** { -1832:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** /* Enable the Ocref clear feature for Channel 3 */ -1833:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** htim->Instance->CCMR2 |= TIM_CCMR2_OC3CE; -1834:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** } -1835:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** else -1836:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** { -1837:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** /* Disable the Ocref clear feature for Channel 3 */ -1838:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** htim->Instance->CCMR2 &= ~TIM_CCMR2_OC3CE; -1839:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** } -1840:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** } -1841:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** break; -1842:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** case TIM_CHANNEL_4: -1843:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** { -1844:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** if(sClearInputConfig->ClearInputState != RESET) -1845:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** { -1846:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** /* Enable the Ocref clear feature for Channel 4 */ -1847:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** htim->Instance->CCMR2 |= TIM_CCMR2_OC4CE; -1848:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** } -1849:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** else -1850:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** { -1851:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** /* Disable the Ocref clear feature for Channel 4 */ -1852:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** htim->Instance->CCMR2 &= ~TIM_CCMR2_OC4CE; -1853:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** } -1854:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** } -1855:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** break; -1856:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** default: -1857:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** break; -1858:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** } - ARM GAS /tmp/cc365F3j.s page 34 - - -1859:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** -1860:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** htim->State = HAL_TIM_STATE_READY; -1861:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** -1862:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** __HAL_UNLOCK(htim); -1863:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** -1864:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** return HAL_OK; -1865:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** } -1866:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** #endif /* STM32F051x8 || STM32F058xx || */ -1867:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** /* STM32F071xB || STM32F072xB || STM32F078xx || */ -1868:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** /* STM32F091xC || STM32F098xx */ -1869:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** /** -1870:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** * @} -1871:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** */ -1872:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** -1873:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** /** @defgroup TIMEx_Exported_Functions_Group6 Extension Callbacks functions -1874:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** * @brief Extension Callbacks functions -1875:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** * -1876:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** @verbatim -1877:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** ============================================================================== -1878:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** ##### Extension Callbacks functions ##### -1879:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** ============================================================================== -1880:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** [..] -1881:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** This section provides Extension TIM callback functions: -1882:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** (+) Timer Commutation callback -1883:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** (+) Timer Break callback -1884:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** -1885:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** @endverbatim -1886:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** * @{ -1887:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** */ -1888:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** -1889:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** /** -1890:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** * @brief Hall commutation changed callback in non blocking mode -1891:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** * @param htim TIM handle -1892:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** * @retval None -1893:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** */ -1894:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** __weak void HAL_TIMEx_CommutationCallback(TIM_HandleTypeDef *htim) -1895:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** { -1896:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** /* Prevent unused argument(s) compilation warning */ -1897:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** UNUSED(htim); -1898:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** -1899:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** /* NOTE : This function Should not be modified, when the callback is needed, -1900:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** the HAL_TIMEx_CommutationCallback could be implemented in the user file -1901:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** */ -1902:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** } -1903:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** -1904:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** /** -1905:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** * @brief Hall Break detection callback in non blocking mode -1906:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** * @param htim TIM handle -1907:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** * @retval None -1908:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** */ -1909:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** __weak void HAL_TIMEx_BreakCallback(TIM_HandleTypeDef *htim) -1910:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** { -1911:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** /* Prevent unused argument(s) compilation warning */ -1912:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** UNUSED(htim); -1913:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** -1914:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** /* NOTE : This function Should not be modified, when the callback is needed, -1915:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** the HAL_TIMEx_BreakCallback could be implemented in the user file - ARM GAS /tmp/cc365F3j.s page 35 - - -1916:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** */ -1917:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** } -1918:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** -1919:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** /** -1920:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** * @brief TIM DMA Commutation callback. -1921:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** * @param hdma pointer to DMA handle. -1922:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** * @retval None -1923:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** */ -1924:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** void TIMEx_DMACommutationCplt(DMA_HandleTypeDef *hdma) -1925:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** { -1926:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** TIM_HandleTypeDef* htim = ( TIM_HandleTypeDef* )((DMA_HandleTypeDef* )hdma)->Parent; -1927:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** -1928:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** htim->State= HAL_TIM_STATE_READY; -1929:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** -1930:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** HAL_TIMEx_CommutationCallback(htim); -1931:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** } -1932:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** -1933:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** /** -1934:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** * @} -1935:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** */ -1936:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** -1937:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** /** @defgroup TIMEx_Exported_Functions_Group7 Extension Peripheral State functions -1938:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** * @brief Extension Peripheral State functions -1939:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** * -1940:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** @verbatim -1941:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** ============================================================================== -1942:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** ##### Extension Peripheral State functions ##### -1943:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** ============================================================================== -1944:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** [..] -1945:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** This subsection permit to get in run-time the status of the peripheral -1946:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** and the data flow. -1947:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** -1948:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** @endverbatim -1949:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** * @{ -1950:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** */ -1951:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** -1952:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** /** -1953:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** * @brief Return the TIM Hall Sensor interface state -1954:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** * @param htim TIM Hall Sensor handle -1955:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** * @retval HAL state -1956:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** */ -1957:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** HAL_TIM_StateTypeDef HAL_TIMEx_HallSensor_GetState(TIM_HandleTypeDef *htim) -1958:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** { -1959:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** return htim->State; -1960:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** } -1961:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** -1962:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** /** -1963:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** * @} -1964:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** */ -1965:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** -1966:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** /** -1967:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** * @} -1968:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** */ -1969:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** -1970:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** /** @addtogroup TIMEx_Private_Functions -1971:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** * @{ -1972:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** */ - ARM GAS /tmp/cc365F3j.s page 36 - - -1973:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** -1974:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** /** -1975:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** * @brief Enables or disables the TIM Capture Compare Channel xN. -1976:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** * @param TIMx to select the TIM peripheral -1977:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** * @param Channel specifies the TIM Channel -1978:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** * This parameter can be one of the following values: -1979:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** * @arg TIM_CHANNEL_1: TIM Channel 1 -1980:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** * @arg TIM_CHANNEL_2: TIM Channel 2 -1981:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** * @arg TIM_CHANNEL_3: TIM Channel 3 -1982:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** * @param ChannelNState specifies the TIM Channel CCxNE bit new state. -1983:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** * This parameter can be: TIM_CCxN_ENABLE or TIM_CCxN_Disable. -1984:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** * @retval None -1985:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** */ -1986:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** static void TIM_CCxNChannelCmd(TIM_TypeDef* TIMx, uint32_t Channel, uint32_t ChannelNState) -1987:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** { - 25 .loc 1 1987 0 - 26 .cfi_startproc - 27 @ args = 0, pretend = 0, frame = 0 - 28 @ frame_needed = 0, uses_anonymous_args = 0 - 29 .LVL0: - 30 0000 10B5 push {r4, lr} - 31 .LCFI0: - 32 .cfi_def_cfa_offset 8 - 33 .cfi_offset 4, -8 - 34 .cfi_offset 14, -4 - 35 .LVL1: -1988:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** uint32_t tmp = 0U; -1989:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** -1990:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** tmp = TIM_CCER_CC1NE << Channel; - 36 .loc 1 1990 0 - 37 0002 0424 movs r4, #4 - 38 0004 8C40 lsls r4, r4, r1 - 39 .LVL2: -1991:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** -1992:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** /* Reset the CCxNE Bit */ -1993:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** TIMx->CCER &= ~tmp; - 40 .loc 1 1993 0 - 41 0006 036A ldr r3, [r0, #32] - 42 0008 A343 bics r3, r4 - 43 000a 0362 str r3, [r0, #32] -1994:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** -1995:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** /* Set or reset the CCxNE Bit */ -1996:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** TIMx->CCER |= (uint32_t)(ChannelNState << Channel); - 44 .loc 1 1996 0 - 45 000c 036A ldr r3, [r0, #32] - 46 000e 8A40 lsls r2, r2, r1 - 47 .LVL3: - 48 0010 1A43 orrs r2, r3 - 49 0012 0262 str r2, [r0, #32] -1997:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** } - 50 .loc 1 1997 0 - 51 @ sp needed - 52 .LVL4: - 53 0014 10BD pop {r4, pc} - 54 .cfi_endproc - 55 .LFE74: - 57 .section .text.HAL_TIMEx_HallSensor_MspInit,"ax",%progbits - ARM GAS /tmp/cc365F3j.s page 37 - - - 58 .align 1 - 59 .weak HAL_TIMEx_HallSensor_MspInit - 60 .syntax unified - 61 .code 16 - 62 .thumb_func - 63 .fpu softvfp - 65 HAL_TIMEx_HallSensor_MspInit: - 66 .LFB39: - 265:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** /* Prevent unused argument(s) compilation warning */ - 67 .loc 1 265 0 - 68 .cfi_startproc - 69 @ args = 0, pretend = 0, frame = 0 - 70 @ frame_needed = 0, uses_anonymous_args = 0 - 71 @ link register save eliminated. - 72 .LVL5: - 272:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** - 73 .loc 1 272 0 - 74 @ sp needed - 75 0000 7047 bx lr - 76 .cfi_endproc - 77 .LFE39: - 79 .section .text.HAL_TIMEx_HallSensor_Init,"ax",%progbits - 80 .align 1 - 81 .global HAL_TIMEx_HallSensor_Init - 82 .syntax unified - 83 .code 16 - 84 .thumb_func - 85 .fpu softvfp - 87 HAL_TIMEx_HallSensor_Init: - 88 .LFB37: - 159:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** TIM_OC_InitTypeDef OC_Config; - 89 .loc 1 159 0 - 90 .cfi_startproc - 91 @ args = 0, pretend = 0, frame = 40 - 92 @ frame_needed = 0, uses_anonymous_args = 0 - 93 .LVL6: - 94 0000 F0B5 push {r4, r5, r6, r7, lr} - 95 .LCFI1: - 96 .cfi_def_cfa_offset 20 - 97 .cfi_offset 4, -20 - 98 .cfi_offset 5, -16 - 99 .cfi_offset 6, -12 - 100 .cfi_offset 7, -8 - 101 .cfi_offset 14, -4 - 102 0002 8BB0 sub sp, sp, #44 - 103 .LCFI2: - 104 .cfi_def_cfa_offset 64 - 105 0004 0400 movs r4, r0 - 106 0006 0D00 movs r5, r1 - 163:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** { - 107 .loc 1 163 0 - 108 0008 0028 cmp r0, #0 - 109 000a 55D0 beq .L6 - 176:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** { - 110 .loc 1 176 0 - 111 000c 3D23 movs r3, #61 - 112 000e C35C ldrb r3, [r0, r3] - ARM GAS /tmp/cc365F3j.s page 38 - - - 113 0010 002B cmp r3, #0 - 114 0012 4BD0 beq .L7 - 115 .LVL7: - 116 .L5: - 186:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** - 117 .loc 1 186 0 - 118 0014 3D26 movs r6, #61 - 119 0016 0223 movs r3, #2 - 120 0018 A355 strb r3, [r4, r6] - 189:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** - 121 .loc 1 189 0 - 122 001a 211D adds r1, r4, #4 - 123 001c 2068 ldr r0, [r4] - 124 001e FFF7FEFF bl TIM_Base_SetConfig - 125 .LVL8: - 192:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** - 126 .loc 1 192 0 - 127 0022 AB68 ldr r3, [r5, #8] - 128 0024 0322 movs r2, #3 - 129 0026 2968 ldr r1, [r5] - 130 0028 2068 ldr r0, [r4] - 131 002a FFF7FEFF bl TIM_TI1_SetConfig - 132 .LVL9: - 195:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** /* Set the IC1PSC value */ - 133 .loc 1 195 0 - 134 002e 2268 ldr r2, [r4] - 135 0030 9369 ldr r3, [r2, #24] - 136 0032 0C21 movs r1, #12 - 137 0034 8B43 bics r3, r1 - 138 0036 9361 str r3, [r2, #24] - 197:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** - 139 .loc 1 197 0 - 140 0038 2268 ldr r2, [r4] - 141 003a 9369 ldr r3, [r2, #24] - 142 003c 6968 ldr r1, [r5, #4] - 143 003e 0B43 orrs r3, r1 - 144 0040 9361 str r3, [r2, #24] - 200:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** - 145 .loc 1 200 0 - 146 0042 2268 ldr r2, [r4] - 147 0044 5368 ldr r3, [r2, #4] - 148 0046 8021 movs r1, #128 - 149 0048 0B43 orrs r3, r1 - 150 004a 5360 str r3, [r2, #4] - 203:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** htim->Instance->SMCR |= TIM_TS_TI1F_ED; - 151 .loc 1 203 0 - 152 004c 2268 ldr r2, [r4] - 153 004e 9368 ldr r3, [r2, #8] - 154 0050 7027 movs r7, #112 - 155 0052 BB43 bics r3, r7 - 156 0054 9360 str r3, [r2, #8] - 204:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** - 157 .loc 1 204 0 - 158 0056 2268 ldr r2, [r4] - 159 0058 9368 ldr r3, [r2, #8] - 160 005a 4039 subs r1, r1, #64 - 161 005c 0B43 orrs r3, r1 - ARM GAS /tmp/cc365F3j.s page 39 - - - 162 005e 9360 str r3, [r2, #8] - 207:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** htim->Instance->SMCR |= TIM_SLAVEMODE_RESET; - 163 .loc 1 207 0 - 164 0060 2268 ldr r2, [r4] - 165 0062 9368 ldr r3, [r2, #8] - 166 0064 3939 subs r1, r1, #57 - 167 0066 8B43 bics r3, r1 - 168 0068 9360 str r3, [r2, #8] - 208:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** - 169 .loc 1 208 0 - 170 006a 2268 ldr r2, [r4] - 171 006c 9368 ldr r3, [r2, #8] - 172 006e 0339 subs r1, r1, #3 - 173 0070 0B43 orrs r3, r1 - 174 0072 9360 str r3, [r2, #8] - 211:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** OC_Config.OCIdleState = TIM_OCIDLESTATE_RESET; - 175 .loc 1 211 0 - 176 0074 0023 movs r3, #0 - 177 0076 0793 str r3, [sp, #28] - 212:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** OC_Config.OCMode = TIM_OCMODE_PWM2; - 178 .loc 1 212 0 - 179 0078 0893 str r3, [sp, #32] - 213:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** OC_Config.OCNIdleState = TIM_OCNIDLESTATE_RESET; - 180 .loc 1 213 0 - 181 007a 0397 str r7, [sp, #12] - 214:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** OC_Config.OCNPolarity = TIM_OCNPOLARITY_HIGH; - 182 .loc 1 214 0 - 183 007c 0993 str r3, [sp, #36] - 215:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** OC_Config.OCPolarity = TIM_OCPOLARITY_HIGH; - 184 .loc 1 215 0 - 185 007e 0693 str r3, [sp, #24] - 216:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** OC_Config.Pulse = sConfig->Commutation_Delay; - 186 .loc 1 216 0 - 187 0080 0593 str r3, [sp, #20] - 217:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** - 188 .loc 1 217 0 - 189 0082 EB68 ldr r3, [r5, #12] - 190 0084 0193 str r3, [sp, #4] - 191 0086 0493 str r3, [sp, #16] - 219:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** - 192 .loc 1 219 0 - 193 0088 03A9 add r1, sp, #12 - 194 008a 2068 ldr r0, [r4] - 195 008c FFF7FEFF bl TIM_OC2_SetConfig - 196 .LVL10: - 223:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** htim->Instance->CR2 |= TIM_TRGO_OC2REF; - 197 .loc 1 223 0 - 198 0090 2268 ldr r2, [r4] - 199 0092 5368 ldr r3, [r2, #4] - 200 0094 BB43 bics r3, r7 - 201 0096 5360 str r3, [r2, #4] - 224:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** - 202 .loc 1 224 0 - 203 0098 2268 ldr r2, [r4] - 204 009a 5368 ldr r3, [r2, #4] - 205 009c 5021 movs r1, #80 - 206 009e 0B43 orrs r3, r1 - ARM GAS /tmp/cc365F3j.s page 40 - - - 207 00a0 5360 str r3, [r2, #4] - 227:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** - 208 .loc 1 227 0 - 209 00a2 0123 movs r3, #1 - 210 00a4 A355 strb r3, [r4, r6] - 229:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** } - 211 .loc 1 229 0 - 212 00a6 0020 movs r0, #0 - 213 .L4: - 230:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** - 214 .loc 1 230 0 - 215 00a8 0BB0 add sp, sp, #44 - 216 @ sp needed - 217 .LVL11: - 218 .LVL12: - 219 00aa F0BD pop {r4, r5, r6, r7, pc} - 220 .LVL13: - 221 .L7: - 179:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** - 222 .loc 1 179 0 - 223 00ac 3C33 adds r3, r3, #60 - 224 00ae 0022 movs r2, #0 - 225 00b0 C254 strb r2, [r0, r3] - 182:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** } - 226 .loc 1 182 0 - 227 00b2 FFF7FEFF bl HAL_TIMEx_HallSensor_MspInit - 228 .LVL14: - 229 00b6 ADE7 b .L5 - 230 .LVL15: - 231 .L6: - 165:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** } - 232 .loc 1 165 0 - 233 00b8 0120 movs r0, #1 - 234 .LVL16: - 235 00ba F5E7 b .L4 - 236 .cfi_endproc - 237 .LFE37: - 239 .section .text.HAL_TIMEx_HallSensor_MspDeInit,"ax",%progbits - 240 .align 1 - 241 .weak HAL_TIMEx_HallSensor_MspDeInit - 242 .syntax unified - 243 .code 16 - 244 .thumb_func - 245 .fpu softvfp - 247 HAL_TIMEx_HallSensor_MspDeInit: - 248 .LFB40: - 280:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** /* Prevent unused argument(s) compilation warning */ - 249 .loc 1 280 0 - 250 .cfi_startproc - 251 @ args = 0, pretend = 0, frame = 0 - 252 @ frame_needed = 0, uses_anonymous_args = 0 - 253 @ link register save eliminated. - 254 .LVL17: - 287:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** - 255 .loc 1 287 0 - 256 @ sp needed - 257 0000 7047 bx lr - ARM GAS /tmp/cc365F3j.s page 41 - - - 258 .cfi_endproc - 259 .LFE40: - 261 .section .text.HAL_TIMEx_HallSensor_DeInit,"ax",%progbits - 262 .align 1 - 263 .global HAL_TIMEx_HallSensor_DeInit - 264 .syntax unified - 265 .code 16 - 266 .thumb_func - 267 .fpu softvfp - 269 HAL_TIMEx_HallSensor_DeInit: - 270 .LFB38: - 238:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** /* Check the parameters */ - 271 .loc 1 238 0 - 272 .cfi_startproc - 273 @ args = 0, pretend = 0, frame = 0 - 274 @ frame_needed = 0, uses_anonymous_args = 0 - 275 .LVL18: - 276 0000 10B5 push {r4, lr} - 277 .LCFI3: - 278 .cfi_def_cfa_offset 8 - 279 .cfi_offset 4, -8 - 280 .cfi_offset 14, -4 - 281 0002 0400 movs r4, r0 - 242:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** - 282 .loc 1 242 0 - 283 0004 3D23 movs r3, #61 - 284 0006 0222 movs r2, #2 - 285 0008 C254 strb r2, [r0, r3] - 245:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** - 286 .loc 1 245 0 - 287 000a 0368 ldr r3, [r0] - 288 000c 196A ldr r1, [r3, #32] - 289 000e 0A4A ldr r2, .L11 - 290 0010 1142 tst r1, r2 - 291 0012 07D1 bne .L10 - 245:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** - 292 .loc 1 245 0 is_stmt 0 discriminator 1 - 293 0014 196A ldr r1, [r3, #32] - 294 0016 094A ldr r2, .L11+4 - 295 0018 1142 tst r1, r2 - 296 001a 03D1 bne .L10 - 245:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** - 297 .loc 1 245 0 discriminator 2 - 298 001c 1A68 ldr r2, [r3] - 299 001e 0121 movs r1, #1 - 300 0020 8A43 bics r2, r1 - 301 0022 1A60 str r2, [r3] - 302 .L10: - 248:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** - 303 .loc 1 248 0 is_stmt 1 - 304 0024 2000 movs r0, r4 - 305 .LVL19: - 306 0026 FFF7FEFF bl HAL_TIMEx_HallSensor_MspDeInit - 307 .LVL20: - 251:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** - 308 .loc 1 251 0 - 309 002a 0023 movs r3, #0 - ARM GAS /tmp/cc365F3j.s page 42 - - - 310 002c 3D22 movs r2, #61 - 311 002e A354 strb r3, [r4, r2] - 254:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** - 312 .loc 1 254 0 - 313 0030 013A subs r2, r2, #1 - 314 0032 A354 strb r3, [r4, r2] - 257:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** - 315 .loc 1 257 0 - 316 0034 0020 movs r0, #0 - 317 @ sp needed - 318 .LVL21: - 319 0036 10BD pop {r4, pc} - 320 .L12: - 321 .align 2 - 322 .L11: - 323 0038 11110000 .word 4369 - 324 003c 44040000 .word 1092 - 325 .cfi_endproc - 326 .LFE38: - 328 .section .text.HAL_TIMEx_HallSensor_Start,"ax",%progbits - 329 .align 1 - 330 .global HAL_TIMEx_HallSensor_Start - 331 .syntax unified - 332 .code 16 - 333 .thumb_func - 334 .fpu softvfp - 336 HAL_TIMEx_HallSensor_Start: - 337 .LFB41: - 295:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** /* Check the parameters */ - 338 .loc 1 295 0 - 339 .cfi_startproc - 340 @ args = 0, pretend = 0, frame = 0 - 341 @ frame_needed = 0, uses_anonymous_args = 0 - 342 .LVL22: - 343 0000 10B5 push {r4, lr} - 344 .LCFI4: - 345 .cfi_def_cfa_offset 8 - 346 .cfi_offset 4, -8 - 347 .cfi_offset 14, -4 - 348 0002 0400 movs r4, r0 - 301:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** - 349 .loc 1 301 0 - 350 0004 0122 movs r2, #1 - 351 0006 0021 movs r1, #0 - 352 0008 0068 ldr r0, [r0] - 353 .LVL23: - 354 000a FFF7FEFF bl TIM_CCxChannelCmd - 355 .LVL24: - 304:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** - 356 .loc 1 304 0 - 357 000e 2268 ldr r2, [r4] - 358 0010 1368 ldr r3, [r2] - 359 0012 0121 movs r1, #1 - 360 0014 0B43 orrs r3, r1 - 361 0016 1360 str r3, [r2] - 308:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** - 362 .loc 1 308 0 - ARM GAS /tmp/cc365F3j.s page 43 - - - 363 0018 0020 movs r0, #0 - 364 @ sp needed - 365 .LVL25: - 366 001a 10BD pop {r4, pc} - 367 .cfi_endproc - 368 .LFE41: - 370 .section .text.HAL_TIMEx_HallSensor_Stop,"ax",%progbits - 371 .align 1 - 372 .global HAL_TIMEx_HallSensor_Stop - 373 .syntax unified - 374 .code 16 - 375 .thumb_func - 376 .fpu softvfp - 378 HAL_TIMEx_HallSensor_Stop: - 379 .LFB42: - 316:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** /* Check the parameters */ - 380 .loc 1 316 0 - 381 .cfi_startproc - 382 @ args = 0, pretend = 0, frame = 0 - 383 @ frame_needed = 0, uses_anonymous_args = 0 - 384 .LVL26: - 385 0000 10B5 push {r4, lr} - 386 .LCFI5: - 387 .cfi_def_cfa_offset 8 - 388 .cfi_offset 4, -8 - 389 .cfi_offset 14, -4 - 390 0002 0400 movs r4, r0 - 322:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** - 391 .loc 1 322 0 - 392 0004 0022 movs r2, #0 - 393 0006 0021 movs r1, #0 - 394 0008 0068 ldr r0, [r0] - 395 .LVL27: - 396 000a FFF7FEFF bl TIM_CCxChannelCmd - 397 .LVL28: - 325:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** - 398 .loc 1 325 0 - 399 000e 2368 ldr r3, [r4] - 400 0010 196A ldr r1, [r3, #32] - 401 0012 064A ldr r2, .L16 - 402 0014 1142 tst r1, r2 - 403 0016 07D1 bne .L15 - 325:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** - 404 .loc 1 325 0 is_stmt 0 discriminator 1 - 405 0018 196A ldr r1, [r3, #32] - 406 001a 054A ldr r2, .L16+4 - 407 001c 1142 tst r1, r2 - 408 001e 03D1 bne .L15 - 325:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** - 409 .loc 1 325 0 discriminator 2 - 410 0020 1A68 ldr r2, [r3] - 411 0022 0121 movs r1, #1 - 412 0024 8A43 bics r2, r1 - 413 0026 1A60 str r2, [r3] - 414 .L15: - 329:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** - 415 .loc 1 329 0 is_stmt 1 - ARM GAS /tmp/cc365F3j.s page 44 - - - 416 0028 0020 movs r0, #0 - 417 @ sp needed - 418 .LVL29: - 419 002a 10BD pop {r4, pc} - 420 .L17: - 421 .align 2 - 422 .L16: - 423 002c 11110000 .word 4369 - 424 0030 44040000 .word 1092 - 425 .cfi_endproc - 426 .LFE42: - 428 .section .text.HAL_TIMEx_HallSensor_Start_IT,"ax",%progbits - 429 .align 1 - 430 .global HAL_TIMEx_HallSensor_Start_IT - 431 .syntax unified - 432 .code 16 - 433 .thumb_func - 434 .fpu softvfp - 436 HAL_TIMEx_HallSensor_Start_IT: - 437 .LFB43: - 337:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** /* Check the parameters */ - 438 .loc 1 337 0 - 439 .cfi_startproc - 440 @ args = 0, pretend = 0, frame = 0 - 441 @ frame_needed = 0, uses_anonymous_args = 0 - 442 .LVL30: - 443 0000 10B5 push {r4, lr} - 444 .LCFI6: - 445 .cfi_def_cfa_offset 8 - 446 .cfi_offset 4, -8 - 447 .cfi_offset 14, -4 - 448 0002 0400 movs r4, r0 - 342:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** - 449 .loc 1 342 0 - 450 0004 0268 ldr r2, [r0] - 451 0006 D368 ldr r3, [r2, #12] - 452 0008 0221 movs r1, #2 - 453 000a 0B43 orrs r3, r1 - 454 000c D360 str r3, [r2, #12] - 346:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** - 455 .loc 1 346 0 - 456 000e 0122 movs r2, #1 - 457 0010 0021 movs r1, #0 - 458 0012 0068 ldr r0, [r0] - 459 .LVL31: - 460 0014 FFF7FEFF bl TIM_CCxChannelCmd - 461 .LVL32: - 349:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** - 462 .loc 1 349 0 - 463 0018 2268 ldr r2, [r4] - 464 001a 1368 ldr r3, [r2] - 465 001c 0121 movs r1, #1 - 466 001e 0B43 orrs r3, r1 - 467 0020 1360 str r3, [r2] - 353:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** - 468 .loc 1 353 0 - 469 0022 0020 movs r0, #0 - ARM GAS /tmp/cc365F3j.s page 45 - - - 470 @ sp needed - 471 .LVL33: - 472 0024 10BD pop {r4, pc} - 473 .cfi_endproc - 474 .LFE43: - 476 .section .text.HAL_TIMEx_HallSensor_Stop_IT,"ax",%progbits - 477 .align 1 - 478 .global HAL_TIMEx_HallSensor_Stop_IT - 479 .syntax unified - 480 .code 16 - 481 .thumb_func - 482 .fpu softvfp - 484 HAL_TIMEx_HallSensor_Stop_IT: - 485 .LFB44: - 361:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** /* Check the parameters */ - 486 .loc 1 361 0 - 487 .cfi_startproc - 488 @ args = 0, pretend = 0, frame = 0 - 489 @ frame_needed = 0, uses_anonymous_args = 0 - 490 .LVL34: - 491 0000 10B5 push {r4, lr} - 492 .LCFI7: - 493 .cfi_def_cfa_offset 8 - 494 .cfi_offset 4, -8 - 495 .cfi_offset 14, -4 - 496 0002 0400 movs r4, r0 - 367:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** - 497 .loc 1 367 0 - 498 0004 0022 movs r2, #0 - 499 0006 0021 movs r1, #0 - 500 0008 0068 ldr r0, [r0] - 501 .LVL35: - 502 000a FFF7FEFF bl TIM_CCxChannelCmd - 503 .LVL36: - 370:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** - 504 .loc 1 370 0 - 505 000e 2268 ldr r2, [r4] - 506 0010 D368 ldr r3, [r2, #12] - 507 0012 0221 movs r1, #2 - 508 0014 8B43 bics r3, r1 - 509 0016 D360 str r3, [r2, #12] - 373:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** - 510 .loc 1 373 0 - 511 0018 2368 ldr r3, [r4] - 512 001a 196A ldr r1, [r3, #32] - 513 001c 064A ldr r2, .L21 - 514 001e 1142 tst r1, r2 - 515 0020 07D1 bne .L20 - 373:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** - 516 .loc 1 373 0 is_stmt 0 discriminator 1 - 517 0022 196A ldr r1, [r3, #32] - 518 0024 054A ldr r2, .L21+4 - 519 0026 1142 tst r1, r2 - 520 0028 03D1 bne .L20 - 373:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** - 521 .loc 1 373 0 discriminator 2 - 522 002a 1A68 ldr r2, [r3] - ARM GAS /tmp/cc365F3j.s page 46 - - - 523 002c 0121 movs r1, #1 - 524 002e 8A43 bics r2, r1 - 525 0030 1A60 str r2, [r3] - 526 .L20: - 377:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** - 527 .loc 1 377 0 is_stmt 1 - 528 0032 0020 movs r0, #0 - 529 @ sp needed - 530 .LVL37: - 531 0034 10BD pop {r4, pc} - 532 .L22: - 533 0036 C046 .align 2 - 534 .L21: - 535 0038 11110000 .word 4369 - 536 003c 44040000 .word 1092 - 537 .cfi_endproc - 538 .LFE44: - 540 .section .text.HAL_TIMEx_HallSensor_Start_DMA,"ax",%progbits - 541 .align 1 - 542 .global HAL_TIMEx_HallSensor_Start_DMA - 543 .syntax unified - 544 .code 16 - 545 .thumb_func - 546 .fpu softvfp - 548 HAL_TIMEx_HallSensor_Start_DMA: - 549 .LFB45: - 387:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** /* Check the parameters */ - 550 .loc 1 387 0 - 551 .cfi_startproc - 552 @ args = 0, pretend = 0, frame = 0 - 553 @ frame_needed = 0, uses_anonymous_args = 0 - 554 .LVL38: - 555 0000 70B5 push {r4, r5, r6, lr} - 556 .LCFI8: - 557 .cfi_def_cfa_offset 16 - 558 .cfi_offset 4, -16 - 559 .cfi_offset 5, -12 - 560 .cfi_offset 6, -8 - 561 .cfi_offset 14, -4 - 562 0002 0400 movs r4, r0 - 563 0004 0D00 movs r5, r1 - 564 0006 1600 movs r6, r2 - 391:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** { - 565 .loc 1 391 0 - 566 0008 3D23 movs r3, #61 - 567 000a C35C ldrb r3, [r0, r3] - 568 000c 022B cmp r3, #2 - 569 000e 2BD0 beq .L27 - 395:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** { - 570 .loc 1 395 0 - 571 0010 3D23 movs r3, #61 - 572 0012 C35C ldrb r3, [r0, r3] - 573 0014 012B cmp r3, #1 - 574 0016 04D1 bne .L25 - 397:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** { - 575 .loc 1 397 0 - 576 0018 0029 cmp r1, #0 - ARM GAS /tmp/cc365F3j.s page 47 - - - 577 001a 21D0 beq .L29 - 578 .L26: - 403:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** } - 579 .loc 1 403 0 - 580 001c 3D23 movs r3, #61 - 581 001e 0222 movs r2, #2 - 582 .LVL39: - 583 0020 E254 strb r2, [r4, r3] - 584 .L25: - 408:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** - 585 .loc 1 408 0 - 586 0022 0122 movs r2, #1 - 587 0024 0021 movs r1, #0 - 588 .LVL40: - 589 0026 2068 ldr r0, [r4] - 590 .LVL41: - 591 0028 FFF7FEFF bl TIM_CCxChannelCmd - 592 .LVL42: - 411:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** /* Set the DMA error callback */ - 593 .loc 1 411 0 - 594 002c 636A ldr r3, [r4, #36] - 595 002e 0F4A ldr r2, .L30 - 596 0030 9A62 str r2, [r3, #40] - 413:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** - 597 .loc 1 413 0 - 598 0032 636A ldr r3, [r4, #36] - 599 0034 0E4A ldr r2, .L30+4 - 600 0036 1A63 str r2, [r3, #48] - 416:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** - 601 .loc 1 416 0 - 602 0038 2168 ldr r1, [r4] - 603 003a 3431 adds r1, r1, #52 - 604 003c 3300 movs r3, r6 - 605 003e 2A00 movs r2, r5 - 606 0040 606A ldr r0, [r4, #36] - 607 0042 FFF7FEFF bl HAL_DMA_Start_IT - 608 .LVL43: - 419:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** - 609 .loc 1 419 0 - 610 0046 2268 ldr r2, [r4] - 611 0048 D168 ldr r1, [r2, #12] - 612 004a 8023 movs r3, #128 - 613 004c 9B00 lsls r3, r3, #2 - 614 004e 0B43 orrs r3, r1 - 615 0050 D360 str r3, [r2, #12] - 422:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** - 616 .loc 1 422 0 - 617 0052 2268 ldr r2, [r4] - 618 0054 1368 ldr r3, [r2] - 619 0056 0121 movs r1, #1 - 620 0058 0B43 orrs r3, r1 - 621 005a 1360 str r3, [r2] - 425:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** } - 622 .loc 1 425 0 - 623 005c 0020 movs r0, #0 - 624 .L24: - 426:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** - ARM GAS /tmp/cc365F3j.s page 48 - - - 625 .loc 1 426 0 - 626 @ sp needed - 627 .LVL44: - 628 .LVL45: - 629 005e 70BD pop {r4, r5, r6, pc} - 630 .LVL46: - 631 .L29: - 397:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** { - 632 .loc 1 397 0 discriminator 1 - 633 0060 002A cmp r2, #0 - 634 0062 DBD0 beq .L26 - 399:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** } - 635 .loc 1 399 0 - 636 0064 0120 movs r0, #1 - 637 .LVL47: - 638 0066 FAE7 b .L24 - 639 .LVL48: - 640 .L27: - 393:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** } - 641 .loc 1 393 0 - 642 0068 0220 movs r0, #2 - 643 .LVL49: - 644 006a F8E7 b .L24 - 645 .L31: - 646 .align 2 - 647 .L30: - 648 006c 00000000 .word TIM_DMACaptureCplt - 649 0070 00000000 .word TIM_DMAError - 650 .cfi_endproc - 651 .LFE45: - 653 .section .text.HAL_TIMEx_HallSensor_Stop_DMA,"ax",%progbits - 654 .align 1 - 655 .global HAL_TIMEx_HallSensor_Stop_DMA - 656 .syntax unified - 657 .code 16 - 658 .thumb_func - 659 .fpu softvfp - 661 HAL_TIMEx_HallSensor_Stop_DMA: - 662 .LFB46: - 434:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** /* Check the parameters */ - 663 .loc 1 434 0 - 664 .cfi_startproc - 665 @ args = 0, pretend = 0, frame = 0 - 666 @ frame_needed = 0, uses_anonymous_args = 0 - 667 .LVL50: - 668 0000 10B5 push {r4, lr} - 669 .LCFI9: - 670 .cfi_def_cfa_offset 8 - 671 .cfi_offset 4, -8 - 672 .cfi_offset 14, -4 - 673 0002 0400 movs r4, r0 - 440:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** - 674 .loc 1 440 0 - 675 0004 0022 movs r2, #0 - 676 0006 0021 movs r1, #0 - 677 0008 0068 ldr r0, [r0] - 678 .LVL51: - ARM GAS /tmp/cc365F3j.s page 49 - - - 679 000a FFF7FEFF bl TIM_CCxChannelCmd - 680 .LVL52: - 444:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** - 681 .loc 1 444 0 - 682 000e 2268 ldr r2, [r4] - 683 0010 D368 ldr r3, [r2, #12] - 684 0012 0949 ldr r1, .L34 - 685 0014 0B40 ands r3, r1 - 686 0016 D360 str r3, [r2, #12] - 447:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** - 687 .loc 1 447 0 - 688 0018 2368 ldr r3, [r4] - 689 001a 196A ldr r1, [r3, #32] - 690 001c 074A ldr r2, .L34+4 - 691 001e 1142 tst r1, r2 - 692 0020 07D1 bne .L33 - 447:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** - 693 .loc 1 447 0 is_stmt 0 discriminator 1 - 694 0022 196A ldr r1, [r3, #32] - 695 0024 064A ldr r2, .L34+8 - 696 0026 1142 tst r1, r2 - 697 0028 03D1 bne .L33 - 447:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** - 698 .loc 1 447 0 discriminator 2 - 699 002a 1A68 ldr r2, [r3] - 700 002c 0121 movs r1, #1 - 701 002e 8A43 bics r2, r1 - 702 0030 1A60 str r2, [r3] - 703 .L33: - 451:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** - 704 .loc 1 451 0 is_stmt 1 - 705 0032 0020 movs r0, #0 - 706 @ sp needed - 707 .LVL53: - 708 0034 10BD pop {r4, pc} - 709 .L35: - 710 0036 C046 .align 2 - 711 .L34: - 712 0038 FFFDFFFF .word -513 - 713 003c 11110000 .word 4369 - 714 0040 44040000 .word 1092 - 715 .cfi_endproc - 716 .LFE46: - 718 .section .text.HAL_TIMEx_OCN_Start,"ax",%progbits - 719 .align 1 - 720 .global HAL_TIMEx_OCN_Start - 721 .syntax unified - 722 .code 16 - 723 .thumb_func - 724 .fpu softvfp - 726 HAL_TIMEx_OCN_Start: - 727 .LFB47: - 490:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** /* Check the parameters */ - 728 .loc 1 490 0 - 729 .cfi_startproc - 730 @ args = 0, pretend = 0, frame = 0 - 731 @ frame_needed = 0, uses_anonymous_args = 0 - ARM GAS /tmp/cc365F3j.s page 50 - - - 732 .LVL54: - 733 0000 10B5 push {r4, lr} - 734 .LCFI10: - 735 .cfi_def_cfa_offset 8 - 736 .cfi_offset 4, -8 - 737 .cfi_offset 14, -4 - 738 0002 0400 movs r4, r0 - 495:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** - 739 .loc 1 495 0 - 740 0004 0422 movs r2, #4 - 741 0006 0068 ldr r0, [r0] - 742 .LVL55: - 743 0008 FFF7FEFF bl TIM_CCxNChannelCmd - 744 .LVL56: - 498:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** - 745 .loc 1 498 0 - 746 000c 2268 ldr r2, [r4] - 747 000e 516C ldr r1, [r2, #68] - 748 0010 8023 movs r3, #128 - 749 0012 1B02 lsls r3, r3, #8 - 750 0014 0B43 orrs r3, r1 - 751 0016 5364 str r3, [r2, #68] - 501:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** - 752 .loc 1 501 0 - 753 0018 2268 ldr r2, [r4] - 754 001a 1368 ldr r3, [r2] - 755 001c 0121 movs r1, #1 - 756 001e 0B43 orrs r3, r1 - 757 0020 1360 str r3, [r2] - 505:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** - 758 .loc 1 505 0 - 759 0022 0020 movs r0, #0 - 760 @ sp needed - 761 .LVL57: - 762 0024 10BD pop {r4, pc} - 763 .cfi_endproc - 764 .LFE47: - 766 .section .text.HAL_TIMEx_OCN_Stop,"ax",%progbits - 767 .align 1 - 768 .global HAL_TIMEx_OCN_Stop - 769 .syntax unified - 770 .code 16 - 771 .thumb_func - 772 .fpu softvfp - 774 HAL_TIMEx_OCN_Stop: - 775 .LFB48: - 520:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** /* Check the parameters */ - 776 .loc 1 520 0 - 777 .cfi_startproc - 778 @ args = 0, pretend = 0, frame = 0 - 779 @ frame_needed = 0, uses_anonymous_args = 0 - 780 .LVL58: - 781 0000 10B5 push {r4, lr} - 782 .LCFI11: - 783 .cfi_def_cfa_offset 8 - 784 .cfi_offset 4, -8 - 785 .cfi_offset 14, -4 - ARM GAS /tmp/cc365F3j.s page 51 - - - 786 0002 0400 movs r4, r0 - 525:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** - 787 .loc 1 525 0 - 788 0004 0022 movs r2, #0 - 789 0006 0068 ldr r0, [r0] - 790 .LVL59: - 791 0008 FFF7FEFF bl TIM_CCxNChannelCmd - 792 .LVL60: - 528:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** - 793 .loc 1 528 0 - 794 000c 2368 ldr r3, [r4] - 795 000e 196A ldr r1, [r3, #32] - 796 0010 0C4A ldr r2, .L40 - 797 0012 1142 tst r1, r2 - 798 0014 07D1 bne .L38 - 528:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** - 799 .loc 1 528 0 is_stmt 0 discriminator 1 - 800 0016 196A ldr r1, [r3, #32] - 801 0018 0B4A ldr r2, .L40+4 - 802 001a 1142 tst r1, r2 - 803 001c 03D1 bne .L38 - 528:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** - 804 .loc 1 528 0 discriminator 2 - 805 001e 5A6C ldr r2, [r3, #68] - 806 0020 0A49 ldr r1, .L40+8 - 807 0022 0A40 ands r2, r1 - 808 0024 5A64 str r2, [r3, #68] - 809 .L38: - 531:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** - 810 .loc 1 531 0 is_stmt 1 - 811 0026 2368 ldr r3, [r4] - 812 0028 196A ldr r1, [r3, #32] - 813 002a 064A ldr r2, .L40 - 814 002c 1142 tst r1, r2 - 815 002e 07D1 bne .L39 - 531:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** - 816 .loc 1 531 0 is_stmt 0 discriminator 1 - 817 0030 196A ldr r1, [r3, #32] - 818 0032 054A ldr r2, .L40+4 - 819 0034 1142 tst r1, r2 - 820 0036 03D1 bne .L39 - 531:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** - 821 .loc 1 531 0 discriminator 2 - 822 0038 1A68 ldr r2, [r3] - 823 003a 0121 movs r1, #1 - 824 003c 8A43 bics r2, r1 - 825 003e 1A60 str r2, [r3] - 826 .L39: - 535:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** - 827 .loc 1 535 0 is_stmt 1 - 828 0040 0020 movs r0, #0 - 829 @ sp needed - 830 .LVL61: - 831 0042 10BD pop {r4, pc} - 832 .L41: - 833 .align 2 - 834 .L40: - ARM GAS /tmp/cc365F3j.s page 52 - - - 835 0044 11110000 .word 4369 - 836 0048 44040000 .word 1092 - 837 004c FF7FFFFF .word -32769 - 838 .cfi_endproc - 839 .LFE48: - 841 .section .text.HAL_TIMEx_OCN_Start_IT,"ax",%progbits - 842 .align 1 - 843 .global HAL_TIMEx_OCN_Start_IT - 844 .syntax unified - 845 .code 16 - 846 .thumb_func - 847 .fpu softvfp - 849 HAL_TIMEx_OCN_Start_IT: - 850 .LFB49: - 550:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** /* Check the parameters */ - 851 .loc 1 550 0 - 852 .cfi_startproc - 853 @ args = 0, pretend = 0, frame = 0 - 854 @ frame_needed = 0, uses_anonymous_args = 0 - 855 .LVL62: - 856 0000 10B5 push {r4, lr} - 857 .LCFI12: - 858 .cfi_def_cfa_offset 8 - 859 .cfi_offset 4, -8 - 860 .cfi_offset 14, -4 - 861 0002 0400 movs r4, r0 - 554:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** { - 862 .loc 1 554 0 - 863 0004 0429 cmp r1, #4 - 864 0006 27D0 beq .L44 - 865 0008 09D9 bls .L49 - 866 000a 0829 cmp r1, #8 - 867 000c 2AD0 beq .L47 - 868 000e 0C29 cmp r1, #12 - 869 0010 0CD1 bne .L43 - 580:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** } - 870 .loc 1 580 0 - 871 0012 0268 ldr r2, [r0] - 872 0014 D368 ldr r3, [r2, #12] - 873 0016 1020 movs r0, #16 - 874 .LVL63: - 875 0018 0343 orrs r3, r0 - 876 001a D360 str r3, [r2, #12] - 582:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** - 877 .loc 1 582 0 - 878 001c 06E0 b .L43 - 879 .LVL64: - 880 .L49: - 554:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** { - 881 .loc 1 554 0 - 882 001e 0029 cmp r1, #0 - 883 0020 04D1 bne .L43 - 559:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** } - 884 .loc 1 559 0 - 885 0022 0268 ldr r2, [r0] - 886 0024 D368 ldr r3, [r2, #12] - 887 0026 0220 movs r0, #2 - ARM GAS /tmp/cc365F3j.s page 53 - - - 888 .LVL65: - 889 0028 0343 orrs r3, r0 - 890 002a D360 str r3, [r2, #12] - 891 .L43: - 589:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** - 892 .loc 1 589 0 - 893 002c 2268 ldr r2, [r4] - 894 002e D368 ldr r3, [r2, #12] - 895 0030 8020 movs r0, #128 - 896 0032 0343 orrs r3, r0 - 897 0034 D360 str r3, [r2, #12] - 592:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** - 898 .loc 1 592 0 - 899 0036 0422 movs r2, #4 - 900 0038 2068 ldr r0, [r4] - 901 003a FFF7FEFF bl TIM_CCxNChannelCmd - 902 .LVL66: - 595:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** - 903 .loc 1 595 0 - 904 003e 2268 ldr r2, [r4] - 905 0040 516C ldr r1, [r2, #68] - 906 0042 8023 movs r3, #128 - 907 0044 1B02 lsls r3, r3, #8 - 908 0046 0B43 orrs r3, r1 - 909 0048 5364 str r3, [r2, #68] - 598:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** - 910 .loc 1 598 0 - 911 004a 2268 ldr r2, [r4] - 912 004c 1368 ldr r3, [r2] - 913 004e 0121 movs r1, #1 - 914 0050 0B43 orrs r3, r1 - 915 0052 1360 str r3, [r2] - 602:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** - 916 .loc 1 602 0 - 917 0054 0020 movs r0, #0 - 918 @ sp needed - 919 .LVL67: - 920 0056 10BD pop {r4, pc} - 921 .LVL68: - 922 .L44: - 566:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** } - 923 .loc 1 566 0 - 924 0058 0268 ldr r2, [r0] - 925 005a D368 ldr r3, [r2, #12] - 926 005c 0420 movs r0, #4 - 927 .LVL69: - 928 005e 0343 orrs r3, r0 - 929 0060 D360 str r3, [r2, #12] - 568:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** - 930 .loc 1 568 0 - 931 0062 E3E7 b .L43 - 932 .LVL70: - 933 .L47: - 573:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** } - 934 .loc 1 573 0 - 935 0064 0268 ldr r2, [r0] - 936 0066 D368 ldr r3, [r2, #12] - ARM GAS /tmp/cc365F3j.s page 54 - - - 937 0068 0820 movs r0, #8 - 938 .LVL71: - 939 006a 0343 orrs r3, r0 - 940 006c D360 str r3, [r2, #12] - 575:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** - 941 .loc 1 575 0 - 942 006e DDE7 b .L43 - 943 .cfi_endproc - 944 .LFE49: - 946 .section .text.HAL_TIMEx_OCN_Stop_IT,"ax",%progbits - 947 .align 1 - 948 .global HAL_TIMEx_OCN_Stop_IT - 949 .syntax unified - 950 .code 16 - 951 .thumb_func - 952 .fpu softvfp - 954 HAL_TIMEx_OCN_Stop_IT: - 955 .LFB50: - 617:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** uint32_t tmpccer = 0U; - 956 .loc 1 617 0 - 957 .cfi_startproc - 958 @ args = 0, pretend = 0, frame = 0 - 959 @ frame_needed = 0, uses_anonymous_args = 0 - 960 .LVL72: - 961 0000 10B5 push {r4, lr} - 962 .LCFI13: - 963 .cfi_def_cfa_offset 8 - 964 .cfi_offset 4, -8 - 965 .cfi_offset 14, -4 - 966 0002 0400 movs r4, r0 - 967 .LVL73: - 623:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** { - 968 .loc 1 623 0 - 969 0004 0429 cmp r1, #4 - 970 0006 3AD0 beq .L52 - 971 0008 09D9 bls .L60 - 972 000a 0829 cmp r1, #8 - 973 000c 3DD0 beq .L55 - 974 000e 0C29 cmp r1, #12 - 975 0010 0CD1 bne .L51 - 649:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** } - 976 .loc 1 649 0 - 977 0012 0268 ldr r2, [r0] - 978 0014 D368 ldr r3, [r2, #12] - 979 0016 1020 movs r0, #16 - 980 .LVL74: - 981 0018 8343 bics r3, r0 - 982 001a D360 str r3, [r2, #12] - 651:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** - 983 .loc 1 651 0 - 984 001c 06E0 b .L51 - 985 .LVL75: - 986 .L60: - 623:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** { - 987 .loc 1 623 0 - 988 001e 0029 cmp r1, #0 - 989 0020 04D1 bne .L51 - ARM GAS /tmp/cc365F3j.s page 55 - - - 628:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** } - 990 .loc 1 628 0 - 991 0022 0268 ldr r2, [r0] - 992 0024 D368 ldr r3, [r2, #12] - 993 0026 0220 movs r0, #2 - 994 .LVL76: - 995 0028 8343 bics r3, r0 - 996 002a D360 str r3, [r2, #12] - 997 .L51: - 658:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** - 998 .loc 1 658 0 - 999 002c 0022 movs r2, #0 - 1000 002e 2068 ldr r0, [r4] - 1001 0030 FFF7FEFF bl TIM_CCxNChannelCmd - 1002 .LVL77: - 661:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** if ((tmpccer & (TIM_CCER_CC1NE | TIM_CCER_CC2NE | TIM_CCER_CC3NE)) == RESET) - 1003 .loc 1 661 0 - 1004 0034 2368 ldr r3, [r4] - 1005 0036 196A ldr r1, [r3, #32] - 1006 .LVL78: - 662:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** { - 1007 .loc 1 662 0 - 1008 0038 174A ldr r2, .L61 - 1009 003a 1142 tst r1, r2 - 1010 003c 03D1 bne .L57 - 664:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** } - 1011 .loc 1 664 0 - 1012 003e DA68 ldr r2, [r3, #12] - 1013 0040 8021 movs r1, #128 - 1014 .LVL79: - 1015 0042 8A43 bics r2, r1 - 1016 0044 DA60 str r2, [r3, #12] - 1017 .L57: - 668:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** - 1018 .loc 1 668 0 - 1019 0046 2368 ldr r3, [r4] - 1020 0048 196A ldr r1, [r3, #32] - 1021 004a 144A ldr r2, .L61+4 - 1022 004c 1142 tst r1, r2 - 1023 004e 07D1 bne .L58 - 668:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** - 1024 .loc 1 668 0 is_stmt 0 discriminator 1 - 1025 0050 196A ldr r1, [r3, #32] - 1026 0052 114A ldr r2, .L61 - 1027 0054 1142 tst r1, r2 - 1028 0056 03D1 bne .L58 - 668:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** - 1029 .loc 1 668 0 discriminator 2 - 1030 0058 5A6C ldr r2, [r3, #68] - 1031 005a 1149 ldr r1, .L61+8 - 1032 005c 0A40 ands r2, r1 - 1033 005e 5A64 str r2, [r3, #68] - 1034 .L58: - 671:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** - 1035 .loc 1 671 0 is_stmt 1 - 1036 0060 2368 ldr r3, [r4] - 1037 0062 196A ldr r1, [r3, #32] - ARM GAS /tmp/cc365F3j.s page 56 - - - 1038 0064 0D4A ldr r2, .L61+4 - 1039 0066 1142 tst r1, r2 - 1040 0068 07D1 bne .L59 - 671:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** - 1041 .loc 1 671 0 is_stmt 0 discriminator 1 - 1042 006a 196A ldr r1, [r3, #32] - 1043 006c 0A4A ldr r2, .L61 - 1044 006e 1142 tst r1, r2 - 1045 0070 03D1 bne .L59 - 671:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** - 1046 .loc 1 671 0 discriminator 2 - 1047 0072 1A68 ldr r2, [r3] - 1048 0074 0121 movs r1, #1 - 1049 0076 8A43 bics r2, r1 - 1050 0078 1A60 str r2, [r3] - 1051 .L59: - 675:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** - 1052 .loc 1 675 0 is_stmt 1 - 1053 007a 0020 movs r0, #0 - 1054 @ sp needed - 1055 .LVL80: - 1056 007c 10BD pop {r4, pc} - 1057 .LVL81: - 1058 .L52: - 635:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** } - 1059 .loc 1 635 0 - 1060 007e 0268 ldr r2, [r0] - 1061 0080 D368 ldr r3, [r2, #12] - 1062 0082 0420 movs r0, #4 - 1063 .LVL82: - 1064 0084 8343 bics r3, r0 - 1065 0086 D360 str r3, [r2, #12] - 637:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** - 1066 .loc 1 637 0 - 1067 0088 D0E7 b .L51 - 1068 .LVL83: - 1069 .L55: - 642:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** } - 1070 .loc 1 642 0 - 1071 008a 0268 ldr r2, [r0] - 1072 008c D368 ldr r3, [r2, #12] - 1073 008e 0820 movs r0, #8 - 1074 .LVL84: - 1075 0090 8343 bics r3, r0 - 1076 0092 D360 str r3, [r2, #12] - 644:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** - 1077 .loc 1 644 0 - 1078 0094 CAE7 b .L51 - 1079 .L62: - 1080 0096 C046 .align 2 - 1081 .L61: - 1082 0098 44040000 .word 1092 - 1083 009c 11110000 .word 4369 - 1084 00a0 FF7FFFFF .word -32769 - 1085 .cfi_endproc - 1086 .LFE50: - 1088 .section .text.HAL_TIMEx_OCN_Start_DMA,"ax",%progbits - ARM GAS /tmp/cc365F3j.s page 57 - - - 1089 .align 1 - 1090 .global HAL_TIMEx_OCN_Start_DMA - 1091 .syntax unified - 1092 .code 16 - 1093 .thumb_func - 1094 .fpu softvfp - 1096 HAL_TIMEx_OCN_Start_DMA: - 1097 .LFB51: - 692:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** /* Check the parameters */ - 1098 .loc 1 692 0 - 1099 .cfi_startproc - 1100 @ args = 0, pretend = 0, frame = 0 - 1101 @ frame_needed = 0, uses_anonymous_args = 0 - 1102 .LVL85: - 1103 0000 70B5 push {r4, r5, r6, lr} - 1104 .LCFI14: - 1105 .cfi_def_cfa_offset 16 - 1106 .cfi_offset 4, -16 - 1107 .cfi_offset 5, -12 - 1108 .cfi_offset 6, -8 - 1109 .cfi_offset 14, -4 - 1110 0002 0400 movs r4, r0 - 1111 0004 0D00 movs r5, r1 - 1112 0006 1100 movs r1, r2 - 1113 .LVL86: - 696:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** { - 1114 .loc 1 696 0 - 1115 0008 3D22 movs r2, #61 - 1116 .LVL87: - 1117 000a 825C ldrb r2, [r0, r2] - 1118 000c 022A cmp r2, #2 - 1119 000e 00D1 bne .LCB973 - 1120 0010 6FE0 b .L73 @long jump - 1121 .LCB973: - 700:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** { - 1122 .loc 1 700 0 - 1123 0012 3D22 movs r2, #61 - 1124 0014 825C ldrb r2, [r0, r2] - 1125 0016 012A cmp r2, #1 - 1126 0018 18D0 beq .L75 - 1127 .LVL88: - 1128 .L65: - 711:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** { - 1129 .loc 1 711 0 - 1130 001a 042D cmp r5, #4 - 1131 001c 45D0 beq .L68 - 1132 001e 1FD9 bls .L76 - 1133 0020 082D cmp r5, #8 - 1134 0022 54D0 beq .L71 - 1135 0024 0C2D cmp r5, #12 - 1136 0026 2ED1 bne .L67 - 764:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** - 1137 .loc 1 764 0 - 1138 0028 226B ldr r2, [r4, #48] - 1139 002a 3348 ldr r0, .L78 - 1140 002c 9062 str r0, [r2, #40] - 767:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** - ARM GAS /tmp/cc365F3j.s page 58 - - - 1141 .loc 1 767 0 - 1142 002e 226B ldr r2, [r4, #48] - 1143 0030 3248 ldr r0, .L78+4 - 1144 0032 1063 str r0, [r2, #48] - 770:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** - 1145 .loc 1 770 0 - 1146 0034 2268 ldr r2, [r4] - 1147 0036 4032 adds r2, r2, #64 - 1148 0038 206B ldr r0, [r4, #48] - 1149 003a FFF7FEFF bl HAL_DMA_Start_IT - 1150 .LVL89: - 773:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** } - 1151 .loc 1 773 0 - 1152 003e 2268 ldr r2, [r4] - 1153 0040 D168 ldr r1, [r2, #12] - 1154 0042 8023 movs r3, #128 - 1155 0044 5B01 lsls r3, r3, #5 - 1156 0046 0B43 orrs r3, r1 - 1157 0048 D360 str r3, [r2, #12] - 775:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** - 1158 .loc 1 775 0 - 1159 004a 1CE0 b .L67 - 1160 .LVL90: - 1161 .L75: - 702:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** { - 1162 .loc 1 702 0 - 1163 004c 0029 cmp r1, #0 - 1164 004e 03D0 beq .L77 - 1165 .L66: - 708:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** } - 1166 .loc 1 708 0 - 1167 0050 3D22 movs r2, #61 - 1168 0052 0220 movs r0, #2 - 1169 .LVL91: - 1170 0054 A054 strb r0, [r4, r2] - 1171 0056 E0E7 b .L65 - 1172 .LVL92: - 1173 .L77: - 702:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** { - 1174 .loc 1 702 0 discriminator 1 - 1175 0058 002B cmp r3, #0 - 1176 005a F9D0 beq .L66 - 704:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** } - 1177 .loc 1 704 0 - 1178 005c 0120 movs r0, #1 - 1179 .LVL93: - 1180 005e 23E0 b .L64 - 1181 .L76: - 711:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** { - 1182 .loc 1 711 0 - 1183 0060 002D cmp r5, #0 - 1184 0062 10D1 bne .L67 - 716:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** - 1185 .loc 1 716 0 - 1186 0064 626A ldr r2, [r4, #36] - 1187 0066 2448 ldr r0, .L78 - 1188 0068 9062 str r0, [r2, #40] - ARM GAS /tmp/cc365F3j.s page 59 - - - 719:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** - 1189 .loc 1 719 0 - 1190 006a 626A ldr r2, [r4, #36] - 1191 006c 2348 ldr r0, .L78+4 - 1192 006e 1063 str r0, [r2, #48] - 722:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** - 1193 .loc 1 722 0 - 1194 0070 2268 ldr r2, [r4] - 1195 0072 3432 adds r2, r2, #52 - 1196 0074 606A ldr r0, [r4, #36] - 1197 0076 FFF7FEFF bl HAL_DMA_Start_IT - 1198 .LVL94: - 725:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** } - 1199 .loc 1 725 0 - 1200 007a 2268 ldr r2, [r4] - 1201 007c D168 ldr r1, [r2, #12] - 1202 007e 8023 movs r3, #128 - 1203 0080 9B00 lsls r3, r3, #2 - 1204 0082 0B43 orrs r3, r1 - 1205 0084 D360 str r3, [r2, #12] - 1206 .L67: - 782:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** - 1207 .loc 1 782 0 - 1208 0086 0422 movs r2, #4 - 1209 0088 2900 movs r1, r5 - 1210 008a 2068 ldr r0, [r4] - 1211 008c FFF7FEFF bl TIM_CCxNChannelCmd - 1212 .LVL95: - 785:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** - 1213 .loc 1 785 0 - 1214 0090 2268 ldr r2, [r4] - 1215 0092 516C ldr r1, [r2, #68] - 1216 0094 8023 movs r3, #128 - 1217 0096 1B02 lsls r3, r3, #8 - 1218 0098 0B43 orrs r3, r1 - 1219 009a 5364 str r3, [r2, #68] - 788:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** - 1220 .loc 1 788 0 - 1221 009c 2268 ldr r2, [r4] - 1222 009e 1368 ldr r3, [r2] - 1223 00a0 0121 movs r1, #1 - 1224 00a2 0B43 orrs r3, r1 - 1225 00a4 1360 str r3, [r2] - 791:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** } - 1226 .loc 1 791 0 - 1227 00a6 0020 movs r0, #0 - 1228 .L64: - 792:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** - 1229 .loc 1 792 0 - 1230 @ sp needed - 1231 .LVL96: - 1232 .LVL97: - 1233 00a8 70BD pop {r4, r5, r6, pc} - 1234 .LVL98: - 1235 .L68: - 732:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** - 1236 .loc 1 732 0 - ARM GAS /tmp/cc365F3j.s page 60 - - - 1237 00aa A26A ldr r2, [r4, #40] - 1238 00ac 1248 ldr r0, .L78 - 1239 00ae 9062 str r0, [r2, #40] - 735:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** - 1240 .loc 1 735 0 - 1241 00b0 A26A ldr r2, [r4, #40] - 1242 00b2 1248 ldr r0, .L78+4 - 1243 00b4 1063 str r0, [r2, #48] - 738:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** - 1244 .loc 1 738 0 - 1245 00b6 2268 ldr r2, [r4] - 1246 00b8 3832 adds r2, r2, #56 - 1247 00ba A06A ldr r0, [r4, #40] - 1248 00bc FFF7FEFF bl HAL_DMA_Start_IT - 1249 .LVL99: - 741:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** } - 1250 .loc 1 741 0 - 1251 00c0 2268 ldr r2, [r4] - 1252 00c2 D168 ldr r1, [r2, #12] - 1253 00c4 8023 movs r3, #128 - 1254 00c6 DB00 lsls r3, r3, #3 - 1255 00c8 0B43 orrs r3, r1 - 1256 00ca D360 str r3, [r2, #12] - 743:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** - 1257 .loc 1 743 0 - 1258 00cc DBE7 b .L67 - 1259 .LVL100: - 1260 .L71: - 748:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** - 1261 .loc 1 748 0 - 1262 00ce E26A ldr r2, [r4, #44] - 1263 00d0 0948 ldr r0, .L78 - 1264 00d2 9062 str r0, [r2, #40] - 751:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** - 1265 .loc 1 751 0 - 1266 00d4 E26A ldr r2, [r4, #44] - 1267 00d6 0948 ldr r0, .L78+4 - 1268 00d8 1063 str r0, [r2, #48] - 754:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** - 1269 .loc 1 754 0 - 1270 00da 2268 ldr r2, [r4] - 1271 00dc 3C32 adds r2, r2, #60 - 1272 00de E06A ldr r0, [r4, #44] - 1273 00e0 FFF7FEFF bl HAL_DMA_Start_IT - 1274 .LVL101: - 757:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** } - 1275 .loc 1 757 0 - 1276 00e4 2268 ldr r2, [r4] - 1277 00e6 D168 ldr r1, [r2, #12] - 1278 00e8 8023 movs r3, #128 - 1279 00ea 1B01 lsls r3, r3, #4 - 1280 00ec 0B43 orrs r3, r1 - 1281 00ee D360 str r3, [r2, #12] - 759:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** - 1282 .loc 1 759 0 - 1283 00f0 C9E7 b .L67 - 1284 .LVL102: - ARM GAS /tmp/cc365F3j.s page 61 - - - 1285 .L73: - 698:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** } - 1286 .loc 1 698 0 - 1287 00f2 0220 movs r0, #2 - 1288 .LVL103: - 1289 00f4 D8E7 b .L64 - 1290 .L79: - 1291 00f6 C046 .align 2 - 1292 .L78: - 1293 00f8 00000000 .word TIM_DMADelayPulseCplt - 1294 00fc 00000000 .word TIM_DMAError - 1295 .cfi_endproc - 1296 .LFE51: - 1298 .section .text.HAL_TIMEx_OCN_Stop_DMA,"ax",%progbits - 1299 .align 1 - 1300 .global HAL_TIMEx_OCN_Stop_DMA - 1301 .syntax unified - 1302 .code 16 - 1303 .thumb_func - 1304 .fpu softvfp - 1306 HAL_TIMEx_OCN_Stop_DMA: - 1307 .LFB52: - 807:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** /* Check the parameters */ - 1308 .loc 1 807 0 - 1309 .cfi_startproc - 1310 @ args = 0, pretend = 0, frame = 0 - 1311 @ frame_needed = 0, uses_anonymous_args = 0 - 1312 .LVL104: - 1313 0000 10B5 push {r4, lr} - 1314 .LCFI15: - 1315 .cfi_def_cfa_offset 8 - 1316 .cfi_offset 4, -8 - 1317 .cfi_offset 14, -4 - 1318 0002 0400 movs r4, r0 - 811:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** { - 1319 .loc 1 811 0 - 1320 0004 0429 cmp r1, #4 - 1321 0006 34D0 beq .L82 - 1322 0008 09D9 bls .L89 - 1323 000a 0829 cmp r1, #8 - 1324 000c 37D0 beq .L85 - 1325 000e 0C29 cmp r1, #12 - 1326 0010 0CD1 bne .L81 - 837:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** } - 1327 .loc 1 837 0 - 1328 0012 0268 ldr r2, [r0] - 1329 0014 D368 ldr r3, [r2, #12] - 1330 0016 1D48 ldr r0, .L90 - 1331 .LVL105: - 1332 0018 0340 ands r3, r0 - 1333 001a D360 str r3, [r2, #12] - 839:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** - 1334 .loc 1 839 0 - 1335 001c 06E0 b .L81 - 1336 .LVL106: - 1337 .L89: - 811:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** { - ARM GAS /tmp/cc365F3j.s page 62 - - - 1338 .loc 1 811 0 - 1339 001e 0029 cmp r1, #0 - 1340 0020 04D1 bne .L81 - 816:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** } - 1341 .loc 1 816 0 - 1342 0022 0268 ldr r2, [r0] - 1343 0024 D368 ldr r3, [r2, #12] - 1344 0026 1A48 ldr r0, .L90+4 - 1345 .LVL107: - 1346 0028 0340 ands r3, r0 - 1347 002a D360 str r3, [r2, #12] - 1348 .L81: - 846:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** - 1349 .loc 1 846 0 - 1350 002c 0022 movs r2, #0 - 1351 002e 2068 ldr r0, [r4] - 1352 0030 FFF7FEFF bl TIM_CCxNChannelCmd - 1353 .LVL108: - 849:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** - 1354 .loc 1 849 0 - 1355 0034 2368 ldr r3, [r4] - 1356 0036 196A ldr r1, [r3, #32] - 1357 0038 164A ldr r2, .L90+8 - 1358 003a 1142 tst r1, r2 - 1359 003c 07D1 bne .L87 - 849:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** - 1360 .loc 1 849 0 is_stmt 0 discriminator 1 - 1361 003e 196A ldr r1, [r3, #32] - 1362 0040 154A ldr r2, .L90+12 - 1363 0042 1142 tst r1, r2 - 1364 0044 03D1 bne .L87 - 849:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** - 1365 .loc 1 849 0 discriminator 2 - 1366 0046 5A6C ldr r2, [r3, #68] - 1367 0048 1449 ldr r1, .L90+16 - 1368 004a 0A40 ands r2, r1 - 1369 004c 5A64 str r2, [r3, #68] - 1370 .L87: - 852:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** - 1371 .loc 1 852 0 is_stmt 1 - 1372 004e 2368 ldr r3, [r4] - 1373 0050 196A ldr r1, [r3, #32] - 1374 0052 104A ldr r2, .L90+8 - 1375 0054 1142 tst r1, r2 - 1376 0056 07D1 bne .L88 - 852:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** - 1377 .loc 1 852 0 is_stmt 0 discriminator 1 - 1378 0058 196A ldr r1, [r3, #32] - 1379 005a 0F4A ldr r2, .L90+12 - 1380 005c 1142 tst r1, r2 - 1381 005e 03D1 bne .L88 - 852:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** - 1382 .loc 1 852 0 discriminator 2 - 1383 0060 1A68 ldr r2, [r3] - 1384 0062 0121 movs r1, #1 - 1385 0064 8A43 bics r2, r1 - 1386 0066 1A60 str r2, [r3] - ARM GAS /tmp/cc365F3j.s page 63 - - - 1387 .L88: - 855:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** - 1388 .loc 1 855 0 is_stmt 1 - 1389 0068 3D23 movs r3, #61 - 1390 006a 0122 movs r2, #1 - 1391 006c E254 strb r2, [r4, r3] - 859:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** - 1392 .loc 1 859 0 - 1393 006e 0020 movs r0, #0 - 1394 @ sp needed - 1395 .LVL109: - 1396 0070 10BD pop {r4, pc} - 1397 .LVL110: - 1398 .L82: - 823:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** } - 1399 .loc 1 823 0 - 1400 0072 0268 ldr r2, [r0] - 1401 0074 D368 ldr r3, [r2, #12] - 1402 0076 0A48 ldr r0, .L90+20 - 1403 .LVL111: - 1404 0078 0340 ands r3, r0 - 1405 007a D360 str r3, [r2, #12] - 825:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** - 1406 .loc 1 825 0 - 1407 007c D6E7 b .L81 - 1408 .LVL112: - 1409 .L85: - 830:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** } - 1410 .loc 1 830 0 - 1411 007e 0268 ldr r2, [r0] - 1412 0080 D368 ldr r3, [r2, #12] - 1413 0082 0848 ldr r0, .L90+24 - 1414 .LVL113: - 1415 0084 0340 ands r3, r0 - 1416 0086 D360 str r3, [r2, #12] - 832:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** - 1417 .loc 1 832 0 - 1418 0088 D0E7 b .L81 - 1419 .L91: - 1420 008a C046 .align 2 - 1421 .L90: - 1422 008c FFEFFFFF .word -4097 - 1423 0090 FFFDFFFF .word -513 - 1424 0094 11110000 .word 4369 - 1425 0098 44040000 .word 1092 - 1426 009c FF7FFFFF .word -32769 - 1427 00a0 FFFBFFFF .word -1025 - 1428 00a4 FFF7FFFF .word -2049 - 1429 .cfi_endproc - 1430 .LFE52: - 1432 .section .text.HAL_TIMEx_PWMN_Start,"ax",%progbits - 1433 .align 1 - 1434 .global HAL_TIMEx_PWMN_Start - 1435 .syntax unified - 1436 .code 16 - 1437 .thumb_func - 1438 .fpu softvfp - ARM GAS /tmp/cc365F3j.s page 64 - - - 1440 HAL_TIMEx_PWMN_Start: - 1441 .LFB53: - 907:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** /* Check the parameters */ - 1442 .loc 1 907 0 - 1443 .cfi_startproc - 1444 @ args = 0, pretend = 0, frame = 0 - 1445 @ frame_needed = 0, uses_anonymous_args = 0 - 1446 .LVL114: - 1447 0000 10B5 push {r4, lr} - 1448 .LCFI16: - 1449 .cfi_def_cfa_offset 8 - 1450 .cfi_offset 4, -8 - 1451 .cfi_offset 14, -4 - 1452 0002 0400 movs r4, r0 - 912:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** - 1453 .loc 1 912 0 - 1454 0004 0422 movs r2, #4 - 1455 0006 0068 ldr r0, [r0] - 1456 .LVL115: - 1457 0008 FFF7FEFF bl TIM_CCxNChannelCmd - 1458 .LVL116: - 915:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** - 1459 .loc 1 915 0 - 1460 000c 2268 ldr r2, [r4] - 1461 000e 516C ldr r1, [r2, #68] - 1462 0010 8023 movs r3, #128 - 1463 0012 1B02 lsls r3, r3, #8 - 1464 0014 0B43 orrs r3, r1 - 1465 0016 5364 str r3, [r2, #68] - 918:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** - 1466 .loc 1 918 0 - 1467 0018 2268 ldr r2, [r4] - 1468 001a 1368 ldr r3, [r2] - 1469 001c 0121 movs r1, #1 - 1470 001e 0B43 orrs r3, r1 - 1471 0020 1360 str r3, [r2] - 922:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** - 1472 .loc 1 922 0 - 1473 0022 0020 movs r0, #0 - 1474 @ sp needed - 1475 .LVL117: - 1476 0024 10BD pop {r4, pc} - 1477 .cfi_endproc - 1478 .LFE53: - 1480 .section .text.HAL_TIMEx_PWMN_Stop,"ax",%progbits - 1481 .align 1 - 1482 .global HAL_TIMEx_PWMN_Stop - 1483 .syntax unified - 1484 .code 16 - 1485 .thumb_func - 1486 .fpu softvfp - 1488 HAL_TIMEx_PWMN_Stop: - 1489 .LFB54: - 936:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** /* Check the parameters */ - 1490 .loc 1 936 0 - 1491 .cfi_startproc - 1492 @ args = 0, pretend = 0, frame = 0 - ARM GAS /tmp/cc365F3j.s page 65 - - - 1493 @ frame_needed = 0, uses_anonymous_args = 0 - 1494 .LVL118: - 1495 0000 10B5 push {r4, lr} - 1496 .LCFI17: - 1497 .cfi_def_cfa_offset 8 - 1498 .cfi_offset 4, -8 - 1499 .cfi_offset 14, -4 - 1500 0002 0400 movs r4, r0 - 941:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** - 1501 .loc 1 941 0 - 1502 0004 0022 movs r2, #0 - 1503 0006 0068 ldr r0, [r0] - 1504 .LVL119: - 1505 0008 FFF7FEFF bl TIM_CCxNChannelCmd - 1506 .LVL120: - 944:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** - 1507 .loc 1 944 0 - 1508 000c 2368 ldr r3, [r4] - 1509 000e 196A ldr r1, [r3, #32] - 1510 0010 0C4A ldr r2, .L96 - 1511 0012 1142 tst r1, r2 - 1512 0014 07D1 bne .L94 - 944:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** - 1513 .loc 1 944 0 is_stmt 0 discriminator 1 - 1514 0016 196A ldr r1, [r3, #32] - 1515 0018 0B4A ldr r2, .L96+4 - 1516 001a 1142 tst r1, r2 - 1517 001c 03D1 bne .L94 - 944:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** - 1518 .loc 1 944 0 discriminator 2 - 1519 001e 5A6C ldr r2, [r3, #68] - 1520 0020 0A49 ldr r1, .L96+8 - 1521 0022 0A40 ands r2, r1 - 1522 0024 5A64 str r2, [r3, #68] - 1523 .L94: - 947:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** - 1524 .loc 1 947 0 is_stmt 1 - 1525 0026 2368 ldr r3, [r4] - 1526 0028 196A ldr r1, [r3, #32] - 1527 002a 064A ldr r2, .L96 - 1528 002c 1142 tst r1, r2 - 1529 002e 07D1 bne .L95 - 947:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** - 1530 .loc 1 947 0 is_stmt 0 discriminator 1 - 1531 0030 196A ldr r1, [r3, #32] - 1532 0032 054A ldr r2, .L96+4 - 1533 0034 1142 tst r1, r2 - 1534 0036 03D1 bne .L95 - 947:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** - 1535 .loc 1 947 0 discriminator 2 - 1536 0038 1A68 ldr r2, [r3] - 1537 003a 0121 movs r1, #1 - 1538 003c 8A43 bics r2, r1 - 1539 003e 1A60 str r2, [r3] - 1540 .L95: - 951:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** - 1541 .loc 1 951 0 is_stmt 1 - ARM GAS /tmp/cc365F3j.s page 66 - - - 1542 0040 0020 movs r0, #0 - 1543 @ sp needed - 1544 .LVL121: - 1545 0042 10BD pop {r4, pc} - 1546 .L97: - 1547 .align 2 - 1548 .L96: - 1549 0044 11110000 .word 4369 - 1550 0048 44040000 .word 1092 - 1551 004c FF7FFFFF .word -32769 - 1552 .cfi_endproc - 1553 .LFE54: - 1555 .section .text.HAL_TIMEx_PWMN_Start_IT,"ax",%progbits - 1556 .align 1 - 1557 .global HAL_TIMEx_PWMN_Start_IT - 1558 .syntax unified - 1559 .code 16 - 1560 .thumb_func - 1561 .fpu softvfp - 1563 HAL_TIMEx_PWMN_Start_IT: - 1564 .LFB55: - 966:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** /* Check the parameters */ - 1565 .loc 1 966 0 - 1566 .cfi_startproc - 1567 @ args = 0, pretend = 0, frame = 0 - 1568 @ frame_needed = 0, uses_anonymous_args = 0 - 1569 .LVL122: - 1570 0000 10B5 push {r4, lr} - 1571 .LCFI18: - 1572 .cfi_def_cfa_offset 8 - 1573 .cfi_offset 4, -8 - 1574 .cfi_offset 14, -4 - 1575 0002 0400 movs r4, r0 - 970:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** { - 1576 .loc 1 970 0 - 1577 0004 0429 cmp r1, #4 - 1578 0006 27D0 beq .L100 - 1579 0008 09D9 bls .L105 - 1580 000a 0829 cmp r1, #8 - 1581 000c 2AD0 beq .L103 - 1582 000e 0C29 cmp r1, #12 - 1583 0010 0CD1 bne .L99 - 996:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** } - 1584 .loc 1 996 0 - 1585 0012 0268 ldr r2, [r0] - 1586 0014 D368 ldr r3, [r2, #12] - 1587 0016 1020 movs r0, #16 - 1588 .LVL123: - 1589 0018 0343 orrs r3, r0 - 1590 001a D360 str r3, [r2, #12] - 998:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** - 1591 .loc 1 998 0 - 1592 001c 06E0 b .L99 - 1593 .LVL124: - 1594 .L105: - 970:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** { - 1595 .loc 1 970 0 - ARM GAS /tmp/cc365F3j.s page 67 - - - 1596 001e 0029 cmp r1, #0 - 1597 0020 04D1 bne .L99 - 975:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** } - 1598 .loc 1 975 0 - 1599 0022 0268 ldr r2, [r0] - 1600 0024 D368 ldr r3, [r2, #12] - 1601 0026 0220 movs r0, #2 - 1602 .LVL125: - 1603 0028 0343 orrs r3, r0 - 1604 002a D360 str r3, [r2, #12] - 1605 .L99: -1005:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** - 1606 .loc 1 1005 0 - 1607 002c 2268 ldr r2, [r4] - 1608 002e D368 ldr r3, [r2, #12] - 1609 0030 8020 movs r0, #128 - 1610 0032 0343 orrs r3, r0 - 1611 0034 D360 str r3, [r2, #12] -1008:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** - 1612 .loc 1 1008 0 - 1613 0036 0422 movs r2, #4 - 1614 0038 2068 ldr r0, [r4] - 1615 003a FFF7FEFF bl TIM_CCxNChannelCmd - 1616 .LVL126: -1011:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** - 1617 .loc 1 1011 0 - 1618 003e 2268 ldr r2, [r4] - 1619 0040 516C ldr r1, [r2, #68] - 1620 0042 8023 movs r3, #128 - 1621 0044 1B02 lsls r3, r3, #8 - 1622 0046 0B43 orrs r3, r1 - 1623 0048 5364 str r3, [r2, #68] -1014:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** - 1624 .loc 1 1014 0 - 1625 004a 2268 ldr r2, [r4] - 1626 004c 1368 ldr r3, [r2] - 1627 004e 0121 movs r1, #1 - 1628 0050 0B43 orrs r3, r1 - 1629 0052 1360 str r3, [r2] -1018:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** - 1630 .loc 1 1018 0 - 1631 0054 0020 movs r0, #0 - 1632 @ sp needed - 1633 .LVL127: - 1634 0056 10BD pop {r4, pc} - 1635 .LVL128: - 1636 .L100: - 982:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** } - 1637 .loc 1 982 0 - 1638 0058 0268 ldr r2, [r0] - 1639 005a D368 ldr r3, [r2, #12] - 1640 005c 0420 movs r0, #4 - 1641 .LVL129: - 1642 005e 0343 orrs r3, r0 - 1643 0060 D360 str r3, [r2, #12] - 984:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** - 1644 .loc 1 984 0 - ARM GAS /tmp/cc365F3j.s page 68 - - - 1645 0062 E3E7 b .L99 - 1646 .LVL130: - 1647 .L103: - 989:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** } - 1648 .loc 1 989 0 - 1649 0064 0268 ldr r2, [r0] - 1650 0066 D368 ldr r3, [r2, #12] - 1651 0068 0820 movs r0, #8 - 1652 .LVL131: - 1653 006a 0343 orrs r3, r0 - 1654 006c D360 str r3, [r2, #12] - 991:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** - 1655 .loc 1 991 0 - 1656 006e DDE7 b .L99 - 1657 .cfi_endproc - 1658 .LFE55: - 1660 .section .text.HAL_TIMEx_PWMN_Stop_IT,"ax",%progbits - 1661 .align 1 - 1662 .global HAL_TIMEx_PWMN_Stop_IT - 1663 .syntax unified - 1664 .code 16 - 1665 .thumb_func - 1666 .fpu softvfp - 1668 HAL_TIMEx_PWMN_Stop_IT: - 1669 .LFB56: -1033:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** uint32_t tmpccer = 0U; - 1670 .loc 1 1033 0 - 1671 .cfi_startproc - 1672 @ args = 0, pretend = 0, frame = 0 - 1673 @ frame_needed = 0, uses_anonymous_args = 0 - 1674 .LVL132: - 1675 0000 10B5 push {r4, lr} - 1676 .LCFI19: - 1677 .cfi_def_cfa_offset 8 - 1678 .cfi_offset 4, -8 - 1679 .cfi_offset 14, -4 - 1680 0002 0400 movs r4, r0 - 1681 .LVL133: -1039:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** { - 1682 .loc 1 1039 0 - 1683 0004 0429 cmp r1, #4 - 1684 0006 3AD0 beq .L108 - 1685 0008 09D9 bls .L116 - 1686 000a 0829 cmp r1, #8 - 1687 000c 3DD0 beq .L111 - 1688 000e 0C29 cmp r1, #12 - 1689 0010 0CD1 bne .L107 -1065:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** } - 1690 .loc 1 1065 0 - 1691 0012 0268 ldr r2, [r0] - 1692 0014 D368 ldr r3, [r2, #12] - 1693 0016 1020 movs r0, #16 - 1694 .LVL134: - 1695 0018 8343 bics r3, r0 - 1696 001a D360 str r3, [r2, #12] -1067:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** - 1697 .loc 1 1067 0 - ARM GAS /tmp/cc365F3j.s page 69 - - - 1698 001c 06E0 b .L107 - 1699 .LVL135: - 1700 .L116: -1039:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** { - 1701 .loc 1 1039 0 - 1702 001e 0029 cmp r1, #0 - 1703 0020 04D1 bne .L107 -1044:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** } - 1704 .loc 1 1044 0 - 1705 0022 0268 ldr r2, [r0] - 1706 0024 D368 ldr r3, [r2, #12] - 1707 0026 0220 movs r0, #2 - 1708 .LVL136: - 1709 0028 8343 bics r3, r0 - 1710 002a D360 str r3, [r2, #12] - 1711 .L107: -1074:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** - 1712 .loc 1 1074 0 - 1713 002c 0022 movs r2, #0 - 1714 002e 2068 ldr r0, [r4] - 1715 0030 FFF7FEFF bl TIM_CCxNChannelCmd - 1716 .LVL137: -1077:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** if ((tmpccer & (TIM_CCER_CC1NE | TIM_CCER_CC2NE | TIM_CCER_CC3NE)) == RESET) - 1717 .loc 1 1077 0 - 1718 0034 2368 ldr r3, [r4] - 1719 0036 196A ldr r1, [r3, #32] - 1720 .LVL138: -1078:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** { - 1721 .loc 1 1078 0 - 1722 0038 174A ldr r2, .L117 - 1723 003a 1142 tst r1, r2 - 1724 003c 03D1 bne .L113 -1080:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** } - 1725 .loc 1 1080 0 - 1726 003e DA68 ldr r2, [r3, #12] - 1727 0040 8021 movs r1, #128 - 1728 .LVL139: - 1729 0042 8A43 bics r2, r1 - 1730 0044 DA60 str r2, [r3, #12] - 1731 .L113: -1084:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** - 1732 .loc 1 1084 0 - 1733 0046 2368 ldr r3, [r4] - 1734 0048 196A ldr r1, [r3, #32] - 1735 004a 144A ldr r2, .L117+4 - 1736 004c 1142 tst r1, r2 - 1737 004e 07D1 bne .L114 -1084:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** - 1738 .loc 1 1084 0 is_stmt 0 discriminator 1 - 1739 0050 196A ldr r1, [r3, #32] - 1740 0052 114A ldr r2, .L117 - 1741 0054 1142 tst r1, r2 - 1742 0056 03D1 bne .L114 -1084:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** - 1743 .loc 1 1084 0 discriminator 2 - 1744 0058 5A6C ldr r2, [r3, #68] - 1745 005a 1149 ldr r1, .L117+8 - ARM GAS /tmp/cc365F3j.s page 70 - - - 1746 005c 0A40 ands r2, r1 - 1747 005e 5A64 str r2, [r3, #68] - 1748 .L114: -1087:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** - 1749 .loc 1 1087 0 is_stmt 1 - 1750 0060 2368 ldr r3, [r4] - 1751 0062 196A ldr r1, [r3, #32] - 1752 0064 0D4A ldr r2, .L117+4 - 1753 0066 1142 tst r1, r2 - 1754 0068 07D1 bne .L115 -1087:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** - 1755 .loc 1 1087 0 is_stmt 0 discriminator 1 - 1756 006a 196A ldr r1, [r3, #32] - 1757 006c 0A4A ldr r2, .L117 - 1758 006e 1142 tst r1, r2 - 1759 0070 03D1 bne .L115 -1087:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** - 1760 .loc 1 1087 0 discriminator 2 - 1761 0072 1A68 ldr r2, [r3] - 1762 0074 0121 movs r1, #1 - 1763 0076 8A43 bics r2, r1 - 1764 0078 1A60 str r2, [r3] - 1765 .L115: -1091:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** - 1766 .loc 1 1091 0 is_stmt 1 - 1767 007a 0020 movs r0, #0 - 1768 @ sp needed - 1769 .LVL140: - 1770 007c 10BD pop {r4, pc} - 1771 .LVL141: - 1772 .L108: -1051:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** } - 1773 .loc 1 1051 0 - 1774 007e 0268 ldr r2, [r0] - 1775 0080 D368 ldr r3, [r2, #12] - 1776 0082 0420 movs r0, #4 - 1777 .LVL142: - 1778 0084 8343 bics r3, r0 - 1779 0086 D360 str r3, [r2, #12] -1053:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** - 1780 .loc 1 1053 0 - 1781 0088 D0E7 b .L107 - 1782 .LVL143: - 1783 .L111: -1058:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** } - 1784 .loc 1 1058 0 - 1785 008a 0268 ldr r2, [r0] - 1786 008c D368 ldr r3, [r2, #12] - 1787 008e 0820 movs r0, #8 - 1788 .LVL144: - 1789 0090 8343 bics r3, r0 - 1790 0092 D360 str r3, [r2, #12] -1060:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** - 1791 .loc 1 1060 0 - 1792 0094 CAE7 b .L107 - 1793 .L118: - 1794 0096 C046 .align 2 - ARM GAS /tmp/cc365F3j.s page 71 - - - 1795 .L117: - 1796 0098 44040000 .word 1092 - 1797 009c 11110000 .word 4369 - 1798 00a0 FF7FFFFF .word -32769 - 1799 .cfi_endproc - 1800 .LFE56: - 1802 .section .text.HAL_TIMEx_PWMN_Start_DMA,"ax",%progbits - 1803 .align 1 - 1804 .global HAL_TIMEx_PWMN_Start_DMA - 1805 .syntax unified - 1806 .code 16 - 1807 .thumb_func - 1808 .fpu softvfp - 1810 HAL_TIMEx_PWMN_Start_DMA: - 1811 .LFB57: -1108:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** /* Check the parameters */ - 1812 .loc 1 1108 0 - 1813 .cfi_startproc - 1814 @ args = 0, pretend = 0, frame = 0 - 1815 @ frame_needed = 0, uses_anonymous_args = 0 - 1816 .LVL145: - 1817 0000 70B5 push {r4, r5, r6, lr} - 1818 .LCFI20: - 1819 .cfi_def_cfa_offset 16 - 1820 .cfi_offset 4, -16 - 1821 .cfi_offset 5, -12 - 1822 .cfi_offset 6, -8 - 1823 .cfi_offset 14, -4 - 1824 0002 0400 movs r4, r0 - 1825 0004 0D00 movs r5, r1 - 1826 0006 1100 movs r1, r2 - 1827 .LVL146: -1112:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** { - 1828 .loc 1 1112 0 - 1829 0008 3D22 movs r2, #61 - 1830 .LVL147: - 1831 000a 825C ldrb r2, [r0, r2] - 1832 000c 022A cmp r2, #2 - 1833 000e 00D1 bne .LCB1665 - 1834 0010 6FE0 b .L129 @long jump - 1835 .LCB1665: -1116:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** { - 1836 .loc 1 1116 0 - 1837 0012 3D22 movs r2, #61 - 1838 0014 825C ldrb r2, [r0, r2] - 1839 0016 012A cmp r2, #1 - 1840 0018 18D0 beq .L131 - 1841 .LVL148: - 1842 .L121: -1127:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** { - 1843 .loc 1 1127 0 - 1844 001a 042D cmp r5, #4 - 1845 001c 45D0 beq .L124 - 1846 001e 1FD9 bls .L132 - 1847 0020 082D cmp r5, #8 - 1848 0022 54D0 beq .L127 - 1849 0024 0C2D cmp r5, #12 - ARM GAS /tmp/cc365F3j.s page 72 - - - 1850 0026 2ED1 bne .L123 -1180:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** - 1851 .loc 1 1180 0 - 1852 0028 226B ldr r2, [r4, #48] - 1853 002a 3348 ldr r0, .L134 - 1854 002c 9062 str r0, [r2, #40] -1183:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** - 1855 .loc 1 1183 0 - 1856 002e 226B ldr r2, [r4, #48] - 1857 0030 3248 ldr r0, .L134+4 - 1858 0032 1063 str r0, [r2, #48] -1186:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** - 1859 .loc 1 1186 0 - 1860 0034 2268 ldr r2, [r4] - 1861 0036 4032 adds r2, r2, #64 - 1862 0038 206B ldr r0, [r4, #48] - 1863 003a FFF7FEFF bl HAL_DMA_Start_IT - 1864 .LVL149: -1189:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** } - 1865 .loc 1 1189 0 - 1866 003e 2268 ldr r2, [r4] - 1867 0040 D168 ldr r1, [r2, #12] - 1868 0042 8023 movs r3, #128 - 1869 0044 5B01 lsls r3, r3, #5 - 1870 0046 0B43 orrs r3, r1 - 1871 0048 D360 str r3, [r2, #12] -1191:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** - 1872 .loc 1 1191 0 - 1873 004a 1CE0 b .L123 - 1874 .LVL150: - 1875 .L131: -1118:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** { - 1876 .loc 1 1118 0 - 1877 004c 0029 cmp r1, #0 - 1878 004e 03D0 beq .L133 - 1879 .L122: -1124:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** } - 1880 .loc 1 1124 0 - 1881 0050 3D22 movs r2, #61 - 1882 0052 0220 movs r0, #2 - 1883 .LVL151: - 1884 0054 A054 strb r0, [r4, r2] - 1885 0056 E0E7 b .L121 - 1886 .LVL152: - 1887 .L133: -1118:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** { - 1888 .loc 1 1118 0 discriminator 1 - 1889 0058 002B cmp r3, #0 - 1890 005a F9D0 beq .L122 -1120:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** } - 1891 .loc 1 1120 0 - 1892 005c 0120 movs r0, #1 - 1893 .LVL153: - 1894 005e 23E0 b .L120 - 1895 .L132: -1127:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** { - 1896 .loc 1 1127 0 - ARM GAS /tmp/cc365F3j.s page 73 - - - 1897 0060 002D cmp r5, #0 - 1898 0062 10D1 bne .L123 -1132:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** - 1899 .loc 1 1132 0 - 1900 0064 626A ldr r2, [r4, #36] - 1901 0066 2448 ldr r0, .L134 - 1902 0068 9062 str r0, [r2, #40] -1135:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** - 1903 .loc 1 1135 0 - 1904 006a 626A ldr r2, [r4, #36] - 1905 006c 2348 ldr r0, .L134+4 - 1906 006e 1063 str r0, [r2, #48] -1138:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** - 1907 .loc 1 1138 0 - 1908 0070 2268 ldr r2, [r4] - 1909 0072 3432 adds r2, r2, #52 - 1910 0074 606A ldr r0, [r4, #36] - 1911 0076 FFF7FEFF bl HAL_DMA_Start_IT - 1912 .LVL154: -1141:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** } - 1913 .loc 1 1141 0 - 1914 007a 2268 ldr r2, [r4] - 1915 007c D168 ldr r1, [r2, #12] - 1916 007e 8023 movs r3, #128 - 1917 0080 9B00 lsls r3, r3, #2 - 1918 0082 0B43 orrs r3, r1 - 1919 0084 D360 str r3, [r2, #12] - 1920 .L123: -1198:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** - 1921 .loc 1 1198 0 - 1922 0086 0422 movs r2, #4 - 1923 0088 2900 movs r1, r5 - 1924 008a 2068 ldr r0, [r4] - 1925 008c FFF7FEFF bl TIM_CCxNChannelCmd - 1926 .LVL155: -1201:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** - 1927 .loc 1 1201 0 - 1928 0090 2268 ldr r2, [r4] - 1929 0092 516C ldr r1, [r2, #68] - 1930 0094 8023 movs r3, #128 - 1931 0096 1B02 lsls r3, r3, #8 - 1932 0098 0B43 orrs r3, r1 - 1933 009a 5364 str r3, [r2, #68] -1204:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** - 1934 .loc 1 1204 0 - 1935 009c 2268 ldr r2, [r4] - 1936 009e 1368 ldr r3, [r2] - 1937 00a0 0121 movs r1, #1 - 1938 00a2 0B43 orrs r3, r1 - 1939 00a4 1360 str r3, [r2] -1207:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** } - 1940 .loc 1 1207 0 - 1941 00a6 0020 movs r0, #0 - 1942 .L120: -1208:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** - 1943 .loc 1 1208 0 - 1944 @ sp needed - ARM GAS /tmp/cc365F3j.s page 74 - - - 1945 .LVL156: - 1946 .LVL157: - 1947 00a8 70BD pop {r4, r5, r6, pc} - 1948 .LVL158: - 1949 .L124: -1148:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** - 1950 .loc 1 1148 0 - 1951 00aa A26A ldr r2, [r4, #40] - 1952 00ac 1248 ldr r0, .L134 - 1953 00ae 9062 str r0, [r2, #40] -1151:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** - 1954 .loc 1 1151 0 - 1955 00b0 A26A ldr r2, [r4, #40] - 1956 00b2 1248 ldr r0, .L134+4 - 1957 00b4 1063 str r0, [r2, #48] -1154:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** - 1958 .loc 1 1154 0 - 1959 00b6 2268 ldr r2, [r4] - 1960 00b8 3832 adds r2, r2, #56 - 1961 00ba A06A ldr r0, [r4, #40] - 1962 00bc FFF7FEFF bl HAL_DMA_Start_IT - 1963 .LVL159: -1157:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** } - 1964 .loc 1 1157 0 - 1965 00c0 2268 ldr r2, [r4] - 1966 00c2 D168 ldr r1, [r2, #12] - 1967 00c4 8023 movs r3, #128 - 1968 00c6 DB00 lsls r3, r3, #3 - 1969 00c8 0B43 orrs r3, r1 - 1970 00ca D360 str r3, [r2, #12] -1159:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** - 1971 .loc 1 1159 0 - 1972 00cc DBE7 b .L123 - 1973 .LVL160: - 1974 .L127: -1164:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** - 1975 .loc 1 1164 0 - 1976 00ce E26A ldr r2, [r4, #44] - 1977 00d0 0948 ldr r0, .L134 - 1978 00d2 9062 str r0, [r2, #40] -1167:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** - 1979 .loc 1 1167 0 - 1980 00d4 E26A ldr r2, [r4, #44] - 1981 00d6 0948 ldr r0, .L134+4 - 1982 00d8 1063 str r0, [r2, #48] -1170:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** - 1983 .loc 1 1170 0 - 1984 00da 2268 ldr r2, [r4] - 1985 00dc 3C32 adds r2, r2, #60 - 1986 00de E06A ldr r0, [r4, #44] - 1987 00e0 FFF7FEFF bl HAL_DMA_Start_IT - 1988 .LVL161: -1173:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** } - 1989 .loc 1 1173 0 - 1990 00e4 2268 ldr r2, [r4] - 1991 00e6 D168 ldr r1, [r2, #12] - 1992 00e8 8023 movs r3, #128 - ARM GAS /tmp/cc365F3j.s page 75 - - - 1993 00ea 1B01 lsls r3, r3, #4 - 1994 00ec 0B43 orrs r3, r1 - 1995 00ee D360 str r3, [r2, #12] -1175:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** - 1996 .loc 1 1175 0 - 1997 00f0 C9E7 b .L123 - 1998 .LVL162: - 1999 .L129: -1114:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** } - 2000 .loc 1 1114 0 - 2001 00f2 0220 movs r0, #2 - 2002 .LVL163: - 2003 00f4 D8E7 b .L120 - 2004 .L135: - 2005 00f6 C046 .align 2 - 2006 .L134: - 2007 00f8 00000000 .word TIM_DMADelayPulseCplt - 2008 00fc 00000000 .word TIM_DMAError - 2009 .cfi_endproc - 2010 .LFE57: - 2012 .section .text.HAL_TIMEx_PWMN_Stop_DMA,"ax",%progbits - 2013 .align 1 - 2014 .global HAL_TIMEx_PWMN_Stop_DMA - 2015 .syntax unified - 2016 .code 16 - 2017 .thumb_func - 2018 .fpu softvfp - 2020 HAL_TIMEx_PWMN_Stop_DMA: - 2021 .LFB58: -1223:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** /* Check the parameters */ - 2022 .loc 1 1223 0 - 2023 .cfi_startproc - 2024 @ args = 0, pretend = 0, frame = 0 - 2025 @ frame_needed = 0, uses_anonymous_args = 0 - 2026 .LVL164: - 2027 0000 10B5 push {r4, lr} - 2028 .LCFI21: - 2029 .cfi_def_cfa_offset 8 - 2030 .cfi_offset 4, -8 - 2031 .cfi_offset 14, -4 - 2032 0002 0400 movs r4, r0 -1227:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** { - 2033 .loc 1 1227 0 - 2034 0004 0429 cmp r1, #4 - 2035 0006 34D0 beq .L138 - 2036 0008 09D9 bls .L145 - 2037 000a 0829 cmp r1, #8 - 2038 000c 37D0 beq .L141 - 2039 000e 0C29 cmp r1, #12 - 2040 0010 0CD1 bne .L137 -1253:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** } - 2041 .loc 1 1253 0 - 2042 0012 0268 ldr r2, [r0] - 2043 0014 D368 ldr r3, [r2, #12] - 2044 0016 1D48 ldr r0, .L146 - 2045 .LVL165: - 2046 0018 0340 ands r3, r0 - ARM GAS /tmp/cc365F3j.s page 76 - - - 2047 001a D360 str r3, [r2, #12] -1255:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** - 2048 .loc 1 1255 0 - 2049 001c 06E0 b .L137 - 2050 .LVL166: - 2051 .L145: -1227:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** { - 2052 .loc 1 1227 0 - 2053 001e 0029 cmp r1, #0 - 2054 0020 04D1 bne .L137 -1232:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** } - 2055 .loc 1 1232 0 - 2056 0022 0268 ldr r2, [r0] - 2057 0024 D368 ldr r3, [r2, #12] - 2058 0026 1A48 ldr r0, .L146+4 - 2059 .LVL167: - 2060 0028 0340 ands r3, r0 - 2061 002a D360 str r3, [r2, #12] - 2062 .L137: -1262:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** - 2063 .loc 1 1262 0 - 2064 002c 0022 movs r2, #0 - 2065 002e 2068 ldr r0, [r4] - 2066 0030 FFF7FEFF bl TIM_CCxNChannelCmd - 2067 .LVL168: -1265:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** - 2068 .loc 1 1265 0 - 2069 0034 2368 ldr r3, [r4] - 2070 0036 196A ldr r1, [r3, #32] - 2071 0038 164A ldr r2, .L146+8 - 2072 003a 1142 tst r1, r2 - 2073 003c 07D1 bne .L143 -1265:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** - 2074 .loc 1 1265 0 is_stmt 0 discriminator 1 - 2075 003e 196A ldr r1, [r3, #32] - 2076 0040 154A ldr r2, .L146+12 - 2077 0042 1142 tst r1, r2 - 2078 0044 03D1 bne .L143 -1265:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** - 2079 .loc 1 1265 0 discriminator 2 - 2080 0046 5A6C ldr r2, [r3, #68] - 2081 0048 1449 ldr r1, .L146+16 - 2082 004a 0A40 ands r2, r1 - 2083 004c 5A64 str r2, [r3, #68] - 2084 .L143: -1268:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** - 2085 .loc 1 1268 0 is_stmt 1 - 2086 004e 2368 ldr r3, [r4] - 2087 0050 196A ldr r1, [r3, #32] - 2088 0052 104A ldr r2, .L146+8 - 2089 0054 1142 tst r1, r2 - 2090 0056 07D1 bne .L144 -1268:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** - 2091 .loc 1 1268 0 is_stmt 0 discriminator 1 - 2092 0058 196A ldr r1, [r3, #32] - 2093 005a 0F4A ldr r2, .L146+12 - 2094 005c 1142 tst r1, r2 - ARM GAS /tmp/cc365F3j.s page 77 - - - 2095 005e 03D1 bne .L144 -1268:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** - 2096 .loc 1 1268 0 discriminator 2 - 2097 0060 1A68 ldr r2, [r3] - 2098 0062 0121 movs r1, #1 - 2099 0064 8A43 bics r2, r1 - 2100 0066 1A60 str r2, [r3] - 2101 .L144: -1271:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** - 2102 .loc 1 1271 0 is_stmt 1 - 2103 0068 3D23 movs r3, #61 - 2104 006a 0122 movs r2, #1 - 2105 006c E254 strb r2, [r4, r3] -1275:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** - 2106 .loc 1 1275 0 - 2107 006e 0020 movs r0, #0 - 2108 @ sp needed - 2109 .LVL169: - 2110 0070 10BD pop {r4, pc} - 2111 .LVL170: - 2112 .L138: -1239:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** } - 2113 .loc 1 1239 0 - 2114 0072 0268 ldr r2, [r0] - 2115 0074 D368 ldr r3, [r2, #12] - 2116 0076 0A48 ldr r0, .L146+20 - 2117 .LVL171: - 2118 0078 0340 ands r3, r0 - 2119 007a D360 str r3, [r2, #12] -1241:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** - 2120 .loc 1 1241 0 - 2121 007c D6E7 b .L137 - 2122 .LVL172: - 2123 .L141: -1246:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** } - 2124 .loc 1 1246 0 - 2125 007e 0268 ldr r2, [r0] - 2126 0080 D368 ldr r3, [r2, #12] - 2127 0082 0848 ldr r0, .L146+24 - 2128 .LVL173: - 2129 0084 0340 ands r3, r0 - 2130 0086 D360 str r3, [r2, #12] -1248:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** - 2131 .loc 1 1248 0 - 2132 0088 D0E7 b .L137 - 2133 .L147: - 2134 008a C046 .align 2 - 2135 .L146: - 2136 008c FFEFFFFF .word -4097 - 2137 0090 FFFDFFFF .word -513 - 2138 0094 11110000 .word 4369 - 2139 0098 44040000 .word 1092 - 2140 009c FF7FFFFF .word -32769 - 2141 00a0 FFFBFFFF .word -1025 - 2142 00a4 FFF7FFFF .word -2049 - 2143 .cfi_endproc - 2144 .LFE58: - ARM GAS /tmp/cc365F3j.s page 78 - - - 2146 .section .text.HAL_TIMEx_OnePulseN_Start,"ax",%progbits - 2147 .align 1 - 2148 .global HAL_TIMEx_OnePulseN_Start - 2149 .syntax unified - 2150 .code 16 - 2151 .thumb_func - 2152 .fpu softvfp - 2154 HAL_TIMEx_OnePulseN_Start: - 2155 .LFB59: -1310:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** /* Check the parameters */ - 2156 .loc 1 1310 0 - 2157 .cfi_startproc - 2158 @ args = 0, pretend = 0, frame = 0 - 2159 @ frame_needed = 0, uses_anonymous_args = 0 - 2160 .LVL174: - 2161 0000 10B5 push {r4, lr} - 2162 .LCFI22: - 2163 .cfi_def_cfa_offset 8 - 2164 .cfi_offset 4, -8 - 2165 .cfi_offset 14, -4 - 2166 0002 0400 movs r4, r0 -1315:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** - 2167 .loc 1 1315 0 - 2168 0004 0422 movs r2, #4 - 2169 0006 0068 ldr r0, [r0] - 2170 .LVL175: - 2171 0008 FFF7FEFF bl TIM_CCxNChannelCmd - 2172 .LVL176: -1318:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** - 2173 .loc 1 1318 0 - 2174 000c 2268 ldr r2, [r4] - 2175 000e 516C ldr r1, [r2, #68] - 2176 0010 8023 movs r3, #128 - 2177 0012 1B02 lsls r3, r3, #8 - 2178 0014 0B43 orrs r3, r1 - 2179 0016 5364 str r3, [r2, #68] -1322:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** - 2180 .loc 1 1322 0 - 2181 0018 0020 movs r0, #0 - 2182 @ sp needed - 2183 .LVL177: - 2184 001a 10BD pop {r4, pc} - 2185 .cfi_endproc - 2186 .LFE59: - 2188 .section .text.HAL_TIMEx_OnePulseN_Stop,"ax",%progbits - 2189 .align 1 - 2190 .global HAL_TIMEx_OnePulseN_Stop - 2191 .syntax unified - 2192 .code 16 - 2193 .thumb_func - 2194 .fpu softvfp - 2196 HAL_TIMEx_OnePulseN_Stop: - 2197 .LFB60: -1335:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** - 2198 .loc 1 1335 0 - 2199 .cfi_startproc - 2200 @ args = 0, pretend = 0, frame = 0 - ARM GAS /tmp/cc365F3j.s page 79 - - - 2201 @ frame_needed = 0, uses_anonymous_args = 0 - 2202 .LVL178: - 2203 0000 10B5 push {r4, lr} - 2204 .LCFI23: - 2205 .cfi_def_cfa_offset 8 - 2206 .cfi_offset 4, -8 - 2207 .cfi_offset 14, -4 - 2208 0002 0400 movs r4, r0 -1341:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** - 2209 .loc 1 1341 0 - 2210 0004 0022 movs r2, #0 - 2211 0006 0068 ldr r0, [r0] - 2212 .LVL179: - 2213 0008 FFF7FEFF bl TIM_CCxNChannelCmd - 2214 .LVL180: -1344:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** - 2215 .loc 1 1344 0 - 2216 000c 2368 ldr r3, [r4] - 2217 000e 196A ldr r1, [r3, #32] - 2218 0010 0C4A ldr r2, .L152 - 2219 0012 1142 tst r1, r2 - 2220 0014 07D1 bne .L150 -1344:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** - 2221 .loc 1 1344 0 is_stmt 0 discriminator 1 - 2222 0016 196A ldr r1, [r3, #32] - 2223 0018 0B4A ldr r2, .L152+4 - 2224 001a 1142 tst r1, r2 - 2225 001c 03D1 bne .L150 -1344:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** - 2226 .loc 1 1344 0 discriminator 2 - 2227 001e 5A6C ldr r2, [r3, #68] - 2228 0020 0A49 ldr r1, .L152+8 - 2229 0022 0A40 ands r2, r1 - 2230 0024 5A64 str r2, [r3, #68] - 2231 .L150: -1347:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** - 2232 .loc 1 1347 0 is_stmt 1 - 2233 0026 2368 ldr r3, [r4] - 2234 0028 196A ldr r1, [r3, #32] - 2235 002a 064A ldr r2, .L152 - 2236 002c 1142 tst r1, r2 - 2237 002e 07D1 bne .L151 -1347:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** - 2238 .loc 1 1347 0 is_stmt 0 discriminator 1 - 2239 0030 196A ldr r1, [r3, #32] - 2240 0032 054A ldr r2, .L152+4 - 2241 0034 1142 tst r1, r2 - 2242 0036 03D1 bne .L151 -1347:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** - 2243 .loc 1 1347 0 discriminator 2 - 2244 0038 1A68 ldr r2, [r3] - 2245 003a 0121 movs r1, #1 - 2246 003c 8A43 bics r2, r1 - 2247 003e 1A60 str r2, [r3] - 2248 .L151: -1351:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** - 2249 .loc 1 1351 0 is_stmt 1 - ARM GAS /tmp/cc365F3j.s page 80 - - - 2250 0040 0020 movs r0, #0 - 2251 @ sp needed - 2252 .LVL181: - 2253 0042 10BD pop {r4, pc} - 2254 .L153: - 2255 .align 2 - 2256 .L152: - 2257 0044 11110000 .word 4369 - 2258 0048 44040000 .word 1092 - 2259 004c FF7FFFFF .word -32769 - 2260 .cfi_endproc - 2261 .LFE60: - 2263 .section .text.HAL_TIMEx_OnePulseN_Start_IT,"ax",%progbits - 2264 .align 1 - 2265 .global HAL_TIMEx_OnePulseN_Start_IT - 2266 .syntax unified - 2267 .code 16 - 2268 .thumb_func - 2269 .fpu softvfp - 2271 HAL_TIMEx_OnePulseN_Start_IT: - 2272 .LFB61: -1364:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** /* Check the parameters */ - 2273 .loc 1 1364 0 - 2274 .cfi_startproc - 2275 @ args = 0, pretend = 0, frame = 0 - 2276 @ frame_needed = 0, uses_anonymous_args = 0 - 2277 .LVL182: - 2278 0000 10B5 push {r4, lr} - 2279 .LCFI24: - 2280 .cfi_def_cfa_offset 8 - 2281 .cfi_offset 4, -8 - 2282 .cfi_offset 14, -4 - 2283 0002 0400 movs r4, r0 -1369:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** - 2284 .loc 1 1369 0 - 2285 0004 0268 ldr r2, [r0] - 2286 0006 D368 ldr r3, [r2, #12] - 2287 0008 0220 movs r0, #2 - 2288 .LVL183: - 2289 000a 0343 orrs r3, r0 - 2290 000c D360 str r3, [r2, #12] -1372:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** - 2291 .loc 1 1372 0 - 2292 000e 2268 ldr r2, [r4] - 2293 0010 D368 ldr r3, [r2, #12] - 2294 0012 0230 adds r0, r0, #2 - 2295 0014 0343 orrs r3, r0 - 2296 0016 D360 str r3, [r2, #12] -1375:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** - 2297 .loc 1 1375 0 - 2298 0018 0422 movs r2, #4 - 2299 001a 2068 ldr r0, [r4] - 2300 001c FFF7FEFF bl TIM_CCxNChannelCmd - 2301 .LVL184: -1378:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** - 2302 .loc 1 1378 0 - 2303 0020 2268 ldr r2, [r4] - ARM GAS /tmp/cc365F3j.s page 81 - - - 2304 0022 516C ldr r1, [r2, #68] - 2305 0024 8023 movs r3, #128 - 2306 0026 1B02 lsls r3, r3, #8 - 2307 0028 0B43 orrs r3, r1 - 2308 002a 5364 str r3, [r2, #68] -1382:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** - 2309 .loc 1 1382 0 - 2310 002c 0020 movs r0, #0 - 2311 @ sp needed - 2312 .LVL185: - 2313 002e 10BD pop {r4, pc} - 2314 .cfi_endproc - 2315 .LFE61: - 2317 .section .text.HAL_TIMEx_OnePulseN_Stop_IT,"ax",%progbits - 2318 .align 1 - 2319 .global HAL_TIMEx_OnePulseN_Stop_IT - 2320 .syntax unified - 2321 .code 16 - 2322 .thumb_func - 2323 .fpu softvfp - 2325 HAL_TIMEx_OnePulseN_Stop_IT: - 2326 .LFB62: -1395:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** /* Check the parameters */ - 2327 .loc 1 1395 0 - 2328 .cfi_startproc - 2329 @ args = 0, pretend = 0, frame = 0 - 2330 @ frame_needed = 0, uses_anonymous_args = 0 - 2331 .LVL186: - 2332 0000 10B5 push {r4, lr} - 2333 .LCFI25: - 2334 .cfi_def_cfa_offset 8 - 2335 .cfi_offset 4, -8 - 2336 .cfi_offset 14, -4 - 2337 0002 0400 movs r4, r0 -1400:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** - 2338 .loc 1 1400 0 - 2339 0004 0268 ldr r2, [r0] - 2340 0006 D368 ldr r3, [r2, #12] - 2341 0008 0220 movs r0, #2 - 2342 .LVL187: - 2343 000a 8343 bics r3, r0 - 2344 000c D360 str r3, [r2, #12] -1403:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** - 2345 .loc 1 1403 0 - 2346 000e 2268 ldr r2, [r4] - 2347 0010 D368 ldr r3, [r2, #12] - 2348 0012 0230 adds r0, r0, #2 - 2349 0014 8343 bics r3, r0 - 2350 0016 D360 str r3, [r2, #12] -1406:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** - 2351 .loc 1 1406 0 - 2352 0018 0022 movs r2, #0 - 2353 001a 2068 ldr r0, [r4] - 2354 001c FFF7FEFF bl TIM_CCxNChannelCmd - 2355 .LVL188: -1409:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** - 2356 .loc 1 1409 0 - ARM GAS /tmp/cc365F3j.s page 82 - - - 2357 0020 2368 ldr r3, [r4] - 2358 0022 196A ldr r1, [r3, #32] - 2359 0024 0C4A ldr r2, .L158 - 2360 0026 1142 tst r1, r2 - 2361 0028 07D1 bne .L156 -1409:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** - 2362 .loc 1 1409 0 is_stmt 0 discriminator 1 - 2363 002a 196A ldr r1, [r3, #32] - 2364 002c 0B4A ldr r2, .L158+4 - 2365 002e 1142 tst r1, r2 - 2366 0030 03D1 bne .L156 -1409:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** - 2367 .loc 1 1409 0 discriminator 2 - 2368 0032 5A6C ldr r2, [r3, #68] - 2369 0034 0A49 ldr r1, .L158+8 - 2370 0036 0A40 ands r2, r1 - 2371 0038 5A64 str r2, [r3, #68] - 2372 .L156: -1412:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** - 2373 .loc 1 1412 0 is_stmt 1 - 2374 003a 2368 ldr r3, [r4] - 2375 003c 196A ldr r1, [r3, #32] - 2376 003e 064A ldr r2, .L158 - 2377 0040 1142 tst r1, r2 - 2378 0042 07D1 bne .L157 -1412:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** - 2379 .loc 1 1412 0 is_stmt 0 discriminator 1 - 2380 0044 196A ldr r1, [r3, #32] - 2381 0046 054A ldr r2, .L158+4 - 2382 0048 1142 tst r1, r2 - 2383 004a 03D1 bne .L157 -1412:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** - 2384 .loc 1 1412 0 discriminator 2 - 2385 004c 1A68 ldr r2, [r3] - 2386 004e 0121 movs r1, #1 - 2387 0050 8A43 bics r2, r1 - 2388 0052 1A60 str r2, [r3] - 2389 .L157: -1416:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** - 2390 .loc 1 1416 0 is_stmt 1 - 2391 0054 0020 movs r0, #0 - 2392 @ sp needed - 2393 .LVL189: - 2394 0056 10BD pop {r4, pc} - 2395 .L159: - 2396 .align 2 - 2397 .L158: - 2398 0058 11110000 .word 4369 - 2399 005c 44040000 .word 1092 - 2400 0060 FF7FFFFF .word -32769 - 2401 .cfi_endproc - 2402 .LFE62: - 2404 .section .text.HAL_TIMEx_ConfigCommutationEvent,"ax",%progbits - 2405 .align 1 - 2406 .global HAL_TIMEx_ConfigCommutationEvent - 2407 .syntax unified - 2408 .code 16 - ARM GAS /tmp/cc365F3j.s page 83 - - - 2409 .thumb_func - 2410 .fpu softvfp - 2412 HAL_TIMEx_ConfigCommutationEvent: - 2413 .LFB63: -1461:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** /* Check the parameters */ - 2414 .loc 1 1461 0 - 2415 .cfi_startproc - 2416 @ args = 0, pretend = 0, frame = 0 - 2417 @ frame_needed = 0, uses_anonymous_args = 0 - 2418 .LVL190: - 2419 0000 30B5 push {r4, r5, lr} - 2420 .LCFI26: - 2421 .cfi_def_cfa_offset 12 - 2422 .cfi_offset 4, -12 - 2423 .cfi_offset 5, -8 - 2424 .cfi_offset 14, -4 -1466:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** - 2425 .loc 1 1466 0 - 2426 0002 3C23 movs r3, #60 - 2427 0004 C35C ldrb r3, [r0, r3] - 2428 0006 012B cmp r3, #1 - 2429 0008 26D0 beq .L164 -1466:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** - 2430 .loc 1 1466 0 is_stmt 0 discriminator 2 - 2431 000a 3C23 movs r3, #60 - 2432 000c 0124 movs r4, #1 - 2433 000e C454 strb r4, [r0, r3] -1468:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** (InputTrigger == TIM_TS_ITR2) || (InputTrigger == TIM_TS_ITR3)) - 2434 .loc 1 1468 0 is_stmt 1 discriminator 2 - 2435 0010 0029 cmp r1, #0 - 2436 0012 05D0 beq .L162 -1468:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** (InputTrigger == TIM_TS_ITR2) || (InputTrigger == TIM_TS_ITR3)) - 2437 .loc 1 1468 0 is_stmt 0 discriminator 1 - 2438 0014 1029 cmp r1, #16 - 2439 0016 03D0 beq .L162 -1468:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** (InputTrigger == TIM_TS_ITR2) || (InputTrigger == TIM_TS_ITR3)) - 2440 .loc 1 1468 0 discriminator 2 - 2441 0018 2029 cmp r1, #32 - 2442 001a 01D0 beq .L162 -1469:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** { - 2443 .loc 1 1469 0 is_stmt 1 - 2444 001c 3029 cmp r1, #48 - 2445 001e 08D1 bne .L163 - 2446 .L162: -1472:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** htim->Instance->SMCR |= InputTrigger; - 2447 .loc 1 1472 0 - 2448 0020 0468 ldr r4, [r0] - 2449 0022 A368 ldr r3, [r4, #8] - 2450 0024 7025 movs r5, #112 - 2451 0026 AB43 bics r3, r5 - 2452 0028 A360 str r3, [r4, #8] -1473:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** } - 2453 .loc 1 1473 0 - 2454 002a 0468 ldr r4, [r0] - 2455 002c A368 ldr r3, [r4, #8] - 2456 002e 1943 orrs r1, r3 - 2457 .LVL191: - ARM GAS /tmp/cc365F3j.s page 84 - - - 2458 0030 A160 str r1, [r4, #8] - 2459 .L163: -1477:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** /* Select the Commutation event source */ - 2460 .loc 1 1477 0 - 2461 0032 0168 ldr r1, [r0] - 2462 0034 4B68 ldr r3, [r1, #4] - 2463 0036 0124 movs r4, #1 - 2464 0038 2343 orrs r3, r4 - 2465 003a 4B60 str r3, [r1, #4] -1479:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** htim->Instance->CR2 |= CommutationSource; - 2466 .loc 1 1479 0 - 2467 003c 0168 ldr r1, [r0] - 2468 003e 4B68 ldr r3, [r1, #4] - 2469 0040 0334 adds r4, r4, #3 - 2470 0042 A343 bics r3, r4 - 2471 0044 4B60 str r3, [r1, #4] -1480:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** - 2472 .loc 1 1480 0 - 2473 0046 0168 ldr r1, [r0] - 2474 0048 4B68 ldr r3, [r1, #4] - 2475 004a 1A43 orrs r2, r3 - 2476 .LVL192: - 2477 004c 4A60 str r2, [r1, #4] -1482:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** - 2478 .loc 1 1482 0 - 2479 004e 3C23 movs r3, #60 - 2480 0050 0022 movs r2, #0 - 2481 0052 C254 strb r2, [r0, r3] -1484:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** } - 2482 .loc 1 1484 0 - 2483 0054 0020 movs r0, #0 - 2484 .LVL193: - 2485 .L161: -1485:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** - 2486 .loc 1 1485 0 - 2487 @ sp needed - 2488 0056 30BD pop {r4, r5, pc} - 2489 .LVL194: - 2490 .L164: -1466:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** - 2491 .loc 1 1466 0 - 2492 0058 0220 movs r0, #2 - 2493 .LVL195: - 2494 005a FCE7 b .L161 - 2495 .cfi_endproc - 2496 .LFE63: - 2498 .section .text.HAL_TIMEx_ConfigCommutationEvent_IT,"ax",%progbits - 2499 .align 1 - 2500 .global HAL_TIMEx_ConfigCommutationEvent_IT - 2501 .syntax unified - 2502 .code 16 - 2503 .thumb_func - 2504 .fpu softvfp - 2506 HAL_TIMEx_ConfigCommutationEvent_IT: - 2507 .LFB64: -1510:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** /* Check the parameters */ - 2508 .loc 1 1510 0 - ARM GAS /tmp/cc365F3j.s page 85 - - - 2509 .cfi_startproc - 2510 @ args = 0, pretend = 0, frame = 0 - 2511 @ frame_needed = 0, uses_anonymous_args = 0 - 2512 .LVL196: - 2513 0000 30B5 push {r4, r5, lr} - 2514 .LCFI27: - 2515 .cfi_def_cfa_offset 12 - 2516 .cfi_offset 4, -12 - 2517 .cfi_offset 5, -8 - 2518 .cfi_offset 14, -4 -1515:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** - 2519 .loc 1 1515 0 - 2520 0002 3C23 movs r3, #60 - 2521 0004 C35C ldrb r3, [r0, r3] - 2522 0006 012B cmp r3, #1 - 2523 0008 2BD0 beq .L169 -1515:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** - 2524 .loc 1 1515 0 is_stmt 0 discriminator 2 - 2525 000a 3C23 movs r3, #60 - 2526 000c 0124 movs r4, #1 - 2527 000e C454 strb r4, [r0, r3] -1517:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** (InputTrigger == TIM_TS_ITR2) || (InputTrigger == TIM_TS_ITR3)) - 2528 .loc 1 1517 0 is_stmt 1 discriminator 2 - 2529 0010 0029 cmp r1, #0 - 2530 0012 05D0 beq .L167 -1517:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** (InputTrigger == TIM_TS_ITR2) || (InputTrigger == TIM_TS_ITR3)) - 2531 .loc 1 1517 0 is_stmt 0 discriminator 1 - 2532 0014 1029 cmp r1, #16 - 2533 0016 03D0 beq .L167 -1517:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** (InputTrigger == TIM_TS_ITR2) || (InputTrigger == TIM_TS_ITR3)) - 2534 .loc 1 1517 0 discriminator 2 - 2535 0018 2029 cmp r1, #32 - 2536 001a 01D0 beq .L167 -1518:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** { - 2537 .loc 1 1518 0 is_stmt 1 - 2538 001c 3029 cmp r1, #48 - 2539 001e 08D1 bne .L168 - 2540 .L167: -1521:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** htim->Instance->SMCR |= InputTrigger; - 2541 .loc 1 1521 0 - 2542 0020 0468 ldr r4, [r0] - 2543 0022 A368 ldr r3, [r4, #8] - 2544 0024 7025 movs r5, #112 - 2545 0026 AB43 bics r3, r5 - 2546 0028 A360 str r3, [r4, #8] -1522:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** } - 2547 .loc 1 1522 0 - 2548 002a 0468 ldr r4, [r0] - 2549 002c A368 ldr r3, [r4, #8] - 2550 002e 1943 orrs r1, r3 - 2551 .LVL197: - 2552 0030 A160 str r1, [r4, #8] - 2553 .L168: -1526:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** /* Select the Commutation event source */ - 2554 .loc 1 1526 0 - 2555 0032 0168 ldr r1, [r0] - 2556 0034 4B68 ldr r3, [r1, #4] - ARM GAS /tmp/cc365F3j.s page 86 - - - 2557 0036 0124 movs r4, #1 - 2558 0038 2343 orrs r3, r4 - 2559 003a 4B60 str r3, [r1, #4] -1528:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** htim->Instance->CR2 |= CommutationSource; - 2560 .loc 1 1528 0 - 2561 003c 0168 ldr r1, [r0] - 2562 003e 4B68 ldr r3, [r1, #4] - 2563 0040 0334 adds r4, r4, #3 - 2564 0042 A343 bics r3, r4 - 2565 0044 4B60 str r3, [r1, #4] -1529:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** - 2566 .loc 1 1529 0 - 2567 0046 0168 ldr r1, [r0] - 2568 0048 4B68 ldr r3, [r1, #4] - 2569 004a 1A43 orrs r2, r3 - 2570 .LVL198: - 2571 004c 4A60 str r2, [r1, #4] -1532:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** - 2572 .loc 1 1532 0 - 2573 004e 0268 ldr r2, [r0] - 2574 0050 D368 ldr r3, [r2, #12] - 2575 0052 2021 movs r1, #32 - 2576 0054 0B43 orrs r3, r1 - 2577 0056 D360 str r3, [r2, #12] -1534:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** - 2578 .loc 1 1534 0 - 2579 0058 3C23 movs r3, #60 - 2580 005a 0022 movs r2, #0 - 2581 005c C254 strb r2, [r0, r3] -1536:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** } - 2582 .loc 1 1536 0 - 2583 005e 0020 movs r0, #0 - 2584 .LVL199: - 2585 .L166: -1537:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** - 2586 .loc 1 1537 0 - 2587 @ sp needed - 2588 0060 30BD pop {r4, r5, pc} - 2589 .LVL200: - 2590 .L169: -1515:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** - 2591 .loc 1 1515 0 - 2592 0062 0220 movs r0, #2 - 2593 .LVL201: - 2594 0064 FCE7 b .L166 - 2595 .cfi_endproc - 2596 .LFE64: - 2598 .section .text.HAL_TIMEx_ConfigCommutationEvent_DMA,"ax",%progbits - 2599 .align 1 - 2600 .global HAL_TIMEx_ConfigCommutationEvent_DMA - 2601 .syntax unified - 2602 .code 16 - 2603 .thumb_func - 2604 .fpu softvfp - 2606 HAL_TIMEx_ConfigCommutationEvent_DMA: - 2607 .LFB65: -1563:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** /* Check the parameters */ - ARM GAS /tmp/cc365F3j.s page 87 - - - 2608 .loc 1 1563 0 - 2609 .cfi_startproc - 2610 @ args = 0, pretend = 0, frame = 0 - 2611 @ frame_needed = 0, uses_anonymous_args = 0 - 2612 .LVL202: - 2613 0000 30B5 push {r4, r5, lr} - 2614 .LCFI28: - 2615 .cfi_def_cfa_offset 12 - 2616 .cfi_offset 4, -12 - 2617 .cfi_offset 5, -8 - 2618 .cfi_offset 14, -4 -1568:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** - 2619 .loc 1 1568 0 - 2620 0002 3C23 movs r3, #60 - 2621 0004 C35C ldrb r3, [r0, r3] - 2622 0006 012B cmp r3, #1 - 2623 0008 32D0 beq .L174 -1568:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** - 2624 .loc 1 1568 0 is_stmt 0 discriminator 2 - 2625 000a 3C23 movs r3, #60 - 2626 000c 0124 movs r4, #1 - 2627 000e C454 strb r4, [r0, r3] -1570:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** (InputTrigger == TIM_TS_ITR2) || (InputTrigger == TIM_TS_ITR3)) - 2628 .loc 1 1570 0 is_stmt 1 discriminator 2 - 2629 0010 0029 cmp r1, #0 - 2630 0012 05D0 beq .L172 -1570:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** (InputTrigger == TIM_TS_ITR2) || (InputTrigger == TIM_TS_ITR3)) - 2631 .loc 1 1570 0 is_stmt 0 discriminator 1 - 2632 0014 1029 cmp r1, #16 - 2633 0016 03D0 beq .L172 -1570:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** (InputTrigger == TIM_TS_ITR2) || (InputTrigger == TIM_TS_ITR3)) - 2634 .loc 1 1570 0 discriminator 2 - 2635 0018 2029 cmp r1, #32 - 2636 001a 01D0 beq .L172 -1571:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** { - 2637 .loc 1 1571 0 is_stmt 1 - 2638 001c 3029 cmp r1, #48 - 2639 001e 08D1 bne .L173 - 2640 .L172: -1574:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** htim->Instance->SMCR |= InputTrigger; - 2641 .loc 1 1574 0 - 2642 0020 0468 ldr r4, [r0] - 2643 0022 A368 ldr r3, [r4, #8] - 2644 0024 7025 movs r5, #112 - 2645 0026 AB43 bics r3, r5 - 2646 0028 A360 str r3, [r4, #8] -1575:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** } - 2647 .loc 1 1575 0 - 2648 002a 0468 ldr r4, [r0] - 2649 002c A368 ldr r3, [r4, #8] - 2650 002e 1943 orrs r1, r3 - 2651 .LVL203: - 2652 0030 A160 str r1, [r4, #8] - 2653 .L173: -1579:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** /* Select the Commutation event source */ - 2654 .loc 1 1579 0 - 2655 0032 0168 ldr r1, [r0] - ARM GAS /tmp/cc365F3j.s page 88 - - - 2656 0034 4B68 ldr r3, [r1, #4] - 2657 0036 0124 movs r4, #1 - 2658 0038 2343 orrs r3, r4 - 2659 003a 4B60 str r3, [r1, #4] -1581:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** htim->Instance->CR2 |= CommutationSource; - 2660 .loc 1 1581 0 - 2661 003c 0168 ldr r1, [r0] - 2662 003e 4B68 ldr r3, [r1, #4] - 2663 0040 0334 adds r4, r4, #3 - 2664 0042 A343 bics r3, r4 - 2665 0044 4B60 str r3, [r1, #4] -1582:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** - 2666 .loc 1 1582 0 - 2667 0046 0168 ldr r1, [r0] - 2668 0048 4B68 ldr r3, [r1, #4] - 2669 004a 1A43 orrs r2, r3 - 2670 .LVL204: - 2671 004c 4A60 str r2, [r1, #4] -1586:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** /* Set the DMA error callback */ - 2672 .loc 1 1586 0 - 2673 004e 436B ldr r3, [r0, #52] - 2674 0050 084A ldr r2, .L175 - 2675 0052 9A62 str r2, [r3, #40] -1588:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** - 2676 .loc 1 1588 0 - 2677 0054 436B ldr r3, [r0, #52] - 2678 0056 084A ldr r2, .L175+4 - 2679 0058 1A63 str r2, [r3, #48] -1591:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** - 2680 .loc 1 1591 0 - 2681 005a 0268 ldr r2, [r0] - 2682 005c D168 ldr r1, [r2, #12] - 2683 005e 8023 movs r3, #128 - 2684 0060 9B01 lsls r3, r3, #6 - 2685 0062 0B43 orrs r3, r1 - 2686 0064 D360 str r3, [r2, #12] -1593:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** - 2687 .loc 1 1593 0 - 2688 0066 3C23 movs r3, #60 - 2689 0068 0022 movs r2, #0 - 2690 006a C254 strb r2, [r0, r3] -1595:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** } - 2691 .loc 1 1595 0 - 2692 006c 0020 movs r0, #0 - 2693 .LVL205: - 2694 .L171: -1596:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** - 2695 .loc 1 1596 0 - 2696 @ sp needed - 2697 006e 30BD pop {r4, r5, pc} - 2698 .LVL206: - 2699 .L174: -1568:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** - 2700 .loc 1 1568 0 - 2701 0070 0220 movs r0, #2 - 2702 .LVL207: - 2703 0072 FCE7 b .L171 - ARM GAS /tmp/cc365F3j.s page 89 - - - 2704 .L176: - 2705 .align 2 - 2706 .L175: - 2707 0074 00000000 .word TIMEx_DMACommutationCplt - 2708 0078 00000000 .word TIM_DMAError - 2709 .cfi_endproc - 2710 .LFE65: - 2712 .section .text.HAL_TIMEx_MasterConfigSynchronization,"ax",%progbits - 2713 .align 1 - 2714 .global HAL_TIMEx_MasterConfigSynchronization - 2715 .syntax unified - 2716 .code 16 - 2717 .thumb_func - 2718 .fpu softvfp - 2720 HAL_TIMEx_MasterConfigSynchronization: - 2721 .LFB66: -1607:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** /* Check the parameters */ - 2722 .loc 1 1607 0 - 2723 .cfi_startproc - 2724 @ args = 0, pretend = 0, frame = 0 - 2725 @ frame_needed = 0, uses_anonymous_args = 0 - 2726 .LVL208: - 2727 0000 F0B5 push {r4, r5, r6, r7, lr} - 2728 .LCFI29: - 2729 .cfi_def_cfa_offset 20 - 2730 .cfi_offset 4, -20 - 2731 .cfi_offset 5, -16 - 2732 .cfi_offset 6, -12 - 2733 .cfi_offset 7, -8 - 2734 .cfi_offset 14, -4 -1613:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** - 2735 .loc 1 1613 0 - 2736 0002 3C23 movs r3, #60 - 2737 0004 C35C ldrb r3, [r0, r3] - 2738 0006 012B cmp r3, #1 - 2739 0008 1ED0 beq .L179 -1613:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** - 2740 .loc 1 1613 0 is_stmt 0 discriminator 2 - 2741 000a 3C22 movs r2, #60 - 2742 000c 0125 movs r5, #1 - 2743 000e 8554 strb r5, [r0, r2] -1615:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** - 2744 .loc 1 1615 0 is_stmt 1 discriminator 2 - 2745 0010 3D24 movs r4, #61 - 2746 0012 0223 movs r3, #2 - 2747 0014 0355 strb r3, [r0, r4] -1618:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** /* Select the TRGO source */ - 2748 .loc 1 1618 0 discriminator 2 - 2749 0016 0668 ldr r6, [r0] - 2750 0018 7368 ldr r3, [r6, #4] - 2751 001a 7027 movs r7, #112 - 2752 001c BB43 bics r3, r7 - 2753 001e 7360 str r3, [r6, #4] -1620:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** - 2754 .loc 1 1620 0 discriminator 2 - 2755 0020 0668 ldr r6, [r0] - 2756 0022 7368 ldr r3, [r6, #4] - ARM GAS /tmp/cc365F3j.s page 90 - - - 2757 0024 0F68 ldr r7, [r1] - 2758 0026 3B43 orrs r3, r7 - 2759 0028 7360 str r3, [r6, #4] -1623:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** /* Set or Reset the MSM Bit */ - 2760 .loc 1 1623 0 discriminator 2 - 2761 002a 0668 ldr r6, [r0] - 2762 002c B368 ldr r3, [r6, #8] - 2763 002e 8027 movs r7, #128 - 2764 0030 BB43 bics r3, r7 - 2765 0032 B360 str r3, [r6, #8] -1625:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** - 2766 .loc 1 1625 0 discriminator 2 - 2767 0034 0668 ldr r6, [r0] - 2768 0036 B368 ldr r3, [r6, #8] - 2769 0038 4968 ldr r1, [r1, #4] - 2770 .LVL209: - 2771 003a 0B43 orrs r3, r1 - 2772 003c B360 str r3, [r6, #8] -1627:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** - 2773 .loc 1 1627 0 discriminator 2 - 2774 003e 0555 strb r5, [r0, r4] -1629:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** - 2775 .loc 1 1629 0 discriminator 2 - 2776 0040 0023 movs r3, #0 - 2777 0042 8354 strb r3, [r0, r2] -1631:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** } - 2778 .loc 1 1631 0 discriminator 2 - 2779 0044 0020 movs r0, #0 - 2780 .LVL210: - 2781 .L178: -1632:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** - 2782 .loc 1 1632 0 - 2783 @ sp needed - 2784 0046 F0BD pop {r4, r5, r6, r7, pc} - 2785 .LVL211: - 2786 .L179: -1613:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** - 2787 .loc 1 1613 0 - 2788 0048 0220 movs r0, #2 - 2789 .LVL212: - 2790 004a FCE7 b .L178 - 2791 .cfi_endproc - 2792 .LFE66: - 2794 .section .text.HAL_TIMEx_ConfigBreakDeadTime,"ax",%progbits - 2795 .align 1 - 2796 .global HAL_TIMEx_ConfigBreakDeadTime - 2797 .syntax unified - 2798 .code 16 - 2799 .thumb_func - 2800 .fpu softvfp - 2802 HAL_TIMEx_ConfigBreakDeadTime: - 2803 .LFB67: -1644:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** uint32_t tmpbdtr = 0; - 2804 .loc 1 1644 0 - 2805 .cfi_startproc - 2806 @ args = 0, pretend = 0, frame = 0 - 2807 @ frame_needed = 0, uses_anonymous_args = 0 - ARM GAS /tmp/cc365F3j.s page 91 - - - 2808 .LVL213: - 2809 0000 70B5 push {r4, r5, r6, lr} - 2810 .LCFI30: - 2811 .cfi_def_cfa_offset 16 - 2812 .cfi_offset 4, -16 - 2813 .cfi_offset 5, -12 - 2814 .cfi_offset 6, -8 - 2815 .cfi_offset 14, -4 - 2816 .LVL214: -1658:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** - 2817 .loc 1 1658 0 - 2818 0002 3C23 movs r3, #60 - 2819 0004 C35C ldrb r3, [r0, r3] - 2820 0006 012B cmp r3, #1 - 2821 0008 28D0 beq .L182 -1658:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** - 2822 .loc 1 1658 0 is_stmt 0 discriminator 2 - 2823 000a 3C22 movs r2, #60 - 2824 000c 0125 movs r5, #1 - 2825 000e 8554 strb r5, [r0, r2] -1660:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** - 2826 .loc 1 1660 0 is_stmt 1 discriminator 2 - 2827 0010 3D24 movs r4, #61 - 2828 0012 0223 movs r3, #2 - 2829 0014 0355 strb r3, [r0, r4] - 2830 .LVL215: -1667:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** MODIFY_REG(tmpbdtr, TIM_BDTR_OSSI, sBreakDeadTimeConfig->OffStateIDLEMode); - 2831 .loc 1 1667 0 discriminator 2 - 2832 0016 124B ldr r3, .L183 - 2833 0018 CE68 ldr r6, [r1, #12] - 2834 001a 3340 ands r3, r6 - 2835 001c 8E68 ldr r6, [r1, #8] - 2836 001e 3343 orrs r3, r6 - 2837 .LVL216: -1668:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** MODIFY_REG(tmpbdtr, TIM_BDTR_OSSR, sBreakDeadTimeConfig->OffStateRunMode); - 2838 .loc 1 1668 0 discriminator 2 - 2839 0020 104E ldr r6, .L183+4 - 2840 0022 3340 ands r3, r6 - 2841 .LVL217: - 2842 0024 4E68 ldr r6, [r1, #4] - 2843 0026 3343 orrs r3, r6 - 2844 .LVL218: -1669:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** MODIFY_REG(tmpbdtr, TIM_BDTR_BKE, sBreakDeadTimeConfig->BreakState); - 2845 .loc 1 1669 0 discriminator 2 - 2846 0028 0F4E ldr r6, .L183+8 - 2847 002a 3340 ands r3, r6 - 2848 .LVL219: - 2849 002c 0E68 ldr r6, [r1] - 2850 002e 3343 orrs r3, r6 - 2851 .LVL220: -1670:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** MODIFY_REG(tmpbdtr, TIM_BDTR_BKP, sBreakDeadTimeConfig->BreakPolarity); - 2852 .loc 1 1670 0 discriminator 2 - 2853 0030 0E4E ldr r6, .L183+12 - 2854 0032 3340 ands r3, r6 - 2855 .LVL221: - 2856 0034 0E69 ldr r6, [r1, #16] - 2857 0036 3343 orrs r3, r6 - ARM GAS /tmp/cc365F3j.s page 92 - - - 2858 .LVL222: -1671:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** MODIFY_REG(tmpbdtr, TIM_BDTR_AOE, sBreakDeadTimeConfig->AutomaticOutput); - 2859 .loc 1 1671 0 discriminator 2 - 2860 0038 0D4E ldr r6, .L183+16 - 2861 003a 3340 ands r3, r6 - 2862 .LVL223: - 2863 003c 4E69 ldr r6, [r1, #20] - 2864 003e 3343 orrs r3, r6 - 2865 .LVL224: -1672:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** MODIFY_REG(tmpbdtr, TIM_BDTR_MOE, sBreakDeadTimeConfig->AutomaticOutput); - 2866 .loc 1 1672 0 discriminator 2 - 2867 0040 0C4E ldr r6, .L183+20 - 2868 0042 3340 ands r3, r6 - 2869 .LVL225: - 2870 0044 8969 ldr r1, [r1, #24] - 2871 .LVL226: - 2872 0046 0B43 orrs r3, r1 - 2873 .LVL227: -1673:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** - 2874 .loc 1 1673 0 discriminator 2 - 2875 0048 0B4E ldr r6, .L183+24 - 2876 004a 3340 ands r3, r6 - 2877 .LVL228: - 2878 004c 0B43 orrs r3, r1 - 2879 .LVL229: -1676:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** - 2880 .loc 1 1676 0 discriminator 2 - 2881 004e 0168 ldr r1, [r0] - 2882 0050 4B64 str r3, [r1, #68] -1678:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** - 2883 .loc 1 1678 0 discriminator 2 - 2884 0052 0555 strb r5, [r0, r4] -1680:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** - 2885 .loc 1 1680 0 discriminator 2 - 2886 0054 0023 movs r3, #0 - 2887 .LVL230: - 2888 0056 8354 strb r3, [r0, r2] -1682:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** } - 2889 .loc 1 1682 0 discriminator 2 - 2890 0058 0020 movs r0, #0 - 2891 .LVL231: - 2892 .L181: -1683:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** - 2893 .loc 1 1683 0 - 2894 @ sp needed - 2895 005a 70BD pop {r4, r5, r6, pc} - 2896 .LVL232: - 2897 .L182: -1658:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** - 2898 .loc 1 1658 0 - 2899 005c 0220 movs r0, #2 - 2900 .LVL233: - 2901 005e FCE7 b .L181 - 2902 .L184: - 2903 .align 2 - 2904 .L183: - 2905 0060 FFFCFFFF .word -769 - ARM GAS /tmp/cc365F3j.s page 93 - - - 2906 0064 FFFBFFFF .word -1025 - 2907 0068 FFF7FFFF .word -2049 - 2908 006c FFEFFFFF .word -4097 - 2909 0070 FFDFFFFF .word -8193 - 2910 0074 FFBFFFFF .word -16385 - 2911 0078 FF7FFFFF .word -32769 - 2912 .cfi_endproc - 2913 .LFE67: - 2915 .section .text.HAL_TIMEx_RemapConfig,"ax",%progbits - 2916 .align 1 - 2917 .global HAL_TIMEx_RemapConfig - 2918 .syntax unified - 2919 .code 16 - 2920 .thumb_func - 2921 .fpu softvfp - 2923 HAL_TIMEx_RemapConfig: - 2924 .LFB68: -1697:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** __HAL_LOCK(htim); - 2925 .loc 1 1697 0 - 2926 .cfi_startproc - 2927 @ args = 0, pretend = 0, frame = 0 - 2928 @ frame_needed = 0, uses_anonymous_args = 0 - 2929 @ link register save eliminated. - 2930 .LVL234: -1698:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** - 2931 .loc 1 1698 0 - 2932 0000 3C23 movs r3, #60 - 2933 0002 C35C ldrb r3, [r0, r3] - 2934 0004 012B cmp r3, #1 - 2935 0006 09D0 beq .L187 -1705:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** - 2936 .loc 1 1705 0 discriminator 2 - 2937 0008 0368 ldr r3, [r0] - 2938 000a 1965 str r1, [r3, #80] -1707:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** - 2939 .loc 1 1707 0 discriminator 2 - 2940 000c 3D23 movs r3, #61 - 2941 000e 0122 movs r2, #1 - 2942 0010 C254 strb r2, [r0, r3] -1709:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** - 2943 .loc 1 1709 0 discriminator 2 - 2944 0012 013B subs r3, r3, #1 - 2945 0014 0022 movs r2, #0 - 2946 0016 C254 strb r2, [r0, r3] -1711:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** } - 2947 .loc 1 1711 0 discriminator 2 - 2948 0018 0020 movs r0, #0 - 2949 .LVL235: - 2950 .L186: -1712:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** - 2951 .loc 1 1712 0 - 2952 @ sp needed - 2953 001a 7047 bx lr - 2954 .LVL236: - 2955 .L187: -1698:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** - 2956 .loc 1 1698 0 - ARM GAS /tmp/cc365F3j.s page 94 - - - 2957 001c 0220 movs r0, #2 - 2958 .LVL237: - 2959 001e FCE7 b .L186 - 2960 .cfi_endproc - 2961 .LFE68: - 2963 .section .text.HAL_TIM_ConfigOCrefClear,"ax",%progbits - 2964 .align 1 - 2965 .global HAL_TIM_ConfigOCrefClear - 2966 .syntax unified - 2967 .code 16 - 2968 .thumb_func - 2969 .fpu softvfp - 2971 HAL_TIM_ConfigOCrefClear: - 2972 .LFB69: -1741:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** uint32_t tmpsmcr = 0U; - 2973 .loc 1 1741 0 - 2974 .cfi_startproc - 2975 @ args = 0, pretend = 0, frame = 0 - 2976 @ frame_needed = 0, uses_anonymous_args = 0 - 2977 .LVL238: - 2978 0000 70B5 push {r4, r5, r6, lr} - 2979 .LCFI31: - 2980 .cfi_def_cfa_offset 16 - 2981 .cfi_offset 4, -16 - 2982 .cfi_offset 5, -12 - 2983 .cfi_offset 6, -8 - 2984 .cfi_offset 14, -4 - 2985 0002 0400 movs r4, r0 - 2986 0004 0E00 movs r6, r1 - 2987 0006 1500 movs r5, r2 - 2988 .LVL239: -1749:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** - 2989 .loc 1 1749 0 - 2990 0008 3C23 movs r3, #60 - 2991 000a C35C ldrb r3, [r0, r3] - 2992 000c 012B cmp r3, #1 - 2993 000e 00D1 bne .LCB2741 - 2994 0010 72E0 b .L204 @long jump - 2995 .LCB2741: -1749:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** - 2996 .loc 1 1749 0 is_stmt 0 discriminator 2 - 2997 0012 3C23 movs r3, #60 - 2998 0014 0122 movs r2, #1 - 2999 .LVL240: - 3000 0016 C254 strb r2, [r0, r3] -1751:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** - 3001 .loc 1 1751 0 is_stmt 1 discriminator 2 - 3002 0018 0133 adds r3, r3, #1 - 3003 001a 0132 adds r2, r2, #1 - 3004 001c C254 strb r2, [r0, r3] -1753:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** { - 3005 .loc 1 1753 0 discriminator 2 - 3006 001e 4B68 ldr r3, [r1, #4] - 3007 0020 012B cmp r3, #1 - 3008 0022 20D0 beq .L191 - 3009 0024 002B cmp r3, #0 - 3010 0026 12D0 beq .L192 - ARM GAS /tmp/cc365F3j.s page 95 - - - 3011 0028 022B cmp r3, #2 - 3012 002a 16D0 beq .L193 - 3013 .LVL241: - 3014 .L190: -1798:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** { - 3015 .loc 1 1798 0 - 3016 002c 042D cmp r5, #4 - 3017 002e 3ED0 beq .L195 - 3018 0030 25D9 bls .L205 - 3019 0032 082D cmp r5, #8 - 3020 0034 4BD0 beq .L198 - 3021 0036 0C2D cmp r5, #12 - 3022 0038 2BD1 bne .L194 -1844:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** { - 3023 .loc 1 1844 0 - 3024 003a 3368 ldr r3, [r6] - 3025 003c 002B cmp r3, #0 - 3026 003e 55D0 beq .L203 -1847:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** } - 3027 .loc 1 1847 0 - 3028 0040 2268 ldr r2, [r4] - 3029 0042 D169 ldr r1, [r2, #28] - 3030 0044 8023 movs r3, #128 - 3031 0046 1B02 lsls r3, r3, #8 - 3032 0048 0B43 orrs r3, r1 - 3033 004a D361 str r3, [r2, #28] - 3034 004c 21E0 b .L194 - 3035 .LVL242: - 3036 .L192: -1758:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** - 3037 .loc 1 1758 0 - 3038 004e 0268 ldr r2, [r0] - 3039 0050 9368 ldr r3, [r2, #8] - 3040 .LVL243: -1764:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** - 3041 .loc 1 1764 0 - 3042 0052 2A49 ldr r1, .L206 - 3043 .LVL244: - 3044 0054 0B40 ands r3, r1 - 3045 .LVL245: -1767:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** } - 3046 .loc 1 1767 0 - 3047 0056 9360 str r3, [r2, #8] -1769:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** - 3048 .loc 1 1769 0 - 3049 0058 E8E7 b .L190 - 3050 .LVL246: - 3051 .L193: -1774:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** } - 3052 .loc 1 1774 0 - 3053 005a 0268 ldr r2, [r0] - 3054 005c 9368 ldr r3, [r2, #8] - 3055 005e 0821 movs r1, #8 - 3056 .LVL247: - 3057 0060 8B43 bics r3, r1 - 3058 0062 9360 str r3, [r2, #8] -1776:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** - ARM GAS /tmp/cc365F3j.s page 96 - - - 3059 .loc 1 1776 0 - 3060 0064 E2E7 b .L190 - 3061 .LVL248: - 3062 .L191: -1785:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** sClearInputConfig->ClearInputPrescaler, - 3063 .loc 1 1785 0 - 3064 0066 0B69 ldr r3, [r1, #16] - 3065 0068 8A68 ldr r2, [r1, #8] - 3066 006a C968 ldr r1, [r1, #12] - 3067 .LVL249: - 3068 006c 0068 ldr r0, [r0] - 3069 .LVL250: - 3070 006e FFF7FEFF bl TIM_ETR_SetConfig - 3071 .LVL251: -1791:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** } - 3072 .loc 1 1791 0 - 3073 0072 2268 ldr r2, [r4] - 3074 0074 9368 ldr r3, [r2, #8] - 3075 0076 0821 movs r1, #8 - 3076 0078 0B43 orrs r3, r1 - 3077 007a 9360 str r3, [r2, #8] -1793:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** default: - 3078 .loc 1 1793 0 - 3079 007c D6E7 b .L190 - 3080 .LVL252: - 3081 .L205: -1798:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** { - 3082 .loc 1 1798 0 - 3083 007e 002D cmp r5, #0 - 3084 0080 07D1 bne .L194 -1802:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** { - 3085 .loc 1 1802 0 - 3086 0082 3368 ldr r3, [r6] - 3087 0084 002B cmp r3, #0 - 3088 0086 0CD0 beq .L200 -1805:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** } - 3089 .loc 1 1805 0 - 3090 0088 2268 ldr r2, [r4] - 3091 008a 9369 ldr r3, [r2, #24] - 3092 008c 8021 movs r1, #128 - 3093 008e 0B43 orrs r3, r1 - 3094 0090 9361 str r3, [r2, #24] - 3095 .L194: -1860:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** - 3096 .loc 1 1860 0 - 3097 0092 3D23 movs r3, #61 - 3098 0094 0122 movs r2, #1 - 3099 0096 E254 strb r2, [r4, r3] -1862:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** - 3100 .loc 1 1862 0 - 3101 0098 013B subs r3, r3, #1 - 3102 009a 0022 movs r2, #0 - 3103 009c E254 strb r2, [r4, r3] -1864:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** } - 3104 .loc 1 1864 0 - 3105 009e 0020 movs r0, #0 - 3106 .L189: - ARM GAS /tmp/cc365F3j.s page 97 - - -1865:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** #endif /* STM32F051x8 || STM32F058xx || */ - 3107 .loc 1 1865 0 - 3108 @ sp needed - 3109 .LVL253: - 3110 .LVL254: - 3111 .LVL255: - 3112 00a0 70BD pop {r4, r5, r6, pc} - 3113 .LVL256: - 3114 .L200: -1810:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** } - 3115 .loc 1 1810 0 - 3116 00a2 2268 ldr r2, [r4] - 3117 00a4 9369 ldr r3, [r2, #24] - 3118 00a6 8021 movs r1, #128 - 3119 00a8 8B43 bics r3, r1 - 3120 00aa 9361 str r3, [r2, #24] - 3121 00ac F1E7 b .L194 - 3122 .L195: -1816:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** { - 3123 .loc 1 1816 0 - 3124 00ae 3368 ldr r3, [r6] - 3125 00b0 002B cmp r3, #0 - 3126 00b2 06D0 beq .L201 -1819:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** } - 3127 .loc 1 1819 0 - 3128 00b4 2268 ldr r2, [r4] - 3129 00b6 9169 ldr r1, [r2, #24] - 3130 00b8 8023 movs r3, #128 - 3131 00ba 1B02 lsls r3, r3, #8 - 3132 00bc 0B43 orrs r3, r1 - 3133 00be 9361 str r3, [r2, #24] - 3134 00c0 E7E7 b .L194 - 3135 .L201: -1824:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** } - 3136 .loc 1 1824 0 - 3137 00c2 2268 ldr r2, [r4] - 3138 00c4 9369 ldr r3, [r2, #24] - 3139 00c6 0E49 ldr r1, .L206+4 - 3140 00c8 0B40 ands r3, r1 - 3141 00ca 9361 str r3, [r2, #24] - 3142 00cc E1E7 b .L194 - 3143 .L198: -1830:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** { - 3144 .loc 1 1830 0 - 3145 00ce 3368 ldr r3, [r6] - 3146 00d0 002B cmp r3, #0 - 3147 00d2 05D0 beq .L202 -1833:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** } - 3148 .loc 1 1833 0 - 3149 00d4 2268 ldr r2, [r4] - 3150 00d6 D369 ldr r3, [r2, #28] - 3151 00d8 8021 movs r1, #128 - 3152 00da 0B43 orrs r3, r1 - 3153 00dc D361 str r3, [r2, #28] - 3154 00de D8E7 b .L194 - 3155 .L202: -1838:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** } - ARM GAS /tmp/cc365F3j.s page 98 - - - 3156 .loc 1 1838 0 - 3157 00e0 2268 ldr r2, [r4] - 3158 00e2 D369 ldr r3, [r2, #28] - 3159 00e4 8021 movs r1, #128 - 3160 00e6 8B43 bics r3, r1 - 3161 00e8 D361 str r3, [r2, #28] - 3162 00ea D2E7 b .L194 - 3163 .L203: -1852:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** } - 3164 .loc 1 1852 0 - 3165 00ec 2268 ldr r2, [r4] - 3166 00ee D369 ldr r3, [r2, #28] - 3167 00f0 0349 ldr r1, .L206+4 - 3168 00f2 0B40 ands r3, r1 - 3169 00f4 D361 str r3, [r2, #28] - 3170 00f6 CCE7 b .L194 - 3171 .LVL257: - 3172 .L204: -1749:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** - 3173 .loc 1 1749 0 - 3174 00f8 0220 movs r0, #2 - 3175 .LVL258: - 3176 00fa D1E7 b .L189 - 3177 .L207: - 3178 .align 2 - 3179 .L206: - 3180 00fc F700FFFF .word -65289 - 3181 0100 FF7FFFFF .word -32769 - 3182 .cfi_endproc - 3183 .LFE69: - 3185 .section .text.HAL_TIMEx_CommutationCallback,"ax",%progbits - 3186 .align 1 - 3187 .weak HAL_TIMEx_CommutationCallback - 3188 .syntax unified - 3189 .code 16 - 3190 .thumb_func - 3191 .fpu softvfp - 3193 HAL_TIMEx_CommutationCallback: - 3194 .LFB70: -1895:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** /* Prevent unused argument(s) compilation warning */ - 3195 .loc 1 1895 0 - 3196 .cfi_startproc - 3197 @ args = 0, pretend = 0, frame = 0 - 3198 @ frame_needed = 0, uses_anonymous_args = 0 - 3199 @ link register save eliminated. - 3200 .LVL259: -1902:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** - 3201 .loc 1 1902 0 - 3202 @ sp needed - 3203 0000 7047 bx lr - 3204 .cfi_endproc - 3205 .LFE70: - 3207 .section .text.TIMEx_DMACommutationCplt,"ax",%progbits - 3208 .align 1 - 3209 .global TIMEx_DMACommutationCplt - 3210 .syntax unified - 3211 .code 16 - ARM GAS /tmp/cc365F3j.s page 99 - - - 3212 .thumb_func - 3213 .fpu softvfp - 3215 TIMEx_DMACommutationCplt: - 3216 .LFB72: -1925:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** TIM_HandleTypeDef* htim = ( TIM_HandleTypeDef* )((DMA_HandleTypeDef* )hdma)->Parent; - 3217 .loc 1 1925 0 - 3218 .cfi_startproc - 3219 @ args = 0, pretend = 0, frame = 0 - 3220 @ frame_needed = 0, uses_anonymous_args = 0 - 3221 .LVL260: - 3222 0000 10B5 push {r4, lr} - 3223 .LCFI32: - 3224 .cfi_def_cfa_offset 8 - 3225 .cfi_offset 4, -8 - 3226 .cfi_offset 14, -4 -1926:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** - 3227 .loc 1 1926 0 - 3228 0002 406A ldr r0, [r0, #36] - 3229 .LVL261: -1928:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** - 3230 .loc 1 1928 0 - 3231 0004 3D23 movs r3, #61 - 3232 0006 0122 movs r2, #1 - 3233 0008 C254 strb r2, [r0, r3] -1930:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** } - 3234 .loc 1 1930 0 - 3235 000a FFF7FEFF bl HAL_TIMEx_CommutationCallback - 3236 .LVL262: -1931:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** - 3237 .loc 1 1931 0 - 3238 @ sp needed - 3239 000e 10BD pop {r4, pc} - 3240 .cfi_endproc - 3241 .LFE72: - 3243 .section .text.HAL_TIMEx_BreakCallback,"ax",%progbits - 3244 .align 1 - 3245 .weak HAL_TIMEx_BreakCallback - 3246 .syntax unified - 3247 .code 16 - 3248 .thumb_func - 3249 .fpu softvfp - 3251 HAL_TIMEx_BreakCallback: - 3252 .LFB71: -1910:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** /* Prevent unused argument(s) compilation warning */ - 3253 .loc 1 1910 0 - 3254 .cfi_startproc - 3255 @ args = 0, pretend = 0, frame = 0 - 3256 @ frame_needed = 0, uses_anonymous_args = 0 - 3257 @ link register save eliminated. - 3258 .LVL263: -1917:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** - 3259 .loc 1 1917 0 - 3260 @ sp needed - 3261 0000 7047 bx lr - 3262 .cfi_endproc - 3263 .LFE71: - 3265 .section .text.HAL_TIMEx_HallSensor_GetState,"ax",%progbits - ARM GAS /tmp/cc365F3j.s page 100 - - - 3266 .align 1 - 3267 .global HAL_TIMEx_HallSensor_GetState - 3268 .syntax unified - 3269 .code 16 - 3270 .thumb_func - 3271 .fpu softvfp - 3273 HAL_TIMEx_HallSensor_GetState: - 3274 .LFB73: -1958:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** return htim->State; - 3275 .loc 1 1958 0 - 3276 .cfi_startproc - 3277 @ args = 0, pretend = 0, frame = 0 - 3278 @ frame_needed = 0, uses_anonymous_args = 0 - 3279 @ link register save eliminated. - 3280 .LVL264: -1959:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** } - 3281 .loc 1 1959 0 - 3282 0000 3D23 movs r3, #61 - 3283 0002 C05C ldrb r0, [r0, r3] - 3284 .LVL265: - 3285 0004 C0B2 uxtb r0, r0 -1960:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c **** - 3286 .loc 1 1960 0 - 3287 @ sp needed - 3288 0006 7047 bx lr - 3289 .cfi_endproc - 3290 .LFE73: - 3292 .text - 3293 .Letext0: - 3294 .file 2 "/home/janhenrik/programme/gcc-arm-none-eabi-7-2018-q2-update/arm-none-eabi/include/machin - 3295 .file 3 "/home/janhenrik/programme/gcc-arm-none-eabi-7-2018-q2-update/arm-none-eabi/include/sys/_s - 3296 .file 4 "Drivers/CMSIS/Device/ST/STM32F0xx/Include/system_stm32f0xx.h" - 3297 .file 5 "Drivers/CMSIS/Device/ST/STM32F0xx/Include/stm32f072xb.h" - 3298 .file 6 "/home/janhenrik/programme/gcc-arm-none-eabi-7-2018-q2-update/arm-none-eabi/include/sys/lo - 3299 .file 7 "/home/janhenrik/programme/gcc-arm-none-eabi-7-2018-q2-update/arm-none-eabi/include/sys/_t - 3300 .file 8 "/home/janhenrik/programme/gcc-arm-none-eabi-7-2018-q2-update/lib/gcc/arm-none-eabi/7.3.1/ - 3301 .file 9 "/home/janhenrik/programme/gcc-arm-none-eabi-7-2018-q2-update/arm-none-eabi/include/sys/re - 3302 .file 10 "Drivers/CMSIS/Device/ST/STM32F0xx/Include/stm32f0xx.h" - 3303 .file 11 "Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_def.h" - 3304 .file 12 "Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_dma.h" - 3305 .file 13 "Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_tim.h" - 3306 .file 14 "Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_tim_ex.h" - ARM GAS /tmp/cc365F3j.s page 101 - - -DEFINED SYMBOLS - *ABS*:0000000000000000 stm32f0xx_hal_tim_ex.c - /tmp/cc365F3j.s:16 .text.TIM_CCxNChannelCmd:0000000000000000 $t - /tmp/cc365F3j.s:22 .text.TIM_CCxNChannelCmd:0000000000000000 TIM_CCxNChannelCmd - /tmp/cc365F3j.s:58 .text.HAL_TIMEx_HallSensor_MspInit:0000000000000000 $t - /tmp/cc365F3j.s:65 .text.HAL_TIMEx_HallSensor_MspInit:0000000000000000 HAL_TIMEx_HallSensor_MspInit - /tmp/cc365F3j.s:80 .text.HAL_TIMEx_HallSensor_Init:0000000000000000 $t - /tmp/cc365F3j.s:87 .text.HAL_TIMEx_HallSensor_Init:0000000000000000 HAL_TIMEx_HallSensor_Init - /tmp/cc365F3j.s:240 .text.HAL_TIMEx_HallSensor_MspDeInit:0000000000000000 $t - /tmp/cc365F3j.s:247 .text.HAL_TIMEx_HallSensor_MspDeInit:0000000000000000 HAL_TIMEx_HallSensor_MspDeInit - /tmp/cc365F3j.s:262 .text.HAL_TIMEx_HallSensor_DeInit:0000000000000000 $t - /tmp/cc365F3j.s:269 .text.HAL_TIMEx_HallSensor_DeInit:0000000000000000 HAL_TIMEx_HallSensor_DeInit - /tmp/cc365F3j.s:323 .text.HAL_TIMEx_HallSensor_DeInit:0000000000000038 $d - /tmp/cc365F3j.s:329 .text.HAL_TIMEx_HallSensor_Start:0000000000000000 $t - /tmp/cc365F3j.s:336 .text.HAL_TIMEx_HallSensor_Start:0000000000000000 HAL_TIMEx_HallSensor_Start - /tmp/cc365F3j.s:371 .text.HAL_TIMEx_HallSensor_Stop:0000000000000000 $t - /tmp/cc365F3j.s:378 .text.HAL_TIMEx_HallSensor_Stop:0000000000000000 HAL_TIMEx_HallSensor_Stop - /tmp/cc365F3j.s:423 .text.HAL_TIMEx_HallSensor_Stop:000000000000002c $d - /tmp/cc365F3j.s:429 .text.HAL_TIMEx_HallSensor_Start_IT:0000000000000000 $t - /tmp/cc365F3j.s:436 .text.HAL_TIMEx_HallSensor_Start_IT:0000000000000000 HAL_TIMEx_HallSensor_Start_IT - /tmp/cc365F3j.s:477 .text.HAL_TIMEx_HallSensor_Stop_IT:0000000000000000 $t - /tmp/cc365F3j.s:484 .text.HAL_TIMEx_HallSensor_Stop_IT:0000000000000000 HAL_TIMEx_HallSensor_Stop_IT - /tmp/cc365F3j.s:535 .text.HAL_TIMEx_HallSensor_Stop_IT:0000000000000038 $d - /tmp/cc365F3j.s:541 .text.HAL_TIMEx_HallSensor_Start_DMA:0000000000000000 $t - /tmp/cc365F3j.s:548 .text.HAL_TIMEx_HallSensor_Start_DMA:0000000000000000 HAL_TIMEx_HallSensor_Start_DMA - /tmp/cc365F3j.s:648 .text.HAL_TIMEx_HallSensor_Start_DMA:000000000000006c $d - /tmp/cc365F3j.s:654 .text.HAL_TIMEx_HallSensor_Stop_DMA:0000000000000000 $t - /tmp/cc365F3j.s:661 .text.HAL_TIMEx_HallSensor_Stop_DMA:0000000000000000 HAL_TIMEx_HallSensor_Stop_DMA - /tmp/cc365F3j.s:712 .text.HAL_TIMEx_HallSensor_Stop_DMA:0000000000000038 $d - /tmp/cc365F3j.s:719 .text.HAL_TIMEx_OCN_Start:0000000000000000 $t - /tmp/cc365F3j.s:726 .text.HAL_TIMEx_OCN_Start:0000000000000000 HAL_TIMEx_OCN_Start - /tmp/cc365F3j.s:767 .text.HAL_TIMEx_OCN_Stop:0000000000000000 $t - /tmp/cc365F3j.s:774 .text.HAL_TIMEx_OCN_Stop:0000000000000000 HAL_TIMEx_OCN_Stop - /tmp/cc365F3j.s:835 .text.HAL_TIMEx_OCN_Stop:0000000000000044 $d - /tmp/cc365F3j.s:842 .text.HAL_TIMEx_OCN_Start_IT:0000000000000000 $t - /tmp/cc365F3j.s:849 .text.HAL_TIMEx_OCN_Start_IT:0000000000000000 HAL_TIMEx_OCN_Start_IT - /tmp/cc365F3j.s:947 .text.HAL_TIMEx_OCN_Stop_IT:0000000000000000 $t - /tmp/cc365F3j.s:954 .text.HAL_TIMEx_OCN_Stop_IT:0000000000000000 HAL_TIMEx_OCN_Stop_IT - /tmp/cc365F3j.s:1082 .text.HAL_TIMEx_OCN_Stop_IT:0000000000000098 $d - /tmp/cc365F3j.s:1089 .text.HAL_TIMEx_OCN_Start_DMA:0000000000000000 $t - /tmp/cc365F3j.s:1096 .text.HAL_TIMEx_OCN_Start_DMA:0000000000000000 HAL_TIMEx_OCN_Start_DMA - /tmp/cc365F3j.s:1293 .text.HAL_TIMEx_OCN_Start_DMA:00000000000000f8 $d - /tmp/cc365F3j.s:1299 .text.HAL_TIMEx_OCN_Stop_DMA:0000000000000000 $t - /tmp/cc365F3j.s:1306 .text.HAL_TIMEx_OCN_Stop_DMA:0000000000000000 HAL_TIMEx_OCN_Stop_DMA - /tmp/cc365F3j.s:1422 .text.HAL_TIMEx_OCN_Stop_DMA:000000000000008c $d - /tmp/cc365F3j.s:1433 .text.HAL_TIMEx_PWMN_Start:0000000000000000 $t - /tmp/cc365F3j.s:1440 .text.HAL_TIMEx_PWMN_Start:0000000000000000 HAL_TIMEx_PWMN_Start - /tmp/cc365F3j.s:1481 .text.HAL_TIMEx_PWMN_Stop:0000000000000000 $t - /tmp/cc365F3j.s:1488 .text.HAL_TIMEx_PWMN_Stop:0000000000000000 HAL_TIMEx_PWMN_Stop - /tmp/cc365F3j.s:1549 .text.HAL_TIMEx_PWMN_Stop:0000000000000044 $d - /tmp/cc365F3j.s:1556 .text.HAL_TIMEx_PWMN_Start_IT:0000000000000000 $t - /tmp/cc365F3j.s:1563 .text.HAL_TIMEx_PWMN_Start_IT:0000000000000000 HAL_TIMEx_PWMN_Start_IT - /tmp/cc365F3j.s:1661 .text.HAL_TIMEx_PWMN_Stop_IT:0000000000000000 $t - /tmp/cc365F3j.s:1668 .text.HAL_TIMEx_PWMN_Stop_IT:0000000000000000 HAL_TIMEx_PWMN_Stop_IT - /tmp/cc365F3j.s:1796 .text.HAL_TIMEx_PWMN_Stop_IT:0000000000000098 $d - /tmp/cc365F3j.s:1803 .text.HAL_TIMEx_PWMN_Start_DMA:0000000000000000 $t - /tmp/cc365F3j.s:1810 .text.HAL_TIMEx_PWMN_Start_DMA:0000000000000000 HAL_TIMEx_PWMN_Start_DMA - ARM GAS /tmp/cc365F3j.s page 102 - - - /tmp/cc365F3j.s:2007 .text.HAL_TIMEx_PWMN_Start_DMA:00000000000000f8 $d - /tmp/cc365F3j.s:2013 .text.HAL_TIMEx_PWMN_Stop_DMA:0000000000000000 $t - /tmp/cc365F3j.s:2020 .text.HAL_TIMEx_PWMN_Stop_DMA:0000000000000000 HAL_TIMEx_PWMN_Stop_DMA - /tmp/cc365F3j.s:2136 .text.HAL_TIMEx_PWMN_Stop_DMA:000000000000008c $d - /tmp/cc365F3j.s:2147 .text.HAL_TIMEx_OnePulseN_Start:0000000000000000 $t - /tmp/cc365F3j.s:2154 .text.HAL_TIMEx_OnePulseN_Start:0000000000000000 HAL_TIMEx_OnePulseN_Start - /tmp/cc365F3j.s:2189 .text.HAL_TIMEx_OnePulseN_Stop:0000000000000000 $t - /tmp/cc365F3j.s:2196 .text.HAL_TIMEx_OnePulseN_Stop:0000000000000000 HAL_TIMEx_OnePulseN_Stop - /tmp/cc365F3j.s:2257 .text.HAL_TIMEx_OnePulseN_Stop:0000000000000044 $d - /tmp/cc365F3j.s:2264 .text.HAL_TIMEx_OnePulseN_Start_IT:0000000000000000 $t - /tmp/cc365F3j.s:2271 .text.HAL_TIMEx_OnePulseN_Start_IT:0000000000000000 HAL_TIMEx_OnePulseN_Start_IT - /tmp/cc365F3j.s:2318 .text.HAL_TIMEx_OnePulseN_Stop_IT:0000000000000000 $t - /tmp/cc365F3j.s:2325 .text.HAL_TIMEx_OnePulseN_Stop_IT:0000000000000000 HAL_TIMEx_OnePulseN_Stop_IT - /tmp/cc365F3j.s:2398 .text.HAL_TIMEx_OnePulseN_Stop_IT:0000000000000058 $d - /tmp/cc365F3j.s:2405 .text.HAL_TIMEx_ConfigCommutationEvent:0000000000000000 $t - /tmp/cc365F3j.s:2412 .text.HAL_TIMEx_ConfigCommutationEvent:0000000000000000 HAL_TIMEx_ConfigCommutationEvent - /tmp/cc365F3j.s:2499 .text.HAL_TIMEx_ConfigCommutationEvent_IT:0000000000000000 $t - /tmp/cc365F3j.s:2506 .text.HAL_TIMEx_ConfigCommutationEvent_IT:0000000000000000 HAL_TIMEx_ConfigCommutationEvent_IT - /tmp/cc365F3j.s:2599 .text.HAL_TIMEx_ConfigCommutationEvent_DMA:0000000000000000 $t - /tmp/cc365F3j.s:2606 .text.HAL_TIMEx_ConfigCommutationEvent_DMA:0000000000000000 HAL_TIMEx_ConfigCommutationEvent_DMA - /tmp/cc365F3j.s:2707 .text.HAL_TIMEx_ConfigCommutationEvent_DMA:0000000000000074 $d - /tmp/cc365F3j.s:3215 .text.TIMEx_DMACommutationCplt:0000000000000000 TIMEx_DMACommutationCplt - /tmp/cc365F3j.s:2713 .text.HAL_TIMEx_MasterConfigSynchronization:0000000000000000 $t - /tmp/cc365F3j.s:2720 .text.HAL_TIMEx_MasterConfigSynchronization:0000000000000000 HAL_TIMEx_MasterConfigSynchronization - /tmp/cc365F3j.s:2795 .text.HAL_TIMEx_ConfigBreakDeadTime:0000000000000000 $t - /tmp/cc365F3j.s:2802 .text.HAL_TIMEx_ConfigBreakDeadTime:0000000000000000 HAL_TIMEx_ConfigBreakDeadTime - /tmp/cc365F3j.s:2905 .text.HAL_TIMEx_ConfigBreakDeadTime:0000000000000060 $d - /tmp/cc365F3j.s:2916 .text.HAL_TIMEx_RemapConfig:0000000000000000 $t - /tmp/cc365F3j.s:2923 .text.HAL_TIMEx_RemapConfig:0000000000000000 HAL_TIMEx_RemapConfig - /tmp/cc365F3j.s:2964 .text.HAL_TIM_ConfigOCrefClear:0000000000000000 $t - /tmp/cc365F3j.s:2971 .text.HAL_TIM_ConfigOCrefClear:0000000000000000 HAL_TIM_ConfigOCrefClear - /tmp/cc365F3j.s:3180 .text.HAL_TIM_ConfigOCrefClear:00000000000000fc $d - /tmp/cc365F3j.s:3186 .text.HAL_TIMEx_CommutationCallback:0000000000000000 $t - /tmp/cc365F3j.s:3193 .text.HAL_TIMEx_CommutationCallback:0000000000000000 HAL_TIMEx_CommutationCallback - /tmp/cc365F3j.s:3208 .text.TIMEx_DMACommutationCplt:0000000000000000 $t - /tmp/cc365F3j.s:3244 .text.HAL_TIMEx_BreakCallback:0000000000000000 $t - /tmp/cc365F3j.s:3251 .text.HAL_TIMEx_BreakCallback:0000000000000000 HAL_TIMEx_BreakCallback - /tmp/cc365F3j.s:3266 .text.HAL_TIMEx_HallSensor_GetState:0000000000000000 $t - /tmp/cc365F3j.s:3273 .text.HAL_TIMEx_HallSensor_GetState:0000000000000000 HAL_TIMEx_HallSensor_GetState - -UNDEFINED SYMBOLS -TIM_Base_SetConfig -TIM_TI1_SetConfig -TIM_OC2_SetConfig -TIM_CCxChannelCmd -HAL_DMA_Start_IT -TIM_DMACaptureCplt -TIM_DMAError -TIM_DMADelayPulseCplt -TIM_ETR_SetConfig diff --git a/firmware/build/stm32f0xx_hal_tim_ex.o b/firmware/build/stm32f0xx_hal_tim_ex.o deleted file mode 100644 index 31e8744..0000000 Binary files a/firmware/build/stm32f0xx_hal_tim_ex.o and /dev/null differ diff --git a/firmware/build/stm32f0xx_it.d b/firmware/build/stm32f0xx_it.d deleted file mode 100644 index 659c3d7..0000000 --- a/firmware/build/stm32f0xx_it.d +++ /dev/null @@ -1,91 +0,0 @@ -build/stm32f0xx_it.o: Src/stm32f0xx_it.c Inc/main.h \ - Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal.h \ - Inc/stm32f0xx_hal_conf.h \ - Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_rcc.h \ - Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_def.h \ - Drivers/CMSIS/Device/ST/STM32F0xx/Include/stm32f0xx.h \ - Drivers/CMSIS/Device/ST/STM32F0xx/Include/stm32f072xb.h \ - Drivers/CMSIS/Include/core_cm0.h Drivers/CMSIS/Include/core_cmInstr.h \ - Drivers/CMSIS/Include/cmsis_gcc.h Drivers/CMSIS/Include/core_cmFunc.h \ - Drivers/CMSIS/Device/ST/STM32F0xx/Include/system_stm32f0xx.h \ - Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_rcc_ex.h \ - Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_gpio.h \ - Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_gpio_ex.h \ - Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_dma.h \ - Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_dma_ex.h \ - Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_cortex.h \ - Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_adc.h \ - Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_adc_ex.h \ - Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_flash.h \ - Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_flash_ex.h \ - Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_i2c.h \ - Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_i2c_ex.h \ - Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_pcd.h \ - Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_pcd_ex.h \ - Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_pwr.h \ - Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_pwr_ex.h \ - Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_tim.h \ - Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_tim_ex.h \ - Inc/stm32f0xx_it.h - -Inc/main.h: - -Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal.h: - -Inc/stm32f0xx_hal_conf.h: - -Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_rcc.h: - -Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_def.h: - -Drivers/CMSIS/Device/ST/STM32F0xx/Include/stm32f0xx.h: - -Drivers/CMSIS/Device/ST/STM32F0xx/Include/stm32f072xb.h: - -Drivers/CMSIS/Include/core_cm0.h: - -Drivers/CMSIS/Include/core_cmInstr.h: - -Drivers/CMSIS/Include/cmsis_gcc.h: - -Drivers/CMSIS/Include/core_cmFunc.h: - -Drivers/CMSIS/Device/ST/STM32F0xx/Include/system_stm32f0xx.h: - -Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_rcc_ex.h: - -Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_gpio.h: - -Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_gpio_ex.h: - -Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_dma.h: - -Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_dma_ex.h: - -Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_cortex.h: - -Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_adc.h: - -Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_adc_ex.h: - -Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_flash.h: - -Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_flash_ex.h: - -Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_i2c.h: - -Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_i2c_ex.h: - -Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_pcd.h: - -Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_pcd_ex.h: - -Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_pwr.h: - -Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_pwr_ex.h: - -Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_tim.h: - -Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_tim_ex.h: - -Inc/stm32f0xx_it.h: diff --git a/firmware/build/stm32f0xx_it.lst b/firmware/build/stm32f0xx_it.lst deleted file mode 100644 index 001419f..0000000 --- a/firmware/build/stm32f0xx_it.lst +++ /dev/null @@ -1,388 +0,0 @@ -ARM GAS /tmp/ccaj1l4B.s page 1 - - - 1 .cpu cortex-m0 - 2 .eabi_attribute 20, 1 - 3 .eabi_attribute 21, 1 - 4 .eabi_attribute 23, 3 - 5 .eabi_attribute 24, 1 - 6 .eabi_attribute 25, 1 - 7 .eabi_attribute 26, 1 - 8 .eabi_attribute 30, 1 - 9 .eabi_attribute 34, 0 - 10 .eabi_attribute 18, 4 - 11 .file "stm32f0xx_it.c" - 12 .text - 13 .Ltext0: - 14 .cfi_sections .debug_frame - 15 .section .text.NMI_Handler,"ax",%progbits - 16 .align 1 - 17 .global NMI_Handler - 18 .syntax unified - 19 .code 16 - 20 .thumb_func - 21 .fpu softvfp - 23 NMI_Handler: - 24 .LFB37: - 25 .file 1 "Src/stm32f0xx_it.c" - 1:Src/stm32f0xx_it.c **** - 2:Src/stm32f0xx_it.c **** /* - 3:Src/stm32f0xx_it.c **** * Otter-Iron - Stm32f072 based soldering iron. - 4:Src/stm32f0xx_it.c **** * Copyright (C) 2019 Jan Henrik Hemsing - 5:Src/stm32f0xx_it.c **** * - 6:Src/stm32f0xx_it.c **** * This program is free software: you can redistribute it and/or modify it - 7:Src/stm32f0xx_it.c **** * under the terms of the GNU General Public License as published by the Free - 8:Src/stm32f0xx_it.c **** * Software Foundation, either version 3 of the License, or (at your option) - 9:Src/stm32f0xx_it.c **** * any later version. - 10:Src/stm32f0xx_it.c **** * - 11:Src/stm32f0xx_it.c **** * This program is distributed in the hope that it will be useful, but WITHOUT - 12:Src/stm32f0xx_it.c **** * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or - 13:Src/stm32f0xx_it.c **** * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for - 14:Src/stm32f0xx_it.c **** * more details. - 15:Src/stm32f0xx_it.c **** * - 16:Src/stm32f0xx_it.c **** * You should have received a copy of the GNU General Public License along with - 17:Src/stm32f0xx_it.c **** * this program. If not, see . - 18:Src/stm32f0xx_it.c **** */ - 19:Src/stm32f0xx_it.c **** - 20:Src/stm32f0xx_it.c **** #include "main.h" - 21:Src/stm32f0xx_it.c **** #include "stm32f0xx_it.h" - 22:Src/stm32f0xx_it.c **** - 23:Src/stm32f0xx_it.c **** extern ADC_HandleTypeDef hadc; - 24:Src/stm32f0xx_it.c **** extern DMA_HandleTypeDef hdma_adc; - 25:Src/stm32f0xx_it.c **** - 26:Src/stm32f0xx_it.c **** extern TIM_HandleTypeDef htim1; - 27:Src/stm32f0xx_it.c **** - 28:Src/stm32f0xx_it.c **** extern void reg(void); - 29:Src/stm32f0xx_it.c **** - 30:Src/stm32f0xx_it.c **** void NMI_Handler(void) - 31:Src/stm32f0xx_it.c **** { - 26 .loc 1 31 0 - 27 .cfi_startproc - ARM GAS /tmp/ccaj1l4B.s page 2 - - - 28 @ args = 0, pretend = 0, frame = 0 - 29 @ frame_needed = 0, uses_anonymous_args = 0 - 30 @ link register save eliminated. - 32:Src/stm32f0xx_it.c **** - 33:Src/stm32f0xx_it.c **** } - 31 .loc 1 33 0 - 32 @ sp needed - 33 0000 7047 bx lr - 34 .cfi_endproc - 35 .LFE37: - 37 .section .text.HardFault_Handler,"ax",%progbits - 38 .align 1 - 39 .global HardFault_Handler - 40 .syntax unified - 41 .code 16 - 42 .thumb_func - 43 .fpu softvfp - 45 HardFault_Handler: - 46 .LFB38: - 34:Src/stm32f0xx_it.c **** - 35:Src/stm32f0xx_it.c **** void HardFault_Handler(void) - 36:Src/stm32f0xx_it.c **** { - 47 .loc 1 36 0 - 48 .cfi_startproc - 49 @ Volatile: function does not return. - 50 @ args = 0, pretend = 0, frame = 0 - 51 @ frame_needed = 0, uses_anonymous_args = 0 - 52 @ link register save eliminated. - 53 .L3: - 54 0000 FEE7 b .L3 - 55 .cfi_endproc - 56 .LFE38: - 58 .section .text.SVC_Handler,"ax",%progbits - 59 .align 1 - 60 .global SVC_Handler - 61 .syntax unified - 62 .code 16 - 63 .thumb_func - 64 .fpu softvfp - 66 SVC_Handler: - 67 .LFB39: - 37:Src/stm32f0xx_it.c **** while (1) - 38:Src/stm32f0xx_it.c **** { - 39:Src/stm32f0xx_it.c **** } - 40:Src/stm32f0xx_it.c **** } - 41:Src/stm32f0xx_it.c **** - 42:Src/stm32f0xx_it.c **** void SVC_Handler(void) - 43:Src/stm32f0xx_it.c **** { - 68 .loc 1 43 0 - 69 .cfi_startproc - 70 @ args = 0, pretend = 0, frame = 0 - 71 @ frame_needed = 0, uses_anonymous_args = 0 - 72 @ link register save eliminated. - 44:Src/stm32f0xx_it.c **** } - 73 .loc 1 44 0 - 74 @ sp needed - 75 0000 7047 bx lr - ARM GAS /tmp/ccaj1l4B.s page 3 - - - 76 .cfi_endproc - 77 .LFE39: - 79 .section .text.PendSV_Handler,"ax",%progbits - 80 .align 1 - 81 .global PendSV_Handler - 82 .syntax unified - 83 .code 16 - 84 .thumb_func - 85 .fpu softvfp - 87 PendSV_Handler: - 88 .LFB40: - 45:Src/stm32f0xx_it.c **** - 46:Src/stm32f0xx_it.c **** void PendSV_Handler(void) - 47:Src/stm32f0xx_it.c **** { - 89 .loc 1 47 0 - 90 .cfi_startproc - 91 @ args = 0, pretend = 0, frame = 0 - 92 @ frame_needed = 0, uses_anonymous_args = 0 - 93 @ link register save eliminated. - 48:Src/stm32f0xx_it.c **** } - 94 .loc 1 48 0 - 95 @ sp needed - 96 0000 7047 bx lr - 97 .cfi_endproc - 98 .LFE40: - 100 .section .text.SysTick_Handler,"ax",%progbits - 101 .align 1 - 102 .global SysTick_Handler - 103 .syntax unified - 104 .code 16 - 105 .thumb_func - 106 .fpu softvfp - 108 SysTick_Handler: - 109 .LFB41: - 49:Src/stm32f0xx_it.c **** - 50:Src/stm32f0xx_it.c **** void SysTick_Handler(void) - 51:Src/stm32f0xx_it.c **** { - 110 .loc 1 51 0 - 111 .cfi_startproc - 112 @ args = 0, pretend = 0, frame = 0 - 113 @ frame_needed = 0, uses_anonymous_args = 0 - 114 0000 10B5 push {r4, lr} - 115 .LCFI0: - 116 .cfi_def_cfa_offset 8 - 117 .cfi_offset 4, -8 - 118 .cfi_offset 14, -4 - 52:Src/stm32f0xx_it.c **** HAL_IncTick(); - 119 .loc 1 52 0 - 120 0002 FFF7FEFF bl HAL_IncTick - 121 .LVL0: - 53:Src/stm32f0xx_it.c **** } - 122 .loc 1 53 0 - 123 @ sp needed - 124 0006 10BD pop {r4, pc} - 125 .cfi_endproc - 126 .LFE41: - 128 .section .text.ADC1_COMP_IRQHandler,"ax",%progbits - ARM GAS /tmp/ccaj1l4B.s page 4 - - - 129 .align 1 - 130 .global ADC1_COMP_IRQHandler - 131 .syntax unified - 132 .code 16 - 133 .thumb_func - 134 .fpu softvfp - 136 ADC1_COMP_IRQHandler: - 137 .LFB42: - 54:Src/stm32f0xx_it.c **** - 55:Src/stm32f0xx_it.c **** void ADC1_COMP_IRQHandler(void) - 56:Src/stm32f0xx_it.c **** { - 138 .loc 1 56 0 - 139 .cfi_startproc - 140 @ args = 0, pretend = 0, frame = 0 - 141 @ frame_needed = 0, uses_anonymous_args = 0 - 142 0000 10B5 push {r4, lr} - 143 .LCFI1: - 144 .cfi_def_cfa_offset 8 - 145 .cfi_offset 4, -8 - 146 .cfi_offset 14, -4 - 57:Src/stm32f0xx_it.c **** HAL_ADC_IRQHandler(&hadc); - 147 .loc 1 57 0 - 148 0002 0248 ldr r0, .L8 - 149 0004 FFF7FEFF bl HAL_ADC_IRQHandler - 150 .LVL1: - 58:Src/stm32f0xx_it.c **** } - 151 .loc 1 58 0 - 152 @ sp needed - 153 0008 10BD pop {r4, pc} - 154 .L9: - 155 000a C046 .align 2 - 156 .L8: - 157 000c 00000000 .word hadc - 158 .cfi_endproc - 159 .LFE42: - 161 .section .text.DMA1_Channel1_IRQHandler,"ax",%progbits - 162 .align 1 - 163 .global DMA1_Channel1_IRQHandler - 164 .syntax unified - 165 .code 16 - 166 .thumb_func - 167 .fpu softvfp - 169 DMA1_Channel1_IRQHandler: - 170 .LFB43: - 59:Src/stm32f0xx_it.c **** - 60:Src/stm32f0xx_it.c **** void DMA1_Channel1_IRQHandler(void) - 61:Src/stm32f0xx_it.c **** { - 171 .loc 1 61 0 - 172 .cfi_startproc - 173 @ args = 0, pretend = 0, frame = 0 - 174 @ frame_needed = 0, uses_anonymous_args = 0 - 175 0000 10B5 push {r4, lr} - 176 .LCFI2: - 177 .cfi_def_cfa_offset 8 - 178 .cfi_offset 4, -8 - 179 .cfi_offset 14, -4 - 62:Src/stm32f0xx_it.c **** HAL_DMA_IRQHandler(&hdma_adc); - ARM GAS /tmp/ccaj1l4B.s page 5 - - - 180 .loc 1 62 0 - 181 0002 0348 ldr r0, .L11 - 182 0004 FFF7FEFF bl HAL_DMA_IRQHandler - 183 .LVL2: - 63:Src/stm32f0xx_it.c **** reg(); - 184 .loc 1 63 0 - 185 0008 FFF7FEFF bl reg - 186 .LVL3: - 64:Src/stm32f0xx_it.c **** } - 187 .loc 1 64 0 - 188 @ sp needed - 189 000c 10BD pop {r4, pc} - 190 .L12: - 191 000e C046 .align 2 - 192 .L11: - 193 0010 00000000 .word hdma_adc - 194 .cfi_endproc - 195 .LFE43: - 197 .section .text.TIM1_BRK_UP_TRG_COM_IRQHandler,"ax",%progbits - 198 .align 1 - 199 .global TIM1_BRK_UP_TRG_COM_IRQHandler - 200 .syntax unified - 201 .code 16 - 202 .thumb_func - 203 .fpu softvfp - 205 TIM1_BRK_UP_TRG_COM_IRQHandler: - 206 .LFB44: - 65:Src/stm32f0xx_it.c **** - 66:Src/stm32f0xx_it.c **** void TIM1_BRK_UP_TRG_COM_IRQHandler(void) - 67:Src/stm32f0xx_it.c **** { - 207 .loc 1 67 0 - 208 .cfi_startproc - 209 @ args = 0, pretend = 0, frame = 0 - 210 @ frame_needed = 0, uses_anonymous_args = 0 - 211 0000 10B5 push {r4, lr} - 212 .LCFI3: - 213 .cfi_def_cfa_offset 8 - 214 .cfi_offset 4, -8 - 215 .cfi_offset 14, -4 - 68:Src/stm32f0xx_it.c **** HAL_TIM_IRQHandler(&htim1); - 216 .loc 1 68 0 - 217 0002 0248 ldr r0, .L14 - 218 0004 FFF7FEFF bl HAL_TIM_IRQHandler - 219 .LVL4: - 69:Src/stm32f0xx_it.c **** } - 220 .loc 1 69 0 - 221 @ sp needed - 222 0008 10BD pop {r4, pc} - 223 .L15: - 224 000a C046 .align 2 - 225 .L14: - 226 000c 00000000 .word htim1 - 227 .cfi_endproc - 228 .LFE44: - 230 .section .text.TIM1_CC_IRQHandler,"ax",%progbits - 231 .align 1 - 232 .global TIM1_CC_IRQHandler - ARM GAS /tmp/ccaj1l4B.s page 6 - - - 233 .syntax unified - 234 .code 16 - 235 .thumb_func - 236 .fpu softvfp - 238 TIM1_CC_IRQHandler: - 239 .LFB45: - 70:Src/stm32f0xx_it.c **** - 71:Src/stm32f0xx_it.c **** void TIM1_CC_IRQHandler(void) - 72:Src/stm32f0xx_it.c **** { - 240 .loc 1 72 0 - 241 .cfi_startproc - 242 @ args = 0, pretend = 0, frame = 0 - 243 @ frame_needed = 0, uses_anonymous_args = 0 - 244 0000 10B5 push {r4, lr} - 245 .LCFI4: - 246 .cfi_def_cfa_offset 8 - 247 .cfi_offset 4, -8 - 248 .cfi_offset 14, -4 - 73:Src/stm32f0xx_it.c **** HAL_TIM_IRQHandler(&htim1); - 249 .loc 1 73 0 - 250 0002 0248 ldr r0, .L17 - 251 0004 FFF7FEFF bl HAL_TIM_IRQHandler - 252 .LVL5: - 74:Src/stm32f0xx_it.c **** } - 253 .loc 1 74 0 - 254 @ sp needed - 255 0008 10BD pop {r4, pc} - 256 .L18: - 257 000a C046 .align 2 - 258 .L17: - 259 000c 00000000 .word htim1 - 260 .cfi_endproc - 261 .LFE45: - 263 .text - 264 .Letext0: - 265 .file 2 "/home/janhenrik/programme/gcc-arm-none-eabi-7-2018-q2-update/arm-none-eabi/include/machin - 266 .file 3 "/home/janhenrik/programme/gcc-arm-none-eabi-7-2018-q2-update/arm-none-eabi/include/sys/_s - 267 .file 4 "Drivers/CMSIS/Device/ST/STM32F0xx/Include/system_stm32f0xx.h" - 268 .file 5 "Drivers/CMSIS/Device/ST/STM32F0xx/Include/stm32f072xb.h" - 269 .file 6 "/home/janhenrik/programme/gcc-arm-none-eabi-7-2018-q2-update/arm-none-eabi/include/sys/lo - 270 .file 7 "/home/janhenrik/programme/gcc-arm-none-eabi-7-2018-q2-update/arm-none-eabi/include/sys/_t - 271 .file 8 "/home/janhenrik/programme/gcc-arm-none-eabi-7-2018-q2-update/lib/gcc/arm-none-eabi/7.3.1/ - 272 .file 9 "/home/janhenrik/programme/gcc-arm-none-eabi-7-2018-q2-update/arm-none-eabi/include/sys/re - 273 .file 10 "Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_def.h" - 274 .file 11 "Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_dma.h" - 275 .file 12 "Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_adc.h" - 276 .file 13 "Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_tim.h" - 277 .file 14 "Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal.h" - ARM GAS /tmp/ccaj1l4B.s page 7 - - -DEFINED SYMBOLS - *ABS*:0000000000000000 stm32f0xx_it.c - /tmp/ccaj1l4B.s:16 .text.NMI_Handler:0000000000000000 $t - /tmp/ccaj1l4B.s:23 .text.NMI_Handler:0000000000000000 NMI_Handler - /tmp/ccaj1l4B.s:38 .text.HardFault_Handler:0000000000000000 $t - /tmp/ccaj1l4B.s:45 .text.HardFault_Handler:0000000000000000 HardFault_Handler - /tmp/ccaj1l4B.s:59 .text.SVC_Handler:0000000000000000 $t - /tmp/ccaj1l4B.s:66 .text.SVC_Handler:0000000000000000 SVC_Handler - /tmp/ccaj1l4B.s:80 .text.PendSV_Handler:0000000000000000 $t - /tmp/ccaj1l4B.s:87 .text.PendSV_Handler:0000000000000000 PendSV_Handler - /tmp/ccaj1l4B.s:101 .text.SysTick_Handler:0000000000000000 $t - /tmp/ccaj1l4B.s:108 .text.SysTick_Handler:0000000000000000 SysTick_Handler - /tmp/ccaj1l4B.s:129 .text.ADC1_COMP_IRQHandler:0000000000000000 $t - /tmp/ccaj1l4B.s:136 .text.ADC1_COMP_IRQHandler:0000000000000000 ADC1_COMP_IRQHandler - /tmp/ccaj1l4B.s:157 .text.ADC1_COMP_IRQHandler:000000000000000c $d - /tmp/ccaj1l4B.s:162 .text.DMA1_Channel1_IRQHandler:0000000000000000 $t - /tmp/ccaj1l4B.s:169 .text.DMA1_Channel1_IRQHandler:0000000000000000 DMA1_Channel1_IRQHandler - /tmp/ccaj1l4B.s:193 .text.DMA1_Channel1_IRQHandler:0000000000000010 $d - /tmp/ccaj1l4B.s:198 .text.TIM1_BRK_UP_TRG_COM_IRQHandler:0000000000000000 $t - /tmp/ccaj1l4B.s:205 .text.TIM1_BRK_UP_TRG_COM_IRQHandler:0000000000000000 TIM1_BRK_UP_TRG_COM_IRQHandler - /tmp/ccaj1l4B.s:226 .text.TIM1_BRK_UP_TRG_COM_IRQHandler:000000000000000c $d - /tmp/ccaj1l4B.s:231 .text.TIM1_CC_IRQHandler:0000000000000000 $t - /tmp/ccaj1l4B.s:238 .text.TIM1_CC_IRQHandler:0000000000000000 TIM1_CC_IRQHandler - /tmp/ccaj1l4B.s:259 .text.TIM1_CC_IRQHandler:000000000000000c $d - -UNDEFINED SYMBOLS -HAL_IncTick -HAL_ADC_IRQHandler -hadc -HAL_DMA_IRQHandler -reg -hdma_adc -HAL_TIM_IRQHandler -htim1 diff --git a/firmware/build/stm32f0xx_it.o b/firmware/build/stm32f0xx_it.o deleted file mode 100644 index 21bdecb..0000000 Binary files a/firmware/build/stm32f0xx_it.o and /dev/null differ diff --git a/firmware/build/system_stm32f0xx.d b/firmware/build/system_stm32f0xx.d deleted file mode 100644 index 4ff0c87..0000000 --- a/firmware/build/system_stm32f0xx.d +++ /dev/null @@ -1,86 +0,0 @@ -build/system_stm32f0xx.o: Src/system_stm32f0xx.c \ - Drivers/CMSIS/Device/ST/STM32F0xx/Include/stm32f0xx.h \ - Drivers/CMSIS/Device/ST/STM32F0xx/Include/stm32f072xb.h \ - Drivers/CMSIS/Include/core_cm0.h Drivers/CMSIS/Include/core_cmInstr.h \ - Drivers/CMSIS/Include/cmsis_gcc.h Drivers/CMSIS/Include/core_cmFunc.h \ - Drivers/CMSIS/Device/ST/STM32F0xx/Include/system_stm32f0xx.h \ - Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal.h \ - Inc/stm32f0xx_hal_conf.h \ - Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_rcc.h \ - Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_def.h \ - Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_rcc_ex.h \ - Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_gpio.h \ - Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_gpio_ex.h \ - Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_dma.h \ - Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_dma_ex.h \ - Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_cortex.h \ - Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_adc.h \ - Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_adc_ex.h \ - Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_flash.h \ - Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_flash_ex.h \ - Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_i2c.h \ - Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_i2c_ex.h \ - Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_pcd.h \ - Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_pcd_ex.h \ - Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_pwr.h \ - Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_pwr_ex.h \ - Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_tim.h \ - Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_tim_ex.h - -Drivers/CMSIS/Device/ST/STM32F0xx/Include/stm32f0xx.h: - -Drivers/CMSIS/Device/ST/STM32F0xx/Include/stm32f072xb.h: - -Drivers/CMSIS/Include/core_cm0.h: - -Drivers/CMSIS/Include/core_cmInstr.h: - -Drivers/CMSIS/Include/cmsis_gcc.h: - -Drivers/CMSIS/Include/core_cmFunc.h: - -Drivers/CMSIS/Device/ST/STM32F0xx/Include/system_stm32f0xx.h: - -Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal.h: - -Inc/stm32f0xx_hal_conf.h: - -Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_rcc.h: - -Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_def.h: - -Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_rcc_ex.h: - -Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_gpio.h: - -Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_gpio_ex.h: - -Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_dma.h: - -Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_dma_ex.h: - -Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_cortex.h: - -Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_adc.h: - -Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_adc_ex.h: - -Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_flash.h: - -Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_flash_ex.h: - -Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_i2c.h: - -Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_i2c_ex.h: - -Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_pcd.h: - -Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_pcd_ex.h: - -Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_pwr.h: - -Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_pwr_ex.h: - -Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_tim.h: - -Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_tim_ex.h: diff --git a/firmware/build/system_stm32f0xx.lst b/firmware/build/system_stm32f0xx.lst deleted file mode 100644 index 1970e3f..0000000 --- a/firmware/build/system_stm32f0xx.lst +++ /dev/null @@ -1,938 +0,0 @@ -ARM GAS /tmp/cc0sbyBo.s page 1 - - - 1 .cpu cortex-m0 - 2 .eabi_attribute 20, 1 - 3 .eabi_attribute 21, 1 - 4 .eabi_attribute 23, 3 - 5 .eabi_attribute 24, 1 - 6 .eabi_attribute 25, 1 - 7 .eabi_attribute 26, 1 - 8 .eabi_attribute 30, 1 - 9 .eabi_attribute 34, 0 - 10 .eabi_attribute 18, 4 - 11 .file "system_stm32f0xx.c" - 12 .text - 13 .Ltext0: - 14 .cfi_sections .debug_frame - 15 .section .text.SystemInit,"ax",%progbits - 16 .align 1 - 17 .global SystemInit - 18 .syntax unified - 19 .code 16 - 20 .thumb_func - 21 .fpu softvfp - 23 SystemInit: - 24 .LFB37: - 25 .file 1 "Src/system_stm32f0xx.c" - 1:Src/system_stm32f0xx.c **** /** - 2:Src/system_stm32f0xx.c **** ****************************************************************************** - 3:Src/system_stm32f0xx.c **** * @file system_stm32f0xx.c - 4:Src/system_stm32f0xx.c **** * @author MCD Application Team - 5:Src/system_stm32f0xx.c **** * @brief CMSIS Cortex-M0 Device Peripheral Access Layer System Source File. - 6:Src/system_stm32f0xx.c **** * - 7:Src/system_stm32f0xx.c **** * 1. This file provides two functions and one global variable to be called from - 8:Src/system_stm32f0xx.c **** * user application: - 9:Src/system_stm32f0xx.c **** * - SystemInit(): This function is called at startup just after reset and - 10:Src/system_stm32f0xx.c **** * before branch to main program. This call is made inside - 11:Src/system_stm32f0xx.c **** * the "startup_stm32f0xx.s" file. - 12:Src/system_stm32f0xx.c **** * - 13:Src/system_stm32f0xx.c **** * - SystemCoreClock variable: Contains the core clock (HCLK), it can be used - 14:Src/system_stm32f0xx.c **** * by the user application to setup the SysTick - 15:Src/system_stm32f0xx.c **** * timer or configure other parameters. - 16:Src/system_stm32f0xx.c **** * - 17:Src/system_stm32f0xx.c **** * - SystemCoreClockUpdate(): Updates the variable SystemCoreClock and must - 18:Src/system_stm32f0xx.c **** * be called whenever the core clock is changed - 19:Src/system_stm32f0xx.c **** * during program execution. - 20:Src/system_stm32f0xx.c **** * - 21:Src/system_stm32f0xx.c **** * 2. After each device reset the HSI (8 MHz) is used as system clock source. - 22:Src/system_stm32f0xx.c **** * Then SystemInit() function is called, in "startup_stm32f0xx.s" file, to - 23:Src/system_stm32f0xx.c **** * configure the system clock before to branch to main program. - 24:Src/system_stm32f0xx.c **** * - 25:Src/system_stm32f0xx.c **** * 3. This file configures the system clock as follows: - 26:Src/system_stm32f0xx.c **** *============================================================================= - 27:Src/system_stm32f0xx.c **** * Supported STM32F0xx device - 28:Src/system_stm32f0xx.c **** *----------------------------------------------------------------------------- - 29:Src/system_stm32f0xx.c **** * System Clock source | HSI - 30:Src/system_stm32f0xx.c **** *----------------------------------------------------------------------------- - 31:Src/system_stm32f0xx.c **** * SYSCLK(Hz) | 8000000 - 32:Src/system_stm32f0xx.c **** *----------------------------------------------------------------------------- - 33:Src/system_stm32f0xx.c **** * HCLK(Hz) | 8000000 - ARM GAS /tmp/cc0sbyBo.s page 2 - - - 34:Src/system_stm32f0xx.c **** *----------------------------------------------------------------------------- - 35:Src/system_stm32f0xx.c **** * AHB Prescaler | 1 - 36:Src/system_stm32f0xx.c **** *----------------------------------------------------------------------------- - 37:Src/system_stm32f0xx.c **** * APB1 Prescaler | 1 - 38:Src/system_stm32f0xx.c **** *----------------------------------------------------------------------------- - 39:Src/system_stm32f0xx.c **** *============================================================================= - 40:Src/system_stm32f0xx.c **** ****************************************************************************** - 41:Src/system_stm32f0xx.c **** * @attention - 42:Src/system_stm32f0xx.c **** * - 43:Src/system_stm32f0xx.c **** *

© COPYRIGHT(c) 2016 STMicroelectronics

- 44:Src/system_stm32f0xx.c **** * - 45:Src/system_stm32f0xx.c **** * Redistribution and use in source and binary forms, with or without modification, - 46:Src/system_stm32f0xx.c **** * are permitted provided that the following conditions are met: - 47:Src/system_stm32f0xx.c **** * 1. Redistributions of source code must retain the above copyright notice, - 48:Src/system_stm32f0xx.c **** * this list of conditions and the following disclaimer. - 49:Src/system_stm32f0xx.c **** * 2. Redistributions in binary form must reproduce the above copyright notice, - 50:Src/system_stm32f0xx.c **** * this list of conditions and the following disclaimer in the documentation - 51:Src/system_stm32f0xx.c **** * and/or other materials provided with the distribution. - 52:Src/system_stm32f0xx.c **** * 3. Neither the name of STMicroelectronics nor the names of its contributors - 53:Src/system_stm32f0xx.c **** * may be used to endorse or promote products derived from this software - 54:Src/system_stm32f0xx.c **** * without specific prior written permission. - 55:Src/system_stm32f0xx.c **** * - 56:Src/system_stm32f0xx.c **** * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" - 57:Src/system_stm32f0xx.c **** * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE - 58:Src/system_stm32f0xx.c **** * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE - 59:Src/system_stm32f0xx.c **** * DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE - 60:Src/system_stm32f0xx.c **** * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL - 61:Src/system_stm32f0xx.c **** * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR - 62:Src/system_stm32f0xx.c **** * SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER - 63:Src/system_stm32f0xx.c **** * CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, - 64:Src/system_stm32f0xx.c **** * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE - 65:Src/system_stm32f0xx.c **** * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. - 66:Src/system_stm32f0xx.c **** * - 67:Src/system_stm32f0xx.c **** ****************************************************************************** - 68:Src/system_stm32f0xx.c **** */ - 69:Src/system_stm32f0xx.c **** - 70:Src/system_stm32f0xx.c **** /** @addtogroup CMSIS - 71:Src/system_stm32f0xx.c **** * @{ - 72:Src/system_stm32f0xx.c **** */ - 73:Src/system_stm32f0xx.c **** - 74:Src/system_stm32f0xx.c **** /** @addtogroup stm32f0xx_system - 75:Src/system_stm32f0xx.c **** * @{ - 76:Src/system_stm32f0xx.c **** */ - 77:Src/system_stm32f0xx.c **** - 78:Src/system_stm32f0xx.c **** /** @addtogroup STM32F0xx_System_Private_Includes - 79:Src/system_stm32f0xx.c **** * @{ - 80:Src/system_stm32f0xx.c **** */ - 81:Src/system_stm32f0xx.c **** - 82:Src/system_stm32f0xx.c **** #include "stm32f0xx.h" - 83:Src/system_stm32f0xx.c **** - 84:Src/system_stm32f0xx.c **** /** - 85:Src/system_stm32f0xx.c **** * @} - 86:Src/system_stm32f0xx.c **** */ - 87:Src/system_stm32f0xx.c **** - 88:Src/system_stm32f0xx.c **** /** @addtogroup STM32F0xx_System_Private_TypesDefinitions - 89:Src/system_stm32f0xx.c **** * @{ - 90:Src/system_stm32f0xx.c **** */ - ARM GAS /tmp/cc0sbyBo.s page 3 - - - 91:Src/system_stm32f0xx.c **** - 92:Src/system_stm32f0xx.c **** /** - 93:Src/system_stm32f0xx.c **** * @} - 94:Src/system_stm32f0xx.c **** */ - 95:Src/system_stm32f0xx.c **** - 96:Src/system_stm32f0xx.c **** /** @addtogroup STM32F0xx_System_Private_Defines - 97:Src/system_stm32f0xx.c **** * @{ - 98:Src/system_stm32f0xx.c **** */ - 99:Src/system_stm32f0xx.c **** #if !defined (HSE_VALUE) - 100:Src/system_stm32f0xx.c **** #define HSE_VALUE ((uint32_t)8000000) /*!< Default value of the External oscillator in Hz. - 101:Src/system_stm32f0xx.c **** This value can be provided and adapted by the user - 102:Src/system_stm32f0xx.c **** #endif /* HSE_VALUE */ - 103:Src/system_stm32f0xx.c **** - 104:Src/system_stm32f0xx.c **** #if !defined (HSI_VALUE) - 105:Src/system_stm32f0xx.c **** #define HSI_VALUE ((uint32_t)8000000) /*!< Default value of the Internal oscillator in Hz. - 106:Src/system_stm32f0xx.c **** This value can be provided and adapted by the user - 107:Src/system_stm32f0xx.c **** #endif /* HSI_VALUE */ - 108:Src/system_stm32f0xx.c **** - 109:Src/system_stm32f0xx.c **** #if !defined (HSI48_VALUE) - 110:Src/system_stm32f0xx.c **** #define HSI48_VALUE ((uint32_t)48000000) /*!< Default value of the HSI48 Internal oscillator in - 111:Src/system_stm32f0xx.c **** This value can be provided and adapted by the user - 112:Src/system_stm32f0xx.c **** #endif /* HSI48_VALUE */ - 113:Src/system_stm32f0xx.c **** /** - 114:Src/system_stm32f0xx.c **** * @} - 115:Src/system_stm32f0xx.c **** */ - 116:Src/system_stm32f0xx.c **** - 117:Src/system_stm32f0xx.c **** /** @addtogroup STM32F0xx_System_Private_Macros - 118:Src/system_stm32f0xx.c **** * @{ - 119:Src/system_stm32f0xx.c **** */ - 120:Src/system_stm32f0xx.c **** - 121:Src/system_stm32f0xx.c **** /** - 122:Src/system_stm32f0xx.c **** * @} - 123:Src/system_stm32f0xx.c **** */ - 124:Src/system_stm32f0xx.c **** - 125:Src/system_stm32f0xx.c **** /** @addtogroup STM32F0xx_System_Private_Variables - 126:Src/system_stm32f0xx.c **** * @{ - 127:Src/system_stm32f0xx.c **** */ - 128:Src/system_stm32f0xx.c **** /* This variable is updated in three ways: - 129:Src/system_stm32f0xx.c **** 1) by calling CMSIS function SystemCoreClockUpdate() - 130:Src/system_stm32f0xx.c **** 2) by calling HAL API function HAL_RCC_GetHCLKFreq() - 131:Src/system_stm32f0xx.c **** 3) each time HAL_RCC_ClockConfig() is called to configure the system clock frequency - 132:Src/system_stm32f0xx.c **** Note: If you use this function to configure the system clock there is no need to - 133:Src/system_stm32f0xx.c **** call the 2 first functions listed above, since SystemCoreClock variable is - 134:Src/system_stm32f0xx.c **** updated automatically. - 135:Src/system_stm32f0xx.c **** */ - 136:Src/system_stm32f0xx.c **** uint32_t SystemCoreClock = 8000000; - 137:Src/system_stm32f0xx.c **** - 138:Src/system_stm32f0xx.c **** const uint8_t AHBPrescTable[16] = {0, 0, 0, 0, 0, 0, 0, 0, 1, 2, 3, 4, 6, 7, 8, 9}; - 139:Src/system_stm32f0xx.c **** const uint8_t APBPrescTable[8] = {0, 0, 0, 0, 1, 2, 3, 4}; - 140:Src/system_stm32f0xx.c **** - 141:Src/system_stm32f0xx.c **** /** - 142:Src/system_stm32f0xx.c **** * @} - 143:Src/system_stm32f0xx.c **** */ - 144:Src/system_stm32f0xx.c **** - 145:Src/system_stm32f0xx.c **** /** @addtogroup STM32F0xx_System_Private_FunctionPrototypes - 146:Src/system_stm32f0xx.c **** * @{ - 147:Src/system_stm32f0xx.c **** */ - ARM GAS /tmp/cc0sbyBo.s page 4 - - - 148:Src/system_stm32f0xx.c **** - 149:Src/system_stm32f0xx.c **** /** - 150:Src/system_stm32f0xx.c **** * @} - 151:Src/system_stm32f0xx.c **** */ - 152:Src/system_stm32f0xx.c **** - 153:Src/system_stm32f0xx.c **** /** @addtogroup STM32F0xx_System_Private_Functions - 154:Src/system_stm32f0xx.c **** * @{ - 155:Src/system_stm32f0xx.c **** */ - 156:Src/system_stm32f0xx.c **** - 157:Src/system_stm32f0xx.c **** /** - 158:Src/system_stm32f0xx.c **** * @brief Setup the microcontroller system. - 159:Src/system_stm32f0xx.c **** * Initialize the default HSI clock source, vector table location and the PLL configuratio - 160:Src/system_stm32f0xx.c **** * @param None - 161:Src/system_stm32f0xx.c **** * @retval None - 162:Src/system_stm32f0xx.c **** */ - 163:Src/system_stm32f0xx.c **** void (*SysMemBootJump)(void); - 164:Src/system_stm32f0xx.c **** - 165:Src/system_stm32f0xx.c **** void SystemInit (void) - 166:Src/system_stm32f0xx.c **** { - 26 .loc 1 166 0 - 27 .cfi_startproc - 28 @ args = 0, pretend = 0, frame = 0 - 29 @ frame_needed = 1, uses_anonymous_args = 0 - 30 0000 80B5 push {r7, lr} - 31 .LCFI0: - 32 .cfi_def_cfa_offset 8 - 33 .cfi_offset 7, -8 - 34 .cfi_offset 14, -4 - 35 0002 00AF add r7, sp, #0 - 36 .LCFI1: - 37 .cfi_def_cfa_register 7 - 167:Src/system_stm32f0xx.c **** if ( *((unsigned long *)0x20003FF0) == 0xDEADBEEF ) { - 38 .loc 1 167 0 - 39 0004 1A4B ldr r3, .L4 - 40 0006 1A68 ldr r2, [r3] - 41 0008 1A4B ldr r3, .L4+4 - 42 000a 9A42 cmp r2, r3 - 43 000c 0BD1 bne .L2 - 168:Src/system_stm32f0xx.c **** *((unsigned long *)0x20003FF0) = 0xCAFEFEED; // Reset our trigger - 44 .loc 1 168 0 - 45 000e 184B ldr r3, .L4 - 46 0010 194A ldr r2, .L4+8 - 47 0012 1A60 str r2, [r3] - 48 .LVL0: - 49 .LBB4: - 50 .LBB5: - 51 .file 2 "Drivers/CMSIS/Include/cmsis_gcc.h" - 1:Drivers/CMSIS/Include/cmsis_gcc.h **** /**************************************************************************//** - 2:Drivers/CMSIS/Include/cmsis_gcc.h **** * @file cmsis_gcc.h - 3:Drivers/CMSIS/Include/cmsis_gcc.h **** * @brief CMSIS Cortex-M Core Function/Instruction Header File - 4:Drivers/CMSIS/Include/cmsis_gcc.h **** * @version V4.30 - 5:Drivers/CMSIS/Include/cmsis_gcc.h **** * @date 20. October 2015 - 6:Drivers/CMSIS/Include/cmsis_gcc.h **** ******************************************************************************/ - 7:Drivers/CMSIS/Include/cmsis_gcc.h **** /* Copyright (c) 2009 - 2015 ARM LIMITED - 8:Drivers/CMSIS/Include/cmsis_gcc.h **** - 9:Drivers/CMSIS/Include/cmsis_gcc.h **** All rights reserved. - 10:Drivers/CMSIS/Include/cmsis_gcc.h **** Redistribution and use in source and binary forms, with or without - ARM GAS /tmp/cc0sbyBo.s page 5 - - - 11:Drivers/CMSIS/Include/cmsis_gcc.h **** modification, are permitted provided that the following conditions are met: - 12:Drivers/CMSIS/Include/cmsis_gcc.h **** - Redistributions of source code must retain the above copyright - 13:Drivers/CMSIS/Include/cmsis_gcc.h **** notice, this list of conditions and the following disclaimer. - 14:Drivers/CMSIS/Include/cmsis_gcc.h **** - Redistributions in binary form must reproduce the above copyright - 15:Drivers/CMSIS/Include/cmsis_gcc.h **** notice, this list of conditions and the following disclaimer in the - 16:Drivers/CMSIS/Include/cmsis_gcc.h **** documentation and/or other materials provided with the distribution. - 17:Drivers/CMSIS/Include/cmsis_gcc.h **** - Neither the name of ARM nor the names of its contributors may be used - 18:Drivers/CMSIS/Include/cmsis_gcc.h **** to endorse or promote products derived from this software without - 19:Drivers/CMSIS/Include/cmsis_gcc.h **** specific prior written permission. - 20:Drivers/CMSIS/Include/cmsis_gcc.h **** * - 21:Drivers/CMSIS/Include/cmsis_gcc.h **** THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" - 22:Drivers/CMSIS/Include/cmsis_gcc.h **** AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE - 23:Drivers/CMSIS/Include/cmsis_gcc.h **** IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE - 24:Drivers/CMSIS/Include/cmsis_gcc.h **** ARE DISCLAIMED. IN NO EVENT SHALL COPYRIGHT HOLDERS AND CONTRIBUTORS BE - 25:Drivers/CMSIS/Include/cmsis_gcc.h **** LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR - 26:Drivers/CMSIS/Include/cmsis_gcc.h **** CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF - 27:Drivers/CMSIS/Include/cmsis_gcc.h **** SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS - 28:Drivers/CMSIS/Include/cmsis_gcc.h **** INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN - 29:Drivers/CMSIS/Include/cmsis_gcc.h **** CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) - 30:Drivers/CMSIS/Include/cmsis_gcc.h **** ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE - 31:Drivers/CMSIS/Include/cmsis_gcc.h **** POSSIBILITY OF SUCH DAMAGE. - 32:Drivers/CMSIS/Include/cmsis_gcc.h **** ---------------------------------------------------------------------------*/ - 33:Drivers/CMSIS/Include/cmsis_gcc.h **** - 34:Drivers/CMSIS/Include/cmsis_gcc.h **** - 35:Drivers/CMSIS/Include/cmsis_gcc.h **** #ifndef __CMSIS_GCC_H - 36:Drivers/CMSIS/Include/cmsis_gcc.h **** #define __CMSIS_GCC_H - 37:Drivers/CMSIS/Include/cmsis_gcc.h **** - 38:Drivers/CMSIS/Include/cmsis_gcc.h **** /* ignore some GCC warnings */ - 39:Drivers/CMSIS/Include/cmsis_gcc.h **** #if defined ( __GNUC__ ) - 40:Drivers/CMSIS/Include/cmsis_gcc.h **** #pragma GCC diagnostic push - 41:Drivers/CMSIS/Include/cmsis_gcc.h **** #pragma GCC diagnostic ignored "-Wsign-conversion" - 42:Drivers/CMSIS/Include/cmsis_gcc.h **** #pragma GCC diagnostic ignored "-Wconversion" - 43:Drivers/CMSIS/Include/cmsis_gcc.h **** #pragma GCC diagnostic ignored "-Wunused-parameter" - 44:Drivers/CMSIS/Include/cmsis_gcc.h **** #endif - 45:Drivers/CMSIS/Include/cmsis_gcc.h **** - 46:Drivers/CMSIS/Include/cmsis_gcc.h **** - 47:Drivers/CMSIS/Include/cmsis_gcc.h **** /* ########################### Core Function Access ########################### */ - 48:Drivers/CMSIS/Include/cmsis_gcc.h **** /** \ingroup CMSIS_Core_FunctionInterface - 49:Drivers/CMSIS/Include/cmsis_gcc.h **** \defgroup CMSIS_Core_RegAccFunctions CMSIS Core Register Access Functions - 50:Drivers/CMSIS/Include/cmsis_gcc.h **** @{ - 51:Drivers/CMSIS/Include/cmsis_gcc.h **** */ - 52:Drivers/CMSIS/Include/cmsis_gcc.h **** - 53:Drivers/CMSIS/Include/cmsis_gcc.h **** /** - 54:Drivers/CMSIS/Include/cmsis_gcc.h **** \brief Enable IRQ Interrupts - 55:Drivers/CMSIS/Include/cmsis_gcc.h **** \details Enables IRQ interrupts by clearing the I-bit in the CPSR. - 56:Drivers/CMSIS/Include/cmsis_gcc.h **** Can only be executed in Privileged modes. - 57:Drivers/CMSIS/Include/cmsis_gcc.h **** */ - 58:Drivers/CMSIS/Include/cmsis_gcc.h **** __attribute__( ( always_inline ) ) __STATIC_INLINE void __enable_irq(void) - 59:Drivers/CMSIS/Include/cmsis_gcc.h **** { - 60:Drivers/CMSIS/Include/cmsis_gcc.h **** __ASM volatile ("cpsie i" : : : "memory"); - 61:Drivers/CMSIS/Include/cmsis_gcc.h **** } - 62:Drivers/CMSIS/Include/cmsis_gcc.h **** - 63:Drivers/CMSIS/Include/cmsis_gcc.h **** - 64:Drivers/CMSIS/Include/cmsis_gcc.h **** /** - 65:Drivers/CMSIS/Include/cmsis_gcc.h **** \brief Disable IRQ Interrupts - 66:Drivers/CMSIS/Include/cmsis_gcc.h **** \details Disables IRQ interrupts by setting the I-bit in the CPSR. - 67:Drivers/CMSIS/Include/cmsis_gcc.h **** Can only be executed in Privileged modes. - ARM GAS /tmp/cc0sbyBo.s page 6 - - - 68:Drivers/CMSIS/Include/cmsis_gcc.h **** */ - 69:Drivers/CMSIS/Include/cmsis_gcc.h **** __attribute__( ( always_inline ) ) __STATIC_INLINE void __disable_irq(void) - 70:Drivers/CMSIS/Include/cmsis_gcc.h **** { - 71:Drivers/CMSIS/Include/cmsis_gcc.h **** __ASM volatile ("cpsid i" : : : "memory"); - 72:Drivers/CMSIS/Include/cmsis_gcc.h **** } - 73:Drivers/CMSIS/Include/cmsis_gcc.h **** - 74:Drivers/CMSIS/Include/cmsis_gcc.h **** - 75:Drivers/CMSIS/Include/cmsis_gcc.h **** /** - 76:Drivers/CMSIS/Include/cmsis_gcc.h **** \brief Get Control Register - 77:Drivers/CMSIS/Include/cmsis_gcc.h **** \details Returns the content of the Control Register. - 78:Drivers/CMSIS/Include/cmsis_gcc.h **** \return Control Register value - 79:Drivers/CMSIS/Include/cmsis_gcc.h **** */ - 80:Drivers/CMSIS/Include/cmsis_gcc.h **** __attribute__( ( always_inline ) ) __STATIC_INLINE uint32_t __get_CONTROL(void) - 81:Drivers/CMSIS/Include/cmsis_gcc.h **** { - 82:Drivers/CMSIS/Include/cmsis_gcc.h **** uint32_t result; - 83:Drivers/CMSIS/Include/cmsis_gcc.h **** - 84:Drivers/CMSIS/Include/cmsis_gcc.h **** __ASM volatile ("MRS %0, control" : "=r" (result) ); - 85:Drivers/CMSIS/Include/cmsis_gcc.h **** return(result); - 86:Drivers/CMSIS/Include/cmsis_gcc.h **** } - 87:Drivers/CMSIS/Include/cmsis_gcc.h **** - 88:Drivers/CMSIS/Include/cmsis_gcc.h **** - 89:Drivers/CMSIS/Include/cmsis_gcc.h **** /** - 90:Drivers/CMSIS/Include/cmsis_gcc.h **** \brief Set Control Register - 91:Drivers/CMSIS/Include/cmsis_gcc.h **** \details Writes the given value to the Control Register. - 92:Drivers/CMSIS/Include/cmsis_gcc.h **** \param [in] control Control Register value to set - 93:Drivers/CMSIS/Include/cmsis_gcc.h **** */ - 94:Drivers/CMSIS/Include/cmsis_gcc.h **** __attribute__( ( always_inline ) ) __STATIC_INLINE void __set_CONTROL(uint32_t control) - 95:Drivers/CMSIS/Include/cmsis_gcc.h **** { - 96:Drivers/CMSIS/Include/cmsis_gcc.h **** __ASM volatile ("MSR control, %0" : : "r" (control) : "memory"); - 97:Drivers/CMSIS/Include/cmsis_gcc.h **** } - 98:Drivers/CMSIS/Include/cmsis_gcc.h **** - 99:Drivers/CMSIS/Include/cmsis_gcc.h **** - 100:Drivers/CMSIS/Include/cmsis_gcc.h **** /** - 101:Drivers/CMSIS/Include/cmsis_gcc.h **** \brief Get IPSR Register - 102:Drivers/CMSIS/Include/cmsis_gcc.h **** \details Returns the content of the IPSR Register. - 103:Drivers/CMSIS/Include/cmsis_gcc.h **** \return IPSR Register value - 104:Drivers/CMSIS/Include/cmsis_gcc.h **** */ - 105:Drivers/CMSIS/Include/cmsis_gcc.h **** __attribute__( ( always_inline ) ) __STATIC_INLINE uint32_t __get_IPSR(void) - 106:Drivers/CMSIS/Include/cmsis_gcc.h **** { - 107:Drivers/CMSIS/Include/cmsis_gcc.h **** uint32_t result; - 108:Drivers/CMSIS/Include/cmsis_gcc.h **** - 109:Drivers/CMSIS/Include/cmsis_gcc.h **** __ASM volatile ("MRS %0, ipsr" : "=r" (result) ); - 110:Drivers/CMSIS/Include/cmsis_gcc.h **** return(result); - 111:Drivers/CMSIS/Include/cmsis_gcc.h **** } - 112:Drivers/CMSIS/Include/cmsis_gcc.h **** - 113:Drivers/CMSIS/Include/cmsis_gcc.h **** - 114:Drivers/CMSIS/Include/cmsis_gcc.h **** /** - 115:Drivers/CMSIS/Include/cmsis_gcc.h **** \brief Get APSR Register - 116:Drivers/CMSIS/Include/cmsis_gcc.h **** \details Returns the content of the APSR Register. - 117:Drivers/CMSIS/Include/cmsis_gcc.h **** \return APSR Register value - 118:Drivers/CMSIS/Include/cmsis_gcc.h **** */ - 119:Drivers/CMSIS/Include/cmsis_gcc.h **** __attribute__( ( always_inline ) ) __STATIC_INLINE uint32_t __get_APSR(void) - 120:Drivers/CMSIS/Include/cmsis_gcc.h **** { - 121:Drivers/CMSIS/Include/cmsis_gcc.h **** uint32_t result; - 122:Drivers/CMSIS/Include/cmsis_gcc.h **** - 123:Drivers/CMSIS/Include/cmsis_gcc.h **** __ASM volatile ("MRS %0, apsr" : "=r" (result) ); - 124:Drivers/CMSIS/Include/cmsis_gcc.h **** return(result); - ARM GAS /tmp/cc0sbyBo.s page 7 - - - 125:Drivers/CMSIS/Include/cmsis_gcc.h **** } - 126:Drivers/CMSIS/Include/cmsis_gcc.h **** - 127:Drivers/CMSIS/Include/cmsis_gcc.h **** - 128:Drivers/CMSIS/Include/cmsis_gcc.h **** /** - 129:Drivers/CMSIS/Include/cmsis_gcc.h **** \brief Get xPSR Register - 130:Drivers/CMSIS/Include/cmsis_gcc.h **** \details Returns the content of the xPSR Register. - 131:Drivers/CMSIS/Include/cmsis_gcc.h **** - 132:Drivers/CMSIS/Include/cmsis_gcc.h **** \return xPSR Register value - 133:Drivers/CMSIS/Include/cmsis_gcc.h **** */ - 134:Drivers/CMSIS/Include/cmsis_gcc.h **** __attribute__( ( always_inline ) ) __STATIC_INLINE uint32_t __get_xPSR(void) - 135:Drivers/CMSIS/Include/cmsis_gcc.h **** { - 136:Drivers/CMSIS/Include/cmsis_gcc.h **** uint32_t result; - 137:Drivers/CMSIS/Include/cmsis_gcc.h **** - 138:Drivers/CMSIS/Include/cmsis_gcc.h **** __ASM volatile ("MRS %0, xpsr" : "=r" (result) ); - 139:Drivers/CMSIS/Include/cmsis_gcc.h **** return(result); - 140:Drivers/CMSIS/Include/cmsis_gcc.h **** } - 141:Drivers/CMSIS/Include/cmsis_gcc.h **** - 142:Drivers/CMSIS/Include/cmsis_gcc.h **** - 143:Drivers/CMSIS/Include/cmsis_gcc.h **** /** - 144:Drivers/CMSIS/Include/cmsis_gcc.h **** \brief Get Process Stack Pointer - 145:Drivers/CMSIS/Include/cmsis_gcc.h **** \details Returns the current value of the Process Stack Pointer (PSP). - 146:Drivers/CMSIS/Include/cmsis_gcc.h **** \return PSP Register value - 147:Drivers/CMSIS/Include/cmsis_gcc.h **** */ - 148:Drivers/CMSIS/Include/cmsis_gcc.h **** __attribute__( ( always_inline ) ) __STATIC_INLINE uint32_t __get_PSP(void) - 149:Drivers/CMSIS/Include/cmsis_gcc.h **** { - 150:Drivers/CMSIS/Include/cmsis_gcc.h **** register uint32_t result; - 151:Drivers/CMSIS/Include/cmsis_gcc.h **** - 152:Drivers/CMSIS/Include/cmsis_gcc.h **** __ASM volatile ("MRS %0, psp\n" : "=r" (result) ); - 153:Drivers/CMSIS/Include/cmsis_gcc.h **** return(result); - 154:Drivers/CMSIS/Include/cmsis_gcc.h **** } - 155:Drivers/CMSIS/Include/cmsis_gcc.h **** - 156:Drivers/CMSIS/Include/cmsis_gcc.h **** - 157:Drivers/CMSIS/Include/cmsis_gcc.h **** /** - 158:Drivers/CMSIS/Include/cmsis_gcc.h **** \brief Set Process Stack Pointer - 159:Drivers/CMSIS/Include/cmsis_gcc.h **** \details Assigns the given value to the Process Stack Pointer (PSP). - 160:Drivers/CMSIS/Include/cmsis_gcc.h **** \param [in] topOfProcStack Process Stack Pointer value to set - 161:Drivers/CMSIS/Include/cmsis_gcc.h **** */ - 162:Drivers/CMSIS/Include/cmsis_gcc.h **** __attribute__( ( always_inline ) ) __STATIC_INLINE void __set_PSP(uint32_t topOfProcStack) - 163:Drivers/CMSIS/Include/cmsis_gcc.h **** { - 164:Drivers/CMSIS/Include/cmsis_gcc.h **** __ASM volatile ("MSR psp, %0\n" : : "r" (topOfProcStack) : "sp"); - 165:Drivers/CMSIS/Include/cmsis_gcc.h **** } - 166:Drivers/CMSIS/Include/cmsis_gcc.h **** - 167:Drivers/CMSIS/Include/cmsis_gcc.h **** - 168:Drivers/CMSIS/Include/cmsis_gcc.h **** /** - 169:Drivers/CMSIS/Include/cmsis_gcc.h **** \brief Get Main Stack Pointer - 170:Drivers/CMSIS/Include/cmsis_gcc.h **** \details Returns the current value of the Main Stack Pointer (MSP). - 171:Drivers/CMSIS/Include/cmsis_gcc.h **** \return MSP Register value - 172:Drivers/CMSIS/Include/cmsis_gcc.h **** */ - 173:Drivers/CMSIS/Include/cmsis_gcc.h **** __attribute__( ( always_inline ) ) __STATIC_INLINE uint32_t __get_MSP(void) - 174:Drivers/CMSIS/Include/cmsis_gcc.h **** { - 175:Drivers/CMSIS/Include/cmsis_gcc.h **** register uint32_t result; - 176:Drivers/CMSIS/Include/cmsis_gcc.h **** - 177:Drivers/CMSIS/Include/cmsis_gcc.h **** __ASM volatile ("MRS %0, msp\n" : "=r" (result) ); - 178:Drivers/CMSIS/Include/cmsis_gcc.h **** return(result); - 179:Drivers/CMSIS/Include/cmsis_gcc.h **** } - 180:Drivers/CMSIS/Include/cmsis_gcc.h **** - 181:Drivers/CMSIS/Include/cmsis_gcc.h **** - ARM GAS /tmp/cc0sbyBo.s page 8 - - - 182:Drivers/CMSIS/Include/cmsis_gcc.h **** /** - 183:Drivers/CMSIS/Include/cmsis_gcc.h **** \brief Set Main Stack Pointer - 184:Drivers/CMSIS/Include/cmsis_gcc.h **** \details Assigns the given value to the Main Stack Pointer (MSP). - 185:Drivers/CMSIS/Include/cmsis_gcc.h **** - 186:Drivers/CMSIS/Include/cmsis_gcc.h **** \param [in] topOfMainStack Main Stack Pointer value to set - 187:Drivers/CMSIS/Include/cmsis_gcc.h **** */ - 188:Drivers/CMSIS/Include/cmsis_gcc.h **** __attribute__( ( always_inline ) ) __STATIC_INLINE void __set_MSP(uint32_t topOfMainStack) - 189:Drivers/CMSIS/Include/cmsis_gcc.h **** { - 190:Drivers/CMSIS/Include/cmsis_gcc.h **** __ASM volatile ("MSR msp, %0\n" : : "r" (topOfMainStack) : "sp"); - 52 .loc 2 190 0 - 53 0014 194B ldr r3, .L4+12 - 54 .syntax divided - 55 @ 190 "Drivers/CMSIS/Include/cmsis_gcc.h" 1 - 56 0016 83F30888 MSR msp, r3 - 57 - 58 @ 0 "" 2 - 59 .LVL1: - 60 .thumb - 61 .syntax unified - 62 .LBE5: - 63 .LBE4: - 169:Src/system_stm32f0xx.c **** __set_MSP(0x20002250); - 170:Src/system_stm32f0xx.c **** // 0x1fffC800 is "System Memory" start addre - 171:Src/system_stm32f0xx.c **** SysMemBootJump = (void (*)(void)) (*((uint32_t *) 0x1fffC804)); // Point the PC to the Syst - 64 .loc 1 171 0 - 65 001a 194B ldr r3, .L4+16 - 66 001c 1B68 ldr r3, [r3] - 67 001e 194A ldr r2, .L4+20 - 68 0020 1360 str r3, [r2] - 172:Src/system_stm32f0xx.c **** SysMemBootJump(); - 69 .loc 1 172 0 - 70 0022 9847 blx r3 - 71 .LVL2: - 72 .L3: - 73 0024 FEE7 b .L3 - 74 .L2: - 173:Src/system_stm32f0xx.c **** while (1); - 174:Src/system_stm32f0xx.c **** } - 175:Src/system_stm32f0xx.c **** - 176:Src/system_stm32f0xx.c **** /* Reset the RCC clock configuration to the default reset state ------------*/ - 177:Src/system_stm32f0xx.c **** /* Set HSION bit */ - 178:Src/system_stm32f0xx.c **** RCC->CR |= (uint32_t)0x00000001U; - 75 .loc 1 178 0 - 76 0026 184B ldr r3, .L4+24 - 77 0028 1A68 ldr r2, [r3] - 78 002a 0121 movs r1, #1 - 79 002c 0A43 orrs r2, r1 - 80 002e 1A60 str r2, [r3] - 179:Src/system_stm32f0xx.c **** - 180:Src/system_stm32f0xx.c **** #if defined (STM32F051x8) || defined (STM32F058x8) - 181:Src/system_stm32f0xx.c **** /* Reset SW[1:0], HPRE[3:0], PPRE[2:0], ADCPRE and MCOSEL[2:0] bits */ - 182:Src/system_stm32f0xx.c **** RCC->CFGR &= (uint32_t)0xF8FFB80CU; - 183:Src/system_stm32f0xx.c **** #else - 184:Src/system_stm32f0xx.c **** /* Reset SW[1:0], HPRE[3:0], PPRE[2:0], ADCPRE, MCOSEL[2:0], MCOPRE[2:0] and PLLNODIV bits */ - 185:Src/system_stm32f0xx.c **** RCC->CFGR &= (uint32_t)0x08FFB80CU; - 81 .loc 1 185 0 - 82 0030 5A68 ldr r2, [r3, #4] - ARM GAS /tmp/cc0sbyBo.s page 9 - - - 83 0032 1648 ldr r0, .L4+28 - 84 0034 0240 ands r2, r0 - 85 0036 5A60 str r2, [r3, #4] - 186:Src/system_stm32f0xx.c **** #endif /* STM32F051x8 or STM32F058x8 */ - 187:Src/system_stm32f0xx.c **** - 188:Src/system_stm32f0xx.c **** /* Reset HSEON, CSSON and PLLON bits */ - 189:Src/system_stm32f0xx.c **** RCC->CR &= (uint32_t)0xFEF6FFFFU; - 86 .loc 1 189 0 - 87 0038 1A68 ldr r2, [r3] - 88 003a 1548 ldr r0, .L4+32 - 89 003c 0240 ands r2, r0 - 90 003e 1A60 str r2, [r3] - 190:Src/system_stm32f0xx.c **** - 191:Src/system_stm32f0xx.c **** /* Reset HSEBYP bit */ - 192:Src/system_stm32f0xx.c **** RCC->CR &= (uint32_t)0xFFFBFFFFU; - 91 .loc 1 192 0 - 92 0040 1A68 ldr r2, [r3] - 93 0042 1448 ldr r0, .L4+36 - 94 0044 0240 ands r2, r0 - 95 0046 1A60 str r2, [r3] - 193:Src/system_stm32f0xx.c **** - 194:Src/system_stm32f0xx.c **** /* Reset PLLSRC, PLLXTPRE and PLLMUL[3:0] bits */ - 195:Src/system_stm32f0xx.c **** RCC->CFGR &= (uint32_t)0xFFC0FFFFU; - 96 .loc 1 195 0 - 97 0048 5A68 ldr r2, [r3, #4] - 98 004a 1348 ldr r0, .L4+40 - 99 004c 0240 ands r2, r0 - 100 004e 5A60 str r2, [r3, #4] - 196:Src/system_stm32f0xx.c **** - 197:Src/system_stm32f0xx.c **** /* Reset PREDIV[3:0] bits */ - 198:Src/system_stm32f0xx.c **** RCC->CFGR2 &= (uint32_t)0xFFFFFFF0U; - 101 .loc 1 198 0 - 102 0050 DA6A ldr r2, [r3, #44] - 103 0052 0F20 movs r0, #15 - 104 0054 8243 bics r2, r0 - 105 0056 DA62 str r2, [r3, #44] - 199:Src/system_stm32f0xx.c **** - 200:Src/system_stm32f0xx.c **** #if defined (STM32F072xB) || defined (STM32F078xx) - 201:Src/system_stm32f0xx.c **** /* Reset USART2SW[1:0], USART1SW[1:0], I2C1SW, CECSW, USBSW and ADCSW bits */ - 202:Src/system_stm32f0xx.c **** RCC->CFGR3 &= (uint32_t)0xFFFCFE2CU; - 106 .loc 1 202 0 - 107 0058 1A6B ldr r2, [r3, #48] - 108 005a 1048 ldr r0, .L4+44 - 109 005c 0240 ands r2, r0 - 110 005e 1A63 str r2, [r3, #48] - 203:Src/system_stm32f0xx.c **** #elif defined (STM32F071xB) - 204:Src/system_stm32f0xx.c **** /* Reset USART2SW[1:0], USART1SW[1:0], I2C1SW, CECSW and ADCSW bits */ - 205:Src/system_stm32f0xx.c **** RCC->CFGR3 &= (uint32_t)0xFFFFCEACU; - 206:Src/system_stm32f0xx.c **** #elif defined (STM32F091xC) || defined (STM32F098xx) - 207:Src/system_stm32f0xx.c **** /* Reset USART3SW[1:0], USART2SW[1:0], USART1SW[1:0], I2C1SW, CECSW and ADCSW bits */ - 208:Src/system_stm32f0xx.c **** RCC->CFGR3 &= (uint32_t)0xFFF0FEACU; - 209:Src/system_stm32f0xx.c **** #elif defined (STM32F030x6) || defined (STM32F030x8) || defined (STM32F031x6) || defined (STM32F038 - 210:Src/system_stm32f0xx.c **** /* Reset USART1SW[1:0], I2C1SW and ADCSW bits */ - 211:Src/system_stm32f0xx.c **** RCC->CFGR3 &= (uint32_t)0xFFFFFEECU; - 212:Src/system_stm32f0xx.c **** #elif defined (STM32F051x8) || defined (STM32F058xx) - 213:Src/system_stm32f0xx.c **** /* Reset USART1SW[1:0], I2C1SW, CECSW and ADCSW bits */ - 214:Src/system_stm32f0xx.c **** RCC->CFGR3 &= (uint32_t)0xFFFFFEACU; - ARM GAS /tmp/cc0sbyBo.s page 10 - - - 215:Src/system_stm32f0xx.c **** #elif defined (STM32F042x6) || defined (STM32F048xx) - 216:Src/system_stm32f0xx.c **** /* Reset USART1SW[1:0], I2C1SW, CECSW, USBSW and ADCSW bits */ - 217:Src/system_stm32f0xx.c **** RCC->CFGR3 &= (uint32_t)0xFFFFFE2CU; - 218:Src/system_stm32f0xx.c **** #elif defined (STM32F070x6) || defined (STM32F070xB) - 219:Src/system_stm32f0xx.c **** /* Reset USART1SW[1:0], I2C1SW, USBSW and ADCSW bits */ - 220:Src/system_stm32f0xx.c **** RCC->CFGR3 &= (uint32_t)0xFFFFFE6CU; - 221:Src/system_stm32f0xx.c **** /* Set default USB clock to PLLCLK, since there is no HSI48 */ - 222:Src/system_stm32f0xx.c **** RCC->CFGR3 |= (uint32_t)0x00000080U; - 223:Src/system_stm32f0xx.c **** #else - 224:Src/system_stm32f0xx.c **** #warning "No target selected" - 225:Src/system_stm32f0xx.c **** #endif - 226:Src/system_stm32f0xx.c **** - 227:Src/system_stm32f0xx.c **** /* Reset HSI14 bit */ - 228:Src/system_stm32f0xx.c **** RCC->CR2 &= (uint32_t)0xFFFFFFFEU; - 111 .loc 1 228 0 - 112 0060 5A6B ldr r2, [r3, #52] - 113 0062 8A43 bics r2, r1 - 114 0064 5A63 str r2, [r3, #52] - 229:Src/system_stm32f0xx.c **** - 230:Src/system_stm32f0xx.c **** /* Disable all interrupts */ - 231:Src/system_stm32f0xx.c **** RCC->CIR = 0x00000000U; - 115 .loc 1 231 0 - 116 0066 0022 movs r2, #0 - 117 0068 9A60 str r2, [r3, #8] - 232:Src/system_stm32f0xx.c **** - 233:Src/system_stm32f0xx.c **** } - 118 .loc 1 233 0 - 119 006a BD46 mov sp, r7 - 120 @ sp needed - 121 006c 80BD pop {r7, pc} - 122 .L5: - 123 006e C046 .align 2 - 124 .L4: - 125 0070 F03F0020 .word 536887280 - 126 0074 EFBEADDE .word -559038737 - 127 0078 EDFEFECA .word -889258259 - 128 007c 50220020 .word 536879696 - 129 0080 04C8FF1F .word 536856580 - 130 0084 00000000 .word SysMemBootJump - 131 0088 00100240 .word 1073876992 - 132 008c 0CB8FF08 .word 150976524 - 133 0090 FFFFF6FE .word -17367041 - 134 0094 FFFFFBFF .word -262145 - 135 0098 FFFFC0FF .word -4128769 - 136 009c 2CFEFCFF .word -197076 - 137 .cfi_endproc - 138 .LFE37: - 140 .global __aeabi_uidiv - 141 .section .text.SystemCoreClockUpdate,"ax",%progbits - 142 .align 1 - 143 .global SystemCoreClockUpdate - 144 .syntax unified - 145 .code 16 - 146 .thumb_func - 147 .fpu softvfp - 149 SystemCoreClockUpdate: - 150 .LFB38: - ARM GAS /tmp/cc0sbyBo.s page 11 - - - 234:Src/system_stm32f0xx.c **** - 235:Src/system_stm32f0xx.c **** /** - 236:Src/system_stm32f0xx.c **** * @brief Update SystemCoreClock variable according to Clock Register Values. - 237:Src/system_stm32f0xx.c **** * The SystemCoreClock variable contains the core clock (HCLK), it can - 238:Src/system_stm32f0xx.c **** * be used by the user application to setup the SysTick timer or configure - 239:Src/system_stm32f0xx.c **** * other parameters. - 240:Src/system_stm32f0xx.c **** * - 241:Src/system_stm32f0xx.c **** * @note Each time the core clock (HCLK) changes, this function must be called - 242:Src/system_stm32f0xx.c **** * to update SystemCoreClock variable value. Otherwise, any configuration - 243:Src/system_stm32f0xx.c **** * based on this variable will be incorrect. - 244:Src/system_stm32f0xx.c **** * - 245:Src/system_stm32f0xx.c **** * @note - The system frequency computed by this function is not the real - 246:Src/system_stm32f0xx.c **** * frequency in the chip. It is calculated based on the predefined - 247:Src/system_stm32f0xx.c **** * constant and the selected clock source: - 248:Src/system_stm32f0xx.c **** * - 249:Src/system_stm32f0xx.c **** * - If SYSCLK source is HSI, SystemCoreClock will contain the HSI_VALUE(*) - 250:Src/system_stm32f0xx.c **** * - 251:Src/system_stm32f0xx.c **** * - If SYSCLK source is HSE, SystemCoreClock will contain the HSE_VALUE(**) - 252:Src/system_stm32f0xx.c **** * - 253:Src/system_stm32f0xx.c **** * - If SYSCLK source is PLL, SystemCoreClock will contain the HSE_VALUE(**) - 254:Src/system_stm32f0xx.c **** * or HSI_VALUE(*) multiplied/divided by the PLL factors. - 255:Src/system_stm32f0xx.c **** * - 256:Src/system_stm32f0xx.c **** * (*) HSI_VALUE is a constant defined in stm32f0xx_hal.h file (default value - 257:Src/system_stm32f0xx.c **** * 8 MHz) but the real value may vary depending on the variations - 258:Src/system_stm32f0xx.c **** * in voltage and temperature. - 259:Src/system_stm32f0xx.c **** * - 260:Src/system_stm32f0xx.c **** * (**) HSE_VALUE is a constant defined in stm32f0xx_hal.h file (default value - 261:Src/system_stm32f0xx.c **** * 8 MHz), user has to ensure that HSE_VALUE is same as the real - 262:Src/system_stm32f0xx.c **** * frequency of the crystal used. Otherwise, this function may - 263:Src/system_stm32f0xx.c **** * have wrong result. - 264:Src/system_stm32f0xx.c **** * - 265:Src/system_stm32f0xx.c **** * - The result of this function could be not correct when using fractional - 266:Src/system_stm32f0xx.c **** * value for HSE crystal. - 267:Src/system_stm32f0xx.c **** * - 268:Src/system_stm32f0xx.c **** * @param None - 269:Src/system_stm32f0xx.c **** * @retval None - 270:Src/system_stm32f0xx.c **** */ - 271:Src/system_stm32f0xx.c **** void SystemCoreClockUpdate (void) - 272:Src/system_stm32f0xx.c **** { - 151 .loc 1 272 0 - 152 .cfi_startproc - 153 @ args = 0, pretend = 0, frame = 0 - 154 @ frame_needed = 0, uses_anonymous_args = 0 - 155 0000 10B5 push {r4, lr} - 156 .LCFI2: - 157 .cfi_def_cfa_offset 8 - 158 .cfi_offset 4, -8 - 159 .cfi_offset 14, -4 - 160 .LVL3: - 273:Src/system_stm32f0xx.c **** uint32_t tmp = 0, pllmull = 0, pllsource = 0, predivfactor = 0; - 274:Src/system_stm32f0xx.c **** - 275:Src/system_stm32f0xx.c **** /* Get SYSCLK source -------------------------------------------------------*/ - 276:Src/system_stm32f0xx.c **** tmp = RCC->CFGR & RCC_CFGR_SWS; - 161 .loc 1 276 0 - 162 0002 254B ldr r3, .L18 - 163 0004 5A68 ldr r2, [r3, #4] - 164 0006 0C23 movs r3, #12 - ARM GAS /tmp/cc0sbyBo.s page 12 - - - 165 0008 1340 ands r3, r2 - 166 .LVL4: - 277:Src/system_stm32f0xx.c **** - 278:Src/system_stm32f0xx.c **** switch (tmp) - 167 .loc 1 278 0 - 168 000a 042B cmp r3, #4 - 169 000c 16D0 beq .L8 - 170 000e 082B cmp r3, #8 - 171 0010 18D0 beq .L9 - 172 0012 002B cmp r3, #0 - 173 0014 03D0 beq .L15 - 279:Src/system_stm32f0xx.c **** { - 280:Src/system_stm32f0xx.c **** case RCC_CFGR_SWS_HSI: /* HSI used as system clock */ - 281:Src/system_stm32f0xx.c **** SystemCoreClock = HSI_VALUE; - 282:Src/system_stm32f0xx.c **** break; - 283:Src/system_stm32f0xx.c **** case RCC_CFGR_SWS_HSE: /* HSE used as system clock */ - 284:Src/system_stm32f0xx.c **** SystemCoreClock = HSE_VALUE; - 285:Src/system_stm32f0xx.c **** break; - 286:Src/system_stm32f0xx.c **** case RCC_CFGR_SWS_PLL: /* PLL used as system clock */ - 287:Src/system_stm32f0xx.c **** /* Get PLL clock source and multiplication factor ----------------------*/ - 288:Src/system_stm32f0xx.c **** pllmull = RCC->CFGR & RCC_CFGR_PLLMUL; - 289:Src/system_stm32f0xx.c **** pllsource = RCC->CFGR & RCC_CFGR_PLLSRC; - 290:Src/system_stm32f0xx.c **** pllmull = ( pllmull >> 18) + 2; - 291:Src/system_stm32f0xx.c **** predivfactor = (RCC->CFGR2 & RCC_CFGR2_PREDIV) + 1; - 292:Src/system_stm32f0xx.c **** - 293:Src/system_stm32f0xx.c **** if (pllsource == RCC_CFGR_PLLSRC_HSE_PREDIV) - 294:Src/system_stm32f0xx.c **** { - 295:Src/system_stm32f0xx.c **** /* HSE used as PLL clock source : SystemCoreClock = HSE/PREDIV * PLLMUL */ - 296:Src/system_stm32f0xx.c **** SystemCoreClock = (HSE_VALUE/predivfactor) * pllmull; - 297:Src/system_stm32f0xx.c **** } - 298:Src/system_stm32f0xx.c **** #if defined(STM32F042x6) || defined(STM32F048xx) || defined(STM32F072xB) || defined(STM32F078xx) || - 299:Src/system_stm32f0xx.c **** else if (pllsource == RCC_CFGR_PLLSRC_HSI48_PREDIV) - 300:Src/system_stm32f0xx.c **** { - 301:Src/system_stm32f0xx.c **** /* HSI48 used as PLL clock source : SystemCoreClock = HSI48/PREDIV * PLLMUL */ - 302:Src/system_stm32f0xx.c **** SystemCoreClock = (HSI48_VALUE/predivfactor) * pllmull; - 303:Src/system_stm32f0xx.c **** } - 304:Src/system_stm32f0xx.c **** #endif /* STM32F042x6 || STM32F048xx || STM32F072xB || STM32F078xx || STM32F091xC || STM32F098xx */ - 305:Src/system_stm32f0xx.c **** else - 306:Src/system_stm32f0xx.c **** { - 307:Src/system_stm32f0xx.c **** #if defined(STM32F042x6) || defined(STM32F048xx) || defined(STM32F070x6) \ - 308:Src/system_stm32f0xx.c **** || defined(STM32F078xx) || defined(STM32F071xB) || defined(STM32F072xB) \ - 309:Src/system_stm32f0xx.c **** || defined(STM32F070xB) || defined(STM32F091xC) || defined(STM32F098xx) || defined(STM32F030xC) - 310:Src/system_stm32f0xx.c **** /* HSI used as PLL clock source : SystemCoreClock = HSI/PREDIV * PLLMUL */ - 311:Src/system_stm32f0xx.c **** SystemCoreClock = (HSI_VALUE/predivfactor) * pllmull; - 312:Src/system_stm32f0xx.c **** #else - 313:Src/system_stm32f0xx.c **** /* HSI used as PLL clock source : SystemCoreClock = HSI/2 * PLLMUL */ - 314:Src/system_stm32f0xx.c **** SystemCoreClock = (HSI_VALUE >> 1) * pllmull; - 315:Src/system_stm32f0xx.c **** #endif /* STM32F042x6 || STM32F048xx || STM32F070x6 || - 316:Src/system_stm32f0xx.c **** STM32F071xB || STM32F072xB || STM32F078xx || STM32F070xB || - 317:Src/system_stm32f0xx.c **** STM32F091xC || STM32F098xx || STM32F030xC */ - 318:Src/system_stm32f0xx.c **** } - 319:Src/system_stm32f0xx.c **** break; - 320:Src/system_stm32f0xx.c **** default: /* HSI used as system clock */ - 321:Src/system_stm32f0xx.c **** SystemCoreClock = HSI_VALUE; - 174 .loc 1 321 0 - 175 0016 214B ldr r3, .L18+4 - 176 .LVL5: - ARM GAS /tmp/cc0sbyBo.s page 13 - - - 177 0018 214A ldr r2, .L18+8 - 178 .LVL6: - 179 001a 1A60 str r2, [r3] - 322:Src/system_stm32f0xx.c **** break; - 180 .loc 1 322 0 - 181 001c 02E0 b .L11 - 182 .LVL7: - 183 .L15: - 281:Src/system_stm32f0xx.c **** break; - 184 .loc 1 281 0 - 185 001e 1F4B ldr r3, .L18+4 - 186 .LVL8: - 187 0020 1F4A ldr r2, .L18+8 - 188 .LVL9: - 189 0022 1A60 str r2, [r3] - 190 .LVL10: - 191 .L11: - 323:Src/system_stm32f0xx.c **** } - 324:Src/system_stm32f0xx.c **** /* Compute HCLK clock frequency ----------------*/ - 325:Src/system_stm32f0xx.c **** /* Get HCLK prescaler */ - 326:Src/system_stm32f0xx.c **** tmp = AHBPrescTable[((RCC->CFGR & RCC_CFGR_HPRE) >> 4)]; - 192 .loc 1 326 0 - 193 0024 1C4B ldr r3, .L18 - 194 0026 5A68 ldr r2, [r3, #4] - 195 0028 1209 lsrs r2, r2, #4 - 196 002a 0F23 movs r3, #15 - 197 002c 1340 ands r3, r2 - 198 002e 1D4A ldr r2, .L18+12 - 199 0030 D35C ldrb r3, [r2, r3] - 200 .LVL11: - 327:Src/system_stm32f0xx.c **** /* HCLK clock frequency */ - 328:Src/system_stm32f0xx.c **** SystemCoreClock >>= tmp; - 201 .loc 1 328 0 - 202 0032 1A4A ldr r2, .L18+4 - 203 0034 1168 ldr r1, [r2] - 204 0036 D940 lsrs r1, r1, r3 - 205 0038 1160 str r1, [r2] - 329:Src/system_stm32f0xx.c **** } - 206 .loc 1 329 0 - 207 @ sp needed - 208 003a 10BD pop {r4, pc} - 209 .LVL12: - 210 .L8: - 284:Src/system_stm32f0xx.c **** break; - 211 .loc 1 284 0 - 212 003c 174B ldr r3, .L18+4 - 213 .LVL13: - 214 003e 184A ldr r2, .L18+8 - 215 .LVL14: - 216 0040 1A60 str r2, [r3] - 285:Src/system_stm32f0xx.c **** case RCC_CFGR_SWS_PLL: /* PLL used as system clock */ - 217 .loc 1 285 0 - 218 0042 EFE7 b .L11 - 219 .LVL15: - 220 .L9: - 288:Src/system_stm32f0xx.c **** pllsource = RCC->CFGR & RCC_CFGR_PLLSRC; - 221 .loc 1 288 0 - ARM GAS /tmp/cc0sbyBo.s page 14 - - - 222 0044 144A ldr r2, .L18 - 223 0046 5068 ldr r0, [r2, #4] - 224 .LVL16: - 289:Src/system_stm32f0xx.c **** pllmull = ( pllmull >> 18) + 2; - 225 .loc 1 289 0 - 226 0048 5368 ldr r3, [r2, #4] - 227 .LVL17: - 228 004a C021 movs r1, #192 - 229 004c 4902 lsls r1, r1, #9 - 230 004e 0B40 ands r3, r1 - 231 .LVL18: - 290:Src/system_stm32f0xx.c **** predivfactor = (RCC->CFGR2 & RCC_CFGR2_PREDIV) + 1; - 232 .loc 1 290 0 - 233 0050 800C lsrs r0, r0, #18 - 234 .LVL19: - 235 0052 0F21 movs r1, #15 - 236 0054 0840 ands r0, r1 - 237 0056 841C adds r4, r0, #2 - 238 .LVL20: - 291:Src/system_stm32f0xx.c **** - 239 .loc 1 291 0 - 240 0058 D26A ldr r2, [r2, #44] - 241 005a 1140 ands r1, r2 - 242 005c 0131 adds r1, r1, #1 - 243 .LVL21: - 293:Src/system_stm32f0xx.c **** { - 244 .loc 1 293 0 - 245 005e 8022 movs r2, #128 - 246 0060 5202 lsls r2, r2, #9 - 247 0062 9342 cmp r3, r2 - 248 0064 0AD0 beq .L16 - 299:Src/system_stm32f0xx.c **** { - 249 .loc 1 299 0 - 250 0066 C022 movs r2, #192 - 251 0068 5202 lsls r2, r2, #9 - 252 006a 9342 cmp r3, r2 - 253 006c 0DD0 beq .L17 - 311:Src/system_stm32f0xx.c **** #else - 254 .loc 1 311 0 - 255 006e 0C48 ldr r0, .L18+8 - 256 0070 FFF7FEFF bl __aeabi_uidiv - 257 .LVL22: - 258 0074 6043 muls r0, r4 - 259 0076 094B ldr r3, .L18+4 - 260 0078 1860 str r0, [r3] - 261 007a D3E7 b .L11 - 262 .LVL23: - 263 .L16: - 296:Src/system_stm32f0xx.c **** } - 264 .loc 1 296 0 - 265 007c 0848 ldr r0, .L18+8 - 266 007e FFF7FEFF bl __aeabi_uidiv - 267 .LVL24: - 268 0082 6043 muls r0, r4 - 269 0084 054B ldr r3, .L18+4 - 270 0086 1860 str r0, [r3] - 271 0088 CCE7 b .L11 - ARM GAS /tmp/cc0sbyBo.s page 15 - - - 272 .LVL25: - 273 .L17: - 302:Src/system_stm32f0xx.c **** } - 274 .loc 1 302 0 - 275 008a 0748 ldr r0, .L18+16 - 276 008c FFF7FEFF bl __aeabi_uidiv - 277 .LVL26: - 278 0090 6043 muls r0, r4 - 279 0092 024B ldr r3, .L18+4 - 280 0094 1860 str r0, [r3] - 281 0096 C5E7 b .L11 - 282 .L19: - 283 .align 2 - 284 .L18: - 285 0098 00100240 .word 1073876992 - 286 009c 00000000 .word .LANCHOR0 - 287 00a0 00127A00 .word 8000000 - 288 00a4 00000000 .word .LANCHOR1 - 289 00a8 006CDC02 .word 48000000 - 290 .cfi_endproc - 291 .LFE38: - 293 .comm SysMemBootJump,4,4 - 294 .global APBPrescTable - 295 .global AHBPrescTable - 296 .global SystemCoreClock - 297 .section .data.SystemCoreClock,"aw",%progbits - 298 .align 2 - 299 .set .LANCHOR0,. + 0 - 302 SystemCoreClock: - 303 0000 00127A00 .word 8000000 - 304 .section .rodata.AHBPrescTable,"a",%progbits - 305 .align 2 - 306 .set .LANCHOR1,. + 0 - 309 AHBPrescTable: - 310 0000 00 .byte 0 - 311 0001 00 .byte 0 - 312 0002 00 .byte 0 - 313 0003 00 .byte 0 - 314 0004 00 .byte 0 - 315 0005 00 .byte 0 - 316 0006 00 .byte 0 - 317 0007 00 .byte 0 - 318 0008 01 .byte 1 - 319 0009 02 .byte 2 - 320 000a 03 .byte 3 - 321 000b 04 .byte 4 - 322 000c 06 .byte 6 - 323 000d 07 .byte 7 - 324 000e 08 .byte 8 - 325 000f 09 .byte 9 - 326 .section .rodata.APBPrescTable,"a",%progbits - 327 .align 2 - 330 APBPrescTable: - 331 0000 00 .byte 0 - 332 0001 00 .byte 0 - 333 0002 00 .byte 0 - 334 0003 00 .byte 0 - ARM GAS /tmp/cc0sbyBo.s page 16 - - - 335 0004 01 .byte 1 - 336 0005 02 .byte 2 - 337 0006 03 .byte 3 - 338 0007 04 .byte 4 - 339 .text - 340 .Letext0: - 341 .file 3 "/home/janhenrik/programme/gcc-arm-none-eabi-7-2018-q2-update/arm-none-eabi/include/machin - 342 .file 4 "/home/janhenrik/programme/gcc-arm-none-eabi-7-2018-q2-update/arm-none-eabi/include/sys/_s - 343 .file 5 "Drivers/CMSIS/Device/ST/STM32F0xx/Include/system_stm32f0xx.h" - 344 .file 6 "Drivers/CMSIS/Device/ST/STM32F0xx/Include/stm32f072xb.h" - 345 .file 7 "/home/janhenrik/programme/gcc-arm-none-eabi-7-2018-q2-update/arm-none-eabi/include/sys/lo - 346 .file 8 "/home/janhenrik/programme/gcc-arm-none-eabi-7-2018-q2-update/arm-none-eabi/include/sys/_t - 347 .file 9 "/home/janhenrik/programme/gcc-arm-none-eabi-7-2018-q2-update/lib/gcc/arm-none-eabi/7.3.1/ - 348 .file 10 "/home/janhenrik/programme/gcc-arm-none-eabi-7-2018-q2-update/arm-none-eabi/include/sys/r - ARM GAS /tmp/cc0sbyBo.s page 17 - - -DEFINED SYMBOLS - *ABS*:0000000000000000 system_stm32f0xx.c - /tmp/cc0sbyBo.s:16 .text.SystemInit:0000000000000000 $t - /tmp/cc0sbyBo.s:23 .text.SystemInit:0000000000000000 SystemInit - /tmp/cc0sbyBo.s:125 .text.SystemInit:0000000000000070 $d - *COM*:0000000000000004 SysMemBootJump - /tmp/cc0sbyBo.s:142 .text.SystemCoreClockUpdate:0000000000000000 $t - /tmp/cc0sbyBo.s:149 .text.SystemCoreClockUpdate:0000000000000000 SystemCoreClockUpdate - /tmp/cc0sbyBo.s:285 .text.SystemCoreClockUpdate:0000000000000098 $d - /tmp/cc0sbyBo.s:330 .rodata.APBPrescTable:0000000000000000 APBPrescTable - /tmp/cc0sbyBo.s:309 .rodata.AHBPrescTable:0000000000000000 AHBPrescTable - /tmp/cc0sbyBo.s:302 .data.SystemCoreClock:0000000000000000 SystemCoreClock - /tmp/cc0sbyBo.s:298 .data.SystemCoreClock:0000000000000000 $d - /tmp/cc0sbyBo.s:305 .rodata.AHBPrescTable:0000000000000000 $d - /tmp/cc0sbyBo.s:327 .rodata.APBPrescTable:0000000000000000 $d - -UNDEFINED SYMBOLS -__aeabi_uidiv diff --git a/firmware/build/system_stm32f0xx.o b/firmware/build/system_stm32f0xx.o deleted file mode 100644 index c62d212..0000000 Binary files a/firmware/build/system_stm32f0xx.o and /dev/null differ