aboutsummaryrefslogtreecommitdiff
path: root/amforth-6.5/appl/arduino/build.xml
diff options
context:
space:
mode:
authorDimitri Sokolyuk <demon@dim13.org>2017-08-19 12:15:28 +0200
committerDimitri Sokolyuk <demon@dim13.org>2017-08-19 12:15:28 +0200
commit67d25d837ac55f28a366c0a3b262e439a6e75fc3 (patch)
treedf7715c7724c5935ab87c807f3b8b4ef529315e3 /amforth-6.5/appl/arduino/build.xml
parente0d6784e89dba33226c0edb815bb974486fa7c48 (diff)
Add AmForth
Diffstat (limited to 'amforth-6.5/appl/arduino/build.xml')
-rw-r--r--amforth-6.5/appl/arduino/build.xml95
1 files changed, 95 insertions, 0 deletions
diff --git a/amforth-6.5/appl/arduino/build.xml b/amforth-6.5/appl/arduino/build.xml
new file mode 100644
index 0000000..7affe8e
--- /dev/null
+++ b/amforth-6.5/appl/arduino/build.xml
@@ -0,0 +1,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>