aboutsummaryrefslogtreecommitdiff
path: root/tmk_core
diff options
context:
space:
mode:
Diffstat (limited to 'tmk_core')
-rw-r--r--tmk_core/common/avr/bootloader.c6
-rw-r--r--tmk_core/common/avr/suspend.c2
-rw-r--r--tmk_core/common/command.c1
-rw-r--r--tmk_core/protocol/vusb.mk4
4 files changed, 7 insertions, 6 deletions
diff --git a/tmk_core/common/avr/bootloader.c b/tmk_core/common/avr/bootloader.c
index 98a24d178..34db8d0b0 100644
--- a/tmk_core/common/avr/bootloader.c
+++ b/tmk_core/common/avr/bootloader.c
@@ -90,8 +90,10 @@ void bootloader_jump(void) {
90 _delay_ms(5); 90 _delay_ms(5);
91 #endif 91 #endif
92 92
93 #ifdef EEPROM_BOOTLOADER_START 93 #ifdef BOOTLOADHID_BOOTLOADER
94 eeprom_write_byte((uint8_t *)EEPROM_BOOTLOADER_START, 0x00); 94 // force bootloadHID to stay in bootloader mode, so that it waits
95 // for a new firmware to be flashed
96 eeprom_write_byte((uint8_t *)1, 0x00);
95 #endif 97 #endif
96 98
97 // watchdog reset 99 // watchdog reset
diff --git a/tmk_core/common/avr/suspend.c b/tmk_core/common/avr/suspend.c
index 0e97892d9..0c81e8361 100644
--- a/tmk_core/common/avr/suspend.c
+++ b/tmk_core/common/avr/suspend.c
@@ -65,7 +65,6 @@ static uint8_t wdt_timeout = 0;
65 65
66static void power_down(uint8_t wdto) 66static void power_down(uint8_t wdto)
67{ 67{
68#ifndef __AVR_ATmega32A__
69#ifdef PROTOCOL_LUFA 68#ifdef PROTOCOL_LUFA
70 if (USB_DeviceState == DEVICE_STATE_Configured) return; 69 if (USB_DeviceState == DEVICE_STATE_Configured) return;
71#endif 70#endif
@@ -100,7 +99,6 @@ static void power_down(uint8_t wdto)
100 99
101 // Disable watchdog after sleep 100 // Disable watchdog after sleep
102 wdt_disable(); 101 wdt_disable();
103#endif
104} 102}
105#endif 103#endif
106 104
diff --git a/tmk_core/common/command.c b/tmk_core/common/command.c
index beba768ec..f79d5a257 100644
--- a/tmk_core/common/command.c
+++ b/tmk_core/common/command.c
@@ -236,6 +236,7 @@ static void print_status(void)
236 236
237 print_val_hex8(host_keyboard_leds()); 237 print_val_hex8(host_keyboard_leds());
238#ifndef PROTOCOL_VUSB 238#ifndef PROTOCOL_VUSB
239 // these aren't set on the V-USB protocol, so we just ignore them for now
239 print_val_hex8(keyboard_protocol); 240 print_val_hex8(keyboard_protocol);
240 print_val_hex8(keyboard_idle); 241 print_val_hex8(keyboard_idle);
241#endif 242#endif
diff --git a/tmk_core/protocol/vusb.mk b/tmk_core/protocol/vusb.mk
index 4d90510af..897b833e1 100644
--- a/tmk_core/protocol/vusb.mk
+++ b/tmk_core/protocol/vusb.mk
@@ -2,7 +2,7 @@ VUSB_DIR = protocol/vusb
2 2
3OPT_DEFS += -DPROTOCOL_VUSB 3OPT_DEFS += -DPROTOCOL_VUSB
4 4
5SRC += $(VUSB_DIR)/main.c \ 5SRC += $(VUSB_DIR)/main.c \
6 $(VUSB_DIR)/vusb.c \ 6 $(VUSB_DIR)/vusb.c \
7 $(VUSB_DIR)/usbdrv/usbdrv.c \ 7 $(VUSB_DIR)/usbdrv/usbdrv.c \
8 $(VUSB_DIR)/usbdrv/usbdrvasm.S \ 8 $(VUSB_DIR)/usbdrv/usbdrvasm.S \
@@ -16,7 +16,7 @@ SRC += $(COMMON_DIR)/sendchar_uart.c \
16 $(COMMON_DIR)/uart.c 16 $(COMMON_DIR)/uart.c
17endif 17endif
18 18
19
19# Search Path 20# Search Path
20#VPATH += $(TMK_PATH)/$(VUSB_DIR)
21VPATH += $(TMK_PATH)/$(VUSB_DIR) 21VPATH += $(TMK_PATH)/$(VUSB_DIR)
22VPATH += $(TMK_PATH)/$(VUSB_DIR)/usbdrv 22VPATH += $(TMK_PATH)/$(VUSB_DIR)/usbdrv