From 1163a6b9d59aa86f313b268a476a9d50ef57f3b6 Mon Sep 17 00:00:00 2001 From: BlubbFish Date: Tue, 2 Jul 2013 16:10:02 +0000 Subject: [PATCH] 20130702-181005 --- Leuchtklotz/Leuchtklotz/Debug/Leuchtklotz.elf | Bin 17004 -> 19360 bytes Leuchtklotz/Leuchtklotz/Debug/Leuchtklotz.hex | 62 +- Leuchtklotz/Leuchtklotz/Debug/Leuchtklotz.lss | 655 ++++++++++-------- Leuchtklotz/Leuchtklotz/Debug/Leuchtklotz.map | 62 +- .../Leuchtklotz/Debug/Leuchtklotz.srec | 62 +- Leuchtklotz/Leuchtklotz/Leuchtklotz.c | 45 +- 6 files changed, 496 insertions(+), 390 deletions(-) diff --git a/Leuchtklotz/Leuchtklotz/Debug/Leuchtklotz.elf b/Leuchtklotz/Leuchtklotz/Debug/Leuchtklotz.elf index 3455e6519e55a35101f1c7c59cba57f02e906c22..215605720e2f294856e716d44e143dda32f9b2b5 100644 GIT binary patch delta 4371 zcma)<4RBP|701tcyPM5-So8g{$!>PD@gtIti3v#%mee9RjExS=FiJJS@DU5C6Kzl@ zf6W;p{-s*(+R|n5*_nL#(lW4ck z@N~xxpLJ-+iEg1ppK$QFL-w{fc$_GEgAQJITsO@14kl;H4R3Ss%np}L)qgtr;nTK3 zaH3nO-GWQBW3R#Vbjx&erfgQ5rp4n9*(-4HI8pY}96Yn#*Z-QGsO#+=r!q$mj2t*W zwP|X4D)xxG&x=FiT-Ke}QpvzmR5$|~z(u-lpxVi1F>x#i0FXt88<&Z}?CaKSPf8_?skoH}UPxrF?sWkuj;R6y-S~ z>=O%fYVk&~E~g43Vl-zLj>ST`dpx*1b|k+CQIB0yct>W(HS`F)K#k?$dLp3V>m>k% z51A5O@#3a@fTA6A>xSV2H{=A^#Oi&Ahb@+@Olui1ePj?3o^X@Dk@Fq2$;s?ybnhIO)(n+TD zF+mp@Y{#{BP&y161>>e-E20zUY zNnMU-B~e`N*ok*rNSYASx%7mTaqaUr?ibY3m$qKe?*?L{FKw;Bb#&JZWnA-2?3+yp zy~ta~mCpXr**-skzNuW{Oq}zJ{-TmPE@KW0DjmCQgfcE)CR!@FK_(X|hbt?^Emeg% zloMAYD-Rk<1C(*uu`*#O)GOB)E3Yet3yGCDE5%u5TrV7JRr0y?6fOW(!d0TnCwtW0^imB$Q#7l*?aC6Lhwb9fPs1GO&JA&ei9hl>$A>B@_CKb>-) zN(%tg+((huOE-gb^Bm1n4g36q43Q(;a$N~w=%J(lYWYVjau@G;>n(C*HObg#Q2>2d zlbfFv+f#E4bA5OPMl;7dvoW6rDmK=ZM`|8@2*HPqBt)9QmD`@xk+n2`VYZe@y<7)N zNrxP7Y+vm^+?10Tt$Ru5J=Qg$A-%Amk5sz2w(2X~QgBVf_JsDZ(q@!4qO=h-xtYyo z+lQ4lt+cI5`=6od)ZM5Ozfs_$O1q%6ZA$x6Y1@_dh0=B??X1$ql=ivO1Zlc4;?I=$ zqyj%x+PKm_QQFf=`>)b=DeWVr{YGi0Hm{&{Km?B_f7A|ZIHxYVveK2|r|BmhVoR>= z#vrYceEBqAIL(((Gu{w;b#6KO?iu*$x`CdJHx8^>)8DzFum2~p+5Ng@QQOJcC`RJ zB1+psp7&d6&|*=0NZZyX*0x7HZ!H995Mv~K7ZrbOk7&zo5L2X|UIH)~%jg(Id{B(d zuhRM7opGF<8K)a_lCGftd%vf6al#EyJW2P|9=hpd|5dtPO(!37DE>QL&F69a4#n2? zaZAkp835hV;Oq=(wgy=gTRZTl_*bU*%@lXTFm=NTX~2IRtO?v?;dwx}pl%0#oYJ5# zCH`4TJWO$u?97;f9TWqM@P|xbLdG(bGql$da{{mEBv>;%M6q?mM=7?B=mUzmnz)8} z2~MW8KTYu}+KK3mSNh*jY#sqPJHy+RwLd*CMJP*&BNST`YEFrx6rV`+z#S~1*qZQ< zQsU(lTN2RWP7-)e=YyxD*AjD)+-+|FgB17DsJy>jPn1N<5wtKW~d&2rr30 TEZjSL7ZA5bpNf4I9mMYeBbr_d delta 2655 zcmZ`)eQZ-z6ug)zosa|duOYh{kzbt}wQ&Ry^S;_DeAR2ylE zv`0E3*9Lvpciz~4)mhV8(NQsUpPgi^KE_=f^o_hb)cJ>zvk(0mSsUZOO~U`zBbjA; zDDuIuF>Jq2Pw3#FZ+K@!MvSb!VMh|Kzb5Pcnpi@uILzBOyKW})4aOxK(oUKzx5N|s zMz$v;d*)HHfg}m($(APJDA_tn)`QYdPm=93KeP|G^=;|%UOqbLyBxk{Zm{r;a%I|! zo}gfCAMP|2*O`W^)yM2y#z0}1d8xdT_V}#TP?=hm!y<&`E0EwjyT?(3-~iMMjoE#OqmM7LX#|Z+4be&X?dneX(rj=QpHr0Y;-%-07R=Ol9f-$c@(K4 zZ*hjk$R2kr$#qb@PD&eJKBjENaWrP^IHcN6%5=UrUa2u-N>aT~$_)Nfyi#LG=`HAi z;&;q1Co<-0U_6T#qrAQp#-erZ1vOxj=L&HJ+7hQ%FJO5ClV|hS;1|1ZDv`#ZL?}kD zNiKD(;(}I;yUZXu7cuuocr;lE$w>0K0v>^Gl47?EXHGT7@grJJ|8{F zJl~OLy%nz^R}d3#301@MG`0TA2D4`k2^*}rVcX1ME>nG3UiUj&Im_a+5yvx^nbJ$G zW!CBm|ir=M#%Y8qaMNmk`+|R~G-=hP9XU@pa_Xv(=4%f`9MTQ4V*=p+$v!hgAGU_??O03c12xBu-i7X1`Y%wKDdGJnAn@ zX~1Dha^;VHmvYd9FO7TvV|Ni_2Ndb5bSZ(Eq^zziR8G#qwaDhmLQz*N_f>k8kLEEp zRrbShdcM3?=@ofpGQG;Hd{fTY=i$ey+BnaV{fi4i^lzz+(TAN_EQui%|DQ*&4q(<| zjtBk}&*_*nGJ*T>)cpyc0yg@8Z@|P4#_2~N-exQm=kNdm;|5mrkTGBmu#tBG(_cG{ zOx!Ph<@H9Ogi90rml*u%fXjF&euL){9M&h`<^61E!{VDc&J^zw2 - 42: e2 d1 rcall .+964 ; 0x408
- 44: e7 c1 rjmp .+974 ; 0x414 <_exit> + 42: 14 d2 rcall .+1064 ; 0x46c
+ 44: 19 c2 rjmp .+1074 ; 0x478 <_exit> 00000046 <__bad_interrupt>: 46: dc cf rjmp .-72 ; 0x0 <__vectors> @@ -93,12 +93,6 @@ Disassembly of section .text: 4e: 06 c0 rjmp .+12 ; 0x5c 50: 98 b3 in r25, 0x18 ; 24 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 58: 96 2b or r25, r22 @@ -113,8 +107,6 @@ Disassembly of section .text: 6a: 22 0f add r18, r18 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 72: 22 0f add r18, r18 74: 33 1f adc r19, r19 @@ -129,10 +121,14 @@ Disassembly of section .text: 86: 96 2b or r25, r22 88: 92 bb out 0x12, r25 ; 18 8a: 83 ff sbrs r24, 3 - _delay_ms(WAIT_WARN_BLINK); - ledg(LED2 | LED4, BLACK); 8c: 0c c0 rjmp .+24 ; 0xa6 8e: 82 b3 in r24, 0x12 ; 18 + _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); 90: 87 7c andi r24, 0xC7 ; 199 92: 82 bb out 0x12, r24 ; 18 94: 82 b3 in r24, 0x12 ; 18 @@ -147,10 +143,10 @@ Disassembly of section .text: a6: 08 95 ret 000000a8 : - _delay_ms(WAIT_WARN_BLINK); - ledg(LED3, RED); a8: 2f 92 push r2 aa: 3f 92 push r3 + _delay_ms(50); + ledg(LED1 | LED2 | LED3 | LED4, YELLOW); ac: 4f 92 push r4 ae: 5f 92 push r5 b0: 6f 92 push r6 @@ -163,12 +159,22 @@ Disassembly of section .text: 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 + 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++) { ca: df 93 push r29 + ledg(LED1 | LED2 | LED3 | LED4, BLACK); + _delay_ms(50); + ledg(LED1 | LED2 | LED3 | LED4, YELLOW); + _delay_ms(50); + } + ledg(LED1 | LED2 | LED3 | LED4, GREEN); cc: 8c 01 movw r16, r24 ce: 4b 01 movw r8, r22 d0: 6a 01 movw r12, r20 @@ -179,12 +185,12 @@ Disassembly of section .text: 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 + _delay_ms(2500); + ledg(LED1 | LED2 | LED3 | LED4, YELLOW); e8: 21 96 adiw r28, 0x01 ; 1 ea: cf 3f cpi r28, 0xFF ; 255 ec: d1 05 cpc r29, r1 @@ -195,8 +201,6 @@ Disassembly of section .text: 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 @@ -211,8 +215,6 @@ Disassembly of section .text: 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 @@ -227,12 +229,16 @@ Disassembly of section .text: 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> + _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); 13c: f5 cf rjmp .-22 ; 0x128 <__stack+0x49> 13e: df 91 pop r29 140: cf 91 pop r28 @@ -244,15 +250,11 @@ Disassembly of section .text: 14c: cf 90 pop r12 14e: bf 90 pop r11 150: af 90 pop r10 - { - ledg(led,to); - } - } - } -} 152: 9f 90 pop r9 154: 8f 90 pop r8 156: 7f 90 pop r7 + _delay_ms(50); + ledg(LED1 | LED2 | LED3 | LED4, YELLOW); 158: 6f 90 pop r6 15a: 5f 90 pop r5 15c: 4f 90 pop r4 @@ -261,9 +263,6 @@ Disassembly of section .text: 162: 08 95 ret 00000164 : - -void initleds() { - ledg(LED1 | LED3, CYAN); 164: 66 e0 ldi r22, 0x06 ; 6 166: 70 e0 ldi r23, 0x00 ; 0 168: 85 e0 ldi r24, 0x05 ; 5 @@ -273,13 +272,23 @@ void initleds() { 170: 88 e3 ldi r24, 0x38 ; 56 172: 91 e0 ldi r25, 0x01 ; 1 174: 21 50 subi r18, 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++) { 176: 80 40 sbci r24, 0x00 ; 0 + ledg(LED1 | LED2 | LED3 | LED4, BLACK); + _delay_ms(50); + ledg(LED1 | LED2 | LED3 | LED4, YELLOW); + _delay_ms(50); + } + ledg(LED1 | LED2 | LED3 | LED4, RED); 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); 180: 60 e0 ldi r22, 0x00 ; 0 182: 70 e0 ldi r23, 0x00 ; 0 184: 85 e0 ldi r24, 0x05 ; 5 @@ -294,6 +303,10 @@ void initleds() { 196: e1 f7 brne .-8 ; 0x190 198: 00 c0 rjmp .+0 ; 0x19a 19a: 00 00 nop +void initleds() { + ledg(LED1 | LED3, CYAN); + _delay_ms(20); + ledg(LED1 | LED3, BLACK); _delay_ms(500); ledg(LED1 | LED2 | LED3 | LED4, CYAN); 19c: 66 e0 ldi r22, 0x06 ; 6 @@ -427,290 +440,326 @@ void initschalter() 26e: 00 00 nop 270: 08 95 ret -00000272 : - } +00000272 : } -void programHacker() +void programGreenBlink() { - ledg(LED1 | LED2 | LED3 | LED4, BLACK); - 272: 60 e0 ldi r22, 0x00 ; 0 + while(1) { + ledg(LED1, BLUE); + 272: 64 e0 ldi r22, 0x04 ; 4 274: 70 e0 ldi r23, 0x00 ; 0 - 276: 8f e0 ldi r24, 0x0F ; 15 + 276: 81 e0 ldi r24, 0x01 ; 1 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 + 27c: 2f e3 ldi r18, 0x3F ; 63 + 27e: 8d e0 ldi r24, 0x0D ; 13 + 280: 93 e0 ldi r25, 0x03 ; 3 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 + 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 + _delay_ms(50); + ledg(LED1, BLACK); + 28e: 60 e0 ldi r22, 0x00 ; 0 290: 70 e0 ldi r23, 0x00 ; 0 - 292: 8f e0 ldi r24, 0x0F ; 15 + 292: 81 e0 ldi r24, 0x01 ; 1 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 + 298: 2f e3 ldi r18, 0x3F ; 63 + 29a: 8d e0 ldi r24, 0x0D ; 13 + 29c: 93 e0 ldi r25, 0x03 ; 3 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 + 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 + _delay_ms(50); + ledg(LED1, GREEN); + 2aa: 62 e0 ldi r22, 0x02 ; 2 + 2ac: 70 e0 ldi r23, 0x00 ; 0 + 2ae: 81 e0 ldi r24, 0x01 ; 1 + 2b0: 90 e0 ldi r25, 0x00 ; 0 + 2b2: ca de rcall .-620 ; 0x48 + 2b4: 2f e3 ldi r18, 0x3F ; 63 + 2b6: 8d e0 ldi r24, 0x0D ; 13 + 2b8: 93 e0 ldi r25, 0x03 ; 3 + 2ba: 21 50 subi r18, 0x01 ; 1 + 2bc: 80 40 sbci r24, 0x00 ; 0 + 2be: 90 40 sbci r25, 0x00 ; 0 + 2c0: e1 f7 brne .-8 ; 0x2ba + 2c2: 00 c0 rjmp .+0 ; 0x2c4 + 2c4: 00 00 nop + _delay_ms(50); + ledg(LED1, BLACK); + 2c6: 60 e0 ldi r22, 0x00 ; 0 + 2c8: 70 e0 ldi r23, 0x00 ; 0 + 2ca: 81 e0 ldi r24, 0x01 ; 1 + 2cc: 90 e0 ldi r25, 0x00 ; 0 + 2ce: bc de rcall .-648 ; 0x48 + 2d0: 2f e3 ldi r18, 0x3F ; 63 + 2d2: 8d e0 ldi r24, 0x0D ; 13 + 2d4: 93 e0 ldi r25, 0x03 ; 3 + 2d6: 21 50 subi r18, 0x01 ; 1 + 2d8: 80 40 sbci r24, 0x00 ; 0 + 2da: 90 40 sbci r25, 0x00 ; 0 + 2dc: e1 f7 brne .-8 ; 0x2d6 + 2de: 00 c0 rjmp .+0 ; 0x2e0 + 2e0: 00 00 nop + _delay_ms(50); + ledg(LED1, RED); + 2e2: 61 e0 ldi r22, 0x01 ; 1 + 2e4: 70 e0 ldi r23, 0x00 ; 0 + 2e6: 81 e0 ldi r24, 0x01 ; 1 + 2e8: 90 e0 ldi r25, 0x00 ; 0 + 2ea: ae de rcall .-676 ; 0x48 + 2ec: 2f e3 ldi r18, 0x3F ; 63 + 2ee: 8d e0 ldi r24, 0x0D ; 13 + 2f0: 93 e0 ldi r25, 0x03 ; 3 + 2f2: 21 50 subi r18, 0x01 ; 1 + 2f4: 80 40 sbci r24, 0x00 ; 0 + 2f6: 90 40 sbci r25, 0x00 ; 0 + 2f8: e1 f7 brne .-8 ; 0x2f2 + 2fa: 00 c0 rjmp .+0 ; 0x2fc + 2fc: 00 00 nop + _delay_ms(50); + ledg(LED1, BLACK); + 2fe: 60 e0 ldi r22, 0x00 ; 0 + 300: 70 e0 ldi r23, 0x00 ; 0 + 302: 81 e0 ldi r24, 0x01 ; 1 + 304: 90 e0 ldi r25, 0x00 ; 0 + 306: a0 de rcall .-704 ; 0x48 + 308: 2f e3 ldi r18, 0x3F ; 63 + 30a: 8d e0 ldi r24, 0x0D ; 13 + 30c: 93 e0 ldi r25, 0x03 ; 3 + 30e: 21 50 subi r18, 0x01 ; 1 + 310: 80 40 sbci r24, 0x00 ; 0 + 312: 90 40 sbci r25, 0x00 ; 0 + 314: e1 f7 brne .-8 ; 0x30e + 316: 00 c0 rjmp .+0 ; 0x318 + 318: 00 00 nop + _delay_ms(50); + ledg(LED3, BLUE); + 31a: 64 e0 ldi r22, 0x04 ; 4 + 31c: 70 e0 ldi r23, 0x00 ; 0 + 31e: 84 e0 ldi r24, 0x04 ; 4 + 320: 90 e0 ldi r25, 0x00 ; 0 + 322: 92 de rcall .-732 ; 0x48 + 324: 2f e3 ldi r18, 0x3F ; 63 + 326: 8d e0 ldi r24, 0x0D ; 13 + 328: 93 e0 ldi r25, 0x03 ; 3 + 32a: 21 50 subi r18, 0x01 ; 1 + 32c: 80 40 sbci r24, 0x00 ; 0 + 32e: 90 40 sbci r25, 0x00 ; 0 + 330: e1 f7 brne .-8 ; 0x32a + 332: 00 c0 rjmp .+0 ; 0x334 + 334: 00 00 nop + _delay_ms(50); + ledg(LED3, BLACK); + 336: 60 e0 ldi r22, 0x00 ; 0 + 338: 70 e0 ldi r23, 0x00 ; 0 + 33a: 84 e0 ldi r24, 0x04 ; 4 + 33c: 90 e0 ldi r25, 0x00 ; 0 + 33e: 84 de rcall .-760 ; 0x48 + 340: 2f e3 ldi r18, 0x3F ; 63 + 342: 8d e0 ldi r24, 0x0D ; 13 + 344: 93 e0 ldi r25, 0x03 ; 3 + 346: 21 50 subi r18, 0x01 ; 1 + 348: 80 40 sbci r24, 0x00 ; 0 + 34a: 90 40 sbci r25, 0x00 ; 0 + 34c: e1 f7 brne .-8 ; 0x346 + 34e: 00 c0 rjmp .+0 ; 0x350 + 350: 00 00 nop + _delay_ms(50); + ledg(LED3, GREEN); + 352: 62 e0 ldi r22, 0x02 ; 2 + 354: 70 e0 ldi r23, 0x00 ; 0 + 356: 84 e0 ldi r24, 0x04 ; 4 + 358: 90 e0 ldi r25, 0x00 ; 0 + 35a: 76 de rcall .-788 ; 0x48 + 35c: 2f e3 ldi r18, 0x3F ; 63 + 35e: 8d e0 ldi r24, 0x0D ; 13 + 360: 93 e0 ldi r25, 0x03 ; 3 + 362: 21 50 subi r18, 0x01 ; 1 + 364: 80 40 sbci r24, 0x00 ; 0 + 366: 90 40 sbci r25, 0x00 ; 0 + 368: e1 f7 brne .-8 ; 0x362 + 36a: 00 c0 rjmp .+0 ; 0x36c + 36c: 00 00 nop + _delay_ms(50); + ledg(LED3, BLACK); + 36e: 60 e0 ldi r22, 0x00 ; 0 + 370: 70 e0 ldi r23, 0x00 ; 0 + 372: 84 e0 ldi r24, 0x04 ; 4 + 374: 90 e0 ldi r25, 0x00 ; 0 + 376: 68 de rcall .-816 ; 0x48 + 378: 2f e3 ldi r18, 0x3F ; 63 + 37a: 8d e0 ldi r24, 0x0D ; 13 + 37c: 93 e0 ldi r25, 0x03 ; 3 + 37e: 21 50 subi r18, 0x01 ; 1 + 380: 80 40 sbci r24, 0x00 ; 0 + 382: 90 40 sbci r25, 0x00 ; 0 + 384: e1 f7 brne .-8 ; 0x37e + 386: 00 c0 rjmp .+0 ; 0x388 + 388: 00 00 nop + _delay_ms(50); + ledg(LED3, RED); + 38a: 61 e0 ldi r22, 0x01 ; 1 + 38c: 70 e0 ldi r23, 0x00 ; 0 + 38e: 84 e0 ldi r24, 0x04 ; 4 + 390: 90 e0 ldi r25, 0x00 ; 0 + 392: 5a de rcall .-844 ; 0x48 + 394: 2f e3 ldi r18, 0x3F ; 63 + 396: 8d e0 ldi r24, 0x0D ; 13 + 398: 93 e0 ldi r25, 0x03 ; 3 + 39a: 21 50 subi r18, 0x01 ; 1 + 39c: 80 40 sbci r24, 0x00 ; 0 + 39e: 90 40 sbci r25, 0x00 ; 0 + 3a0: e1 f7 brne .-8 ; 0x39a + 3a2: 00 c0 rjmp .+0 ; 0x3a4 + 3a4: 00 00 nop + _delay_ms(50); + ledg(LED3, BLACK); + 3a6: 60 e0 ldi r22, 0x00 ; 0 + 3a8: 70 e0 ldi r23, 0x00 ; 0 + 3aa: 84 e0 ldi r24, 0x04 ; 4 + 3ac: 90 e0 ldi r25, 0x00 ; 0 + 3ae: 4c de rcall .-872 ; 0x48 + 3b0: 2f eb ldi r18, 0xBF ; 191 + 3b2: 87 e2 ldi r24, 0x27 ; 39 + 3b4: 99 e0 ldi r25, 0x09 ; 9 + 3b6: 21 50 subi r18, 0x01 ; 1 + 3b8: 80 40 sbci r24, 0x00 ; 0 + 3ba: 90 40 sbci r25, 0x00 ; 0 + 3bc: e1 f7 brne .-8 ; 0x3b6 + 3be: 00 c0 rjmp .+0 ; 0x3c0 + 3c0: 00 00 nop + _delay_ms(150); + ledg(LED1 | LED3, BLUE); + 3c2: 64 e0 ldi r22, 0x04 ; 4 + 3c4: 70 e0 ldi r23, 0x00 ; 0 + 3c6: 85 e0 ldi r24, 0x05 ; 5 + 3c8: 90 e0 ldi r25, 0x00 ; 0 + 3ca: 3e de rcall .-900 ; 0x48 + 3cc: 2f e3 ldi r18, 0x3F ; 63 + 3ce: 8d e0 ldi r24, 0x0D ; 13 + 3d0: 93 e0 ldi r25, 0x03 ; 3 + 3d2: 21 50 subi r18, 0x01 ; 1 + 3d4: 80 40 sbci r24, 0x00 ; 0 + 3d6: 90 40 sbci r25, 0x00 ; 0 + 3d8: e1 f7 brne .-8 ; 0x3d2 + 3da: 00 c0 rjmp .+0 ; 0x3dc + 3dc: 00 00 nop + _delay_ms(50); + ledg(LED1 | LED3, BLACK); + 3de: 60 e0 ldi r22, 0x00 ; 0 + 3e0: 70 e0 ldi r23, 0x00 ; 0 + 3e2: 85 e0 ldi r24, 0x05 ; 5 + 3e4: 90 e0 ldi r25, 0x00 ; 0 + 3e6: 30 de rcall .-928 ; 0x48 + 3e8: 2f e3 ldi r18, 0x3F ; 63 + 3ea: 8d e0 ldi r24, 0x0D ; 13 + 3ec: 93 e0 ldi r25, 0x03 ; 3 + 3ee: 21 50 subi r18, 0x01 ; 1 + 3f0: 80 40 sbci r24, 0x00 ; 0 + 3f2: 90 40 sbci r25, 0x00 ; 0 + 3f4: e1 f7 brne .-8 ; 0x3ee + 3f6: 00 c0 rjmp .+0 ; 0x3f8 + 3f8: 00 00 nop + _delay_ms(50); + ledg(LED1 | LED3, GREEN); + 3fa: 62 e0 ldi r22, 0x02 ; 2 + 3fc: 70 e0 ldi r23, 0x00 ; 0 + 3fe: 85 e0 ldi r24, 0x05 ; 5 + 400: 90 e0 ldi r25, 0x00 ; 0 + 402: 22 de rcall .-956 ; 0x48 + 404: 2f e3 ldi r18, 0x3F ; 63 + 406: 8d e0 ldi r24, 0x0D ; 13 + 408: 93 e0 ldi r25, 0x03 ; 3 + 40a: 21 50 subi r18, 0x01 ; 1 + 40c: 80 40 sbci r24, 0x00 ; 0 + 40e: 90 40 sbci r25, 0x00 ; 0 + 410: e1 f7 brne .-8 ; 0x40a + 412: 00 c0 rjmp .+0 ; 0x414 + 414: 00 00 nop + _delay_ms(50); + ledg(LED1 | LED3, BLACK); + 416: 60 e0 ldi r22, 0x00 ; 0 + 418: 70 e0 ldi r23, 0x00 ; 0 + 41a: 85 e0 ldi r24, 0x05 ; 5 + 41c: 90 e0 ldi r25, 0x00 ; 0 + 41e: 14 de rcall .-984 ; 0x48 + 420: 2f e3 ldi r18, 0x3F ; 63 + 422: 8d e0 ldi r24, 0x0D ; 13 + 424: 93 e0 ldi r25, 0x03 ; 3 + 426: 21 50 subi r18, 0x01 ; 1 + 428: 80 40 sbci r24, 0x00 ; 0 + 42a: 90 40 sbci r25, 0x00 ; 0 + 42c: e1 f7 brne .-8 ; 0x426 + 42e: 00 c0 rjmp .+0 ; 0x430 + 430: 00 00 nop + _delay_ms(50); + ledg(LED1 | LED3, RED); + 432: 61 e0 ldi r22, 0x01 ; 1 + 434: 70 e0 ldi r23, 0x00 ; 0 + 436: 85 e0 ldi r24, 0x05 ; 5 + 438: 90 e0 ldi r25, 0x00 ; 0 + 43a: 06 de rcall .-1012 ; 0x48 + 43c: 2f e3 ldi r18, 0x3F ; 63 + 43e: 8d e0 ldi r24, 0x0D ; 13 + 440: 93 e0 ldi r25, 0x03 ; 3 + 442: 21 50 subi r18, 0x01 ; 1 + 444: 80 40 sbci r24, 0x00 ; 0 + 446: 90 40 sbci r25, 0x00 ; 0 + 448: e1 f7 brne .-8 ; 0x442 + 44a: 00 c0 rjmp .+0 ; 0x44c + 44c: 00 00 nop + _delay_ms(50); + ledg(LED1 | LED3, BLACK); + 44e: 60 e0 ldi r22, 0x00 ; 0 + 450: 70 e0 ldi r23, 0x00 ; 0 + 452: 85 e0 ldi r24, 0x05 ; 5 + 454: 90 e0 ldi r25, 0x00 ; 0 + 456: f8 dd rcall .-1040 ; 0x48 + 458: 2f eb ldi r18, 0xBF ; 191 + 45a: 87 e2 ldi r24, 0x27 ; 39 + 45c: 99 e0 ldi r25, 0x09 ; 9 + 45e: 21 50 subi r18, 0x01 ; 1 + 460: 80 40 sbci r24, 0x00 ; 0 + 462: 90 40 sbci r25, 0x00 ; 0 + 464: e1 f7 brne .-8 ; 0x45e + 466: 00 c0 rjmp .+0 ; 0x468 + 468: 00 00 nop + 46a: 03 cf rjmp .-506 ; 0x272 -00000408
: - } +0000046c
: + } } int main(void) { DDRB = 0b00111111; - 408: 8f e3 ldi r24, 0x3F ; 63 - 40a: 87 bb out 0x17, r24 ; 23 + 46c: 8f e3 ldi r24, 0x3F ; 63 + 46e: 87 bb out 0x17, r24 ; 23 DDRD = 0b00111111; - 40c: 81 bb out 0x11, r24 ; 17 + 470: 81 bb out 0x11, r24 ; 17 initschalter(); - 40e: 26 df rcall .-436 ; 0x25c + 472: f4 de rcall .-536 ; 0x25c initleds(); - 410: a9 de rcall .-686 ; 0x164 - //programWarnBlink(); + 474: 77 de rcall .-786 ; 0x164 //programColorFull(); //programRainbow(50); //programWarnYellow(); //programCop(); - programHacker(); - 412: 2f df rcall .-418 ; 0x272 + //programHacker(); + programGreenBlink(); + 476: fd de rcall .-518 ; 0x272 -00000414 <_exit>: - 414: f8 94 cli +00000478 <_exit>: + 478: f8 94 cli -00000416 <__stop_program>: - 416: ff cf rjmp .-2 ; 0x416 <__stop_program> +0000047a <__stop_program>: + 47a: ff cf rjmp .-2 ; 0x47a <__stop_program> diff --git a/Leuchtklotz/Leuchtklotz/Debug/Leuchtklotz.map b/Leuchtklotz/Leuchtklotz/Debug/Leuchtklotz.map index 838b2a7..8676e6f 100644 --- a/Leuchtklotz/Leuchtklotz/Debug/Leuchtklotz.map +++ b/Leuchtklotz/Leuchtklotz/Debug/Leuchtklotz.map @@ -21,6 +21,8 @@ Discarded input sections 0x00000000 0x144 Leuchtklotz.o .text.programWarnBlink 0x00000000 0x152 Leuchtklotz.o + .text.programHacker + 0x00000000 0x196 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 @@ -161,7 +163,7 @@ LOAD c:/program files (x86)/atmel/atmel toolchain/avr8 gcc/native/3.4.2.876/avr8 .rela.plt *(.rela.plt) -.text 0x00000000 0x418 +.text 0x00000000 0x47c *(.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 @@ -248,16 +250,16 @@ LOAD c:/program files (x86)/atmel/atmel toolchain/avr8 gcc/native/3.4.2.876/avr8 .text.initschalter 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) + .text.programGreenBlink + 0x00000272 0x1fa Leuchtklotz.o + 0x00000272 programGreenBlink + .text.main 0x0000046c 0xc Leuchtklotz.o + 0x0000046c main + 0x00000478 . = ALIGN (0x2) *(.fini9) - .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 0x00000478 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) + 0x00000478 _exit + 0x00000478 exit *(.fini9) *(.fini8) *(.fini8) @@ -276,11 +278,11 @@ LOAD c:/program files (x86)/atmel/atmel toolchain/avr8 gcc/native/3.4.2.876/avr8 *(.fini1) *(.fini1) *(.fini0) - .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 0x00000478 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) - 0x00000418 _etext = . + 0x0000047c _etext = . -.data 0x00800060 0x0 load address 0x00000418 +.data 0x00800060 0x0 load address 0x0000047c 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 @@ -301,8 +303,8 @@ LOAD c:/program files (x86)/atmel/atmel toolchain/avr8 gcc/native/3.4.2.876/avr8 *(.bss*) *(COMMON) 0x00800060 PROVIDE (__bss_end, .) - 0x00000418 __data_load_start = LOADADDR (.data) - 0x00000418 __data_load_end = (__data_load_start + SIZEOF (.data)) + 0x0000047c __data_load_start = LOADADDR (.data) + 0x0000047c __data_load_end = (__data_load_start + SIZEOF (.data)) .noinit 0x00800060 0x0 0x00800060 PROVIDE (__noinit_start, .) @@ -367,35 +369,35 @@ LOAD c:/program files (x86)/atmel/atmel toolchain/avr8 gcc/native/3.4.2.876/avr8 .debug_sfnames *(.debug_sfnames) -.debug_aranges 0x00000000 0x78 +.debug_aranges 0x00000000 0x80 *(.debug_aranges) .debug_aranges - 0x00000000 0x78 Leuchtklotz.o + 0x00000000 0x80 Leuchtklotz.o .debug_pubnames *(.debug_pubnames) -.debug_info 0x00000000 0x1935 +.debug_info 0x00000000 0x2042 *(.debug_info) - .debug_info 0x00000000 0x1935 Leuchtklotz.o + .debug_info 0x00000000 0x2042 Leuchtklotz.o *(.gnu.linkonce.wi.*) -.debug_abbrev 0x00000000 0x20e +.debug_abbrev 0x00000000 0x226 *(.debug_abbrev) - .debug_abbrev 0x00000000 0x20e Leuchtklotz.o + .debug_abbrev 0x00000000 0x226 Leuchtklotz.o -.debug_line 0x00000000 0x59c +.debug_line 0x00000000 0x711 *(.debug_line) - .debug_line 0x00000000 0x59c Leuchtklotz.o + .debug_line 0x00000000 0x711 Leuchtklotz.o -.debug_frame 0x00000000 0x178 +.debug_frame 0x00000000 0x188 *(.debug_frame) - .debug_frame 0x00000000 0x178 Leuchtklotz.o + .debug_frame 0x00000000 0x188 Leuchtklotz.o -.debug_str 0x00000000 0x1a1 +.debug_str 0x00000000 0x1b3 *(.debug_str) - .debug_str 0x00000000 0x1a1 Leuchtklotz.o - 0x1d5 (size before relaxing) + .debug_str 0x00000000 0x1b3 Leuchtklotz.o + 0x1e7 (size before relaxing) .debug_loc 0x00000000 0x643 *(.debug_loc) @@ -407,9 +409,9 @@ LOAD c:/program files (x86)/atmel/atmel toolchain/avr8 gcc/native/3.4.2.876/avr8 .debug_pubtypes *(.debug_pubtypes) -.debug_ranges 0x00000000 0x128 +.debug_ranges 0x00000000 0x130 *(.debug_ranges) - .debug_ranges 0x00000000 0x128 Leuchtklotz.o + .debug_ranges 0x00000000 0x130 Leuchtklotz.o .debug_macro *(.debug_macro) diff --git a/Leuchtklotz/Leuchtklotz/Debug/Leuchtklotz.srec b/Leuchtklotz/Leuchtklotz/Debug/Leuchtklotz.srec index c8d4728..e9a7f8f 100644 --- a/Leuchtklotz/Leuchtklotz/Debug/Leuchtklotz.srec +++ b/Leuchtklotz/Leuchtklotz/Debug/Leuchtklotz.srec @@ -3,7 +3,7 @@ S113000014C021C020C01FC01EC01DC01CC01BC006 S11300101AC019C018C017C016C015C014C013C028 S113002012C011C010C00FC00EC011241FBECFEDEE S1130030CDBF20E0A0E6B0E001C01D92A036B2071B -S1130040E1F7E2D1E7C1DCCF6770772780FF06C014 +S1130040E1F714D219C2DCCF6770772780FF06C0AE S113005098B3987F98BB98B3962B98BB81FF0DC03B S113006098B3977C98BB98B39B01220F331F220F40 S1130070331F220F331F292B28BB82FF06C092B3E4 @@ -38,31 +38,37 @@ 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 +S1130270089564E070E081E090E0E6DE2FE38DE035 +S113028093E0215080409040E1F700C0000060E01E +S113029070E081E090E0D8DE2FE38DE093E0215020 +S11302A080409040E1F700C0000062E070E081E02F +S11302B090E0CADE2FE38DE093E02150804090402F +S11302C0E1F700C0000060E070E081E090E0BCDE97 +S11302D02FE38DE093E0215080409040E1F700C08F +S11302E0000061E070E081E090E0AEDE2FE38DE09D +S11302F093E0215080409040E1F700C0000060E0AE +S113030070E081E090E0A0DE2FE38DE093E02150E7 +S113031080409040E1F700C0000064E070E084E0B9 +S113032090E092DE2FE38DE093E0215080409040F6 +S1130330E1F700C0000060E070E084E090E084DE5B +S11303402FE38DE093E0215080409040E1F700C01E +S1130350000062E070E084E090E076DE2FE38DE060 +S113036093E0215080409040E1F700C0000060E03D +S113037070E084E090E068DE2FE38DE093E02150AC +S113038080409040E1F700C0000061E070E084E04C +S113039090E05ADE2FE38DE093E0215080409040BE +S11303A0E1F700C0000060E070E084E090E04CDE23 +S11303B02FEB87E299E0215080409040E1F700C0A4 +S11303C0000064E070E085E090E03EDE2FE38DE025 +S11303D093E0215080409040E1F700C0000060E0CD +S11303E070E085E090E030DE2FE38DE093E0215073 +S11303F080409040E1F700C0000062E070E085E0DA +S113040090E022DE2FE38DE093E021508040904085 +S1130410E1F700C0000060E070E085E090E014DEE9 +S11304202FE38DE093E0215080409040E1F700C03D +S1130430000061E070E085E090E006DE2FE38DE0EF +S113044093E0215080409040E1F700C0000060E05C +S113045070E085E090E0F8DD2FEB87E299E0215031 +S113046080409040E1F700C0000003CF8FE387BBDA +S10F047081BBF4DE77DEFDDEF894FFCFE4 S9030000FC diff --git a/Leuchtklotz/Leuchtklotz/Leuchtklotz.c b/Leuchtklotz/Leuchtklotz/Leuchtklotz.c index 59ae971..2a49925 100644 --- a/Leuchtklotz/Leuchtklotz/Leuchtklotz.c +++ b/Leuchtklotz/Leuchtklotz/Leuchtklotz.c @@ -281,6 +281,48 @@ void programHacker() } } +void programGreenBlink() +{ + while(1) { + ledg(LED1, BLUE); + _delay_ms(50); + ledg(LED1, BLACK); + _delay_ms(50); + ledg(LED1, GREEN); + _delay_ms(50); + ledg(LED1, BLACK); + _delay_ms(50); + ledg(LED1, RED); + _delay_ms(50); + ledg(LED1, BLACK); + _delay_ms(50); + ledg(LED3, BLUE); + _delay_ms(50); + ledg(LED3, BLACK); + _delay_ms(50); + ledg(LED3, GREEN); + _delay_ms(50); + ledg(LED3, BLACK); + _delay_ms(50); + ledg(LED3, RED); + _delay_ms(50); + ledg(LED3, BLACK); + _delay_ms(150); + ledg(LED1 | LED3, BLUE); + _delay_ms(50); + ledg(LED1 | LED3, BLACK); + _delay_ms(50); + ledg(LED1 | LED3, GREEN); + _delay_ms(50); + ledg(LED1 | LED3, BLACK); + _delay_ms(50); + ledg(LED1 | LED3, RED); + _delay_ms(50); + ledg(LED1 | LED3, BLACK); + _delay_ms(150); + } +} + int main(void) { DDRB = 0b00111111; @@ -294,6 +336,7 @@ int main(void) //programRainbow(50); //programWarnYellow(); //programCop(); - programHacker(); + //programHacker(); + programGreenBlink(); } } \ No newline at end of file