summaryrefslogtreecommitdiff
path: root/ac.bat
diff options
context:
space:
mode:
Diffstat (limited to 'ac.bat')
-rw-r--r--ac.bat25
1 files changed, 25 insertions, 0 deletions
diff --git a/ac.bat b/ac.bat
new file mode 100644
index 0000000..122be97
--- /dev/null
+++ b/ac.bat
@@ -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