aboutsummaryrefslogtreecommitdiff
path: root/amforth-6.5/appl/arduino/build.xml
blob: 7affe8e5051412672d8cca0d542b32eec5404a81 (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
<!-- make multiple targets with antelope -->
<project name="ForthDuino" basedir="." default="Help">
        <import file="../avr-build.xml"/>

	<target name="uno.hex" description="Hexfiles for Arduino UNO (Atmega 328P) www.arduino.cc">
		<avrasm2 projectname="uno" mcu="atmega328p"/>
	</target>

	<target name="uno" depends="uno.hex" description="Arduino UNO Board www.arduino.cc">
	        <echo>Uploading Hexfiles to Arduino UNO</echo>
		<avrdude 
		    type="avrisp2"
		    mcu="m328p"
		    flashfile="uno.hex"
		    eepromfile="uno.eep.hex"
		/>
	</target>
        <target name="uno.fuses" description="Set fuses for UNO">
	<echo>Writing fuses</echo>
	<avrdude-3fuses
		    type="avrisp2"
		    mcu="m328p"
		    efuse="0x05"
		    hfuse="0xd9"
		    lfuse="0xff"
	/>
    </target>

	<target name="leonardo.hex" description="Hexfiles for Arduino Leonardo (Atmega 32U4) www.arduino.cc">
		<avrasm2 projectname="leonardo" mcu="atmega32u4"/>
	</target>

	<target name="leonardo" depends="leonardo.hex" description="Arduino Leonardo Board www.arduino.cc">
	        <echo>Uploading Hexfiles to Arduino Leonardo</echo>
		<avrdude 
		    type="avrisp2"
		    mcu="m32u4"
		    flashfile="leonardo.hex"
		    eepromfile="leonardo.eep.hex"
		/>
	</target>
        <target name="leonardo.fuses" description="Set fuses for LEONARDO">
	<echo>Writing fuses</echo>
	<avrdude-3fuses
		    type="avrisp2"
		    mcu="m32u4"
		    efuse="0xc7"
		    hfuse="0x99"
		    lfuse="0xcf"
	/>
    </target>

	<target name="mega128.hex" description="Hexfiles for Arduino Mega Board (Atmega1280) www.arduino.cc">
		<avrasm2 projectname="mega128" mcu="atmega1280"/>
	</target>

	<target name="mega128" depends="mega128.hex" description="Arduino Mega Board www.arduino.cc">
	        <echo>Uploading Hexfiles to Arduino mega128</echo>
		<avrdude 
		    type="avrisp2"
		    mcu="m1280"
		    flashfile="mega128.hex"
		    eepromfile="mega128.eep.hex"
		/>
	</target>

	<target name="duemilanove.hex" description="Hexfiles for Arduino Duemilanove Board (Atmega 328P) www.arduino.cc">
		<avrasm2 projectname="duemilanove" mcu="atmega328p"/>
	</target>

	<target name="duemilanove" depends="duemilanove.hex" description="Arduino Duemilanove Board www.arduino.cc">
	        <echo>Uploading Hexfiles to Arduino Duemilanove</echo>
		<avrdude 
		    type="stk200"
		    mcu="m328p"
		    flashfile="duemilanove.hex"
		    eepromfile="duemilanove.eep.hex"
		/>
	</target>
	<target name="diecimila.hex" description="Hexfiles for Arduino Diecimila Board (Atmega168) www.arduino.cc">
		<avrasm2 projectname="diecimila" mcu="atmega168"/>
	</target>

	<target name="diecimila" depends="diecimila.hex" description="Arduino Diecimila Board www.arduino.cc">
	        <echo>Uploading Hexfiles to Arduino Diecimila</echo>
		<avrdude 
		    type="avrisp2"
		    mcu="m168"
		    flashfile="diecimila.hex"
		    eepromfile="diecimila.eep.hex"
		/>
	</target>

    <target name="compile" depends="uno.hex, mega128.hex, duemilanove.hex, leonardo.hex"/>
</project>