summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorJulien Viard de Galbert <julien@vdg.blogsite.org>2010-12-20 10:39:38 +0100
committerJulien Viard de Galbert <julien@vdg.blogsite.org>2010-12-20 10:43:17 +0100
commit8cf6fc2858747b3dea70fbce1d6e5756f4927446 (patch)
tree1fd245c274ba3246e74530af8a388e2c7091bf72 /Makefile
Initial commit
Usb gadget using usbtiny on atmega8 + schematics
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile23
1 files changed, 23 insertions, 0 deletions
diff --git a/Makefile b/Makefile
new file mode 100644
index 0000000..309e847
--- /dev/null
+++ b/Makefile
@@ -0,0 +1,23 @@
+# ======================================================================
+# Template Makefile
+#
+# Copyright 2006-2010 Dick Streefland
+#
+# This is free software, licensed under the terms of the GNU General
+# Public License as published by the Free Software Foundation.
+# ======================================================================
+
+#link the usbtiny directory here
+USBTINY = usbtiny
+TARGET_ARCH = -mmcu=atmega8
+OBJECTS = main.o
+FLASH_CMD = avrdude -c usbtiny -pm8 -U flash:w:main.hex
+#xtal
+#FUSES_CMD = avrdude -c usbtiny -pm8 -U hfuse:w:0xd9:m -U lfuse:w:0xef:m
+#ext clk
+FUSES_CMD = avrdude -c usbtiny -pm8 -U hfuse:w:0xd9:m -U lfuse:w:0xe0:m
+STACK = 32
+FLASH = 2048
+SRAM = 128
+
+include $(USBTINY)/common.mk