]> git.gir.st - tmk_keyboard.git/blob - keyboard/hhkb/Makefile.vusb
Documentation: small mistake
[tmk_keyboard.git] / keyboard / hhkb / Makefile.vusb
1 #
2 # Makefile for V-USB
3 #
4
5
6 # Target file name (without extension).
7 TARGET = hhkb_vusb
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_vusb.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 # avrdude doesn't know atmega168p
33 AVRDUDE_MCU = $(MCU)
34
35
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.
41 F_CPU = 12000000
42
43
44 # Build Options
45 # comment out to disable the options.
46 #
47 BOOTMAGIC_ENABLE = yes # Virtual DIP switch configuration
48 MOUSEKEY_ENABLE = yes # Mouse keys
49 EXTRAKEY_ENABLE = yes # Audio control and System control
50 CONSOLE_ENABLE = yes # Console for debug
51 COMMAND_ENABLE = yes # Commands for debug and configuration
52 #NKRO_ENABLE = yes # USB Nkey Rollover
53
54
55
56 #---------------- Programming Options --------------------------
57 AVRDUDE = avrdude
58 # Type: avrdude -c ? to get a full listing.
59 AVRDUDE_PROGRAMMER = usbasp
60 AVRDUDE_PORT =
61 AVRDUDE_WRITE_FLASH = -U flash:w:$(TARGET).hex
62 #AVRDUDE_WRITE_EEPROM = -U eeprom:w:$(TARGET).eep
63
64 # Uncomment the following if you want avrdude's erase cycle counter.
65 # Note that this counter needs to be initialized first using -Yn,
66 # see avrdude manual.
67 #AVRDUDE_ERASE_COUNTER = -y
68
69 # Uncomment the following if you do /not/ wish a verification to be
70 # performed after programming the device.
71 #AVRDUDE_NO_VERIFY = -V
72
73 # Increase verbosity level. Please use this when submitting bug
74 # reports about avrdude. See <http://savannah.nongnu.org/projects/avrdude>
75 # to submit bug reports.
76 #AVRDUDE_VERBOSE = -v -v
77
78 #AVRDUDE_FLAGS = -p $(AVRDUDE_MCU) -P $(AVRDUDE_PORT) -c $(AVRDUDE_PROGRAMMER)
79 AVRDUDE_FLAGS = -p $(AVRDUDE_MCU) -c $(AVRDUDE_PROGRAMMER)
80 AVRDUDE_FLAGS += $(AVRDUDE_NO_VERIFY)
81 AVRDUDE_FLAGS += $(AVRDUDE_VERBOSE)
82 AVRDUDE_FLAGS += $(AVRDUDE_ERASE_COUNTER)
83
84 PROGRAM_CMD = $(AVRDUDE) $(AVRDUDE_FLAGS) $(AVRDUDE_WRITE_FLASH) $(AVRDUDE_WRITE_EEPROM)
85
86
87
88 # Search Path
89 VPATH += $(TARGET_DIR)
90 VPATH += $(TOP_DIR)
91
92 include $(TOP_DIR)/protocol/vusb.mk
93 include $(TOP_DIR)/common.mk
94 include $(TOP_DIR)/rules.mk
95
96 debug-on: EXTRAFLAGS += -DDEBUG
97 debug-on: all
Imprint / Impressum