diff --git a/Leuchtklotz/Leuchtklotz.atsuo b/Leuchtklotz/Leuchtklotz.atsuo index c50367c..144bfaa 100644 Binary files a/Leuchtklotz/Leuchtklotz.atsuo and b/Leuchtklotz/Leuchtklotz.atsuo differ diff --git a/Leuchtklotz/Leuchtklotz/Debug/Leuchtklotz.elf b/Leuchtklotz/Leuchtklotz/Debug/Leuchtklotz.elf index 598d7b2..3455e65 100644 Binary files a/Leuchtklotz/Leuchtklotz/Debug/Leuchtklotz.elf and b/Leuchtklotz/Leuchtklotz/Debug/Leuchtklotz.elf differ diff --git a/Leuchtklotz/Leuchtklotz/Debug/Leuchtklotz.hex b/Leuchtklotz/Leuchtklotz/Debug/Leuchtklotz.hex index 537c9e4..e4b44dc 100644 --- a/Leuchtklotz/Leuchtklotz/Debug/Leuchtklotz.hex +++ b/Leuchtklotz/Leuchtklotz/Debug/Leuchtklotz.hex @@ -1,57 +1,67 @@ :1000000014C021C020C01FC01EC01DC01CC01BC00A :100010001AC019C018C017C016C015C014C013C02C :1000200012C011C010C00FC00EC011241FBECFEDF2 -:10003000CDBF20E0A0E6B0E001C01D92A336B2071C -:10004000E1F78FD194C1DCCF6770772780FF06C0BE +:10003000CDBF20E0A0E6B0E001C01D92A036B2071F +:10004000E1F7E2D1E7C1DCCF6770772780FF06C018 :1000500098B3987F98BB98B3962B98BB81FF0DC03F :1000600098B3977C98BB98B39B01220F331F220F44 :10007000331F220F331F292B28BB82FF06C092B3E8 :10008000987F92BB92B3962B92BB83FF0CC082B336 :10009000877C82BB82B3660F771F660F771F660F60 -:1000A000771F682B62BB08956F927F928F929F9209 -:1000B000AF92BF92CF92DF92EF92FF920F931F9376 -:1000C000CF93DF934C015B016A017901C0E0D0E07E -:1000D00001E010E0612C712CC801CA15DB050CF0A1 -:1000E000C301BC01CC15DD050CF46260CE15DF0543 -:1000F0000CF46460C401A8DF2196CF3FD10561F7FD -:10010000DF91CF911F910F91FF90EF90DF90CF90F3 -:10011000BF90AF909F908F907F906F9008952F9297 -:100120003F924F925F926F927F928F929F92AF9287 -:10013000BF92CF92DF92EF92FF920F931F93CF93D4 -:10014000DF938C014B016A013901E12CF12C312C38 -:10015000212C2CC0C42DD52DB401C80175DF2196EA -:10016000CF3FD105C9F71E141F044CF4C32DD22D67 -:10017000B601C80169DF2196CE15DF05C9F78FEFFB -:10018000A81AB80AA614B70429F409C0A12CB12CE6 -:100190004E2C5F2C8FEFE816F104E4F2E4CF8FEFE2 -:1001A000E81AF80A8FEFE816F10421F01614170484 -:1001B0006CF3F5CFDF91CF911F910F91FF90EF90EE -:1001C000DF90CF90BF90AF909F908F907F906F9077 -:1001D0005F904F903F902F90089566E070E085E02B -:1001E00090E032DF2FE788E391E02150804090409B -:1001F000E1F700C0000060E070E085E090E024DFFF -:100200002FE784E89EE1215080409040E1F700C054 -:10021000000066E070E08FE090E016DF8FE493EC82 -:100220000197F1F700C0000060E070E08FE090E01F -:100230000BDF9FE72AE186E0915020408040E1F704 -:1002400000C0000066E070E08FE090E0FDDE9FE718 -:1002500028E381E0915020408040E1F700C0000099 -:1002600060E070E08FE090E0EFDE9FE72AE186E05B -:10027000915020408040E1F700C0000066E070E04F -:100280008FE090E0E1DE9FEB24ED81E09150204093 -:100290008040E1F700C0000060E070E08FE090E097 -:1002A000D3DE9FEF28E08DE3915020408040E1F7BE -:1002B00000C0000024E130E047E050E066E070E07C -:1002C0008FE090E02CDF089560E070E08FE090E038 -:1002D000BBDEB7990EC0809162008F5F8093620091 -:1002E0002FE78AE196E0215080409040E1F700C07E -:1002F0000000B6990EC0809160008F5F809360000F -:100300002FE78AE196E0215080409040E1F700C05D -:10031000000086990EC0809161008F5F809361001C -:100320002FE78AE196E0215080409040E1F700C03D -:10033000000020916100409160006091620030E017 -:1003400050E070E08FE090E0AFDEC3CF88B3806C08 -:1003500088BB969A8FE493EC0197F1F700C00000F8 -:1003600008958FE387BB81BBF1DF37DFADDFF89402 -:02037000FFCFBD +:1000A000771F682B62BB08952F923F924F925F9209 +:1000B0006F927F928F929F92AF92BF92CF92DF9278 +:1000C000EF92FF920F931F93CF93DF938C014B011D +:1000D0006A013901E12CF12C312C212C2CC0C42DCA +:1000E000D52DB401C801B0DF2196CF3FD105C9F7A6 +:1000F0001E141F044CF4C32DD22DB601C801A4DF79 +:100100002196CE15DF05C9F78FEFA81AB80AA614F5 +:10011000B70429F409C0A12CB12C4E2C5F2C8FEF11 +:10012000E816F104E4F2E4CF8FEFE81AF80A8FEF53 +:10013000E816F10421F0161417046CF3F5CFDF91E3 +:10014000CF911F910F91FF90EF90DF90CF90BF90D4 +:10015000AF909F908F907F906F905F904F903F9067 +:100160002F90089566E070E085E090E06DDF2FE766 +:1001700088E391E0215080409040E1F700C000000A +:1001800060E070E085E090E05FDF2FE784E89EE1CB +:10019000215080409040E1F700C0000066E070E030 +:1001A0008FE090E051DF8FE493EC0197F1F700C00E +:1001B000000060E070E08FE090E046DF9FE72AE11A +:1001C00086E0915020408040E1F700C0000066E0EA +:1001D00070E08FE090E038DF9FE728E381E0915006 +:1001E00020408040E1F700C0000060E070E08FE058 +:1001F00090E02ADF9FE72AE186E09150204080408E +:10020000E1F700C0000066E070E08FE090E01CDFE6 +:100210009FEB24ED81E0915020408040E1F700C049 +:10022000000060E070E08FE090E00EDF9FEF28E0DC +:100230008DE3915020408040E1F700C0000024E1B0 +:1002400030E047E050E066E070E08FE090E02CDFC7 +:1002500060E070E08FE090E0F7DE089588B3806C96 +:1002600088BB969A8FE493EC0197F1F700C00000E9 +:10027000089560E070E08FE090E0E6DE2FE78DE823 +:100280009BE5215080409040E1F700C0000067E00E +:1002900070E08FE090E0D8DE2FEF8AE197EB2150FD +:1002A00080409040E1F700C0000014E1DAE063E034 +:1002B00070E08FE090E0C8DE2FEF8AE197EB2150ED +:1002C00080409040E1F700C000002FEF8AE197EBFB +:1002D000215080409040E1F700C000002FEF8AE1FC +:1002E00097EB215080409040E1F700C000002FEFD5 +:1002F00088E09DE3215080409040E1F700C000007D +:10030000C12F60E070E08FE090E09EDE2FE38DE093 +:1003100093E0215080409040E1F700C0000063E08E +:1003200070E08FE090E090DE2FE38DE093E02150CD +:1003300080409040E1F700C00000C15011F762E03A +:1003400070E08FE090E080DE2FE786E998E92150A9 +:1003500080409040E1F700C0000063E070E08FE073 +:1003600090E072DE2FEF8AE197EB215080409040C1 +:10037000E1F700C000002FEF8AE197EB21508040A9 +:100380009040E1F700C000002FEF8AE197EB215089 +:1003900080409040E1F700C000002FEF88E09DE32F +:1003A000215080409040E1F700C00000CD2F60E078 +:1003B00070E08FE090E048DE2FE38DE093E0215085 +:1003C00080409040E1F700C0000063E070E08FE003 +:1003D00090E03ADE2FE38DE093E0215080409040A2 +:1003E000E1F700C00000C15011F761E070E08FE05C +:1003F00090E02ADE2FE786E998E92150804090407E +:10040000E1F700C0000053CF8FE387BB81BB26DF3D +:08041000A9DE2FDFF894FFCFF5 :00000001FF diff --git a/Leuchtklotz/Leuchtklotz/Debug/Leuchtklotz.lss b/Leuchtklotz/Leuchtklotz/Debug/Leuchtklotz.lss index 352dc01..f57ea07 100644 --- a/Leuchtklotz/Leuchtklotz/Debug/Leuchtklotz.lss +++ b/Leuchtklotz/Leuchtklotz/Debug/Leuchtklotz.lss @@ -3,33 +3,31 @@ Leuchtklotz.elf: file format elf32-avr Sections: Idx Name Size VMA LMA File off Algn - 0 .text 00000372 00000000 00000000 00000094 2**1 + 0 .text 00000418 00000000 00000000 00000074 2**1 CONTENTS, ALLOC, LOAD, READONLY, CODE - 1 .data 00000000 00800060 00000372 00000406 2**0 + 1 .data 00000000 00800060 00000418 0000048c 2**0 CONTENTS, ALLOC, LOAD, DATA - 2 .bss 00000003 00800060 00800060 00000406 2**0 - ALLOC - 3 .stab 000006b4 00000000 00000000 00000408 2**2 + 2 .stab 000006b4 00000000 00000000 0000048c 2**2 CONTENTS, READONLY, DEBUGGING - 4 .stabstr 00000082 00000000 00000000 00000abc 2**0 + 3 .stabstr 00000082 00000000 00000000 00000b40 2**0 CONTENTS, READONLY, DEBUGGING - 5 .comment 0000002f 00000000 00000000 00000b3e 2**0 + 4 .comment 0000002f 00000000 00000000 00000bc2 2**0 CONTENTS, READONLY - 6 .debug_aranges 00000068 00000000 00000000 00000b6d 2**0 + 5 .debug_aranges 00000078 00000000 00000000 00000bf1 2**0 CONTENTS, READONLY, DEBUGGING - 7 .debug_info 00000f1a 00000000 00000000 00000bd5 2**0 + 6 .debug_info 00001935 00000000 00000000 00000c69 2**0 CONTENTS, READONLY, DEBUGGING - 8 .debug_abbrev 000001dd 00000000 00000000 00001aef 2**0 + 7 .debug_abbrev 0000020e 00000000 00000000 0000259e 2**0 CONTENTS, READONLY, DEBUGGING - 9 .debug_line 000003f8 00000000 00000000 00001ccc 2**0 + 8 .debug_line 0000059c 00000000 00000000 000027ac 2**0 CONTENTS, READONLY, DEBUGGING - 10 .debug_frame 00000158 00000000 00000000 000020c4 2**2 + 9 .debug_frame 00000178 00000000 00000000 00002d48 2**2 CONTENTS, READONLY, DEBUGGING - 11 .debug_str 00000182 00000000 00000000 0000221c 2**0 + 10 .debug_str 000001a1 00000000 00000000 00002ec0 2**0 CONTENTS, READONLY, DEBUGGING - 12 .debug_loc 000005fd 00000000 00000000 0000239e 2**0 + 11 .debug_loc 00000643 00000000 00000000 00003061 2**0 CONTENTS, READONLY, DEBUGGING - 13 .debug_ranges 000000b8 00000000 00000000 0000299b 2**0 + 12 .debug_ranges 00000128 00000000 00000000 000036a4 2**0 CONTENTS, READONLY, DEBUGGING Disassembly of section .text: @@ -73,42 +71,36 @@ Disassembly of section .text: 3a: 1d 92 st X+, r1 0000003c <.do_clear_bss_start>: - 3c: a3 36 cpi r26, 0x63 ; 99 + 3c: a0 36 cpi r26, 0x60 ; 96 3e: b2 07 cpc r27, r18 40: e1 f7 brne .-8 ; 0x3a <.do_clear_bss_loop> - 42: 8f d1 rcall .+798 ; 0x362
- 44: 94 c1 rjmp .+808 ; 0x36e <_exit> + 42: e2 d1 rcall .+964 ; 0x408
+ 44: e7 c1 rjmp .+974 ; 0x414 <_exit> 00000046 <__bad_interrupt>: 46: dc cf rjmp .-72 ; 0x0 <__vectors> 00000048 : - { - rgbl(LED4, 0, 0, 0); - } - for (int i=0;i<80;i++) - { - rgbl(LED4, 0, 50, 200); + #else + //round up by default + __ticks_dc = (uint32_t)(ceil(fabs(__tmp))); + #endif + + __builtin_avr_delay_cycles(__ticks_dc); 48: 67 70 andi r22, 0x07 ; 7 4a: 77 27 eor r23, r23 4c: 80 ff sbrs r24, 0 4e: 06 c0 rjmp .+12 ; 0x5c 50: 98 b3 in r25, 0x18 ; 24 - } - for (int i=0;i<80;i++) - { - rgbl(LED4, 0, 0, 0); - } - for (int i=0;i<80;i++) 52: 98 7f andi r25, 0xF8 ; 248 + _delay_ms(WAIT_WARN_BLINK); + ledg(LED2 | LED4, BLACK); + _delay_ms(WAIT_WARN_BLINK); + ledg(LED2 | LED4, YELLOW); + _delay_ms(WAIT_WARN_BLINK); + ledg(LED2 | LED4, BLACK); 54: 98 bb out 0x18, r25 ; 24 56: 98 b3 in r25, 0x18 ; 24 - { - rgbl(LED4, 0, 50, 200); - } - for (int i=0;i<80;i++) - { - rgbl(LED4, 0, 0, 0); 58: 96 2b or r25, r22 5a: 98 bb out 0x18, r25 ; 24 5c: 81 ff sbrs r24, 1 @@ -119,21 +111,11 @@ Disassembly of section .text: 66: 98 b3 in r25, 0x18 ; 24 68: 9b 01 movw r18, r22 6a: 22 0f add r18, r18 - } - for (int i=0;i<80;i++) - { - rgbl(LED4, 0, 50, 200); - } - for (int i=0;i<80;i++) 6c: 33 1f adc r19, r19 6e: 22 0f add r18, r18 + _delay_ms(WAIT_WARN_BLINK); + ledg(LED2 | LED4, YELLOW); 70: 33 1f adc r19, r19 - { - rgbl(LED4, 0, 0, 0); - } - for (int i=0;i<80;i++) - { - rgbl(LED4, 0, 50, 200); 72: 22 0f add r18, r18 74: 33 1f adc r19, r19 76: 29 2b or r18, r25 @@ -144,21 +126,11 @@ Disassembly of section .text: 80: 98 7f andi r25, 0xF8 ; 248 82: 92 bb out 0x12, r25 ; 18 84: 92 b3 in r25, 0x12 ; 18 - } - for (int i=0;i<80;i++) - { - rgbl(LED4, 0, 0, 0); - } - for (int i=0;i<80;i++) 86: 96 2b or r25, r22 88: 92 bb out 0x12, r25 ; 18 8a: 83 ff sbrs r24, 3 - { - rgbl(LED4, 0, 50, 200); - } - for (int i=0;i<80;i++) - { - rgbl(LED4, 0, 0, 0); + _delay_ms(WAIT_WARN_BLINK); + ledg(LED2 | LED4, BLACK); 8c: 0c c0 rjmp .+24 ; 0xa6 8e: 82 b3 in r24, 0x12 ; 18 90: 87 7c andi r24, 0xC7 ; 199 @@ -169,580 +141,576 @@ Disassembly of section .text: 9a: 66 0f add r22, r22 9c: 77 1f adc r23, r23 9e: 66 0f add r22, r22 - } - for (int i=0;i<80;i++) - { - rgbl(LED4, 0, 50, 200); - } - for (int i=0;i<80;i++) a0: 77 1f adc r23, r23 a2: 68 2b or r22, r24 a4: 62 bb out 0x12, r22 ; 18 - { - rgbl(LED4, 0, 0, 0); - } - for (int i=0;i<80;i++) - { - rgbl(LED2, 200, 10, 0); a6: 08 95 ret -000000a8 : - a8: 6f 92 push r6 - aa: 7f 92 push r7 - ac: 8f 92 push r8 - ae: 9f 92 push r9 - b0: af 92 push r10 - b2: bf 92 push r11 - b4: cf 92 push r12 - b6: df 92 push r13 - b8: ef 92 push r14 - } - for (int i=0;i<80;i++) - { - rgbl(LED4, 0, 0, 0); - } - for (int i=0;i<80;i++) - ba: ff 92 push r15 - bc: 0f 93 push r16 - be: 1f 93 push r17 - { - rgbl(LED2, 200, 10, 0); - } - for (int i=0;i<80;i++) - { - rgbl(LED2, 0, 0, 0); - c0: cf 93 push r28 - c2: df 93 push r29 - c4: 4c 01 movw r8, r24 - c6: 5b 01 movw r10, r22 - c8: 6a 01 movw r12, r20 - ca: 79 01 movw r14, r18 - cc: c0 e0 ldi r28, 0x00 ; 0 - ce: d0 e0 ldi r29, 0x00 ; 0 - d0: 01 e0 ldi r16, 0x01 ; 1 - d2: 10 e0 ldi r17, 0x00 ; 0 - } - for (int i=0;i<80;i++) - { - rgbl(LED2, 200, 10, 0); - } - for (int i=0;i<80;i++) - d4: 61 2c mov r6, r1 - d6: 71 2c mov r7, r1 - d8: c8 01 movw r24, r16 - { - rgbl(LED2, 0, 0, 0); - } - for (int i=0;i<80;i++) - { - rgbl(LED2, 200, 10, 0); - da: ca 15 cp r28, r10 - dc: db 05 cpc r29, r11 - de: 0c f0 brlt .+2 ; 0xe2 <__stack+0x3> - e0: c3 01 movw r24, r6 - e2: bc 01 movw r22, r24 - e4: cc 15 cp r28, r12 - e6: dd 05 cpc r29, r13 - e8: 0c f4 brge .+2 ; 0xec <__stack+0xd> - ea: 62 60 ori r22, 0x02 ; 2 - ec: ce 15 cp r28, r14 - } - for (int i=0;i<80;i++) - { - rgbl(LED2, 0, 0, 0); - } - for (int i=0;i<80;i++) - ee: df 05 cpc r29, r15 - f0: 0c f4 brge .+2 ; 0xf4 <__stack+0x15> - f2: 64 60 ori r22, 0x04 ; 4 - { - rgbl(LED2, 200, 10, 0); - } - for (int i=0;i<80;i++) - { - rgbl(LED2, 0, 0, 0); - f4: c4 01 movw r24, r8 - f6: a8 df rcall .-176 ; 0x48 - f8: 21 96 adiw r28, 0x01 ; 1 - fa: cf 3f cpi r28, 0xFF ; 255 - fc: d1 05 cpc r29, r1 - fe: 61 f7 brne .-40 ; 0xd8 - 100: df 91 pop r29 - 102: cf 91 pop r28 - 104: 1f 91 pop r17 - 106: 0f 91 pop r16 - } - for (int i=0;i<80;i++) - { - rgbl(LED2, 200, 10, 0); - } - for (int i=0;i<80;i++) - 108: ff 90 pop r15 - 10a: ef 90 pop r14 - 10c: df 90 pop r13 - { - rgbl(LED2, 0, 0, 0); - } - for (int i=0;i<80;i++) - { - rgbl(LED2, 200, 10, 0); - 10e: cf 90 pop r12 - 110: bf 90 pop r11 - 112: af 90 pop r10 - 114: 9f 90 pop r9 - 116: 8f 90 pop r8 - 118: 7f 90 pop r7 - 11a: 6f 90 pop r6 - 11c: 08 95 ret - -0000011e : - 11e: 2f 92 push r2 - 120: 3f 92 push r3 - } - for (int i=0;i<80;i++) - { - rgbl(LED2, 0, 0, 0); - } - for (int i=0;i<80;i++) - 122: 4f 92 push r4 - 124: 5f 92 push r5 - 126: 6f 92 push r6 - { - rgbl(LED2, 200, 10, 0); - } - for (int i=0;i<80;i++) - { - rgbl(LED2, 0, 0, 0); - 128: 7f 92 push r7 - 12a: 8f 92 push r8 - 12c: 9f 92 push r9 - 12e: af 92 push r10 - 130: bf 92 push r11 - 132: cf 92 push r12 - 134: df 92 push r13 - 136: ef 92 push r14 - 138: ff 92 push r15 - 13a: 0f 93 push r16 - } - for (int i=0;i<80;i++) - { - rgbl(LED2, 200, 10, 0); - } - for (int i=0;i<80;i++) - 13c: 1f 93 push r17 -} - -void programCop() -{ - while(1) { - for (int i=0;i<80;i++) - 13e: cf 93 push r28 - 140: df 93 push r29 - 142: 8c 01 movw r16, r24 - } - ledg(led,rgb); - } -} - -void fade(int led, int from, int to, int dur) { - 144: 4b 01 movw r8, r22 - 146: 6a 01 movw r12, r20 - 148: 39 01 movw r6, r18 - for (int i=0;i<0xFF;i++) - 14a: e1 2c mov r14, r1 - 14c: f1 2c mov r15, r1 - for(int k=0;k - -void fade(int led, int from, int to, int dur) { - for (int i=0;i<0xFF;i++) - { - for(int k=0;k - -void fade(int led, int from, int to, int dur) { - for (int i=0;i<0xFF;i++) - { - for(int k=0;k - { - ledg(led,from); - } - for (int j=0;j - 16c: c3 2d mov r28, r3 - 16e: d2 2d mov r29, r2 - { - ledg(led,to); - 170: b6 01 movw r22, r12 - 172: c8 01 movw r24, r16 - 174: 69 df rcall .-302 ; 0x48 - for(int k=0;k -} - -void fade(int led, int from, int to, int dur) { - for (int i=0;i<0xFF;i++) - { - for(int k=0;k - 18a: 09 c0 rjmp .+18 ; 0x19e - 18c: a1 2c mov r10, r1 - 18e: b1 2c mov r11, r1 - for (int j=i;j<0xFF;j++) - 190: 4e 2c mov r4, r14 - 192: 5f 2c mov r5, r15 - 194: 8f ef ldi r24, 0xFF ; 255 - 196: e8 16 cp r14, r24 - 198: f1 04 cpc r15, r1 - 19a: e4 f2 brlt .-72 ; 0x154 - 19c: e4 cf rjmp .-56 ; 0x166 - ledg(led,rgb); - } -} - -void fade(int led, int from, int to, int dur) { - for (int i=0;i<0xFF;i++) - 19e: 8f ef ldi r24, 0xFF ; 255 - 1a0: e8 1a sub r14, r24 - 1a2: f8 0a sbc r15, r24 - 1a4: 8f ef ldi r24, 0xFF ; 255 - 1a6: e8 16 cp r14, r24 - 1a8: f1 04 cpc r15, r1 - 1aa: 21 f0 breq .+8 ; 0x1b4 - { - for(int k=0;k - 1b2: f5 cf rjmp .-22 ; 0x19e +000000a8 : + _delay_ms(WAIT_WARN_BLINK); + ledg(LED3, RED); + a8: 2f 92 push r2 + aa: 3f 92 push r3 + ac: 4f 92 push r4 + ae: 5f 92 push r5 + b0: 6f 92 push r6 + b2: 7f 92 push r7 + b4: 8f 92 push r8 + b6: 9f 92 push r9 + b8: af 92 push r10 + ba: bf 92 push r11 + bc: cf 92 push r12 + be: df 92 push r13 + c0: ef 92 push r14 + c2: ff 92 push r15 + _delay_ms(WAIT_WARN_BLINK); + ledg(LED3, BLACK); + c4: 0f 93 push r16 + c6: 1f 93 push r17 + c8: cf 93 push r28 + ca: df 93 push r29 + cc: 8c 01 movw r16, r24 + ce: 4b 01 movw r8, r22 + d0: 6a 01 movw r12, r20 + d2: 39 01 movw r6, r18 + d4: e1 2c mov r14, r1 + d6: f1 2c mov r15, r1 + d8: 31 2c mov r3, r1 + da: 21 2c mov r2, r1 + dc: 2c c0 rjmp .+88 ; 0x136 <__stack+0x57> + de: c4 2d mov r28, r4 + _delay_ms(WAIT_WARN_BLINK); + ledg(LED3, RED); + e0: d5 2d mov r29, r5 + e2: b4 01 movw r22, r8 + e4: c8 01 movw r24, r16 + e6: b0 df rcall .-160 ; 0x48 + e8: 21 96 adiw r28, 0x01 ; 1 + ea: cf 3f cpi r28, 0xFF ; 255 + ec: d1 05 cpc r29, r1 + ee: c9 f7 brne .-14 ; 0xe2 <__stack+0x3> + f0: 1e 14 cp r1, r14 + f2: 1f 04 cpc r1, r15 + f4: 4c f4 brge .+18 ; 0x108 <__stack+0x29> + f6: c3 2d mov r28, r3 + f8: d2 2d mov r29, r2 + fa: b6 01 movw r22, r12 + _delay_ms(WAIT_WARN_BLINK); + ledg(LED3, BLACK); + fc: c8 01 movw r24, r16 + fe: a4 df rcall .-184 ; 0x48 + 100: 21 96 adiw r28, 0x01 ; 1 + 102: ce 15 cp r28, r14 + 104: df 05 cpc r29, r15 + 106: c9 f7 brne .-14 ; 0xfa <__stack+0x1b> + 108: 8f ef ldi r24, 0xFF ; 255 + 10a: a8 1a sub r10, r24 + 10c: b8 0a sbc r11, r24 + 10e: a6 14 cp r10, r6 + 110: b7 04 cpc r11, r7 + 112: 29 f4 brne .+10 ; 0x11e <__stack+0x3f> + 114: 09 c0 rjmp .+18 ; 0x128 <__stack+0x49> + 116: a1 2c mov r10, r1 + _delay_ms(WAIT_WARN_BLINK); + ledg(LED3, RED); + 118: b1 2c mov r11, r1 + 11a: 4e 2c mov r4, r14 + 11c: 5f 2c mov r5, r15 + 11e: 8f ef ldi r24, 0xFF ; 255 + 120: e8 16 cp r14, r24 + 122: f1 04 cpc r15, r1 + 124: e4 f2 brlt .-72 ; 0xde + 126: e4 cf rjmp .-56 ; 0xf0 <__stack+0x11> + 128: 8f ef ldi r24, 0xFF ; 255 + 12a: e8 1a sub r14, r24 + 12c: f8 0a sbc r15, r24 + 12e: 8f ef ldi r24, 0xFF ; 255 + 130: e8 16 cp r14, r24 + 132: f1 04 cpc r15, r1 + _delay_ms(WAIT_WARN_BLINK); + ledg(LED3, BLACK); + 134: 21 f0 breq .+8 ; 0x13e <__stack+0x5f> + 136: 16 14 cp r1, r6 + 138: 17 04 cpc r1, r7 + 13a: 6c f3 brlt .-38 ; 0x116 <__stack+0x37> + 13c: f5 cf rjmp .-22 ; 0x128 <__stack+0x49> + 13e: df 91 pop r29 + 140: cf 91 pop r28 + 142: 1f 91 pop r17 + 144: 0f 91 pop r16 + 146: ff 90 pop r15 + 148: ef 90 pop r14 + 14a: df 90 pop r13 + 14c: cf 90 pop r12 + 14e: bf 90 pop r11 + 150: af 90 pop r10 { ledg(led,to); } } } } - 1b4: df 91 pop r29 - 1b6: cf 91 pop r28 - 1b8: 1f 91 pop r17 - 1ba: 0f 91 pop r16 - 1bc: ff 90 pop r15 - 1be: ef 90 pop r14 - 1c0: df 90 pop r13 - 1c2: cf 90 pop r12 - 1c4: bf 90 pop r11 - 1c6: af 90 pop r10 - 1c8: 9f 90 pop r9 - 1ca: 8f 90 pop r8 - 1cc: 7f 90 pop r7 - 1ce: 6f 90 pop r6 - 1d0: 5f 90 pop r5 - 1d2: 4f 90 pop r4 - 1d4: 3f 90 pop r3 - 1d6: 2f 90 pop r2 - 1d8: 08 95 ret + 152: 9f 90 pop r9 + 154: 8f 90 pop r8 + 156: 7f 90 pop r7 + 158: 6f 90 pop r6 + 15a: 5f 90 pop r5 + 15c: 4f 90 pop r4 + 15e: 3f 90 pop r3 + 160: 2f 90 pop r2 + 162: 08 95 ret -000001da : +00000164 : void initleds() { ledg(LED1 | LED3, CYAN); - 1da: 66 e0 ldi r22, 0x06 ; 6 - 1dc: 70 e0 ldi r23, 0x00 ; 0 - 1de: 85 e0 ldi r24, 0x05 ; 5 - 1e0: 90 e0 ldi r25, 0x00 ; 0 - 1e2: 32 df rcall .-412 ; 0x48 - #else - //round up by default - __ticks_dc = (uint32_t)(ceil(fabs(__tmp))); - #endif - - __builtin_avr_delay_cycles(__ticks_dc); - 1e4: 2f e7 ldi r18, 0x7F ; 127 - 1e6: 88 e3 ldi r24, 0x38 ; 56 - 1e8: 91 e0 ldi r25, 0x01 ; 1 - 1ea: 21 50 subi r18, 0x01 ; 1 - 1ec: 80 40 sbci r24, 0x00 ; 0 - 1ee: 90 40 sbci r25, 0x00 ; 0 - 1f0: e1 f7 brne .-8 ; 0x1ea - 1f2: 00 c0 rjmp .+0 ; 0x1f4 - 1f4: 00 00 nop + 164: 66 e0 ldi r22, 0x06 ; 6 + 166: 70 e0 ldi r23, 0x00 ; 0 + 168: 85 e0 ldi r24, 0x05 ; 5 + 16a: 90 e0 ldi r25, 0x00 ; 0 + 16c: 6d df rcall .-294 ; 0x48 + 16e: 2f e7 ldi r18, 0x7F ; 127 + 170: 88 e3 ldi r24, 0x38 ; 56 + 172: 91 e0 ldi r25, 0x01 ; 1 + 174: 21 50 subi r18, 0x01 ; 1 + 176: 80 40 sbci r24, 0x00 ; 0 + 178: 90 40 sbci r25, 0x00 ; 0 + 17a: e1 f7 brne .-8 ; 0x174 + 17c: 00 c0 rjmp .+0 ; 0x17e + 17e: 00 00 nop _delay_ms(20); ledg(LED1 | LED3, BLACK); - 1f6: 60 e0 ldi r22, 0x00 ; 0 - 1f8: 70 e0 ldi r23, 0x00 ; 0 - 1fa: 85 e0 ldi r24, 0x05 ; 5 - 1fc: 90 e0 ldi r25, 0x00 ; 0 - 1fe: 24 df rcall .-440 ; 0x48 - 200: 2f e7 ldi r18, 0x7F ; 127 - 202: 84 e8 ldi r24, 0x84 ; 132 - 204: 9e e1 ldi r25, 0x1E ; 30 - 206: 21 50 subi r18, 0x01 ; 1 - 208: 80 40 sbci r24, 0x00 ; 0 - 20a: 90 40 sbci r25, 0x00 ; 0 - 20c: e1 f7 brne .-8 ; 0x206 - 20e: 00 c0 rjmp .+0 ; 0x210 - 210: 00 00 nop + 180: 60 e0 ldi r22, 0x00 ; 0 + 182: 70 e0 ldi r23, 0x00 ; 0 + 184: 85 e0 ldi r24, 0x05 ; 5 + 186: 90 e0 ldi r25, 0x00 ; 0 + 188: 5f df rcall .-322 ; 0x48 + 18a: 2f e7 ldi r18, 0x7F ; 127 + 18c: 84 e8 ldi r24, 0x84 ; 132 + 18e: 9e e1 ldi r25, 0x1E ; 30 + 190: 21 50 subi r18, 0x01 ; 1 + 192: 80 40 sbci r24, 0x00 ; 0 + 194: 90 40 sbci r25, 0x00 ; 0 + 196: e1 f7 brne .-8 ; 0x190 + 198: 00 c0 rjmp .+0 ; 0x19a + 19a: 00 00 nop _delay_ms(500); ledg(LED1 | LED2 | LED3 | LED4, CYAN); - 212: 66 e0 ldi r22, 0x06 ; 6 - 214: 70 e0 ldi r23, 0x00 ; 0 - 216: 8f e0 ldi r24, 0x0F ; 15 - 218: 90 e0 ldi r25, 0x00 ; 0 - 21a: 16 df rcall .-468 ; 0x48 - 21c: 8f e4 ldi r24, 0x4F ; 79 - 21e: 93 ec ldi r25, 0xC3 ; 195 - 220: 01 97 sbiw r24, 0x01 ; 1 - 222: f1 f7 brne .-4 ; 0x220 - 224: 00 c0 rjmp .+0 ; 0x226 - 226: 00 00 nop + 19c: 66 e0 ldi r22, 0x06 ; 6 + 19e: 70 e0 ldi r23, 0x00 ; 0 + 1a0: 8f e0 ldi r24, 0x0F ; 15 + 1a2: 90 e0 ldi r25, 0x00 ; 0 + 1a4: 51 df rcall .-350 ; 0x48 + 1a6: 8f e4 ldi r24, 0x4F ; 79 + 1a8: 93 ec ldi r25, 0xC3 ; 195 + 1aa: 01 97 sbiw r24, 0x01 ; 1 + 1ac: f1 f7 brne .-4 ; 0x1aa + 1ae: 00 c0 rjmp .+0 ; 0x1b0 + 1b0: 00 00 nop _delay_ms(10); ledg(LED1 | LED2 | LED3 | LED4, BLACK); - 228: 60 e0 ldi r22, 0x00 ; 0 - 22a: 70 e0 ldi r23, 0x00 ; 0 - 22c: 8f e0 ldi r24, 0x0F ; 15 - 22e: 90 e0 ldi r25, 0x00 ; 0 - 230: 0b df rcall .-490 ; 0x48 - 232: 9f e7 ldi r25, 0x7F ; 127 - 234: 2a e1 ldi r18, 0x1A ; 26 - 236: 86 e0 ldi r24, 0x06 ; 6 - 238: 91 50 subi r25, 0x01 ; 1 - 23a: 20 40 sbci r18, 0x00 ; 0 - 23c: 80 40 sbci r24, 0x00 ; 0 - 23e: e1 f7 brne .-8 ; 0x238 - 240: 00 c0 rjmp .+0 ; 0x242 - 242: 00 00 nop + 1b2: 60 e0 ldi r22, 0x00 ; 0 + 1b4: 70 e0 ldi r23, 0x00 ; 0 + 1b6: 8f e0 ldi r24, 0x0F ; 15 + 1b8: 90 e0 ldi r25, 0x00 ; 0 + 1ba: 46 df rcall .-372 ; 0x48 + 1bc: 9f e7 ldi r25, 0x7F ; 127 + 1be: 2a e1 ldi r18, 0x1A ; 26 + 1c0: 86 e0 ldi r24, 0x06 ; 6 + 1c2: 91 50 subi r25, 0x01 ; 1 + 1c4: 20 40 sbci r18, 0x00 ; 0 + 1c6: 80 40 sbci r24, 0x00 ; 0 + 1c8: e1 f7 brne .-8 ; 0x1c2 + 1ca: 00 c0 rjmp .+0 ; 0x1cc + 1cc: 00 00 nop _delay_ms(100); ledg(LED1 | LED2 | LED3 | LED4, CYAN); - 244: 66 e0 ldi r22, 0x06 ; 6 - 246: 70 e0 ldi r23, 0x00 ; 0 - 248: 8f e0 ldi r24, 0x0F ; 15 - 24a: 90 e0 ldi r25, 0x00 ; 0 - 24c: fd de rcall .-518 ; 0x48 - 24e: 9f e7 ldi r25, 0x7F ; 127 - 250: 28 e3 ldi r18, 0x38 ; 56 - 252: 81 e0 ldi r24, 0x01 ; 1 - 254: 91 50 subi r25, 0x01 ; 1 - 256: 20 40 sbci r18, 0x00 ; 0 - 258: 80 40 sbci r24, 0x00 ; 0 - 25a: e1 f7 brne .-8 ; 0x254 - 25c: 00 c0 rjmp .+0 ; 0x25e - 25e: 00 00 nop + 1ce: 66 e0 ldi r22, 0x06 ; 6 + 1d0: 70 e0 ldi r23, 0x00 ; 0 + 1d2: 8f e0 ldi r24, 0x0F ; 15 + 1d4: 90 e0 ldi r25, 0x00 ; 0 + 1d6: 38 df rcall .-400 ; 0x48 + 1d8: 9f e7 ldi r25, 0x7F ; 127 + 1da: 28 e3 ldi r18, 0x38 ; 56 + 1dc: 81 e0 ldi r24, 0x01 ; 1 + 1de: 91 50 subi r25, 0x01 ; 1 + 1e0: 20 40 sbci r18, 0x00 ; 0 + 1e2: 80 40 sbci r24, 0x00 ; 0 + 1e4: e1 f7 brne .-8 ; 0x1de + 1e6: 00 c0 rjmp .+0 ; 0x1e8 + 1e8: 00 00 nop _delay_ms(20); ledg(LED1 | LED2 | LED3 | LED4, BLACK); - 260: 60 e0 ldi r22, 0x00 ; 0 - 262: 70 e0 ldi r23, 0x00 ; 0 - 264: 8f e0 ldi r24, 0x0F ; 15 - 266: 90 e0 ldi r25, 0x00 ; 0 - 268: ef de rcall .-546 ; 0x48 - 26a: 9f e7 ldi r25, 0x7F ; 127 - 26c: 2a e1 ldi r18, 0x1A ; 26 - 26e: 86 e0 ldi r24, 0x06 ; 6 - 270: 91 50 subi r25, 0x01 ; 1 - 272: 20 40 sbci r18, 0x00 ; 0 - 274: 80 40 sbci r24, 0x00 ; 0 - 276: e1 f7 brne .-8 ; 0x270 - 278: 00 c0 rjmp .+0 ; 0x27a - 27a: 00 00 nop + 1ea: 60 e0 ldi r22, 0x00 ; 0 + 1ec: 70 e0 ldi r23, 0x00 ; 0 + 1ee: 8f e0 ldi r24, 0x0F ; 15 + 1f0: 90 e0 ldi r25, 0x00 ; 0 + 1f2: 2a df rcall .-428 ; 0x48 + 1f4: 9f e7 ldi r25, 0x7F ; 127 + 1f6: 2a e1 ldi r18, 0x1A ; 26 + 1f8: 86 e0 ldi r24, 0x06 ; 6 + 1fa: 91 50 subi r25, 0x01 ; 1 + 1fc: 20 40 sbci r18, 0x00 ; 0 + 1fe: 80 40 sbci r24, 0x00 ; 0 + 200: e1 f7 brne .-8 ; 0x1fa + 202: 00 c0 rjmp .+0 ; 0x204 + 204: 00 00 nop _delay_ms(100); ledg(LED1 | LED2 | LED3 | LED4, CYAN); - 27c: 66 e0 ldi r22, 0x06 ; 6 - 27e: 70 e0 ldi r23, 0x00 ; 0 - 280: 8f e0 ldi r24, 0x0F ; 15 - 282: 90 e0 ldi r25, 0x00 ; 0 - 284: e1 de rcall .-574 ; 0x48 - 286: 9f eb ldi r25, 0xBF ; 191 - 288: 24 ed ldi r18, 0xD4 ; 212 - 28a: 81 e0 ldi r24, 0x01 ; 1 - 28c: 91 50 subi r25, 0x01 ; 1 - 28e: 20 40 sbci r18, 0x00 ; 0 - 290: 80 40 sbci r24, 0x00 ; 0 - 292: e1 f7 brne .-8 ; 0x28c - 294: 00 c0 rjmp .+0 ; 0x296 - 296: 00 00 nop + 206: 66 e0 ldi r22, 0x06 ; 6 + 208: 70 e0 ldi r23, 0x00 ; 0 + 20a: 8f e0 ldi r24, 0x0F ; 15 + 20c: 90 e0 ldi r25, 0x00 ; 0 + 20e: 1c df rcall .-456 ; 0x48 + 210: 9f eb ldi r25, 0xBF ; 191 + 212: 24 ed ldi r18, 0xD4 ; 212 + 214: 81 e0 ldi r24, 0x01 ; 1 + 216: 91 50 subi r25, 0x01 ; 1 + 218: 20 40 sbci r18, 0x00 ; 0 + 21a: 80 40 sbci r24, 0x00 ; 0 + 21c: e1 f7 brne .-8 ; 0x216 + 21e: 00 c0 rjmp .+0 ; 0x220 + 220: 00 00 nop _delay_ms(30); ledg(LED1 | LED2 | LED3 | LED4, BLACK); - 298: 60 e0 ldi r22, 0x00 ; 0 - 29a: 70 e0 ldi r23, 0x00 ; 0 - 29c: 8f e0 ldi r24, 0x0F ; 15 - 29e: 90 e0 ldi r25, 0x00 ; 0 - 2a0: d3 de rcall .-602 ; 0x48 - 2a2: 9f ef ldi r25, 0xFF ; 255 - 2a4: 28 e0 ldi r18, 0x08 ; 8 - 2a6: 8d e3 ldi r24, 0x3D ; 61 - 2a8: 91 50 subi r25, 0x01 ; 1 - 2aa: 20 40 sbci r18, 0x00 ; 0 - 2ac: 80 40 sbci r24, 0x00 ; 0 - 2ae: e1 f7 brne .-8 ; 0x2a8 - 2b0: 00 c0 rjmp .+0 ; 0x2b2 - 2b2: 00 00 nop + 222: 60 e0 ldi r22, 0x00 ; 0 + 224: 70 e0 ldi r23, 0x00 ; 0 + 226: 8f e0 ldi r24, 0x0F ; 15 + 228: 90 e0 ldi r25, 0x00 ; 0 + 22a: 0e df rcall .-484 ; 0x48 + 22c: 9f ef ldi r25, 0xFF ; 255 + 22e: 28 e0 ldi r18, 0x08 ; 8 + 230: 8d e3 ldi r24, 0x3D ; 61 + 232: 91 50 subi r25, 0x01 ; 1 + 234: 20 40 sbci r18, 0x00 ; 0 + 236: 80 40 sbci r24, 0x00 ; 0 + 238: e1 f7 brne .-8 ; 0x232 + 23a: 00 c0 rjmp .+0 ; 0x23c + 23c: 00 00 nop _delay_ms(1000); fade(LED1 | LED2 | LED3 | LED4, CYAN, WHITE, 20); - 2b4: 24 e1 ldi r18, 0x14 ; 20 - 2b6: 30 e0 ldi r19, 0x00 ; 0 - 2b8: 47 e0 ldi r20, 0x07 ; 7 - 2ba: 50 e0 ldi r21, 0x00 ; 0 - 2bc: 66 e0 ldi r22, 0x06 ; 6 - 2be: 70 e0 ldi r23, 0x00 ; 0 - 2c0: 8f e0 ldi r24, 0x0F ; 15 - 2c2: 90 e0 ldi r25, 0x00 ; 0 - 2c4: 2c df rcall .-424 ; 0x11e - 2c6: 08 95 ret - -000002c8 : - -volatile uint8_t rgb_r = 0; -volatile uint8_t rgb_b = 0; -volatile uint8_t rgb_g = 0; -void programColorFull() { + 23e: 24 e1 ldi r18, 0x14 ; 20 + 240: 30 e0 ldi r19, 0x00 ; 0 + 242: 47 e0 ldi r20, 0x07 ; 7 + 244: 50 e0 ldi r21, 0x00 ; 0 + 246: 66 e0 ldi r22, 0x06 ; 6 + 248: 70 e0 ldi r23, 0x00 ; 0 + 24a: 8f e0 ldi r24, 0x0F ; 15 + 24c: 90 e0 ldi r25, 0x00 ; 0 + 24e: 2c df rcall .-424 ; 0xa8 ledg(LED1 | LED2 | LED3 | LED4, BLACK); - 2c8: 60 e0 ldi r22, 0x00 ; 0 - 2ca: 70 e0 ldi r23, 0x00 ; 0 - 2cc: 8f e0 ldi r24, 0x0F ; 15 - 2ce: 90 e0 ldi r25, 0x00 ; 0 - 2d0: bb de rcall .-650 ; 0x48 - while(1) { - if(!(PINB & (1< - rgb_r++; - 2d6: 80 91 62 00 lds r24, 0x0062 - 2da: 8f 5f subi r24, 0xFF ; 255 - 2dc: 80 93 62 00 sts 0x0062, r24 - 2e0: 2f e7 ldi r18, 0x7F ; 127 - 2e2: 8a e1 ldi r24, 0x1A ; 26 - 2e4: 96 e0 ldi r25, 0x06 ; 6 - 2e6: 21 50 subi r18, 0x01 ; 1 - 2e8: 80 40 sbci r24, 0x00 ; 0 - 2ea: 90 40 sbci r25, 0x00 ; 0 - 2ec: e1 f7 brne .-8 ; 0x2e6 - 2ee: 00 c0 rjmp .+0 ; 0x2f0 - 2f0: 00 00 nop - _delay_ms(100); - } - if(!(PINB & (1< - rgb_g++; - 2f6: 80 91 60 00 lds r24, 0x0060 - 2fa: 8f 5f subi r24, 0xFF ; 255 - 2fc: 80 93 60 00 sts 0x0060, r24 - 300: 2f e7 ldi r18, 0x7F ; 127 - 302: 8a e1 ldi r24, 0x1A ; 26 - 304: 96 e0 ldi r25, 0x06 ; 6 - 306: 21 50 subi r18, 0x01 ; 1 - 308: 80 40 sbci r24, 0x00 ; 0 - 30a: 90 40 sbci r25, 0x00 ; 0 - 30c: e1 f7 brne .-8 ; 0x306 - 30e: 00 c0 rjmp .+0 ; 0x310 - 310: 00 00 nop - _delay_ms(100); - } - if(!(PIND & (1< - rgb_b++; - 316: 80 91 61 00 lds r24, 0x0061 - 31a: 8f 5f subi r24, 0xFF ; 255 - 31c: 80 93 61 00 sts 0x0061, r24 - 320: 2f e7 ldi r18, 0x7F ; 127 - 322: 8a e1 ldi r24, 0x1A ; 26 - 324: 96 e0 ldi r25, 0x06 ; 6 - 326: 21 50 subi r18, 0x01 ; 1 - 328: 80 40 sbci r24, 0x00 ; 0 - 32a: 90 40 sbci r25, 0x00 ; 0 - 32c: e1 f7 brne .-8 ; 0x326 - 32e: 00 c0 rjmp .+0 ; 0x330 - 330: 00 00 nop - _delay_ms(100); - } - rgbl(LED1 | LED2 | LED3 | LED4, rgb_r, rgb_g, rgb_b); - 332: 20 91 61 00 lds r18, 0x0061 - 336: 40 91 60 00 lds r20, 0x0060 - 33a: 60 91 62 00 lds r22, 0x0062 - 33e: 30 e0 ldi r19, 0x00 ; 0 - 340: 50 e0 ldi r21, 0x00 ; 0 - 342: 70 e0 ldi r23, 0x00 ; 0 - 344: 8f e0 ldi r24, 0x0F ; 15 - 346: 90 e0 ldi r25, 0x00 ; 0 - 348: af de rcall .-674 ; 0xa8 - } - 34a: c3 cf rjmp .-122 ; 0x2d2 + 250: 60 e0 ldi r22, 0x00 ; 0 + 252: 70 e0 ldi r23, 0x00 ; 0 + 254: 8f e0 ldi r24, 0x0F ; 15 + 256: 90 e0 ldi r25, 0x00 ; 0 + 258: f7 de rcall .-530 ; 0x48 + 25a: 08 95 ret -0000034c : +0000025c : + } } void initschalter() { PORTB |= ((1< - 35c: 00 c0 rjmp .+0 ; 0x35e - 35e: 00 00 nop - 360: 08 95 ret + 262: 96 9a sbi 0x12, 6 ; 18 + 264: 8f e4 ldi r24, 0x4F ; 79 + 266: 93 ec ldi r25, 0xC3 ; 195 + 268: 01 97 sbiw r24, 0x01 ; 1 + 26a: f1 f7 brne .-4 ; 0x268 + 26c: 00 c0 rjmp .+0 ; 0x26e + 26e: 00 00 nop + 270: 08 95 ret -00000362
: - } +00000272 : + } +} + +void programHacker() +{ + ledg(LED1 | LED2 | LED3 | LED4, BLACK); + 272: 60 e0 ldi r22, 0x00 ; 0 + 274: 70 e0 ldi r23, 0x00 ; 0 + 276: 8f e0 ldi r24, 0x0F ; 15 + 278: 90 e0 ldi r25, 0x00 ; 0 + 27a: e6 de rcall .-564 ; 0x48 + 27c: 2f e7 ldi r18, 0x7F ; 127 + 27e: 8d e8 ldi r24, 0x8D ; 141 + 280: 9b e5 ldi r25, 0x5B ; 91 + 282: 21 50 subi r18, 0x01 ; 1 + 284: 80 40 sbci r24, 0x00 ; 0 + 286: 90 40 sbci r25, 0x00 ; 0 + 288: e1 f7 brne .-8 ; 0x282 + 28a: 00 c0 rjmp .+0 ; 0x28c + 28c: 00 00 nop + _delay_ms(1500); + ledg(LED1 | LED2 | LED3 | LED4, WHITE); + 28e: 67 e0 ldi r22, 0x07 ; 7 + 290: 70 e0 ldi r23, 0x00 ; 0 + 292: 8f e0 ldi r24, 0x0F ; 15 + 294: 90 e0 ldi r25, 0x00 ; 0 + 296: d8 de rcall .-592 ; 0x48 + 298: 2f ef ldi r18, 0xFF ; 255 + 29a: 8a e1 ldi r24, 0x1A ; 26 + 29c: 97 eb ldi r25, 0xB7 ; 183 + 29e: 21 50 subi r18, 0x01 ; 1 + 2a0: 80 40 sbci r24, 0x00 ; 0 + 2a2: 90 40 sbci r25, 0x00 ; 0 + 2a4: e1 f7 brne .-8 ; 0x29e + 2a6: 00 c0 rjmp .+0 ; 0x2a8 + 2a8: 00 00 nop + 2aa: 14 e1 ldi r17, 0x14 ; 20 + 2ac: da e0 ldi r29, 0x0A ; 10 + _delay_ms(3000); + while(1) { + + ledg(LED1 | LED2 | LED3 | LED4, YELLOW); + 2ae: 63 e0 ldi r22, 0x03 ; 3 + 2b0: 70 e0 ldi r23, 0x00 ; 0 + 2b2: 8f e0 ldi r24, 0x0F ; 15 + 2b4: 90 e0 ldi r25, 0x00 ; 0 + 2b6: c8 de rcall .-624 ; 0x48 + 2b8: 2f ef ldi r18, 0xFF ; 255 + 2ba: 8a e1 ldi r24, 0x1A ; 26 + 2bc: 97 eb ldi r25, 0xB7 ; 183 + 2be: 21 50 subi r18, 0x01 ; 1 + 2c0: 80 40 sbci r24, 0x00 ; 0 + 2c2: 90 40 sbci r25, 0x00 ; 0 + 2c4: e1 f7 brne .-8 ; 0x2be + 2c6: 00 c0 rjmp .+0 ; 0x2c8 + 2c8: 00 00 nop + 2ca: 2f ef ldi r18, 0xFF ; 255 + 2cc: 8a e1 ldi r24, 0x1A ; 26 + 2ce: 97 eb ldi r25, 0xB7 ; 183 + 2d0: 21 50 subi r18, 0x01 ; 1 + 2d2: 80 40 sbci r24, 0x00 ; 0 + 2d4: 90 40 sbci r25, 0x00 ; 0 + 2d6: e1 f7 brne .-8 ; 0x2d0 + 2d8: 00 c0 rjmp .+0 ; 0x2da + 2da: 00 00 nop + 2dc: 2f ef ldi r18, 0xFF ; 255 + 2de: 8a e1 ldi r24, 0x1A ; 26 + 2e0: 97 eb ldi r25, 0xB7 ; 183 + 2e2: 21 50 subi r18, 0x01 ; 1 + 2e4: 80 40 sbci r24, 0x00 ; 0 + 2e6: 90 40 sbci r25, 0x00 ; 0 + 2e8: e1 f7 brne .-8 ; 0x2e2 + 2ea: 00 c0 rjmp .+0 ; 0x2ec + 2ec: 00 00 nop + 2ee: 2f ef ldi r18, 0xFF ; 255 + 2f0: 88 e0 ldi r24, 0x08 ; 8 + 2f2: 9d e3 ldi r25, 0x3D ; 61 + 2f4: 21 50 subi r18, 0x01 ; 1 + 2f6: 80 40 sbci r24, 0x00 ; 0 + 2f8: 90 40 sbci r25, 0x00 ; 0 + 2fa: e1 f7 brne .-8 ; 0x2f4 + 2fc: 00 c0 rjmp .+0 ; 0x2fe + 2fe: 00 00 nop + 300: c1 2f mov r28, r17 + _delay_ms(3000); + _delay_ms(3000); + _delay_ms(3000); + _delay_ms(1000); + for(uint8_t i=0;i<20;i++) { + ledg(LED1 | LED2 | LED3 | LED4, BLACK); + 302: 60 e0 ldi r22, 0x00 ; 0 + 304: 70 e0 ldi r23, 0x00 ; 0 + 306: 8f e0 ldi r24, 0x0F ; 15 + 308: 90 e0 ldi r25, 0x00 ; 0 + 30a: 9e de rcall .-708 ; 0x48 + 30c: 2f e3 ldi r18, 0x3F ; 63 + 30e: 8d e0 ldi r24, 0x0D ; 13 + 310: 93 e0 ldi r25, 0x03 ; 3 + 312: 21 50 subi r18, 0x01 ; 1 + 314: 80 40 sbci r24, 0x00 ; 0 + 316: 90 40 sbci r25, 0x00 ; 0 + 318: e1 f7 brne .-8 ; 0x312 + 31a: 00 c0 rjmp .+0 ; 0x31c + 31c: 00 00 nop + _delay_ms(50); + ledg(LED1 | LED2 | LED3 | LED4, YELLOW); + 31e: 63 e0 ldi r22, 0x03 ; 3 + 320: 70 e0 ldi r23, 0x00 ; 0 + 322: 8f e0 ldi r24, 0x0F ; 15 + 324: 90 e0 ldi r25, 0x00 ; 0 + 326: 90 de rcall .-736 ; 0x48 + 328: 2f e3 ldi r18, 0x3F ; 63 + 32a: 8d e0 ldi r24, 0x0D ; 13 + 32c: 93 e0 ldi r25, 0x03 ; 3 + 32e: 21 50 subi r18, 0x01 ; 1 + 330: 80 40 sbci r24, 0x00 ; 0 + 332: 90 40 sbci r25, 0x00 ; 0 + 334: e1 f7 brne .-8 ; 0x32e + 336: 00 c0 rjmp .+0 ; 0x338 + 338: 00 00 nop + 33a: c1 50 subi r28, 0x01 ; 1 + ledg(LED1 | LED2 | LED3 | LED4, YELLOW); + _delay_ms(3000); + _delay_ms(3000); + _delay_ms(3000); + _delay_ms(1000); + for(uint8_t i=0;i<20;i++) { + 33c: 11 f7 brne .-60 ; 0x302 + ledg(LED1 | LED2 | LED3 | LED4, BLACK); + _delay_ms(50); + ledg(LED1 | LED2 | LED3 | LED4, YELLOW); + _delay_ms(50); + } + ledg(LED1 | LED2 | LED3 | LED4, GREEN); + 33e: 62 e0 ldi r22, 0x02 ; 2 + 340: 70 e0 ldi r23, 0x00 ; 0 + 342: 8f e0 ldi r24, 0x0F ; 15 + 344: 90 e0 ldi r25, 0x00 ; 0 + 346: 80 de rcall .-768 ; 0x48 + 348: 2f e7 ldi r18, 0x7F ; 127 + 34a: 86 e9 ldi r24, 0x96 ; 150 + 34c: 98 e9 ldi r25, 0x98 ; 152 + 34e: 21 50 subi r18, 0x01 ; 1 + 350: 80 40 sbci r24, 0x00 ; 0 + 352: 90 40 sbci r25, 0x00 ; 0 + 354: e1 f7 brne .-8 ; 0x34e + 356: 00 c0 rjmp .+0 ; 0x358 + 358: 00 00 nop + _delay_ms(2500); + ledg(LED1 | LED2 | LED3 | LED4, YELLOW); + 35a: 63 e0 ldi r22, 0x03 ; 3 + 35c: 70 e0 ldi r23, 0x00 ; 0 + 35e: 8f e0 ldi r24, 0x0F ; 15 + 360: 90 e0 ldi r25, 0x00 ; 0 + 362: 72 de rcall .-796 ; 0x48 + 364: 2f ef ldi r18, 0xFF ; 255 + 366: 8a e1 ldi r24, 0x1A ; 26 + 368: 97 eb ldi r25, 0xB7 ; 183 + 36a: 21 50 subi r18, 0x01 ; 1 + 36c: 80 40 sbci r24, 0x00 ; 0 + 36e: 90 40 sbci r25, 0x00 ; 0 + 370: e1 f7 brne .-8 ; 0x36a + 372: 00 c0 rjmp .+0 ; 0x374 + 374: 00 00 nop + 376: 2f ef ldi r18, 0xFF ; 255 + 378: 8a e1 ldi r24, 0x1A ; 26 + 37a: 97 eb ldi r25, 0xB7 ; 183 + 37c: 21 50 subi r18, 0x01 ; 1 + 37e: 80 40 sbci r24, 0x00 ; 0 + 380: 90 40 sbci r25, 0x00 ; 0 + 382: e1 f7 brne .-8 ; 0x37c + 384: 00 c0 rjmp .+0 ; 0x386 + 386: 00 00 nop + 388: 2f ef ldi r18, 0xFF ; 255 + 38a: 8a e1 ldi r24, 0x1A ; 26 + 38c: 97 eb ldi r25, 0xB7 ; 183 + 38e: 21 50 subi r18, 0x01 ; 1 + 390: 80 40 sbci r24, 0x00 ; 0 + 392: 90 40 sbci r25, 0x00 ; 0 + 394: e1 f7 brne .-8 ; 0x38e + 396: 00 c0 rjmp .+0 ; 0x398 + 398: 00 00 nop + 39a: 2f ef ldi r18, 0xFF ; 255 + 39c: 88 e0 ldi r24, 0x08 ; 8 + 39e: 9d e3 ldi r25, 0x3D ; 61 + 3a0: 21 50 subi r18, 0x01 ; 1 + 3a2: 80 40 sbci r24, 0x00 ; 0 + 3a4: 90 40 sbci r25, 0x00 ; 0 + 3a6: e1 f7 brne .-8 ; 0x3a0 + 3a8: 00 c0 rjmp .+0 ; 0x3aa + 3aa: 00 00 nop + 3ac: cd 2f mov r28, r29 + _delay_ms(3000); + _delay_ms(3000); + _delay_ms(3000); + _delay_ms(1000); + for(uint8_t i=0;i<10;i++) { + ledg(LED1 | LED2 | LED3 | LED4, BLACK); + 3ae: 60 e0 ldi r22, 0x00 ; 0 + 3b0: 70 e0 ldi r23, 0x00 ; 0 + 3b2: 8f e0 ldi r24, 0x0F ; 15 + 3b4: 90 e0 ldi r25, 0x00 ; 0 + 3b6: 48 de rcall .-880 ; 0x48 + 3b8: 2f e3 ldi r18, 0x3F ; 63 + 3ba: 8d e0 ldi r24, 0x0D ; 13 + 3bc: 93 e0 ldi r25, 0x03 ; 3 + 3be: 21 50 subi r18, 0x01 ; 1 + 3c0: 80 40 sbci r24, 0x00 ; 0 + 3c2: 90 40 sbci r25, 0x00 ; 0 + 3c4: e1 f7 brne .-8 ; 0x3be + 3c6: 00 c0 rjmp .+0 ; 0x3c8 + 3c8: 00 00 nop + _delay_ms(50); + ledg(LED1 | LED2 | LED3 | LED4, YELLOW); + 3ca: 63 e0 ldi r22, 0x03 ; 3 + 3cc: 70 e0 ldi r23, 0x00 ; 0 + 3ce: 8f e0 ldi r24, 0x0F ; 15 + 3d0: 90 e0 ldi r25, 0x00 ; 0 + 3d2: 3a de rcall .-908 ; 0x48 + 3d4: 2f e3 ldi r18, 0x3F ; 63 + 3d6: 8d e0 ldi r24, 0x0D ; 13 + 3d8: 93 e0 ldi r25, 0x03 ; 3 + 3da: 21 50 subi r18, 0x01 ; 1 + 3dc: 80 40 sbci r24, 0x00 ; 0 + 3de: 90 40 sbci r25, 0x00 ; 0 + 3e0: e1 f7 brne .-8 ; 0x3da + 3e2: 00 c0 rjmp .+0 ; 0x3e4 + 3e4: 00 00 nop + 3e6: c1 50 subi r28, 0x01 ; 1 + ledg(LED1 | LED2 | LED3 | LED4, YELLOW); + _delay_ms(3000); + _delay_ms(3000); + _delay_ms(3000); + _delay_ms(1000); + for(uint8_t i=0;i<10;i++) { + 3e8: 11 f7 brne .-60 ; 0x3ae + ledg(LED1 | LED2 | LED3 | LED4, BLACK); + _delay_ms(50); + ledg(LED1 | LED2 | LED3 | LED4, YELLOW); + _delay_ms(50); + } + ledg(LED1 | LED2 | LED3 | LED4, RED); + 3ea: 61 e0 ldi r22, 0x01 ; 1 + 3ec: 70 e0 ldi r23, 0x00 ; 0 + 3ee: 8f e0 ldi r24, 0x0F ; 15 + 3f0: 90 e0 ldi r25, 0x00 ; 0 + 3f2: 2a de rcall .-940 ; 0x48 + 3f4: 2f e7 ldi r18, 0x7F ; 127 + 3f6: 86 e9 ldi r24, 0x96 ; 150 + 3f8: 98 e9 ldi r25, 0x98 ; 152 + 3fa: 21 50 subi r18, 0x01 ; 1 + 3fc: 80 40 sbci r24, 0x00 ; 0 + 3fe: 90 40 sbci r25, 0x00 ; 0 + 400: e1 f7 brne .-8 ; 0x3fa + 402: 00 c0 rjmp .+0 ; 0x404 + 404: 00 00 nop + 406: 53 cf rjmp .-346 ; 0x2ae + +00000408
: + } } int main(void) { DDRB = 0b00111111; - 362: 8f e3 ldi r24, 0x3F ; 63 - 364: 87 bb out 0x17, r24 ; 23 + 408: 8f e3 ldi r24, 0x3F ; 63 + 40a: 87 bb out 0x17, r24 ; 23 DDRD = 0b00111111; - 366: 81 bb out 0x11, r24 ; 17 + 40c: 81 bb out 0x11, r24 ; 17 initschalter(); - 368: f1 df rcall .-30 ; 0x34c + 40e: 26 df rcall .-436 ; 0x25c initleds(); - 36a: 37 df rcall .-402 ; 0x1da - while(1) - { - programColorFull(); - 36c: ad df rcall .-166 ; 0x2c8 + 410: a9 de rcall .-686 ; 0x164 + //programWarnBlink(); + //programColorFull(); + //programRainbow(50); + //programWarnYellow(); + //programCop(); + programHacker(); + 412: 2f df rcall .-418 ; 0x272 -0000036e <_exit>: - 36e: f8 94 cli +00000414 <_exit>: + 414: f8 94 cli -00000370 <__stop_program>: - 370: ff cf rjmp .-2 ; 0x370 <__stop_program> +00000416 <__stop_program>: + 416: ff cf rjmp .-2 ; 0x416 <__stop_program> diff --git a/Leuchtklotz/Leuchtklotz/Debug/Leuchtklotz.map b/Leuchtklotz/Leuchtklotz/Debug/Leuchtklotz.map index 5d03803..838b2a7 100644 --- a/Leuchtklotz/Leuchtklotz/Debug/Leuchtklotz.map +++ b/Leuchtklotz/Leuchtklotz/Debug/Leuchtklotz.map @@ -9,12 +9,18 @@ Discarded input sections .bss 0x00000000 0x0 c:/program files (x86)/atmel/atmel toolchain/avr8 gcc/native/3.4.2.876/avr8-gnu-toolchain/bin/../lib/gcc/avr/4.7.2/../../../../avr/lib/avr25/tiny-stack/crttn2313a.o .text 0x00000000 0x0 Leuchtklotz.o + .bss 0x00000000 0x3 Leuchtklotz.o + .text.rgbl 0x00000000 0x76 Leuchtklotz.o + .text.programColorFull + 0x00000000 0x7a Leuchtklotz.o .text.programRainbow - 0x00000000 0x80 Leuchtklotz.o + 0x00000000 0x82 Leuchtklotz.o .text.programWarnYellow 0x00000000 0x9a Leuchtklotz.o .text.programCop 0x00000000 0x144 Leuchtklotz.o + .text.programWarnBlink + 0x00000000 0x152 Leuchtklotz.o .text 0x00000000 0x0 c:/program files (x86)/atmel/atmel toolchain/avr8 gcc/native/3.4.2.876/avr8-gnu-toolchain/bin/../lib/gcc/avr/4.7.2/avr25/tiny-stack\libgcc.a(_exit.o) .bss 0x00000000 0x0 c:/program files (x86)/atmel/atmel toolchain/avr8 gcc/native/3.4.2.876/avr8-gnu-toolchain/bin/../lib/gcc/avr/4.7.2/avr25/tiny-stack\libgcc.a(_exit.o) .text.libgcc.mul @@ -155,7 +161,7 @@ LOAD c:/program files (x86)/atmel/atmel toolchain/avr8 gcc/native/3.4.2.876/avr8 .rela.plt *(.rela.plt) -.text 0x00000000 0x372 +.text 0x00000000 0x418 *(.vectors) .vectors 0x00000000 0x2a c:/program files (x86)/atmel/atmel toolchain/avr8 gcc/native/3.4.2.876/avr8-gnu-toolchain/bin/../lib/gcc/avr/4.7.2/../../../../avr/lib/avr25/tiny-stack/crttn2313a.o 0x00000000 __vector_default @@ -234,26 +240,24 @@ LOAD c:/program files (x86)/atmel/atmel toolchain/avr8 gcc/native/3.4.2.876/avr8 *(.text.*) .text.ledg 0x00000048 0x60 Leuchtklotz.o 0x00000048 ledg - .text.rgbl 0x000000a8 0x76 Leuchtklotz.o - 0x000000a8 rgbl - .text.fade 0x0000011e 0xbc Leuchtklotz.o - 0x0000011e fade + .text.fade 0x000000a8 0xbc Leuchtklotz.o + 0x000000a8 fade .text.initleds - 0x000001da 0xee Leuchtklotz.o - 0x000001da initleds - .text.programColorFull - 0x000002c8 0x84 Leuchtklotz.o - 0x000002c8 programColorFull + 0x00000164 0xf8 Leuchtklotz.o + 0x00000164 initleds .text.initschalter - 0x0000034c 0x16 Leuchtklotz.o - 0x0000034c initschalter - .text.main 0x00000362 0xc Leuchtklotz.o - 0x00000362 main - 0x0000036e . = ALIGN (0x2) + 0x0000025c 0x16 Leuchtklotz.o + 0x0000025c initschalter + .text.programHacker + 0x00000272 0x196 Leuchtklotz.o + 0x00000272 programHacker + .text.main 0x00000408 0xc Leuchtklotz.o + 0x00000408 main + 0x00000414 . = ALIGN (0x2) *(.fini9) - .fini9 0x0000036e 0x0 c:/program files (x86)/atmel/atmel toolchain/avr8 gcc/native/3.4.2.876/avr8-gnu-toolchain/bin/../lib/gcc/avr/4.7.2/avr25/tiny-stack\libgcc.a(_exit.o) - 0x0000036e _exit - 0x0000036e exit + .fini9 0x00000414 0x0 c:/program files (x86)/atmel/atmel toolchain/avr8 gcc/native/3.4.2.876/avr8-gnu-toolchain/bin/../lib/gcc/avr/4.7.2/avr25/tiny-stack\libgcc.a(_exit.o) + 0x00000414 _exit + 0x00000414 exit *(.fini9) *(.fini8) *(.fini8) @@ -272,11 +276,11 @@ LOAD c:/program files (x86)/atmel/atmel toolchain/avr8 gcc/native/3.4.2.876/avr8 *(.fini1) *(.fini1) *(.fini0) - .fini0 0x0000036e 0x4 c:/program files (x86)/atmel/atmel toolchain/avr8 gcc/native/3.4.2.876/avr8-gnu-toolchain/bin/../lib/gcc/avr/4.7.2/avr25/tiny-stack\libgcc.a(_exit.o) + .fini0 0x00000414 0x4 c:/program files (x86)/atmel/atmel toolchain/avr8 gcc/native/3.4.2.876/avr8-gnu-toolchain/bin/../lib/gcc/avr/4.7.2/avr25/tiny-stack\libgcc.a(_exit.o) *(.fini0) - 0x00000372 _etext = . + 0x00000418 _etext = . -.data 0x00800060 0x0 load address 0x00000372 +.data 0x00800060 0x0 load address 0x00000418 0x00800060 PROVIDE (__data_start, .) *(.data) .data 0x00800060 0x0 c:/program files (x86)/atmel/atmel toolchain/avr8 gcc/native/3.4.2.876/avr8-gnu-toolchain/bin/../lib/gcc/avr/4.7.2/../../../../avr/lib/avr25/tiny-stack/crttn2313a.o @@ -291,25 +295,21 @@ LOAD c:/program files (x86)/atmel/atmel toolchain/avr8 gcc/native/3.4.2.876/avr8 0x00800060 _edata = . 0x00800060 PROVIDE (__data_end, .) -.bss 0x00800060 0x3 +.bss 0x00800060 0x0 0x00800060 PROVIDE (__bss_start, .) *(.bss) - .bss 0x00800060 0x3 Leuchtklotz.o - 0x00800060 rgb_g - 0x00800061 rgb_b - 0x00800062 rgb_r *(.bss*) *(COMMON) - 0x00800063 PROVIDE (__bss_end, .) - 0x00000372 __data_load_start = LOADADDR (.data) - 0x00000372 __data_load_end = (__data_load_start + SIZEOF (.data)) + 0x00800060 PROVIDE (__bss_end, .) + 0x00000418 __data_load_start = LOADADDR (.data) + 0x00000418 __data_load_end = (__data_load_start + SIZEOF (.data)) -.noinit 0x00800063 0x0 - 0x00800063 PROVIDE (__noinit_start, .) +.noinit 0x00800060 0x0 + 0x00800060 PROVIDE (__noinit_start, .) *(.noinit*) - 0x00800063 PROVIDE (__noinit_end, .) - 0x00800063 _end = . - 0x00800063 PROVIDE (__heap_start, .) + 0x00800060 PROVIDE (__noinit_end, .) + 0x00800060 _end = . + 0x00800060 PROVIDE (__heap_start, .) .eeprom 0x00810000 0x0 *(.eeprom*) @@ -367,39 +367,39 @@ LOAD c:/program files (x86)/atmel/atmel toolchain/avr8 gcc/native/3.4.2.876/avr8 .debug_sfnames *(.debug_sfnames) -.debug_aranges 0x00000000 0x68 +.debug_aranges 0x00000000 0x78 *(.debug_aranges) .debug_aranges - 0x00000000 0x68 Leuchtklotz.o + 0x00000000 0x78 Leuchtklotz.o .debug_pubnames *(.debug_pubnames) -.debug_info 0x00000000 0xf1a +.debug_info 0x00000000 0x1935 *(.debug_info) - .debug_info 0x00000000 0xf1a Leuchtklotz.o + .debug_info 0x00000000 0x1935 Leuchtklotz.o *(.gnu.linkonce.wi.*) -.debug_abbrev 0x00000000 0x1dd +.debug_abbrev 0x00000000 0x20e *(.debug_abbrev) - .debug_abbrev 0x00000000 0x1dd Leuchtklotz.o + .debug_abbrev 0x00000000 0x20e Leuchtklotz.o -.debug_line 0x00000000 0x3f8 +.debug_line 0x00000000 0x59c *(.debug_line) - .debug_line 0x00000000 0x3f8 Leuchtklotz.o + .debug_line 0x00000000 0x59c Leuchtklotz.o -.debug_frame 0x00000000 0x158 +.debug_frame 0x00000000 0x178 *(.debug_frame) - .debug_frame 0x00000000 0x158 Leuchtklotz.o + .debug_frame 0x00000000 0x178 Leuchtklotz.o -.debug_str 0x00000000 0x182 +.debug_str 0x00000000 0x1a1 *(.debug_str) - .debug_str 0x00000000 0x182 Leuchtklotz.o - 0x1b6 (size before relaxing) + .debug_str 0x00000000 0x1a1 Leuchtklotz.o + 0x1d5 (size before relaxing) -.debug_loc 0x00000000 0x5fd +.debug_loc 0x00000000 0x643 *(.debug_loc) - .debug_loc 0x00000000 0x5fd Leuchtklotz.o + .debug_loc 0x00000000 0x643 Leuchtklotz.o .debug_macinfo *(.debug_macinfo) @@ -407,9 +407,9 @@ LOAD c:/program files (x86)/atmel/atmel toolchain/avr8 gcc/native/3.4.2.876/avr8 .debug_pubtypes *(.debug_pubtypes) -.debug_ranges 0x00000000 0xb8 +.debug_ranges 0x00000000 0x128 *(.debug_ranges) - .debug_ranges 0x00000000 0xb8 Leuchtklotz.o + .debug_ranges 0x00000000 0x128 Leuchtklotz.o .debug_macro *(.debug_macro) diff --git a/Leuchtklotz/Leuchtklotz/Debug/Leuchtklotz.srec b/Leuchtklotz/Leuchtklotz/Debug/Leuchtklotz.srec index c8cb3e7..c8d4728 100644 --- a/Leuchtklotz/Leuchtklotz/Debug/Leuchtklotz.srec +++ b/Leuchtklotz/Leuchtklotz/Debug/Leuchtklotz.srec @@ -2,57 +2,67 @@ S01300004C65756368746B6C6F747A2E7372656378 S113000014C021C020C01FC01EC01DC01CC01BC006 S11300101AC019C018C017C016C015C014C013C028 S113002012C011C010C00FC00EC011241FBECFEDEE -S1130030CDBF20E0A0E6B0E001C01D92A336B20718 -S1130040E1F78FD194C1DCCF6770772780FF06C0BA +S1130030CDBF20E0A0E6B0E001C01D92A036B2071B +S1130040E1F7E2D1E7C1DCCF6770772780FF06C014 S113005098B3987F98BB98B3962B98BB81FF0DC03B S113006098B3977C98BB98B39B01220F331F220F40 S1130070331F220F331F292B28BB82FF06C092B3E4 S1130080987F92BB92B3962B92BB83FF0CC082B332 S1130090877C82BB82B3660F771F660F771F660F5C -S11300A0771F682B62BB08956F927F928F929F9205 -S11300B0AF92BF92CF92DF92EF92FF920F931F9372 -S11300C0CF93DF934C015B016A017901C0E0D0E07A -S11300D001E010E0612C712CC801CA15DB050CF09D -S11300E0C301BC01CC15DD050CF46260CE15DF053F -S11300F00CF46460C401A8DF2196CF3FD10561F7F9 -S1130100DF91CF911F910F91FF90EF90DF90CF90EF -S1130110BF90AF909F908F907F906F9008952F9293 -S11301203F924F925F926F927F928F929F92AF9283 -S1130130BF92CF92DF92EF92FF920F931F93CF93D0 -S1130140DF938C014B016A013901E12CF12C312C34 -S1130150212C2CC0C42DD52DB401C80175DF2196E6 -S1130160CF3FD105C9F71E141F044CF4C32DD22D63 -S1130170B601C80169DF2196CE15DF05C9F78FEFF7 -S1130180A81AB80AA614B70429F409C0A12CB12CE2 -S11301904E2C5F2C8FEFE816F104E4F2E4CF8FEFDE -S11301A0E81AF80A8FEFE816F10421F01614170480 -S11301B06CF3F5CFDF91CF911F910F91FF90EF90EA -S11301C0DF90CF90BF90AF909F908F907F906F9073 -S11301D05F904F903F902F90089566E070E085E027 -S11301E090E032DF2FE788E391E021508040904097 -S11301F0E1F700C0000060E070E085E090E024DFFB -S11302002FE784E89EE1215080409040E1F700C050 -S1130210000066E070E08FE090E016DF8FE493EC7E -S11302200197F1F700C0000060E070E08FE090E01B -S11302300BDF9FE72AE186E0915020408040E1F700 -S113024000C0000066E070E08FE090E0FDDE9FE714 -S113025028E381E0915020408040E1F700C0000095 -S113026060E070E08FE090E0EFDE9FE72AE186E057 -S1130270915020408040E1F700C0000066E070E04B -S11302808FE090E0E1DE9FEB24ED81E0915020408F -S11302908040E1F700C0000060E070E08FE090E093 -S11302A0D3DE9FEF28E08DE3915020408040E1F7BA -S11302B000C0000024E130E047E050E066E070E078 -S11302C08FE090E02CDF089560E070E08FE090E034 -S11302D0BBDEB7990EC0809162008F5F809362008D -S11302E02FE78AE196E0215080409040E1F700C07A -S11302F00000B6990EC0809160008F5F809360000B -S11303002FE78AE196E0215080409040E1F700C059 -S1130310000086990EC0809161008F5F8093610018 -S11303202FE78AE196E0215080409040E1F700C039 -S1130330000020916100409160006091620030E013 -S113034050E070E08FE090E0AFDEC3CF88B3806C04 -S113035088BB969A8FE493EC0197F1F700C00000F4 -S113036008958FE387BB81BBF1DF37DFADDFF894FE -S1050370FFCFB9 +S11300A0771F682B62BB08952F923F924F925F9205 +S11300B06F927F928F929F92AF92BF92CF92DF9274 +S11300C0EF92FF920F931F93CF93DF938C014B0119 +S11300D06A013901E12CF12C312C212C2CC0C42DC6 +S11300E0D52DB401C801B0DF2196CF3FD105C9F7A2 +S11300F01E141F044CF4C32DD22DB601C801A4DF75 +S11301002196CE15DF05C9F78FEFA81AB80AA614F1 +S1130110B70429F409C0A12CB12C4E2C5F2C8FEF0D +S1130120E816F104E4F2E4CF8FEFE81AF80A8FEF4F +S1130130E816F10421F0161417046CF3F5CFDF91DF +S1130140CF911F910F91FF90EF90DF90CF90BF90D0 +S1130150AF909F908F907F906F905F904F903F9063 +S11301602F90089566E070E085E090E06DDF2FE762 +S113017088E391E0215080409040E1F700C0000006 +S113018060E070E085E090E05FDF2FE784E89EE1C7 +S1130190215080409040E1F700C0000066E070E02C +S11301A08FE090E051DF8FE493EC0197F1F700C00A +S11301B0000060E070E08FE090E046DF9FE72AE116 +S11301C086E0915020408040E1F700C0000066E0E6 +S11301D070E08FE090E038DF9FE728E381E0915002 +S11301E020408040E1F700C0000060E070E08FE054 +S11301F090E02ADF9FE72AE186E09150204080408A +S1130200E1F700C0000066E070E08FE090E01CDFE2 +S11302109FEB24ED81E0915020408040E1F700C045 +S1130220000060E070E08FE090E00EDF9FEF28E0D8 +S11302308DE3915020408040E1F700C0000024E1AC +S113024030E047E050E066E070E08FE090E02CDFC3 +S113025060E070E08FE090E0F7DE089588B3806C92 +S113026088BB969A8FE493EC0197F1F700C00000E5 +S1130270089560E070E08FE090E0E6DE2FE78DE81F +S11302809BE5215080409040E1F700C0000067E00A +S113029070E08FE090E0D8DE2FEF8AE197EB2150F9 +S11302A080409040E1F700C0000014E1DAE063E030 +S11302B070E08FE090E0C8DE2FEF8AE197EB2150E9 +S11302C080409040E1F700C000002FEF8AE197EBF7 +S11302D0215080409040E1F700C000002FEF8AE1F8 +S11302E097EB215080409040E1F700C000002FEFD1 +S11302F088E09DE3215080409040E1F700C0000079 +S1130300C12F60E070E08FE090E09EDE2FE38DE08F +S113031093E0215080409040E1F700C0000063E08A +S113032070E08FE090E090DE2FE38DE093E02150C9 +S113033080409040E1F700C00000C15011F762E036 +S113034070E08FE090E080DE2FE786E998E92150A5 +S113035080409040E1F700C0000063E070E08FE06F +S113036090E072DE2FEF8AE197EB215080409040BD +S1130370E1F700C000002FEF8AE197EB21508040A5 +S11303809040E1F700C000002FEF8AE197EB215085 +S113039080409040E1F700C000002FEF88E09DE32B +S11303A0215080409040E1F700C00000CD2F60E074 +S11303B070E08FE090E048DE2FE38DE093E0215081 +S11303C080409040E1F700C0000063E070E08FE0FF +S11303D090E03ADE2FE38DE093E02150804090409E +S11303E0E1F700C00000C15011F761E070E08FE058 +S11303F090E02ADE2FE786E998E92150804090407A +S1130400E1F700C0000053CF8FE387BB81BB26DF39 +S10B0410A9DE2FDFF894FFCFF1 S9030000FC diff --git a/Leuchtklotz/Leuchtklotz/Leuchtklotz.c b/Leuchtklotz/Leuchtklotz/Leuchtklotz.c index fa74e1b..59ae971 100644 --- a/Leuchtklotz/Leuchtklotz/Leuchtklotz.c +++ b/Leuchtklotz/Leuchtklotz/Leuchtklotz.c @@ -97,13 +97,13 @@ void initleds() { ledg(LED1 | LED2 | LED3 | LED4, BLACK); _delay_ms(1000); fade(LED1 | LED2 | LED3 | LED4, CYAN, WHITE, 20); + ledg(LED1 | LED2 | LED3 | LED4, BLACK); } volatile uint8_t rgb_r = 0; volatile uint8_t rgb_b = 0; volatile uint8_t rgb_g = 0; void programColorFull() { - ledg(LED1 | LED2 | LED3 | LED4, BLACK); while(1) { if(!(PINB & (1< 127.0.0.1 - 53066 + 65413 False @@ -40,7 +40,7 @@ 0000000000000 127.0.0.1 - 51623 + 65413 False @@ -60,14 +60,14 @@ - - - - - - - - + + + + + + + + true true @@ -76,45 +76,45 @@ - True - True - True - True - True - True - Optimize for size (-Os) - True - True - True - - - libm - - - + True + True + True + True + True + True + Optimize for size (-Os) + True + True + True + + + libm + + + - True - True - True - True - True - True - Optimize (-O1) - True - True - Default (-g2) - True - - - libm - - - Default (-Wa,-g) - + True + True + True + True + True + True + Optimize (-O1) + True + True + Default (-g2) + True + + + libm + + + Default (-Wa,-g) +