Révision c9e951f9
Version 0.6/RS232_MUX.X/.generated_files/flags/default/189e35e8b80d1055f943337af00f1a3eb5a3e3f0 | ||
---|---|---|
1 |
$(MP_EXTRA_CC_PRE) -mcpu=$(MP_PROCESSOR_OPTION) -c -D__DEBUG=1 -g -DDEBUG -gdwarf-2 -x c -D__$(MP_PROCESSOR_OPTION)__ -mdfp="${DFP_DIR}/xc8" -Wl,--gc-sections -O1 -ffunction-sections -fdata-sections -fshort-enums -fno-common -funsigned-char -funsigned-bitfields -Wall -DXPRJ_default=$(CND_CONF) $(COMPARISON_BUILD) -gdwarf-3 -mno-const-data-in-progmem C:\Users\eniro\MPLABXProjects\RS232_MUX.X\main.c |
Version 0.6/RS232_MUX.X/.generated_files/flags/default/c23a79e077f40f861ae8b9b0a728ca7712177407 | ||
---|---|---|
1 |
$(MP_EXTRA_CC_PRE) -mcpu=$(MP_PROCESSOR_OPTION) -c -x c -D__$(MP_PROCESSOR_OPTION)__ -mdfp="${DFP_DIR}/xc8" -Wl,--gc-sections -O1 -ffunction-sections -fdata-sections -fshort-enums -fno-common -funsigned-char -funsigned-bitfields -Wall -DXPRJ_default=$(CND_CONF) $(COMPARISON_BUILD) -gdwarf-3 -mno-const-data-in-progmem C:\Users\eniro\MPLABXProjects\RS232_MUX.X\main.c |
Version 0.6/RS232_MUX.X/Makefile | ||
---|---|---|
1 |
# |
|
2 |
# There exist several targets which are by default empty and which can be |
|
3 |
# used for execution of your targets. These targets are usually executed |
|
4 |
# before and after some main targets. They are: |
|
5 |
# |
|
6 |
# .build-pre: called before 'build' target |
|
7 |
# .build-post: called after 'build' target |
|
8 |
# .clean-pre: called before 'clean' target |
|
9 |
# .clean-post: called after 'clean' target |
|
10 |
# .clobber-pre: called before 'clobber' target |
|
11 |
# .clobber-post: called after 'clobber' target |
|
12 |
# .all-pre: called before 'all' target |
|
13 |
# .all-post: called after 'all' target |
|
14 |
# .help-pre: called before 'help' target |
|
15 |
# .help-post: called after 'help' target |
|
16 |
# |
|
17 |
# Targets beginning with '.' are not intended to be called on their own. |
|
18 |
# |
|
19 |
# Main targets can be executed directly, and they are: |
|
20 |
# |
|
21 |
# build build a specific configuration |
|
22 |
# clean remove built files from a configuration |
|
23 |
# clobber remove all built files |
|
24 |
# all build all configurations |
|
25 |
# help print help mesage |
|
26 |
# |
|
27 |
# Targets .build-impl, .clean-impl, .clobber-impl, .all-impl, and |
|
28 |
# .help-impl are implemented in nbproject/makefile-impl.mk. |
|
29 |
# |
|
30 |
# Available make variables: |
|
31 |
# |
|
32 |
# CND_BASEDIR base directory for relative paths |
|
33 |
# CND_DISTDIR default top distribution directory (build artifacts) |
|
34 |
# CND_BUILDDIR default top build directory (object files, ...) |
|
35 |
# CONF name of current configuration |
|
36 |
# CND_ARTIFACT_DIR_${CONF} directory of build artifact (current configuration) |
|
37 |
# CND_ARTIFACT_NAME_${CONF} name of build artifact (current configuration) |
|
38 |
# CND_ARTIFACT_PATH_${CONF} path to build artifact (current configuration) |
|
39 |
# CND_PACKAGE_DIR_${CONF} directory of package (current configuration) |
|
40 |
# CND_PACKAGE_NAME_${CONF} name of package (current configuration) |
|
41 |
# CND_PACKAGE_PATH_${CONF} path to package (current configuration) |
|
42 |
# |
|
43 |
# NOCDDL |
|
44 |
|
|
45 |
|
|
46 |
# Environment |
|
47 |
MKDIR=mkdir |
|
48 |
CP=cp |
|
49 |
CCADMIN=CCadmin |
|
50 |
RANLIB=ranlib |
|
51 |
|
|
52 |
|
|
53 |
# build |
|
54 |
build: .build-post |
|
55 |
|
|
56 |
.build-pre: |
|
57 |
# Add your pre 'build' code here... |
|
58 |
|
|
59 |
.build-post: .build-impl |
|
60 |
# Add your post 'build' code here... |
|
61 |
|
|
62 |
|
|
63 |
# clean |
|
64 |
clean: .clean-post |
|
65 |
|
|
66 |
.clean-pre: |
|
67 |
# Add your pre 'clean' code here... |
|
68 |
# WARNING: the IDE does not call this target since it takes a long time to |
|
69 |
# simply run make. Instead, the IDE removes the configuration directories |
|
70 |
# under build and dist directly without calling make. |
|
71 |
# This target is left here so people can do a clean when running a clean |
|
72 |
# outside the IDE. |
|
73 |
|
|
74 |
.clean-post: .clean-impl |
|
75 |
# Add your post 'clean' code here... |
|
76 |
|
|
77 |
|
|
78 |
# clobber |
|
79 |
clobber: .clobber-post |
|
80 |
|
|
81 |
.clobber-pre: |
|
82 |
# Add your pre 'clobber' code here... |
|
83 |
|
|
84 |
.clobber-post: .clobber-impl |
|
85 |
# Add your post 'clobber' code here... |
|
86 |
|
|
87 |
|
|
88 |
# all |
|
89 |
all: .all-post |
|
90 |
|
|
91 |
.all-pre: |
|
92 |
# Add your pre 'all' code here... |
|
93 |
|
|
94 |
.all-post: .all-impl |
|
95 |
# Add your post 'all' code here... |
|
96 |
|
|
97 |
|
|
98 |
# help |
|
99 |
help: .help-post |
|
100 |
|
|
101 |
.help-pre: |
|
102 |
# Add your pre 'help' code here... |
|
103 |
|
|
104 |
.help-post: .help-impl |
|
105 |
# Add your post 'help' code here... |
|
106 |
|
|
107 |
|
|
108 |
|
|
109 |
# include project implementation makefile |
|
110 |
include nbproject/Makefile-impl.mk |
|
111 |
|
|
112 |
# include project make variables |
|
113 |
include nbproject/Makefile-variables.mk |
Version 0.6/RS232_MUX.X/build/default/production/main.o.d | ||
---|---|---|
1 |
build/default/production/main.o.d build/default/production/main.o: main.c \ |
|
2 |
c:\program\ files\microchip\xc8\v2.46\avr\lib\gcc\avr\5.4.0\include\xc.h \ |
|
3 |
c:\program\ files\microchip\xc8\v2.46\avr\lib\gcc\avr\5.4.0\include\cci.h \ |
|
4 |
c:\program\ files\microchip\xc8\v2.46\avr\avr\include\avr\io.h \ |
|
5 |
c:\program\ files\microchip\xc8\v2.46\avr\avr\include\avr\sfr_defs.h \ |
|
6 |
c:\program\ files\microchip\xc8\v2.46\avr\avr\include\inttypes.h \ |
|
7 |
c:\program\ files\microchip\xc8\v2.46\avr\avr\include\features.h \ |
|
8 |
c:\program\ files\microchip\xc8\v2.46\avr\lib\gcc\avr\5.4.0\include\stdint.h \ |
|
9 |
c:\program\ files\microchip\xc8\v2.46\avr\avr\include\stdint.h \ |
|
10 |
c:\program\ files\microchip\xc8\v2.46\avr\avr\include\bits\alltypes.h \ |
|
11 |
c:\program\ files\microchip\xc8\v2.46\avr\avr\include\bits\stdint.h \ |
|
12 |
C:/Program\ Files/Microchip/MPLABX/v6.20/packs/Microchip/AVR-Dx_DFP/2.4.286/xc8/avr/include/avr/ioavr32da48.h \ |
|
13 |
c:\program\ files\microchip\xc8\v2.46\avr\avr\include\avr\portpins.h \ |
|
14 |
c:\program\ files\microchip\xc8\v2.46\avr\avr\include\avr\common.h \ |
|
15 |
c:\program\ files\microchip\xc8\v2.46\avr\avr\include\avr\xmega.h \ |
|
16 |
c:\program\ files\microchip\xc8\v2.46\avr\avr\include\avr\fuse.h \ |
|
17 |
c:\program\ files\microchip\xc8\v2.46\avr\avr\include\avr\lock.h \ |
|
18 |
c:\program\ files\microchip\xc8\v2.46\avr\avr\include\avr\builtins.h \ |
|
19 |
c:\program\ files\microchip\xc8\v2.46\avr\avr\include\util\delay.h \ |
|
20 |
c:\program\ files\microchip\xc8\v2.46\avr\avr\include\util\delay_basic.h \ |
|
21 |
c:\program\ files\microchip\xc8\v2.46\avr\avr\include\math.h \ |
|
22 |
c:\program\ files\microchip\xc8\v2.46\avr\avr\include\avr\interrupt.h \ |
|
23 |
hardware_uart.h \ |
|
24 |
c:\program\ files\microchip\xc8\v2.46\avr\lib\gcc\avr\5.4.0\include\stdbool.h |
|
25 |
|
|
26 |
c:\program\ files\microchip\xc8\v2.46\avr\lib\gcc\avr\5.4.0\include\xc.h: |
|
27 |
|
|
28 |
c:\program\ files\microchip\xc8\v2.46\avr\lib\gcc\avr\5.4.0\include\cci.h: |
|
29 |
|
|
30 |
c:\program\ files\microchip\xc8\v2.46\avr\avr\include\avr\io.h: |
|
31 |
|
|
32 |
c:\program\ files\microchip\xc8\v2.46\avr\avr\include\avr\sfr_defs.h: |
|
33 |
|
|
34 |
c:\program\ files\microchip\xc8\v2.46\avr\avr\include\inttypes.h: |
|
35 |
|
|
36 |
c:\program\ files\microchip\xc8\v2.46\avr\avr\include\features.h: |
|
37 |
|
|
38 |
c:\program\ files\microchip\xc8\v2.46\avr\lib\gcc\avr\5.4.0\include\stdint.h: |
|
39 |
|
|
40 |
c:\program\ files\microchip\xc8\v2.46\avr\avr\include\stdint.h: |
|
41 |
|
|
42 |
c:\program\ files\microchip\xc8\v2.46\avr\avr\include\bits\alltypes.h: |
|
43 |
|
|
44 |
c:\program\ files\microchip\xc8\v2.46\avr\avr\include\bits\stdint.h: |
|
45 |
|
|
46 |
C:/Program\ Files/Microchip/MPLABX/v6.20/packs/Microchip/AVR-Dx_DFP/2.4.286/xc8/avr/include/avr/ioavr32da48.h: |
|
47 |
|
|
48 |
c:\program\ files\microchip\xc8\v2.46\avr\avr\include\avr\portpins.h: |
|
49 |
|
|
50 |
c:\program\ files\microchip\xc8\v2.46\avr\avr\include\avr\common.h: |
|
51 |
|
|
52 |
c:\program\ files\microchip\xc8\v2.46\avr\avr\include\avr\xmega.h: |
|
53 |
|
|
54 |
c:\program\ files\microchip\xc8\v2.46\avr\avr\include\avr\fuse.h: |
|
55 |
|
|
56 |
c:\program\ files\microchip\xc8\v2.46\avr\avr\include\avr\lock.h: |
|
57 |
|
|
58 |
c:\program\ files\microchip\xc8\v2.46\avr\avr\include\avr\builtins.h: |
|
59 |
|
|
60 |
c:\program\ files\microchip\xc8\v2.46\avr\avr\include\util\delay.h: |
|
61 |
|
|
62 |
c:\program\ files\microchip\xc8\v2.46\avr\avr\include\util\delay_basic.h: |
|
63 |
|
|
64 |
c:\program\ files\microchip\xc8\v2.46\avr\avr\include\math.h: |
|
65 |
|
|
66 |
c:\program\ files\microchip\xc8\v2.46\avr\avr\include\avr\interrupt.h: |
|
67 |
|
|
68 |
hardware_uart.h: |
|
69 |
|
|
70 |
c:\program\ files\microchip\xc8\v2.46\avr\lib\gcc\avr\5.4.0\include\stdbool.h: |
Version 0.6/RS232_MUX.X/dist/default/production/RS232_MUX.X.production.hex | ||
---|---|---|
1 |
:100000000C9477000C94C4030C94C4030C94C403A4 |
|
2 |
:100010000C94C4030C94C4030C94C4030C94C40344 |
|
3 |
:100020000C94C4030C94C4030C94C4030C94C40334 |
|
4 |
:100030000C94C4030C94C4030C94C4030C94C40324 |
|
5 |
:100040000C94C4030C94C4030C94C4030C94790260 |
|
6 |
:100050000C94C4030C94C4030C94C4030C94C40304 |
|
7 |
:100060000C94C4030C94C4030C94C4030C94C403F4 |
|
8 |
:100070000C94C4030C94C4030C94C4030C94C502E4 |
|
9 |
:100080000C94C4030C94C4030C94C4030C94C403D4 |
|
10 |
:100090000C94C4030C9411030C94C4030C94C40377 |
|
11 |
:1000A0000C94C4030C94C4030C94C4030C94C403B4 |
|
12 |
:1000B0000C94C4030C94C4030C94C4030C94C403A4 |
|
13 |
:1000C0000C94C4030C94C4030C94C4030C94C40394 |
|
14 |
:1000D0000C949F020C94C4030C94C4030C94EB0284 |
|
15 |
:1000E0000C94C4030C94C4037000750F8000112499 |
|
16 |
:1000F0001FBECFEFCDBFDFE7DEBFE8EEF0E040E0B0 |
|
17 |
:1001000017C0B591A59135912591059107FD0CC0BA |
|
18 |
:1001100095918591EF01F92FE82F05900D92A21787 |
|
19 |
:10012000B307D9F7FE0104C01D92A217B307E1F788 |
|
20 |
:10013000ED3EF40731F70E94A1000C94B403F8944B |
|
21 |
:02014000FFCFEF |
|
22 |
:10014200CF93DF93CDB7DEB7CB5FD109CDBFDEBF93 |
|
23 |
:1001520081E08093600494E288ED84BF909368000C |
|
24 |
:100162004DE040930004E0E0F8E020E137E2208730 |
|
25 |
:10017200318790E8958380ED868340932004E0E602 |
|
26 |
:10018200F8E0208731879583868340934004E0E23C |
|
27 |
:10019200F8E0208731879583868340938004E0E8E6 |
|
28 |
:1001A200F8E020873187958386834093A004E0E4BA |
|
29 |
:1001B200F8E0208731879583868378940E944202F3 |
|
30 |
:1001C200812C912CA12CB12CC12CD12CE12CF12C05 |
|
31 |
:1001D20000E010E0C550DF4F1882CB5FD0400F2EF9 |
|
32 |
:1001E200F0E66F2EF4E07F2EF02D0F2EF5E42F2E89 |
|
33 |
:1001F200F02D0F2EF6E43F2EF02D0F2EF7E44F2EAA |
|
34 |
:10020200F02D0F2EF8E45F2EF02DF301948181E0A2 |
|
35 |
:100212008927848320920208309262084092220841 |
|
36 |
:1002220050928208F9E4F0934208EDE0F5E780810C |
|
37 |
:100232009181892B59F00E943703E1E0F0E0EC0F45 |
|
38 |
:10024200FD1FE00FF11F80830F5F1F4FEAE0F4E70D |
|
39 |
:1002520080819181892B61F00E945003E3E3F0E0F9 |
|
40 |
:10026200EC0FFD1FEE0DFF1D8083FFEFEF1AFF0A5B |
|
41 |
:100272008091077390910873892B61F00E94690342 |
|
42 |
:10028200E5E6F0E0EC0FFD1FEC0DFD1D80832FEF86 |
|
43 |
:10029200C21AD20A8091047290910572892B61F080 |
|
44 |
:1002A2000E948203E7E9F0E0EC0FFD1FEA0DFB1D5F |
|
45 |
:1002B20080838FEFA81AB80A809101719091027120 |
|
46 |
:1002C200892B61F00E949B03E9ECF0E0EC0FFD1F2B |
|
47 |
:1002D200E80DF91D80839FEF891A990A898182347A |
|
48 |
:1002E20061F48A81843449F419821A8200E010E0B0 |
|
49 |
:1002F200C550DF4F1882CB5FD0408BA9823469F49E |
|
50 |
:100302008CA9843451F41BAA1CAAE12CF12CE1E043 |
|
51 |
:10031200C550DF4FE883CB5FD040A6968FADA6973E |
|
52 |
:10032200823499F4A7968FADA797843471F4A69678 |
|
53 |
:100332001FAEA697A7961FAEA797C12CD12CF2E0AD |
|
54 |
:10034200C550DF4FF883CB5FD040C956DF4F88815D |
|
55 |
:10035200C759D0408234C9F4C856DF4F8881C85982 |
|
56 |
:10036200D040843491F4C956DF4F1882C759D04027 |
|
57 |
:10037200C856DF4F1882C859D040A12CB12C23E0B7 |
|
58 |
:10038200C550DF4F2883CB5FD040C753DF4F8881F2 |
|
59 |
:10039200C95CD0408234C9F4C653DF4F8881CA5C3D |
|
60 |
:1003A200D040843491F4C753DF4F1882C95CD040E7 |
|
61 |
:1003B200C653DF4F1882CA5CD040812C912C84E056 |
|
62 |
:1003C200C550DF4F8883CB5FD0400230110514F057 |
|
63 |
:1003D20000E010E092E0E916F10414F0E12CF12CB7 |
|
64 |
:1003E200E2E0CE16D10414F0C12CD12CF2E0AF160B |
|
65 |
:1003F200B10414F0A12CB12C22E08216910414F065 |
|
66 |
:10040200812C912CC550DF4F8881CB5FD040813049 |
|
67 |
:1004120081F028F08230B9F08330F9F028C09FE7EC |
|
68 |
:10042200EFE4F2E19150E040F040E1F700C000005B |
|
69 |
:10043200ECCE2FEF8EE994E2215080409040E1F71C |
|
70 |
:1004420000C00000E2CEEFEFFDE329E4E150F0400E |
|
71 |
:100452002040E1F700C00000D8CE8FEF9BE7E2E931 |
|
72 |
:1004620081509040E040E1F700C00000CECEFFEFA7 |
|
73 |
:1004720029EB8BEDF15020408040E1F700C00000F5 |
|
74 |
:02048200C4CEE6 |
|
75 |
:10048400CF93DF93CDB7DEB72A97CDBFDEBF8AE027 |
|
76 |
:10049400EEE7F7E8DE01119601900D928A95E1F7F7 |
|
77 |
:1004A400DE0111969E01255F3F4F94E08CE0ED91B3 |
|
78 |
:1004B400FD9194834FE75FE462E141505040604016 |
|
79 |
:1004C400E1F700C0000084834FE75FE462E141503C |
|
80 |
:1004D40050406040E1F700C000001482A217B30747 |
|
81 |
:0E04E40031F72A96CDBFDEBFDF91CF9108958C |
|
82 |
:1004F2001F921FB61F9211242F938F939F93EF93F6 |
|
83 |
:10050200FF932091000880910D7590910E75FC016A |
|
84 |
:10051200E45FFB48218310920C748F3F910528F40D |
|
85 |
:10052200019680930D7590930E75FF91EF919F91B7 |
|
86 |
:0C0532008F912F911F901FBE1F901895F5 |
|
87 |
:10053E001F921FB61F9211242F938F939F93EF93A9 |
|
88 |
:10054E00FF932091600880910A7490910B74FC01C6 |
|
89 |
:10055E00E75FFC482183109209738F3F910528F4C1 |
|
90 |
:10056E00019680930A7490930B74FF91EF919F9173 |
|
91 |
:0C057E008F912F911F901FBE1F901895A9 |
|
92 |
:10058A001F921FB61F9211242F938F939F93EF935D |
|
93 |
:10059A00FF93209120088091077390910873FC01C2 |
|
94 |
:1005AA00EA5FFD482183109206728F3F910528F475 |
|
95 |
:1005BA0001968093077390930873FF91EF919F912F |
|
96 |
:0C05CA008F912F911F901FBE1F9018955D |
|
97 |
:1005D6001F921FB61F9211242F938F939F93EF9311 |
|
98 |
:1005E600FF93209180088091047290910572FC011E |
|
99 |
:1005F600ED5FFE482183109203718F3F910528F429 |
|
100 |
:1006060001968093047290930572FF91EF919F91EA |
|
101 |
:0C0616008F912F911F901FBE1F90189510 |
|
102 |
:100622001F921FB61F9211242F938F939F93EF93C4 |
|
103 |
:10063200FF93209140088091017190910271FC0119 |
|
104 |
:10064200E050F0492183109200708F3F910528F409 |
|
105 |
:1006520001968093017190930271FF91EF919F91A6 |
|
106 |
:0C0662008F912F911F901FBE1F901895C4 |
|
107 |
:10066E0080910D74EDE0F4E72CE035E791819193E4 |
|
108 |
:10067E00E217F307D9F720910D7530910E752115FC |
|
109 |
:10068E00310531F02150310920930D7530930E75DF |
|
110 |
:02069E000895BD |
|
111 |
:1006A00080910A73EAE0F3E729E034E791819193BE |
|
112 |
:1006B000E217F307D9F720910A7430910B742115D2 |
|
113 |
:1006C000310531F02150310920930A7430930B74B5 |
|
114 |
:0206D00008958B |
|
115 |
:1006D20080910772E7E0F2E726E033E79181919398 |
|
116 |
:1006E200E217F307D9F720910773309108732115A8 |
|
117 |
:1006F200310531F02150310920930773309308738B |
|
118 |
:02070200089558 |
|
119 |
:1007040080910471E4E0F1E723E032E79181919371 |
|
120 |
:10071400E217F307D9F7209104723091057221157D |
|
121 |
:10072400310531F021503109209304723093057260 |
|
122 |
:02073400089526 |
|
123 |
:1007360080910170E1E0F0E720E031E7918191934B |
|
124 |
:10074600E217F307D9F72091017130910271211553 |
|
125 |
:10075600310531F021503109209301713093027136 |
|
126 |
:020766000895F4 |
|
127 |
:10076800EC010E94C9030E94C803CE010E94CA037B |
|
128 |
:06077800CE010E94C60341 |
|
129 |
:0A077E000004200440048004A004DD |
|
130 |
:040788000C940000CD |
|
131 |
:04078C000E949F0028 |
|
132 |
:020790000895CA |
|
133 |
:020792000895C8 |
|
134 |
:020794000895C6 |
|
135 |
:00000001FF |
Version 0.6/RS232_MUX.X/dist/default/production/RS232_MUX.X.production.map | ||
---|---|---|
1 |
Archive member included to satisfy reference by file (symbol) |
|
2 |
|
|
3 |
c:/program files/microchip/xc8/v2.46/avr/bin/../lib/gcc/avr/5.4.0/avrxmega3\libgcc.a(_copy_data.o) |
|
4 |
build/default/production/main.o (__do_clear_bss) |
|
5 |
c:/program files/microchip/xc8/v2.46/avr/bin/../lib/gcc/avr/5.4.0/../../../../avr/lib/avrxmega3\libc.a(exit.o) |
|
6 |
C:/Program Files/Microchip/MPLABX/v6.20/packs/Microchip/AVR-Dx_DFP/2.4.286/xc8/avr/lib/avrxmega3/crtavr32da48.o (exit) |
|
7 |
c:/program files/microchip/xc8/v2.46/avr/bin/../lib/gcc/avr/5.4.0/../../../../avr/lib/avrxmega3\libc.a(_Exit.o) |
|
8 |
c:/program files/microchip/xc8/v2.46/avr/bin/../lib/gcc/avr/5.4.0/../../../../avr/lib/avrxmega3\libc.a(exit.o) (_Exit) |
|
9 |
c:/program files/microchip/xc8/v2.46/avr/bin/../lib/gcc/avr/5.4.0/avrxmega3\libgcc.a(_exit.o) |
|
10 |
c:/program files/microchip/xc8/v2.46/avr/bin/../lib/gcc/avr/5.4.0/../../../../avr/lib/avrxmega3\libc.a(_Exit.o) (_exit) |
|
11 |
|
|
12 |
Discarded input sections |
|
13 |
|
|
14 |
.data 0x0000000000000000 0x0 C:/Program Files/Microchip/MPLABX/v6.20/packs/Microchip/AVR-Dx_DFP/2.4.286/xc8/avr/lib/avrxmega3/crtavr32da48.o |
|
15 |
.bss 0x0000000000000000 0x0 C:/Program Files/Microchip/MPLABX/v6.20/packs/Microchip/AVR-Dx_DFP/2.4.286/xc8/avr/lib/avrxmega3/crtavr32da48.o |
|
16 |
.text 0x0000000000000000 0x0 build/default/production/main.o |
|
17 |
.data 0x0000000000000000 0x0 build/default/production/main.o |
|
18 |
.bss 0x0000000000000000 0x0 build/default/production/main.o |
|
19 |
.text.initPort0 |
|
20 |
0x0000000000000000 0x24 build/default/production/main.o |
|
21 |
.text.txWrite0 |
|
22 |
0x0000000000000000 0x6 build/default/production/main.o |
|
23 |
.text.portAvailable0 |
|
24 |
0x0000000000000000 0xa build/default/production/main.o |
|
25 |
.text.initPort1 |
|
26 |
0x0000000000000000 0x24 build/default/production/main.o |
|
27 |
.text.txWrite1 |
|
28 |
0x0000000000000000 0x6 build/default/production/main.o |
|
29 |
.text.portAvailable1 |
|
30 |
0x0000000000000000 0xa build/default/production/main.o |
|
31 |
.text.initPort2 |
|
32 |
0x0000000000000000 0x24 build/default/production/main.o |
|
33 |
.text.txWrite2 |
|
34 |
0x0000000000000000 0x6 build/default/production/main.o |
|
35 |
.text.portAvailable2 |
|
36 |
0x0000000000000000 0xa build/default/production/main.o |
|
37 |
.text.initPort3 |
|
38 |
0x0000000000000000 0x24 build/default/production/main.o |
|
39 |
.text.txWrite3 |
|
40 |
0x0000000000000000 0x6 build/default/production/main.o |
|
41 |
.text.portAvailable3 |
|
42 |
0x0000000000000000 0xa build/default/production/main.o |
|
43 |
.text.initPort4 |
|
44 |
0x0000000000000000 0x24 build/default/production/main.o |
|
45 |
.text.txWrite4 |
|
46 |
0x0000000000000000 0x6 build/default/production/main.o |
|
47 |
.text.portAvailable4 |
|
48 |
0x0000000000000000 0xa build/default/production/main.o |
|
49 |
.text.bootSequence |
|
50 |
0x0000000000000000 0x6 build/default/production/main.o |
|
51 |
.text 0x0000000000000000 0x0 c:/program files/microchip/xc8/v2.46/avr/bin/../lib/gcc/avr/5.4.0/avrxmega3\libgcc.a(_copy_data.o) |
|
52 |
.data 0x0000000000000000 0x0 c:/program files/microchip/xc8/v2.46/avr/bin/../lib/gcc/avr/5.4.0/avrxmega3\libgcc.a(_copy_data.o) |
|
53 |
.bss 0x0000000000000000 0x0 c:/program files/microchip/xc8/v2.46/avr/bin/../lib/gcc/avr/5.4.0/avrxmega3\libgcc.a(_copy_data.o) |
|
54 |
.text.libgcc.mul |
|
55 |
0x0000000000000000 0x0 c:/program files/microchip/xc8/v2.46/avr/bin/../lib/gcc/avr/5.4.0/avrxmega3\libgcc.a(_copy_data.o) |
|
56 |
.text.libgcc.div |
|
57 |
0x0000000000000000 0x0 c:/program files/microchip/xc8/v2.46/avr/bin/../lib/gcc/avr/5.4.0/avrxmega3\libgcc.a(_copy_data.o) |
|
58 |
.text.libgcc 0x0000000000000000 0x0 c:/program files/microchip/xc8/v2.46/avr/bin/../lib/gcc/avr/5.4.0/avrxmega3\libgcc.a(_copy_data.o) |
|
59 |
.text.libgcc.prologue |
|
60 |
0x0000000000000000 0x0 c:/program files/microchip/xc8/v2.46/avr/bin/../lib/gcc/avr/5.4.0/avrxmega3\libgcc.a(_copy_data.o) |
|
61 |
.text.libgcc.builtins |
|
62 |
0x0000000000000000 0x0 c:/program files/microchip/xc8/v2.46/avr/bin/../lib/gcc/avr/5.4.0/avrxmega3\libgcc.a(_copy_data.o) |
|
63 |
.text.libgcc.fmul |
|
64 |
0x0000000000000000 0x0 c:/program files/microchip/xc8/v2.46/avr/bin/../lib/gcc/avr/5.4.0/avrxmega3\libgcc.a(_copy_data.o) |
|
65 |
.text.libgcc.fixed |
|
66 |
0x0000000000000000 0x0 c:/program files/microchip/xc8/v2.46/avr/bin/../lib/gcc/avr/5.4.0/avrxmega3\libgcc.a(_copy_data.o) |
|
67 |
.text 0x0000000000000000 0x0 c:/program files/microchip/xc8/v2.46/avr/bin/../lib/gcc/avr/5.4.0/../../../../avr/lib/avrxmega3\libc.a(exit.o) |
|
68 |
.data 0x0000000000000000 0x0 c:/program files/microchip/xc8/v2.46/avr/bin/../lib/gcc/avr/5.4.0/../../../../avr/lib/avrxmega3\libc.a(exit.o) |
|
69 |
.bss 0x0000000000000000 0x0 c:/program files/microchip/xc8/v2.46/avr/bin/../lib/gcc/avr/5.4.0/../../../../avr/lib/avrxmega3\libc.a(exit.o) |
|
70 |
.stack.descriptors |
|
71 |
0x0000000000000000 0x73 c:/program files/microchip/xc8/v2.46/avr/bin/../lib/gcc/avr/5.4.0/../../../../avr/lib/avrxmega3\libc.a(exit.o) |
|
72 |
.text 0x0000000000000000 0x0 c:/program files/microchip/xc8/v2.46/avr/bin/../lib/gcc/avr/5.4.0/../../../../avr/lib/avrxmega3\libc.a(_Exit.o) |
|
73 |
.data 0x0000000000000000 0x0 c:/program files/microchip/xc8/v2.46/avr/bin/../lib/gcc/avr/5.4.0/../../../../avr/lib/avrxmega3\libc.a(_Exit.o) |
|
74 |
.bss 0x0000000000000000 0x0 c:/program files/microchip/xc8/v2.46/avr/bin/../lib/gcc/avr/5.4.0/../../../../avr/lib/avrxmega3\libc.a(_Exit.o) |
|
75 |
.stack.descriptors |
|
76 |
0x0000000000000000 0x13 c:/program files/microchip/xc8/v2.46/avr/bin/../lib/gcc/avr/5.4.0/../../../../avr/lib/avrxmega3\libc.a(_Exit.o) |
|
77 |
.text 0x0000000000000000 0x0 c:/program files/microchip/xc8/v2.46/avr/bin/../lib/gcc/avr/5.4.0/avrxmega3\libgcc.a(_exit.o) |
|
78 |
.data 0x0000000000000000 0x0 c:/program files/microchip/xc8/v2.46/avr/bin/../lib/gcc/avr/5.4.0/avrxmega3\libgcc.a(_exit.o) |
|
79 |
.bss 0x0000000000000000 0x0 c:/program files/microchip/xc8/v2.46/avr/bin/../lib/gcc/avr/5.4.0/avrxmega3\libgcc.a(_exit.o) |
|
80 |
.text.libgcc.mul |
|
81 |
0x0000000000000000 0x0 c:/program files/microchip/xc8/v2.46/avr/bin/../lib/gcc/avr/5.4.0/avrxmega3\libgcc.a(_exit.o) |
|
82 |
.text.libgcc.div |
|
83 |
0x0000000000000000 0x0 c:/program files/microchip/xc8/v2.46/avr/bin/../lib/gcc/avr/5.4.0/avrxmega3\libgcc.a(_exit.o) |
|
84 |
.text.libgcc 0x0000000000000000 0x0 c:/program files/microchip/xc8/v2.46/avr/bin/../lib/gcc/avr/5.4.0/avrxmega3\libgcc.a(_exit.o) |
|
85 |
.text.libgcc.prologue |
|
86 |
0x0000000000000000 0x0 c:/program files/microchip/xc8/v2.46/avr/bin/../lib/gcc/avr/5.4.0/avrxmega3\libgcc.a(_exit.o) |
|
87 |
.stack.descriptors |
|
88 |
0x0000000000000000 0x13 c:/program files/microchip/xc8/v2.46/avr/bin/../lib/gcc/avr/5.4.0/avrxmega3\libgcc.a(_exit.o) |
|
89 |
.text.libgcc.builtins |
|
90 |
0x0000000000000000 0x0 c:/program files/microchip/xc8/v2.46/avr/bin/../lib/gcc/avr/5.4.0/avrxmega3\libgcc.a(_exit.o) |
|
91 |
.text.libgcc.fmul |
|
92 |
0x0000000000000000 0x0 c:/program files/microchip/xc8/v2.46/avr/bin/../lib/gcc/avr/5.4.0/avrxmega3\libgcc.a(_exit.o) |
|
93 |
.text.libgcc.fixed |
|
94 |
0x0000000000000000 0x0 c:/program files/microchip/xc8/v2.46/avr/bin/../lib/gcc/avr/5.4.0/avrxmega3\libgcc.a(_exit.o) |
|
95 |
|
|
96 |
Memory Configuration |
|
97 |
|
|
98 |
Name Origin Length Attributes |
|
99 |
text 0x0000000000000000 0x0000000000008000 xr |
|
100 |
data 0x0000000000807000 0x0000000000001000 rw !x |
|
101 |
eeprom 0x0000000000810000 0x0000000000000200 rw !x |
|
102 |
fuse 0x0000000000820000 0x0000000000000010 rw !x |
|
103 |
lock 0x0000000000830000 0x0000000000000400 rw !x |
|
104 |
signature 0x0000000000840000 0x0000000000000400 rw !x |
|
105 |
user_signatures 0x0000000000850000 0x0000000000000400 rw !x |
|
106 |
bootrow 0x0000000000860000 0x0000000000000400 rw !x |
|
107 |
*default* 0x0000000000000000 0xffffffffffffffff |
|
108 |
|
|
109 |
Linker script and memory map |
|
110 |
|
|
111 |
Address of section .data set to 0x807000 |
|
112 |
0x0000000000008000 __RODATA_PM_OFFSET__ = 0x8000 |
|
113 |
LOAD C:/Program Files/Microchip/MPLABX/v6.20/packs/Microchip/AVR-Dx_DFP/2.4.286/xc8/avr/lib/avrxmega3/crtavr32da48.o |
|
114 |
0x0000000000000001 __MPLAB_BUILD = 0x1 |
|
115 |
LOAD build/default/production/main.o |
|
116 |
START GROUP |
|
117 |
LOAD c:/program files/microchip/xc8/v2.46/avr/bin/../lib/gcc/avr/5.4.0/../../../../avr/lib/avrxmega3\libm.a |
|
118 |
END GROUP |
|
119 |
START GROUP |
|
120 |
LOAD c:/program files/microchip/xc8/v2.46/avr/bin/../lib/gcc/avr/5.4.0/avrxmega3\libgcc.a |
|
121 |
LOAD c:/program files/microchip/xc8/v2.46/avr/bin/../lib/gcc/avr/5.4.0/../../../../avr/lib/avrxmega3\libm.a |
|
122 |
LOAD c:/program files/microchip/xc8/v2.46/avr/bin/../lib/gcc/avr/5.4.0/../../../../avr/lib/avrxmega3\libc.a |
|
123 |
LOAD C:/Program Files/Microchip/MPLABX/v6.20/packs/Microchip/AVR-Dx_DFP/2.4.286/xc8/avr/lib/avrxmega3\libavr32da48.a |
|
124 |
END GROUP |
|
125 |
[0x0000000000000000] __TEXT_REGION_ORIGIN__ = DEFINED (__TEXT_REGION_ORIGIN__)?__TEXT_REGION_ORIGIN__:0x0 |
|
126 |
[0x0000000000807000] __DATA_REGION_ORIGIN__ = DEFINED (__DATA_REGION_ORIGIN__)?__DATA_REGION_ORIGIN__:0x802000 |
|
127 |
[0x0000000000008000] __TEXT_REGION_LENGTH__ = DEFINED (__TEXT_REGION_LENGTH__)?__TEXT_REGION_LENGTH__:0x100000 |
|
128 |
[0x0000000000001000] __DATA_REGION_LENGTH__ = DEFINED (__DATA_REGION_LENGTH__)?__DATA_REGION_LENGTH__:0xffa0 |
|
129 |
[0x0000000000000200] __EEPROM_REGION_LENGTH__ = DEFINED (__EEPROM_REGION_LENGTH__)?__EEPROM_REGION_LENGTH__:0x10000 |
|
130 |
[0x0000000000000010] __FUSE_REGION_LENGTH__ = DEFINED (__FUSE_REGION_LENGTH__)?__FUSE_REGION_LENGTH__:0x400 |
|
131 |
0x0000000000000400 __LOCK_REGION_LENGTH__ = DEFINED (__LOCK_REGION_LENGTH__)?__LOCK_REGION_LENGTH__:0x400 |
|
132 |
0x0000000000000400 __SIGNATURE_REGION_LENGTH__ = DEFINED (__SIGNATURE_REGION_LENGTH__)?__SIGNATURE_REGION_LENGTH__:0x400 |
|
133 |
0x0000000000000400 __USER_SIGNATURE_REGION_LENGTH__ = DEFINED (__USER_SIGNATURE_REGION_LENGTH__)?__USER_SIGNATURE_REGION_LENGTH__:0x400 |
|
134 |
0x0000000000008000 __RODATA_PM_OFFSET__ = DEFINED (__RODATA_PM_OFFSET__)?__RODATA_PM_OFFSET__:0x8000 |
|
135 |
0x0000000000000400 __BOOTROW_REGION_LENGTH__ = DEFINED (__BOOTROW_REGION_LENGTH__)?__BOOTROW_REGION_LENGTH__:0x400 |
|
136 |
|
|
137 |
.hash |
|
138 |
*(.hash) |
|
139 |
|
|
140 |
.dynsym |
|
141 |
*(.dynsym) |
|
142 |
|
|
143 |
.dynstr |
|
144 |
*(.dynstr) |
|
145 |
|
|
146 |
.gnu.version |
|
147 |
*(.gnu.version) |
|
148 |
|
|
149 |
.gnu.version_d |
|
150 |
*(.gnu.version_d) |
|
151 |
|
|
152 |
.gnu.version_r |
|
153 |
*(.gnu.version_r) |
|
154 |
|
|
155 |
.rel.init |
|
156 |
*(.rel.init) |
|
157 |
|
|
158 |
.rela.init |
|
159 |
*(.rela.init) |
|
160 |
|
|
161 |
.rel.text |
|
162 |
*(.rel.text) |
|
163 |
*(.rel.text.*) |
|
164 |
*(.rel.gnu.linkonce.t*) |
|
165 |
|
|
166 |
.rela.text |
|
167 |
*(.rela.text) |
|
168 |
*(.rela.text.*) |
|
169 |
*(.rela.gnu.linkonce.t*) |
|
170 |
|
|
171 |
.rel.fini |
|
172 |
*(.rel.fini) |
|
173 |
|
|
174 |
.rela.fini |
|
175 |
*(.rela.fini) |
|
176 |
|
|
177 |
.rel.rodata |
|
178 |
*(.rel.rodata) |
|
179 |
*(.rel.rodata.*) |
|
180 |
*(.rel.gnu.linkonce.r*) |
|
181 |
|
|
182 |
.rela.rodata |
|
183 |
*(.rela.rodata) |
|
184 |
*(.rela.rodata.*) |
|
185 |
*(.rela.gnu.linkonce.r*) |
|
186 |
|
|
187 |
.rel.data |
|
188 |
*(.rel.data) |
|
189 |
*(.rel.data.*) |
|
190 |
*(.rel.gnu.linkonce.d*) |
|
191 |
|
|
192 |
.rela.data |
|
193 |
*(.rela.data) |
|
194 |
*(.rela.data.*) |
|
195 |
*(.rela.gnu.linkonce.d*) |
|
196 |
|
|
197 |
.rel.ctors |
|
198 |
*(.rel.ctors) |
|
199 |
|
|
200 |
.rela.ctors |
|
201 |
*(.rela.ctors) |
|
202 |
|
|
203 |
.rel.dtors |
|
204 |
*(.rel.dtors) |
|
205 |
|
|
206 |
.rela.dtors |
|
207 |
*(.rela.dtors) |
|
208 |
|
|
209 |
.rel.got |
|
210 |
*(.rel.got) |
|
211 |
|
|
212 |
.rela.got |
|
213 |
*(.rela.got) |
|
214 |
|
|
215 |
.rel.bss |
|
216 |
*(.rel.bss) |
|
217 |
|
|
218 |
.rela.bss |
|
219 |
*(.rela.bss) |
|
220 |
|
|
221 |
.rel.plt |
|
222 |
*(.rel.plt) |
|
223 |
|
|
224 |
.rela.plt |
|
225 |
*(.rela.plt) |
|
226 |
|
|
227 |
.text 0x0000000000000000 0x142 |
|
228 |
*(.vectors) |
|
229 |
.vectors 0x0000000000000000 0xe8 C:/Program Files/Microchip/MPLABX/v6.20/packs/Microchip/AVR-Dx_DFP/2.4.286/xc8/avr/lib/avrxmega3/crtavr32da48.o |
|
230 |
0x0000000000000000 __vector_default |
|
231 |
0x0000000000000000 __vectors |
|
232 |
*(.vectors) |
|
233 |
*(.progmem.gcc*) |
|
234 |
*(.dinit) |
|
235 |
.dinit 0x00000000000000e8 0x5 data_init |
|
236 |
0x00000000000000ee . = ALIGN (0x2) |
|
237 |
*fill* 0x00000000000000ed 0x1 |
|
238 |
0x00000000000000ee __trampolines_start = . |
|
239 |
*(.trampolines) |
|
240 |
.trampolines 0x00000000000000ee 0x0 linker stubs |
|
241 |
*(.trampolines*) |
|
242 |
0x00000000000000ee __trampolines_end = . |
|
243 |
*libprintf_flt.a:*(.progmem.data) |
|
244 |
*libc.a:*(.progmem.data) |
|
245 |
0x00000000000000ee . = ALIGN (0x2) |
|
246 |
*(.jumptables) |
|
247 |
*(.jumptables*) |
|
248 |
*(.lowtext) |
|
249 |
*(.lowtext*) |
|
250 |
0x00000000000000ee __ctors_start = . |
|
251 |
*(.ctors) |
|
252 |
0x00000000000000ee __ctors_end = . |
|
253 |
0x00000000000000ee __dtors_start = . |
|
254 |
*(.dtors) |
|
255 |
0x00000000000000ee __dtors_end = . |
|
256 |
SORT(*)(.ctors) |
|
257 |
SORT(*)(.dtors) |
|
258 |
*(.init0) |
|
259 |
.init0 0x00000000000000ee 0x0 C:/Program Files/Microchip/MPLABX/v6.20/packs/Microchip/AVR-Dx_DFP/2.4.286/xc8/avr/lib/avrxmega3/crtavr32da48.o |
|
260 |
0x00000000000000ee __init |
|
261 |
*(.init0) |
|
262 |
*(.init1) |
|
263 |
*(.init1) |
|
264 |
*(.init2) |
|
265 |
.init2 0x00000000000000ee 0xc C:/Program Files/Microchip/MPLABX/v6.20/packs/Microchip/AVR-Dx_DFP/2.4.286/xc8/avr/lib/avrxmega3/crtavr32da48.o |
|
266 |
*(.init2) |
|
267 |
*(.init3) |
|
268 |
*(.init3) |
|
269 |
*(.init4) |
|
270 |
.init4 0x00000000000000fa 0x3c c:/program files/microchip/xc8/v2.46/avr/bin/../lib/gcc/avr/5.4.0/avrxmega3\libgcc.a(_copy_data.o) |
|
271 |
0x00000000000000fa __do_copy_data |
|
272 |
0x0000000000000128 __do_clear_bss |
|
273 |
*(.init4) |
|
274 |
*(.init5) |
|
275 |
*(.init5) |
|
276 |
*(.init6) |
|
277 |
*(.init6) |
|
278 |
*(.init7) |
|
279 |
*(.init7) |
|
280 |
*(.init8) |
|
281 |
*(.init8) |
|
282 |
*(.init9) |
|
283 |
.init9 0x0000000000000136 0x8 C:/Program Files/Microchip/MPLABX/v6.20/packs/Microchip/AVR-Dx_DFP/2.4.286/xc8/avr/lib/avrxmega3/crtavr32da48.o |
|
284 |
*(.init9) |
|
285 |
0x000000000000013e . = ALIGN (0x2) |
|
286 |
*(.fini9) |
|
287 |
.fini9 0x000000000000013e 0x0 c:/program files/microchip/xc8/v2.46/avr/bin/../lib/gcc/avr/5.4.0/avrxmega3\libgcc.a(_exit.o) |
|
288 |
0x000000000000013e _exit |
|
289 |
*(.fini9) |
|
290 |
*(.fini8) |
|
291 |
*(.fini8) |
|
292 |
*(.fini7) |
|
293 |
*(.fini7) |
|
294 |
*(.fini6) |
|
295 |
*(.fini6) |
|
296 |
*(.fini5) |
|
297 |
*(.fini5) |
|
298 |
*(.fini4) |
|
299 |
*(.fini4) |
|
300 |
*(.fini3) |
|
301 |
*(.fini3) |
|
302 |
*(.fini2) |
|
303 |
*(.fini2) |
|
304 |
*(.fini1) |
|
305 |
*(.fini1) |
|
306 |
*(.fini0) |
|
307 |
.fini0 0x000000000000013e 0x4 c:/program files/microchip/xc8/v2.46/avr/bin/../lib/gcc/avr/5.4.0/avrxmega3\libgcc.a(_exit.o) |
|
308 |
*(.fini0) |
|
309 |
0x0000000000000142 _etext = . |
|
310 |
|
|
311 |
.data 0x0000000000807000 0x0 load address 0x0000000000000142 |
|
312 |
[!provide] PROVIDE (__data_start, .) |
|
313 |
*(.gnu.linkonce.d*) |
|
314 |
0x0000000000807000 . = ALIGN (0x2) |
|
315 |
0x0000000000807000 _edata = . |
|
316 |
[!provide] PROVIDE (__data_end, .) |
|
317 |
|
|
318 |
.bss 0x0000000000807000 0x0 |
|
319 |
[!provide] PROVIDE (__bss_start, .) |
|
320 |
*(COMMON) |
|
321 |
[!provide] PROVIDE (__bss_end, .) |
|
322 |
0x0000000000000142 __data_load_start = LOADADDR (.data) |
|
323 |
0x0000000000000142 __data_load_end = (__data_load_start + SIZEOF (.data)) |
|
324 |
|
|
325 |
.noinit 0x0000000000807000 0x0 |
|
326 |
[!provide] PROVIDE (__noinit_start, .) |
|
327 |
*(.noinit*) |
|
328 |
[!provide] PROVIDE (__noinit_end, .) |
|
329 |
0x0000000000807000 _end = . |
|
330 |
|
|
331 |
.eeprom 0x0000000000810000 0x0 |
|
332 |
*(.eeprom*) |
|
333 |
0x0000000000810000 __eeprom_end = . |
|
334 |
|
|
335 |
.fuse |
|
336 |
*(.fuse) |
|
337 |
*(.lfuse) |
|
338 |
*(.hfuse) |
|
339 |
*(.efuse) |
|
340 |
|
|
341 |
.lock |
|
342 |
*(.lock*) |
|
343 |
|
|
344 |
.signature |
|
345 |
*(.signature*) |
|
346 |
|
|
347 |
.user_signatures |
|
348 |
*(.user_signatures*) |
|
349 |
|
|
350 |
.bootrow |
|
351 |
*(.bootrow*) |
|
352 |
|
|
353 |
.stab |
|
354 |
*(.stab) |
|
355 |
|
|
356 |
.stabstr |
|
357 |
*(.stabstr) |
|
358 |
|
|
359 |
.stab.excl |
|
360 |
*(.stab.excl) |
|
361 |
|
|
362 |
.stab.exclstr |
|
363 |
*(.stab.exclstr) |
|
364 |
|
|
365 |
.stab.index |
|
366 |
*(.stab.index) |
|
367 |
|
|
368 |
.stab.indexstr |
|
369 |
*(.stab.indexstr) |
|
370 |
|
|
371 |
.comment 0x0000000000000000 0x5b |
|
372 |
*(.comment) |
|
373 |
.comment 0x0000000000000000 0x2f build/default/production/main.o |
|
374 |
0x30 (size before relaxing) |
|
375 |
.comment 0x000000000000002f 0x2c c:/program files/microchip/xc8/v2.46/avr/bin/../lib/gcc/avr/5.4.0/../../../../avr/lib/avrxmega3\libc.a(exit.o) |
|
376 |
0x2d (size before relaxing) |
|
377 |
.comment 0x000000000000005b 0x2d c:/program files/microchip/xc8/v2.46/avr/bin/../lib/gcc/avr/5.4.0/../../../../avr/lib/avrxmega3\libc.a(_Exit.o) |
|
378 |
|
|
379 |
.stack.descriptors.hdr |
|
380 |
0x0000000000000000 0x2a |
|
381 |
.stack.descriptors.hdr |
|
382 |
0x0000000000000000 0xe c:/program files/microchip/xc8/v2.46/avr/bin/../lib/gcc/avr/5.4.0/../../../../avr/lib/avrxmega3\libc.a(exit.o) |
|
383 |
.stack.descriptors.hdr |
|
384 |
0x000000000000000e 0xe c:/program files/microchip/xc8/v2.46/avr/bin/../lib/gcc/avr/5.4.0/../../../../avr/lib/avrxmega3\libc.a(_Exit.o) |
|
385 |
.stack.descriptors.hdr |
|
386 |
0x000000000000001c 0xe c:/program files/microchip/xc8/v2.46/avr/bin/../lib/gcc/avr/5.4.0/avrxmega3\libgcc.a(_exit.o) |
|
387 |
|
|
388 |
.note.GNU-stack |
|
389 |
0x0000000000000000 0x0 |
|
390 |
.note.GNU-stack |
|
391 |
0x0000000000000000 0x0 c:/program files/microchip/xc8/v2.46/avr/bin/../lib/gcc/avr/5.4.0/../../../../avr/lib/avrxmega3\libc.a(exit.o) |
|
392 |
.note.GNU-stack |
|
393 |
0x0000000000000000 0x0 c:/program files/microchip/xc8/v2.46/avr/bin/../lib/gcc/avr/5.4.0/../../../../avr/lib/avrxmega3\libc.a(_Exit.o) |
|
394 |
|
|
395 |
.note.gnu.build-id |
|
396 |
*(.note.gnu.build-id) |
|
397 |
|
|
398 |
.debug |
|
399 |
*(.debug) |
|
400 |
|
|
401 |
.line |
|
402 |
*(.line) |
|
403 |
|
|
404 |
.debug_srcinfo |
|
405 |
*(.debug_srcinfo) |
|
406 |
|
|
407 |
.debug_sfnames |
|
408 |
*(.debug_sfnames) |
|
409 |
|
|
410 |
.debug_aranges 0x0000000000000000 0xf8 |
|
411 |
*(.debug_aranges) |
|
412 |
.debug_aranges |
|
413 |
0x0000000000000000 0xf8 build/default/production/main.o |
|
414 |
|
|
415 |
.debug_pubnames |
|
416 |
*(.debug_pubnames) |
|
417 |
|
|
418 |
.debug_info 0x0000000000000000 0x4544 |
|
419 |
*(.debug_info .gnu.linkonce.wi.*) |
|
420 |
.debug_info 0x0000000000000000 0x3214 C:/Program Files/Microchip/MPLABX/v6.20/packs/Microchip/AVR-Dx_DFP/2.4.286/xc8/avr/lib/avrxmega3/crtavr32da48.o |
|
421 |
.debug_info 0x0000000000003214 0x1330 build/default/production/main.o |
|
422 |
|
|
423 |
.debug_abbrev 0x0000000000000000 0x32bf |
|
424 |
*(.debug_abbrev) |
|
425 |
.debug_abbrev 0x0000000000000000 0x2f6e C:/Program Files/Microchip/MPLABX/v6.20/packs/Microchip/AVR-Dx_DFP/2.4.286/xc8/avr/lib/avrxmega3/crtavr32da48.o |
|
426 |
.debug_abbrev 0x0000000000002f6e 0x351 build/default/production/main.o |
|
427 |
|
|
428 |
.debug_line 0x0000000000000000 0xa7e |
|
429 |
*(.debug_line .debug_line.* .debug_line_end) |
|
430 |
.debug_line 0x0000000000000000 0x1f3 C:/Program Files/Microchip/MPLABX/v6.20/packs/Microchip/AVR-Dx_DFP/2.4.286/xc8/avr/lib/avrxmega3/crtavr32da48.o |
|
431 |
.debug_line 0x00000000000001f3 0x88b build/default/production/main.o |
|
432 |
|
|
433 |
.debug_frame 0x0000000000000000 0x25c |
|
434 |
*(.debug_frame) |
|
435 |
.debug_frame 0x0000000000000000 0x25c build/default/production/main.o |
|
436 |
|
|
437 |
.debug_str 0x0000000000000000 0x1568 |
|
438 |
*(.debug_str) |
|
439 |
.debug_str 0x0000000000000000 0x1539 C:/Program Files/Microchip/MPLABX/v6.20/packs/Microchip/AVR-Dx_DFP/2.4.286/xc8/avr/lib/avrxmega3/crtavr32da48.o |
|
440 |
.debug_str 0x0000000000001539 0x2f build/default/production/main.o |
|
441 |
|
|
442 |
.debug_loc 0x0000000000000000 0x59a |
|
443 |
*(.debug_loc) |
|
444 |
.debug_loc 0x0000000000000000 0x59a build/default/production/main.o |
|
445 |
|
|
446 |
.debug_macinfo |
|
447 |
*(.debug_macinfo) |
|
448 |
|
|
449 |
.debug_weaknames |
|
450 |
*(.debug_weaknames) |
|
451 |
|
|
452 |
.debug_funcnames |
|
453 |
*(.debug_funcnames) |
|
454 |
|
|
455 |
.debug_typenames |
|
456 |
*(.debug_typenames) |
|
457 |
|
|
458 |
.debug_varnames |
|
459 |
*(.debug_varnames) |
|
460 |
|
|
461 |
.debug_pubtypes |
|
462 |
*(.debug_pubtypes) |
|
463 |
|
|
464 |
.debug_ranges 0x0000000000000000 0x148 |
|
465 |
*(.debug_ranges) |
|
466 |
.debug_ranges 0x0000000000000000 0x148 build/default/production/main.o |
|
467 |
|
|
468 |
.debug_macro |
|
469 |
*(.debug_macro) |
|
470 |
OUTPUT(dist/default/production/RS232_MUX.X.production.elf elf32-avr) |
|
471 |
LOAD linker stubs |
|
472 |
LOAD data_init |
|
473 |
|
|
474 |
.note.gnu.avr.deviceinfo |
|
475 |
0x0000000000000000 0x3c |
|
476 |
.note.gnu.avr.deviceinfo |
|
477 |
0x0000000000000000 0x3c C:/Program Files/Microchip/MPLABX/v6.20/packs/Microchip/AVR-Dx_DFP/2.4.286/xc8/avr/lib/avrxmega3/crtavr32da48.o |
|
478 |
|
|
479 |
.bss.RX4 0x0000000000807000 0x103 |
|
480 |
.bss.RX4 0x0000000000807000 0x103 build/default/production/main.o |
|
481 |
0x0000000000807000 RX4 |
|
482 |
|
|
483 |
.bss.RX3 0x0000000000807103 0x103 |
|
484 |
.bss.RX3 0x0000000000807103 0x103 build/default/production/main.o |
|
485 |
0x0000000000807103 RX3 |
|
486 |
|
|
487 |
.bss.RX2 0x0000000000807206 0x103 |
|
488 |
.bss.RX2 0x0000000000807206 0x103 build/default/production/main.o |
|
489 |
0x0000000000807206 RX2 |
|
490 |
|
|
491 |
.bss.RX1 0x0000000000807309 0x103 |
|
492 |
.bss.RX1 0x0000000000807309 0x103 build/default/production/main.o |
|
493 |
0x0000000000807309 RX1 |
|
494 |
|
|
495 |
.bss.RX0 0x000000000080740c 0x103 |
|
496 |
.bss.RX0 0x000000000080740c 0x103 build/default/production/main.o |
|
497 |
0x000000000080740c RX0 |
|
498 |
|
|
499 |
.text.main 0x0000000000000142 0x342 |
|
500 |
.text.main 0x0000000000000142 0x342 build/default/production/main.o |
|
501 |
0x0000000000000142 main |
|
502 |
|
|
503 |
.text.debugLedsTest |
|
504 |
0x0000000000000484 0x6e |
|
505 |
.text.debugLedsTest |
|
506 |
0x0000000000000484 0x6e build/default/production/main.o |
|
507 |
0x0000000000000484 debugLedsTest |
|
508 |
|
|
509 |
.text.__vector_19 |
|
510 |
0x00000000000004f2 0x4c |
|
511 |
.text.__vector_19 |
|
512 |
0x00000000000004f2 0x4c build/default/production/main.o |
|
513 |
0x00000000000004f2 __vector_19 |
|
514 |
|
|
515 |
.text.__vector_52 |
|
516 |
0x000000000000053e 0x4c |
|
517 |
.text.__vector_52 |
|
518 |
0x000000000000053e 0x4c build/default/production/main.o |
|
519 |
0x000000000000053e __vector_52 |
|
520 |
|
|
521 |
.text.__vector_31 |
|
522 |
0x000000000000058a 0x4c |
|
523 |
.text.__vector_31 |
|
524 |
0x000000000000058a 0x4c build/default/production/main.o |
|
525 |
0x000000000000058a __vector_31 |
|
526 |
|
|
527 |
.text.__vector_55 |
|
528 |
0x00000000000005d6 0x4c |
|
529 |
.text.__vector_55 |
|
530 |
0x00000000000005d6 0x4c build/default/production/main.o |
|
531 |
0x00000000000005d6 __vector_55 |
|
532 |
|
|
533 |
.text.__vector_37 |
|
534 |
0x0000000000000622 0x4c |
|
535 |
.text.__vector_37 |
|
536 |
0x0000000000000622 0x4c build/default/production/main.o |
|
537 |
0x0000000000000622 __vector_37 |
|
538 |
|
|
539 |
.text.rxRead0 0x000000000000066e 0x32 |
|
540 |
.text.rxRead0 0x000000000000066e 0x32 build/default/production/main.o |
|
541 |
0x000000000000066e rxRead0 |
|
542 |
|
|
543 |
.text.rxRead1 0x00000000000006a0 0x32 |
|
544 |
.text.rxRead1 0x00000000000006a0 0x32 build/default/production/main.o |
|
545 |
0x00000000000006a0 rxRead1 |
|
546 |
|
|
547 |
.text.rxRead2 0x00000000000006d2 0x32 |
|
548 |
.text.rxRead2 0x00000000000006d2 0x32 build/default/production/main.o |
|
549 |
0x00000000000006d2 rxRead2 |
|
550 |
|
|
551 |
.text.rxRead3 0x0000000000000704 0x32 |
|
552 |
.text.rxRead3 0x0000000000000704 0x32 build/default/production/main.o |
|
553 |
0x0000000000000704 rxRead3 |
|
554 |
|
|
555 |
.text.rxRead4 0x0000000000000736 0x32 |
|
556 |
.text.rxRead4 0x0000000000000736 0x32 build/default/production/main.o |
|
557 |
0x0000000000000736 rxRead4 |
|
558 |
|
|
559 |
.text.exit 0x0000000000000768 0x16 |
|
560 |
.text.exit 0x0000000000000768 0x16 c:/program files/microchip/xc8/v2.46/avr/bin/../lib/gcc/avr/5.4.0/../../../../avr/lib/avrxmega3\libc.a(exit.o) |
|
561 |
0x0000000000000768 exit |
|
562 |
|
|
563 |
.rodata 0x000000000080877e 0xa load address 0x000000000000077e |
|
564 |
.rodata 0x000000000080877e 0xa build/default/production/main.o |
|
565 |
|
|
566 |
.text 0x0000000000000788 0x4 |
|
567 |
.text 0x0000000000000788 0x4 C:/Program Files/Microchip/MPLABX/v6.20/packs/Microchip/AVR-Dx_DFP/2.4.286/xc8/avr/lib/avrxmega3/crtavr32da48.o |
|
568 |
0x0000000000000788 __vector_38 |
|
569 |
0x0000000000000788 __vector_22 |
|
570 |
0x0000000000000788 __vector_28 |
|
571 |
0x0000000000000788 __vector_1 |
|
572 |
0x0000000000000788 __vector_32 |
|
573 |
0x0000000000000788 __vector_34 |
|
574 |
0x0000000000000788 __vector_24 |
|
575 |
0x0000000000000788 __vector_12 |
|
576 |
0x0000000000000788 __vector_46 |
|
577 |
0x0000000000000788 __bad_interrupt |
|
578 |
0x0000000000000788 __vector_6 |
|
579 |
0x0000000000000788 __vector_35 |
|
580 |
0x0000000000000788 __vector_39 |
|
581 |
0x0000000000000788 __vector_3 |
|
582 |
0x0000000000000788 __vector_23 |
|
583 |
0x0000000000000788 __vector_30 |
|
584 |
0x0000000000000788 __vector_45 |
|
585 |
0x0000000000000788 __vector_25 |
|
586 |
0x0000000000000788 __vector_11 |
|
587 |
0x0000000000000788 __vector_54 |
|
588 |
0x0000000000000788 __vector_13 |
|
589 |
0x0000000000000788 __vector_17 |
|
590 |
0x0000000000000788 __vector_56 |
|
591 |
0x0000000000000788 __vector_7 |
|
592 |
0x0000000000000788 __vector_49 |
|
593 |
0x0000000000000788 __vector_41 |
|
594 |
0x0000000000000788 __vector_43 |
|
595 |
0x0000000000000788 __vector_27 |
|
596 |
0x0000000000000788 __vector_5 |
|
597 |
0x0000000000000788 __vector_33 |
|
598 |
0x0000000000000788 __vector_47 |
|
599 |
0x0000000000000788 __vector_4 |
|
600 |
0x0000000000000788 __vector_44 |
|
601 |
0x0000000000000788 __vector_51 |
|
602 |
0x0000000000000788 __vector_9 |
|
603 |
0x0000000000000788 __vector_2 |
|
604 |
0x0000000000000788 __vector_21 |
|
605 |
0x0000000000000788 __vector_15 |
|
606 |
0x0000000000000788 __vector_36 |
|
607 |
0x0000000000000788 __vector_29 |
|
608 |
0x0000000000000788 __vector_40 |
|
609 |
0x0000000000000788 __vector_8 |
|
610 |
0x0000000000000788 __vector_26 |
|
611 |
0x0000000000000788 __vector_48 |
|
612 |
0x0000000000000788 __vector_14 |
|
613 |
0x0000000000000788 __vector_57 |
|
614 |
0x0000000000000788 __vector_53 |
|
615 |
0x0000000000000788 __vector_10 |
|
616 |
0x0000000000000788 __vector_50 |
|
617 |
0x0000000000000788 __vector_16 |
|
618 |
0x0000000000000788 __vector_18 |
|
619 |
0x0000000000000788 __vector_20 |
|
620 |
0x0000000000000788 __vector_42 |
|
621 |
|
|
622 |
.text._Exit 0x000000000000078c 0x4 |
|
623 |
.text._Exit 0x000000000000078c 0x4 c:/program files/microchip/xc8/v2.46/avr/bin/../lib/gcc/avr/5.4.0/../../../../avr/lib/avrxmega3\libc.a(_Exit.o) |
|
624 |
0x000000000000078c _Exit |
|
625 |
|
|
626 |
.text.__dummy_fini |
|
627 |
0x0000000000000790 0x2 |
|
628 |
.text.__dummy_fini |
|
629 |
0x0000000000000790 0x2 c:/program files/microchip/xc8/v2.46/avr/bin/../lib/gcc/avr/5.4.0/../../../../avr/lib/avrxmega3\libc.a(exit.o) |
|
630 |
0x0000000000000790 _fini |
|
631 |
|
|
632 |
.text.__dummy_funcs_on_exit |
|
633 |
0x0000000000000792 0x2 |
|
634 |
.text.__dummy_funcs_on_exit |
|
635 |
0x0000000000000792 0x2 c:/program files/microchip/xc8/v2.46/avr/bin/../lib/gcc/avr/5.4.0/../../../../avr/lib/avrxmega3\libc.a(exit.o) |
|
636 |
0x0000000000000792 __funcs_on_exit |
|
637 |
|
|
638 |
.text.__dummy_simulator_exit |
|
639 |
0x0000000000000794 0x2 |
|
640 |
.text.__dummy_simulator_exit |
|
641 |
0x0000000000000794 0x2 c:/program files/microchip/xc8/v2.46/avr/bin/../lib/gcc/avr/5.4.0/../../../../avr/lib/avrxmega3\libc.a(exit.o) |
|
642 |
0x0000000000000794 __simulator_exit |
Version 0.6/RS232_MUX.X/dist/default/production/memoryfile.xml | ||
---|---|---|
1 |
<?xml version="1.0" encoding="UTF-8"?> |
|
2 |
<project> |
|
3 |
<executable name="dist/default/production/RS232_MUX.X.production.elf"> |
|
4 |
<memory name="program"> |
|
5 |
<units>bytes</units> |
|
6 |
<length>32768</length> |
|
7 |
<used>1942</used> |
|
8 |
<free>30826</free> |
|
9 |
</memory> |
|
10 |
<memory name="data"> |
|
11 |
<units>bytes</units> |
|
12 |
<length>4096</length> |
|
13 |
<used>1295</used> |
|
14 |
<free>2801</free> |
|
15 |
</memory> |
|
16 |
</executable> |
|
17 |
</project> |
Version 0.6/RS232_MUX.X/hardware_uart.h | ||
---|---|---|
1 |
/* Microchip Technology Inc. and its subsidiaries. You may use this software |
|
2 |
* and any derivatives exclusively with Microchip products. |
|
3 |
* |
|
4 |
* THIS SOFTWARE IS SUPPLIED BY MICROCHIP "AS IS". NO WARRANTIES, WHETHER |
|
5 |
* EXPRESS, IMPLIED OR STATUTORY, APPLY TO THIS SOFTWARE, INCLUDING ANY IMPLIED |
|
6 |
* WARRANTIES OF NON-INFRINGEMENT, MERCHANTABILITY, AND FITNESS FOR A |
|
7 |
* PARTICULAR PURPOSE, OR ITS INTERACTION WITH MICROCHIP PRODUCTS, COMBINATION |
|
8 |
* WITH ANY OTHER PRODUCTS, OR USE IN ANY APPLICATION. |
|
9 |
* |
|
10 |
* IN NO EVENT WILL MICROCHIP BE LIABLE FOR ANY INDIRECT, SPECIAL, PUNITIVE, |
|
11 |
* INCIDENTAL OR CONSEQUENTIAL LOSS, DAMAGE, COST OR EXPENSE OF ANY KIND |
|
12 |
* WHATSOEVER RELATED TO THE SOFTWARE, HOWEVER CAUSED, EVEN IF MICROCHIP HAS |
|
13 |
* BEEN ADVISED OF THE POSSIBILITY OR THE DAMAGES ARE FORESEEABLE. TO THE |
|
14 |
* FULLEST EXTENT ALLOWED BY LAW, MICROCHIP'S TOTAL LIABILITY ON ALL CLAIMS |
|
15 |
* IN ANY WAY RELATED TO THIS SOFTWARE WILL NOT EXCEED THE AMOUNT OF FEES, IF |
|
16 |
* ANY, THAT YOU HAVE PAID DIRECTLY TO MICROCHIP FOR THIS SOFTWARE. |
|
17 |
* |
|
18 |
* MICROCHIP PROVIDES THIS SOFTWARE CONDITIONALLY UPON YOUR ACCEPTANCE OF THESE |
|
19 |
* TERMS. |
|
20 |
*/ |
|
21 |
|
|
22 |
/* |
|
23 |
* File: hardware_uart.h |
|
24 |
* Author: Enzo Niro |
|
25 |
* Comments: Library made for RS232 MUX board |
|
26 |
* Revision history: V1.0 |
|
27 |
*/ |
|
28 |
|
|
29 |
|
|
30 |
#ifndef XC_HEADER_TEMPLATE_H |
|
31 |
#define XC_HEADER_TEMPLATE_H |
|
32 |
|
|
33 |
#include <xc.h> // include processor files - each processor file is guarded. |
|
34 |
#include <stdbool.h> |
|
35 |
|
|
36 |
|
|
37 |
|
|
38 |
//According to AVR32DA48 pins |
|
39 |
|
|
40 |
#define USART0_PORT_PINS 0x01 |
|
41 |
#define USART0_DEBUG_LED 0x0C |
|
42 |
|
|
43 |
#define USART1_PORT_PINS 0x01 |
|
44 |
#define USART1_DEBUG_LED 0x0C |
|
45 |
|
|
46 |
#define USART2_PORT_PINS 0x01 |
|
47 |
#define USART2_DEBUG_LED 0x0C |
|
48 |
|
|
49 |
#define USART3_PORT_PINS 0x01 |
|
50 |
#define USART3_DEBUG_LED 0x0C |
|
51 |
|
|
52 |
#define USART4_PORT_PINS 0x01 |
|
53 |
#define USART4_DEBUG_LED 0x0C |
|
54 |
|
|
55 |
|
|
56 |
|
|
57 |
#ifdef __cplusplus |
|
58 |
extern "C" { |
|
59 |
#endif /* __cplusplus */ |
|
60 |
|
|
61 |
|
|
62 |
|
|
63 |
/////////////////////////////////////////////////////////////// |
|
64 |
//Global Vars |
|
65 |
|
|
66 |
typedef struct RXREAD RXREAD; |
|
67 |
struct RXREAD |
|
68 |
{ |
|
69 |
uint8_t _rxReicv; // temp byte |
|
70 |
uint8_t _rxBuf[256]; //back end serial buffer |
|
71 |
uint16_t bytesAvailable; //show if bytes available... |
|
72 |
}; |
|
73 |
|
|
74 |
|
|
75 |
RXREAD RX0, RX1, RX2, RX3, RX4; |
|
76 |
|
|
77 |
|
|
78 |
|
|
79 |
|
|
80 |
|
|
81 |
/** |
|
82 |
<p><b>void debugLedsTest(void)</b></p> |
|
83 |
<p><b>Debug leds test sequence</b></p> |
|
84 |
*/ |
|
85 |
|
|
86 |
|
|
87 |
void debugLedsTest(void) |
|
88 |
{ |
|
89 |
PORT_t *port; |
|
90 |
uint16_t addrPorts[] = {&PORTA, &PORTB, &PORTC, &PORTE, &PORTF }; |
|
91 |
for(int i = 0; i < 5; i++) |
|
92 |
{ |
|
93 |
port = addrPorts[i]; |
|
94 |
port->OUT = 0x04; |
|
95 |
_delay_ms(250); |
|
96 |
port->OUT = 0x0C; |
|
97 |
_delay_ms(250); |
|
98 |
port->OUT = 0x00; |
|
99 |
} |
|
100 |
} |
|
101 |
|
|
102 |
|
|
103 |
|
|
104 |
///////////////////////////////////////////////// |
|
105 |
//For Master port (USART0) |
|
106 |
|
|
107 |
/** |
|
108 |
<p><b>void initPort0(uint32_t bauds)</b></p> |
|
109 |
<p><b>Init MASTER PORT</b></p> |
|
110 |
<p><b>Parameters : uint8_t bauds -> Set bauds speed</b></p> |
|
111 |
<p><b> bool enableDebug -> Enable debug leds</b></p> |
|
112 |
<p><b>Don't forget to call sei() function after called all initPortx() functions !</p></b> |
|
113 |
*/ |
|
114 |
void initPort0(uint32_t bauds, bool enableDebug) |
|
115 |
{ |
|
116 |
if(enableDebug) |
|
117 |
PORTA.DIR = USART0_PORT_PINS | USART0_DEBUG_LED; //Set TX/RX IO and RX/TX debug leds for USART0 |
|
118 |
else |
|
119 |
PORTA.DIR = USART0_PORT_PINS; //Set TX/RX IO |
|
120 |
|
|
121 |
USART0.BAUD = bauds; |
|
122 |
USART0.CTRLA = 0x80; //enable RX complete interrupt |
|
123 |
USART0.CTRLB = 0xD0; //Enable TX and RX sending |
|
124 |
} |
|
125 |
|
|
126 |
|
|
127 |
/** |
|
128 |
<p><b>void txWrite0(uint8_t b)</b></p> |
|
129 |
<p><b>Write a byte throught MASTER PORT</b></p> |
|
130 |
<p><b>Parameters : uint8_t b -> Byte to write</b></p> |
|
131 |
*/ |
|
132 |
|
|
133 |
void txWrite0(uint8_t b) //write one byte |
|
134 |
{ |
|
135 |
USART0.TXDATAL = b; |
|
136 |
} |
|
137 |
|
|
138 |
|
|
139 |
/** |
|
140 |
<p><b>uint8_t rxRead0(void)</b></p> |
|
141 |
<p><b>Read a byte from MASTER PORT</b></p> |
|
142 |
<p><b>Return : uint8_t result -> Byte to read</b></p> |
|
143 |
*/ |
|
144 |
uint8_t rxRead0(void) //Read one byte from buffer |
|
145 |
{ |
|
146 |
uint8_t result = RX0._rxBuf[0]; //get byte in order (FIFO) |
|
147 |
|
|
148 |
for(uint8_t j = 0; j < 255; j++) //shift bytes |
|
149 |
{ |
|
150 |
RX0._rxBuf[j] = RX0._rxBuf[j+1]; |
|
151 |
} |
|
152 |
if(RX0.bytesAvailable > 0) |
|
153 |
RX0.bytesAvailable--; //remove 1 byte |
|
154 |
|
|
155 |
return result; |
|
156 |
} |
|
157 |
|
|
158 |
|
|
159 |
/** |
|
160 |
<p><b>uint16_t portAvailable0(void)</b></p> |
|
161 |
<p><b>Get number of bytes available into the MASTER PORT's buffer</b></p> |
|
162 |
<p><b>Return : uint16_t bytesAvailable -> Number of bytes</b></p> |
|
163 |
*/ |
|
164 |
uint16_t portAvailable0(void) |
|
165 |
{ |
|
166 |
return RX0.bytesAvailable; |
|
167 |
} |
|
168 |
|
|
169 |
|
|
170 |
ISR(USART0_RXC_vect) |
|
171 |
{ |
|
172 |
//while((USART0.RXDATAH & 0x80) == 0x80); |
|
173 |
RX0._rxReicv = USART0.RXDATAL; //read buffer |
|
174 |
RX0._rxBuf[RX0.bytesAvailable] = RX0._rxReicv; //Add one byte to the buffer |
|
175 |
RX0._rxReicv = 0x00; //clear value |
|
176 |
if(RX0.bytesAvailable < 255) //ensure not to overflow buffer size... |
|
177 |
RX0.bytesAvailable++; //a new byte is available into the buffer |
|
178 |
//PORTA.OUT ^= 0x3; //debug led |
|
179 |
} |
|
180 |
|
|
181 |
|
|
182 |
|
|
183 |
|
|
184 |
|
|
185 |
///////////////////////////////////////////////// |
|
186 |
//For Virtual port 1 (USART3) |
|
187 |
|
|
188 |
|
|
189 |
/** |
|
190 |
<p><b>void initPort1(uint32_t bauds)</b></p> |
|
191 |
<p><b>Init MASTER PORT</b></p> |
|
192 |
<p><b>Parameters : uint8_t bauds -> Set bauds speed</b></p> |
|
193 |
<p><b> bool enableDebug -> Enable debug leds</b></p> |
|
194 |
<p><b>Don't forget to call sei() function after called all initPortx() functions !</p></b> |
|
195 |
*/ |
|
196 |
void initPort1(uint32_t bauds, bool enableDebug) |
|
197 |
{ |
|
198 |
|
|
199 |
if(enableDebug) |
|
200 |
PORTB.DIR = USART3_PORT_PINS | USART3_DEBUG_LED; //Set TX/RX IO and RX/TX debug leds for USART0 |
|
201 |
else |
|
202 |
PORTB.DIR = USART3_PORT_PINS; //Set TX/RX IO |
|
203 |
|
|
204 |
USART3.BAUD = bauds; |
|
205 |
USART3.CTRLA = 0x80; //enable RX complete interrupt |
|
206 |
USART3.CTRLB = 0xD0; //Enable TX and RX sending |
|
207 |
} |
|
208 |
|
|
209 |
|
|
210 |
|
|
211 |
/** |
|
212 |
<p><b>void txWrite1(uint8_t b)</b></p> |
|
213 |
<p><b>Write a byte throught VCOM1</b></p> |
|
214 |
<p><b>Parameters : uint8_t b -> Byte to write</b></p> |
|
215 |
*/ |
|
216 |
void txWrite1(uint8_t b) //Write one byte |
|
217 |
{ |
|
218 |
USART3.TXDATAL = b; |
|
219 |
} |
|
220 |
|
|
221 |
|
|
222 |
/** |
|
223 |
<p><b>uint8_t rxRead1(void)</b></p> |
|
224 |
<p><b>Read a byte from VCOM1</b></p> |
|
225 |
<p><b>Return : uint8_t result -> Byte to read</b></p> |
|
226 |
*/ |
|
227 |
uint8_t rxRead1(void) //Read one byte from buffer |
|
228 |
{ |
|
229 |
uint8_t result = RX1._rxBuf[0]; //get byte in order (FIFO) |
|
230 |
|
|
231 |
for(uint8_t j = 0; j < 255; j++) //shift bytes |
|
232 |
{ |
|
233 |
RX1._rxBuf[j] = RX1._rxBuf[j+1]; |
|
234 |
} |
|
235 |
if(RX1.bytesAvailable > 0) |
|
236 |
RX1.bytesAvailable--; //remove 1 byte |
|
237 |
|
|
238 |
return result; |
|
239 |
} |
|
240 |
|
|
241 |
|
|
242 |
/** |
|
243 |
<p><b>uint16_t portAvailable1(void)</b></p> |
|
244 |
<p><b>Get number of bytes available into the VCOM1 PORT's buffer</b></p> |
|
245 |
<p><b>Return : uint16_t bytesAvailable -> Number of bytes</b></p> |
|
246 |
*/ |
|
247 |
uint16_t portAvailable1(void) |
|
248 |
{ |
|
249 |
return RX1.bytesAvailable; |
|
250 |
} |
|
251 |
|
|
252 |
|
|
253 |
|
|
254 |
ISR(USART3_RXC_vect) |
|
255 |
{ |
|
256 |
//while((USART0.RXDATAH & 0x80) == 0x80); |
|
257 |
RX1._rxReicv = USART3.RXDATAL; //read buffer |
|
258 |
RX1._rxBuf[RX1.bytesAvailable] = RX1._rxReicv; //Add one byte to the buffer |
|
259 |
RX1._rxReicv = 0x00; //clear value |
|
260 |
if(RX1.bytesAvailable < 255) //ensure not to overflow buffer size... |
|
261 |
RX1.bytesAvailable++; //a new byte is available into the buffer |
|
262 |
//PORTA.OUT ^= 0x3; //debug led |
|
263 |
} |
|
264 |
|
|
265 |
|
|
266 |
///////////////////////////////////////////////// |
|
267 |
//For Virtual port 2 (USART1) |
|
268 |
|
|
269 |
|
|
270 |
/** |
|
271 |
<p><b>void initPort2(uint32_t bauds)</b></p> |
|
272 |
<p><b>Init MASTER PORT</b></p> |
|
273 |
<p><b>Parameters : uint8_t bauds -> Set bauds speed</b></p> |
|
274 |
<p><b> bool enableDebug -> Enable debug leds</b></p> |
|
275 |
<p><b>Don't forget to call sei() function after called all initPortx() functions !</p></b> |
|
276 |
*/ |
|
277 |
void initPort2(uint32_t bauds, bool enableDebug) |
|
278 |
{ |
|
279 |
|
|
280 |
if(enableDebug) |
|
281 |
PORTC.DIR = USART1_PORT_PINS | USART1_DEBUG_LED; //Set TX/RX IO and RX/TX debug leds for USART0 |
|
282 |
else |
|
283 |
PORTC.DIR = USART1_PORT_PINS; //Set TX/RX IO |
|
284 |
|
|
285 |
|
|
286 |
USART1.BAUD = bauds; |
|
287 |
USART1.CTRLA = 0x80; //enable RX complete interrupt |
|
288 |
USART1.CTRLB = 0xD0; //Enable TX and RX sending |
|
289 |
} |
|
290 |
|
|
291 |
|
|
292 |
|
|
293 |
/** |
|
294 |
<p><b>void txWrite2(uint8_t b)</b></p> |
|
295 |
<p><b>Write a byte throught VCOM2</b></p> |
|
296 |
<p><b>Parameters : uint8_t b -> Byte to write</b></p> |
|
297 |
*/ |
|
298 |
void txWrite2(uint8_t b) //Virtual Port 2 |
|
299 |
{ |
|
300 |
USART1.TXDATAL = b; |
|
301 |
} |
|
302 |
|
|
303 |
|
|
304 |
/** |
|
305 |
<p><b>uint8_t rxRead2(void)</b></p> |
|
306 |
<p><b>Read a byte from VCOM2</b></p> |
|
307 |
<p><b>Return : uint8_t result -> Byte to read</b></p> |
|
308 |
*/ |
|
309 |
uint8_t rxRead2(void) //Read one byte from buffer |
|
310 |
{ |
|
311 |
uint8_t result = RX2._rxBuf[0]; //get byte in order (FIFO) |
|
312 |
|
|
313 |
for(uint8_t j = 0; j < 255; j++) //shift bytes |
|
314 |
{ |
|
315 |
RX2._rxBuf[j] = RX2._rxBuf[j+1]; |
|
316 |
} |
|
317 |
if(RX2.bytesAvailable > 0) |
|
318 |
RX2.bytesAvailable--; //remove 1 byte |
|
319 |
|
|
320 |
return result; |
|
321 |
} |
|
322 |
|
|
323 |
|
|
324 |
/** |
|
325 |
<p><b>uint16_t portAvailable2(void)</b></p> |
|
326 |
<p><b>Get number of bytes available into the VCOM2 PORT's buffer</b></p> |
|
327 |
<p><b>Return : uint16_t bytesAvailable -> Number of bytes</b></p> |
|
328 |
*/ |
|
329 |
uint16_t portAvailable2(void) |
|
330 |
{ |
|
331 |
return RX2.bytesAvailable; |
|
332 |
} |
|
333 |
|
|
334 |
|
|
335 |
|
|
336 |
|
|
337 |
ISR(USART1_RXC_vect) |
|
338 |
{ |
|
339 |
//while((USART0.RXDATAH & 0x80) == 0x80); |
|
340 |
RX2._rxReicv = USART1.RXDATAL; //read buffer |
|
341 |
RX2._rxBuf[RX2.bytesAvailable] = RX2._rxReicv; //Add one byte to the buffer |
|
342 |
RX2._rxReicv = 0x00; //clear value |
|
343 |
if(RX2.bytesAvailable < 255) //ensure not to overflow buffer size... |
|
344 |
RX2.bytesAvailable++; //a new byte is available into the buffer |
|
345 |
//PORTA.OUT ^= 0x3; //debug led |
|
346 |
} |
|
347 |
|
|
348 |
///////////////////////////////////////////////// |
|
349 |
//For Virtual port 3 (USART4) |
|
350 |
|
|
351 |
|
|
352 |
/** |
|
353 |
<p><b>void initPort3(uint32_t bauds)</b></p> |
|
354 |
<p><b>Init MASTER PORT</b></p> |
|
355 |
<p><b>Parameters : uint8_t bauds -> Set bauds speed</b></p> |
|
356 |
<p><b> bool enableDebug -> Enable debug leds</b></p> |
|
357 |
<p><b>Don't forget to call sei() function after called all initPortx() functions !</p></b> |
|
358 |
*/ |
|
359 |
void initPort3(uint32_t bauds, bool enableDebug) |
|
360 |
{ |
|
361 |
|
|
362 |
if(enableDebug) |
|
363 |
PORTE.DIR = USART4_PORT_PINS | USART4_DEBUG_LED; //Set TX/RX IO and RX/TX debug leds for USART0 |
|
364 |
else |
|
365 |
PORTE.DIR = USART4_PORT_PINS; //Set TX/RX IO |
|
366 |
|
|
367 |
|
|
368 |
|
|
369 |
USART4.BAUD = bauds; |
|
370 |
USART4.CTRLA = 0x80; //enable RX complete interrupt |
|
371 |
USART4.CTRLB = 0xD0; //Enable TX and RX sending |
|
372 |
} |
|
373 |
|
|
374 |
|
|
375 |
|
|
376 |
/** |
|
377 |
<p><b>void txWrite3(uint8_t b)</b></p> |
|
378 |
<p><b>Write a byte throught VCOM3</b></p> |
|
379 |
<p><b>Parameters : uint8_t b -> Byte to write</b></p> |
|
380 |
*/ |
|
381 |
void txWrite3(uint8_t b) //Write one byte |
|
382 |
{ |
|
383 |
USART4.TXDATAL = b; |
|
384 |
} |
|
385 |
|
|
386 |
/** |
|
387 |
<p><b>uint8_t rxRead3(void)</b></p> |
|
388 |
<p><b>Read a byte from VCOM3</b></p> |
|
389 |
<p><b>Return : uint8_t result -> Byte to read</b></p> |
|
390 |
*/ |
|
391 |
uint8_t rxRead3(void) //Read one byte from buffer |
|
392 |
{ |
|
393 |
uint8_t result = RX3._rxBuf[0]; //get byte in order (FIFO) |
|
394 |
|
|
395 |
for(uint8_t j = 0; j < 255; j++) //shift bytes |
|
396 |
{ |
|
397 |
RX3._rxBuf[j] = RX3._rxBuf[j+1]; |
|
398 |
} |
|
399 |
if(RX3.bytesAvailable > 0) |
|
400 |
RX3.bytesAvailable--; //remove 1 byte |
|
401 |
|
|
402 |
return result; |
|
403 |
} |
|
404 |
|
|
405 |
|
|
406 |
/** |
|
407 |
<p><b>uint16_t portAvailable3(void)</b></p> |
|
408 |
<p><b>Get number of bytes available into the VCOM3 PORT's buffer</b></p> |
|
409 |
<p><b>Return : uint16_t bytesAvailable -> Number of bytes</b></p> |
|
410 |
*/ |
|
411 |
uint16_t portAvailable3(void) |
|
412 |
{ |
|
413 |
return RX3.bytesAvailable; |
|
414 |
} |
|
415 |
|
|
416 |
|
|
417 |
|
|
418 |
ISR(USART4_RXC_vect) |
|
419 |
{ |
|
420 |
//while((USART0.RXDATAH & 0x80) == 0x80); |
|
421 |
RX3._rxReicv = USART4.RXDATAL; //read buffer |
|
422 |
RX3._rxBuf[RX3.bytesAvailable] = RX3._rxReicv; //Add one byte to the buffer |
|
423 |
RX3._rxReicv = 0x00; //clear value |
|
424 |
if(RX3.bytesAvailable < 255) //ensure not to overflow buffer size... |
|
425 |
RX3.bytesAvailable++; //a new byte is available into the buffer |
|
426 |
//PORTA.OUT ^= 0x3; //debug led |
|
427 |
} |
|
428 |
|
|
429 |
///////////////////////////////////////////////// |
|
430 |
//For Virtual port 4 (USART2) |
|
431 |
|
|
432 |
|
|
433 |
/** |
|
434 |
<p><b>void initPort4(uint32_t bauds)</b></p> |
|
435 |
<p><b>Init MASTER PORT</b></p> |
|
436 |
<p><b>Parameters : uint8_t bauds -> Set bauds speed</b></p> |
|
437 |
<p><b> bool enableDebug -> Enable debug leds</b></p> |
|
438 |
<p><b>Don't forget to call sei() function after called all initPortx() functions !</p></b> |
|
439 |
*/ |
|
440 |
void initPort4(uint32_t bauds, bool enableDebug) |
|
441 |
{ |
|
442 |
|
|
443 |
if(enableDebug) |
|
444 |
PORTF.DIR = USART2_PORT_PINS | USART2_DEBUG_LED; //Set TX/RX IO and RX/TX debug leds for USART0 |
|
445 |
else |
|
446 |
PORTF.DIR = USART2_PORT_PINS; //Set TX/RX IO |
|
447 |
|
|
448 |
|
|
449 |
USART2.BAUD = bauds; |
|
450 |
USART2.CTRLA = 0x80; //enable RX complete interrupt |
|
451 |
USART2.CTRLB = 0xD0; //Enable TX and RX sending |
Formats disponibles : Unified diff