]> git.donarmstrong.com Git - tmk_firmware.git/commitdiff
Fix HHKB iWRAP build
authortmk <nobody@nowhere>
Wed, 17 Oct 2012 05:25:08 +0000 (14:25 +0900)
committertmk <nobody@nowhere>
Wed, 17 Oct 2012 06:55:38 +0000 (15:55 +0900)
keyboard/hhkb/Makefile.iwrap
keyboard/hhkb/config_iwrap.h
protocol/iwrap.mk

index ef7ad2eac2a7cf34212a266e4768440b68996697..f87df0d2bbaea56e3bb67dfd0cb82359d1009682 100644 (file)
@@ -13,7 +13,7 @@ TOP_DIR = ../..
 TARGET_DIR = .
 
 # keyboard dependent files
-SRC =  main.c \
+SRC =  \
        keymap.c \
        matrix.c \
        led.c
@@ -28,9 +28,9 @@ OPT_DEFS = -DDEBUG_LEVEL=0
 
 # MCU name, you MUST set this to match the board you are using
 # type "make clean" after changing this, so all files will be rebuilt
-MCU = atmega168p
+MCU = atmega328p
 # avrdude doesn't know atmega168p
-AVRDUDE_MCU = atmega168
+AVRDUDE_MCU = $(MCU)
 
 
 # Processor frequency.
@@ -84,10 +84,11 @@ PROGRAM_CMD = $(AVRDUDE) $(AVRDUDE_FLAGS) $(AVRDUDE_WRITE_FLASH) $(AVRDUDE_WRITE
 
 # Search Path
 VPATH = $(TARGET_DIR)
+VPATH += $(TOP_DIR)
 
-include $(TOP_DIR)/protocol/iwrap.mk
+#include $(TOP_DIR)/protocol/iwrap.mk
 # To be swatchable btween Bluetooth and USB. Comment out if you don't need USB.
 include $(TOP_DIR)/protocol/vusb.mk
-include $(TOP_DIR)/protocol.mk
+#include $(TOP_DIR)/protocol.mk
 include $(TOP_DIR)/common.mk
 include $(TOP_DIR)/rules.mk
index 80ab64398bf54f9c0ec3f6b05f8a3ee2fe5b7cb6..734d669774dc38d4100472e6af11a2380603c33d 100644 (file)
@@ -33,7 +33,7 @@ along with this program.  If not, see <http://www.gnu.org/licenses/>.
 
 
 /* key combination for command */
-#define IS_COMMAND() (keyboard_report->mods == (MOD_BIT(KB_LSHIFT) | MOD_BIT(KB_RSHIFT))) 
+#define IS_COMMAND() (keyboard_report->mods == (MOD_BIT(KC_LSHIFT) | MOD_BIT(KC_RSHIFT))) 
 
 /* mouse keys */
 #ifdef MOUSEKEY_ENABLE
index d9906fd1b4724b270c8462a832fd35a32ed8f051..9c83075a4ac0c4d3e9174ccef4d1491fb49a8e4d 100644 (file)
@@ -1,9 +1,11 @@
+IWRAP_DIR = protocol/iwrap
+
 OPT_DEFS += -DHOST_IWRAP
 
-SRC += iwrap.c \
-       suart.S \
-       sendchar_uart.c \
-       uart.c
+SRC += $(IWRAP_DIR)/iwrap.c \
+       $(IWRAP_DIR)/suart.S \
+       $(IWRAP_DIR)/sendchar_uart.c \
+       $(IWRAP_DIR)/uart.c
 
 
 # Search Path