Skip to content

Commit

Permalink
Teensy 3.6: do not restart USB stack after wakeup
Browse files Browse the repository at this point in the history
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
  • Loading branch information
stapelberg committed Oct 29, 2022
1 parent aa12996 commit 9144e69
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions os/hal/boards/PJRC_TEENSY_3_6/board.c
Original file line number Diff line number Diff line change
Expand Up @@ -214,3 +214,9 @@ void __early_init(void) {
*/
void boardInit(void) {
}

void restart_usb_driver(USBDriver *usbp) {
// Do nothing. Restarting the USB driver on the Teensy 3.6 breaks it,
// resulting in a keyboard which can wake up a PC from Suspend-to-RAM, but
// does not actually produce any keypresses until you un-plug and re-plug.
}

0 comments on commit 9144e69

Please sign in to comment.