20140905-013953
This commit is contained in:
commit
7bef821a5e
20
Door.atsln
Normal file
20
Door.atsln
Normal file
@ -0,0 +1,20 @@
|
||||
|
||||
Microsoft Visual Studio Solution File, Format Version 11.00
|
||||
# Atmel Studio Solution File, Format Version 11.00
|
||||
Project("{E66E83B9-2572-4076-B26E-6BE79FF3018A}") = "Door", "Door\Door.cppproj", "{6A8AD7CA-AE8E-4F9D-B5EC-D103F6FCA01F}"
|
||||
EndProject
|
||||
Global
|
||||
GlobalSection(SolutionConfigurationPlatforms) = preSolution
|
||||
Debug|AVR = Debug|AVR
|
||||
Release|AVR = Release|AVR
|
||||
EndGlobalSection
|
||||
GlobalSection(ProjectConfigurationPlatforms) = postSolution
|
||||
{6A8AD7CA-AE8E-4F9D-B5EC-D103F6FCA01F}.Debug|AVR.ActiveCfg = Debug|AVR
|
||||
{6A8AD7CA-AE8E-4F9D-B5EC-D103F6FCA01F}.Debug|AVR.Build.0 = Debug|AVR
|
||||
{6A8AD7CA-AE8E-4F9D-B5EC-D103F6FCA01F}.Release|AVR.ActiveCfg = Release|AVR
|
||||
{6A8AD7CA-AE8E-4F9D-B5EC-D103F6FCA01F}.Release|AVR.Build.0 = Release|AVR
|
||||
EndGlobalSection
|
||||
GlobalSection(SolutionProperties) = preSolution
|
||||
HideSolutionNode = FALSE
|
||||
EndGlobalSection
|
||||
EndGlobal
|
BIN
Door.atsuo
Normal file
BIN
Door.atsuo
Normal file
Binary file not shown.
43
Door/Debug/Door.d
Normal file
43
Door/Debug/Door.d
Normal file
@ -0,0 +1,43 @@
|
||||
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/avr/io.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/sfr_defs.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/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/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 \
|
||||
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/fuse.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/lock.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/util/delay.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/util/delay_basic.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/math.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/io.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/sfr_defs.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/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/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:
|
||||
|
||||
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/fuse.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/lock.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/util/delay.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/util/delay_basic.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/math.h:
|
1
Door/Debug/Door.eep
Normal file
1
Door/Debug/Door.eep
Normal file
@ -0,0 +1 @@
|
||||
:00000001FF
|
BIN
Door/Debug/Door.elf
Normal file
BIN
Door/Debug/Door.elf
Normal file
Binary file not shown.
11
Door/Debug/Door.hex
Normal file
11
Door/Debug/Door.hex
Normal file
@ -0,0 +1,11 @@
|
||||
:1000000012C017C016C015C014C013C012C011C052
|
||||
:1000100010C00FC00EC00DC00CC00BC00AC009C07C
|
||||
:1000200008C007C006C011241FBECFEDCDBF11D040
|
||||
:1000300035C0E6CF18B883E081B90895BA9A8D9A91
|
||||
:10004000089581EB80BF81E083BF12BE16BE1CBE47
|
||||
:100050000895F0DFF3DFF5DF459B10C086B78823F6
|
||||
:10006000D9F386B7815086BF8CB781508CBF8FEC97
|
||||
:1000700097E00197F1F700C00000EECF86B78F3F01
|
||||
:1000800059F386B78F5F86BF8CB78F5F8CBF8FEDBC
|
||||
:100090009EE20197F1F700C00000DECFF894FFCF99
|
||||
:00000001FF
|
181
Door/Debug/Door.lss
Normal file
181
Door/Debug/Door.lss
Normal file
@ -0,0 +1,181 @@
|
||||
|
||||
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
|
||||
CONTENTS, ALLOC, LOAD, DATA
|
||||
2 .stab 000006b4 00000000 00000000 00000114 2**2
|
||||
CONTENTS, READONLY, DEBUGGING
|
||||
3 .stabstr 00000082 00000000 00000000 000007c8 2**0
|
||||
CONTENTS, READONLY, DEBUGGING
|
||||
4 .comment 0000002f 00000000 00000000 0000084a 2**0
|
||||
CONTENTS, READONLY
|
||||
5 .debug_aranges 00000038 00000000 00000000 00000879 2**0
|
||||
CONTENTS, READONLY, DEBUGGING
|
||||
6 .debug_info 000001c5 00000000 00000000 000008b1 2**0
|
||||
CONTENTS, READONLY, DEBUGGING
|
||||
7 .debug_abbrev 00000107 00000000 00000000 00000a76 2**0
|
||||
CONTENTS, READONLY, DEBUGGING
|
||||
8 .debug_line 000001bf 00000000 00000000 00000b7d 2**0
|
||||
CONTENTS, READONLY, DEBUGGING
|
||||
9 .debug_frame 00000054 00000000 00000000 00000d3c 2**2
|
||||
CONTENTS, READONLY, DEBUGGING
|
||||
10 .debug_str 00000122 00000000 00000000 00000d90 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
|
||||
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>
|
||||
|
||||
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 <main>
|
||||
30: 35 c0 rjmp .+106 ; 0x9c <_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<<ACD) | (0<<ACBG) | (0<<ACO) | (0<<ACI) | (0<<ACIE) | (0<<ACIC) | (0<<ACIS1) | (0<<ACIS0);
|
||||
34: 18 b8 out 0x08, r1 ; 8
|
||||
// Digital input buffer on AIN0: Off
|
||||
// Digital input buffer on AIN1: Off
|
||||
DIDR=(1<<AIN0D) | (1<<AIN1D);
|
||||
36: 83 e0 ldi r24, 0x03 ; 3
|
||||
38: 81 b9 out 0x01, r24 ; 1
|
||||
3a: 08 95 ret
|
||||
|
||||
0000003c <_Z11Init_Outputv>:
|
||||
}
|
||||
|
||||
void Init_Output()
|
||||
{
|
||||
DDRB |= (1<<PINB2);
|
||||
3c: ba 9a sbi 0x17, 2 ; 23
|
||||
DDRD |= (1<<PIND5);
|
||||
3e: 8d 9a sbi 0x11, 5 ; 17
|
||||
40: 08 95 ret
|
||||
|
||||
00000042 <_Z10Init_Timerv>:
|
||||
// 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<<COM0A1) | (0<<COM0A0) | (1<<COM0B1) | (1<<COM0B0) | (0<<WGM01) | (1<<WGM00);
|
||||
42: 81 eb ldi r24, 0xB1 ; 177
|
||||
44: 80 bf out 0x30, r24 ; 48
|
||||
TCCR0B=(0<<WGM02) | (0<<CS02) | (0<<CS01) | (1<<CS00);
|
||||
46: 81 e0 ldi r24, 0x01 ; 1
|
||||
48: 83 bf out 0x33, r24 ; 51
|
||||
TCNT0=0x00;
|
||||
4a: 12 be out 0x32, r1 ; 50
|
||||
OCR0A=0x00;
|
||||
4c: 16 be out 0x36, r1 ; 54
|
||||
OCR0B=0x00;
|
||||
4e: 1c be out 0x3c, r1 ; 60
|
||||
50: 08 95 ret
|
||||
|
||||
00000052 <main>:
|
||||
}
|
||||
|
||||
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>
|
||||
while(1)
|
||||
{
|
||||
if(ACSR & (1<<ACO)) {
|
||||
58: 45 9b sbis 0x08, 5 ; 8
|
||||
5a: 10 c0 rjmp .+32 ; 0x7c <main+0x2a>
|
||||
if(OCR0A != 0) {
|
||||
5c: 86 b7 in r24, 0x36 ; 54
|
||||
5e: 88 23 and r24, r24
|
||||
60: d9 f3 breq .-10 ; 0x58 <main+0x6>
|
||||
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
|
||||
#else
|
||||
//round up by default
|
||||
__ticks_dc = (uint32_t)(ceil(fabs(__tmp)));
|
||||
#endif
|
||||
|
||||
__builtin_avr_delay_cycles(__ticks_dc);
|
||||
6e: 8f ec ldi r24, 0xCF ; 207
|
||||
70: 97 e0 ldi r25, 0x07 ; 7
|
||||
72: 01 97 sbiw r24, 0x01 ; 1
|
||||
74: f1 f7 brne .-4 ; 0x72 <main+0x20>
|
||||
76: 00 c0 rjmp .+0 ; 0x78 <main+0x26>
|
||||
78: 00 00 nop
|
||||
7a: ee cf rjmp .-36 ; 0x58 <main+0x6>
|
||||
_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 <main+0x6>
|
||||
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 <main+0x40>
|
||||
96: 00 c0 rjmp .+0 ; 0x98 <main+0x46>
|
||||
98: 00 00 nop
|
||||
9a: de cf rjmp .-68 ; 0x58 <main+0x6>
|
||||
|
||||
0000009c <_exit>:
|
||||
9c: f8 94 cli
|
||||
|
||||
0000009e <__stop_program>:
|
||||
9e: ff cf rjmp .-2 ; 0x9e <__stop_program>
|
384
Door/Debug/Door.map
Normal file
384
Door/Debug/Door.map
Normal file
@ -0,0 +1,384 @@
|
||||
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)
|
||||
|
||||
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
|
||||
.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.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)
|
||||
.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)
|
||||
.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)
|
||||
.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)
|
||||
.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)
|
||||
|
||||
Memory Configuration
|
||||
|
||||
Name Origin Length Attributes
|
||||
text 0x00000000 0x00002000 xr
|
||||
data 0x00800060 0x0000ffa0 rw !x
|
||||
eeprom 0x00810000 0x00010000 rw !x
|
||||
fuse 0x00820000 0x00000400 rw !x
|
||||
lock 0x00830000 0x00000400 rw !x
|
||||
signature 0x00840000 0x00000400 rw !x
|
||||
user_signatures 0x00850000 0x00000400 rw !x
|
||||
*default* 0x00000000 0xffffffff
|
||||
|
||||
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
|
||||
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
|
||||
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
|
||||
|
||||
.hash
|
||||
*(.hash)
|
||||
|
||||
.dynsym
|
||||
*(.dynsym)
|
||||
|
||||
.dynstr
|
||||
*(.dynstr)
|
||||
|
||||
.gnu.version
|
||||
*(.gnu.version)
|
||||
|
||||
.gnu.version_d
|
||||
*(.gnu.version_d)
|
||||
|
||||
.gnu.version_r
|
||||
*(.gnu.version_r)
|
||||
|
||||
.rel.init
|
||||
*(.rel.init)
|
||||
|
||||
.rela.init
|
||||
*(.rela.init)
|
||||
|
||||
.rel.text
|
||||
*(.rel.text)
|
||||
*(.rel.text.*)
|
||||
*(.rel.gnu.linkonce.t*)
|
||||
|
||||
.rela.text
|
||||
*(.rela.text)
|
||||
*(.rela.text.*)
|
||||
*(.rela.gnu.linkonce.t*)
|
||||
|
||||
.rel.fini
|
||||
*(.rel.fini)
|
||||
|
||||
.rela.fini
|
||||
*(.rela.fini)
|
||||
|
||||
.rel.rodata
|
||||
*(.rel.rodata)
|
||||
*(.rel.rodata.*)
|
||||
*(.rel.gnu.linkonce.r*)
|
||||
|
||||
.rela.rodata
|
||||
*(.rela.rodata)
|
||||
*(.rela.rodata.*)
|
||||
*(.rela.gnu.linkonce.r*)
|
||||
|
||||
.rel.data
|
||||
*(.rel.data)
|
||||
*(.rel.data.*)
|
||||
*(.rel.gnu.linkonce.d*)
|
||||
|
||||
.rela.data
|
||||
*(.rela.data)
|
||||
*(.rela.data.*)
|
||||
*(.rela.gnu.linkonce.d*)
|
||||
|
||||
.rel.ctors
|
||||
*(.rel.ctors)
|
||||
|
||||
.rela.ctors
|
||||
*(.rela.ctors)
|
||||
|
||||
.rel.dtors
|
||||
*(.rel.dtors)
|
||||
|
||||
.rela.dtors
|
||||
*(.rela.dtors)
|
||||
|
||||
.rel.got
|
||||
*(.rel.got)
|
||||
|
||||
.rela.got
|
||||
*(.rela.got)
|
||||
|
||||
.rel.bss
|
||||
*(.rel.bss)
|
||||
|
||||
.rela.bss
|
||||
*(.rela.bss)
|
||||
|
||||
.rel.plt
|
||||
*(.rel.plt)
|
||||
|
||||
.rela.plt
|
||||
*(.rela.plt)
|
||||
|
||||
.text 0x00000000 0xa0
|
||||
*(.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
|
||||
0x00000000 __vector_default
|
||||
0x00000000 __vectors
|
||||
*(.vectors)
|
||||
*(.progmem.gcc*)
|
||||
*(.progmem*)
|
||||
0x00000026 . = ALIGN (0x2)
|
||||
0x00000026 __trampolines_start = .
|
||||
*(.trampolines)
|
||||
.trampolines 0x00000026 0x0 linker stubs
|
||||
*(.trampolines*)
|
||||
0x00000026 __trampolines_end = .
|
||||
*(.jumptables)
|
||||
*(.jumptables*)
|
||||
*(.lowtext)
|
||||
*(.lowtext*)
|
||||
0x00000026 __ctors_start = .
|
||||
*(.ctors)
|
||||
0x00000026 __ctors_end = .
|
||||
0x00000026 __dtors_start = .
|
||||
*(.dtors)
|
||||
0x00000026 __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)
|
||||
*(.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)
|
||||
*(.init3)
|
||||
*(.init3)
|
||||
*(.init4)
|
||||
*(.init4)
|
||||
*(.init5)
|
||||
*(.init5)
|
||||
*(.init6)
|
||||
*(.init6)
|
||||
*(.init7)
|
||||
*(.init7)
|
||||
*(.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)
|
||||
*(.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.*)
|
||||
.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)
|
||||
*(.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)
|
||||
*(.fini8)
|
||||
*(.fini8)
|
||||
*(.fini7)
|
||||
*(.fini7)
|
||||
*(.fini6)
|
||||
*(.fini6)
|
||||
*(.fini5)
|
||||
*(.fini5)
|
||||
*(.fini4)
|
||||
*(.fini4)
|
||||
*(.fini3)
|
||||
*(.fini3)
|
||||
*(.fini2)
|
||||
*(.fini2)
|
||||
*(.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)
|
||||
0x000000a0 _etext = .
|
||||
|
||||
.data 0x00800060 0x0 load address 0x000000a0
|
||||
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/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*)
|
||||
*(.rodata)
|
||||
*(.rodata*)
|
||||
*(.gnu.linkonce.d*)
|
||||
0x00800060 . = ALIGN (0x2)
|
||||
0x00800060 _edata = .
|
||||
0x00800060 PROVIDE (__data_end, .)
|
||||
|
||||
.bss 0x00800060 0x0
|
||||
0x00800060 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))
|
||||
|
||||
.noinit 0x00800060 0x0
|
||||
0x00800060 PROVIDE (__noinit_start, .)
|
||||
*(.noinit*)
|
||||
0x00800060 PROVIDE (__noinit_end, .)
|
||||
0x00800060 _end = .
|
||||
0x00800060 PROVIDE (__heap_start, .)
|
||||
|
||||
.eeprom 0x00810000 0x0
|
||||
*(.eeprom*)
|
||||
0x00810000 __eeprom_end = .
|
||||
|
||||
.fuse
|
||||
*(.fuse)
|
||||
*(.lfuse)
|
||||
*(.hfuse)
|
||||
*(.efuse)
|
||||
|
||||
.lock
|
||||
*(.lock*)
|
||||
|
||||
.signature
|
||||
*(.signature*)
|
||||
|
||||
.user_signatures
|
||||
*(.user_signatures*)
|
||||
|
||||
.stab 0x00000000 0x6b4
|
||||
*(.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
|
||||
|
||||
.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
|
||||
|
||||
.stab.excl
|
||||
*(.stab.excl)
|
||||
|
||||
.stab.exclstr
|
||||
*(.stab.exclstr)
|
||||
|
||||
.stab.index
|
||||
*(.stab.index)
|
||||
|
||||
.stab.indexstr
|
||||
*(.stab.indexstr)
|
||||
|
||||
.comment 0x00000000 0x2f
|
||||
*(.comment)
|
||||
.comment 0x00000000 0x2f Door.o
|
||||
0x30 (size before relaxing)
|
||||
|
||||
.debug
|
||||
*(.debug)
|
||||
|
||||
.line
|
||||
*(.line)
|
||||
|
||||
.debug_srcinfo
|
||||
*(.debug_srcinfo)
|
||||
|
||||
.debug_sfnames
|
||||
*(.debug_sfnames)
|
||||
|
||||
.debug_aranges 0x00000000 0x38
|
||||
*(.debug_aranges)
|
||||
.debug_aranges
|
||||
0x00000000 0x38 Door.o
|
||||
|
||||
.debug_pubnames
|
||||
*(.debug_pubnames)
|
||||
|
||||
.debug_info 0x00000000 0x1c5
|
||||
*(.debug_info)
|
||||
.debug_info 0x00000000 0x1c5 Door.o
|
||||
*(.gnu.linkonce.wi.*)
|
||||
|
||||
.debug_abbrev 0x00000000 0x107
|
||||
*(.debug_abbrev)
|
||||
.debug_abbrev 0x00000000 0x107 Door.o
|
||||
|
||||
.debug_line 0x00000000 0x1bf
|
||||
*(.debug_line)
|
||||
.debug_line 0x00000000 0x1bf Door.o
|
||||
|
||||
.debug_frame 0x00000000 0x54
|
||||
*(.debug_frame)
|
||||
.debug_frame 0x00000000 0x54 Door.o
|
||||
|
||||
.debug_str 0x00000000 0x122
|
||||
*(.debug_str)
|
||||
.debug_str 0x00000000 0x122 Door.o
|
||||
0x156 (size before relaxing)
|
||||
|
||||
.debug_loc 0x00000000 0x46
|
||||
*(.debug_loc)
|
||||
.debug_loc 0x00000000 0x46 Door.o
|
||||
|
||||
.debug_macinfo
|
||||
*(.debug_macinfo)
|
||||
|
||||
.debug_pubtypes
|
||||
*(.debug_pubtypes)
|
||||
|
||||
.debug_ranges 0x00000000 0x28
|
||||
*(.debug_ranges)
|
||||
.debug_ranges 0x00000000 0x28 Door.o
|
||||
|
||||
.debug_macro
|
||||
*(.debug_macro)
|
||||
OUTPUT(Door.elf elf32-avr)
|
||||
LOAD linker stubs
|
12
Door/Debug/Door.srec
Normal file
12
Door/Debug/Door.srec
Normal file
@ -0,0 +1,12 @@
|
||||
S00C0000446F6F722E7372656384
|
||||
S113000012C017C016C015C014C013C012C011C04E
|
||||
S113001010C00FC00EC00DC00CC00BC00AC009C078
|
||||
S113002008C007C006C011241FBECFEDCDBF11D03C
|
||||
S113003035C0E6CF18B883E081B90895BA9A8D9A8D
|
||||
S1130040089581EB80BF81E083BF12BE16BE1CBE43
|
||||
S11300500895F0DFF3DFF5DF459B10C086B78823F2
|
||||
S1130060D9F386B7815086BF8CB781508CBF8FEC93
|
||||
S113007097E00197F1F700C00000EECF86B78F3FFD
|
||||
S113008059F386B78F5F86BF8CB78F5F8CBF8FEDB8
|
||||
S11300909EE20197F1F700C00000DECFF894FFCF95
|
||||
S9030000FC
|
126
Door/Debug/Makefile
Normal file
126
Door/Debug/Makefile
Normal file
@ -0,0 +1,126 @@
|
||||
################################################################################
|
||||
# Automatically-generated file. Do not edit!
|
||||
################################################################################
|
||||
|
||||
SHELL := cmd.exe
|
||||
RM := rm -rf
|
||||
|
||||
USER_OBJS :=
|
||||
|
||||
LIBS :=
|
||||
PROJ :=
|
||||
|
||||
O_SRCS :=
|
||||
C_SRCS :=
|
||||
S_SRCS :=
|
||||
S_UPPER_SRCS :=
|
||||
OBJ_SRCS :=
|
||||
ASM_SRCS :=
|
||||
PREPROCESSING_SRCS :=
|
||||
OBJS :=
|
||||
OBJS_AS_ARGS :=
|
||||
C_DEPS :=
|
||||
C_DEPS_AS_ARGS :=
|
||||
EXECUTABLES :=
|
||||
OUTPUT_FILE_PATH :=
|
||||
OUTPUT_FILE_PATH_AS_ARGS :=
|
||||
AVR_APP_PATH :=$$$AVR_APP_PATH$$$
|
||||
QUOTE := "
|
||||
ADDITIONAL_DEPENDENCIES:=
|
||||
OUTPUT_FILE_DEP:=
|
||||
LIB_DEP:=
|
||||
|
||||
# Every subdirectory with source files must be described here
|
||||
SUBDIRS :=
|
||||
|
||||
|
||||
# Add inputs and outputs from these tool invocations to the build variables
|
||||
C_SRCS += \
|
||||
../Door.cpp
|
||||
|
||||
|
||||
PREPROCESSING_SRCS +=
|
||||
|
||||
|
||||
ASM_SRCS +=
|
||||
|
||||
|
||||
OBJS += \
|
||||
Door.o
|
||||
|
||||
|
||||
OBJS_AS_ARGS += \
|
||||
Door.o
|
||||
|
||||
|
||||
C_DEPS += \
|
||||
Door.d
|
||||
|
||||
|
||||
C_DEPS_AS_ARGS += \
|
||||
Door.d
|
||||
|
||||
|
||||
OUTPUT_FILE_PATH +=Door.elf
|
||||
|
||||
OUTPUT_FILE_PATH_AS_ARGS +=Door.elf
|
||||
|
||||
ADDITIONAL_DEPENDENCIES:=
|
||||
|
||||
OUTPUT_FILE_DEP:= ./makedep.mk
|
||||
|
||||
LIB_DEP+=
|
||||
|
||||
# AVR32/GNU C Compiler
|
||||
|
||||
|
||||
|
||||
./%.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"$@" "$<"
|
||||
@echo Finished building: $<
|
||||
|
||||
|
||||
|
||||
# AVR32/GNU Preprocessing Assembler
|
||||
|
||||
|
||||
|
||||
# AVR32/GNU Assembler
|
||||
|
||||
|
||||
|
||||
|
||||
ifneq ($(MAKECMDGOALS),clean)
|
||||
ifneq ($(strip $(C_DEPS)),)
|
||||
-include $(C_DEPS)
|
||||
endif
|
||||
endif
|
||||
|
||||
# Add inputs and outputs from these tool invocations to the build variables
|
||||
|
||||
# All Target
|
||||
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
|
||||
@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
|
||||
"C:\Program Files (x86)\Atmel\Atmel Toolchain\AVR8 GCC\Native\3.4.2.876\avr8-gnu-toolchain\bin\avr-objdump.exe" -h -S "Door.elf" > "Door.lss"
|
||||
"C:\Program Files (x86)\Atmel\Atmel Toolchain\AVR8 GCC\Native\3.4.2.876\avr8-gnu-toolchain\bin\avr-objcopy.exe" -O srec -R .eeprom -R .fuse -R .lock -R .signature "Door.elf" "Door.srec"
|
||||
"C:\Program Files (x86)\Atmel\Atmel Toolchain\AVR8 GCC\Native\3.4.2.876\avr8-gnu-toolchain\bin\avr-size.exe" "Door.elf"
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
# Other Targets
|
||||
clean:
|
||||
-$(RM) $(OBJS_AS_ARGS)$(C_DEPS_AS_ARGS) $(EXECUTABLES)
|
||||
rm -rf "Door.elf" "Door.a" "Door.hex" "Door.lss" "Door.eep" "Door.map" "Door.srec"
|
||||
|
6
Door/Debug/makedep.mk
Normal file
6
Door/Debug/makedep.mk
Normal file
@ -0,0 +1,6 @@
|
||||
################################################################################
|
||||
# Automatically-generated file. Do not edit or delete the file
|
||||
################################################################################
|
||||
|
||||
Door.cpp
|
||||
|
74
Door/Door.cpp
Normal file
74
Door/Door.cpp
Normal file
@ -0,0 +1,74 @@
|
||||
/*
|
||||
* Door.cpp
|
||||
*
|
||||
* Created: 04.09.2014 22:06:23
|
||||
* Author: netz
|
||||
*/
|
||||
|
||||
#define F_CPU 8000000
|
||||
#include <avr/io.h>
|
||||
#include <util/delay.h>
|
||||
|
||||
void Init_AIN()
|
||||
{
|
||||
// Analog Comparator initialization
|
||||
// Analog Comparator: On
|
||||
// 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<<ACD) | (0<<ACBG) | (0<<ACO) | (0<<ACI) | (0<<ACIE) | (0<<ACIC) | (0<<ACIS1) | (0<<ACIS0);
|
||||
// Digital input buffer on AIN0: Off
|
||||
// Digital input buffer on AIN1: Off
|
||||
DIDR=(1<<AIN0D) | (1<<AIN1D);
|
||||
}
|
||||
|
||||
void Init_Output()
|
||||
{
|
||||
DDRB |= (1<<PINB2);
|
||||
DDRD |= (1<<PIND5);
|
||||
}
|
||||
|
||||
void Init_Timer()
|
||||
{
|
||||
// Timer/Counter 0 initialization
|
||||
// Clock source: System Clock
|
||||
// Clock value: 8000,000 kHz
|
||||
// Mode: Phase correct PWM top=0xFF
|
||||
// OC0A output: Non-Inverted PWM
|
||||
// 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<<COM0A1) | (0<<COM0A0) | (1<<COM0B1) | (1<<COM0B0) | (0<<WGM01) | (1<<WGM00);
|
||||
TCCR0B=(0<<WGM02) | (0<<CS02) | (0<<CS01) | (1<<CS00);
|
||||
TCNT0=0x00;
|
||||
OCR0A=0x00;
|
||||
OCR0B=0x00;
|
||||
}
|
||||
|
||||
int main(void)
|
||||
{
|
||||
Init_AIN();
|
||||
Init_Output();
|
||||
Init_Timer();
|
||||
while(1)
|
||||
{
|
||||
if(ACSR & (1<<ACO)) {
|
||||
if(OCR0A != 0) {
|
||||
OCR0A--;
|
||||
OCR0B--;
|
||||
_delay_ms(1);
|
||||
}
|
||||
} else {
|
||||
if(OCR0A != 0xFF) {
|
||||
OCR0A++;
|
||||
OCR0B++;
|
||||
_delay_ms(6);
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
}
|
162
Door/Door.cppproj
Normal file
162
Door/Door.cppproj
Normal file
@ -0,0 +1,162 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<Project DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
|
||||
<PropertyGroup>
|
||||
<SchemaVersion>2.0</SchemaVersion>
|
||||
<ProjectVersion>6.1</ProjectVersion>
|
||||
<ToolchainName>com.Atmel.AVRGCC8.CPP</ToolchainName>
|
||||
<ProjectGuid>{6a8ad7ca-ae8e-4f9d-b5ec-d103f6fca01f}</ProjectGuid>
|
||||
<avrdevice>ATtiny2313</avrdevice>
|
||||
<avrdeviceseries>none</avrdeviceseries>
|
||||
<OutputType>Executable</OutputType>
|
||||
<Language>CPP</Language>
|
||||
<OutputFileName>$(MSBuildProjectName)</OutputFileName>
|
||||
<OutputFileExtension>.elf</OutputFileExtension>
|
||||
<OutputDirectory>$(MSBuildProjectDirectory)\$(Configuration)</OutputDirectory>
|
||||
<AssemblyName>Door</AssemblyName>
|
||||
<Name>Door</Name>
|
||||
<RootNamespace>Door</RootNamespace>
|
||||
<ToolchainFlavour>Native</ToolchainFlavour>
|
||||
<KeepTimersRunning>true</KeepTimersRunning>
|
||||
<OverrideVtor>false</OverrideVtor>
|
||||
<OverrideVtorValue>exception_table</OverrideVtorValue>
|
||||
<eraseonlaunchrule>0</eraseonlaunchrule>
|
||||
<ProgFlashFromRam>true</ProgFlashFromRam>
|
||||
<RamSnippetAddress>0x20000000</RamSnippetAddress>
|
||||
<CacheFlash>true</CacheFlash>
|
||||
<UncachedRange />
|
||||
<BootSegment>0</BootSegment>
|
||||
<AsfFrameworkConfig>
|
||||
<framework-data xmlns="">
|
||||
<options />
|
||||
<configurations />
|
||||
<files />
|
||||
<documentation help="" />
|
||||
<dependencies>
|
||||
<content-extension eid="atmel.asf" uuidref="Atmel.ASF" version="3.7.2" />
|
||||
</dependencies>
|
||||
</framework-data>
|
||||
</AsfFrameworkConfig>
|
||||
<avrtoolinterface>ISP</avrtoolinterface>
|
||||
<avrtool>com.atmel.avrdbg.tool.ispmk2</avrtool>
|
||||
<com_atmel_avrdbg_tool_ispmk2>
|
||||
<ToolType>com.atmel.avrdbg.tool.ispmk2</ToolType>
|
||||
<ToolName>AVRISP mkII</ToolName>
|
||||
<ToolNumber>0000000000000</ToolNumber>
|
||||
<Channel>
|
||||
<host>127.0.0.1</host>
|
||||
<port>55907</port>
|
||||
<ssl>False</ssl>
|
||||
</Channel>
|
||||
<ToolOptions>
|
||||
<InterfaceName>ISP</InterfaceName>
|
||||
<InterfaceProperties>
|
||||
<JtagDbgClock>249000</JtagDbgClock>
|
||||
<JtagProgClock>1000000</JtagProgClock>
|
||||
<IspClock>150000</IspClock>
|
||||
<JtagInChain>false</JtagInChain>
|
||||
<JtagEnableExtResetOnStartSession>false</JtagEnableExtResetOnStartSession>
|
||||
<JtagDevicesBefore>0</JtagDevicesBefore>
|
||||
<JtagDevicesAfter>0</JtagDevicesAfter>
|
||||
<JtagInstrBitsBefore>0</JtagInstrBitsBefore>
|
||||
<JtagInstrBitsAfter>0</JtagInstrBitsAfter>
|
||||
</InterfaceProperties>
|
||||
</ToolOptions>
|
||||
</com_atmel_avrdbg_tool_ispmk2>
|
||||
<com_atmel_avrdbg_tool_simulator>
|
||||
<ToolType xmlns="">com.atmel.avrdbg.tool.simulator</ToolType>
|
||||
<ToolName xmlns="">Simulator</ToolName>
|
||||
<ToolNumber xmlns="">
|
||||
</ToolNumber>
|
||||
<Channel xmlns="">
|
||||
<host>127.0.0.1</host>
|
||||
<port>55907</port>
|
||||
<ssl>False</ssl>
|
||||
</Channel>
|
||||
</com_atmel_avrdbg_tool_simulator>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup Condition=" '$(Configuration)' == 'Release' ">
|
||||
<ToolchainSettings>
|
||||
<AvrGccCpp>
|
||||
<avrgcc.common.outputfiles.hex>True</avrgcc.common.outputfiles.hex>
|
||||
<avrgcc.common.outputfiles.lss>True</avrgcc.common.outputfiles.lss>
|
||||
<avrgcc.common.outputfiles.eep>True</avrgcc.common.outputfiles.eep>
|
||||
<avrgcc.common.outputfiles.srec>True</avrgcc.common.outputfiles.srec>
|
||||
<avrgcc.compiler.general.ChangeDefaultCharTypeUnsigned>True</avrgcc.compiler.general.ChangeDefaultCharTypeUnsigned>
|
||||
<avrgcc.compiler.general.ChangeDefaultBitFieldUnsigned>True</avrgcc.compiler.general.ChangeDefaultBitFieldUnsigned>
|
||||
<avrgcc.compiler.symbols.DefSymbols>
|
||||
<ListValues>
|
||||
<Value>NDEBUG</Value>
|
||||
</ListValues>
|
||||
</avrgcc.compiler.symbols.DefSymbols>
|
||||
<avrgcc.compiler.optimization.level>Optimize for size (-Os)</avrgcc.compiler.optimization.level>
|
||||
<avrgcc.compiler.optimization.PackStructureMembers>True</avrgcc.compiler.optimization.PackStructureMembers>
|
||||
<avrgcc.compiler.optimization.AllocateBytesNeededForEnum>True</avrgcc.compiler.optimization.AllocateBytesNeededForEnum>
|
||||
<avrgcc.compiler.warnings.AllWarnings>True</avrgcc.compiler.warnings.AllWarnings>
|
||||
<avrgcccpp.compiler.general.ChangeDefaultCharTypeUnsigned>True</avrgcccpp.compiler.general.ChangeDefaultCharTypeUnsigned>
|
||||
<avrgcccpp.compiler.general.ChangeDefaultBitFieldUnsigned>True</avrgcccpp.compiler.general.ChangeDefaultBitFieldUnsigned>
|
||||
<avrgcccpp.compiler.symbols.DefSymbols>
|
||||
<ListValues>
|
||||
<Value>NDEBUG</Value>
|
||||
</ListValues>
|
||||
</avrgcccpp.compiler.symbols.DefSymbols>
|
||||
<avrgcccpp.compiler.optimization.level>Optimize for size (-Os)</avrgcccpp.compiler.optimization.level>
|
||||
<avrgcccpp.compiler.optimization.PackStructureMembers>True</avrgcccpp.compiler.optimization.PackStructureMembers>
|
||||
<avrgcccpp.compiler.optimization.AllocateBytesNeededForEnum>True</avrgcccpp.compiler.optimization.AllocateBytesNeededForEnum>
|
||||
<avrgcccpp.compiler.warnings.AllWarnings>True</avrgcccpp.compiler.warnings.AllWarnings>
|
||||
<avrgcccpp.linker.libraries.Libraries>
|
||||
<ListValues>
|
||||
<Value>libm</Value>
|
||||
</ListValues>
|
||||
</avrgcccpp.linker.libraries.Libraries>
|
||||
<avrgcccpp.linker.memorysettings.Comment><segmentname>=<address>, for example .boot=0xff</avrgcccpp.linker.memorysettings.Comment>
|
||||
</AvrGccCpp>
|
||||
</ToolchainSettings>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup Condition=" '$(Configuration)' == 'Debug' ">
|
||||
<ToolchainSettings>
|
||||
<AvrGccCpp>
|
||||
<avrgcc.common.outputfiles.hex>True</avrgcc.common.outputfiles.hex>
|
||||
<avrgcc.common.outputfiles.lss>True</avrgcc.common.outputfiles.lss>
|
||||
<avrgcc.common.outputfiles.eep>True</avrgcc.common.outputfiles.eep>
|
||||
<avrgcc.common.outputfiles.srec>True</avrgcc.common.outputfiles.srec>
|
||||
<avrgcc.compiler.general.ChangeDefaultCharTypeUnsigned>True</avrgcc.compiler.general.ChangeDefaultCharTypeUnsigned>
|
||||
<avrgcc.compiler.general.ChangeDefaultBitFieldUnsigned>True</avrgcc.compiler.general.ChangeDefaultBitFieldUnsigned>
|
||||
<avrgcc.compiler.symbols.DefSymbols>
|
||||
<ListValues>
|
||||
<Value>DEBUG</Value>
|
||||
</ListValues>
|
||||
</avrgcc.compiler.symbols.DefSymbols>
|
||||
<avrgcc.compiler.optimization.level>Optimize (-O1)</avrgcc.compiler.optimization.level>
|
||||
<avrgcc.compiler.optimization.PackStructureMembers>True</avrgcc.compiler.optimization.PackStructureMembers>
|
||||
<avrgcc.compiler.optimization.AllocateBytesNeededForEnum>True</avrgcc.compiler.optimization.AllocateBytesNeededForEnum>
|
||||
<avrgcc.compiler.optimization.DebugLevel>Default (-g2)</avrgcc.compiler.optimization.DebugLevel>
|
||||
<avrgcc.compiler.warnings.AllWarnings>True</avrgcc.compiler.warnings.AllWarnings>
|
||||
<avrgcccpp.compiler.general.ChangeDefaultCharTypeUnsigned>True</avrgcccpp.compiler.general.ChangeDefaultCharTypeUnsigned>
|
||||
<avrgcccpp.compiler.general.ChangeDefaultBitFieldUnsigned>True</avrgcccpp.compiler.general.ChangeDefaultBitFieldUnsigned>
|
||||
<avrgcccpp.compiler.symbols.DefSymbols>
|
||||
<ListValues>
|
||||
<Value>DEBUG</Value>
|
||||
</ListValues>
|
||||
</avrgcccpp.compiler.symbols.DefSymbols>
|
||||
<avrgcccpp.compiler.optimization.level>Optimize (-O1)</avrgcccpp.compiler.optimization.level>
|
||||
<avrgcccpp.compiler.optimization.PackStructureMembers>True</avrgcccpp.compiler.optimization.PackStructureMembers>
|
||||
<avrgcccpp.compiler.optimization.AllocateBytesNeededForEnum>True</avrgcccpp.compiler.optimization.AllocateBytesNeededForEnum>
|
||||
<avrgcccpp.compiler.optimization.DebugLevel>Default (-g2)</avrgcccpp.compiler.optimization.DebugLevel>
|
||||
<avrgcccpp.compiler.warnings.AllWarnings>True</avrgcccpp.compiler.warnings.AllWarnings>
|
||||
<avrgcccpp.linker.libraries.Libraries>
|
||||
<ListValues>
|
||||
<Value>libm</Value>
|
||||
</ListValues>
|
||||
</avrgcccpp.linker.libraries.Libraries>
|
||||
<avrgcccpp.linker.memorysettings.Comment><segmentname>=<address>, for example .boot=0xff</avrgcccpp.linker.memorysettings.Comment>
|
||||
<avrgcccpp.assembler.debugging.DebugLevel>Default (-Wa,-g)</avrgcccpp.assembler.debugging.DebugLevel>
|
||||
</AvrGccCpp>
|
||||
</ToolchainSettings>
|
||||
</PropertyGroup>
|
||||
<ItemGroup>
|
||||
<Compile Include="Door.cpp">
|
||||
<SubType>compile</SubType>
|
||||
</Compile>
|
||||
</ItemGroup>
|
||||
<Import Project="$(AVRSTUDIO_EXE_PATH)\\Vs\\Compiler.targets" />
|
||||
</Project>
|
Loading…
Reference in New Issue
Block a user