diff options
author | Kjetil Orbekk <kjetil.orbekk@gmail.com> | 2016-02-06 20:28:41 -0500 |
---|---|---|
committer | Kjetil Orbekk <kjetil.orbekk@gmail.com> | 2016-02-06 20:28:41 -0500 |
commit | 8781ac591ef24b00a154d9bc29ee7f63243dc6e7 (patch) | |
tree | 0bf714a17d46ceb76037a98b0fc09202e45c3c1e /blink-t84/Makefile | |
parent | 5d2fb1c30ad558e5deac368dd05531a31709cda9 (diff) |
Add RGB PWM code for attiny84.
Diffstat (limited to 'blink-t84/Makefile')
-rw-r--r-- | blink-t84/Makefile | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/blink-t84/Makefile b/blink-t84/Makefile new file mode 100644 index 0000000..bba6a40 --- /dev/null +++ b/blink-t84/Makefile @@ -0,0 +1,16 @@ +PROJECT=blink +SOURCES=$(PROJECT).c +MMCU=attiny84 +F_CPU = 1000000 + +CFLAGS=-mmcu=$(MMCU) -Wall -Os -DF_CPU=$(F_CPU) + +$(PROJECT).hex: $(PROJECT).out + avr-objcopy -O ihex $(PROJECT).out $(PROJECT).c.hex;\ + avr-size --mcu=$(MMCU) --format=avr $(PROJECT).out + +$(PROJECT).out: $(SOURCES) + avr-gcc $(CFLAGS) -I./ -o $(PROJECT).out $(SOURCES) + +program: $(PROJECT).hex + avrdude -p $(MMCU) -c avrisp -P /dev/ttyUSB0 -b 19200 -U flash:w:$(PROJECT).c.hex |