From eb0f97f3a786b6a48eb7edc772afa138c9fb21f1 Mon Sep 17 00:00:00 2001 From: BlubbFish Date: Sun, 16 Nov 2014 17:10:00 +0000 Subject: [PATCH] 20141116-181001 --- Door.atsuo | Bin 8704 -> 8704 bytes Door/Debug/Door.d | 10 +- Door/Debug/Door.elf | Bin 6314 -> 5889 bytes Door/Debug/Door.hex | 21 ++-- Door/Debug/Door.lss | 237 +++++++++++++++++-------------------------- Door/Debug/Door.map | 216 +++++++++++++++++++-------------------- Door/Debug/Door.srec | 21 ++-- Door/Debug/Makefile | 4 +- Door/Door.cpp | 29 +++--- Door/Door.cppproj | 158 ++++++++++++++--------------- 10 files changed, 326 insertions(+), 370 deletions(-) diff --git a/Door.atsuo b/Door.atsuo index 5fdd55e8a454b2284a1d0036080266f33fa59592..e6260e0212dc8ba76cbffaf870b2395a6c9fb514 100644 GIT binary patch delta 373 zcmZp0X>i%#!@|fic_Ehqn~{%*D&vL8#Vi+jq!}0(*ns#y5KO+vqB6OGgJp6Bt2ZxL zgdJJt058ktAFSRiyo^jhVP0gZ60Qq8%uoTiNhRC?Jfc8B4kVSEzi|6APd?0IIJtyB zfJY1{!-FEre}RdIA1K0&Bs$qagk|y%A@9kD`D`aQ2s`sKasg%ekX3vURu=^F;eZ9m z5}2&WBC^>*q=jYj5k8wqk}f>rKv78`hPiNaiR2Z=$tUi%#!@|fmS&>Da-QZ~Ouc;@_PcCM;$Ro+Xz`zW||AAogMHZFG4IC_!D_FgG z89^eV$TA0bSvLP*^=6rTn8k2%3D*T4A)qWDvWgP!03Ifw00)xb<}cj-%)E>&Kp}o4 z;mIZZ0X!fpc#s4)f8oEt1Qr!T5}oWI!ZP`X5YS0nKv7;~nG#`tuxq{us|)G_C1Ah> z$Y25bRb;b+NDB*(G>|I}#31{?p8O&az#|0|U`G<%Tq1dek%JpaWO9i##EmjYf}6ic x&tw#EvY21IX5kZyR~Ek+SBA2?Y@RE-nvp{gN!{cU`2ZdPr~u63&0pksm;fcpoTLB% diff --git a/Door/Debug/Door.d b/Door/Debug/Door.d index 04f6ab3..9a8a9d3 100644 --- a/Door/Debug/Door.d +++ b/Door/Debug/Door.d @@ -4,7 +4,9 @@ Door.d Door.o: .././Door.cpp \ 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/include/inttypes.h \ c:\program\ files\ (x86)\atmel\atmel\ toolchain\avr8\ gcc\native\3.4.2.876\avr8-gnu-toolchain\bin\../lib/gcc/avr/4.7.2/include/stdint.h \ 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/include/stdint.h \ - 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/include/avr/iotn2313.h \ + 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/include/avr/iom168a.h \ + 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/include/avr/iom168.h \ + 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/include/avr/iomx8.h \ 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/include/avr/portpins.h \ 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/include/avr/common.h \ 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/include/avr/version.h \ @@ -24,7 +26,11 @@ c:\program\ files\ (x86)\atmel\atmel\ toolchain\avr8\ gcc\native\3.4.2.876\avr8- 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/include/stdint.h: -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/include/avr/iotn2313.h: +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/include/avr/iom168a.h: + +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/include/avr/iom168.h: + +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/include/avr/iomx8.h: 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/include/avr/portpins.h: diff --git a/Door/Debug/Door.elf b/Door/Debug/Door.elf index 9c952d878383b915ef34eae12ae5310d1d5148a4..418e5102fa8e7e4f86a6201beb74ffb19eaedbf3 100644 GIT binary patch literal 5889 zcmd6qTaZ-68OOgfv%@aTvh0EttpekiT8pKG8D<%mW#zKMaEl1Y%~i)7=5m-lFt^N{ zS-=n&ZWSgF!bsq!f)$|@gBN)vp^F!(SZk@hbwi1D@S{_(58xcnIMsMQ)J9>}i*z`>4wkNgAOZpO;gw&!d=U*ClBM-RAQc-Qn~7 zw7}<;6!Cc#`r*1Ht;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pEK2e0Sa^BT;p`l&4{$u3a3X8cTq7uPmCTVLKhxR n&$<)Xc~t14J!D$yUNkyhEAfkjO_gpu?p(*7E0||k>s#sHUoM!$ diff --git a/Door/Debug/Door.hex b/Door/Debug/Door.hex index 53b47cd..f11007d 100644 --- a/Door/Debug/Door.hex +++ b/Door/Debug/Door.hex @@ -1,11 +1,12 @@ -:1000000012C017C016C015C014C013C012C011C052 -:1000100010C00FC00EC00DC00CC00BC00AC009C07C -:1000200008C007C006C011241FBECFEDCDBF11D040 -:1000300035C0E6CF18B883E081B90895BA9A8D9A91 -:10004000089581EB80BF81E083BF12BE16BE1CBE47 -:100050000895F0DFF3DFF5DF459B10C086B78823F6 -:10006000D9F386B7815086BF8CB781508CBF8FEC97 -:1000700097E00197F1F700C00000EECF86B78F3F01 -:1000800059F386B78F5F86BF8CB78F5F8CBF8FEDBC -:100090009EE20197F1F700C00000DECFF894FFCF99 +:100000000C9434000C943E000C943E000C943E0082 +:100010000C943E000C943E000C943E000C943E0068 +:100020000C943E000C943E000C943E000C943E0058 +:100030000C943E000C943E000C943E000C943E0048 +:100040000C943E000C943E000C943E000C943E0038 +:100050000C943E000C943E000C943E000C943E0028 +:100060000C943E000C943E0011241FBECFEFD4E050 +:10007000DEBFCDBF0E9440000C9456000C940000DF +:1000800084B1836084B9289A21E092E085B1822707 +:1000900085B985B1892785B93FE744E88EE13150BC +:1000A00040408040E1F700C00000F0CFF894FFCF5F :00000001FF diff --git a/Door/Debug/Door.lss b/Door/Debug/Door.lss index 4060185..5f8df04 100644 --- a/Door/Debug/Door.lss +++ b/Door/Debug/Door.lss @@ -3,179 +3,124 @@ Door.elf: file format elf32-avr Sections: Idx Name Size VMA LMA File off Algn - 0 .text 000000a0 00000000 00000000 00000074 2**1 - CONTENTS, ALLOC, LOAD, READONLY, CODE - 1 .data 00000000 00800060 000000a0 00000114 2**0 + 0 .data 00000000 00800100 000000b0 00000124 2**0 CONTENTS, ALLOC, LOAD, DATA - 2 .stab 000006b4 00000000 00000000 00000114 2**2 + 1 .text 000000b0 00000000 00000000 00000074 2**1 + CONTENTS, ALLOC, LOAD, READONLY, CODE + 2 .stab 000006cc 00000000 00000000 00000124 2**2 CONTENTS, READONLY, DEBUGGING - 3 .stabstr 00000082 00000000 00000000 000007c8 2**0 + 3 .stabstr 00000082 00000000 00000000 000007f0 2**0 CONTENTS, READONLY, DEBUGGING - 4 .comment 0000002f 00000000 00000000 0000084a 2**0 + 4 .comment 0000002f 00000000 00000000 00000872 2**0 CONTENTS, READONLY - 5 .debug_aranges 00000038 00000000 00000000 00000879 2**0 + 5 .debug_aranges 00000020 00000000 00000000 000008a1 2**0 CONTENTS, READONLY, DEBUGGING - 6 .debug_info 000001c5 00000000 00000000 000008b1 2**0 + 6 .debug_info 0000011f 00000000 00000000 000008c1 2**0 CONTENTS, READONLY, DEBUGGING - 7 .debug_abbrev 00000107 00000000 00000000 00000a76 2**0 + 7 .debug_abbrev 000000cf 00000000 00000000 000009e0 2**0 CONTENTS, READONLY, DEBUGGING - 8 .debug_line 000001bf 00000000 00000000 00000b7d 2**0 + 8 .debug_line 00000184 00000000 00000000 00000aaf 2**0 CONTENTS, READONLY, DEBUGGING - 9 .debug_frame 00000054 00000000 00000000 00000d3c 2**2 + 9 .debug_frame 00000024 00000000 00000000 00000c34 2**2 CONTENTS, READONLY, DEBUGGING - 10 .debug_str 00000122 00000000 00000000 00000d90 2**0 + 10 .debug_str 000000d4 00000000 00000000 00000c58 2**0 CONTENTS, READONLY, DEBUGGING - 11 .debug_loc 00000046 00000000 00000000 00000eb2 2**0 - CONTENTS, READONLY, DEBUGGING - 12 .debug_ranges 00000028 00000000 00000000 00000ef8 2**0 + 11 .debug_ranges 00000010 00000000 00000000 00000d2c 2**0 CONTENTS, READONLY, DEBUGGING Disassembly of section .text: 00000000 <__vectors>: - 0: 12 c0 rjmp .+36 ; 0x26 <__ctors_end> - 2: 17 c0 rjmp .+46 ; 0x32 <__bad_interrupt> - 4: 16 c0 rjmp .+44 ; 0x32 <__bad_interrupt> - 6: 15 c0 rjmp .+42 ; 0x32 <__bad_interrupt> - 8: 14 c0 rjmp .+40 ; 0x32 <__bad_interrupt> - a: 13 c0 rjmp .+38 ; 0x32 <__bad_interrupt> - c: 12 c0 rjmp .+36 ; 0x32 <__bad_interrupt> - e: 11 c0 rjmp .+34 ; 0x32 <__bad_interrupt> - 10: 10 c0 rjmp .+32 ; 0x32 <__bad_interrupt> - 12: 0f c0 rjmp .+30 ; 0x32 <__bad_interrupt> - 14: 0e c0 rjmp .+28 ; 0x32 <__bad_interrupt> - 16: 0d c0 rjmp .+26 ; 0x32 <__bad_interrupt> - 18: 0c c0 rjmp .+24 ; 0x32 <__bad_interrupt> - 1a: 0b c0 rjmp .+22 ; 0x32 <__bad_interrupt> - 1c: 0a c0 rjmp .+20 ; 0x32 <__bad_interrupt> - 1e: 09 c0 rjmp .+18 ; 0x32 <__bad_interrupt> - 20: 08 c0 rjmp .+16 ; 0x32 <__bad_interrupt> - 22: 07 c0 rjmp .+14 ; 0x32 <__bad_interrupt> - 24: 06 c0 rjmp .+12 ; 0x32 <__bad_interrupt> + 0: 0c 94 34 00 jmp 0x68 ; 0x68 <__ctors_end> + 4: 0c 94 3e 00 jmp 0x7c ; 0x7c <__bad_interrupt> + 8: 0c 94 3e 00 jmp 0x7c ; 0x7c <__bad_interrupt> + c: 0c 94 3e 00 jmp 0x7c ; 0x7c <__bad_interrupt> + 10: 0c 94 3e 00 jmp 0x7c ; 0x7c <__bad_interrupt> + 14: 0c 94 3e 00 jmp 0x7c ; 0x7c <__bad_interrupt> + 18: 0c 94 3e 00 jmp 0x7c ; 0x7c <__bad_interrupt> + 1c: 0c 94 3e 00 jmp 0x7c ; 0x7c <__bad_interrupt> + 20: 0c 94 3e 00 jmp 0x7c ; 0x7c <__bad_interrupt> + 24: 0c 94 3e 00 jmp 0x7c ; 0x7c <__bad_interrupt> + 28: 0c 94 3e 00 jmp 0x7c ; 0x7c <__bad_interrupt> + 2c: 0c 94 3e 00 jmp 0x7c ; 0x7c <__bad_interrupt> + 30: 0c 94 3e 00 jmp 0x7c ; 0x7c <__bad_interrupt> + 34: 0c 94 3e 00 jmp 0x7c ; 0x7c <__bad_interrupt> + 38: 0c 94 3e 00 jmp 0x7c ; 0x7c <__bad_interrupt> + 3c: 0c 94 3e 00 jmp 0x7c ; 0x7c <__bad_interrupt> + 40: 0c 94 3e 00 jmp 0x7c ; 0x7c <__bad_interrupt> + 44: 0c 94 3e 00 jmp 0x7c ; 0x7c <__bad_interrupt> + 48: 0c 94 3e 00 jmp 0x7c ; 0x7c <__bad_interrupt> + 4c: 0c 94 3e 00 jmp 0x7c ; 0x7c <__bad_interrupt> + 50: 0c 94 3e 00 jmp 0x7c ; 0x7c <__bad_interrupt> + 54: 0c 94 3e 00 jmp 0x7c ; 0x7c <__bad_interrupt> + 58: 0c 94 3e 00 jmp 0x7c ; 0x7c <__bad_interrupt> + 5c: 0c 94 3e 00 jmp 0x7c ; 0x7c <__bad_interrupt> + 60: 0c 94 3e 00 jmp 0x7c ; 0x7c <__bad_interrupt> + 64: 0c 94 3e 00 jmp 0x7c ; 0x7c <__bad_interrupt> -00000026 <__ctors_end>: - 26: 11 24 eor r1, r1 - 28: 1f be out 0x3f, r1 ; 63 - 2a: cf ed ldi r28, 0xDF ; 223 - 2c: cd bf out 0x3d, r28 ; 61 - 2e: 11 d0 rcall .+34 ; 0x52
- 30: 35 c0 rjmp .+106 ; 0x9c <_exit> +00000068 <__ctors_end>: + 68: 11 24 eor r1, r1 + 6a: 1f be out 0x3f, r1 ; 63 + 6c: cf ef ldi r28, 0xFF ; 255 + 6e: d4 e0 ldi r29, 0x04 ; 4 + 70: de bf out 0x3e, r29 ; 62 + 72: cd bf out 0x3d, r28 ; 61 + 74: 0e 94 40 00 call 0x80 ; 0x80
+ 78: 0c 94 56 00 jmp 0xac ; 0xac <_exit> -00000032 <__bad_interrupt>: - 32: e6 cf rjmp .-52 ; 0x0 <__vectors> - -00000034 <_Z8Init_AINv>: - // The Analog Comparator's positive input is - // connected to the AIN0 pin - // The Analog Comparator's negative input is - // connected to the AIN1 pin - // Analog Comparator Input Capture by Timer/Counter 1: Off - ACSR=(0<: -} - -void Init_Output() -{ - DDRB |= (1<: - // OC0B output: Inverted PWM - // Timer Period: 0,06375 ms - // Output Pulse(s): - // OC0A Period: 0,06375 ms Width: 0,25 us - // OC0B Period: 0,06375 ms Width: 0,06325 ms - TCCR0A=(1<: -} +0000007c <__bad_interrupt>: + 7c: 0c 94 00 00 jmp 0 ; 0x0 <__vectors> +00000080
: int main(void) { - Init_AIN(); - 52: f0 df rcall .-32 ; 0x34 <_Z8Init_AINv> - Init_Output(); - 54: f3 df rcall .-26 ; 0x3c <_Z11Init_Outputv> - Init_Timer(); - 56: f5 df rcall .-22 ; 0x42 <_Z10Init_Timerv> + //Init_AIN(); + //Init_Output(); + //Init_Timer(); + DDRB |= (1< - if(OCR0A != 0) { - 5c: 86 b7 in r24, 0x36 ; 54 - 5e: 88 23 and r24, r24 - 60: d9 f3 breq .-10 ; 0x58 - OCR0A--; - 62: 86 b7 in r24, 0x36 ; 54 - 64: 81 50 subi r24, 0x01 ; 1 - 66: 86 bf out 0x36, r24 ; 54 - OCR0B--; - 68: 8c b7 in r24, 0x3c ; 60 - 6a: 81 50 subi r24, 0x01 ; 1 - 6c: 8c bf out 0x3c, r24 ; 60 + PORTB ^= (1< - 76: 00 c0 rjmp .+0 ; 0x78 - 78: 00 00 nop - 7a: ee cf rjmp .-36 ; 0x58 - _delay_ms(1); - } - } else { - if(OCR0A != 0xFF) { - 7c: 86 b7 in r24, 0x36 ; 54 - 7e: 8f 3f cpi r24, 0xFF ; 255 - 80: 59 f3 breq .-42 ; 0x58 - OCR0A++; - 82: 86 b7 in r24, 0x36 ; 54 - 84: 8f 5f subi r24, 0xFF ; 255 - 86: 86 bf out 0x36, r24 ; 54 - OCR0B++; - 88: 8c b7 in r24, 0x3c ; 60 - 8a: 8f 5f subi r24, 0xFF ; 255 - 8c: 8c bf out 0x3c, r24 ; 60 - 8e: 8f ed ldi r24, 0xDF ; 223 - 90: 9e e2 ldi r25, 0x2E ; 46 - 92: 01 97 sbiw r24, 0x01 ; 1 - 94: f1 f7 brne .-4 ; 0x92 - 96: 00 c0 rjmp .+0 ; 0x98 - 98: 00 00 nop - 9a: de cf rjmp .-68 ; 0x58 + 98: 3f e7 ldi r19, 0x7F ; 127 + 9a: 44 e8 ldi r20, 0x84 ; 132 + 9c: 8e e1 ldi r24, 0x1E ; 30 + 9e: 31 50 subi r19, 0x01 ; 1 + a0: 40 40 sbci r20, 0x00 ; 0 + a2: 80 40 sbci r24, 0x00 ; 0 + a4: e1 f7 brne .-8 ; 0x9e + a6: 00 c0 rjmp .+0 ; 0xa8 + a8: 00 00 nop + aa: f0 cf rjmp .-32 ; 0x8c -0000009c <_exit>: - 9c: f8 94 cli +000000ac <_exit>: + ac: f8 94 cli -0000009e <__stop_program>: - 9e: ff cf rjmp .-2 ; 0x9e <__stop_program> +000000ae <__stop_program>: + ae: ff cf rjmp .-2 ; 0xae <__stop_program> diff --git a/Door/Debug/Door.map b/Door/Debug/Door.map index 5e566dc..455b3a2 100644 --- a/Door/Debug/Door.map +++ b/Door/Debug/Door.map @@ -1,31 +1,31 @@ Archive member included because of file (symbol) -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) - 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/crttn2313.o (exit) +c:/program files (x86)/atmel/atmel toolchain/avr8 gcc/native/3.4.2.876/avr8-gnu-toolchain/bin/../lib/gcc/avr/4.7.2/avr5\libgcc.a(_exit.o) + 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/avr5/crtm168a.o (exit) 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/crttn2313.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/../../../../avr/lib/avr5/crtm168a.o .text 0x00000000 0x0 Door.o .bss 0x00000000 0x0 Door.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 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/avr5\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/avr5\libgcc.a(_exit.o) .text.libgcc.mul - 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) + 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/avr5\libgcc.a(_exit.o) .text.libgcc.div - 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 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) + 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/avr5\libgcc.a(_exit.o) + .text.libgcc 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/avr5\libgcc.a(_exit.o) .text.libgcc.prologue - 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) + 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/avr5\libgcc.a(_exit.o) .text.libgcc.builtins - 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) + 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/avr5\libgcc.a(_exit.o) .text.libgcc.fmul - 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) + 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/avr5\libgcc.a(_exit.o) Memory Configuration Name Origin Length Attributes -text 0x00000000 0x00002000 xr +text 0x00000000 0x00020000 xr data 0x00800060 0x0000ffa0 rw !x eeprom 0x00810000 0x00010000 rw !x fuse 0x00820000 0x00000400 rw !x @@ -36,16 +36,17 @@ user_signatures 0x00850000 0x00000400 rw !x Linker script and memory map -LOAD 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/crttn2313.o +Address of section .data set to 0x800100 +LOAD 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/avr5/crtm168a.o LOAD Door.o START GROUP -LOAD 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\libm.a +LOAD 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/avr5\libm.a END GROUP -LOAD 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 -LOAD 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\libm.a -LOAD 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 -LOAD 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\libc.a -LOAD 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 +LOAD c:/program files (x86)/atmel/atmel toolchain/avr8 gcc/native/3.4.2.876/avr8-gnu-toolchain/bin/../lib/gcc/avr/4.7.2/avr5\libgcc.a +LOAD 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/avr5\libm.a +LOAD c:/program files (x86)/atmel/atmel toolchain/avr8 gcc/native/3.4.2.876/avr8-gnu-toolchain/bin/../lib/gcc/avr/4.7.2/avr5\libgcc.a +LOAD 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/avr5\libc.a +LOAD c:/program files (x86)/atmel/atmel toolchain/avr8 gcc/native/3.4.2.876/avr8-gnu-toolchain/bin/../lib/gcc/avr/4.7.2/avr5\libgcc.a .hash *(.hash) @@ -137,40 +138,40 @@ LOAD c:/program files (x86)/atmel/atmel toolchain/avr8 gcc/native/3.4.2.876/avr8 .rela.plt *(.rela.plt) -.text 0x00000000 0xa0 +.text 0x00000000 0xb0 *(.vectors) - .vectors 0x00000000 0x26 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/crttn2313.o + .vectors 0x00000000 0x68 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/avr5/crtm168a.o 0x00000000 __vector_default 0x00000000 __vectors *(.vectors) *(.progmem.gcc*) *(.progmem*) - 0x00000026 . = ALIGN (0x2) - 0x00000026 __trampolines_start = . + 0x00000068 . = ALIGN (0x2) + 0x00000068 __trampolines_start = . *(.trampolines) - .trampolines 0x00000026 0x0 linker stubs + .trampolines 0x00000068 0x0 linker stubs *(.trampolines*) - 0x00000026 __trampolines_end = . + 0x00000068 __trampolines_end = . *(.jumptables) *(.jumptables*) *(.lowtext) *(.lowtext*) - 0x00000026 __ctors_start = . + 0x00000068 __ctors_start = . *(.ctors) - 0x00000026 __ctors_end = . - 0x00000026 __dtors_start = . + 0x00000068 __ctors_end = . + 0x00000068 __dtors_start = . *(.dtors) - 0x00000026 __dtors_end = . + 0x00000068 __dtors_end = . SORT(*)(.ctors) SORT(*)(.dtors) *(.init0) - .init0 0x00000026 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/crttn2313.o - 0x00000026 __init + .init0 0x00000068 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/avr5/crtm168a.o + 0x00000068 __init *(.init0) *(.init1) *(.init1) *(.init2) - .init2 0x00000026 0x8 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/crttn2313.o + .init2 0x00000068 0xc 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/avr5/crtm168a.o *(.init2) *(.init3) *(.init3) @@ -185,47 +186,45 @@ LOAD c:/program files (x86)/atmel/atmel toolchain/avr8 gcc/native/3.4.2.876/avr8 *(.init8) *(.init8) *(.init9) - .init9 0x0000002e 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/../../../../avr/lib/avr25/tiny-stack/crttn2313.o + .init9 0x00000074 0x8 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/avr5/crtm168a.o *(.init9) *(.text) - .text 0x00000032 0x2 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/crttn2313.o - 0x00000032 __vector_1 - 0x00000032 __vector_12 - 0x00000032 __bad_interrupt - 0x00000032 __vector_6 - 0x00000032 __vector_3 - 0x00000032 __vector_11 - 0x00000032 __vector_13 - 0x00000032 __vector_17 - 0x00000032 __vector_7 - 0x00000032 __vector_5 - 0x00000032 __vector_4 - 0x00000032 __vector_9 - 0x00000032 __vector_2 - 0x00000032 __vector_15 - 0x00000032 __vector_8 - 0x00000032 __vector_14 - 0x00000032 __vector_10 - 0x00000032 __vector_16 - 0x00000032 __vector_18 - 0x00000034 . = ALIGN (0x2) + .text 0x0000007c 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/../../../../avr/lib/avr5/crtm168a.o + 0x0000007c __vector_22 + 0x0000007c __vector_1 + 0x0000007c __vector_24 + 0x0000007c __vector_12 + 0x0000007c __bad_interrupt + 0x0000007c __vector_6 + 0x0000007c __vector_3 + 0x0000007c __vector_23 + 0x0000007c __vector_25 + 0x0000007c __vector_11 + 0x0000007c __vector_13 + 0x0000007c __vector_17 + 0x0000007c __vector_19 + 0x0000007c __vector_7 + 0x0000007c __vector_5 + 0x0000007c __vector_4 + 0x0000007c __vector_9 + 0x0000007c __vector_2 + 0x0000007c __vector_21 + 0x0000007c __vector_15 + 0x0000007c __vector_8 + 0x0000007c __vector_14 + 0x0000007c __vector_10 + 0x0000007c __vector_16 + 0x0000007c __vector_18 + 0x0000007c __vector_20 + 0x00000080 . = ALIGN (0x2) *(.text.*) - .text._Z8Init_AINv - 0x00000034 0x8 Door.o - 0x00000034 _Z8Init_AINv - .text._Z11Init_Outputv - 0x0000003c 0x6 Door.o - 0x0000003c _Z11Init_Outputv - .text._Z10Init_Timerv - 0x00000042 0x10 Door.o - 0x00000042 _Z10Init_Timerv - .text.main 0x00000052 0x4a Door.o - 0x00000052 main - 0x0000009c . = ALIGN (0x2) + .text.main 0x00000080 0x2c Door.o + 0x00000080 main + 0x000000ac . = ALIGN (0x2) *(.fini9) - .fini9 0x0000009c 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) - 0x0000009c _exit - 0x0000009c exit + .fini9 0x000000ac 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/avr5\libgcc.a(_exit.o) + 0x000000ac _exit + 0x000000ac exit *(.fini9) *(.fini8) *(.fini8) @@ -244,39 +243,39 @@ LOAD c:/program files (x86)/atmel/atmel toolchain/avr8 gcc/native/3.4.2.876/avr8 *(.fini1) *(.fini1) *(.fini0) - .fini0 0x0000009c 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 0x000000ac 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/avr5\libgcc.a(_exit.o) *(.fini0) - 0x000000a0 _etext = . + 0x000000b0 _etext = . -.data 0x00800060 0x0 load address 0x000000a0 - 0x00800060 PROVIDE (__data_start, .) +.data 0x00800100 0x0 load address 0x000000b0 + 0x00800100 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/crttn2313.o - .data 0x00800060 0x0 Door.o - .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/avr25/tiny-stack\libgcc.a(_exit.o) + .data 0x00800100 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/avr5/crtm168a.o + .data 0x00800100 0x0 Door.o + .data 0x00800100 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/avr5\libgcc.a(_exit.o) *(.data*) *(.rodata) *(.rodata*) *(.gnu.linkonce.d*) - 0x00800060 . = ALIGN (0x2) - 0x00800060 _edata = . - 0x00800060 PROVIDE (__data_end, .) + 0x00800100 . = ALIGN (0x2) + 0x00800100 _edata = . + 0x00800100 PROVIDE (__data_end, .) -.bss 0x00800060 0x0 - 0x00800060 PROVIDE (__bss_start, .) +.bss 0x00800100 0x0 + 0x00800100 PROVIDE (__bss_start, .) *(.bss) *(.bss*) *(COMMON) - 0x00800060 PROVIDE (__bss_end, .) - 0x000000a0 __data_load_start = LOADADDR (.data) - 0x000000a0 __data_load_end = (__data_load_start + SIZEOF (.data)) + 0x00800100 PROVIDE (__bss_end, .) + 0x000000b0 __data_load_start = LOADADDR (.data) + 0x000000b0 __data_load_end = (__data_load_start + SIZEOF (.data)) -.noinit 0x00800060 0x0 - 0x00800060 PROVIDE (__noinit_start, .) +.noinit 0x00800100 0x0 + 0x00800100 PROVIDE (__noinit_start, .) *(.noinit*) - 0x00800060 PROVIDE (__noinit_end, .) - 0x00800060 _end = . - 0x00800060 PROVIDE (__heap_start, .) + 0x00800100 PROVIDE (__noinit_end, .) + 0x00800100 _end = . + 0x00800100 PROVIDE (__heap_start, .) .eeprom 0x00810000 0x0 *(.eeprom*) @@ -297,13 +296,13 @@ LOAD c:/program files (x86)/atmel/atmel toolchain/avr8 gcc/native/3.4.2.876/avr8 .user_signatures *(.user_signatures*) -.stab 0x00000000 0x6b4 +.stab 0x00000000 0x6cc *(.stab) - .stab 0x00000000 0x6b4 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/crttn2313.o + .stab 0x00000000 0x6cc 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/avr5/crtm168a.o .stabstr 0x00000000 0x82 *(.stabstr) - .stabstr 0x00000000 0x82 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/crttn2313.o + .stabstr 0x00000000 0x82 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/avr5/crtm168a.o .stab.excl *(.stab.excl) @@ -334,39 +333,38 @@ LOAD c:/program files (x86)/atmel/atmel toolchain/avr8 gcc/native/3.4.2.876/avr8 .debug_sfnames *(.debug_sfnames) -.debug_aranges 0x00000000 0x38 +.debug_aranges 0x00000000 0x20 *(.debug_aranges) .debug_aranges - 0x00000000 0x38 Door.o + 0x00000000 0x20 Door.o .debug_pubnames *(.debug_pubnames) -.debug_info 0x00000000 0x1c5 +.debug_info 0x00000000 0x11f *(.debug_info) - .debug_info 0x00000000 0x1c5 Door.o + .debug_info 0x00000000 0x11f Door.o *(.gnu.linkonce.wi.*) -.debug_abbrev 0x00000000 0x107 +.debug_abbrev 0x00000000 0xcf *(.debug_abbrev) - .debug_abbrev 0x00000000 0x107 Door.o + .debug_abbrev 0x00000000 0xcf Door.o -.debug_line 0x00000000 0x1bf +.debug_line 0x00000000 0x184 *(.debug_line) - .debug_line 0x00000000 0x1bf Door.o + .debug_line 0x00000000 0x184 Door.o -.debug_frame 0x00000000 0x54 +.debug_frame 0x00000000 0x24 *(.debug_frame) - .debug_frame 0x00000000 0x54 Door.o + .debug_frame 0x00000000 0x24 Door.o -.debug_str 0x00000000 0x122 +.debug_str 0x00000000 0xd4 *(.debug_str) - .debug_str 0x00000000 0x122 Door.o - 0x156 (size before relaxing) + .debug_str 0x00000000 0xd4 Door.o + 0x108 (size before relaxing) -.debug_loc 0x00000000 0x46 +.debug_loc *(.debug_loc) - .debug_loc 0x00000000 0x46 Door.o .debug_macinfo *(.debug_macinfo) @@ -374,9 +372,9 @@ LOAD c:/program files (x86)/atmel/atmel toolchain/avr8 gcc/native/3.4.2.876/avr8 .debug_pubtypes *(.debug_pubtypes) -.debug_ranges 0x00000000 0x28 +.debug_ranges 0x00000000 0x10 *(.debug_ranges) - .debug_ranges 0x00000000 0x28 Door.o + .debug_ranges 0x00000000 0x10 Door.o .debug_macro *(.debug_macro) diff --git a/Door/Debug/Door.srec b/Door/Debug/Door.srec index afaa6c1..8d1e186 100644 --- a/Door/Debug/Door.srec +++ b/Door/Debug/Door.srec @@ -1,12 +1,13 @@ S00C0000446F6F722E7372656384 -S113000012C017C016C015C014C013C012C011C04E -S113001010C00FC00EC00DC00CC00BC00AC009C078 -S113002008C007C006C011241FBECFEDCDBF11D03C -S113003035C0E6CF18B883E081B90895BA9A8D9A8D -S1130040089581EB80BF81E083BF12BE16BE1CBE43 -S11300500895F0DFF3DFF5DF459B10C086B78823F2 -S1130060D9F386B7815086BF8CB781508CBF8FEC93 -S113007097E00197F1F700C00000EECF86B78F3FFD -S113008059F386B78F5F86BF8CB78F5F8CBF8FEDB8 -S11300909EE20197F1F700C00000DECFF894FFCF95 +S11300000C9434000C943E000C943E000C943E007E +S11300100C943E000C943E000C943E000C943E0064 +S11300200C943E000C943E000C943E000C943E0054 +S11300300C943E000C943E000C943E000C943E0044 +S11300400C943E000C943E000C943E000C943E0034 +S11300500C943E000C943E000C943E000C943E0024 +S11300600C943E000C943E0011241FBECFEFD4E04C +S1130070DEBFCDBF0E9440000C9456000C940000DB +S113008084B1836084B9289A21E092E085B1822703 +S113009085B985B1892785B93FE744E88EE13150B8 +S11300A040408040E1F700C00000F0CFF894FFCF5B S9030000FC diff --git a/Door/Debug/Makefile b/Door/Debug/Makefile index d397a03..750a45c 100644 --- a/Door/Debug/Makefile +++ b/Door/Debug/Makefile @@ -78,7 +78,7 @@ LIB_DEP+= ./%.o: .././%.cpp @echo Building file: $< @echo Invoking: AVR8/GNU C++ Compiler : - $(QUOTE)C:\Program Files (x86)\Atmel\Atmel Toolchain\AVR8 GCC\Native\3.4.2.876\avr8-gnu-toolchain\bin\avr-g++.exe$(QUOTE) -funsigned-char -funsigned-bitfields -DDEBUG -O1 -ffunction-sections -fpack-struct -fshort-enums -g2 -Wall -mmcu=attiny2313 -c -MD -MP -MF "$(@:%.o=%.d)" -MT"$(@:%.o=%.d)" -MT"$(@:%.o=%.o)" -o"$@" "$<" + $(QUOTE)C:\Program Files (x86)\Atmel\Atmel Toolchain\AVR8 GCC\Native\3.4.2.876\avr8-gnu-toolchain\bin\avr-g++.exe$(QUOTE) -funsigned-char -funsigned-bitfields -DDEBUG -O1 -ffunction-sections -fpack-struct -fshort-enums -g2 -Wall -mmcu=atmega168a -c -MD -MP -MF "$(@:%.o=%.d)" -MT"$(@:%.o=%.d)" -MT"$(@:%.o=%.o)" -o"$@" "$<" @echo Finished building: $< @@ -106,7 +106,7 @@ all: $(OUTPUT_FILE_PATH) $(ADDITIONAL_DEPENDENCIES) $(OUTPUT_FILE_PATH): $(OBJS) $(USER_OBJS) $(OUTPUT_FILE_DEP) $(LIB_DEP) @echo Building target: $@ @echo Invoking: AVR8/GNU Linker : - $(QUOTE)C:\Program Files (x86)\Atmel\Atmel Toolchain\AVR8 GCC\Native\3.4.2.876\avr8-gnu-toolchain\bin\avr-g++.exe$(QUOTE) -o$(OUTPUT_FILE_PATH_AS_ARGS) $(OBJS_AS_ARGS) $(USER_OBJS) $(LIBS) -Wl,-Map="Door.map" -Wl,--start-group -Wl,-lm -Wl,--end-group -Wl,--gc-sections -mmcu=attiny2313 + $(QUOTE)C:\Program Files (x86)\Atmel\Atmel Toolchain\AVR8 GCC\Native\3.4.2.876\avr8-gnu-toolchain\bin\avr-g++.exe$(QUOTE) -o$(OUTPUT_FILE_PATH_AS_ARGS) $(OBJS_AS_ARGS) $(USER_OBJS) $(LIBS) -Wl,-Map="Door.map" -Wl,--start-group -Wl,-lm -Wl,--end-group -Wl,--gc-sections -mmcu=atmega168a @echo Finished building target: $@ "C:\Program Files (x86)\Atmel\Atmel Toolchain\AVR8 GCC\Native\3.4.2.876\avr8-gnu-toolchain\bin\avr-objcopy.exe" -O ihex -R .eeprom -R .fuse -R .lock -R .signature "Door.elf" "Door.hex" "C:\Program Files (x86)\Atmel\Atmel Toolchain\AVR8 GCC\Native\3.4.2.876\avr8-gnu-toolchain\bin\avr-objcopy.exe" -j .eeprom --set-section-flags=.eeprom=alloc,load --change-section-lma .eeprom=0 --no-change-warnings -O ihex "Door.elf" "Door.eep" || exit 0 diff --git a/Door/Door.cpp b/Door/Door.cpp index bdad60d..ba6fe13 100644 --- a/Door/Door.cpp +++ b/Door/Door.cpp @@ -5,11 +5,11 @@ * Author: netz */ -#define F_CPU 8000000 +#define F_CPU 20000000 #include #include -void Init_AIN() +/*void Init_AIN() { // Analog Comparator initialization // Analog Comparator: On @@ -22,15 +22,15 @@ void Init_AIN() // Digital input buffer on AIN0: Off // Digital input buffer on AIN1: Off DIDR=(1<6.1 com.Atmel.AVRGCC8.CPP {6a8ad7ca-ae8e-4f9d-b5ec-d103f6fca01f} - ATtiny2313 + ATmega168A none Executable CPP @@ -27,14 +27,14 @@ 0 - - - - - - - - + + + + + + + + ISP com.atmel.avrdbg.tool.ispmk2 @@ -44,7 +44,7 @@ 0000000000000 127.0.0.1 - 55907 + 2798 False @@ -77,80 +77,80 @@ - True - True - True - True - True - True - - - NDEBUG - - - Optimize for size (-Os) - True - True - True - True - True - - - NDEBUG - - - Optimize for size (-Os) - True - True - True - - - libm - - - <segmentname>=<address>, for example .boot=0xff - + True + True + True + True + True + True + + + NDEBUG + + + Optimize for size (-Os) + True + True + True + True + True + + + NDEBUG + + + Optimize for size (-Os) + True + True + True + + + libm + + + <segmentname>=<address>, for example .boot=0xff + - True - True - True - True - True - True - - - DEBUG - - - Optimize (-O1) - True - True - Default (-g2) - True - True - True - - - DEBUG - - - Optimize (-O1) - True - True - Default (-g2) - True - - - libm - - - <segmentname>=<address>, for example .boot=0xff - Default (-Wa,-g) - + True + True + True + True + True + True + + + DEBUG + + + Optimize (-O1) + True + True + Default (-g2) + True + True + True + + + DEBUG + + + Optimize (-O1) + True + True + Default (-g2) + True + + + libm + + + <segmentname>=<address>, for example .boot=0xff + Default (-Wa,-g) +