X-Git-Url: https://git.cryptolib.org/?a=blobdiff_plain;f=avr-makefile.inc;h=4396b24800e543cd1f3bb696baa0567b3444ea93;hb=b246a2a0589f234db6247255555df98f4c281c41;hp=121f0293ec548714b9df78aed6ed273d94d6d72e;hpb=0542221a3e793e4455e84b271b07aa0959d5dfb3;p=avr-crypto-lib.git diff --git a/avr-makefile.inc b/avr-makefile.inc index 121f029..4396b24 100644 --- a/avr-makefile.inc +++ b/avr-makefile.inc @@ -1,12 +1,15 @@ MCU_TARGET = atmega644 +F_CPU = 20000000 OPTIMIZE = -Os # -Os DEBUG = -gdwarf-2 WARNING = -pedantic -Wall -Wstrict-prototypes PROGRAMMER = avr911 -DEFS = -D$(call uc, $(MCU_TARGET)) -FLASHCMD = avrdude -p $(MCU_TARGET) -P /dev/ttyUSB0 -c $(PROGRAMMER) -U flash:w:# no space at the end +PROG_PORT = /dev/ttyUSB0 +DEFS = -D$(call uc, $(MCU_TARGET)) -DF_CPU=$(F_CPU) +FLASHCMD = avrdude -p $(MCU_TARGET) -P $(PROG_PORT) -c $(PROGRAMMER) -U flash:w:# no space at the end #FLASHCMD = avrdude -p $(MCU_TARGET) -c usbasp -U flash:w:# no space at the end +RESETCMD = avrdude -p $(MCU_TARGET) -P $(PROG_PORT) -c $(PROGRAMMER) DEP_DIR = deps/ TEST_DIR = test/ BIN_DIR = bin/