AVR单片机的485通信参考程序
源代码在线查看: 485.mak
CC = iccavr
CFLAGS = -IC:\icc\include\ -e -DATMEGA -DATMega64 -l -g -Mavr_enhanced
ASFLAGS = $(CFLAGS) -Wa-g
LFLAGS = -LC:\icc\lib\ -g -ucrtatmega.o -bfunc_lit:0x8c.0x10000 -dram_end:0x10ff -bdata:0x100.0x10ff -dhwstk_size:16 -beeprom:1.2048 -fihx_coff -S2
FILES = main.o
485: $(FILES)
$(CC) -o 485 $(LFLAGS) @485.lk -lcatmega
main.o: C:/icc/include/iom64v.h C:/icc/include/macros.h D:\mojinpan\485\485_slave2/1602.h C:/icc/include/macros.h D:\mojinpan\485\485_slave2/delay.h D:\mojinpan\485\485_slave2/delay.h D:\mojinpan\485\485_slave2/usart.h\
D:\mojinpan\485\485_slave2/crc8.h
main.o: D:\mojinpan\485\485_slave2\main.c
$(CC) -c $(CFLAGS) D:\mojinpan\485\485_slave2\main.c