Skip to content

Commit 9144e69

Browse files
committed
Teensy 3.6: do not restart USB stack after wakeup
Without this change, the Teensy 3.6 (with QMK firmware) can wake a computer from Suspend-to-RAM, but the keyboard does not actually produce any keypresses until you un-plug and re-plug it. A similar change was needed for the Teensy 4.x as well: ChibiOS#345 related to qmk/qmk_firmware#16934
1 parent aa12996 commit 9144e69

File tree

1 file changed

+6
-0
lines changed
  • os/hal/boards/PJRC_TEENSY_3_6

1 file changed

+6
-0
lines changed

os/hal/boards/PJRC_TEENSY_3_6/board.c

+6
Original file line numberDiff line numberDiff line change
@@ -214,3 +214,9 @@ void __early_init(void) {
214214
*/
215215
void boardInit(void) {
216216
}
217+
218+
void restart_usb_driver(USBDriver *usbp) {
219+
// Do nothing. Restarting the USB driver on the Teensy 3.6 breaks it,
220+
// resulting in a keyboard which can wake up a PC from Suspend-to-RAM, but
221+
// does not actually produce any keypresses until you un-plug and re-plug.
222+
}

0 commit comments

Comments
 (0)