From 09bd1aef12e42b44f90b8275ae95b578294957c0 Mon Sep 17 00:00:00 2001 From: tmk Date: Mon, 11 Mar 2013 00:14:58 +0900 Subject: Rename HOST_* to PROTOCOL_* in protocol/*.mk --- protocol/iwrap.mk | 2 +- protocol/iwrap/main.c | 14 +++++++------- protocol/pjrc.mk | 3 --- protocol/vusb.mk | 2 +- 4 files changed, 9 insertions(+), 12 deletions(-) (limited to 'protocol') diff --git a/protocol/iwrap.mk b/protocol/iwrap.mk index 9c83075a4a..96aa4140ca 100644 --- a/protocol/iwrap.mk +++ b/protocol/iwrap.mk @@ -1,6 +1,6 @@ IWRAP_DIR = protocol/iwrap -OPT_DEFS += -DHOST_IWRAP +OPT_DEFS += -DPROTOCOL_IWRAP SRC += $(IWRAP_DIR)/iwrap.c \ $(IWRAP_DIR)/suart.S \ diff --git a/protocol/iwrap/main.c b/protocol/iwrap/main.c index 05a67337fd..ac83280f13 100644 --- a/protocol/iwrap/main.c +++ b/protocol/iwrap/main.c @@ -26,7 +26,7 @@ along with this program. If not, see . #include "matrix.h" #include "host.h" #include "iwrap.h" -#ifdef HOST_VUSB +#ifdef PROTOCOL_VUSB # include "vusb.h" # include "usbdrv.h" #endif @@ -78,7 +78,7 @@ static void pullup_pins(void) */ -#ifdef HOST_VUSB +#ifdef PROTOCOL_VUSB static void disable_vusb(void) { // disable interrupt & disconnect to prevent host from enumerating @@ -131,7 +131,7 @@ int main(void) //pullup_pins(); //set_prr(); -#ifdef HOST_VUSB +#ifdef PROTOCOL_VUSB disable_vusb(); #endif uart_init(115200); @@ -159,12 +159,12 @@ int main(void) last_timer = timer_read(); while (true) { -#ifdef HOST_VUSB +#ifdef PROTOCOL_VUSB if (host_get_driver() == vusb_driver()) usbPoll(); #endif keyboard_task(); -#ifdef HOST_VUSB +#ifdef PROTOCOL_VUSB if (host_get_driver() == vusb_driver()) vusb_transfer_keyboard(); #endif @@ -258,7 +258,7 @@ static uint8_t console_command(uint8_t c) print("r: reset. software reset by watchdog\n"); print("i: insomniac. prevent KB from sleeping\n"); print("c: iwrap_call. CALL for BT connection.\n"); -#ifdef HOST_VUSB +#ifdef PROTOCOL_VUSB print("u: USB mode. switch to USB.\n"); print("w: BT mode. switch to Bluetooth.\n"); #endif @@ -281,7 +281,7 @@ static uint8_t console_command(uint8_t c) print("iwrap_call()\n"); iwrap_call(); return 1; -#ifdef HOST_VUSB +#ifdef PROTOCOL_VUSB case 'u': print("USB mode\n"); init_vusb(); diff --git a/protocol/pjrc.mk b/protocol/pjrc.mk index f5693ba99d..27f908b1c2 100644 --- a/protocol/pjrc.mk +++ b/protocol/pjrc.mk @@ -19,7 +19,4 @@ endif VPATH += $(TOP_DIR)/$(PJRC_DIR) # This indicates using LUFA stack -# TODO: remove HOST_PJRC -OPT_DEFS += -DHOST_PJRC OPT_DEFS += -DPROTOCOL_PJRC - diff --git a/protocol/vusb.mk b/protocol/vusb.mk index 4c5058115b..77b1c6337b 100644 --- a/protocol/vusb.mk +++ b/protocol/vusb.mk @@ -1,6 +1,6 @@ VUSB_DIR = protocol/vusb -OPT_DEFS += -DHOST_VUSB +OPT_DEFS += -DPROTOCOL_VUSB SRC += $(VUSB_DIR)/main.c \ $(VUSB_DIR)/vusb.c \ -- cgit v1.2.3