6 # Target file name (without extension).
9 # Directory common source filess exist
12 # Directory keyboard dependent files exist
15 # keyboard dependent files
21 CONFIG_H = config_vusb.h
24 # V-USB debug level: To use ps2_usart.c level must be 0
25 # ps2_usart.c requires USART to receive PS/2 signal.
26 OPT_DEFS = -DDEBUG_LEVEL=0
29 # MCU name, you MUST set this to match the board you are using
30 # type "make clean" after changing this, so all files will be rebuilt
32 # avrdude doesn't know atmega168p
36 # Processor frequency.
37 # Normally the first thing your program should do is set the clock prescaler,
38 # so your program will run at the correct speed. You should also set this
39 # variable to same clock speed. The _delay_ms() macro uses this, and many
40 # examples use this variable to calculate timings. Do not add a "UL" here.
45 # comment out to disable the options.
47 MOUSEKEY_ENABLE = yes # Mouse keys
48 EXTRAKEY_ENABLE = yes # Audio control and System control
49 #NKRO_ENABLE = yes # USB Nkey Rollover
53 #---------------- Programming Options --------------------------
55 # Type: avrdude -c ? to get a full listing.
56 AVRDUDE_PROGRAMMER = usbasp
58 AVRDUDE_WRITE_FLASH = -U flash:w:$(TARGET).hex
59 #AVRDUDE_WRITE_EEPROM = -U eeprom:w:$(TARGET).eep
61 # Uncomment the following if you want avrdude's erase cycle counter.
62 # Note that this counter needs to be initialized first using -Yn,
64 #AVRDUDE_ERASE_COUNTER = -y
66 # Uncomment the following if you do /not/ wish a verification to be
67 # performed after programming the device.
68 #AVRDUDE_NO_VERIFY = -V
70 # Increase verbosity level. Please use this when submitting bug
71 # reports about avrdude. See <http://savannah.nongnu.org/projects/avrdude>
72 # to submit bug reports.
73 #AVRDUDE_VERBOSE = -v -v
75 #AVRDUDE_FLAGS = -p $(AVRDUDE_MCU) -P $(AVRDUDE_PORT) -c $(AVRDUDE_PROGRAMMER)
76 AVRDUDE_FLAGS = -p $(AVRDUDE_MCU) -c $(AVRDUDE_PROGRAMMER)
77 AVRDUDE_FLAGS += $(AVRDUDE_NO_VERIFY)
78 AVRDUDE_FLAGS += $(AVRDUDE_VERBOSE)
79 AVRDUDE_FLAGS += $(AVRDUDE_ERASE_COUNTER)
81 PROGRAM_CMD = $(AVRDUDE) $(AVRDUDE_FLAGS) $(AVRDUDE_WRITE_FLASH) $(AVRDUDE_WRITE_EEPROM)
89 include $(TOP_DIR)/protocol/vusb.mk
90 include $(TOP_DIR)/common.mk
91 include $(TOP_DIR)/rules.mk
93 debug-on: EXTRAFLAGS += -DDEBUG