blob: e81f5a1dd03cba01c5385ec20510a6e760544ac8 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
|
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 inc/int/dcf77.c
avr-objcopy -j .text -j .data -O ihex main.elf main.hex
|