diff options
author | Max Christian Pohle | 2017-05-25 02:40:18 +0200 |
---|---|---|
committer | Max Christian Pohle | 2017-05-25 02:40:18 +0200 |
commit | e8c784a9502bbaa8d3c47b2fc60884311632d968 (patch) | |
tree | 9ea1f06cd80f4c60765c4ef62708913629d54830 /Makefile | |
parent | ff7774def5479996e2acb77ddd942c036134453d (diff) | |
download | binwatch-mini-e8c784a9502bbaa8d3c47b2fc60884311632d968.tar.bz2 binwatch-mini-e8c784a9502bbaa8d3c47b2fc60884311632d968.zip |
Simple counter (in seconds)
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 17 |
1 files changed, 13 insertions, 4 deletions
@@ -1,8 +1,17 @@ | |||
1 | FLAGS=-Wall -I/usr/lib/gcc/avr/6.3.0/plugin/include/ -I/usr/avr/include -mmcu=attiny13 -O3 -DF_CPU=1200000 | 1 | FLAGS=-Wall -O5 -Werror |
2 | FLAGS+=-mmcu=attiny85 | ||
3 | FLAGS+=-D__AVR_ATtiny85__=1 | ||
4 | # FLAGS+=-DF_CPU=120000UL | ||
5 | # FLAGS+=-DF_CPU=960000UL | ||
6 | FLAGS+=-DF_CPU=800000UL | ||
7 | FLAGS+=-I inc/int/ | ||
8 | FLAGS+=-I/usr/lib/gcc/avr/6.3.0/plugin/include/ | ||
9 | FLAGS+=-I/usr/avr/include | ||
10 | |||
11 | program: all | ||
12 | avrdude -V -B100 -p t85 -c avrisp2 -P usb -U flash:w:main.hex | ||
2 | 13 | ||
3 | all: | 14 | all: |
4 | avr-gcc $(FLAGS) -o main.elf main.c | 15 | avr-gcc $(FLAGS) -o main.elf main.c inc/int/dcf77.c |
5 | avr-objcopy -j .text -j .data -O ihex main.elf main.hex | 16 | avr-objcopy -j .text -j .data -O ihex main.elf main.hex |
6 | 17 | ||
7 | program: all | ||
8 | avrdude -B100 -p t85 -c avrisp2 -P usb -U flash:w:main.hex | ||