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_iwrap.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
34 # Processor frequency.
35 # Normally the first thing your program should do is set the clock prescaler,
36 # so your program will run at the correct speed. You should also set this
37 # variable to same clock speed. The _delay_ms() macro uses this, and many
38 # examples use this variable to calculate timings. Do not add a "UL" here.
42 # Boot Section Size in *bytes*
44 # Teensy++ halfKay 1024
45 # Atmel DFU loader 4096
46 # LUFA bootloader 4096
48 OPT_DEFS += -DBOOTLOADER_SIZE=2048
52 # comment out to disable the options.
54 BOOTMAGIC_ENABLE = yes # Virtual DIP switch configuration
55 MOUSEKEY_ENABLE = yes # Mouse keys
56 EXTRAKEY_ENABLE = yes # Audio control and System control
57 CONSOLE_ENABLE = yes # Console for debug
58 COMMAND_ENABLE = yes # Commands for debug and configuration
59 #NKRO_ENABLE = yes # USB Nkey Rollover
63 #---------------- Programming Options --------------------------
65 # Type: avrdude -c ? to get a full listing.
66 AVRDUDE_PROGRAMMER = usbasp
68 AVRDUDE_WRITE_FLASH = -U flash:w:$(TARGET).hex
69 #AVRDUDE_WRITE_EEPROM = -U eeprom:w:$(TARGET).eep
71 # Uncomment the following if you want avrdude's erase cycle counter.
72 # Note that this counter needs to be initialized first using -Yn,
74 #AVRDUDE_ERASE_COUNTER = -y
76 # Uncomment the following if you do /not/ wish a verification to be
77 # performed after programming the device.
78 #AVRDUDE_NO_VERIFY = -V
80 # Increase verbosity level. Please use this when submitting bug
81 # reports about avrdude. See <http://savannah.nongnu.org/projects/avrdude>
82 # to submit bug reports.
83 #AVRDUDE_VERBOSE = -v -v
85 #AVRDUDE_FLAGS = -p $(MCU) -P $(AVRDUDE_PORT) -c $(AVRDUDE_PROGRAMMER)
86 AVRDUDE_FLAGS = -p $(MCU) -c $(AVRDUDE_PROGRAMMER)
87 AVRDUDE_FLAGS += $(AVRDUDE_NO_VERIFY)
88 AVRDUDE_FLAGS += $(AVRDUDE_VERBOSE)
89 AVRDUDE_FLAGS += $(AVRDUDE_ERASE_COUNTER)
91 PROGRAM_CMD = $(AVRDUDE) $(AVRDUDE_FLAGS) $(AVRDUDE_WRITE_FLASH) $(AVRDUDE_WRITE_EEPROM)
96 VPATH += $(TARGET_DIR)
99 include $(TOP_DIR)/protocol/iwrap.mk
100 # TODO: to be selectable: V-USB, LUFA or PJRC
101 #include $(TOP_DIR)/protocol/vusb.mk
102 include $(TOP_DIR)/common.mk
103 include $(TOP_DIR)/rules.mk