aboutsummaryrefslogtreecommitdiff
path: root/hhkb/Makefile.vusb
diff options
context:
space:
mode:
Diffstat (limited to 'hhkb/Makefile.vusb')
-rw-r--r--hhkb/Makefile.vusb29
1 files changed, 17 insertions, 12 deletions
diff --git a/hhkb/Makefile.vusb b/hhkb/Makefile.vusb
index 77841b824..5bfc233df 100644
--- a/hhkb/Makefile.vusb
+++ b/hhkb/Makefile.vusb
@@ -13,10 +13,10 @@ COMMON_DIR = ..
13TARGET_DIR = . 13TARGET_DIR = .
14 14
15# keyboard dependent files 15# keyboard dependent files
16TARGET_SRC = main_vusb.c \ 16SRC = main.c \
17 keymap.c \ 17 keymap.c \
18 matrix.c \ 18 matrix.c \
19 led.c 19 led.c
20 20
21CONFIG_H = config_vusb.h 21CONFIG_H = config_vusb.h
22 22
@@ -28,7 +28,9 @@ OPT_DEFS = -DDEBUG_LEVEL=0
28 28
29# MCU name, you MUST set this to match the board you are using 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 30# type "make clean" after changing this, so all files will be rebuilt
31MCU = atmega168 31MCU = atmega168p
32# avrdude doesn't know atmega168p
33AVRDUDE_MCU = atmega168
32 34
33 35
34# Processor frequency. 36# Processor frequency.
@@ -36,15 +38,15 @@ MCU = atmega168
36# so your program will run at the correct speed. You should also set this 38# 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 39# 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. 40# examples use this variable to calculate timings. Do not add a "UL" here.
39F_CPU = 20000000 41F_CPU = 12000000
40 42
41 43
42# Build Options 44# Build Options
43# comment out to disable the options. 45# comment out to disable the options.
44# 46#
45MOUSEKEY_ENABLE = yes # Mouse keys 47MOUSEKEY_ENABLE = yes # Mouse keys
46USB_EXTRA_ENABLE = yes # Audio control and System control 48EXTRAKEY_ENABLE = yes # Audio control and System control
47#USB_NKRO_ENABLE = yes # USB Nkey Rollover 49#NKRO_ENABLE = yes # USB Nkey Rollover
48 50
49 51
50 52
@@ -70,8 +72,8 @@ AVRDUDE_WRITE_FLASH = -U flash:w:$(TARGET).hex
70# to submit bug reports. 72# to submit bug reports.
71#AVRDUDE_VERBOSE = -v -v 73#AVRDUDE_VERBOSE = -v -v
72 74
73#AVRDUDE_FLAGS = -p $(MCU) -P $(AVRDUDE_PORT) -c $(AVRDUDE_PROGRAMMER) 75#AVRDUDE_FLAGS = -p $(AVRDUDE_MCU) -P $(AVRDUDE_PORT) -c $(AVRDUDE_PROGRAMMER)
74AVRDUDE_FLAGS = -p $(MCU) -c $(AVRDUDE_PROGRAMMER) 76AVRDUDE_FLAGS = -p $(AVRDUDE_MCU) -c $(AVRDUDE_PROGRAMMER)
75AVRDUDE_FLAGS += $(AVRDUDE_NO_VERIFY) 77AVRDUDE_FLAGS += $(AVRDUDE_NO_VERIFY)
76AVRDUDE_FLAGS += $(AVRDUDE_VERBOSE) 78AVRDUDE_FLAGS += $(AVRDUDE_VERBOSE)
77AVRDUDE_FLAGS += $(AVRDUDE_ERASE_COUNTER) 79AVRDUDE_FLAGS += $(AVRDUDE_ERASE_COUNTER)
@@ -80,5 +82,8 @@ PROGRAM_CMD = $(AVRDUDE) $(AVRDUDE_FLAGS) $(AVRDUDE_WRITE_FLASH) $(AVRDUDE_WRITE
80 82
81 83
82 84
83include $(COMMON_DIR)/Makefile.vusb 85# Search Path
84include $(COMMON_DIR)/Makefile.common 86VPATH = $(TARGET_DIR)
87
88include $(COMMON_DIR)/vusb.mk
89include $(COMMON_DIR)/common.mk