diff options
Diffstat (limited to 'protocol/iwrap/main.c')
| -rw-r--r-- | protocol/iwrap/main.c | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/protocol/iwrap/main.c b/protocol/iwrap/main.c index 05a67337f..ac83280f1 100644 --- a/protocol/iwrap/main.c +++ b/protocol/iwrap/main.c | |||
| @@ -26,7 +26,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>. | |||
| 26 | #include "matrix.h" | 26 | #include "matrix.h" |
| 27 | #include "host.h" | 27 | #include "host.h" |
| 28 | #include "iwrap.h" | 28 | #include "iwrap.h" |
| 29 | #ifdef HOST_VUSB | 29 | #ifdef PROTOCOL_VUSB |
| 30 | # include "vusb.h" | 30 | # include "vusb.h" |
| 31 | # include "usbdrv.h" | 31 | # include "usbdrv.h" |
| 32 | #endif | 32 | #endif |
| @@ -78,7 +78,7 @@ static void pullup_pins(void) | |||
| 78 | */ | 78 | */ |
| 79 | 79 | ||
| 80 | 80 | ||
| 81 | #ifdef HOST_VUSB | 81 | #ifdef PROTOCOL_VUSB |
| 82 | static void disable_vusb(void) | 82 | static void disable_vusb(void) |
| 83 | { | 83 | { |
| 84 | // disable interrupt & disconnect to prevent host from enumerating | 84 | // disable interrupt & disconnect to prevent host from enumerating |
| @@ -131,7 +131,7 @@ int main(void) | |||
| 131 | //pullup_pins(); | 131 | //pullup_pins(); |
| 132 | //set_prr(); | 132 | //set_prr(); |
| 133 | 133 | ||
| 134 | #ifdef HOST_VUSB | 134 | #ifdef PROTOCOL_VUSB |
| 135 | disable_vusb(); | 135 | disable_vusb(); |
| 136 | #endif | 136 | #endif |
| 137 | uart_init(115200); | 137 | uart_init(115200); |
| @@ -159,12 +159,12 @@ int main(void) | |||
| 159 | 159 | ||
| 160 | last_timer = timer_read(); | 160 | last_timer = timer_read(); |
| 161 | while (true) { | 161 | while (true) { |
| 162 | #ifdef HOST_VUSB | 162 | #ifdef PROTOCOL_VUSB |
| 163 | if (host_get_driver() == vusb_driver()) | 163 | if (host_get_driver() == vusb_driver()) |
| 164 | usbPoll(); | 164 | usbPoll(); |
| 165 | #endif | 165 | #endif |
| 166 | keyboard_task(); | 166 | keyboard_task(); |
| 167 | #ifdef HOST_VUSB | 167 | #ifdef PROTOCOL_VUSB |
| 168 | if (host_get_driver() == vusb_driver()) | 168 | if (host_get_driver() == vusb_driver()) |
| 169 | vusb_transfer_keyboard(); | 169 | vusb_transfer_keyboard(); |
| 170 | #endif | 170 | #endif |
| @@ -258,7 +258,7 @@ static uint8_t console_command(uint8_t c) | |||
| 258 | print("r: reset. software reset by watchdog\n"); | 258 | print("r: reset. software reset by watchdog\n"); |
| 259 | print("i: insomniac. prevent KB from sleeping\n"); | 259 | print("i: insomniac. prevent KB from sleeping\n"); |
| 260 | print("c: iwrap_call. CALL for BT connection.\n"); | 260 | print("c: iwrap_call. CALL for BT connection.\n"); |
| 261 | #ifdef HOST_VUSB | 261 | #ifdef PROTOCOL_VUSB |
| 262 | print("u: USB mode. switch to USB.\n"); | 262 | print("u: USB mode. switch to USB.\n"); |
| 263 | print("w: BT mode. switch to Bluetooth.\n"); | 263 | print("w: BT mode. switch to Bluetooth.\n"); |
| 264 | #endif | 264 | #endif |
| @@ -281,7 +281,7 @@ static uint8_t console_command(uint8_t c) | |||
| 281 | print("iwrap_call()\n"); | 281 | print("iwrap_call()\n"); |
| 282 | iwrap_call(); | 282 | iwrap_call(); |
| 283 | return 1; | 283 | return 1; |
| 284 | #ifdef HOST_VUSB | 284 | #ifdef PROTOCOL_VUSB |
| 285 | case 'u': | 285 | case 'u': |
| 286 | print("USB mode\n"); | 286 | print("USB mode\n"); |
| 287 | init_vusb(); | 287 | init_vusb(); |
