From e8c784a9502bbaa8d3c47b2fc60884311632d968 Mon Sep 17 00:00:00 2001 From: Max Christian Pohle Date: Thu, 25 May 2017 02:40:18 +0200 Subject: Simple counter (in seconds) --- Makefile | 17 +++++++++++++---- 1 file changed, 13 insertions(+), 4 deletions(-) (limited to 'Makefile') diff --git a/Makefile b/Makefile index e63d2c0..e81f5a1 100644 --- a/Makefile +++ b/Makefile @@ -1,8 +1,17 @@ -FLAGS=-Wall -I/usr/lib/gcc/avr/6.3.0/plugin/include/ -I/usr/avr/include -mmcu=attiny13 -O3 -DF_CPU=1200000 +FLAGS=-Wall -O5 -Werror +FLAGS+=-mmcu=attiny85 +FLAGS+=-D__AVR_ATtiny85__=1 +# FLAGS+=-DF_CPU=120000UL +# FLAGS+=-DF_CPU=960000UL +FLAGS+=-DF_CPU=800000UL +FLAGS+=-I inc/int/ +FLAGS+=-I/usr/lib/gcc/avr/6.3.0/plugin/include/ +FLAGS+=-I/usr/avr/include + +program: all + avrdude -V -B100 -p t85 -c avrisp2 -P usb -U flash:w:main.hex all: - avr-gcc $(FLAGS) -o main.elf main.c + avr-gcc $(FLAGS) -o main.elf main.c inc/int/dcf77.c avr-objcopy -j .text -j .data -O ihex main.elf main.hex -program: all - avrdude -B100 -p t85 -c avrisp2 -P usb -U flash:w:main.hex -- cgit v1.2.3