summaryrefslogtreecommitdiff
path: root/adb_usb/Makefile
diff options
context:
space:
mode:
authortmk <nobody@nowhere>2011-02-21 23:05:28 +0900
committertmk <nobody@nowhere>2011-02-22 03:09:18 +0900
commitc958b2d19b0ec0dbc02f87dc4c9ccee933a54be5 (patch)
tree8d77a25de9b3d459c3a74c9c9c324e93367682d1 /adb_usb/Makefile
parentfb8d23c60c757d5d9c2270cb0123a53be2049a28 (diff)
fixed adb_usb to comply new API.
Diffstat (limited to 'adb_usb/Makefile')
-rw-r--r--adb_usb/Makefile52
1 files changed, 52 insertions, 0 deletions
diff --git a/adb_usb/Makefile b/adb_usb/Makefile
new file mode 100644
index 0000000000..61e43a72fd
--- /dev/null
+++ b/adb_usb/Makefile
@@ -0,0 +1,52 @@
+# Target file name (without extension).
+TARGET = adb_usb
+
+# Directory common source filess exist
+COMMON_DIR = ..
+
+# Directory keyboard dependent files exist
+TARGET_DIR = .
+
+# keyboard dependent files
+TARGET_SRC = main_pjrc.c \
+ keymap.c \
+ matrix.c \
+ led.c \
+ adb.c
+
+CONFIG_H = config.h
+
+
+# MCU name, you MUST set this to match the board you are using
+# type "make clean" after changing this, so all files will be rebuilt
+#MCU = at90usb162 # Teensy 1.0
+MCU = atmega32u4 # Teensy 2.0
+#MCU = at90usb646 # Teensy++ 1.0
+#MCU = at90usb1286 # Teensy++ 2.0
+
+
+# Processor frequency.
+# Normally the first thing your program should do is set the clock prescaler,
+# so your program will run at the correct speed. You should also set this
+# variable to same clock speed. The _delay_ms() macro uses this, and many
+# examples use this variable to calculate timings. Do not add a "UL" here.
+F_CPU = 16000000
+
+
+# Build Options
+# comment out to disable the options.
+#
+MOUSEKEY_ENABLE = yes # Mouse keys
+#PS2_MOUSE_ENABLE = yes # PS/2 mouse(TrackPoint) support
+USB_EXTRA_ENABLE = yes # Enhanced feature for Windows(Audio control and System control)
+#USB_NKRO_ENABLE = yes # USB Nkey Rollover
+
+
+
+#---------------- Programming Options --------------------------
+PROGRAM_CMD = teensy_loader_cli.exe -mmcu=$(MCU) -w -v $(TARGET).hex
+
+
+
+include $(COMMON_DIR)/Makefile.pjrc
+include $(COMMON_DIR)/Makefile.common