summaryrefslogtreecommitdiff
path: root/ac.bat
blob: 122be9740d5806b16885bce94357d8b8dac293de (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
@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