# Zusatzfunktionen für Wählscheibentelefone
# - Tonwahl, Kurzwahl
# - Rufnummernanzeige
# - Telefonbuch (Nummer-Name-Zuordnung)
# - DTMF-Dekoder
DEVICE = attiny861
#DEVICE = atmega32u4
F_CPU = 16000000
F_ADC = (F_CPU/128/14)
WINDOWS = 1
#Compiler-Flags
CFLAGS = -mmcu=$(DEVICE) -Os -Wall -Wno-parentheses
CFLAGS += -DF_CPU=$(F_CPU) -DF_ADC=$(F_ADC) -DWINDOWS=$(WINDOWS)
PATH := c:\Programme\WinAVR\gcc530\bin\;$(PATH)
all: $(F_CPU).elf
# HEX-Dateien nur für avrdude
avr-objcopy -O ihex -j .text -j .data $< $(F_CPU).hex
avr-objcopy -O ihex -j .eeprom $< $(F_CPU).eep
avr-objdump -t -d $< > $(F_CPU).lst
avr-strip $<
c:\programme\winavr\bin\avr-size -C --mcu=$(DEVICE) $<
tables.S: tables.awk Makefile
gawk -v F_ADC=$(F_AFC) -v WINDOWS=$(WINDOWS) -f $< > $@
$(F_CPU).elf: tables.S dtmf.S ra.cpp clip_ac.cpp LCD_44780.cpp
avr-gcc $(CFLAGS) -o $@ $^
clean:
rm -f tables.S
ifeq ($(DEVICE),atmega32u4)
#Die preiswerte Platine „Pro Micro“ aus China
flash: $(F_CPU).hex
avrdude -p $(DEVICE) -c arduino -P com3 -e -U flash:w:$< -U eeprom:w:$(F_CPU).eep
else
program:
avrpp -ff $(F_CPU).elf
flash: $(F_CPU).elf
avrpp $<
endif
| Detected encoding: UTF-8 | 0
|