Skip to content

Commit

Permalink
kint36: do not restart USB stack after wakeup (qmk#19077)
Browse files Browse the repository at this point in the history
  • Loading branch information
stapelberg committed Dec 8, 2022
1 parent c9fe884 commit 9e103a2
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 0 deletions.
11 changes: 11 additions & 0 deletions platforms/chibios/boards/PJRC_TEENSY_3_6/board/board.mk
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
include $(CHIBIOS_CONTRIB)/os/hal/boards/PJRC_TEENSY_3_6/board.mk

# List of all the board related files.
BOARDSRC += $(BOARD_PATH)/board/extra.c

# Required include directories
BOARDINC += $(BOARD_PATH)/board

# Shared variables
ALLCSRC += $(BOARDSRC)
ALLINC += $(BOARDINC)
7 changes: 7 additions & 0 deletions platforms/chibios/boards/PJRC_TEENSY_3_6/board/extra.c
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
#include <hal.h>

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 9e103a2

Please sign in to comment.