diff options
| author | Yuval Adam <yuv.adm@gmail.com> | 2014-07-28 22:55:18 +0300 |
|---|---|---|
| committer | Yuval Adam <yuv.adm@gmail.com> | 2014-07-28 22:55:18 +0300 |
| commit | a0e3f0373ddea97beeb64270db3d5dd91e1bbc0c (patch) | |
| tree | a152dabd49ffb8b4ae99b2ea821d5c050542dbd4 /Makefile | |
Initial code
Diffstat (limited to 'Makefile')
| -rw-r--r-- | Makefile | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..8df710b --- /dev/null +++ b/Makefile @@ -0,0 +1,9 @@ + +default: + # compile for attiny86 with warnings, optimizations, and 1 MHz clock frequency + avr-gcc -Wall -Os -DF_CPU=1000000 -mmcu=attiny85 -o hello.o hello.c + avr-objcopy -j .text -j .data -O ihex hello.o hello.hex + avrdude -c usbasp -p t85 -U flash:w:hello.hex:i + +clean: /dev/null + rm -f hello.o hello.hex |
