Преглед изворни кода

1,修改i2c Delay_5us,示波器测量大约2.5us;
2,修改加速度传感器读取,目前完成1次xyz读取大约2ms;
3,修改按键检测周期为5ms,

dd пре 9 месеци
родитељ
комит
30a04e9358

+ 391 - 393
Debug/Exe/tail_light_stm8.hex

@@ -1,82 +1,82 @@
-:10800000820099E482009B2782009B2882009B29A2
-:1080100082009B2A82009B2B82009B2C82009B2D3E
-:1080200082009B2E82009B2F82009B1982009B194D
-:1080300082009B3082009B3182009B3282009B3306
-:1080400082009B3482009B1982009B1982009B3521
-:1080500082009B3682009B3782009B1982009B190D
-:108060008200986F8200940282009B3882009B19E4
-:1080700082009B1982009B1982009B1982009B1928
-:10808000CD8B385FBF0ABF08725C005FC6005F4AD5
+:10800000820099BF82009B0482009B0582009B0630
+:1080100082009B0782009B0882009B0982009B0ACA
+:1080200082009B0B82009B0C82009AF682009AF6DB
+:1080300082009B0D82009B0E82009B0F82009B1092
+:1080400082009B1182009AF682009AF682009B12AF
+:1080500082009B1382009B1482009AF682009AF69B
+:10806000820098E38200938482009B1582009AF636
+:1080700082009AF682009AF682009AF682009AF6B8
+:10808000CD8B2A5FBF0ABF08725C005EC6005E4AE5
 :10809000270F4A2603CC812B4A2603CC81D6CC82DB
-:1080A000A6725F005EA601CD95C7AE0015CD9824DF
-:1080B000CD8BA6C6005E4D261AAE0015CD9824CDF8
-:1080C0008B99CD865DBE00A300002605BE02A300ED
+:1080A000A6725F005CA601CD95A7AE0015CD980421
+:1080B000CD8BB2C6005C4D261AAE0015CD9804CD0E
+:1080C0008BA5CD865DBE00A300002605BE02A300E1
 :1080D0000B25E0CE0041BF025FBF00AE0025CD867C
-:1080E00045AE0025CD983C725C0060C60060A104DE
-:1080F000251CAE0025CD9824A602CD8772BE02CFE6
-:10810000003F5FCF00255FCF0027725F0060CE0089
-:108110003FA302C725063501005D200CCE003FA31A
-:1081200002B22404725F005DCC82A6725F005EA67C
-:1081300004CD95C7AE0015CD9824CD8BA6C6005EA4
-:108140004D261AAE0015CD9824CD8B99CD865DBEF7
+:1080E00045AE0025CD981C725C005FC6005FA10400
+:1080F000251CAE0025CD9804A602CD8772BE02CF06
+:10810000003F5FCF00255FCF0027725F005FCE008A
+:108110003FA302C725063501005B200CCE003FA31C
+:1081200002B22404725F005BCC82A6725F005CA680
+:1081300004CD95A7AE0015CD9804CD8BB2C6005CDA
+:108140004D261AAE0015CD9804CD8BA5CD865DBE0B
 :1081500000A300002605BE02A3000B25E0CE0041CF
 :10816000BF025FBF00AE0021CD8645AE0021CD9895
-:108170003C725C0061C60061A1022526AE0021CDE3
-:108180009824A601CD8772BE02CF003DAE040072D6
+:108170001C725C0060C60060A1022526AE0021CD05
+:108180009804A601CD8772BE02CF003DAE040072F6
 :10819000B0003DCF00395FCF00215FCF0023725F79
-:1081A0000061CE0039A3015E240E350100595FCF76
-:1081B00000515FCF0033201BCE0039A303B7251336
-:1081C000CE00515CCF0051CE0051A30015250472A2
-:1081D0005F0059CC82A6725F005EA605CD95C7AE42
-:1081E0000015CD9824CD8BA6C6005E4D261AAE0094
-:1081F00015CD9824CD8B99CD865DBE00A3000026B9
+:1081A0000060CE0039A3015E240E350100575FCF79
+:1081B000004F5FCF0033201BCE0039A303B7251338
+:1081C000CE004F5CCF004FCE004FA30015250472A8
+:1081D0005F0057CC82A6725F005CA605CD95A7AE66
+:1081E0000015CD9804CD8BB2C6005C4D261AAE00AA
+:1081F00015CD9804CD8BA5CD865DBE00A3000026CD
 :1082000005BE02A3000B25E0CE0041BF025FBF0008
-:10821000AE001DCD8645AE001DCD983C725C00625F
-:10822000C60062A108251CAE001DCD9824A603CD72
+:10821000AE001DCD8645AE001DCD981C725C006180
+:10822000C60061A108251CAE001DCD9804A603CD93
 :108230008772BE02CF003B5FCF001D5FCF001F7271
-:108240005F0062CE003BA3036C250635640063200B
-:108250002ACE003BA302AE2406725F0063201CCE30
+:108240005F0061CE003BA3036C250635640062200D
+:108250002ACE003BA302AE2406725F0062201CCE31
 :10826000003B1CFD53BF025FBF00CD8678000002BB
-:1082700018A60ACD8772B603C70063C60063C100A3
-:1082800014251CC600143F00B701C600635F977237
-:10829000B00000A300152E07C6005DA101260555FC
-:1082A000006300142000C6005FA1032504725F0074
-:1082B0005FC60012A10126105500140001550013DD
-:1082C0000000C6005DCD84BACC8B83CD8AE8B709A7
-:1082D000725F00125FCD9A933F08B608A106242A68
+:1082700018A60ACD8772B603C70062C60062C100A5
+:1082800014251CC600143F00B701C600625F977238
+:10829000B00000A300152E07C6005BA101260555FE
+:1082A000006200142000C6005EA1032504725F0076
+:1082B0005EC60012A10126105500140001550013DE
+:1082C0000000C6005BCD84BACC8B88CD8AEDB7099F
+:1082D000725F00125FCD9A6E3F08B608A106242A8D
 :1082E000A6025F01B6080262A100270C35FA000160
-:1082F0003F004FCD922320083F013F004FCD9223F6
-:10830000AE0190CD98E93C0820D03F08B60944441E
+:1082F0003F004FCD91A520083F013F004FCD91A5F4
+:10830000AE0190CD98A53C0820D03F08B609444462
 :10831000A401A1002603CC83AE354F0000A620CDDA
-:1083200098C935400000A622CD98C9A640B708CE0E
+:10832000988535400000A622CD9885A640B708CE96
 :108330000043A300642E0ECE0043A3FF9D2F06B67C
 :1083400008AA03B708CE0045A300642E0ECE004550
 :10835000A3FF9D2F06B608AA0CB708CE0047A300BE
 :10836000642E0ECE0047A3FF9D2F06B608AA30B795
 :1083700008B608A43FA1002619B608AA7FB7084589
-:108380000800A630CD98C935380000A632CD98C96E
-:108390002011450800A630CD98C935080000A63246
-:1083A000CD98C935050000A633CD98C920073F00F8
-:1083B000A620CD98C99BCD8CE9CD93A9CD9978AE57
-:1083C0005000CD99D135D00000A608AE5000CD8E1A
-:1083D00016AE5005CD99D135D00000A610AE50058F
-:1083E000CD8E1635D00000A620AE5005CD8E16AE2F
-:1083F000500ACD99D135D00000A620AE500ACD8EBE
-:108400001635C00000A640AE500ACD8E16AE500FF5
-:10841000CD99D135D00000A608AE500FCD8E163FB5
-:1084200000A620AE500FCD8E163F00A640AE500FD6
-:10843000CD8E163F00A610AE500ACD8E16CD9634C6
-:1084400035600000A610AE500FCD8E16350200002C
-:10845000A603CD914035200000A610AE500ACD8E67
-:1084600016B6094444A401A100271735600000A6F0
-:1084700080AE500ACD8E1635030000A602CD914085
-:10848000200935010000A602CD91409A8ECD878348
-:10849000CD9456350100125FCF00315FCF00355FBC
-:1084A000CF00335FCF0037725F005CAE0015CD9810
-:1084B00024AE0019CD983CCC8B8ECD8B38CD8AED77
+:108380000800A630CD988535380000A632CD9885F6
+:108390002011450800A630CD988535080000A6328A
+:1083A000CD988535050000A633CD988520073F0080
+:1083B000A620CD98859BCD8CF5CD932BCD9953AE32
+:1083C0005000CD99AC35D00000A608AE5000CD8E3F
+:1083D00022AE5005CD99AC35D00000A610AE5005A8
+:1083E000CD8E2235D00000A620AE5005CD8E22AE17
+:1083F000500ACD99AC35D00000A620AE500ACD8EE3
+:108400002235C00000A640AE500ACD8E22AE500FDD
+:10841000CD99AC35D00000A608AE500FCD8E223FCE
+:1084200000A620AE500FCD8E223F00A640AE500FCA
+:10843000CD8E223F00A610AE500ACD8E22CD9614CE
+:1084400035600000A610AE500FCD8E223502000020
+:10845000A603CD90C235200000A610AE500ACD8EE6
+:1084600022B6094444A401A100271735600000A6E4
+:1084700080AE500ACD8E2235030000A602CD90C2F8
+:10848000200935010000A602CD90C29A8ECD8783C7
+:10849000CD942B350100125FCF00315FCF00355FE7
+:1084A000CF00335FCF0037725F005AAE0015CD9812
+:1084B00004AE0019CD981CCC8B93CD8B2ACD8AF2BB
 :1084C0003B000EB70B45000C45010D3F093F083F2F
 :1084D0000EB60BA1012617B60DA16425115FCF00C2
-:1084E000373F0135FA00004FCD9223CC862CB60BD6
+:1084E000373F0135FA00004FCD91A5CC862CB60B55
 :1084F000A1012612A60AB709A614B70AA61EB70834
 :10850000A628B70E2058B60CA101262AB60DA10B3D
 :108510002412A602B709A606B70AA608B708A61429
@@ -85,23 +85,23 @@
 :10854000A614B70AA616B708A628B70E2010A602CA
 :10855000B709A632B70AA634B708A664B70ECE008C
 :10856000375CCF00375FB60997C300372547B60D94
-:10857000A10B240C3F013F00A6FACD9223CC862C00
-:10858000B60DA133240E3F0135A00000A6FACD920E
-:1085900023CC862CB60DA151240F35FA000135FAF3
-:1085A00000004FCD9223CC862C3F0135FA00004FBE
-:1085B000CD922320775FB60A97C30037250A3F0183
-:1085C0003F004FCD922320645FB60897C300372544
-:1085D00044B60DA10B240B3F013F00A6FACD922318
+:10857000A10B240C3F013F00A6FACD91A5CC862C7F
+:10858000B60DA133240E3F0135A00000A6FACD910F
+:10859000A5CC862CB60DA151240F35FA000135FA71
+:1085A00000004FCD91A5CC862C3F0135FA00004F3D
+:1085B000CD91A520775FB60A97C30037250A3F0102
+:1085C0003F004FCD91A520645FB60897C3003725C3
+:1085D00044B60DA10B240B3F013F00A6FACD91A597
 :1085E000204AB60DA133240D3F0135A00000A6FAA4
-:1085F000CD92232037B60DA151240E35FA00013556
-:10860000FA00004FCD922320233F0135FA00004F9E
-:10861000CD922320175FB60E97C30037250A3F017E
-:108620003F004FCD922320045FCF003732000ECCA5
-:108630008B87AE000020006C0326096C0226056CB7
+:1085F000CD91A52037B60DA151240E35FA000135D5
+:10860000FA00004FCD91A520233F0135FA00004F1D
+:10861000CD91A520175FB60E97C30037250A3F01FD
+:108620003F004FCD91A520045FCF003732000ECC24
+:108630008B8CAE000020006C0326096C0226056CB2
 :108640000126017C81B603EB03B703B602E902B74A
 :1086500002B601E901B701B600F9B70081AE000426
 :10866000B603E003B703B602E202B702B601E201C5
-:10867000B701B600F2B70081CD999E89FEBF04858F
+:10867000B701B600F2B70081CD997989FEBF0485B4
 :10868000EE02BF06B600BE06429FB700B601BE05A9
 :10869000429FBB00B700B602BE04429FBB00B700BA
 :1086A000B603BE03429FBB00B700B601BE06423F01
@@ -110,7 +110,7 @@
 :1086D00006423F0272BB0001BF0124023C00B60308
 :1086E000BE054272BB0001BF0124023C00B603BEBE
 :1086F00006423F0372BB0002BF022405BE005CBFFE
-:108700000081CD9991BE00261E90BE04260CBE02AB
+:108700000081CD996CBE00261E90BE04260CBE02D0
 :1087100090BE0665BF0290BF0681BF0445020645B4
 :108720000307BF00BF0281A6203D00260DBE01BF8A
 :10873000004503023F033A03A0085F905F992017AA
@@ -118,321 +118,319 @@
 :1087500024015A72B0000439033902390139004A40
 :108760002ADEBF0490BF06BE0053BF00BE0253BF47
 :108770000281AE00004D270A746601660266034A54
-:1087800026F6819BCD95FEA601CD9A074FCD966525
-:10879000A680CD9665350100004FCD934E35010082
-:1087A00000A607CD934E35010000A605CD934E35AA
-:1087B000010000A604CD934E35010000A613CD9311
-:1087C0004EAE5000CD99D1AE5005CD99D1AE500AE4
-:1087D000CD99D13F00A610AE500ACD8E16AE500FE7
-:1087E000CD99D135400000A610AE500FCD8E163F6A
-:1087F00000A620AE500FCD8E163F00A640AE500F03
-:10880000CD8E16CD8CE93F0090AE03E74FAE000F42
-:10881000CD9893352A00053F043F033F025F3F0197
-:1088200035110000A660CD928CA601CD9A233501AA
-:1088300000004FCD953FA601CD9729A601CD9A15F1
-:10884000CD93A9AE03E7A604CD99F7352200015FC9
-:1088500035110000A660CD9696A601CD9A4D352221
-:1088600000015F35110000A660CD96C7A601CD9A24
-:108870005B352200015F35110000A660CD96F8A699
-:1088800001CD9A69A601CD9A3FA601CD9A31CD9925
-:108890007835F90000A606CD9AA0A601CD9A85A646
-:1088A00001CD9AD135010000A601CD9945A601CD93
-:1088B0009A77CD96349A81CE004F5CCF004FCE0090
-:1088C0004FA3EA6025045FCF004FCD8F2EC7005A1B
-:1088D000C6005A4D2603CC89CEC6005AA1012652A5
-:1088E000C60058A101260635020058201EC60058B1
-:1088F000A1022606350300582011C60058A1032600
-:1089000006350400582004350100585FCF00315F60
-:10891000CF0033AE0015CD9824AE0029CD983C721F
-:108920005F005CAE0015CD9824AE0019CD983CCC0C
-:1089300089CAC6005AA102262FC60013A101260625
-:10894000725F0013200435010013AE0015CD98248A
-:10895000AE0029CD983C725F005CAE0015CD982426
-:10896000AE0019CD983C2062C6005AA103264BCE1A
-:108970000010A300012608AE0002CF0010201DCE7B
-:108980000010A300022608AE0003CF0010200DCE79
-:108990000010A3000326055F5CCF0010AE0015CDCC
-:1089A0009824AE0029CD983C725F005CAE0015CDD6
-:1089B0009824AE0019CD983C2010C6005AA10A2672
-:1089C00009A603CD82CB35010058725F005A81C6DB
-:1089D000005D4D2703CC8AD2AE0047BF0090AE00A9
-:1089E00045AE0043CD8EA4CE004372B00049BF0017
-:1089F000CE004372B00049CD9784A303E92E30CE58
-:108A0000004572B0004BBF00CE004572B0004BCDA8
-:108A10009784A303E92E18CE004772B0004DBF0023
-:108A2000CE004772B0004DCD9784A303E92F0CAE62
-:108A30000015CD9824AE0029CD983CC60013A101A5
-:108A4000262F90AE0029AE0015CD982493CD8660D8
-:108A5000BE00A300002605BE02A37531251FA60790
-:108A6000CD82CBAE0015CD9824AE0029CD983C2008
-:108A70000CAE0015CD9824AE0029CD983C90AE00E8
-:108A800019AE0015CD982493CD8660BE00A30000DA
-:108A90002605BE02A30BB925043501005CC6005CA7
-:108AA000A1012616CE004772B0004DA3FF9C2E0EEA
-:108AB0003501005B5FCF00352004725F005BCE00A4
-:108AC00043CF0049CE0045CF004BCE0047CF004DED
-:108AD0002010AE0015CD9824AE0029CD983C725FD1
-:108AE000005B8188A600200F88A608200A88A60CB3
-:108AF000200588A60E2000887B02887B02891E063E
-:108B00001F045F97FE1F06858481891E05BF002014
-:108B100015891E05BF08200E891E05BF0C20078978
-:108B20001E05BF0E20001E031F05855B028188A65F
-:108B300000200A88A604200588A608200088897BD2
-:108B400004887B04891E081F045F971F08FE1F0608
-:108B50001E085C5CFE1F08858481891E05BF001EFF
-:108B600007BF022016891E05BF041E07BF06200B83
-:108B7000891E05BF081E07BF0A20001E031F0785A8
-:108B80005B0481CD8B7081CD8B18CD8B7081CD8BAB
-:108B9000118145080C45090D814508044509054525
-:108BA0000A06450B078145000845010945020A45AB
-:108BB000030B81CD8B38CD8AED5202B70A45000BED
-:108BC0000F020F013F093F083F0D3F0C961C0002AA
-:108BD000B60ACD9758961C0001B60BCD97585FBFCB
-:108BE000087B013F00B701BE0801BA0101BA0001CC
-:108BF000BF08BE084F02BF08BE0802A4FF02A400BF
-:108C000002BF087B023F00B701BE0801BA0101BAEA
-:108C10000001BF08BE0802A48002A400025D271460
-:108C2000BE08CD97AABF08BE0802AAF002AA000299
-:108C3000BF082012BE08CD97AABF08BE0802A40F25
-:108C400002A4FF02BF08CD8B92BE0C5B02CC8B87C7
-:108C5000CD8AE8B708450009B609A10126163D08E6
-:108C60002612CE0033A30003250A5FCD9A935FCF6F
-:108C700000312072CE00315CCF0031CE0031A30331
-:108C8000E92426CE0010581C9AF7FEBF065FBF04E9
-:108C9000CE0031BF025FBF00CD8684CD87020000C9
-:108CA00003E8BE02CD9A93203DCE0031A307D12424
-:108CB0002ACE0010581C9AF7FEBF065FBF04AE070D
-:108CC000D072B00031BF025FBF00CD8684CD870275
-:108CD000000003E8BE02CD9A93200B5FCF0031CE97
-:108CE00000335CCF0033CC8B8E725F5250725F5278
-:108CF00051725F5252725F5253725F5254725F529E
-:108D000056725F525C725F525D35015258350152A6
-:108D1000593501525A3501525B725F525C725F5293
-:108D20005D725F5258725F5259725F525A725F524F
-:108D30005B725F525E725F525F725F5260725F522F
-:108D40006135FF526235FF5263725F5265725F5246
-:108D500066725F5267725F5268725F5269725F52E9
-:108D60006A725F526B725F526C725F526F35015262
-:108D700057725F526E725F526D725F5264725F52D1
-:108D80005581CD8AE83B000AB7083F09B609A1081A
-:108D90002439A610AE5005CD9AE3CD9B05B608A4A4
-:108DA00080A100270AA620AE5005CD9AEB2008A688
-:108DB00020AE5005CD9AE3B60848B708A610AE50CD
-:108DC00005CD9AEBCD9B053C0920C1A610AE500500
-:108DD000CD9AE3CD9B053F00A620AE5005CD8E1663
-:108DE000A610AE5005CD9AEB9D9DA620AE5005CDA8
-:108DF0009AF2B70ACD9B05A610AE5005CD9AE33581
-:108E0000D00000A620AE5005CD8E16CD9B05B60A2B
-:108E100032000ACC8B8E9093B701931C0004B601EC
-:108E200043F4931C0004F7B600A480A1002723B6E6
-:108E300000A410A100270890F6BA0190F72007B609
-:108E4000014390F490F7935C5CF6BA01935C5CF795
-:108E5000200B935C5CB60143F4935C5CF7B600A412
-:108E600040A100270E931C0003F6BA01931C0003D7
-:108E7000F7200D931C0003B60143F4931C0003F785
-:108E8000B600A420A100270E931C0004F6BA01939B
-:108E90001C0004F7200D931C0004B60143F4931C3E
-:108EA0000004F781CD8B38CD8AF23B000C89908984
-:108EB000CD8AE33F0F3F0E3F0B3F0A3F093F083586
-:108EC00004000CA604B70C3D0C273135290000A680
-:108ED00028CD8BB372BB000EBF0E352B0000A62A27
-:108EE000CD8BB372BB000ABF0A352D0000A62CCD76
-:108EF0008BB372BB0008BF083A0C20CBBE0E57578D
-:108F000090931E05BF0091CF00BE0A575790931E45
-:108F100003BF0091CF00BE08575790931E01BF00BA
-:108F200091CF005B0632000CCD8B1FCC8B83CD8A9A
-:108F3000E83F08CD8FB6B709C600544D27084A2729
-:108F40001A4A27402067B609A101260A5FCF002FE1
-:108F50003501005420034509082056B609A1012611
-:108F60000A5FCF002F350200542017CE002F5CCFB0
-:108F7000002FCE002FA3012C2508A601B708725F91
-:108F80000054202DB609A101260AA603B708725F76
-:108F900000542017CE002F5CCF002FCE002FA3014E
-:108FA0002C2508A602B708725F00542004725F00E7
-:108FB00054B608CC8B8ECD8AE83F09A610AE500F70
-:108FC000CD9AF2B708C600534D270B4A27164A27F9
-:108FD000324A2756205E3D0826085FCF002D350116
-:108FE000005320543D082615CE002D5CCF002DCE19
-:108FF000002DA3001E250A350200532004725F00D5
-:109000005320353D08270AA601B709725F00532097
-:1090100017CE002D5CCF002DCE002DA303E8250830
-:10902000A60AB70935030053200E3D082704725FD6
-:1090300000532004725F0053B609CC8B8ECD8B3861
-:10904000CD8AEDB70A45000BBF0845010C45020D5E
-:1090500092C608A101260BBE08CD97FE5FCF003156
-:10906000205CB60DA101260DCD9B0A5FCF00315FBC
-:10907000CF003320495FCF0035B60A4D270E4A276F
-:109080000D4A27164A271F4A27282032203055002C
-:10909000130000B60CCD92F220245500130000B648
-:1090A0000CCD8C5020185500130000B60CCD90C18B
-:1090B000200C5500130000B60CCD94F32000CC8B8F
-:1090C00087CD8AE8B708450009B609A10126163DF3
-:1090D000082612CE0033A30006250A5FCD9A935FBF
-:1090E000CF00312058CE00315CCF0031CE0031A30B
-:1090F000001A240DCE0010581C9AF7FECD9A93202A
-:109100003CCE0031A300C924065FCD9A93202ECE19
-:109110000031A300E2240DCE0010581C9AF7FECDBA
-:109120009A932019CE0031A3032124065FCD9A9390
-:10913000200B5FCF0031CE00335CCF0033CC8B8E61
-:10914000B701B6014D270E4A271D4A272E4A274050
-:109150004A27522062C650A0A4FCC750A0C650A007
-:10916000BA00C750A02050C650A0A4F3C750A0B664
-:10917000004848CA50A0C750A0203CC650A0A4CF69
-:10918000C750A0B6004EA4F0CA50A0C750A02027D8
-:10919000C650A0A43FC750A0B600CD9AFFCA50A0A9
-:1091A000C750A02012C650A1A4FCC750A1C650A110
-:1091B000BA00C750A1200081CD8AE83F09A620AEA1
-:1091C0005005CD9AEB3F00A620AE5005CD8E163F40
-:1091D00008B608A108243BB60948B709A610AE5046
-:1091E00005CD9AEB9D9DA620AE5005CD9AF2A1002B
-:1091F0002708B609AA01B7092006B609A4FEB709CF
-:10920000CD9B05A610AE5005CD9AE3CD9B053C083D
-:1092100020BF35D00000A620AE5005CD8E16B60971
-:10922000CC8B8E3B00093B000B3B000DB70D45007E
-:109230000B4501095FB60D97BF025FBF00CD867871
-:1092400000000320A608CD8772BE02CD9AB65FB695
-:109250000B97BF025FBF00CD867800000320A608F1
-:10926000CD8772BE02CD9ABF5FB60997BF025FBFBE
-:1092700000CD867800000320A608CD8772BE02CDFF
-:109280009AC832000D32000B32000981CD8AE8B74E
-:1092900006C6525CA4F0C7525CB603A40888B602A6
-:1092A000A402B70884BA0888B601A40488B600A44A
-:1092B00001B70984BA09B70884BA08CA525CC75210
-:1092C0005CC65258A48FBA06C75258C6526FA4FC47
-:1092D000C7526FB605A40288B604A401B70884BAC1
-:1092E00008CA526FC7526F9EC752659FC75266CC5D
-:1092F0008B8ECD8AE8B708450009B609A10126166C
-:109300003D082612CE0033A3000A250A5FCD9A93AA
-:109310005FCF00312035CE00315CCF0031CE00313F
-:10932000A30097240DCE0010581C9AF7FECD9A93F7
-:109330002019CE0031A301F524065FCD9A93200BAE
-:109340005FCF0031CE00335CCF0033CC8B8EB701C2
-:10935000B601A410A10026293D002712B601A40FD2
-:109360005F5CCD97A29FCA50C7C750C7203AB601CD
-:10937000A40F5F5CCD97A29F43C450C7C750C720BE
-:10938000273D002712B601A40F5F5CCD97A29FCAAC
-:1093900050CAC750CA2011B601A40F5F5CCD97A276
-:1093A0009F43C450CAC750CA81725F5300725F5353
-:1093B00003725F5305725F530A725F530B725F5300
-:1093C0000A725F530B725F5307725F5308725F53E9
-:1093D00009725F530C725F530D725F530E35FF536A
-:1093E0000F35FF5310725F5311725F5312725F5348
-:1093F00013725F5314725F5315725F5316725F538B
-:1094000004818A84A4BF8886CD8B2ECD8B33350111
-:109410000055AE0015CD9824BE00A39A7E2605BE49
-:1094200002A3C800260A5FCF00155FCF0017200FE8
-:10943000AE0015CD9824CD8632AE0015CD983C7285
-:109440005C0056725C0057CD984AA601CD9ADACDE1
-:109450008B65CD8B5A803B0008CD995F3F08B608DD
-:10946000A105243F35470000A620CD98C93F00A69E
-:1094700021CD98C93F00A622CD98C935880000A605
-:1094800023CD98C93F00A630CD98C93F00A632CD64
-:1094900098C93F00A633CD98C9AE0064CD98E93C89
-:1094A0000820BB32000881433A5C55736572735CD7
-:1094B0006865726F5C4465736B746F705C5461694E
-:1094C0006C6C696768745F436F64655C73746D3856
-:1094D0005F70726A5C636F64655F6961725C6C691E
-:1094E000625C7372635C73746D38735F74696D3141
-:1094F0002E6300CD8AE8B708450009B609A1012608
-:10950000163D082612CE0033A30003250A5FCD9A2C
-:10951000935FCF00312025CE0010581C9AF7FECD66
-:109520009A93CE00315CCF0031CE0031A303E92500
-:109530000B5FCF0031CE00335CCF0033CC8B8E4D30
-:1095400026103D0027067210525C203C7211525CBE
-:109550002036A10126103D0027067218525C2028F3
-:109560007219525C2022A10226103D0027067210BB
-:10957000525D20147211525D200E3D0027067218B4
-:10958000525D20047219525D81CD8783CD9456724D
-:109590005F00555FCF00155FCF0017C60055A101D2
-:1095A0002607725F0055CD88B7C60056A11425075F
-:1095B000725F0056CD89CFC60057A16425DD725F6A
-:1095C0000057CD808020D4B7013F00725F5401B6B0
-:1095D000014CC75400725F5402B6014C5F5CCD97DA
-:1095E000A29FC7540772105401721A54003F00B66C
-:1095F00000A16424043C0020F6721054018135015E
-:1096000050C0725F50C135E150C4725F50C535180B
-:1096100050C635FF50C735FF50CA725F50C8725FE1
-:1096200050C9720050C9FB725F50C9725F50CC7252
-:109630005F50CD81725F5400725F5401725F5402BB
-:10964000725F5403725F5406725F540735FF54080B
-:1096500035035409725F540A725F540B725F540EE3
-:10966000725F540F81B700B600A480A1002614C613
-:1096700050C6A4E7C750C6B600A418CA50C6C75003
-:10968000C62012C650C6A4F8C750C6B600A407CA62
-:1096900050C6C750C681B704C6530AA4FCC7530AB4
-:1096A000B601A40288B600A401B70384BA03CA5362
-:1096B0000AC7530AC65307A48FBA04C753079EC7E5
-:1096C00053119FC7531281B704C6530AA4CFC7537F
-:1096D0000AB601A42088B600A410B70384BA03CA4E
-:1096E000530AC7530AC65308A48FBA04C753089E27
-:1096F000C753139FC7531481B704C6530BA4FCC7A9
-:10970000530BB601A40288B600A401B70384BA03C0
-:10971000CA530BC7530BC65309A48FBA04C75309C6
-:109720009EC753159FC75316813B0008B7083D08D5
-:109730002714B608A101270EAE020FBF025FBF00BB
-:10974000AE94A7CD9B253D082706721E526D2004BE
-:10975000721F526D32000881CD8B38B70BBF08CD18
-:1097600097D7A630CD8D82B60BCD8D82CD97D7A65B
-:1097700031CD8D82CD91B8B70ACD9908B60A92C77E
-:1097800008CC8B8388895EB60142891E03B60042ED
-:1097900072FB014F02891E05B6014272FB015B0696
-:1097A00084814D2704584A26FC815454545481899D
-:1097B000FE9093855C5C905D271C89FEBF00855CF4
-:1097C0005C89FEBF02855C5C515A92D60092D7023A
-:1097D0005A2AF75120D981A620AE5005CD9AEBA682
-:1097E00010AE5005CD9AEBCD9B05A620AE5005CD11
-:1097F0009AE3CD9B05A610AE5005CD9AE381CD8AA4
-:10980000E8BF08CE00355CCF0035CE0035A30BB9DC
-:109810002408AE03E8CD9A9320075FCD9A93923F38
-:1098200008CC8B8E89FEBF001E01EE02BF0285812F
-:1098300089FEBF041E01EE02BF068581908990BE9D
-:1098400000FF90BE02EF02908581C60012A10126A2
-:109850001A55005D00025500590001AE005B55002D
-:10986000130000C60058CD903D2003CD9B0A81CD4A
-:109870008AE3721F5400C654045F975858C65405B3
-:109880003F00B70172BB0000CF00413501005ECD43
-:109890008B0A80B701909EC75262909FC752639E09
-:1098A000C752609FC75261C65250A48FBA01C752B7
-:1098B00050B600C75264819927004F0015000097E9
-:1098C000AF00059B1400100000CD8AE8B7084500E2
-:1098D00009CD97D7A630CD8D82B608CD8D82B60939
-:1098E000CD8D82CD9908CC8B8EBF0090BE0090BFED
-:1098F00000BE005ABF00905D270DAE03845D27EBCC
-:109900009D9D9D9D5A20F681A620AE5005CD9AE3DF
-:10991000A610AE5005CD9AEBCD9B05A620AE500506
-:10992000CD9AEBCD9B058189FE9093855C5C905D23
-:10993000271289FEBF00855C5C515A926F005A2A3B
-:10994000FA5120E381B7013D00270AC65343BA010B
-:10995000C753432009B60143C45343C7534381351A
-:10996000D00000A610AE5005CD8E1635D00000A652
-:1099700020AE5005CD8E1681725F5340725F534307
-:10998000725F5346725F534735FF5348725F5344CB
-:10999000811603931C0004511703CD9830811E03D8
-:1099A0001C00041F031D000481AE98B720065C5CF8
-:1099B00090FE90FD909390A398C926F281CD8AE8FD
-:1099C0005202BF08BE081F01965CA601CD9B39203C
-:1099D000F39093907F935C5C7F931C00037F931CB8
-:1099E00000047F81AE03FF94CD9B1C5D2703CD99BE
-:1099F000A9CD9589CC9B1FB700B600C7530E9EC753
-:109A0000530F9FC75310814D2706721050C020047A
-:109A1000721150C0814D27067210525020047211ED
-:109A20005250814D27067216525820047217525810
-:109A3000814D270672105300200472115300814D8E
-:109A40002706721E53002004721F5300814D270603
-:109A500072165307200472175307814D270672169A
-:109A60005308200472175308814D270672165309B4
-:109A7000200472175309814D2706721053402004A9
-:109A800072115340814D2706721E53402004721FED
-:109A9000534081CD8AE8BF08BE08CD9AADCC8B8EED
-:109AA000B701B601C75347B600C75348819EC75296
-:109AB000659FC75266819EC753119FC75312819EEF
-:109AC000C753139FC75314819EC753159FC753167F
-:109AD00081B700B60043C7534481B700B60043C7FF
-:109AE000534481B700B60043F4F781B700F6BA00DB
-:109AF000F781B7005CF6B4008100320096012C4873
-:109B0000484EA4F0819D9D9D9D815FCD9A93818952
-:109B100085CD99BD0002010164CC9B225F5C81CCA4
-:109B20009B0F9D20FD20FE80808080808080808033
-:0A9B3000808080808080808080812A
-:04000005000099E47A
+:1087800026F6819BCD95DEA601CD99E24FCD96458B
+:10879000A680CD9645350100004FCD92D035010021
+:1087A00000A607CD92D035010000A605CD92D035A8
+:1087B000010000A604CD92D035010000A613CD9291
+:1087C000D0AE5000CD99ACAE5005CD99ACAE500AAC
+:1087D000CD99AC3F00A610AE500ACD8E22AE500F00
+:1087E000CD99AC35400000A610AE500FCD8E223F83
+:1087F00000A620AE500FCD8E223F00A640AE500FF7
+:10880000CD8E22CD8CF53F0090AE03E74FAE000F2A
+:10881000CD984F352A00053F043F033F025F3F01DB
+:1088200035110000A660CD920EA601CD99FE35014E
+:1088300000004FCD9517A601CD9709A601CD99F05F
+:10884000CD932BAE03E7A604CD99D2352200015F6C
+:1088500035110000A660CD9676A601CD9A28352266
+:1088600000015F35110000A660CD96A7A601CD9A44
+:1088700036352200015F35110000A660CD96D8A6DE
+:1088800001CD9A44A601CD9A1AA601CD9A0CCD9994
+:108890005335F90000A606CD9A7BA601CD9A60A6B5
+:1088A00001CD9AAC35010000A601CD9920A601CDDD
+:1088B0009A52CD96149A81C6005B4D2703CC89D37A
+:1088C000AE0047BF0090AE0045AE0043CD93D8CE7A
+:1088D000004372B00049BF00CE004372B00049CDE2
+:1088E0009764A303E92E30CE004572B0004BBF0061
+:1088F000CE004572B0004BCD9764A303E92E18CE8D
+:10890000004772B0004DBF00CE004772B0004DCDA1
+:108910009764A303E92F0CAE0015CD9804AE00298F
+:10892000CD981CC60013A101262F90AE0029AE00E1
+:1089300015CD980493CD8660BE00A300002605BE29
+:1089400002A37531251FA607CD82CBAE0015CD98A9
+:1089500004AE0029CD981C200CAE0015CD9804AEB5
+:108960000029CD981C90AE0019AE0015CD98049347
+:10897000CD8660BE00A300002605BE02A313892594
+:10898000043501005AC6005AA101262BCE004772B9
+:10899000B0004DA3FF9C2E06725C005D2004725F48
+:1089A000005DC6005DA10B251635010059725F0000
+:1089B0005D5FCF00352008725F0059725F005DCEA9
+:1089C0000043CF0049CE0045CF004BCE0047CF003B
+:1089D0004D2014AE0015CD9804AE0029CD981C7220
+:1089E0005F0059725F005D81CD8EB0C70058C60030
+:1089F000584D2603CC8AECC60058A1012652C60069
+:108A000056A101260635020056201EC60056A102B8
+:108A10002606350300562011C60056A1032606354A
+:108A20000400562004350100565FCF00315FCF00AF
+:108A300033AE0015CD9804AE0029CD981C725F00AE
+:108A40005AAE0015CD9804AE0019CD981CCC8AE81A
+:108A5000C60058A102262FC60013A1012606725F88
+:108A60000013200435010013AE0015CD9804AE00AC
+:108A700029CD981C725F005AAE0015CD9804AE0047
+:108A800019CD981C2062C60058A103264BCE0010B9
+:108A9000A300012608AE0002CF0010201DCE00105A
+:108AA000A300022608AE0003CF0010200DCE001058
+:108AB000A3000326055F5CCF0010AE0015CD98041F
+:108AC000AE0029CD981C725F005AAE0015CD9804F7
+:108AD000AE0019CD981C2010C60058A10A2609A680
+:108AE00003CD82CB35010056725F00588188A608FD
+:108AF000200588A60C2000887B02887B02891E0640
+:108B00001F045F97FE1F06858481891E05BF08200C
+:108B100007891E05BF0C20001E031F05855B02810F
+:108B200088A600200F88A604200A88A608200588A9
+:108B3000A60C200088897B04887B04891E081F04FA
+:108B40005F971F08FE1F061E085C5CFE1F088584D9
+:108B500081891E05BF001E07BF022021891E05BF97
+:108B6000041E07BF062016891E05BF081E07BF0A80
+:108B7000200B891E05BF0C1E07BF0E20001E031F01
+:108B800007855B0481CD8B72CD8B6781CD8B11CD39
+:108B90008B6781CD8B0A8145080C45090D81450005
+:108BA0000E45010F81450804450905450A06450B98
+:108BB000078145000845010945020A45030B81CD9F
+:108BC0008B2ACD8AF25202B70A45000B0F020F0121
+:108BD0003F093F083F0D3F0C961C0002B60ACD9797
+:108BE00038961C0001B60BCD97385FBF087B013F5C
+:108BF00000B701BE0801BA0101BA0001BF08BE08F2
+:108C00004F02BF08BE0802A4FF02A40002BF087BF7
+:108C1000023F00B701BE0801BA0101BA0001BF0856
+:108C2000BE0802A48002A400025D2714BE08CD97EE
+:108C30008ABF08BE0802AAF002AA0002BF082012DA
+:108C4000BE08CD978ABF08BE0802A40F02A4FF0287
+:108C5000BF08CD8B97BE0C5B02CC8B8CCD8AEDB759
+:108C600008450009B609A10126163D082612CE00C6
+:108C700033A30003250A5FCD9A6E5FCF00312072C7
+:108C8000CE00315CCF0031CE0031A303E92426CEE3
+:108C90000010581C9AD9FEBF065FBF04CE0031BF3A
+:108CA000025FBF00CD8684CD8702000003E8BE02CC
+:108CB000CD9A6E203DCE0031A307D1242ACE0010DC
+:108CC000581C9AD9FEBF065FBF04AE07D072B00031
+:108CD00031BF025FBF00CD8684CD8702000003E86C
+:108CE000BE02CD9A6E200B5FCF0031CE00335CCF39
+:108CF0000033CC8B93725F5250725F5251725F524D
+:108D000052725F5253725F5254725F5256725F5288
+:108D10005C725F525D35015258350152593501522E
+:108D20005A3501525B725F525C725F525D725F52E4
+:108D300058725F5259725F525A725F525B725F5241
+:108D40005E725F525F725F5260725F526135FF52B6
+:108D50006235FF5263725F5265725F5266725F5294
+:108D600067725F5268725F5269725F526A725F52D5
+:108D70006B725F526C725F526F35015257725F5265
+:108D80006E725F526D725F5264725F525581CD8A0E
+:108D9000ED3B000AB7083F09B609A1082439A6101F
+:108DA000AE5005CD9ABECD9AC6B608A480A10027C4
+:108DB0000AA620AE5005CD9ACD2008A620AE5005BB
+:108DC000CD9ABEB60848B708A610AE5005CD9ACDCC
+:108DD000CD9AC63C0920C1A610AE5005CD9ABECD95
+:108DE0009AC63F00A620AE5005CD8E22A610AE50EA
+:108DF00005CD9ACD9D9DA620AE5005CD9AD4B70A3B
+:108E0000CD9AC6A610AE5005CD9ABE35D00000A6AC
+:108E100020AE5005CD8E22CD9AC6B60A32000ACCBD
+:108E20008B939093B701931C0004B60143F4931CF9
+:108E30000004F7B600A480A1002723B600A410A167
+:108E400000270890F6BA0190F72007B6014390F486
+:108E500090F7935C5CF6BA01935C5CF7200B935C33
+:108E60005CB60143F4935C5CF7B600A440A1002714
+:108E70000E931C0003F6BA01931C0003F7200D9318
+:108E80001C0003B60143F4931C0003F7B600A420B2
+:108E9000A100270E931C0004F6BA01931C0004F7EE
+:108EA000200D931C0004B60143F4931C0004F781C9
+:108EB000CD8AED3F08CD8F38B709C600524D27083F
+:108EC0004A271A4A27402067B609A101260A5FCF20
+:108ED000002F3501005220034509082056B609A18C
+:108EE00001260A5FCF002F350200522017CE002F37
+:108EF0005CCF002FCE002FA3003C2508A601B708A9
+:108F0000725F0052202DB609A101260AA603B708F8
+:108F1000725F00522017CE002F5CCF002FCE002FA3
+:108F2000A3003C2508A602B708725F005220047215
+:108F30005F0052B608CC8B93CD8AED3F09A610AEE8
+:108F4000500FCD9AD4B708C600514D270B4A2716AB
+:108F50004A27324A2756205E3D0826085FCF002D5B
+:108F60003501005120543D082615CE002D5CCF0060
+:108F70002DCE002DA30006250A35020051200472D3
+:108F80005F005120353D08270AA601B709725F002E
+:108F9000512017CE002D5CCF002DCE002DA300C890
+:108FA0002508A60AB70935030051200E3D082704FD
+:108FB000725F00512004725F0051B609CC8B93CDD3
+:108FC0008B2ACD8AF2B70A45000BBF0845010C4534
+:108FD000020D92C608A101260BBE08CD97DE5FCF19
+:108FE0000031205CB60DA101260DCD9AE75FCF00C0
+:108FF000315FCF003320495FCF0035B60A4D270ED1
+:109000004A270D4A27164A271F4A27282032203090
+:109010005500130000B60CCD9274202455001300A7
+:1090200000B60CCD8C5C20185500130000B60CCD9A
+:109030009043200C5500130000B60CCD94CB2000BB
+:10904000CC8B8CCD8AEDB708450009B609A1012665
+:10905000163D082612CE0033A30006250A5FCD9ADE
+:109060006E5FCF00312058CE00315CCF0031CE0092
+:1090700031A3001A240DCE0010581C9AD9FECD9AA7
+:109080006E203CCE0031A300C924065FCD9A6E202D
+:109090002ECE0031A300E2240DCE0010581C9AD928
+:1090A000FECD9A6E2019CE0031A3032124065FCD98
+:1090B0009A6E200B5FCF0031CE00335CCF0033CCF3
+:1090C0008B93B701B6014D270E4A271D4A272E4A1A
+:1090D00027404A27522062C650A0A4FCC750A0C611
+:1090E00050A0BA00C750A02050C650A0A4F3C7504B
+:1090F000A0B6004848CA50A0C750A0203CC650A007
+:10910000A4CFC750A0B6004EA4F0CA50A0C750A02C
+:109110002027C650A0A43FC750A0B600CD9AE1CAF0
+:1091200050A0C750A02012C650A1A4FCC750A1C691
+:1091300050A1BA00C750A1200081CD8AED3F09A6F9
+:1091400020AE5005CD9ACD3F00A620AE5005CD8E65
+:10915000223F08B608A108243BB60948B709A61063
+:10916000AE5005CD9ACD9D9DA620AE5005CD9AD48A
+:10917000A1002708B609AA01B7092006B609A4FE6E
+:10918000B709CD9AC6A610AE5005CD9ABECD9AC6E7
+:109190003C0820BF35D00000A620AE5005CD8E2261
+:1091A000B609CC8B933B00093B000B3B000DB70D80
+:1091B00045000B4501095FB60D97BF025FBF00CDAB
+:1091C000867800000320A608CD8772BE02CD9A9152
+:1091D0005FB60B97BF025FBF00CD8678000003200B
+:1091E000A608CD8772BE02CD9A9A5FB60997BF02D4
+:1091F0005FBF00CD867800000320A608CD8772BE31
+:1092000002CD9AA332000D32000B32000981CD8AC3
+:10921000EDB706C6525CA4F0C7525CB603A408883A
+:10922000B602A402B70884BA0888B601A40488B6B6
+:1092300000A401B70984BA09B70884BA08CA525C05
+:10924000C7525CC65258A48FBA06C75258C6526F4E
+:10925000A4FCC7526FB605A40288B604A401B708DF
+:1092600084BA08CA526FC7526F9EC752659FC752D1
+:1092700066CC8B93CD8AEDB708450009B609A101EC
+:1092800026163D082612CE0033A3000A250A5FCD1C
+:109290009A6E5FCF00312035CE00315CCF0031CEE9
+:1092A0000031A30097240DCE0010581C9AD9FECD92
+:1092B0009A6E2019CE0031A301F524065FCD9A6E77
+:1092C000200B5FCF0031CE00335CCF0033CC8B93CB
+:1092D000B701B601A410A10026293D002712B6014E
+:1092E000A40F5F5CCD97829FCA50C7C750C7203A72
+:1092F000B601A40F5F5CCD97829F43C450C7C7508F
+:10930000C720273D002712B601A40F5F5CCD9782CE
+:109310009FCA50CAC750CA2011B601A40F5F5CCDC6
+:1093200097829F43C450CAC750CA81725F5300726C
+:109330005F5303725F5305725F530A725F530B7280
+:109340005F530A725F530B725F5307725F53087269
+:109350005F5309725F530C725F530D725F530E358A
+:10936000FF530F35FF5310725F5311725F53127228
+:109370005F5313725F5314725F5315725F5316720B
+:109380005F5304818A84A4BF8886CD8B20CD8B2532
+:10939000AE0015CD9804BE00A39A7E2605BE02A39A
+:1093A000C800260A5FCF00155FCF0017200FAE0060
+:1093B00015CD9804CD8632AE0015CD981C725C0098
+:1093C00053725C0054725C0055CD982AA601CD9A68
+:1093D000B5CD8B5CCD8B5180CD8B2ACD8B2F8990D9
+:1093E00089CD8B9E3F0D3F0C3F0B3F0A3F093F0845
+:1093F00035290000A628CD8BBFBF0C352B0000A659
+:109400002ACD8BBFBF0A352D0000A62CCD8BBFBF48
+:10941000081E039093BE0C90FF1E019093BE0A900D
+:10942000FFBE0892CF0E5B04CC8B853B0008CD9924
+:109430003A3F08B608A105243F35470000A620CDD5
+:1094400098853F00A621CD98853F00A622CD98851E
+:1094500035880000A623CD98853F00A630CD98859D
+:109460003F00A632CD98853F00A633CD9885AE004B
+:1094700064CD98A53C0820BB32000881433A5C5576
+:10948000736572735C64645C446F63756D656E7460
+:10949000735C7461696C5F6C696768745F73746D29
+:1094A000385C7461696C5F6C696768745F73746D54
+:1094B000385F6961725C6C69625C7372635C73745F
+:1094C0006D38735F74696D312E6300CD8AEDB70816
+:1094D000450009B609A10126163D082612CE003323
+:1094E000A30003250A5FCD9A6E5FCF00312025CE01
+:1094F0000010581C9AD9FECD9A6ECE00315CCF0078
+:1095000031CE0031A303E9250B5FCF0031CE00330C
+:109510005CCF0033CC8B934D26103D002706721094
+:10952000525C203C7211525C2036A10126103D0095
+:1095300027067218525C20287219525C2022A10260
+:1095400026103D0027067210525D20147211525DE4
+:10955000200E3D0027067218525D20047219525DDC
+:1095600081CD8783CD942B5FCF00155FCF0017721D
+:109570005F0053725F0054725F0055C60053A1052F
+:109580002507725F0053CD89E8C60054A114250752
+:10959000725F0054CD88B7C60055A16425DD725FA7
+:1095A0000055CD808020D4B7013F00725F5401B6D2
+:1095B000014CC75400725F5402B6014C5F5CCD97FA
+:1095C000829FC7540772105401721A54003F00B6AC
+:1095D00000A16424043C0020F6721054018135017E
+:1095E00050C0725F50C135E150C4725F50C535182C
+:1095F00050C635FF50C735FF50CA725F50C8725F02
+:1096000050C9720050C9FB725F50C9725F50CC7272
+:109610005F50CD81725F5400725F5401725F5402DB
+:10962000725F5403725F5406725F540735FF54082B
+:1096300035035409725F540A725F540B725F540E03
+:10964000725F540F81B700B600A480A1002614C633
+:1096500050C6A4E7C750C6B600A418CA50C6C75023
+:10966000C62012C650C6A4F8C750C6B600A407CA82
+:1096700050C6C750C681B704C6530AA4FCC7530AD4
+:10968000B601A40288B600A401B70384BA03CA5382
+:109690000AC7530AC65307A48FBA04C753079EC705
+:1096A00053119FC7531281B704C6530AA4CFC7539F
+:1096B0000AB601A42088B600A410B70384BA03CA6E
+:1096C000530AC7530AC65308A48FBA04C753089E47
+:1096D000C753139FC7531481B704C6530BA4FCC7C9
+:1096E000530BB601A40288B600A401B70384BA03E1
+:1096F000CA530BC7530BC65309A48FBA04C75309E7
+:109700009EC753159FC75316813B0008B7083D08F5
+:109710002714B608A101270EAE020FBF025FBF00DB
+:10972000AE947CCD9B023D082706721E526D20042C
+:10973000721F526D32000881CD8B2AB70BBF08CD46
+:1097400097B7A630CD8D8EB60BCD8D8ECD97B7A6A3
+:1097500031CD8D8ECD913AB70ACD98C4B60A92C755
+:1097600008CC8B8888895EB60142891E03B6004208
+:1097700072FB014F02891E05B6014272FB015B06B6
+:1097800084814D2704584A26FC81545454548189BD
+:10979000FE9093855C5C905D271C89FEBF00855C14
+:1097A0005C89FEBF02855C5C515A92D60092D7025A
+:1097B0005A2AF75120D981A620AE5005CD9ACDA6C0
+:1097C00010AE5005CD9ACDCD9AC6A620AE5005CD8F
+:1097D0009ABECD9AC6A610AE5005CD9ABE81CD8A4E
+:1097E000EDBF08CE00355CCF0035CE0035A30BB9F8
+:1097F0002408AE03E8CD9A6E20075FCD9A6E923FA3
+:1098000008CC8B9389FEBF001E01EE02BF0285814A
+:1098100089FEBF041E01EE02BF068581908990BEBD
+:1098200000FF90BE02EF02908581C60012A10126C2
+:109830001A55005B00025500570001AE0059550053
+:10984000130000C60056CD8FBF2003CD9AE781B725
+:1098500001909EC75262909FC752639EC752609FFD
+:10986000C75261C65250A48FBA01C75250B600C742
+:109870005264819902004E00150000978F00059AEE
+:10988000F100100000CD8AEDB708450009CD97B76B
+:10989000A630CD8D8EB608CD8D8EB609CD8D8ECDF0
+:1098A00098C4CC8B93BF0090BE0090BF00BE005AFE
+:1098B000BF00905D270DAE03845D27EB9D9D9D9DB0
+:1098C0005A20F681A620AE5005CD9ABEA610AE5005
+:1098D00005CD9ACDCD9AC6A620AE5005CD9ACDCD58
+:1098E0009AC681721F5400C654045F975858CF001F
+:1098F00041C654055F9772BB0041CF00413501005E
+:109900005C8089FE9093855C5C905D271289FEBF28
+:1099100000855C5C515A926F005A2AFA5120E3810B
+:10992000B7013D00270AC65343BA01C75343200974
+:10993000B60143C45343C753438135D00000A6103A
+:10994000AE5005CD8E2235D00000A620AE5005CDFC
+:109950008E2281725F5340725F5343725F5346722F
+:109960005F534735FF5348725F5344811603931C7E
+:109970000004511703CD9810811E031C00041F031F
+:109980001D000481AE987320065C5C90FE90FD90F3
+:109990009390A3988526F281CD8AED5202BF08BE2E
+:1099A000081F01965CA601CD9B1620F39093907F33
+:1099B000935C5C7F931C00037F931C00047F81AE4B
+:1099C00003FF94CD9AF95D2703CD9984CD9561CCA1
+:1099D0009AFCB700B600C7530E9EC7530F9FC753DC
+:1099E00010814D2706721050C02004721150C081A2
+:1099F0004D270672105250200472115250814D278B
+:109A00000672165258200472175258814D2706725A
+:109A1000105300200472115300814D2706721E530B
+:109A2000002004721F5300814D2706721653072031
+:109A30000472175307814D270672165308200472CB
+:109A4000175308814D2706721653092004721753C5
+:109A500009814D2706721053402004721153408132
+:109A60004D2706721E53402004721F534081CD8A39
+:109A7000EDBF08BE08CD9A88CC8B93B701B601C75D
+:109A80005347B600C75348819EC752659FC7526669
+:109A9000819EC753119FC75312819EC753139FC7FF
+:109AA0005314819EC753159FC7531681B700B60044
+:109AB00043C7534481B700B60043C7534481B7003E
+:109AC000B60043F4F7819D9D9D9D9D9D81B700F655
+:109AD000BA00F781B7005CF6B4008100320096014D
+:109AE0002C48484EA4F0815FCD9A6E818985CD992E
+:109AF000980002010164CC9AFF5F5C81CC9AEC9DD6
+:109B000020FD20FE8080808080808080808080801A
+:079B100080808080808081CD
+:04000005000099BF9F
 :00000001FF

BIN
Debug/Exe/tail_light_stm8.out


+ 335 - 335
Debug/List/tail_light_stm8.map

@@ -1,35 +1,35 @@
 ###############################################################################
 #
-# IAR ELF Linker V3.10.1.201 for STM8                     07/Nov/2024  23:33:29
+# IAR ELF Linker V3.10.1.201 for STM8                     08/Nov/2024  09:45:52
 # Copyright 2010-2017 IAR Systems AB.
 #
 #    Output file  =  
-#        C:\Users\hero\Desktop\Taillight_Code\stm8_prj\code_iar\Debug\Exe\tail_light_stm8.out
+#        C:\Users\dd\Documents\tail_light_stm8\tail_light_stm8_iar\Debug\Exe\tail_light_stm8.out
 #    Map file     =  
-#        C:\Users\hero\Desktop\Taillight_Code\stm8_prj\code_iar\Debug\List\tail_light_stm8.map
+#        C:\Users\dd\Documents\tail_light_stm8\tail_light_stm8_iar\Debug\List\tail_light_stm8.map
 #    Command line =  
-#        -f C:\Users\hero\AppData\Local\Temp\EW9332.tmp
-#        (C:\Users\hero\Desktop\Taillight_Code\stm8_prj\code_iar\Debug\Obj\delay.o
-#        C:\Users\hero\Desktop\Taillight_Code\stm8_prj\code_iar\Debug\Obj\hw_init.o
-#        C:\Users\hero\Desktop\Taillight_Code\stm8_prj\code_iar\Debug\Obj\i2c_analog.o
-#        C:\Users\hero\Desktop\Taillight_Code\stm8_prj\code_iar\Debug\Obj\key.o
-#        C:\Users\hero\Desktop\Taillight_Code\stm8_prj\code_iar\Debug\Obj\led.o
-#        C:\Users\hero\Desktop\Taillight_Code\stm8_prj\code_iar\Debug\Obj\main.o
-#        C:\Users\hero\Desktop\Taillight_Code\stm8_prj\code_iar\Debug\Obj\sc7a20.o
-#        C:\Users\hero\Desktop\Taillight_Code\stm8_prj\code_iar\Debug\Obj\stm8s_adc1.o
-#        C:\Users\hero\Desktop\Taillight_Code\stm8_prj\code_iar\Debug\Obj\stm8s_clk.o
-#        C:\Users\hero\Desktop\Taillight_Code\stm8_prj\code_iar\Debug\Obj\stm8s_exti.o
-#        C:\Users\hero\Desktop\Taillight_Code\stm8_prj\code_iar\Debug\Obj\stm8s_gpio.o
-#        C:\Users\hero\Desktop\Taillight_Code\stm8_prj\code_iar\Debug\Obj\stm8s_it.o
-#        C:\Users\hero\Desktop\Taillight_Code\stm8_prj\code_iar\Debug\Obj\stm8s_rst.o
-#        C:\Users\hero\Desktop\Taillight_Code\stm8_prj\code_iar\Debug\Obj\stm8s_tim1.o
-#        C:\Users\hero\Desktop\Taillight_Code\stm8_prj\code_iar\Debug\Obj\stm8s_tim2.o
-#        C:\Users\hero\Desktop\Taillight_Code\stm8_prj\code_iar\Debug\Obj\stm8s_tim4.o
-#        C:\Users\hero\Desktop\Taillight_Code\stm8_prj\code_iar\Debug\Obj\tasks.o
+#        -f C:\Users\dd\AppData\Local\Temp\EW9F1A.tmp
+#        (C:\Users\dd\Documents\tail_light_stm8\tail_light_stm8_iar\Debug\Obj\delay.o
+#        C:\Users\dd\Documents\tail_light_stm8\tail_light_stm8_iar\Debug\Obj\hw_init.o
+#        C:\Users\dd\Documents\tail_light_stm8\tail_light_stm8_iar\Debug\Obj\i2c_analog.o
+#        C:\Users\dd\Documents\tail_light_stm8\tail_light_stm8_iar\Debug\Obj\key.o
+#        C:\Users\dd\Documents\tail_light_stm8\tail_light_stm8_iar\Debug\Obj\led.o
+#        C:\Users\dd\Documents\tail_light_stm8\tail_light_stm8_iar\Debug\Obj\main.o
+#        C:\Users\dd\Documents\tail_light_stm8\tail_light_stm8_iar\Debug\Obj\sc7a20.o
+#        C:\Users\dd\Documents\tail_light_stm8\tail_light_stm8_iar\Debug\Obj\stm8s_adc1.o
+#        C:\Users\dd\Documents\tail_light_stm8\tail_light_stm8_iar\Debug\Obj\stm8s_clk.o
+#        C:\Users\dd\Documents\tail_light_stm8\tail_light_stm8_iar\Debug\Obj\stm8s_exti.o
+#        C:\Users\dd\Documents\tail_light_stm8\tail_light_stm8_iar\Debug\Obj\stm8s_gpio.o
+#        C:\Users\dd\Documents\tail_light_stm8\tail_light_stm8_iar\Debug\Obj\stm8s_it.o
+#        C:\Users\dd\Documents\tail_light_stm8\tail_light_stm8_iar\Debug\Obj\stm8s_rst.o
+#        C:\Users\dd\Documents\tail_light_stm8\tail_light_stm8_iar\Debug\Obj\stm8s_tim1.o
+#        C:\Users\dd\Documents\tail_light_stm8\tail_light_stm8_iar\Debug\Obj\stm8s_tim2.o
+#        C:\Users\dd\Documents\tail_light_stm8\tail_light_stm8_iar\Debug\Obj\stm8s_tim4.o
+#        C:\Users\dd\Documents\tail_light_stm8\tail_light_stm8_iar\Debug\Obj\tasks.o
 #        --redirect _Printf=_PrintfFullNoMb --redirect _Scanf=_ScanfFullNoMb -o
-#        C:\Users\hero\Desktop\Taillight_Code\stm8_prj\code_iar\Debug\Exe\tail_light_stm8.out
+#        C:\Users\dd\Documents\tail_light_stm8\tail_light_stm8_iar\Debug\Exe\tail_light_stm8.out
 #        --map
-#        C:\Users\hero\Desktop\Taillight_Code\stm8_prj\code_iar\Debug\List\tail_light_stm8.map
+#        C:\Users\dd\Documents\tail_light_stm8\tail_light_stm8_iar\Debug\List\tail_light_stm8.map
 #        --config "C:\Program Files (x86)\IAR Systems\Embedded Workbench
 #        8.0\stm8\config\lnkstm8s003f3.icf" --config_def _CSTACK_SIZE=0x100
 #        --config_def _HEAP_SIZE=0x100 --entry __iar_program_start --debug_lib)
@@ -100,7 +100,7 @@ initialize by copy {
     .near.data       inited   0x000014     0x1  tasks.o [1]
                             - 0x000015     0x5
 
-"P2", part 2 of 2:                        0x4f
+"P2", part 2 of 2:                        0x4e
   .near.bss          zero     0x000015     0x4  main.o [1]
   .near.bss          zero     0x000019     0x4  tasks.o [1]
   .near.bss          zero     0x00001d     0x4  tasks.o [1]
@@ -125,12 +125,13 @@ initialize by copy {
   .near.bss          zero     0x00004b     0x2  tasks.o [1]
   .near.bss          zero     0x00004d     0x2  tasks.o [1]
   .near.bss          zero     0x00004f     0x2  tasks.o [1]
-  .near.bss          zero     0x000051     0x2  tasks.o [1]
-  .near.bss          zero     0x000053     0x1  key.o [1]
-  .near.bss          zero     0x000054     0x1  key.o [1]
+  .near.bss          zero     0x000051     0x1  key.o [1]
+  .near.bss          zero     0x000052     0x1  key.o [1]
+  .near.bss          zero     0x000053     0x1  main.o [1]
+  .near.bss          zero     0x000054     0x1  main.o [1]
   .near.bss          zero     0x000055     0x1  main.o [1]
-  .near.bss          zero     0x000056     0x1  main.o [1]
-  .near.bss          zero     0x000057     0x1  main.o [1]
+  .near.bss          zero     0x000056     0x1  tasks.o [1]
+  .near.bss          zero     0x000057     0x1  tasks.o [1]
   .near.bss          zero     0x000058     0x1  tasks.o [1]
   .near.bss          zero     0x000059     0x1  tasks.o [1]
   .near.bss          zero     0x00005a     0x1  tasks.o [1]
@@ -142,8 +143,7 @@ initialize by copy {
   .near.bss          zero     0x000060     0x1  tasks.o [1]
   .near.bss          zero     0x000061     0x1  tasks.o [1]
   .near.bss          zero     0x000062     0x1  tasks.o [1]
-  .near.bss          zero     0x000063     0x1  tasks.o [1]
-                            - 0x000064    0x4f
+                            - 0x000063    0x4e
 
 "A1":                                    0x100
   CSTACK                      0x000300   0x100  <Block>
@@ -155,121 +155,121 @@ initialize by copy {
     .intvec          const    0x008000    0x80  interrupt.o [4]
                             - 0x008080    0x80
 
-"P3-P5":                                0x1aba
+"P3-P5":                                0x1a97
   .near_func.text    ro code  0x008080   0x24b  tasks.o [1]
   .near_func.text    ro code  0x0082cb   0x1ef  tasks.o [1]
   .near_func.text    ro code  0x0084ba   0x178  led.o [1]
   .near_func.text    ro code  0x008632   0x151  long.o [4]
   .near_func.text    ro code  0x008783   0x134  hw_init.o [1]
-  .near_func.text    ro code  0x0088b7   0x118  tasks.o [1]
-  .near_func.text    ro code  0x0089cf   0x114  tasks.o [1]
-  .near_func.text    ro code  0x008ae3    0xd0  vreg_util.o [4]
-  .near_func.text    ro code  0x008bb3    0x9d  sc7a20.o [1]
-  .near_func.text    ro code  0x008c50    0x99  led.o [1]
-  .near_func.text    ro code  0x008ce9    0x99  stm8s_tim1.o [1]
-  .near_func.text    ro code  0x008d82    0x94  i2c_analog.o [1]
-  .near_func.text    ro code  0x008e16    0x8e  stm8s_gpio.o [1]
-  .near_func.text    ro code  0x008ea4    0x8a  sc7a20.o [1]
-  .near_func.text    ro code  0x008f2e    0x88  key.o [1]
-  .near_func.text    ro code  0x008fb6    0x87  key.o [1]
-  .near_func.text    ro code  0x00903d    0x84  tasks.o [1]
-  .near_func.text    ro code  0x0090c1    0x7f  led.o [1]
-  .near_func.text    ro code  0x009140    0x78  stm8s_exti.o [1]
-  .near_func.text    ro code  0x0091b8    0x6b  i2c_analog.o [1]
-  .near_func.text    ro code  0x009223    0x69  led.o [1]
-  .near_func.text    ro code  0x00928c    0x66  stm8s_tim1.o [1]
-  .near_func.text    ro code  0x0092f2    0x5c  led.o [1]
-  .near_func.text    ro code  0x00934e    0x5b  stm8s_clk.o [1]
-  .near_func.text    ro code  0x0093a9    0x59  stm8s_tim2.o [1]
-  .near_func.text    ro code  0x009402    0x54  stm8s_it.o [1]
-  .near_func.text    ro code  0x009456    0x51  sc7a20.o [1]
-  .near.rodata       const    0x0094a7    0x4c  stm8s_tim1.o [1]
-  .near_func.text    ro code  0x0094f3    0x4c  led.o [1]
-  .near_func.text    ro code  0x00953f    0x4a  stm8s_tim1.o [1]
-  .near_func.text    ro code  0x009589    0x3e  main.o [1]
-  .near_func.text    ro code  0x0095c7    0x37  hw_init.o [1]
-  .near_func.text    ro code  0x0095fe    0x36  stm8s_clk.o [1]
-  .near_func.text    ro code  0x009634    0x31  stm8s_adc1.o [1]
-  .near_func.text    ro code  0x009665    0x31  stm8s_clk.o [1]
-  .near_func.text    ro code  0x009696    0x31  stm8s_tim2.o [1]
-  .near_func.text    ro code  0x0096c7    0x31  stm8s_tim2.o [1]
-  .near_func.text    ro code  0x0096f8    0x31  stm8s_tim2.o [1]
-  .near_func.text    ro code  0x009729    0x2f  stm8s_tim1.o [1]
-  .near_func.text    ro code  0x009758    0x2c  sc7a20.o [1]
-  .near_func.text    ro code  0x009784    0x2b  short.o [4]
-  .near_func.text    ro code  0x0097af    0x28  init_small.o [4]
-  .near_func.text    ro code  0x0097d7    0x27  i2c_analog.o [1]
-  .near_func.text    ro code  0x0097fe    0x26  led.o [1]
-  .near_func.text    ro code  0x009824    0x26  long_util.o [4]
-  .near_func.text    ro code  0x00984a    0x25  tasks.o [1]
-  .near_func.text    ro code  0x00986f    0x24  stm8s_it.o [1]
-  .near_func.text    ro code  0x009893    0x24  stm8s_tim1.o [1]
-  .iar.init_table    const    0x0098b7    0x12  - Linker created -
-  .near_func.text    ro code  0x0098c9    0x20  sc7a20.o [1]
-  .near_func.text    ro code  0x0098e9    0x1f  delay.o [1]
-  .near_func.text    ro code  0x009908    0x1f  i2c_analog.o [1]
-  .near_func.text    ro code  0x009927    0x1e  init_small.o [4]
-  .near_func.text    ro code  0x009945    0x1a  stm8s_tim4.o [1]
-  .near_func.text    ro code  0x00995f    0x19  i2c_analog.o [1]
-  .near_func.text    ro code  0x009978    0x19  stm8s_tim4.o [1]
-  .near_func.text    ro code  0x009991    0x18  dc_util.o [4]
-  .near_func.text    ro code  0x0099a9    0x14  init.o [4]
-  .near_func.text    ro code  0x0099bd    0x14  __dbg_xxexit.o [3]
-  .near_func.text    ro code  0x0099d1    0x13  stm8s_gpio.o [1]
-  .near_func.text    ro code  0x0099e4    0x13  cstartup.o [4]
-  .near_func.text    ro code  0x0099f7    0x10  stm8s_tim2.o [1]
-  .near_func.text    ro code  0x009a07     0xe  stm8s_clk.o [1]
-  .near_func.text    ro code  0x009a15     0xe  stm8s_tim1.o [1]
-  .near_func.text    ro code  0x009a23     0xe  stm8s_tim1.o [1]
-  .near_func.text    ro code  0x009a31     0xe  stm8s_tim2.o [1]
-  .near_func.text    ro code  0x009a3f     0xe  stm8s_tim2.o [1]
-  .near_func.text    ro code  0x009a4d     0xe  stm8s_tim2.o [1]
-  .near_func.text    ro code  0x009a5b     0xe  stm8s_tim2.o [1]
-  .near_func.text    ro code  0x009a69     0xe  stm8s_tim2.o [1]
-  .near_func.text    ro code  0x009a77     0xe  stm8s_tim4.o [1]
-  .near_func.text    ro code  0x009a85     0xe  stm8s_tim4.o [1]
-  .near_func.text    ro code  0x009a93     0xd  led.o [1]
-  .near_func.text    ro code  0x009aa0     0xd  stm8s_tim4.o [1]
-  .near_func.text    ro code  0x009aad     0x9  stm8s_tim1.o [1]
-  .near_func.text    ro code  0x009ab6     0x9  stm8s_tim2.o [1]
-  .near_func.text    ro code  0x009abf     0x9  stm8s_tim2.o [1]
-  .near_func.text    ro code  0x009ac8     0x9  stm8s_tim2.o [1]
-  .near_func.text    ro code  0x009ad1     0x9  stm8s_tim4.o [1]
-  .near_func.text    ro code  0x009ada     0x9  stm8s_tim4.o [1]
-  .near_func.text    ro code  0x009ae3     0x8  stm8s_gpio.o [1]
-  .near_func.text    ro code  0x009aeb     0x7  stm8s_gpio.o [1]
-  .near_func.text    ro code  0x009af2     0x7  stm8s_gpio.o [1]
-  .near.rodata       const    0x009af9     0x6  led.o [1]
-  .near_func.text    ro code  0x009aff     0x6  char.o [4]
-  .near_func.text    ro code  0x009b05     0x5  i2c_analog.o [1]
-  .near_func.text    ro code  0x009b0a     0x5  led.o [1]
-  .near_func.text    ro code  0x009b0f     0x5  cexit.o [4]
-  Initializer bytes  const    0x009b14     0x5  <for P2-1>
-  .near_func.text    ro code  0x009b19     0x3  interrupt.o [4]
-  .near_func.text    ro code  0x009b1c     0x3  low_level_init.o [4]
-  .near_func.text    ro code  0x009b1f     0x3  exit.o [4]
-  .near_func.text    ro code  0x009b22     0x3  unhandled_exception.o [4]
-  .near_func.text    ro code  0x009b25     0x2  main.o [1]
-  .near_func.text    ro code  0x009b27     0x1  stm8s_it.o [1]
-  .near_func.text    ro code  0x009b28     0x1  stm8s_it.o [1]
-  .near_func.text    ro code  0x009b29     0x1  stm8s_it.o [1]
-  .near_func.text    ro code  0x009b2a     0x1  stm8s_it.o [1]
-  .near_func.text    ro code  0x009b2b     0x1  stm8s_it.o [1]
-  .near_func.text    ro code  0x009b2c     0x1  stm8s_it.o [1]
-  .near_func.text    ro code  0x009b2d     0x1  stm8s_it.o [1]
-  .near_func.text    ro code  0x009b2e     0x1  stm8s_it.o [1]
-  .near_func.text    ro code  0x009b2f     0x1  stm8s_it.o [1]
-  .near_func.text    ro code  0x009b30     0x1  stm8s_it.o [1]
-  .near_func.text    ro code  0x009b31     0x1  stm8s_it.o [1]
-  .near_func.text    ro code  0x009b32     0x1  stm8s_it.o [1]
-  .near_func.text    ro code  0x009b33     0x1  stm8s_it.o [1]
-  .near_func.text    ro code  0x009b34     0x1  stm8s_it.o [1]
-  .near_func.text    ro code  0x009b35     0x1  stm8s_it.o [1]
-  .near_func.text    ro code  0x009b36     0x1  stm8s_it.o [1]
-  .near_func.text    ro code  0x009b37     0x1  stm8s_it.o [1]
-  .near_func.text    ro code  0x009b38     0x1  stm8s_it.o [1]
-  .near_func.text    ro code  0x009b39     0x1  __dbg_break.o [3]
-                            - 0x009b3a  0x1aba
+  .near_func.text    ro code  0x0088b7   0x131  tasks.o [1]
+  .near_func.text    ro code  0x0089e8   0x105  tasks.o [1]
+  .near_func.text    ro code  0x008aed    0xd2  vreg_util.o [4]
+  .near_func.text    ro code  0x008bbf    0x9d  sc7a20.o [1]
+  .near_func.text    ro code  0x008c5c    0x99  led.o [1]
+  .near_func.text    ro code  0x008cf5    0x99  stm8s_tim1.o [1]
+  .near_func.text    ro code  0x008d8e    0x94  i2c_analog.o [1]
+  .near_func.text    ro code  0x008e22    0x8e  stm8s_gpio.o [1]
+  .near_func.text    ro code  0x008eb0    0x88  key.o [1]
+  .near_func.text    ro code  0x008f38    0x87  key.o [1]
+  .near_func.text    ro code  0x008fbf    0x84  tasks.o [1]
+  .near_func.text    ro code  0x009043    0x7f  led.o [1]
+  .near_func.text    ro code  0x0090c2    0x78  stm8s_exti.o [1]
+  .near_func.text    ro code  0x00913a    0x6b  i2c_analog.o [1]
+  .near_func.text    ro code  0x0091a5    0x69  led.o [1]
+  .near_func.text    ro code  0x00920e    0x66  stm8s_tim1.o [1]
+  .near_func.text    ro code  0x009274    0x5c  led.o [1]
+  .near_func.text    ro code  0x0092d0    0x5b  stm8s_clk.o [1]
+  .near_func.text    ro code  0x00932b    0x59  stm8s_tim2.o [1]
+  .near_func.text    ro code  0x009384    0x54  stm8s_it.o [1]
+  .near_func.text    ro code  0x0093d8    0x53  sc7a20.o [1]
+  .near_func.text    ro code  0x00942b    0x51  sc7a20.o [1]
+  .near.rodata       const    0x00947c    0x4f  stm8s_tim1.o [1]
+  .near_func.text    ro code  0x0094cb    0x4c  led.o [1]
+  .near_func.text    ro code  0x009517    0x4a  stm8s_tim1.o [1]
+  .near_func.text    ro code  0x009561    0x46  main.o [1]
+  .near_func.text    ro code  0x0095a7    0x37  hw_init.o [1]
+  .near_func.text    ro code  0x0095de    0x36  stm8s_clk.o [1]
+  .near_func.text    ro code  0x009614    0x31  stm8s_adc1.o [1]
+  .near_func.text    ro code  0x009645    0x31  stm8s_clk.o [1]
+  .near_func.text    ro code  0x009676    0x31  stm8s_tim2.o [1]
+  .near_func.text    ro code  0x0096a7    0x31  stm8s_tim2.o [1]
+  .near_func.text    ro code  0x0096d8    0x31  stm8s_tim2.o [1]
+  .near_func.text    ro code  0x009709    0x2f  stm8s_tim1.o [1]
+  .near_func.text    ro code  0x009738    0x2c  sc7a20.o [1]
+  .near_func.text    ro code  0x009764    0x2b  short.o [4]
+  .near_func.text    ro code  0x00978f    0x28  init_small.o [4]
+  .near_func.text    ro code  0x0097b7    0x27  i2c_analog.o [1]
+  .near_func.text    ro code  0x0097de    0x26  led.o [1]
+  .near_func.text    ro code  0x009804    0x26  long_util.o [4]
+  .near_func.text    ro code  0x00982a    0x25  tasks.o [1]
+  .near_func.text    ro code  0x00984f    0x24  stm8s_tim1.o [1]
+  .iar.init_table    const    0x009873    0x12  - Linker created -
+  .near_func.text    ro code  0x009885    0x20  sc7a20.o [1]
+  .near_func.text    ro code  0x0098a5    0x1f  delay.o [1]
+  .near_func.text    ro code  0x0098c4    0x1f  i2c_analog.o [1]
+  .near_func.text    ro code  0x0098e3    0x1f  stm8s_it.o [1]
+  .near_func.text    ro code  0x009902    0x1e  init_small.o [4]
+  .near_func.text    ro code  0x009920    0x1a  stm8s_tim4.o [1]
+  .near_func.text    ro code  0x00993a    0x19  i2c_analog.o [1]
+  .near_func.text    ro code  0x009953    0x19  stm8s_tim4.o [1]
+  .near_func.text    ro code  0x00996c    0x18  dc_util.o [4]
+  .near_func.text    ro code  0x009984    0x14  init.o [4]
+  .near_func.text    ro code  0x009998    0x14  __dbg_xxexit.o [3]
+  .near_func.text    ro code  0x0099ac    0x13  stm8s_gpio.o [1]
+  .near_func.text    ro code  0x0099bf    0x13  cstartup.o [4]
+  .near_func.text    ro code  0x0099d2    0x10  stm8s_tim2.o [1]
+  .near_func.text    ro code  0x0099e2     0xe  stm8s_clk.o [1]
+  .near_func.text    ro code  0x0099f0     0xe  stm8s_tim1.o [1]
+  .near_func.text    ro code  0x0099fe     0xe  stm8s_tim1.o [1]
+  .near_func.text    ro code  0x009a0c     0xe  stm8s_tim2.o [1]
+  .near_func.text    ro code  0x009a1a     0xe  stm8s_tim2.o [1]
+  .near_func.text    ro code  0x009a28     0xe  stm8s_tim2.o [1]
+  .near_func.text    ro code  0x009a36     0xe  stm8s_tim2.o [1]
+  .near_func.text    ro code  0x009a44     0xe  stm8s_tim2.o [1]
+  .near_func.text    ro code  0x009a52     0xe  stm8s_tim4.o [1]
+  .near_func.text    ro code  0x009a60     0xe  stm8s_tim4.o [1]
+  .near_func.text    ro code  0x009a6e     0xd  led.o [1]
+  .near_func.text    ro code  0x009a7b     0xd  stm8s_tim4.o [1]
+  .near_func.text    ro code  0x009a88     0x9  stm8s_tim1.o [1]
+  .near_func.text    ro code  0x009a91     0x9  stm8s_tim2.o [1]
+  .near_func.text    ro code  0x009a9a     0x9  stm8s_tim2.o [1]
+  .near_func.text    ro code  0x009aa3     0x9  stm8s_tim2.o [1]
+  .near_func.text    ro code  0x009aac     0x9  stm8s_tim4.o [1]
+  .near_func.text    ro code  0x009ab5     0x9  stm8s_tim4.o [1]
+  .near_func.text    ro code  0x009abe     0x8  stm8s_gpio.o [1]
+  .near_func.text    ro code  0x009ac6     0x7  i2c_analog.o [1]
+  .near_func.text    ro code  0x009acd     0x7  stm8s_gpio.o [1]
+  .near_func.text    ro code  0x009ad4     0x7  stm8s_gpio.o [1]
+  .near.rodata       const    0x009adb     0x6  led.o [1]
+  .near_func.text    ro code  0x009ae1     0x6  char.o [4]
+  .near_func.text    ro code  0x009ae7     0x5  led.o [1]
+  .near_func.text    ro code  0x009aec     0x5  cexit.o [4]
+  Initializer bytes  const    0x009af1     0x5  <for P2-1>
+  .near_func.text    ro code  0x009af6     0x3  interrupt.o [4]
+  .near_func.text    ro code  0x009af9     0x3  low_level_init.o [4]
+  .near_func.text    ro code  0x009afc     0x3  exit.o [4]
+  .near_func.text    ro code  0x009aff     0x3  unhandled_exception.o [4]
+  .near_func.text    ro code  0x009b02     0x2  main.o [1]
+  .near_func.text    ro code  0x009b04     0x1  stm8s_it.o [1]
+  .near_func.text    ro code  0x009b05     0x1  stm8s_it.o [1]
+  .near_func.text    ro code  0x009b06     0x1  stm8s_it.o [1]
+  .near_func.text    ro code  0x009b07     0x1  stm8s_it.o [1]
+  .near_func.text    ro code  0x009b08     0x1  stm8s_it.o [1]
+  .near_func.text    ro code  0x009b09     0x1  stm8s_it.o [1]
+  .near_func.text    ro code  0x009b0a     0x1  stm8s_it.o [1]
+  .near_func.text    ro code  0x009b0b     0x1  stm8s_it.o [1]
+  .near_func.text    ro code  0x009b0c     0x1  stm8s_it.o [1]
+  .near_func.text    ro code  0x009b0d     0x1  stm8s_it.o [1]
+  .near_func.text    ro code  0x009b0e     0x1  stm8s_it.o [1]
+  .near_func.text    ro code  0x009b0f     0x1  stm8s_it.o [1]
+  .near_func.text    ro code  0x009b10     0x1  stm8s_it.o [1]
+  .near_func.text    ro code  0x009b11     0x1  stm8s_it.o [1]
+  .near_func.text    ro code  0x009b12     0x1  stm8s_it.o [1]
+  .near_func.text    ro code  0x009b13     0x1  stm8s_it.o [1]
+  .near_func.text    ro code  0x009b14     0x1  stm8s_it.o [1]
+  .near_func.text    ro code  0x009b15     0x1  stm8s_it.o [1]
+  .near_func.text    ro code  0x009b16     0x1  __dbg_break.o [3]
+                            - 0x009b17  0x1a97
 
 
 *******************************************************************************
@@ -279,12 +279,12 @@ initialize by copy {
           Address   Size
           -------   ----
 Zero (__iar_zero_init2)
-    1 destination range, total size 0x4f:
-          0x000015  0x4f
+    1 destination range, total size 0x4e:
+          0x000015  0x4e
 
 Copy (__iar_copy_init2)
     1 source range, total size 0x5:
-          0x009b14   0x5
+          0x009af1   0x5
     1 destination range, total size 0x5:
           0x000010   0x5
 
@@ -296,25 +296,25 @@ Copy (__iar_copy_init2)
 
     Module                 ro code  ro data  rw data
     ------                 -------  -------  -------
-C:\Users\hero\Desktop\Taillight_Code\stm8_prj\code_iar\Debug\Obj: [1]
+C:\Users\dd\Documents\tail_light_stm8\tail_light_stm8_iar\Debug\Obj: [1]
     delay.o                     31
     hw_init.o                  363
-    i2c_analog.o               355
+    i2c_analog.o               357
     key.o                      271                 6
     led.o                      985        8       10
-    main.o                      64                 7
-    sc7a20.o                   452
+    main.o                      72                 7
+    sc7a20.o                   397
     stm8s_adc1.o                49
     stm8s_clk.o                208
     stm8s_exti.o               120
     stm8s_gpio.o               183
-    stm8s_it.o                 138
-    stm8s_tim1.o               449       76
+    stm8s_it.o                 133
+    stm8s_tim1.o               449       79
     stm8s_tim2.o               349
     stm8s_tim4.o               110
-    tasks.o                  1 807        3       61
+    tasks.o                  1 817        3       60
     ------------------------------------------------
-    Total:                   5 934       87       84
+    Total:                   5 894       90       83
 
 command line: [2]
     ------------------------------------------------
@@ -340,14 +340,14 @@ dlstm8smn.a: [4]
     low_level_init.o             3
     short.o                     43
     unhandled_exception.o        3
-    vreg_util.o                208
+    vreg_util.o                210
     vregs.o                                       16
     ------------------------------------------------
-    Total:                     782      128       16
+    Total:                     784      128       16
 
     Linker created                       18      256
 ----------------------------------------------------
-    Grand Total:             6 737      233      356
+    Grand Total:             6 699      236      355
 
 
 *******************************************************************************
@@ -356,8 +356,8 @@ dlstm8smn.a: [4]
 
 Entry                    Address   Size  Type      Object
 -----                    -------   ----  ----      ------
-.iar.init_table$$Base   0x0098b7          --   Gb  - Linker created -
-.iar.init_table$$Limit  0x0098c9          --   Gb  - Linker created -
+.iar.init_table$$Base   0x009873          --   Gb  - Linker created -
+.iar.init_table$$Limit  0x009885          --   Gb  - Linker created -
 ?add32_l0_l0_0x         0x008645         Code  Gb  long.o [4]
 ?b0                     0x000000         Data  Gb  vregs.o [4]
 ?b1                     0x000001         Data  Gb  vregs.o [4]
@@ -375,53 +375,53 @@ Entry                    Address   Size  Type      Object
 ?b7                     0x000007         Data  Gb  vregs.o [4]
 ?b8                     0x000008         Data  Gb  vregs.o [4]
 ?b9                     0x000009         Data  Gb  vregs.o [4]
-?dc32_l1                0x009991         Code  Gb  dc_util.o [4]
-?dc32_px                0x00999e         Code  Gb  dc_util.o [4]
+?dc32_l1                0x00996c         Code  Gb  dc_util.o [4]
+?dc32_px                0x009979         Code  Gb  dc_util.o [4]
 ?e0                     0x000001         Data  Gb  vregs.o [4]
 ?e1                     0x000005         Data  Gb  vregs.o [4]
 ?e2                     0x000009         Data  Gb  vregs.o [4]
 ?e3                     0x00000d         Data  Gb  vregs.o [4]
-?epilogue_l2            0x008b83         Code  Gb  vreg_util.o [4]
-?epilogue_l2_w6         0x008b87         Code  Gb  vreg_util.o [4]
-?epilogue_w4            0x008b8e         Code  Gb  vreg_util.o [4]
+?epilogue_l2            0x008b88         Code  Gb  vreg_util.o [4]
+?epilogue_l2_l3         0x008b85         Code  Gb  vreg_util.o [4]
+?epilogue_l2_w6         0x008b8c         Code  Gb  vreg_util.o [4]
+?epilogue_w4            0x008b93         Code  Gb  vreg_util.o [4]
 ?inc32_0x_0x            0x008637         Code  Gb  long.o [4]
 ?inc32_l0_l0            0x008632         Code  Gb  long.o [4]
 ?l0                     0x000000         Data  Gb  vregs.o [4]
 ?l1                     0x000004         Data  Gb  vregs.o [4]
 ?l2                     0x000008         Data  Gb  vregs.o [4]
 ?l3                     0x00000c         Data  Gb  vregs.o [4]
-?load32_0x_l0           0x00983c         Code  Gb  long_util.o [4]
-?load32_l0_0x           0x009824         Code  Gb  long_util.o [4]
-?load32_l1_0x           0x009830         Code  Gb  long_util.o [4]
-?mov_e1_e2              0x008b9c         Code  Gb  vreg_util.o [4]
-?mov_e2_e0              0x008ba9         Code  Gb  vreg_util.o [4]
-?mov_l1_l2              0x008b99         Code  Gb  vreg_util.o [4]
-?mov_l2_l0              0x008ba6         Code  Gb  vreg_util.o [4]
-?mov_w3_w5              0x008b9f         Code  Gb  vreg_util.o [4]
-?mov_w5_w1              0x008bac         Code  Gb  vreg_util.o [4]
-?mov_w6_w4              0x008b92         Code  Gb  vreg_util.o [4]
-?mul16_x_x_w0           0x009784         Code  Gb  short.o [4]
+?load32_0x_l0           0x00981c         Code  Gb  long_util.o [4]
+?load32_l0_0x           0x009804         Code  Gb  long_util.o [4]
+?load32_l1_0x           0x009810         Code  Gb  long_util.o [4]
+?mov_e1_e2              0x008ba8         Code  Gb  vreg_util.o [4]
+?mov_e2_e0              0x008bb5         Code  Gb  vreg_util.o [4]
+?mov_l1_l2              0x008ba5         Code  Gb  vreg_util.o [4]
+?mov_l2_l0              0x008bb2         Code  Gb  vreg_util.o [4]
+?mov_w3_w5              0x008bab         Code  Gb  vreg_util.o [4]
+?mov_w5_w1              0x008bb8         Code  Gb  vreg_util.o [4]
+?mov_w6_w4              0x008b97         Code  Gb  vreg_util.o [4]
+?mov_w7_w0              0x008b9e         Code  Gb  vreg_util.o [4]
+?mul16_x_x_w0           0x009764         Code  Gb  short.o [4]
 ?mul32_l0_l0_0x         0x00867b         Code  Gb  long.o [4]
 ?mul32_l0_l0_dl         0x008678         Code  Gb  long.o [4]
 ?mul32_l0_l0_l1         0x008684         Code  Gb  long.o [4]
-?pop_l0                 0x008b5a         Code  Gb  vreg_util.o [4]
-?pop_l1                 0x008b65         Code  Gb  vreg_util.o [4]
-?pop_l2                 0x008b70         Code  Gb  vreg_util.o [4]
-?pop_w0                 0x008b0a         Code  Gb  vreg_util.o [4]
-?pop_w4                 0x008b11         Code  Gb  vreg_util.o [4]
-?pop_w6                 0x008b18         Code  Gb  vreg_util.o [4]
-?pop_w7                 0x008b1f         Code  Gb  vreg_util.o [4]
-?push_l0                0x008b2e         Code  Gb  vreg_util.o [4]
-?push_l1                0x008b33         Code  Gb  vreg_util.o [4]
-?push_l2                0x008b38         Code  Gb  vreg_util.o [4]
-?push_w0                0x008ae3         Code  Gb  vreg_util.o [4]
-?push_w4                0x008ae8         Code  Gb  vreg_util.o [4]
-?push_w6                0x008aed         Code  Gb  vreg_util.o [4]
-?push_w7                0x008af2         Code  Gb  vreg_util.o [4]
-?sll16_x_x_a            0x0097a2         Code  Gb  short.o [4]
-?sll8_a_a_5             0x009b00         Code  Gb  char.o [4]
-?sll8_a_a_6             0x009aff         Code  Gb  char.o [4]
-?srl16_x_x_4            0x0097aa         Code  Gb  short.o [4]
+?pop_l0                 0x008b51         Code  Gb  vreg_util.o [4]
+?pop_l1                 0x008b5c         Code  Gb  vreg_util.o [4]
+?pop_l2                 0x008b67         Code  Gb  vreg_util.o [4]
+?pop_l3                 0x008b72         Code  Gb  vreg_util.o [4]
+?pop_w4                 0x008b0a         Code  Gb  vreg_util.o [4]
+?pop_w6                 0x008b11         Code  Gb  vreg_util.o [4]
+?push_l0                0x008b20         Code  Gb  vreg_util.o [4]
+?push_l1                0x008b25         Code  Gb  vreg_util.o [4]
+?push_l2                0x008b2a         Code  Gb  vreg_util.o [4]
+?push_l3                0x008b2f         Code  Gb  vreg_util.o [4]
+?push_w4                0x008aed         Code  Gb  vreg_util.o [4]
+?push_w6                0x008af2         Code  Gb  vreg_util.o [4]
+?sll16_x_x_a            0x009782         Code  Gb  short.o [4]
+?sll8_a_a_5             0x009ae2         Code  Gb  char.o [4]
+?sll8_a_a_6             0x009ae1         Code  Gb  char.o [4]
+?srl16_x_x_4            0x00978a         Code  Gb  short.o [4]
 ?srl32_0x_0x_a          0x008775         Code  Gb  long.o [4]
 ?srl32_l0_l0_a          0x008772         Code  Gb  long.o [4]
 ?sub32_l0_l0_0x         0x008660         Code  Gb  long.o [4]
@@ -437,18 +437,18 @@ Entry                    Address   Size  Type      Object
 ?w5                     0x00000a         Data  Gb  vregs.o [4]
 ?w6                     0x00000c         Data  Gb  vregs.o [4]
 ?w7                     0x00000e         Data  Gb  vregs.o [4]
-ADC1_DeInit             0x009634   0x31  Code  Gb  stm8s_adc1.o [1]
-ADC1_IRQHandler         0x00986f   0x24  Code  Gb  stm8s_it.o [1]
-ADC_CH_Init             0x0095c7   0x37  Code  Gb  hw_init.o [1]
+ADC1_DeInit             0x009614   0x31  Code  Gb  stm8s_adc1.o [1]
+ADC1_IRQHandler         0x0098e3   0x1f  Code  Gb  stm8s_it.o [1]
+ADC_CH_Init             0x0095a7   0x37  Code  Gb  hw_init.o [1]
 AD_Chg                  0x00003f    0x2  Data  Gb  tasks.o [1]
 AD_ChgFltSum            0x000025    0x4  Data  Gb  tasks.o [1]
-AD_FinishFlag           0x00005e    0x1  Data  Gb  tasks.o [1]
+AD_FinishFlag           0x00005c    0x1  Data  Gb  tasks.o [1]
 AD_Light                0x00003d    0x2  Data  Gb  tasks.o [1]
 AD_LightFltSum          0x000021    0x4  Data  Gb  tasks.o [1]
 AD_Value                0x000041    0x2  Data  Gb  tasks.o [1]
 AD_Vin                  0x00003b    0x2  Data  Gb  tasks.o [1]
 AD_VinFltSum            0x00001d    0x4  Data  Gb  tasks.o [1]
-AWU_IRQHandler          0x009b29    0x1  Code  Gb  stm8s_it.o [1]
+AWU_IRQHandler          0x009b06    0x1  Code  Gb  stm8s_it.o [1]
 AccAvg_x_New            0x000043    0x2  Data  Gb  tasks.o [1]
 AccAvg_x_Old            0x000049    0x2  Data  Gb  tasks.o [1]
 AccAvg_y_New            0x000045    0x2  Data  Gb  tasks.o [1]
@@ -456,185 +456,185 @@ AccAvg_y_Old            0x00004b    0x2  Data  Gb  tasks.o [1]
 AccAvg_z_New            0x000047    0x2  Data  Gb  tasks.o [1]
 AccAvg_z_Old            0x00004d    0x2  Data  Gb  tasks.o [1]
 Bat_Soc                 0x000014    0x1  Data  Gb  tasks.o [1]
-BreakFlag               0x00005b    0x1  Data  Gb  tasks.o [1]
+BreakFlag               0x000059    0x1  Data  Gb  tasks.o [1]
 Break_EnaDelayCnt       0x000019    0x4  Data  Gb  tasks.o [1]
-Break_EnaFlag           0x00005c    0x1  Data  Gb  tasks.o [1]
+Break_EnaFlag           0x00005a    0x1  Data  Gb  tasks.o [1]
 BrightlessLevel         0x000010    0x2  Data  Gb  led.o [1]
-BrightlessLevelPulse    0x009af9    0x6  Data  Gb  led.o [1]
-CLK_DeInit              0x0095fe   0x36  Code  Gb  stm8s_clk.o [1]
-CLK_HSICmd              0x009a07    0xe  Code  Gb  stm8s_clk.o [1]
-CLK_IRQHandler          0x009b2a    0x1  Code  Gb  stm8s_it.o [1]
+BrightlessLevelPulse    0x009adb    0x6  Data  Gb  led.o [1]
+CLK_DeInit              0x0095de   0x36  Code  Gb  stm8s_clk.o [1]
+CLK_HSICmd              0x0099e2    0xe  Code  Gb  stm8s_clk.o [1]
+CLK_IRQHandler          0x009b07    0x1  Code  Gb  stm8s_it.o [1]
 CLK_PeripheralClockConfig
-                        0x00934e   0x5b  Code  Gb  stm8s_clk.o [1]
-CLK_SYSCLKConfig        0x009665   0x31  Code  Gb  stm8s_clk.o [1]
+                        0x0092d0   0x5b  Code  Gb  stm8s_clk.o [1]
+CLK_SYSCLKConfig        0x009645   0x31  Code  Gb  stm8s_clk.o [1]
 CSTACK$$Base            0x000300          --   Gb  - Linker created -
 CSTACK$$Limit           0x000400          --   Gb  - Linker created -
-Chg_Flag                0x00005d    0x1  Data  Gb  tasks.o [1]
-Delay_5us               0x009b05    0x5  Code  Gb  i2c_analog.o [1]
-Delay_ms                0x0098e9   0x1f  Code  Gb  delay.o [1]
-EEPROM_EEC_IRQHandler   0x009b38    0x1  Code  Gb  stm8s_it.o [1]
-EXTI_PORTA_IRQHandler   0x009b2b    0x1  Code  Gb  stm8s_it.o [1]
-EXTI_PORTB_IRQHandler   0x009b2c    0x1  Code  Gb  stm8s_it.o [1]
-EXTI_PORTC_IRQHandler   0x009b2d    0x1  Code  Gb  stm8s_it.o [1]
-EXTI_PORTD_IRQHandler   0x009b2e    0x1  Code  Gb  stm8s_it.o [1]
-EXTI_PORTE_IRQHandler   0x009b2f    0x1  Code  Gb  stm8s_it.o [1]
+Chg_Flag                0x00005b    0x1  Data  Gb  tasks.o [1]
+Delay_5us               0x009ac6    0x7  Code  Gb  i2c_analog.o [1]
+Delay_ms                0x0098a5   0x1f  Code  Gb  delay.o [1]
+EEPROM_EEC_IRQHandler   0x009b15    0x1  Code  Gb  stm8s_it.o [1]
+EXTI_PORTA_IRQHandler   0x009b08    0x1  Code  Gb  stm8s_it.o [1]
+EXTI_PORTB_IRQHandler   0x009b09    0x1  Code  Gb  stm8s_it.o [1]
+EXTI_PORTC_IRQHandler   0x009b0a    0x1  Code  Gb  stm8s_it.o [1]
+EXTI_PORTD_IRQHandler   0x009b0b    0x1  Code  Gb  stm8s_it.o [1]
+EXTI_PORTE_IRQHandler   0x009b0c    0x1  Code  Gb  stm8s_it.o [1]
 EXTI_SetExtIntSensitivity
-                        0x009140   0x78  Code  Gb  stm8s_exti.o [1]
-Flag_1MS                0x000055    0x1  Data  Gb  main.o [1]
-GPIO_DeInit             0x0099d1   0x13  Code  Gb  stm8s_gpio.o [1]
-GPIO_Init               0x008e16   0x8e  Code  Gb  stm8s_gpio.o [1]
-GPIO_ReadInputPin       0x009af2    0x7  Code  Gb  stm8s_gpio.o [1]
-GPIO_WriteHigh          0x009aeb    0x7  Code  Gb  stm8s_gpio.o [1]
-GPIO_WriteLow           0x009ae3    0x8  Code  Gb  stm8s_gpio.o [1]
+                        0x0090c2   0x78  Code  Gb  stm8s_exti.o [1]
+GPIO_DeInit             0x0099ac   0x13  Code  Gb  stm8s_gpio.o [1]
+GPIO_Init               0x008e22   0x8e  Code  Gb  stm8s_gpio.o [1]
+GPIO_ReadInputPin       0x009ad4    0x7  Code  Gb  stm8s_gpio.o [1]
+GPIO_WriteHigh          0x009acd    0x7  Code  Gb  stm8s_gpio.o [1]
+GPIO_WriteLow           0x009abe    0x8  Code  Gb  stm8s_gpio.o [1]
 Global_Timing_Counter   0x000015    0x4  Data  Gb  main.o [1]
 HW_Init                 0x008783  0x134  Code  Gb  hw_init.o [1]
-I2CC_Init               0x00995f   0x19  Code  Gb  i2c_analog.o [1]
-I2C_IRQHandler          0x009b37    0x1  Code  Gb  stm8s_it.o [1]
-I2C_RecvByte            0x0091b8   0x6b  Code  Gb  i2c_analog.o [1]
-I2C_SendByte            0x008d82   0x94  Code  Gb  i2c_analog.o [1]
-I2C_Start               0x0097d7   0x27  Code  Gb  i2c_analog.o [1]
-I2C_Stop                0x009908   0x1f  Code  Gb  i2c_analog.o [1]
+I2CC_Init               0x00993a   0x19  Code  Gb  i2c_analog.o [1]
+I2C_IRQHandler          0x009b14    0x1  Code  Gb  stm8s_it.o [1]
+I2C_RecvByte            0x00913a   0x6b  Code  Gb  i2c_analog.o [1]
+I2C_SendByte            0x008d8e   0x94  Code  Gb  i2c_analog.o [1]
+I2C_Start               0x0097b7   0x27  Code  Gb  i2c_analog.o [1]
+I2C_Stop                0x0098c4   0x1f  Code  Gb  i2c_analog.o [1]
 INTVEC$$Base            0x008000          --   Gb  - Linker created -
 INTVEC$$Limit           0x008080          --   Gb  - Linker created -
-KeyPressResult          0x00005a    0x1  Data  Gb  tasks.o [1]
-LedChg_SetColor         0x009223   0x69  Code  Gb  led.o [1]
-LedMode                 0x000058    0x1  Data  Gb  tasks.o [1]
+KeyPressResult          0x000058    0x1  Data  Gb  tasks.o [1]
+LedChg_SetColor         0x0091a5   0x69  Code  Gb  led.o [1]
+LedMode                 0x000056    0x1  Data  Gb  tasks.o [1]
 LedSoc_PeriodCnt        0x000037    0x2  Data  Gb  led.o [1]
 Led_BatSoc_Display      0x0084ba  0x178  Code  Gb  led.o [1]
-Led_ModeProcess         0x00903d   0x84  Code  Gb  tasks.o [1]
-Light_DisplayBreak      0x0097fe   0x26  Code  Gb  led.o [1]
-Light_DisplayMode1      0x0092f2   0x5c  Code  Gb  led.o [1]
-Light_DisplayMode2      0x008c50   0x99  Code  Gb  led.o [1]
-Light_DisplayMode3      0x0090c1   0x7f  Code  Gb  led.o [1]
-Light_DisplayMode4      0x0094f3   0x4c  Code  Gb  led.o [1]
-Light_DisplayOff        0x009b0a    0x5  Code  Gb  led.o [1]
-Light_EN                0x000059    0x1  Data  Gb  tasks.o [1]
+Led_ModeProcess         0x008fbf   0x84  Code  Gb  tasks.o [1]
+Light_DisplayBreak      0x0097de   0x26  Code  Gb  led.o [1]
+Light_DisplayMode1      0x009274   0x5c  Code  Gb  led.o [1]
+Light_DisplayMode2      0x008c5c   0x99  Code  Gb  led.o [1]
+Light_DisplayMode3      0x009043   0x7f  Code  Gb  led.o [1]
+Light_DisplayMode4      0x0094cb   0x4c  Code  Gb  led.o [1]
+Light_DisplayOff        0x009ae7    0x5  Code  Gb  led.o [1]
+Light_EN                0x000057    0x1  Data  Gb  tasks.o [1]
 Light_Level             0x000039    0x2  Data  Gb  tasks.o [1]
 Light_ModeBreak_PeriodCnt
                         0x000035    0x2  Data  Gb  led.o [1]
 Light_Mode_Count        0x000033    0x2  Data  Gb  led.o [1]
 Light_Mode_PeriodCnt    0x000031    0x2  Data  Gb  led.o [1]
-Light_SetBrightless     0x009a93    0xd  Code  Gb  led.o [1]
+Light_SetBrightless     0x009a6e    0xd  Code  Gb  led.o [1]
 OnFlag                  0x000012    0x1  Data  Gb  tasks.o [1]
-PeriodCnt_100ms         0x000057    0x1  Data  Gb  main.o [1]
-PeriodCnt_1ms           0x00004f    0x2  Data  Gb  tasks.o [1]
-PeriodCnt_20ms          0x000056    0x1  Data  Gb  main.o [1]
+PeriodCnt_100ms         0x000055    0x1  Data  Gb  main.o [1]
+PeriodCnt_20ms          0x000054    0x1  Data  Gb  main.o [1]
+PeriodCnt_5ms           0x000053    0x1  Data  Gb  main.o [1]
 Power_Off               0x0082cb  0x1ef  Code  Gb  tasks.o [1]
-Region$$Table$$Base     0x0098b7          --   Gb  - Linker created -
-Region$$Table$$Limit    0x0098c9          --   Gb  - Linker created -
-SC7A20_GetInfo          0x008ea4   0x8a  Code  Gb  sc7a20.o [1]
-SC7A20_Get_ACCD         0x008bb3   0x9d  Code  Gb  sc7a20.o [1]
-SC7A20_Init             0x009456   0x51  Code  Gb  sc7a20.o [1]
-SC7A20_Read_Byte        0x009758   0x2c  Code  Gb  sc7a20.o [1]
-SC7A20_Write_Byte       0x0098c9   0x20  Code  Gb  sc7a20.o [1]
-SPI_IRQHandler          0x009b30    0x1  Code  Gb  stm8s_it.o [1]
+Region$$Table$$Base     0x009873          --   Gb  - Linker created -
+Region$$Table$$Limit    0x009885          --   Gb  - Linker created -
+SC7A20_GetInfo          0x0093d8   0x53  Code  Gb  sc7a20.o [1]
+SC7A20_Get_ACCD         0x008bbf   0x9d  Code  Gb  sc7a20.o [1]
+SC7A20_Init             0x00942b   0x51  Code  Gb  sc7a20.o [1]
+SC7A20_Read_Byte        0x009738   0x2c  Code  Gb  sc7a20.o [1]
+SC7A20_Write_Byte       0x009885   0x20  Code  Gb  sc7a20.o [1]
+SPI_IRQHandler          0x009b0d    0x1  Code  Gb  stm8s_it.o [1]
 ShakeTimeCnt            0x000029    0x4  Data  Gb  tasks.o [1]
 SmartMode               0x000013    0x1  Data  Gb  tasks.o [1]
 TIM1_CAP_COM_IRQHandler
-                        0x009b32    0x1  Code  Gb  stm8s_it.o [1]
-TIM1_CCxCmd             0x00953f   0x4a  Code  Gb  stm8s_tim1.o [1]
-TIM1_Cmd                0x009a15    0xe  Code  Gb  stm8s_tim1.o [1]
-TIM1_CtrlPWMOutputs     0x009729   0x2f  Code  Gb  stm8s_tim1.o [1]
-TIM1_DeInit             0x008ce9   0x99  Code  Gb  stm8s_tim1.o [1]
-TIM1_OC1Init            0x00928c   0x66  Code  Gb  stm8s_tim1.o [1]
-TIM1_OC1PreloadConfig   0x009a23    0xe  Code  Gb  stm8s_tim1.o [1]
-TIM1_SetCompare1        0x009aad    0x9  Code  Gb  stm8s_tim1.o [1]
-TIM1_TimeBaseInit       0x009893   0x24  Code  Gb  stm8s_tim1.o [1]
+                        0x009b0f    0x1  Code  Gb  stm8s_it.o [1]
+TIM1_CCxCmd             0x009517   0x4a  Code  Gb  stm8s_tim1.o [1]
+TIM1_Cmd                0x0099f0    0xe  Code  Gb  stm8s_tim1.o [1]
+TIM1_CtrlPWMOutputs     0x009709   0x2f  Code  Gb  stm8s_tim1.o [1]
+TIM1_DeInit             0x008cf5   0x99  Code  Gb  stm8s_tim1.o [1]
+TIM1_OC1Init            0x00920e   0x66  Code  Gb  stm8s_tim1.o [1]
+TIM1_OC1PreloadConfig   0x0099fe    0xe  Code  Gb  stm8s_tim1.o [1]
+TIM1_SetCompare1        0x009a88    0x9  Code  Gb  stm8s_tim1.o [1]
+TIM1_TimeBaseInit       0x00984f   0x24  Code  Gb  stm8s_tim1.o [1]
 TIM1_UPD_OVF_TRG_BRK_IRQHandler
-                        0x009b31    0x1  Code  Gb  stm8s_it.o [1]
-TIM2_ARRPreloadConfig   0x009a3f    0xe  Code  Gb  stm8s_tim2.o [1]
+                        0x009b0e    0x1  Code  Gb  stm8s_it.o [1]
+TIM2_ARRPreloadConfig   0x009a1a    0xe  Code  Gb  stm8s_tim2.o [1]
 TIM2_CAP_COM_IRQHandler
-                        0x009b34    0x1  Code  Gb  stm8s_it.o [1]
-TIM2_Cmd                0x009a31    0xe  Code  Gb  stm8s_tim2.o [1]
-TIM2_DeInit             0x0093a9   0x59  Code  Gb  stm8s_tim2.o [1]
-TIM2_OC1Init            0x009696   0x31  Code  Gb  stm8s_tim2.o [1]
-TIM2_OC1PreloadConfig   0x009a4d    0xe  Code  Gb  stm8s_tim2.o [1]
-TIM2_OC2Init            0x0096c7   0x31  Code  Gb  stm8s_tim2.o [1]
-TIM2_OC2PreloadConfig   0x009a5b    0xe  Code  Gb  stm8s_tim2.o [1]
-TIM2_OC3Init            0x0096f8   0x31  Code  Gb  stm8s_tim2.o [1]
-TIM2_OC3PreloadConfig   0x009a69    0xe  Code  Gb  stm8s_tim2.o [1]
-TIM2_SetCompare1        0x009ab6    0x9  Code  Gb  stm8s_tim2.o [1]
-TIM2_SetCompare2        0x009abf    0x9  Code  Gb  stm8s_tim2.o [1]
-TIM2_SetCompare3        0x009ac8    0x9  Code  Gb  stm8s_tim2.o [1]
-TIM2_TimeBaseInit       0x0099f7   0x10  Code  Gb  stm8s_tim2.o [1]
+                        0x009b11    0x1  Code  Gb  stm8s_it.o [1]
+TIM2_Cmd                0x009a0c    0xe  Code  Gb  stm8s_tim2.o [1]
+TIM2_DeInit             0x00932b   0x59  Code  Gb  stm8s_tim2.o [1]
+TIM2_OC1Init            0x009676   0x31  Code  Gb  stm8s_tim2.o [1]
+TIM2_OC1PreloadConfig   0x009a28    0xe  Code  Gb  stm8s_tim2.o [1]
+TIM2_OC2Init            0x0096a7   0x31  Code  Gb  stm8s_tim2.o [1]
+TIM2_OC2PreloadConfig   0x009a36    0xe  Code  Gb  stm8s_tim2.o [1]
+TIM2_OC3Init            0x0096d8   0x31  Code  Gb  stm8s_tim2.o [1]
+TIM2_OC3PreloadConfig   0x009a44    0xe  Code  Gb  stm8s_tim2.o [1]
+TIM2_SetCompare1        0x009a91    0x9  Code  Gb  stm8s_tim2.o [1]
+TIM2_SetCompare2        0x009a9a    0x9  Code  Gb  stm8s_tim2.o [1]
+TIM2_SetCompare3        0x009aa3    0x9  Code  Gb  stm8s_tim2.o [1]
+TIM2_TimeBaseInit       0x0099d2   0x10  Code  Gb  stm8s_tim2.o [1]
 TIM2_UPD_OVF_BRK_IRQHandler
-                        0x009b33    0x1  Code  Gb  stm8s_it.o [1]
-TIM4_ARRPreloadConfig   0x009a85    0xe  Code  Gb  stm8s_tim4.o [1]
-TIM4_ClearFlag          0x009ad1    0x9  Code  Gb  stm8s_tim4.o [1]
-TIM4_ClearITPendingBit  0x009ada    0x9  Code  Gb  stm8s_tim4.o [1]
-TIM4_Cmd                0x009a77    0xe  Code  Gb  stm8s_tim4.o [1]
-TIM4_DeInit             0x009978   0x19  Code  Gb  stm8s_tim4.o [1]
-TIM4_ITConfig           0x009945   0x1a  Code  Gb  stm8s_tim4.o [1]
-TIM4_TimeBaseInit       0x009aa0    0xd  Code  Gb  stm8s_tim4.o [1]
+                        0x009b10    0x1  Code  Gb  stm8s_it.o [1]
+TIM4_ARRPreloadConfig   0x009a60    0xe  Code  Gb  stm8s_tim4.o [1]
+TIM4_ClearFlag          0x009aac    0x9  Code  Gb  stm8s_tim4.o [1]
+TIM4_ClearITPendingBit  0x009ab5    0x9  Code  Gb  stm8s_tim4.o [1]
+TIM4_Cmd                0x009a52    0xe  Code  Gb  stm8s_tim4.o [1]
+TIM4_DeInit             0x009953   0x19  Code  Gb  stm8s_tim4.o [1]
+TIM4_ITConfig           0x009920   0x1a  Code  Gb  stm8s_tim4.o [1]
+TIM4_TimeBaseInit       0x009a7b    0xd  Code  Gb  stm8s_tim4.o [1]
 TIM4_UPD_OVF_IRQHandler
-                        0x009402   0x54  Code  Gb  stm8s_it.o [1]
-TLI_IRQHandler          0x009b28    0x1  Code  Gb  stm8s_it.o [1]
-TRAP_IRQHandler         0x009b27    0x1  Code  Gb  stm8s_it.o [1]
-Tim4_Isr_CallBack       0x00984a   0x25  Code  Gb  tasks.o [1]
-UART1_RX_IRQHandler     0x009b36    0x1  Code  Gb  stm8s_it.o [1]
-UART1_TX_IRQHandler     0x009b35    0x1  Code  Gb  stm8s_it.o [1]
-__DebugBreak            0x009b39    0x1  Code  Gb  __dbg_break.o [3]
-__exit                  0x0099bd   0x14  Code  Gb  __dbg_xxexit.o [3]
-__iar_copy_init2        0x0097af         Code  Gb  init_small.o [4]
-__iar_data_init2        0x0099a9   0x14  Code  Gb  init.o [4]
-__iar_program_start     0x0099e4         Code  Gb  cstartup.o [4]
+                        0x009384   0x54  Code  Gb  stm8s_it.o [1]
+TLI_IRQHandler          0x009b05    0x1  Code  Gb  stm8s_it.o [1]
+TRAP_IRQHandler         0x009b04    0x1  Code  Gb  stm8s_it.o [1]
+Tim4_Isr_CallBack       0x00982a   0x25  Code  Gb  tasks.o [1]
+UART1_RX_IRQHandler     0x009b13    0x1  Code  Gb  stm8s_it.o [1]
+UART1_TX_IRQHandler     0x009b12    0x1  Code  Gb  stm8s_it.o [1]
+__DebugBreak            0x009b16    0x1  Code  Gb  __dbg_break.o [3]
+__exit                  0x009998   0x14  Code  Gb  __dbg_xxexit.o [3]
+__iar_copy_init2        0x00978f         Code  Gb  init_small.o [4]
+__iar_data_init2        0x009984   0x14  Code  Gb  init.o [4]
+__iar_program_start     0x0099bf         Code  Gb  cstartup.o [4]
 __iar_unhandled_exception
-                        0x009b22         Code  Gb  unhandled_exception.o [4]
-__iar_zero_init2        0x009927         Code  Gb  init_small.o [4]
+                        0x009aff         Code  Gb  unhandled_exception.o [4]
+__iar_zero_init2        0x009902         Code  Gb  init_small.o [4]
 __intvec                0x008000         Data  Gb  interrupt.o [4]
-__low_level_init        0x009b1c    0x3  Code  Gb  low_level_init.o [4]
-_exit                   0x009b0f         Code  Gb  cexit.o [4]
-_interrupt_1            0x009b27         Code  Gb  stm8s_it.o [1]
-_interrupt_12           0x009b30         Code  Gb  stm8s_it.o [1]
-_interrupt_13           0x009b31         Code  Gb  stm8s_it.o [1]
-_interrupt_14           0x009b32         Code  Gb  stm8s_it.o [1]
-_interrupt_15           0x009b33         Code  Gb  stm8s_it.o [1]
-_interrupt_16           0x009b34         Code  Gb  stm8s_it.o [1]
-_interrupt_19           0x009b35         Code  Gb  stm8s_it.o [1]
-_interrupt_2            0x009b28         Code  Gb  stm8s_it.o [1]
-_interrupt_20           0x009b36         Code  Gb  stm8s_it.o [1]
-_interrupt_21           0x009b37         Code  Gb  stm8s_it.o [1]
-_interrupt_24           0x00986f         Code  Gb  stm8s_it.o [1]
-_interrupt_25           0x009402         Code  Gb  stm8s_it.o [1]
-_interrupt_26           0x009b38         Code  Gb  stm8s_it.o [1]
-_interrupt_3            0x009b29         Code  Gb  stm8s_it.o [1]
-_interrupt_4            0x009b2a         Code  Gb  stm8s_it.o [1]
-_interrupt_5            0x009b2b         Code  Gb  stm8s_it.o [1]
-_interrupt_6            0x009b2c         Code  Gb  stm8s_it.o [1]
-_interrupt_7            0x009b2d         Code  Gb  stm8s_it.o [1]
-_interrupt_8            0x009b2e         Code  Gb  stm8s_it.o [1]
-_interrupt_9            0x009b2f         Code  Gb  stm8s_it.o [1]
-assert_failed           0x009b25    0x2  Code  Gb  main.o [1]
-exit                    0x009b1f    0x3  Code  Gb  exit.o [4]
-key_driver              0x008fb6   0x87  Code  Gb  key.o [1]
-key_driver::key_state   0x000053    0x1  Data  Lc  key.o [1]
+__low_level_init        0x009af9    0x3  Code  Gb  low_level_init.o [4]
+_exit                   0x009aec         Code  Gb  cexit.o [4]
+_interrupt_1            0x009b04         Code  Gb  stm8s_it.o [1]
+_interrupt_12           0x009b0d         Code  Gb  stm8s_it.o [1]
+_interrupt_13           0x009b0e         Code  Gb  stm8s_it.o [1]
+_interrupt_14           0x009b0f         Code  Gb  stm8s_it.o [1]
+_interrupt_15           0x009b10         Code  Gb  stm8s_it.o [1]
+_interrupt_16           0x009b11         Code  Gb  stm8s_it.o [1]
+_interrupt_19           0x009b12         Code  Gb  stm8s_it.o [1]
+_interrupt_2            0x009b05         Code  Gb  stm8s_it.o [1]
+_interrupt_20           0x009b13         Code  Gb  stm8s_it.o [1]
+_interrupt_21           0x009b14         Code  Gb  stm8s_it.o [1]
+_interrupt_24           0x0098e3         Code  Gb  stm8s_it.o [1]
+_interrupt_25           0x009384         Code  Gb  stm8s_it.o [1]
+_interrupt_26           0x009b15         Code  Gb  stm8s_it.o [1]
+_interrupt_3            0x009b06         Code  Gb  stm8s_it.o [1]
+_interrupt_4            0x009b07         Code  Gb  stm8s_it.o [1]
+_interrupt_5            0x009b08         Code  Gb  stm8s_it.o [1]
+_interrupt_6            0x009b09         Code  Gb  stm8s_it.o [1]
+_interrupt_7            0x009b0a         Code  Gb  stm8s_it.o [1]
+_interrupt_8            0x009b0b         Code  Gb  stm8s_it.o [1]
+_interrupt_9            0x009b0c         Code  Gb  stm8s_it.o [1]
+assert_failed           0x009b02    0x2  Code  Gb  main.o [1]
+exit                    0x009afc    0x3  Code  Gb  exit.o [4]
+key_driver              0x008f38   0x87  Code  Gb  key.o [1]
+key_driver::key_state   0x000051    0x1  Data  Lc  key.o [1]
 key_driver::key_time    0x00002d    0x2  Data  Lc  key.o [1]
-key_read                0x008f2e   0x88  Code  Gb  key.o [1]
-key_read::key_state1    0x000054    0x1  Data  Lc  key.o [1]
+key_read                0x008eb0   0x88  Code  Gb  key.o [1]
+key_read::key_state1    0x000052    0x1  Data  Lc  key.o [1]
 key_read::key_time1     0x00002f    0x2  Data  Lc  key.o [1]
-main                    0x009589   0x3e  Code  Gb  main.o [1]
-taskA                   0x0088b7  0x118  Code  Gb  tasks.o [1]
-taskB                   0x0089cf  0x114  Code  Gb  tasks.o [1]
+main                    0x009561   0x46  Code  Gb  main.o [1]
+taskA                   0x0089e8  0x105  Code  Gb  tasks.o [1]
+taskB                   0x0088b7  0x131  Code  Gb  tasks.o [1]
+taskB::BreakFlagCnt     0x00005d    0x1  Data  Lc  tasks.o [1]
 taskC                   0x008080  0x24b  Code  Gb  tasks.o [1]
 taskC{1}{2}::AD_Channel_Count
-                        0x00005f    0x1  Data  Lc  tasks.o [1]
-taskC{1}{2}::AvgCnt1    0x000060    0x1  Data  Lc  tasks.o [1]
-taskC{1}{2}::AvgCnt2    0x000061    0x1  Data  Lc  tasks.o [1]
-taskC{1}{2}::AvgCnt3    0x000062    0x1  Data  Lc  tasks.o [1]
+                        0x00005e    0x1  Data  Lc  tasks.o [1]
+taskC{1}{2}::AvgCnt1    0x00005f    0x1  Data  Lc  tasks.o [1]
+taskC{1}{2}::AvgCnt2    0x000060    0x1  Data  Lc  tasks.o [1]
+taskC{1}{2}::AvgCnt3    0x000061    0x1  Data  Lc  tasks.o [1]
 taskC{1}{2}::Bat_Soc_New
-                        0x000063    0x1  Data  Lc  tasks.o [1]
+                        0x000062    0x1  Data  Lc  tasks.o [1]
 taskC{1}{2}::Light_EnCnt
-                        0x000051    0x2  Data  Lc  tasks.o [1]
+                        0x00004f    0x2  Data  Lc  tasks.o [1]
 
 
-[1] = C:\Users\hero\Desktop\Taillight_Code\stm8_prj\code_iar\Debug\Obj
+[1] = C:\Users\dd\Documents\tail_light_stm8\tail_light_stm8_iar\Debug\Obj
 [2] = command line
 [3] = dbgstm8smd.a
 [4] = dlstm8smn.a
 
-  6 737 bytes of readonly  code memory
-    233 bytes of readonly  data memory
-    356 bytes of readwrite data memory
+  6 699 bytes of readonly  code memory
+    236 bytes of readonly  data memory
+    355 bytes of readwrite data memory
 
 Errors: none
 Warnings: none

+ 2 - 2
settings/tail_light_stm8.Debug.cspy.bat

@@ -25,7 +25,7 @@ if not "%~1" == "" goto debugFile
 
 @echo on 
 
-"C:\Program Files (x86)\IAR Systems\Embedded Workbench 8.0\common\bin\cspybat" -f "C:\Users\hero\Desktop\Taillight_Code\stm8_prj\code_iar\settings\tail_light_stm8.Debug.general.xcl" --backend -f "C:\Users\hero\Desktop\Taillight_Code\stm8_prj\code_iar\settings\tail_light_stm8.Debug.driver.xcl" 
+"C:\Program Files (x86)\IAR Systems\Embedded Workbench 8.0\common\bin\cspybat" -f "C:\Users\dd\Documents\tail_light_stm8\tail_light_stm8_iar\settings\tail_light_stm8.Debug.general.xcl" --backend -f "C:\Users\dd\Documents\tail_light_stm8\tail_light_stm8_iar\settings\tail_light_stm8.Debug.driver.xcl" 
 
 @echo off 
 goto end 
@@ -34,7 +34,7 @@ goto end
 
 @echo on 
 
-"C:\Program Files (x86)\IAR Systems\Embedded Workbench 8.0\common\bin\cspybat" -f "C:\Users\hero\Desktop\Taillight_Code\stm8_prj\code_iar\settings\tail_light_stm8.Debug.general.xcl" "--debug_file=%~1" --backend -f "C:\Users\hero\Desktop\Taillight_Code\stm8_prj\code_iar\settings\tail_light_stm8.Debug.driver.xcl" 
+"C:\Program Files (x86)\IAR Systems\Embedded Workbench 8.0\common\bin\cspybat" -f "C:\Users\dd\Documents\tail_light_stm8\tail_light_stm8_iar\settings\tail_light_stm8.Debug.general.xcl" "--debug_file=%~1" --backend -f "C:\Users\dd\Documents\tail_light_stm8\tail_light_stm8_iar\settings\tail_light_stm8.Debug.driver.xcl" 
 
 @echo off 
 :end

+ 2 - 2
settings/tail_light_stm8.Debug.cspy.ps1

@@ -23,9 +23,9 @@ param([String]$debugfile = "");
 
 if ($debugfile -eq "")
 {
-& "C:\Program Files (x86)\IAR Systems\Embedded Workbench 8.0\common\bin\cspybat" -f "C:\Users\hero\Desktop\Taillight_Code\stm8_prj\code_iar\settings\tail_light_stm8.Debug.general.xcl" --backend -f "C:\Users\hero\Desktop\Taillight_Code\stm8_prj\code_iar\settings\tail_light_stm8.Debug.driver.xcl" 
+& "C:\Program Files (x86)\IAR Systems\Embedded Workbench 8.0\common\bin\cspybat" -f "C:\Users\dd\Documents\tail_light_stm8\tail_light_stm8_iar\settings\tail_light_stm8.Debug.general.xcl" --backend -f "C:\Users\dd\Documents\tail_light_stm8\tail_light_stm8_iar\settings\tail_light_stm8.Debug.driver.xcl" 
 }
 else
 {
-& "C:\Program Files (x86)\IAR Systems\Embedded Workbench 8.0\common\bin\cspybat" -f "C:\Users\hero\Desktop\Taillight_Code\stm8_prj\code_iar\settings\tail_light_stm8.Debug.general.xcl" --debug_file=$debugfile --backend -f "C:\Users\hero\Desktop\Taillight_Code\stm8_prj\code_iar\settings\tail_light_stm8.Debug.driver.xcl" 
+& "C:\Program Files (x86)\IAR Systems\Embedded Workbench 8.0\common\bin\cspybat" -f "C:\Users\dd\Documents\tail_light_stm8\tail_light_stm8_iar\settings\tail_light_stm8.Debug.general.xcl" --debug_file=$debugfile --backend -f "C:\Users\dd\Documents\tail_light_stm8\tail_light_stm8_iar\settings\tail_light_stm8.Debug.driver.xcl" 
 }

+ 1 - 1
settings/tail_light_stm8.Debug.general.xcl

@@ -2,7 +2,7 @@
 
 "C:\Program Files (x86)\IAR Systems\Embedded Workbench 8.0\stm8\bin\stm8stlink.dll" 
 
-"C:\Users\hero\Desktop\Taillight_Code\stm8_prj\code_iar\Debug\Exe\tail_light_stm8.out" 
+"C:\Users\dd\Documents\tail_light_stm8\tail_light_stm8_iar\Debug\Exe\tail_light_stm8.out" 
 
 --plugin "C:\Program Files (x86)\IAR Systems\Embedded Workbench 8.0\stm8\bin\stm8bat.dll" 
 

+ 1 - 1
settings/tail_light_stm8.dbgdt

@@ -728,7 +728,7 @@
                     <item>ShakeTimeCnt</item>
                     <item>Light_EN</item>
                     <item>Light_EnCnt</item>
-                    <item></item>
+                    <item />
                 </expressions>
                 <col-names>
                     <item>Expression</item>

Разлика између датотеке није приказан због своје велике величине
+ 14 - 14
settings/tail_light_stm8.wsdt


+ 133 - 924
tail_light_stm8.dep

@@ -5,257 +5,140 @@
     <configuration>
         <name>Debug</name>
         <outputs>
-            <file>$PROJ_DIR$\lib\src\stm8s_iwdg.c</file>
-            <file>$PROJ_DIR$\lib\src\stm8s_clk.c</file>
+            <file>$PROJ_DIR$\usr\src\delay.c</file>
+            <file>$PROJ_DIR$\usr\src\sc7a20.c</file>
+            <file>$PROJ_DIR$\usr\inc\math.h</file>
+            <file>$PROJ_DIR$\lib\inc\stm8s_uart1.h</file>
             <file>$PROJ_DIR$\usr\src\hw_init.c</file>
-            <file>$PROJ_DIR$\usr\src\main.c</file>
-            <file>$PROJ_DIR$\usr\src\math.c</file>
-            <file>$PROJ_DIR$\lib\src\stm8s_exti.c</file>
             <file>$PROJ_DIR$\usr\src\led.c</file>
-            <file>$PROJ_DIR$\usr\src\sc7a20.c</file>
-            <file>$PROJ_DIR$\usr\src\delay.c</file>
-            <file>$PROJ_DIR$\usr\src\i2c_analog.c</file>
-            <file>$PROJ_DIR$\usr\src\stm8s_it.c</file>
-            <file>$PROJ_DIR$\usr\src\system_task_handling.c</file>
+            <file>$PROJ_DIR$\Debug\Obj\i2c_analog.pbi</file>
             <file>$PROJ_DIR$\usr\src\tasks.c</file>
-            <file>$PROJ_DIR$\lib\src\stm8s_tim1.c</file>
-            <file>$PROJ_DIR$\Debug\Obj\stm8s_i2c.__cstat.et</file>
-            <file>$PROJ_DIR$\Debug\Obj\stm8s_adc1.o</file>
+            <file>$PROJ_DIR$\lib\inc\stm8s_iwdg.h</file>
+            <file>$PROJ_DIR$\usr\src\key.c</file>
+            <file>$PROJ_DIR$\lib\inc\stm8s_awu.h</file>
+            <file>$PROJ_DIR$\usr\inc\sc7a20.h</file>
+            <file>$PROJ_DIR$\lib\inc\stm8s_clk.h</file>
             <file>$PROJ_DIR$\lib\src\stm8s_tim4.c</file>
+            <file>$PROJ_DIR$\usr\src\stm8s_it.c</file>
+            <file>$PROJ_DIR$\lib\inc\stm8s_wwdg.h</file>
+            <file>$PROJ_DIR$\usr\src\i2c_analog.c</file>
+            <file>$PROJ_DIR$\Debug\Obj\stm8s_adc1.o</file>
+            <file>$PROJ_DIR$\usr\src\main.c</file>
             <file>$PROJ_DIR$\lib\src\stm8s_adc1.c</file>
+            <file>$PROJ_DIR$\lib\src\stm8s_exti.c</file>
+            <file>$PROJ_DIR$\lib\src\stm8s_rst.c</file>
             <file>$PROJ_DIR$\lib\src\stm8s_gpio.c</file>
+            <file>$PROJ_DIR$\lib\src\stm8s_clk.c</file>
             <file>$PROJ_DIR$\lib\src\stm8s_tim2.c</file>
-            <file>$PROJ_DIR$\usr\src\key.c</file>
-            <file>$PROJ_DIR$\lib\src\stm8s_rst.c</file>
-            <file>$PROJ_DIR$\lib\inc\stm8s_wwdg.h</file>
-            <file>$PROJ_DIR$\usr\inc\math.h</file>
-            <file>$PROJ_DIR$\lib\inc\stm8s_tim5.h</file>
-            <file>$PROJ_DIR$\Debug\Obj\stm8s_wwdg.o</file>
-            <file>$PROJ_DIR$\lib\inc\stm8s_uart1.h</file>
-            <file>$PROJ_DIR$\usr\inc\sc7a20.h</file>
-            <file>$PROJ_DIR$\lib\inc\stm8s_iwdg.h</file>
-            <file>$PROJ_DIR$\lib\inc\stm8s_awu.h</file>
-            <file>$PROJ_DIR$\Debug\Obj\i2c_analog.pbi</file>
-            <file>$PROJ_DIR$\lib\inc\stm8s_clk.h</file>
-            <file>$PROJ_DIR$\Debug\Obj\stm8s_i2c.pbi</file>
-            <file>$PROJ_DIR$\Debug\Obj\stm8s_wwdg.__cstat.et</file>
-            <file>$PROJ_DIR$\Debug\Obj\stm8s_it.__cstat.et</file>
-            <file>$PROJ_DIR$\lib\src\stm8s_beep.c</file>
-            <file>$PROJ_DIR$\lib\src\stm8s_itc.c</file>
-            <file>$PROJ_DIR$\lib\src\stm8s_can.c</file>
-            <file>$PROJ_DIR$\lib\src\stm8s_awu.c</file>
-            <file>$PROJ_DIR$\Debug\Obj\system_task_handling.o</file>
-            <file>$PROJ_DIR$\Debug\Obj\main.pbi</file>
-            <file>$PROJ_DIR$\Debug\Obj\stm8s_uart4.__cstat.et</file>
-            <file>$PROJ_DIR$\Debug\Obj\stm8s_it.pbi</file>
-            <file>$PROJ_DIR$\lib\inc\stm8s_uart3.h</file>
-            <file>$PROJ_DIR$\Debug\Obj\stm8s_tim6.o</file>
+            <file>$PROJ_DIR$\lib\src\stm8s_tim1.c</file>
             <file>$PROJ_DIR$\Debug\Obj\sc7a20.o</file>
             <file>$PROJ_DIR$\lib\inc\stm8s_exti.h</file>
-            <file>$PROJ_DIR$\Debug\Obj\stm8s_tim3.pbi</file>
-            <file>$PROJ_DIR$\Debug\Obj\main.o</file>
-            <file>$PROJ_DIR$\Debug\Obj\stm8s_tim2.o</file>
-            <file>$PROJ_DIR$\main.c</file>
-            <file>$PROJ_DIR$\Debug\Obj\stm8s_spi.pbi</file>
-            <file>$PROJ_DIR$\lib\inc\stm8s_adc2.h</file>
-            <file>$PROJ_DIR$\Debug\Obj\stm8s_adc2.__cstat.et</file>
-            <file>$PROJ_DIR$\usr\inc\delay.h</file>
-            <file>$PROJ_DIR$\Debug\Obj\tasks.__cstat.et</file>
-            <file>$PROJ_DIR$\Debug\Obj\stm8s_uart2.o</file>
-            <file>$PROJ_DIR$\Debug\Obj\stm8s_beep.pbi</file>
-            <file>$PROJ_DIR$\lib\src\stm8s_flash.c</file>
-            <file>$PROJ_DIR$\lib\src\stm8s_wwdg.c</file>
-            <file>$PROJ_DIR$\Debug\Obj\led.__cstat.et</file>
+            <file>$PROJ_DIR$\lib\inc\stm8s.h</file>
             <file>$PROJ_DIR$\lib\inc\stm8s_itc.h</file>
+            <file>$PROJ_DIR$\Debug\Obj\main.pbi</file>
+            <file>$PROJ_DIR$\usr\inc\delay.h</file>
+            <file>$PROJ_DIR$\usr\inc\tasks.h</file>
             <file>$PROJ_DIR$\Debug\Obj\tail_light_stm8.pbd</file>
-            <file>$PROJ_DIR$\Debug\Obj\stm8s_uart3.o</file>
-            <file>$PROJ_DIR$\Debug\Obj\stm8s_tim6.__cstat.et</file>
-            <file>$PROJ_DIR$\Debug\Obj\stm8s_uart2.pbi</file>
+            <file>$PROJ_DIR$\Debug\Obj\stm8s_it.pbi</file>
             <file>$PROJ_DIR$\Debug\Obj\key.o</file>
-            <file>$PROJ_DIR$\lib\inc\stm8s.h</file>
-            <file>$PROJ_DIR$\Debug\Obj\stm8s_wwdg.pbi</file>
-            <file>$PROJ_DIR$\lib\src\stm8s_uart2.c</file>
-            <file>$PROJ_DIR$\usr\inc\tasks.h</file>
-            <file>$PROJ_DIR$\lib\inc\stm8s_flash.h</file>
-            <file>$PROJ_DIR$\lib\inc\stm8s_uart2.h</file>
-            <file>$PROJ_DIR$\usr\inc\system_settings.h</file>
-            <file>$PROJ_DIR$\usr\inc\system_task.h</file>
+            <file>$PROJ_DIR$\Debug\Obj\main.o</file>
+            <file>$PROJ_DIR$\Debug\Obj\stm8s_tim2.o</file>
             <file>$PROJ_DIR$\usr\inc\stm8s_it.h</file>
-            <file>$PROJ_DIR$\Debug\Obj\stm8s_uart4.pbi</file>
-            <file>$PROJ_DIR$\Debug\Obj\stm8s_tim5.__cstat.et</file>
-            <file>$PROJ_DIR$\Debug\Obj\stm8s_itc.__cstat.et</file>
-            <file>$PROJ_DIR$\Debug\Obj\stm8s_adc1.__cstat.et</file>
-            <file>$PROJ_DIR$\Debug\Obj\stm8s_itc.pbi</file>
-            <file>$PROJ_DIR$\Debug\Obj\stm8s_exti.pbi</file>
-            <file>$PROJ_DIR$\Debug\Obj\stm8s_flash.o</file>
-            <file>$PROJ_DIR$\Debug\Obj\stm8s_clk.o</file>
-            <file>$TOOLKIT_DIR$\config\lnkstm8s003f3.icf</file>
-            <file>$PROJ_DIR$\Debug\Obj\i2c_analog.o</file>
-            <file>$PROJ_DIR$\lib\inc\stm8s_gpio.h</file>
             <file>$PROJ_DIR$\Debug\Obj\stm8s_tim4.o</file>
-            <file>$PROJ_DIR$\Debug\Obj\math.pbi</file>
-            <file>$PROJ_DIR$\Debug\Obj\stm8s_tim5.o</file>
-            <file>$PROJ_DIR$\lib\src\stm8s_tim5.c</file>
-            <file>$PROJ_DIR$\Debug\Obj\system_task_handling.pbi</file>
-            <file>$TOOLKIT_DIR$\inc\c\intrinsics.h</file>
-            <file>$PROJ_DIR$\Debug\Obj\stm8s_tim1.__cstat.et</file>
             <file>$PROJ_DIR$\Debug\Obj\tasks.o</file>
-            <file>$PROJ_DIR$\Debug\Obj\hw_init.o</file>
-            <file>$PROJ_DIR$\Debug\Obj\stm8s_exti.__cstat.et</file>
-            <file>$PROJ_DIR$\lib\src\stm8s_i2c.c</file>
-            <file>$PROJ_DIR$\Debug\Obj\stm8s_clk.__cstat.et</file>
+            <file>$TOOLKIT_DIR$\config\lnkstm8s003f3.icf</file>
+            <file>$TOOLKIT_DIR$\inc\c\intrinsics.h</file>
             <file>$PROJ_DIR$\Debug\Obj\stm8s_adc1.pbi</file>
-            <file>$PROJ_DIR$\Debug\Obj\stm8s_rst.__cstat.et</file>
-            <file>$PROJ_DIR$\Debug\Obj\stm8s_adc2.pbi</file>
-            <file>$PROJ_DIR$\Debug\Obj\stm8s_awu.o</file>
-            <file>$PROJ_DIR$\Debug\Obj\led.pbi</file>
-            <file>$PROJ_DIR$\Debug\Obj\stm8s_spi.__cstat.et</file>
-            <file>$PROJ_DIR$\Debug\Obj\stm8s_beep.o</file>
-            <file>$PROJ_DIR$\Debug\Obj\stm8s_tim4.__cstat.et</file>
-            <file>$PROJ_DIR$\usr\inc\key.h</file>
-            <file>$PROJ_DIR$\lib\src\stm8s_uart1.c</file>
-            <file>$PROJ_DIR$\Debug\Obj\delay.pbi</file>
-            <file>$PROJ_DIR$\Debug\Obj\stm8s_tim3.__cstat.et</file>
-            <file>$PROJ_DIR$\Debug\Obj\stm8s_tim5.pbi</file>
-            <file>$PROJ_DIR$\lib\inc\stm8s_tim2.h</file>
-            <file>$PROJ_DIR$\Debug\Obj\stm8s_rst.o</file>
-            <file>$PROJ_DIR$\Debug\Obj\stm8s_uart1.__cstat.et</file>
-            <file>$PROJ_DIR$\Debug\Obj\stm8s_uart1.o</file>
-            <file>$PROJ_DIR$\Debug\Obj\key.__cstat.et</file>
-            <file>$PROJ_DIR$\Debug\Obj\system_task_handling.__cstat.et</file>
-            <file>$PROJ_DIR$\Debug\Exe\tail_light_stm8.hex</file>
-            <file>$PROJ_DIR$\Debug\Obj\key.pbi</file>
-            <file>$PROJ_DIR$\lib\inc\stm8s_can.h</file>
-            <file>$PROJ_DIR$\Debug\Obj\stm8s_itc.o</file>
-            <file>$PROJ_DIR$\Debug\Obj\stm8s_tim1.pbi</file>
-            <file>$PROJ_DIR$\usr\inc\led.h</file>
-            <file>$PROJ_DIR$\lib\inc\stm8s_tim1.h</file>
-            <file>$PROJ_DIR$\Debug\Obj\stm8s_iwdg.__cstat.et</file>
-            <file>$PROJ_DIR$\Debug\Obj\stm8s_uart4.o</file>
-            <file>$PROJ_DIR$\Debug\Obj\stm8s_iwdg.o</file>
-            <file>$PROJ_DIR$\Debug\Obj\tasks.pbi</file>
-            <file>$PROJ_DIR$\Debug\Obj\stm8s_flash.__cstat.et</file>
-            <file>$PROJ_DIR$\Debug\Obj\delay.__cstat.et</file>
-            <file>$PROJ_DIR$\Debug\Obj\sc7a20.__cstat.et</file>
-            <file>$PROJ_DIR$\usr\inc\hw_init.h</file>
-            <file>$PROJ_DIR$\lib\inc\stm8s_tim4.h</file>
-            <file>$PROJ_DIR$\Debug\Obj\stm8s_beep.__cstat.et</file>
-            <file>$PROJ_DIR$\lib\inc\stm8s_spi.h</file>
-            <file>$PROJ_DIR$\Debug\Obj\i2c_analog.__cstat.et</file>
+            <file>$PROJ_DIR$\Debug\Obj\stm8s_clk.o</file>
+            <file>$PROJ_DIR$\Debug\Obj\hw_init.o</file>
+            <file>$PROJ_DIR$\Debug\Obj\i2c_analog.o</file>
+            <file>$PROJ_DIR$\lib\inc\stm8s_flash.h</file>
+            <file>$PROJ_DIR$\usr\inc\system_settings.h</file>
+            <file>$PROJ_DIR$\Debug\Obj\stm8s_exti.pbi</file>
+            <file>$PROJ_DIR$\lib\inc\stm8s_gpio.h</file>
+            <file>$PROJ_DIR$\Debug\Exe\tail_light_stm8.out</file>
+            <file>$PROJ_DIR$\Debug\Obj\sc7a20.pbi</file>
             <file>$PROJ_DIR$\lib\inc\stm8s_i2c.h</file>
-            <file>$PROJ_DIR$\Debug\Obj\stm8s_tim2.pbi</file>
-            <file>$PROJ_DIR$\Debug\Obj\math.o</file>
             <file>$PROJ_DIR$\Debug\Obj\stm8s_clk.pbi</file>
-            <file>$PROJ_DIR$\Debug\Obj\hw_init.pbi</file>
-            <file>$PROJ_DIR$\Debug\Obj\stm8s_adc2.o</file>
-            <file>$PROJ_DIR$\Debug\Obj\stm8s_gpio.__cstat.et</file>
-            <file>$PROJ_DIR$\Debug\Obj\math.__cstat.et</file>
-            <file>$PROJ_DIR$\Debug\Obj\stm8s_uart3.__cstat.et</file>
-            <file>$PROJ_DIR$\Debug\Exe\tail_light_stm8.out</file>
-            <file>$PROJ_DIR$\lib\inc\stm8s_uart4.h</file>
-            <file>$PROJ_DIR$\Debug\Obj\stm8s_uart3.pbi</file>
-            <file>$PROJ_DIR$\lib\src\stm8s_uart3.c</file>
-            <file>$PROJ_DIR$\usr\inc\i2c_analog.h</file>
-            <file>$PROJ_DIR$\Debug\Obj\hw_init.__cstat.et</file>
             <file>$TOOLKIT_DIR$\lib\dbgstm8smd.a</file>
-            <file>$PROJ_DIR$\Debug\Obj\main.__cstat.et</file>
-            <file>$PROJ_DIR$\Debug\List\tail_light_stm8.map</file>
-            <file>$PROJ_DIR$\lib\inc\stm8s_tim3.h</file>
-            <file>$PROJ_DIR$\Debug\Obj\stm8s_flash.pbi</file>
-            <file>$PROJ_DIR$\lib\src\stm8s_spi.c</file>
+            <file>$PROJ_DIR$\lib\inc\stm8s_spi.h</file>
+            <file>$PROJ_DIR$\usr\inc\i2c_analog.h</file>
+            <file>$PROJ_DIR$\Debug\Obj\hw_init.pbi</file>
             <file>$PROJ_DIR$\usr\inc\stm8s_conf.h</file>
-            <file>$PROJ_DIR$\lib\src\stm8s_tim3.c</file>
-            <file>$PROJ_DIR$\Debug\Obj\sc7a20.pbi</file>
             <file>$PROJ_DIR$\lib\inc\stm8s_beep.h</file>
-            <file>$PROJ_DIR$\lib\src\stm8s_uart4.c</file>
-            <file>$PROJ_DIR$\Debug\Obj\stm8s_tim2.__cstat.et</file>
-            <file>$PROJ_DIR$\lib\src\stm8s_tim6.c</file>
-            <file>$PROJ_DIR$\Debug\Obj\stm8s_gpio.o</file>
-            <file>$PROJ_DIR$\Debug\Obj\stm8s_gpio.pbi</file>
-            <file>$PROJ_DIR$\Debug\Obj\stm8s_exti.o</file>
-            <file>$PROJ_DIR$\lib\src\stm8s_adc2.c</file>
+            <file>$PROJ_DIR$\Debug\List\tail_light_stm8.map</file>
+            <file>$PROJ_DIR$\Debug\Obj\stm8s_tim2.pbi</file>
+            <file>$PROJ_DIR$\lib\inc\stm8s_tim4.h</file>
+            <file>$PROJ_DIR$\Debug\Obj\led.pbi</file>
+            <file>$PROJ_DIR$\Debug\Obj\delay.pbi</file>
+            <file>$PROJ_DIR$\Debug\Obj\stm8s_tim1.pbi</file>
+            <file>$PROJ_DIR$\usr\inc\hw_init.h</file>
+            <file>$PROJ_DIR$\Debug\Obj\key.pbi</file>
+            <file>$PROJ_DIR$\usr\inc\led.h</file>
+            <file>$PROJ_DIR$\lib\inc\stm8s_tim2.h</file>
+            <file>$PROJ_DIR$\Debug\Obj\tasks.pbi</file>
+            <file>$PROJ_DIR$\Debug\Exe\tail_light_stm8.hex</file>
+            <file>$PROJ_DIR$\usr\inc\key.h</file>
+            <file>$PROJ_DIR$\lib\inc\stm8s_tim1.h</file>
+            <file>$PROJ_DIR$\Debug\Obj\stm8s_rst.o</file>
             <file>$PROJ_DIR$\Debug\Obj\led.o</file>
-            <file>$PROJ_DIR$\Debug\Obj\stm8s_uart1.pbi</file>
-            <file>$PROJ_DIR$\Debug\Obj\stm8s_spi.o</file>
-            <file>$PROJ_DIR$\Debug\Obj\stm8s_can.o</file>
-            <file>$PROJ_DIR$\Debug\Obj\delay.o</file>
-            <file>$PROJ_DIR$\Debug\Obj\stm8s_can.pbi</file>
             <file>$TOOLKIT_DIR$\lib\dlstm8smn.a</file>
-            <file>$PROJ_DIR$\Debug\Obj\stm8s_i2c.o</file>
-            <file>$PROJ_DIR$\Debug\Obj\stm8s_awu.pbi</file>
+            <file>$PROJ_DIR$\Debug\Obj\delay.o</file>
             <file>$PROJ_DIR$\Debug\Obj\stm8s_rst.pbi</file>
-            <file>$PROJ_DIR$\Debug\Obj\stm8s_awu.__cstat.et</file>
-            <file>$PROJ_DIR$\Debug\Obj\stm8s_uart2.__cstat.et</file>
-            <file>$PROJ_DIR$\Debug\Obj\stm8s_it.o</file>
-            <file>$PROJ_DIR$\Debug\Obj\stm8s_can.__cstat.et</file>
+            <file>$PROJ_DIR$\lib\inc\stm8s_adc1.h</file>
+            <file>$PROJ_DIR$\Debug\Obj\stm8s_exti.o</file>
             <file>$PROJ_DIR$\Debug\Obj\stm8s_tim4.pbi</file>
-            <file>$PROJ_DIR$\Debug\Obj\stm8s_tim1.o</file>
-            <file>$PROJ_DIR$\Debug\Obj\stm8s_iwdg.pbi</file>
-            <file>$PROJ_DIR$\lib\inc\stm8s_tim6.h</file>
-            <file>$PROJ_DIR$\Debug\Obj\stm8s_tim6.pbi</file>
+            <file>$PROJ_DIR$\Debug\Obj\stm8s_gpio.pbi</file>
             <file>$PROJ_DIR$\lib\inc\stm8s_rst.h</file>
-            <file>$PROJ_DIR$\lib\inc\stm8s_adc1.h</file>
+            <file>$PROJ_DIR$\Debug\Obj\stm8s_gpio.o</file>
+            <file>$PROJ_DIR$\Debug\Obj\stm8s_tim1.o</file>
+            <file>$PROJ_DIR$\Debug\Obj\stm8s_it.o</file>
+            <file>$TOOLKIT_DIR$\config\ddf\iostm8s003f3.ddf</file>
         </outputs>
         <file>
             <name>[ROOT_NODE]</name>
             <outputs>
                 <tool>
                     <name>ILINK</name>
-                    <file> 146 154</file>
+                    <file> 51 61</file>
                 </tool>
             </outputs>
         </file>
         <file>
-            <name>$PROJ_DIR$\lib\src\stm8s_iwdg.c</name>
+            <name>$PROJ_DIR$\usr\src\delay.c</name>
             <outputs>
                 <tool>
                     <name>ICCSTM8</name>
-                    <file> 127</file>
-                </tool>
-                <tool>
-                    <name>__cstat</name>
-                    <file> 125</file>
+                    <file> 78</file>
                 </tool>
                 <tool>
                     <name>BICOMP</name>
-                    <file> 185</file>
+                    <file> 65</file>
                 </tool>
             </outputs>
             <inputs>
                 <tool>
                     <name>ICCSTM8</name>
-                    <file> 28 67 158 189 29 161 31 46 71 86 137 61 188 135 124 112 133 26 22 92</file>
-                </tool>
-                <tool>
-                    <name>BICOMP</name>
-                    <file> 137 31 135 67 92 29 71 28 112 22 158 189 161 46 86 61 188 124 133 26</file>
+                    <file> 31 28 59 80 10 60 12 27 47 50 53 29 8 84 56 74 70 63 3 15 42</file>
                 </tool>
             </inputs>
         </file>
         <file>
-            <name>$PROJ_DIR$\lib\src\stm8s_clk.c</name>
+            <name>$PROJ_DIR$\usr\src\sc7a20.c</name>
             <outputs>
                 <tool>
                     <name>ICCSTM8</name>
-                    <file> 83</file>
-                </tool>
-                <tool>
-                    <name>__cstat</name>
-                    <file> 98</file>
+                    <file> 26</file>
                 </tool>
                 <tool>
                     <name>BICOMP</name>
-                    <file> 140</file>
+                    <file> 52</file>
                 </tool>
             </outputs>
             <inputs>
                 <tool>
                     <name>ICCSTM8</name>
-                    <file> 31 67 158 189 29 161 46 71 86 137 61 28 188 135 124 112 133 26 22 92</file>
-                </tool>
-                <tool>
-                    <name>BICOMP</name>
-                    <file> 137 31 135 67 92 29 71 28 112 22 158 189 161 46 86 61 188 124 133 26</file>
+                    <file> 11 28 59 80 10 60 12 27 47 50 53 29 8 84 56 74 70 63 3 15 42 57 31</file>
                 </tool>
             </inputs>
         </file>
@@ -264,200 +147,140 @@
             <outputs>
                 <tool>
                     <name>ICCSTM8</name>
-                    <file> 95</file>
-                </tool>
-                <tool>
-                    <name>__cstat</name>
-                    <file> 151</file>
+                    <file> 45</file>
                 </tool>
                 <tool>
                     <name>BICOMP</name>
-                    <file> 141</file>
+                    <file> 58</file>
                 </tool>
             </outputs>
             <inputs>
                 <tool>
                     <name>ICCSTM8</name>
-                    <file> 67 158 189 29 161 31 46 71 86 137 61 28 188 135 124 112 133 26 22 92 132</file>
-                </tool>
-                <tool>
-                    <name>BICOMP</name>
-                    <file> 188 67 161 86 133 158 189 46 61 124 26 132 92 29 31 71 137 28 135 112 22</file>
+                    <file> 28 59 80 10 60 12 27 47 50 53 29 8 84 56 74 70 63 3 15 42 67</file>
                 </tool>
             </inputs>
         </file>
         <file>
-            <name>$PROJ_DIR$\usr\src\main.c</name>
+            <name>$PROJ_DIR$\usr\src\led.c</name>
             <outputs>
                 <tool>
                     <name>ICCSTM8</name>
-                    <file> 48</file>
-                </tool>
-                <tool>
-                    <name>__cstat</name>
-                    <file> 153</file>
+                    <file> 76</file>
                 </tool>
                 <tool>
                     <name>BICOMP</name>
-                    <file> 40</file>
+                    <file> 64</file>
                 </tool>
             </outputs>
             <inputs>
                 <tool>
                     <name>ICCSTM8</name>
-                    <file> 67 158 189 29 161 31 46 71 86 137 61 28 188 135 124 112 133 26 22 92 132 27 107 123 70</file>
-                </tool>
-                <tool>
-                    <name>BICOMP</name>
-                    <file> 67 137 123 31 135 27 92 29 71 28 112 22 132 107 70 158 189 161 46 86 61 188 124 133 26</file>
+                    <file> 69 28 59 80 10 60 12 27 47 50 53 29 8 84 56 74 70 63 3 15 42</file>
                 </tool>
             </inputs>
         </file>
         <file>
-            <name>$PROJ_DIR$\usr\src\math.c</name>
+            <name>$PROJ_DIR$\usr\src\tasks.c</name>
             <outputs>
                 <tool>
                     <name>ICCSTM8</name>
-                    <file> 139</file>
-                </tool>
-                <tool>
-                    <name>__cstat</name>
-                    <file> 144</file>
+                    <file> 40</file>
                 </tool>
                 <tool>
                     <name>BICOMP</name>
-                    <file> 88</file>
+                    <file> 71</file>
                 </tool>
             </outputs>
             <inputs>
                 <tool>
                     <name>ICCSTM8</name>
-                    <file> 23 67 158 189 29 161 31 46 71 86 137 61 28 188 135 124 112 133 26 22 92</file>
-                </tool>
-                <tool>
-                    <name>BICOMP</name>
-                    <file> 31 67 135 137 92 29 71 28 112 22 158 189 161 46 86 61 188 124 133 26 23</file>
+                    <file> 48 28 59 80 10 60 12 27 47 50 53 29 8 84 56 74 70 63 3 15 42 69 73 67 11 2 31</file>
                 </tool>
             </inputs>
         </file>
         <file>
-            <name>$PROJ_DIR$\lib\src\stm8s_exti.c</name>
+            <name>$PROJ_DIR$\usr\src\key.c</name>
             <outputs>
                 <tool>
                     <name>ICCSTM8</name>
-                    <file> 167</file>
-                </tool>
-                <tool>
-                    <name>__cstat</name>
-                    <file> 96</file>
+                    <file> 35</file>
                 </tool>
                 <tool>
                     <name>BICOMP</name>
-                    <file> 81</file>
+                    <file> 68</file>
                 </tool>
             </outputs>
             <inputs>
                 <tool>
                     <name>ICCSTM8</name>
-                    <file> 46 67 158 189 29 161 31 71 86 137 61 28 188 135 124 112 133 26 22 92</file>
-                </tool>
-                <tool>
-                    <name>BICOMP</name>
-                    <file> 124 158 46 189 61 26 67 161 86 188 133 92 29 31 71 137 28 135 112 22</file>
+                    <file> 73 28 59 80 10 60 12 27 47 50 53 29 8 84 56 74 70 63 3 15 42 48</file>
                 </tool>
             </inputs>
         </file>
         <file>
-            <name>$PROJ_DIR$\usr\src\led.c</name>
+            <name>$PROJ_DIR$\lib\src\stm8s_tim4.c</name>
             <outputs>
                 <tool>
                     <name>ICCSTM8</name>
-                    <file> 169</file>
-                </tool>
-                <tool>
-                    <name>__cstat</name>
-                    <file> 60</file>
+                    <file> 39</file>
                 </tool>
                 <tool>
                     <name>BICOMP</name>
-                    <file> 103</file>
+                    <file> 82</file>
                 </tool>
             </outputs>
             <inputs>
                 <tool>
                     <name>ICCSTM8</name>
-                    <file> 123 67 158 189 29 161 31 46 71 86 137 61 28 188 135 124 112 133 26 22 92</file>
-                </tool>
-                <tool>
-                    <name>BICOMP</name>
-                    <file> 61 189 26 158 46 124 67 161 86 188 133 92 29 31 71 137 28 135 112 22 123</file>
+                    <file> 63 28 59 80 10 60 12 27 47 50 53 29 8 84 56 74 70 3 15 42</file>
                 </tool>
             </inputs>
         </file>
         <file>
-            <name>$PROJ_DIR$\usr\src\sc7a20.c</name>
+            <name>$PROJ_DIR$\usr\src\stm8s_it.c</name>
             <outputs>
                 <tool>
                     <name>ICCSTM8</name>
-                    <file> 45</file>
-                </tool>
-                <tool>
-                    <name>__cstat</name>
-                    <file> 131</file>
+                    <file> 87</file>
                 </tool>
                 <tool>
                     <name>BICOMP</name>
-                    <file> 160</file>
+                    <file> 34</file>
                 </tool>
             </outputs>
             <inputs>
                 <tool>
                     <name>ICCSTM8</name>
-                    <file> 27 67 158 189 29 161 31 46 71 86 137 61 28 188 135 124 112 133 26 22 92 150 54</file>
-                </tool>
-                <tool>
-                    <name>BICOMP</name>
-                    <file> 29 22 28 92 71 112 54 31 137 135 67 150 158 189 161 46 86 61 188 124 133 26 27</file>
+                    <file> 38 28 59 80 10 60 12 27 47 50 53 29 8 84 56 74 70 63 3 15 42</file>
                 </tool>
             </inputs>
         </file>
         <file>
-            <name>$PROJ_DIR$\usr\src\delay.c</name>
+            <name>$PROJ_DIR$\usr\src\i2c_analog.c</name>
             <outputs>
                 <tool>
                     <name>ICCSTM8</name>
-                    <file> 173</file>
-                </tool>
-                <tool>
-                    <name>__cstat</name>
-                    <file> 130</file>
+                    <file> 46</file>
                 </tool>
                 <tool>
                     <name>BICOMP</name>
-                    <file> 109</file>
+                    <file> 6</file>
                 </tool>
             </outputs>
             <inputs>
                 <tool>
                     <name>ICCSTM8</name>
-                    <file> 54 67 158 189 29 161 31 46 71 86 137 61 28 188 135 124 112 133 26 22 92</file>
-                </tool>
-                <tool>
-                    <name>BICOMP</name>
-                    <file> 137 31 135 92 29 71 28 112 22 67 158 189 161 46 86 61 188 124 133 26 54</file>
+                    <file> 57 28 59 80 10 60 12 27 47 50 53 29 8 84 56 74 70 63 3 15 42</file>
                 </tool>
             </inputs>
         </file>
         <file>
-            <name>$PROJ_DIR$\usr\src\i2c_analog.c</name>
+            <name>$PROJ_DIR$\usr\src\main.c</name>
             <outputs>
                 <tool>
                     <name>ICCSTM8</name>
-                    <file> 85</file>
-                </tool>
-                <tool>
-                    <name>__cstat</name>
-                    <file> 136</file>
+                    <file> 36</file>
                 </tool>
                 <tool>
                     <name>BICOMP</name>
@@ -467,776 +290,162 @@
             <inputs>
                 <tool>
                     <name>ICCSTM8</name>
-                    <file> 150 67 158 189 29 161 31 46 71 86 137 61 28 188 135 124 112 133 26 22 92</file>
-                </tool>
-                <tool>
-                    <name>BICOMP</name>
-                    <file> 86 67 133 161 188 158 189 46 61 124 26 92 29 31 71 137 28 135 112 22 150</file>
+                    <file> 28 59 80 10 60 12 27 47 50 53 29 8 84 56 74 70 63 3 15 42 67 11 73 69 32</file>
                 </tool>
             </inputs>
         </file>
         <file>
-            <name>$PROJ_DIR$\usr\src\stm8s_it.c</name>
+            <name>$PROJ_DIR$\lib\src\stm8s_adc1.c</name>
             <outputs>
                 <tool>
                     <name>ICCSTM8</name>
-                    <file> 181</file>
-                </tool>
-                <tool>
-                    <name>__cstat</name>
-                    <file> 34</file>
+                    <file> 17</file>
                 </tool>
                 <tool>
                     <name>BICOMP</name>
-                    <file> 42</file>
+                    <file> 43</file>
                 </tool>
             </outputs>
             <inputs>
                 <tool>
                     <name>ICCSTM8</name>
-                    <file> 75 67 158 189 29 161 31 46 71 86 137 61 28 188 135 124 112 133 26 22 92</file>
-                </tool>
-                <tool>
-                    <name>BICOMP</name>
-                    <file> 86 67 133 161 188 158 189 46 61 124 26 92 29 31 71 137 28 135 112 22 75</file>
+                    <file> 80 28 59 10 60 12 27 47 50 53 29 8 84 56 74 70 63 3 15 42</file>
                 </tool>
             </inputs>
         </file>
         <file>
-            <name>$PROJ_DIR$\usr\src\system_task_handling.c</name>
+            <name>$PROJ_DIR$\lib\src\stm8s_exti.c</name>
             <outputs>
                 <tool>
                     <name>ICCSTM8</name>
-                    <file> 39</file>
-                </tool>
-                <tool>
-                    <name>__cstat</name>
-                    <file> 117</file>
+                    <file> 81</file>
                 </tool>
                 <tool>
                     <name>BICOMP</name>
-                    <file> 91</file>
+                    <file> 49</file>
                 </tool>
             </outputs>
             <inputs>
                 <tool>
                     <name>ICCSTM8</name>
-                    <file> 73 67 158 189 29 161 31 46 71 86 137 61 28 188 135 124 112 133 26 22 92 74</file>
-                </tool>
-                <tool>
-                    <name>BICOMP</name>
-                    <file> 29 22 28 67 92 71 112 31 137 135 74 158 189 161 46 86 61 188 124 133 26 73</file>
+                    <file> 27 28 59 80 10 60 12 47 50 53 29 8 84 56 74 70 63 3 15 42</file>
                 </tool>
             </inputs>
         </file>
         <file>
-            <name>$PROJ_DIR$\usr\src\tasks.c</name>
+            <name>$PROJ_DIR$\lib\src\stm8s_rst.c</name>
             <outputs>
                 <tool>
                     <name>ICCSTM8</name>
-                    <file> 94</file>
-                </tool>
-                <tool>
-                    <name>__cstat</name>
-                    <file> 55</file>
+                    <file> 75</file>
                 </tool>
                 <tool>
                     <name>BICOMP</name>
-                    <file> 128</file>
+                    <file> 79</file>
                 </tool>
             </outputs>
             <inputs>
                 <tool>
                     <name>ICCSTM8</name>
-                    <file> 73 67 158 189 29 161 31 46 71 86 137 61 28 188 135 124 112 133 26 22 92 123 107 132 27 23 54</file>
-                </tool>
-                <tool>
-                    <name>BICOMP</name>
-                    <file> 61 27 189 26 107 54 67 158 46 124 123 132 23 161 86 188 133 73 92 29 31 71 137 28 135 112 22</file>
+                    <file> 84 28 59 80 10 60 12 27 47 50 53 29 8 56 74 70 63 3 15 42</file>
                 </tool>
             </inputs>
         </file>
         <file>
-            <name>$PROJ_DIR$\lib\src\stm8s_tim1.c</name>
+            <name>$PROJ_DIR$\lib\src\stm8s_gpio.c</name>
             <outputs>
                 <tool>
                     <name>ICCSTM8</name>
-                    <file> 184</file>
-                </tool>
-                <tool>
-                    <name>__cstat</name>
-                    <file> 93</file>
+                    <file> 85</file>
                 </tool>
                 <tool>
                     <name>BICOMP</name>
-                    <file> 122</file>
+                    <file> 83</file>
                 </tool>
             </outputs>
             <inputs>
                 <tool>
                     <name>ICCSTM8</name>
-                    <file> 124 67 158 189 29 161 31 46 71 86 137 61 28 188 135 112 133 26 22 92</file>
-                </tool>
-                <tool>
-                    <name>BICOMP</name>
-                    <file> 67 133 86 161 188 158 189 46 61 124 26 92 29 31 71 137 28 135 112 22</file>
+                    <file> 50 28 59 80 10 60 12 27 47 53 29 8 84 56 74 70 63 3 15 42</file>
                 </tool>
             </inputs>
         </file>
         <file>
-            <name>$PROJ_DIR$\lib\src\stm8s_tim4.c</name>
+            <name>$PROJ_DIR$\lib\src\stm8s_clk.c</name>
             <outputs>
                 <tool>
                     <name>ICCSTM8</name>
-                    <file> 87</file>
-                </tool>
-                <tool>
-                    <name>__cstat</name>
-                    <file> 106</file>
+                    <file> 44</file>
                 </tool>
                 <tool>
                     <name>BICOMP</name>
-                    <file> 183</file>
+                    <file> 54</file>
                 </tool>
             </outputs>
             <inputs>
                 <tool>
                     <name>ICCSTM8</name>
-                    <file> 133 67 158 189 29 161 31 46 71 86 137 61 28 188 135 124 112 26 22 92</file>
-                </tool>
-                <tool>
-                    <name>BICOMP</name>
-                    <file> 135 31 67 137 92 29 71 28 112 22 158 189 161 46 86 61 188 124 133 26</file>
+                    <file> 12 28 59 80 10 60 27 47 50 53 29 8 84 56 74 70 63 3 15 42</file>
                 </tool>
             </inputs>
         </file>
         <file>
-            <name>$PROJ_DIR$\lib\src\stm8s_adc1.c</name>
+            <name>$PROJ_DIR$\lib\src\stm8s_tim2.c</name>
             <outputs>
                 <tool>
                     <name>ICCSTM8</name>
-                    <file> 15</file>
-                </tool>
-                <tool>
-                    <name>__cstat</name>
-                    <file> 79</file>
+                    <file> 37</file>
                 </tool>
                 <tool>
                     <name>BICOMP</name>
-                    <file> 99</file>
+                    <file> 62</file>
                 </tool>
             </outputs>
             <inputs>
                 <tool>
                     <name>ICCSTM8</name>
-                    <file> 189 67 158 29 161 31 46 71 86 137 61 28 188 135 124 112 133 26 22 92</file>
-                </tool>
-                <tool>
-                    <name>BICOMP</name>
-                    <file> 46 158 124 189 61 26 67 161 86 188 133 92 29 31 71 137 28 135 112 22</file>
+                    <file> 70 28 59 80 10 60 12 27 47 50 53 29 8 84 56 74 63 3 15 42</file>
                 </tool>
             </inputs>
         </file>
         <file>
-            <name>$PROJ_DIR$\lib\src\stm8s_gpio.c</name>
-            <outputs>
-                <tool>
-                    <name>ICCSTM8</name>
-                    <file> 165</file>
-                </tool>
-                <tool>
-                    <name>__cstat</name>
-                    <file> 143</file>
-                </tool>
-                <tool>
-                    <name>BICOMP</name>
-                    <file> 166</file>
-                </tool>
-            </outputs>
-            <inputs>
-                <tool>
-                    <name>ICCSTM8</name>
-                    <file> 86 67 158 189 29 161 31 46 71 137 61 28 188 135 124 112 133 26 22 92</file>
-                </tool>
-                <tool>
-                    <name>BICOMP</name>
-                    <file> 67 31 135 137 92 29 71 28 112 22 158 189 161 46 86 61 188 124 133 26</file>
-                </tool>
-            </inputs>
-        </file>
-        <file>
-            <name>$PROJ_DIR$\lib\src\stm8s_tim2.c</name>
+            <name>$PROJ_DIR$\lib\src\stm8s_tim1.c</name>
             <outputs>
                 <tool>
                     <name>ICCSTM8</name>
-                    <file> 49</file>
-                </tool>
-                <tool>
-                    <name>__cstat</name>
-                    <file> 163</file>
-                </tool>
-                <tool>
-                    <name>BICOMP</name>
-                    <file> 138</file>
-                </tool>
-            </outputs>
-            <inputs>
-                <tool>
-                    <name>ICCSTM8</name>
-                    <file> 112 67 158 189 29 161 31 46 71 86 137 61 28 188 135 124 133 26 22 92</file>
+                    <file> 86</file>
                 </tool>
                 <tool>
                     <name>BICOMP</name>
-                    <file> 67 161 188 86 133 158 189 46 61 124 26 112 92 29 31 71 137 28 135 22</file>
-                </tool>
-            </inputs>
-        </file>
-        <file>
-            <name>$PROJ_DIR$\usr\src\key.c</name>
-            <outputs>
-                <tool>
-                    <name>ICCSTM8</name>
                     <file> 66</file>
                 </tool>
-                <tool>
-                    <name>__cstat</name>
-                    <file> 116</file>
-                </tool>
-                <tool>
-                    <name>BICOMP</name>
-                    <file> 119</file>
-                </tool>
             </outputs>
             <inputs>
                 <tool>
                     <name>ICCSTM8</name>
-                    <file> 107 67 158 189 29 161 31 46 71 86 137 61 28 188 135 124 112 133 26 22 92 73</file>
-                </tool>
-                <tool>
-                    <name>BICOMP</name>
-                    <file> 161 188 67 86 133 158 189 46 61 124 26 73 92 29 31 71 137 28 135 112 22 107</file>
-                </tool>
-            </inputs>
-        </file>
-        <file>
-            <name>$PROJ_DIR$\lib\src\stm8s_rst.c</name>
-            <outputs>
-                <tool>
-                    <name>ICCSTM8</name>
-                    <file> 113</file>
-                </tool>
-                <tool>
-                    <name>__cstat</name>
-                    <file> 100</file>
-                </tool>
-                <tool>
-                    <name>BICOMP</name>
-                    <file> 178</file>
-                </tool>
-            </outputs>
-            <inputs>
-                <tool>
-                    <name>ICCSTM8</name>
-                    <file> 188 67 158 189 29 161 31 46 71 86 137 61 28 135 124 112 133 26 22 92</file>
-                </tool>
-                <tool>
-                    <name>BICOMP</name>
-                    <file> 137 31 135 92 29 71 28 112 22 67 158 189 161 46 86 61 188 124 133 26</file>
-                </tool>
-            </inputs>
-        </file>
-        <file>
-            <name>$PROJ_DIR$\lib\src\stm8s_beep.c</name>
-            <outputs>
-                <tool>
-                    <name>ICCSTM8</name>
-                    <file> 105</file>
-                </tool>
-                <tool>
-                    <name>__cstat</name>
-                    <file> 134</file>
-                </tool>
-                <tool>
-                    <name>BICOMP</name>
-                    <file> 57</file>
-                </tool>
-            </outputs>
-            <inputs>
-                <tool>
-                    <name>ICCSTM8</name>
-                    <file> 161 67 158 189 29 31 46 71 86 137 61 28 188 135 124 112 133 26 22 92</file>
-                </tool>
-                <tool>
-                    <name>BICOMP</name>
-                    <file> 71 67 92 112 29 28 22 31 137 135 158 189 161 46 86 61 188 124 133 26</file>
-                </tool>
-            </inputs>
-        </file>
-        <file>
-            <name>$PROJ_DIR$\lib\src\stm8s_itc.c</name>
-            <outputs>
-                <tool>
-                    <name>ICCSTM8</name>
-                    <file> 121</file>
-                </tool>
-                <tool>
-                    <name>__cstat</name>
-                    <file> 78</file>
-                </tool>
-                <tool>
-                    <name>BICOMP</name>
-                    <file> 80</file>
-                </tool>
-            </outputs>
-            <inputs>
-                <tool>
-                    <name>ICCSTM8</name>
-                    <file> 61 67 158 189 29 161 31 46 71 86 137 28 188 135 124 112 133 26 22 92</file>
-                </tool>
-                <tool>
-                    <name>BICOMP</name>
-                    <file> 161 188 67 86 133 158 189 46 61 124 26 92 29 31 71 137 28 135 112 22</file>
-                </tool>
-            </inputs>
-        </file>
-        <file>
-            <name>$PROJ_DIR$\lib\src\stm8s_can.c</name>
-            <outputs>
-                <tool>
-                    <name>ICCSTM8</name>
-                    <file> 172</file>
-                </tool>
-                <tool>
-                    <name>__cstat</name>
-                    <file> 182</file>
-                </tool>
-                <tool>
-                    <name>BICOMP</name>
-                    <file> 174</file>
-                </tool>
-            </outputs>
-            <inputs>
-                <tool>
-                    <name>ICCSTM8</name>
-                    <file> 120 67 158 189 29 161 31 46 71 86 137 61 28 188 135 124 112 133 26 22 92</file>
-                </tool>
-                <tool>
-                    <name>BICOMP</name>
-                    <file> 22 92 137 31 135 67 29 71 28 112 120 158 161 46 86 61 188 124 133</file>
-                </tool>
-            </inputs>
-        </file>
-        <file>
-            <name>$PROJ_DIR$\lib\src\stm8s_awu.c</name>
-            <outputs>
-                <tool>
-                    <name>ICCSTM8</name>
-                    <file> 102</file>
-                </tool>
-                <tool>
-                    <name>__cstat</name>
-                    <file> 179</file>
-                </tool>
-                <tool>
-                    <name>BICOMP</name>
-                    <file> 177</file>
-                </tool>
-            </outputs>
-            <inputs>
-                <tool>
-                    <name>ICCSTM8</name>
-                    <file> 29 67 158 189 161 31 46 71 86 137 61 28 188 135 124 112 133 26 22 92</file>
-                </tool>
-                <tool>
-                    <name>BICOMP</name>
-                    <file> 133 67 86 161 188 158 189 46 61 124 26 92 29 31 71 137 28 135 112 22</file>
-                </tool>
-            </inputs>
-        </file>
-        <file>
-            <name>$PROJ_DIR$\main.c</name>
-            <outputs>
-                <tool>
-                    <name>ICCSTM8</name>
-                    <file> 48</file>
-                </tool>
-                <tool>
-                    <name>BICOMP</name>
-                    <file> 40</file>
-                </tool>
-            </outputs>
-        </file>
-        <file>
-            <name>$PROJ_DIR$\lib\src\stm8s_flash.c</name>
-            <outputs>
-                <tool>
-                    <name>ICCSTM8</name>
-                    <file> 82</file>
-                </tool>
-                <tool>
-                    <name>__cstat</name>
-                    <file> 129</file>
-                </tool>
-                <tool>
-                    <name>BICOMP</name>
-                    <file> 156</file>
-                </tool>
-            </outputs>
-            <inputs>
-                <tool>
-                    <name>ICCSTM8</name>
-                    <file> 71 67 158 189 29 161 31 46 86 137 61 28 188 135 124 112 133 26 22 92</file>
-                </tool>
-                <tool>
-                    <name>BICOMP</name>
-                    <file> 28 29 22 92 71 112 31 137 135 67 158 189 161 46 86 61 188 124 133 26</file>
-                </tool>
-            </inputs>
-        </file>
-        <file>
-            <name>$PROJ_DIR$\lib\src\stm8s_wwdg.c</name>
-            <outputs>
-                <tool>
-                    <name>ICCSTM8</name>
-                    <file> 25</file>
-                </tool>
-                <tool>
-                    <name>__cstat</name>
-                    <file> 33</file>
-                </tool>
-                <tool>
-                    <name>BICOMP</name>
-                    <file> 68</file>
-                </tool>
-            </outputs>
-            <inputs>
-                <tool>
-                    <name>ICCSTM8</name>
-                    <file> 22 67 158 189 29 161 31 46 71 86 137 61 28 188 135 124 112 133 26 92</file>
-                </tool>
-                <tool>
-                    <name>BICOMP</name>
-                    <file> 67 28 29 22 92 71 112 31 137 135 158 189 161 46 86 61 188 124 133 26</file>
-                </tool>
-            </inputs>
-        </file>
-        <file>
-            <name>$PROJ_DIR$\lib\src\stm8s_uart2.c</name>
-            <outputs>
-                <tool>
-                    <name>ICCSTM8</name>
-                    <file> 56</file>
-                </tool>
-                <tool>
-                    <name>__cstat</name>
-                    <file> 180</file>
-                </tool>
-                <tool>
-                    <name>BICOMP</name>
-                    <file> 65</file>
-                </tool>
-            </outputs>
-            <inputs>
-                <tool>
-                    <name>ICCSTM8</name>
-                    <file> 72 67 158 189 29 161 31 46 71 86 137 61 28 188 135 124 112 133 26 22 92</file>
-                </tool>
-                <tool>
-                    <name>BICOMP</name>
-                    <file> 86 158 133 161 188 67 46 61 124 92 29 31 71 137 28 135 112 22 72</file>
-                </tool>
-            </inputs>
-        </file>
-        <file>
-            <name>$PROJ_DIR$\lib\src\stm8s_tim5.c</name>
-            <outputs>
-                <tool>
-                    <name>ICCSTM8</name>
-                    <file> 89</file>
-                </tool>
-                <tool>
-                    <name>__cstat</name>
-                    <file> 77</file>
-                </tool>
-                <tool>
-                    <name>BICOMP</name>
-                    <file> 111</file>
-                </tool>
-            </outputs>
-            <inputs>
-                <tool>
-                    <name>ICCSTM8</name>
-                    <file> 24 67 158 189 29 161 31 46 71 86 137 61 28 188 135 124 112 133 26 22 92</file>
-                </tool>
-                <tool>
-                    <name>BICOMP</name>
-                    <file> 22 92 137 67 31 135 29 71 28 112 24 158 161 46 86 61 188 124 133</file>
-                </tool>
-            </inputs>
-        </file>
-        <file>
-            <name>$PROJ_DIR$\lib\src\stm8s_i2c.c</name>
-            <outputs>
-                <tool>
-                    <name>ICCSTM8</name>
-                    <file> 176</file>
-                </tool>
-                <tool>
-                    <name>__cstat</name>
-                    <file> 14</file>
-                </tool>
-                <tool>
-                    <name>BICOMP</name>
-                    <file> 32</file>
-                </tool>
-            </outputs>
-            <inputs>
-                <tool>
-                    <name>ICCSTM8</name>
-                    <file> 137 67 158 189 29 161 31 46 71 86 61 28 188 135 124 112 133 26 22 92</file>
-                </tool>
-                <tool>
-                    <name>BICOMP</name>
-                    <file> 137 67 31 135 92 29 71 28 112 22 158 189 161 46 86 61 188 124 133 26</file>
-                </tool>
-            </inputs>
-        </file>
-        <file>
-            <name>$PROJ_DIR$\lib\src\stm8s_uart1.c</name>
-            <outputs>
-                <tool>
-                    <name>ICCSTM8</name>
-                    <file> 115</file>
-                </tool>
-                <tool>
-                    <name>__cstat</name>
-                    <file> 114</file>
-                </tool>
-                <tool>
-                    <name>BICOMP</name>
-                    <file> 170</file>
-                </tool>
-            </outputs>
-            <inputs>
-                <tool>
-                    <name>ICCSTM8</name>
-                    <file> 26 67 158 189 29 161 31 46 71 86 137 61 28 188 135 124 112 133 22 92</file>
-                </tool>
-                <tool>
-                    <name>BICOMP</name>
-                    <file> 61 189 26 67 158 46 124 161 86 188 133 92 29 31 71 137 28 135 112 22</file>
+                    <file> 74 28 59 80 10 60 12 27 47 50 53 29 8 84 56 70 63 3 15 42</file>
                 </tool>
             </inputs>
         </file>
         <file>
             <name>$PROJ_DIR$\Debug\Exe\tail_light_stm8.out</name>
             <outputs>
-                <tool>
-                    <name>ILINK</name>
-                    <file> 154</file>
-                </tool>
                 <tool>
                     <name>OBJCOPY</name>
-                    <file> 118</file>
+                    <file> 72</file>
                 </tool>
-            </outputs>
-            <inputs>
                 <tool>
                     <name>ILINK</name>
-                    <file> 84 173 95 85 66 169 48 45 15 83 167 165 181 113 184 49 87 94 175 152</file>
-                </tool>
-            </inputs>
-        </file>
-        <file>
-            <name>$PROJ_DIR$\lib\src\stm8s_uart3.c</name>
-            <outputs>
-                <tool>
-                    <name>ICCSTM8</name>
-                    <file> 63</file>
-                </tool>
-                <tool>
-                    <name>__cstat</name>
-                    <file> 145</file>
-                </tool>
-                <tool>
-                    <name>BICOMP</name>
-                    <file> 148</file>
-                </tool>
-            </outputs>
-            <inputs>
-                <tool>
-                    <name>ICCSTM8</name>
-                    <file> 43 67 158 189 29 161 31 46 71 86 137 61 28 188 135 124 112 133 26 22 92</file>
-                </tool>
-                <tool>
-                    <name>BICOMP</name>
-                    <file> 158 133 67 86 161 188 46 61 124 92 29 31 71 137 28 135 112 22 43</file>
-                </tool>
-            </inputs>
-        </file>
-        <file>
-            <name>$PROJ_DIR$\lib\src\stm8s_spi.c</name>
-            <outputs>
-                <tool>
-                    <name>ICCSTM8</name>
-                    <file> 171</file>
-                </tool>
-                <tool>
-                    <name>__cstat</name>
-                    <file> 104</file>
-                </tool>
-                <tool>
-                    <name>BICOMP</name>
-                    <file> 51</file>
-                </tool>
-            </outputs>
-            <inputs>
-                <tool>
-                    <name>ICCSTM8</name>
-                    <file> 135 67 158 189 29 161 31 46 71 86 137 61 28 188 124 112 133 26 22 92</file>
-                </tool>
-                <tool>
-                    <name>BICOMP</name>
-                    <file> 28 29 22 92 71 112 31 137 135 67 158 189 161 46 86 61 188 124 133 26</file>
-                </tool>
-            </inputs>
-        </file>
-        <file>
-            <name>$PROJ_DIR$\lib\src\stm8s_tim3.c</name>
-            <outputs>
-                <tool>
-                    <name>__cstat</name>
-                    <file> 110</file>
-                </tool>
-                <tool>
-                    <name>BICOMP</name>
-                    <file> 47</file>
-                </tool>
-            </outputs>
-            <inputs>
-                <tool>
-                    <name>ICCSTM8</name>
-                    <file> 155 67 158 189 29 161 31 46 71 86 137 61 28 188 135 124 112 133 26 22 92</file>
-                </tool>
-                <tool>
-                    <name>BICOMP</name>
-                    <file> 61 67 46 124 158 161 86 188 133 92 29 31 71 137 28 135 112 22 155</file>
-                </tool>
-            </inputs>
-        </file>
-        <file>
-            <name>$PROJ_DIR$\lib\src\stm8s_uart4.c</name>
-            <outputs>
-                <tool>
-                    <name>ICCSTM8</name>
-                    <file> 126</file>
-                </tool>
-                <tool>
-                    <name>__cstat</name>
-                    <file> 41</file>
-                </tool>
-                <tool>
-                    <name>BICOMP</name>
-                    <file> 76</file>
-                </tool>
-            </outputs>
-            <inputs>
-                <tool>
-                    <name>ICCSTM8</name>
-                    <file> 147 67 158 189 29 161 31 46 71 86 137 61 28 188 135 124 112 133 26 22 92</file>
-                </tool>
-                <tool>
-                    <name>BICOMP</name>
-                    <file> 67 28 29 71 112 92 31 137 135 22 158 161 46 86 61 188 124 133 147</file>
-                </tool>
-            </inputs>
-        </file>
-        <file>
-            <name>$PROJ_DIR$\lib\src\stm8s_tim6.c</name>
-            <outputs>
-                <tool>
-                    <name>ICCSTM8</name>
-                    <file> 44</file>
-                </tool>
-                <tool>
-                    <name>__cstat</name>
-                    <file> 64</file>
-                </tool>
-                <tool>
-                    <name>BICOMP</name>
-                    <file> 187</file>
+                    <file> 61</file>
                 </tool>
             </outputs>
             <inputs>
                 <tool>
-                    <name>ICCSTM8</name>
-                    <file> 186 67 158 189 29 161 31 46 71 86 137 61 28 188 135 124 112 133 26 22 92</file>
-                </tool>
-                <tool>
-                    <name>BICOMP</name>
-                    <file> 86 67 158 133 161 188 46 61 124 92 29 31 71 137 28 135 112 22 186</file>
-                </tool>
-            </inputs>
-        </file>
-        <file>
-            <name>$PROJ_DIR$\lib\src\stm8s_adc2.c</name>
-            <outputs>
-                <tool>
-                    <name>ICCSTM8</name>
-                    <file> 142</file>
-                </tool>
-                <tool>
-                    <name>__cstat</name>
-                    <file> 53</file>
-                </tool>
-                <tool>
-                    <name>BICOMP</name>
-                    <file> 101</file>
-                </tool>
-            </outputs>
-            <inputs>
-                <tool>
-                    <name>ICCSTM8</name>
-                    <file> 52 67 158 189 29 161 31 46 71 86 137 61 28 188 135 124 112 133 26 22 92</file>
-                </tool>
-                <tool>
-                    <name>BICOMP</name>
-                    <file> 86 67 158 133 161 188 46 61 124 92 29 31 71 137 28 135 112 22 52</file>
+                    <name>ILINK</name>
+                    <file> 41 78 45 46 35 76 36 26 17 44 81 85 87 75 86 37 39 40 77 55</file>
                 </tool>
             </inputs>
         </file>
-        <forcedrebuild>
-            <name>$PROJ_DIR$\lib\src\stm8s_can.c</name>
-            <tool>ICCSTM8</tool>
-        </forcedrebuild>
-        <forcedrebuild>
-            <name>$PROJ_DIR$\lib\src\stm8s_uart2.c</name>
-            <tool>ICCSTM8</tool>
-        </forcedrebuild>
-        <forcedrebuild>
-            <name>$PROJ_DIR$\lib\src\stm8s_tim5.c</name>
-            <tool>ICCSTM8</tool>
-        </forcedrebuild>
-        <forcedrebuild>
-            <name>$PROJ_DIR$\lib\src\stm8s_uart3.c</name>
-            <tool>ICCSTM8</tool>
-        </forcedrebuild>
-        <forcedrebuild>
-            <name>$PROJ_DIR$\lib\src\stm8s_tim3.c</name>
-            <tool>ICCSTM8</tool>
-        </forcedrebuild>
-        <forcedrebuild>
-            <name>$PROJ_DIR$\lib\src\stm8s_uart4.c</name>
-            <tool>ICCSTM8</tool>
-        </forcedrebuild>
-        <forcedrebuild>
-            <name>$PROJ_DIR$\lib\src\stm8s_tim6.c</name>
-            <tool>ICCSTM8</tool>
-        </forcedrebuild>
-        <forcedrebuild>
-            <name>$PROJ_DIR$\lib\src\stm8s_adc2.c</name>
-            <tool>ICCSTM8</tool>
-        </forcedrebuild>
     </configuration>
     <configuration>
         <name>Release</name>

+ 0 - 1
usr/inc/sc7a20.h

@@ -37,7 +37,6 @@
 #define SC7A20_REG_TH_INT2      0x36
 #define SC7A20_REG_DELAY_INT2   0x37
 
-
 extern void SC7A20_Write_Byte(uint8_t RAddr, uint8_t WData);
 extern void SC7A20_Read_Byte(uint8_t RAddr, uint8_t *RData);
 extern void SC7A20_Init(void);

+ 1 - 1
usr/inc/tasks.h

@@ -3,7 +3,7 @@
 
 #include "stm8s.h"
 
-extern void taskA(void); //1ms
+extern void taskA(void); //5ms
 extern void taskB(void); //10ms
 extern void taskC(void); //100ms
 extern void Tim4_Isr_CallBack(void);

+ 3 - 1
usr/src/i2c_analog.c

@@ -14,12 +14,14 @@
 // Prototype      : void Delay_5us(void)
 // Description    : ´óÔ¼ÑÓʱ5us
 //--------------------------------------------------------------
-void Delay_5us(void)
+void Delay_5us(void) //6¸önop()´ó¸Å2.5us
 {
   nop();
   nop();
   nop();
   nop();
+  nop();
+  nop();
 }
 
 //--------------------------------------------------------------

+ 3 - 3
usr/src/key.c

@@ -8,9 +8,9 @@
 #define KEY_STATE_2 2
 #define KEY_STATE_3 3
 
-#define SINGLE_KEY_TIME 30   // SINGLE_KEY_TIME = 30MS 判定单击的时间长度,软件消抖
-#define KEY_INTERVAL 300     // KEY_INTERVAL = 300MS 判定双击的时间间隔
-#define LONG_KEY_TIME 1000   // LONG_KEY_TIME = 1.5S 判定长按的时间长度
+#define SINGLE_KEY_TIME 6   // 软件消抖,30ms
+#define KEY_INTERVAL 60     // 判定双击的时间间隔,300ms
+#define LONG_KEY_TIME 200   // 判定长按的时间长度,1000ms
 
 #define N_KEY 0 // no click
 #define S_KEY 1 // single click

+ 12 - 10
usr/src/main.c

@@ -36,10 +36,10 @@
 
 /* Private defines -----------------------------------------------------------*/
 
-uint8_t Flag_1MS;
 uint32_t Global_Timing_Counter;
-uint8_t PeriodCnt_20ms = 0;
-uint8_t PeriodCnt_100ms = 0;
+uint8_t PeriodCnt_5ms;
+uint8_t PeriodCnt_20ms;
+uint8_t PeriodCnt_100ms;
     
 /* Private function prototypes -----------------------------------------------*/
     
@@ -52,29 +52,31 @@ void main(void)
   SC7A20_Init();
   
   /* Task Init */
-  Flag_1MS = FALSE;
   Global_Timing_Counter = 0U;
+  PeriodCnt_5ms = 0;
+  PeriodCnt_20ms = 0;
+  PeriodCnt_100ms = 0;
   
   /* Infinite loop */
   while (1)
   {
-    //1ms
-    if(Flag_1MS == TRUE)
+    //5ms
+    if(PeriodCnt_5ms >= 5)
     {
-      Flag_1MS = FALSE;
-      taskA(); 
+      PeriodCnt_5ms = 0;
+      taskA(); //按键扫描
     }
     //10ms
     if(PeriodCnt_20ms >= 20)
     {
       PeriodCnt_20ms = 0;
-      taskB();
+      taskB(); //加速度读取
     } 
     //100ms
     if(PeriodCnt_100ms >= 100)
     {
       PeriodCnt_100ms = 0;
-      taskC();
+      taskC(); //AD采集,电量指示灯
     }
   }
   

+ 8 - 12
usr/src/sc7a20.c

@@ -87,7 +87,7 @@ int SC7A20_Get_ACCD(uint8_t accd_lsb, uint8_t accd_msb)
     temp >>= 4;
     temp &= 0x0fff;
   }
-  accd = temp * 1; //量程±8g
+  accd = temp * 1; //量程±2g
   return accd;
 }
 
@@ -97,15 +97,11 @@ SC7A20
 void SC7A20_GetInfo(int16_t* x, int16_t* y, int16_t* z)
 {
   //获取三轴数据
-  int x1 = 0, y1 = 0, z1 = 0;
-  uint8_t i = 4;
-  for(i = 4; i > 0; i--)
-  {
-    x1 += SC7A20_Get_ACCD(SC7A20_REG_X_L,SC7A20_REG_X_H);
-    y1 += SC7A20_Get_ACCD(SC7A20_REG_Y_L,SC7A20_REG_Y_H);
-    z1 += SC7A20_Get_ACCD(SC7A20_REG_Z_L,SC7A20_REG_Z_H);
-  }
-  *x = x1 >> 2;
-  *y = y1 >> 2;
-  *z = z1 >> 2;
+  int16_t x1 = 0, y1 = 0, z1 = 0;
+  x1 = SC7A20_Get_ACCD(SC7A20_REG_X_L,SC7A20_REG_X_H);
+  y1 = SC7A20_Get_ACCD(SC7A20_REG_Y_L,SC7A20_REG_Y_H);
+  z1 = SC7A20_Get_ACCD(SC7A20_REG_Z_L,SC7A20_REG_Z_H);
+  *x = x1;
+  *y = y1;
+  *z = z1;
 }

+ 6 - 4
usr/src/stm8s_it.c

@@ -39,10 +39,11 @@
 /* Private variables ---------------------------------------------------------*/
 extern uint16_t AD_Value;
 extern uint8_t AD_FinishFlag;
-extern uint8_t Flag_1MS;
 extern uint32_t Global_Timing_Counter;
+extern uint8_t PeriodCnt_5ms;
 extern uint8_t PeriodCnt_20ms;
 extern uint8_t PeriodCnt_100ms;
+extern void Tim4_Isr_CallBack();
 /* Private function prototypes -----------------------------------------------*/
 /* Private functions ---------------------------------------------------------*/
 /* Public functions ----------------------------------------------------------*/
@@ -470,7 +471,8 @@ INTERRUPT_HANDLER(ADC1_IRQHandler, 22)
   */
   ADC1->CSR &= ~0x80;                               // 转换结束标志位清零  EOC
   //默认左对齐 读数据时先读高高8位 再读低8位
-  AD_Value = (ADC1->DRH << 2) + ADC1->DRL;          // 读出ADC结果的高8位
+  AD_Value = (ADC1->DRH << 2);
+  AD_Value += ADC1->DRL;
   AD_FinishFlag = 1;                                // ADC中断标志 置1
 }
 #endif /* (STM8S208) || (STM8S207) || (STM8AF52Ax) || (STM8AF62Ax) */
@@ -497,8 +499,7 @@ INTERRUPT_HANDLER(TIM4_UPD_OVF_IRQHandler, 23)
 {
   /* In order to detect unexpected events during development,
      it is recommended to set a breakpoint on the following instruction.
-  */
-  Flag_1MS = TRUE;
+  */  
   if(Global_Timing_Counter == 0x9A7EC800) //30days
   {
     Global_Timing_Counter = 0U;
@@ -507,6 +508,7 @@ INTERRUPT_HANDLER(TIM4_UPD_OVF_IRQHandler, 23)
   {
     Global_Timing_Counter++;
   }
+  PeriodCnt_5ms++;
   PeriodCnt_20ms++;
   PeriodCnt_100ms++;
   Tim4_Isr_CallBack();

+ 13 - 6
usr/src/tasks.c

@@ -214,15 +214,10 @@ void Tim4_Isr_CallBack(void)
     Light_DisplayOff();
 }
 
-uint16_t PeriodCnt_1ms = 0;
 /// @brief 任务1
 /// @param 
 void taskA(void)//1ms
 { 
-  PeriodCnt_1ms++;
-  if(PeriodCnt_1ms >= 60000)
-    PeriodCnt_1ms = 0;
-  
   //按键扫描
   KeyPressResult = key_read();
   
@@ -274,6 +269,7 @@ void taskA(void)//1ms
 /// @param  
 void taskB(void)//10ms
 {                                                     
+  static uint8_t BreakFlagCnt = 0;
   //读取三轴传感器
   do
   {
@@ -304,7 +300,7 @@ void taskB(void)//10ms
       }      
             
       //刹车功能开启计时
-      if(Global_Timing_Counter - Break_EnaDelayCnt > 3000)
+      if(Global_Timing_Counter - Break_EnaDelayCnt > 5000)
       {
         Break_EnaFlag = 1;
       }
@@ -313,14 +309,24 @@ void taskB(void)//10ms
       if(Break_EnaFlag == 1)
       {
         if((AccAvg_z_New - AccAvg_z_Old) < -100) // 刹车z轴负方向变化,z轴水平,20km/h在5s内刹停,gz=20000/3600/5/9.8=113mg
+        {
+          BreakFlagCnt++;
+        }
+        else
+        {
+          BreakFlagCnt = 0;
+        }
+        if(BreakFlagCnt > 10)
         {
           BreakFlag = 1;
+          BreakFlagCnt = 0;
           Light_ModeBreak_PeriodCnt = 0;
         }
       }      
       else
       {
         BreakFlag = 0;
+        BreakFlagCnt = 0;
       }
       
       //更新数值
@@ -332,6 +338,7 @@ void taskB(void)//10ms
     {
       ShakeTimeCnt = Global_Timing_Counter;
       BreakFlag = 0;
+      BreakFlagCnt = 0;
     }
   }while(0);
   

Неке датотеке нису приказане због велике количине промена