6 # Target file name (without extension).
9 # Directory common source filess exist
12 # Directory keyboard dependent files exist
15 # keyboard dependent files
22 CONFIG_H = config_vusb.h
25 # V-USB debug level: To use ps2_usart.c level must be 0
26 # ps2_usart.c requires USART to receive PS/2 signal.
27 OPT_DEFS = -DDEBUG_LEVEL=0
30 # MCU name, you MUST set this to match the board you are using
31 # type "make clean" after changing this, so all files will be rebuilt
32 #MCU = at90usb162 # Teensy 1.0
33 #MCU = atmega32u4 # Teensy 2.0
34 #MCU = at90usb646 # Teensy++ 1.0
35 #MCU = at90usb1286 # Teensy++ 2.0
39 # Processor frequency.
40 # Normally the first thing your program should do is set the clock prescaler,
41 # so your program will run at the correct speed. You should also set this
42 # variable to same clock speed. The _delay_ms() macro uses this, and many
43 # examples use this variable to calculate timings. Do not add a "UL" here.
48 # comment out to disable the options.
50 MOUSEKEY_ENABLE = yes # Mouse keys
51 EXTRAKEY_ENABLE = yes # Audio control and System control
52 #NKRO_ENABLE = yes # USB Nkey Rollover
53 NO_UART = yes # UART is unavailable
57 #---------------- Programming Options --------------------------
59 # Type: avrdude -c ? to get a full listing.
60 AVRDUDE_PROGRAMMER = usbasp
62 AVRDUDE_WRITE_FLASH = -U flash:w:$(TARGET).hex
63 #AVRDUDE_WRITE_EEPROM = -U eeprom:w:$(TARGET).eep
65 # Uncomment the following if you want avrdude's erase cycle counter.
66 # Note that this counter needs to be initialized first using -Yn,
68 #AVRDUDE_ERASE_COUNTER = -y
70 # Uncomment the following if you do /not/ wish a verification to be
71 # performed after programming the device.
72 #AVRDUDE_NO_VERIFY = -V
74 # Increase verbosity level. Please use this when submitting bug
75 # reports about avrdude. See <http://savannah.nongnu.org/projects/avrdude>
76 # to submit bug reports.
77 #AVRDUDE_VERBOSE = -v -v
79 #AVRDUDE_FLAGS = -p $(MCU) -P $(AVRDUDE_PORT) -c $(AVRDUDE_PROGRAMMER)
80 AVRDUDE_FLAGS = -p $(MCU) -c $(AVRDUDE_PROGRAMMER)
81 AVRDUDE_FLAGS += $(AVRDUDE_NO_VERIFY)
82 AVRDUDE_FLAGS += $(AVRDUDE_VERBOSE)
83 AVRDUDE_FLAGS += $(AVRDUDE_ERASE_COUNTER)
85 PROGRAM_CMD = $(AVRDUDE) $(AVRDUDE_FLAGS) $(AVRDUDE_WRITE_FLASH) $(AVRDUDE_WRITE_EEPROM)
89 include $(COMMON_DIR)/vusb.mk
90 include $(COMMON_DIR)/common.mk