]> git.gir.st - tmk_keyboard.git/blob - keyboard/hhkb/Makefile.iwrap
Delete MOUSEKEY_DELAY_TIME in config.h
[tmk_keyboard.git] / keyboard / hhkb / Makefile.iwrap
1 #
2 # Makefile for iWRAP
3 #
4
5
6 # Target file name (without extension).
7 TARGET = hhkb_iwrap
8
9 # Directory common source filess exist
10 TOP_DIR = ../..
11
12 # Directory keyboard dependent files exist
13 TARGET_DIR = .
14
15 # keyboard dependent files
16 SRC = \
17 keymap.c \
18 matrix.c \
19 led.c
20
21 CONFIG_H = config_iwrap.h
22
23
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
27
28
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
31 MCU = atmega328p
32
33
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.
39 F_CPU = 12000000
40
41
42 # Boot Section Size in *bytes*
43 # Teensy halfKay 512
44 # Teensy++ halfKay 1024
45 # Atmel DFU loader 4096
46 # LUFA bootloader 4096
47 # USBaspLoader 2048
48 OPT_DEFS += -DBOOTLOADER_SIZE=2048
49
50
51 # Build Options
52 # comment out to disable the options.
53 #
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
60
61
62
63 #---------------- Programming Options --------------------------
64 AVRDUDE = avrdude
65 # Type: avrdude -c ? to get a full listing.
66 AVRDUDE_PROGRAMMER = usbasp
67 AVRDUDE_PORT =
68 AVRDUDE_WRITE_FLASH = -U flash:w:$(TARGET).hex
69 #AVRDUDE_WRITE_EEPROM = -U eeprom:w:$(TARGET).eep
70
71 # Uncomment the following if you want avrdude's erase cycle counter.
72 # Note that this counter needs to be initialized first using -Yn,
73 # see avrdude manual.
74 #AVRDUDE_ERASE_COUNTER = -y
75
76 # Uncomment the following if you do /not/ wish a verification to be
77 # performed after programming the device.
78 #AVRDUDE_NO_VERIFY = -V
79
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
84
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)
90
91 PROGRAM_CMD = $(AVRDUDE) $(AVRDUDE_FLAGS) $(AVRDUDE_WRITE_FLASH) $(AVRDUDE_WRITE_EEPROM)
92
93
94
95 # Search Path
96 VPATH += $(TARGET_DIR)
97 VPATH += $(TOP_DIR)
98
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
Imprint / Impressum