aboutsummaryrefslogtreecommitdiff
path: root/amforth-6.5/appl/eval-pollin/p32-16.xml
blob: 59444f310cf7e291d00f8ceef541201357e9a483 (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
<project name="pollins-32-16" basedir="." default="Help">

    <target name="p32-16.asm">
        <copy tofile="p32-16.asm" file="pollin.asm" overwrite="true">
          <filterset>
            <filter token="F_CPU" value="16000000"/>
            <filter token="USART" value=""/>
          </filterset>
        </copy>
    </target>
    
    <target name="p32-16.hex" depends="p32-16.asm" description="Hexfiles for p32-16">
        <avrasm2 projectname="p32-16" mcu="atmega32"/>
        <delete file="p32-16.asm"/>
    </target>

    <target name="p32-16" depends="p32-16.hex" description="Atmega32 @ 16 MHz">
	        <echo>Uploading Hexfiles for p32-16</echo>
		<avrdude 
		    type="stk200"
		    mcu="atmega32"
		    flashfile="p32-16.hex"
		    eepromfile="p32-16.eep.hex"
		/>
    </target>
    <target name="p32-16.back" description="Atmega32 @ 16 MHz">
        <echo>Download Hexfiles from p32-16</echo>
		<avrdude-back 
		    type="stk200"
		    mcu="atmega32"
		    flashfile="p32-16.hex"
		    eepromfile="p32-16.eep.hex"
		/>
    </target>
    <target name="p32-16.fuses" description="Set fuses for P32-16">
	<echo>Writing fuses</echo>
	<avrdude-2fuses
		    type="stk200"
		    mcu="atmega32"
		    hfuse="0x99"
		    lfuse="0xff"
	/>
    </target>

</project>