diff options
author | David Lamparter <equinox@diac24.net> | 2012-04-01 00:20:25 +0200 |
---|---|---|
committer | David Lamparter <equinox@diac24.net> | 2012-04-01 00:20:25 +0200 |
commit | 75a61c57fb0402f777bfa828dd71818a97ed54a4 (patch) | |
tree | daa218546b1b744a28cbed9c05e8e405af2caf38 /ac.bat | |
parent | 6061b632e87645e79c17b7de8a927836300afb4f (diff) |
original dcf77 C code
Diffstat (limited to 'ac.bat')
-rw-r--r-- | ac.bat | 25 |
1 files changed, 25 insertions, 0 deletions
@@ -0,0 +1,25 @@ +@echo off
+set platz=
+set platz1=
+
+:set mcu=90s2313
+set mcu=tiny26
+:set mcu=mega8
+set main=test
+
+set ac=c:\avr\winavr
+path %ac%\bin;%path%
+avr-gcc.exe -xc -Os -mmcu=at%mcu% -Wall -g -o main.out *.c >l
+if not exist main.out goto end
+cmd /c avr-objdump.exe -t -h -S main.out >%main%.lst
+cmd /c avr-objcopy.exe -O ihex main.out %main%.hex
+avr-size.exe -B main.out
+del main.out
+goto end
+
+::pause
+call pf.bat %main%
+::if errorlevel 1 goto end
+::pause
+::l -b19200 -i- -c1
+:end
|