summaryrefslogtreecommitdiff
path: root/megalogger/megalogger.cbp
blob: dc04552e0290212807627758f88165ee5160ee54 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<CodeBlocks_project_file>
	<FileVersion major="1" minor="6" />
	<Project>
		<Option title="MegaLogger" />
		<Option pch_mode="2" />
		<Option compiler="gcc" />
		<Build>
			<Target title="Arduino Mega 2560/ADK">
				<Option output="build/megalogger_${BOARD_ID}.elf" prefix_auto="1" extension_auto="0" />
				<Option object_output="build" />
				<Option type="1" />
				<Option compiler="avrgcc" />
				<Compiler>
					<Add option="-x c++" />
					<Add option="-mmcu=$(MCU)" />
					<Add option="-DF_CPU=16000000L" />
					<Add option="-D__AVR_ATmega2560__" />
					<Add option="-O2" />
					<Add directory="$(ARDUINO_DIR)/hardware/arduino/cores/arduino" />
					<Add directory="$(ARDUINO_DIR)/libraries" />
					<Add directory="$(ARDUINO_DIR)/hardware/arduino/variants/mega" />
				</Compiler>
				<Linker>
					<Add option="-mmcu=$(MCU)" />
					<Add option='&quot;$(PROJECT_DIR)${TARGET_OUTPUT_DIR}/lib_${BOARD_ID}_${MCU_CLOCK}.a&quot;' />
					<Add option='&quot;$(PROJECT_DIR)${TARGET_OUTPUT_DIR}/core_${BOARD_ID}_${MCU_CLOCK}.a&quot;' />
					<Add option="-s" />
				</Linker>
				<ExtraCommands>
					<Add before='$(TARGET_COMPILER_DIR)ArduinoUploader &quot;$(PROJECT_DIR).&quot; $(BOARD_ID) - $(MCU_CLOCK) 0 &quot;$(PROJECT_DIR)${TARGET_OUTPUT_DIR}/lib_${BOARD_ID}_${MCU_CLOCK}.a&quot; &quot;$(PROJECT_DIR)${TARGET_OUTPUT_DIR}/core_${BOARD_ID}_${MCU_CLOCK}.a&quot;' />
					<Add after='avr-objcopy -O ihex -R .eeprom -R .eesafe &quot;$(TARGET_OUTPUT_FILE)&quot; &quot;$(TARGET_OUTPUT_FILE).hex&quot;' />
					<Add after='avr-objcopy --no-change-warnings -j .eeprom --change-section-lma .eeprom=0 -O ihex &quot;$(TARGET_OUTPUT_FILE)&quot; &quot;$(TARGET_OUTPUT_FILE).eep.hex&quot;' />
					<Add after='avr-size --mcu=$(MCU) --format=avr &quot;$(TARGET_OUTPUT_FILE)&quot;' />
				</ExtraCommands>
				<Environment>
					<Variable name="BOARD" value="Arduino Mega 2560\ADK" />
					<Variable name="BOARD_ID" value="mega2560" />
					<Variable name="MCU" value="atmega2560" />
					<Variable name="MCU_CLOCK" value="16" />
					<Variable name="UPLOAD_BAUDRATE" value="57600" />
					<Variable name="UPLOAD_PORT" value="" />
				</Environment>
			</Target>
			<Target title="Arduino Mega 1280">
				<Option output="build/megalogger_${BOARD_ID}.elf" prefix_auto="1" extension_auto="0" />
				<Option object_output="build" />
				<Option type="1" />
				<Option compiler="avrgcc" />
				<Compiler>
					<Add option="-x c++" />
					<Add option="-mmcu=$(MCU)" />
					<Add option="-DF_CPU=16000000L" />
					<Add option="-D__AVR_ATmega1280__" />
					<Add option="-O2" />
					<Add directory="$(ARDUINO_DIR)/hardware/arduino/cores/arduino" />
					<Add directory="$(ARDUINO_DIR)/libraries" />
					<Add directory="$(ARDUINO_DIR)/hardware/arduino/variants/mega" />
				</Compiler>
				<Linker>
					<Add option="-mmcu=$(MCU)" />
					<Add option='&quot;$(PROJECT_DIR)${TARGET_OUTPUT_DIR}/lib_${BOARD_ID}_${MCU_CLOCK}.a&quot;' />
					<Add option='&quot;$(PROJECT_DIR)${TARGET_OUTPUT_DIR}/core_${BOARD_ID}_${MCU_CLOCK}.a&quot;' />
					<Add option="-s" />
				</Linker>
				<ExtraCommands>
					<Add before='$(TARGET_COMPILER_DIR)ArduinoUploader &quot;$(PROJECT_DIR).&quot; $(BOARD_ID) - $(MCU_CLOCK) 0 &quot;$(PROJECT_DIR)${TARGET_OUTPUT_DIR}/lib_${BOARD_ID}_${MCU_CLOCK}.a&quot; &quot;$(PROJECT_DIR)${TARGET_OUTPUT_DIR}/core_${BOARD_ID}_${MCU_CLOCK}.a&quot;' />
					<Add after='avr-objcopy -O ihex -R .eeprom -R .eesafe &quot;$(TARGET_OUTPUT_FILE)&quot; &quot;$(TARGET_OUTPUT_FILE).hex&quot;' />
					<Add after='avr-objcopy --no-change-warnings -j .eeprom --change-section-lma .eeprom=0 -O ihex &quot;$(TARGET_OUTPUT_FILE)&quot; &quot;$(TARGET_OUTPUT_FILE).eep.hex&quot;' />
					<Add after='avr-size --mcu=$(MCU) --format=avr &quot;$(TARGET_OUTPUT_FILE)&quot;' />
				</ExtraCommands>
				<Environment>
					<Variable name="BOARD" value="Arduino Mega 1280" />
					<Variable name="BOARD_ID" value="mega1280" />
					<Variable name="MCU" value="atmega1280" />
					<Variable name="MCU_CLOCK" value="16" />
					<Variable name="UPLOAD_BAUDRATE" value="57600" />
					<Variable name="UPLOAD_PORT" value="" />
				</Environment>
			</Target>
		</Build>
		<Compiler>
			<Add directory="." />
		</Compiler>
		<Unit filename="config.h" />
		<Unit filename="datalogger.h" />
		<Unit filename="images.h" />
		<Unit filename="megalogger.ino">
			<Option compile="1" />
			<Option link="1" />
		</Unit>
		<Extensions>
			<code_completion />
			<debugger />
			<envvars />
		</Extensions>
	</Project>
</CodeBlocks_project_file>