diff options
| -rw-r--r-- | keyboards/ps2avrGB/config.h | 2 | ||||
| -rw-r--r-- | tmk_core/common/avr/bootloader.c | 6 | ||||
| -rw-r--r-- | tmk_core/common/avr/suspend.c | 2 | ||||
| -rw-r--r-- | tmk_core/common/command.c | 1 | ||||
| -rw-r--r-- | tmk_core/protocol/vusb.mk | 4 |
5 files changed, 8 insertions, 7 deletions
diff --git a/keyboards/ps2avrGB/config.h b/keyboards/ps2avrGB/config.h index dfaea5979..f0bef2464 100644 --- a/keyboards/ps2avrGB/config.h +++ b/keyboards/ps2avrGB/config.h | |||
| @@ -34,7 +34,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>. | |||
| 34 | #define BACKLIGHT_COLOR 0x110000 | 34 | #define BACKLIGHT_COLOR 0x110000 |
| 35 | 35 | ||
| 36 | #define NO_UART 1 | 36 | #define NO_UART 1 |
| 37 | #define EEPROM_BOOTLOADER_START 1 | 37 | #define BOOTLOADHID_BOOTLOADER 1 |
| 38 | 38 | ||
| 39 | /* key combination for command */ | 39 | /* key combination for command */ |
| 40 | #define IS_COMMAND() (keyboard_report->mods == (MOD_BIT(KC_LSHIFT) | MOD_BIT(KC_RSHIFT))) | 40 | #define IS_COMMAND() (keyboard_report->mods == (MOD_BIT(KC_LSHIFT) | MOD_BIT(KC_RSHIFT))) |
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 | ||
| 66 | static void power_down(uint8_t wdto) | 66 | static 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 | ||
| 3 | OPT_DEFS += -DPROTOCOL_VUSB | 3 | OPT_DEFS += -DPROTOCOL_VUSB |
| 4 | 4 | ||
| 5 | SRC += $(VUSB_DIR)/main.c \ | 5 | SRC += $(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 |
| 17 | endif | 17 | endif |
| 18 | 18 | ||
| 19 | |||
| 19 | # Search Path | 20 | # Search Path |
| 20 | #VPATH += $(TMK_PATH)/$(VUSB_DIR) | ||
| 21 | VPATH += $(TMK_PATH)/$(VUSB_DIR) | 21 | VPATH += $(TMK_PATH)/$(VUSB_DIR) |
| 22 | VPATH += $(TMK_PATH)/$(VUSB_DIR)/usbdrv | 22 | VPATH += $(TMK_PATH)/$(VUSB_DIR)/usbdrv |
