aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authortmk <nobody@nowhere>2012-10-17 14:25:08 +0900
committertmk <nobody@nowhere>2012-10-17 15:55:38 +0900
commit8570c25379e168874fb4cdc7ee0590829a0f0d2c (patch)
tree8633b65fffc14d763cd630e95ecbbe38162f64d6
parentbbff8ae1c1e78f719aaec47b844c1511cfdcb774 (diff)
downloadqmk_firmware-8570c25379e168874fb4cdc7ee0590829a0f0d2c.tar.gz
qmk_firmware-8570c25379e168874fb4cdc7ee0590829a0f0d2c.zip
Fix HHKB iWRAP build
-rw-r--r--keyboard/hhkb/Makefile.iwrap11
-rw-r--r--keyboard/hhkb/config_iwrap.h2
-rw-r--r--protocol/iwrap.mk10
3 files changed, 13 insertions, 10 deletions
diff --git a/keyboard/hhkb/Makefile.iwrap b/keyboard/hhkb/Makefile.iwrap
index ef7ad2eac..f87df0d2b 100644
--- a/keyboard/hhkb/Makefile.iwrap
+++ b/keyboard/hhkb/Makefile.iwrap
@@ -13,7 +13,7 @@ TOP_DIR = ../..
13TARGET_DIR = . 13TARGET_DIR = .
14 14
15# keyboard dependent files 15# keyboard dependent files
16SRC = main.c \ 16SRC = \
17 keymap.c \ 17 keymap.c \
18 matrix.c \ 18 matrix.c \
19 led.c 19 led.c
@@ -28,9 +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 = atmega168p 31MCU = atmega328p
32# avrdude doesn't know atmega168p 32# avrdude doesn't know atmega168p
33AVRDUDE_MCU = atmega168 33AVRDUDE_MCU = $(MCU)
34 34
35 35
36# Processor frequency. 36# Processor frequency.
@@ -84,10 +84,11 @@ PROGRAM_CMD = $(AVRDUDE) $(AVRDUDE_FLAGS) $(AVRDUDE_WRITE_FLASH) $(AVRDUDE_WRITE
84 84
85# Search Path 85# Search Path
86VPATH = $(TARGET_DIR) 86VPATH = $(TARGET_DIR)
87VPATH += $(TOP_DIR)
87 88
88include $(TOP_DIR)/protocol/iwrap.mk 89#include $(TOP_DIR)/protocol/iwrap.mk
89# To be swatchable btween Bluetooth and USB. Comment out if you don't need USB. 90# To be swatchable btween Bluetooth and USB. Comment out if you don't need USB.
90include $(TOP_DIR)/protocol/vusb.mk 91include $(TOP_DIR)/protocol/vusb.mk
91include $(TOP_DIR)/protocol.mk 92#include $(TOP_DIR)/protocol.mk
92include $(TOP_DIR)/common.mk 93include $(TOP_DIR)/common.mk
93include $(TOP_DIR)/rules.mk 94include $(TOP_DIR)/rules.mk
diff --git a/keyboard/hhkb/config_iwrap.h b/keyboard/hhkb/config_iwrap.h
index 80ab64398..734d66977 100644
--- a/keyboard/hhkb/config_iwrap.h
+++ b/keyboard/hhkb/config_iwrap.h
@@ -33,7 +33,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
33 33
34 34
35/* key combination for command */ 35/* key combination for command */
36#define IS_COMMAND() (keyboard_report->mods == (MOD_BIT(KB_LSHIFT) | MOD_BIT(KB_RSHIFT))) 36#define IS_COMMAND() (keyboard_report->mods == (MOD_BIT(KC_LSHIFT) | MOD_BIT(KC_RSHIFT)))
37 37
38/* mouse keys */ 38/* mouse keys */
39#ifdef MOUSEKEY_ENABLE 39#ifdef MOUSEKEY_ENABLE
diff --git a/protocol/iwrap.mk b/protocol/iwrap.mk
index d9906fd1b..9c83075a4 100644
--- a/protocol/iwrap.mk
+++ b/protocol/iwrap.mk
@@ -1,9 +1,11 @@
1IWRAP_DIR = protocol/iwrap
2
1OPT_DEFS += -DHOST_IWRAP 3OPT_DEFS += -DHOST_IWRAP
2 4
3SRC += iwrap.c \ 5SRC += $(IWRAP_DIR)/iwrap.c \
4 suart.S \ 6 $(IWRAP_DIR)/suart.S \
5 sendchar_uart.c \ 7 $(IWRAP_DIR)/sendchar_uart.c \
6 uart.c 8 $(IWRAP_DIR)/uart.c
7 9
8 10
9# Search Path 11# Search Path