mirror of
https://github.com/Keychron/qmk_firmware.git
synced 2024-11-24 17:37:40 +06:00
kint36: do not restart USB stack after wakeup (#19077)
This commit is contained in:
parent
c9fe884b26
commit
9e103a2c58
11
platforms/chibios/boards/PJRC_TEENSY_3_6/board/board.mk
Normal file
11
platforms/chibios/boards/PJRC_TEENSY_3_6/board/board.mk
Normal file
|
@ -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
platforms/chibios/boards/PJRC_TEENSY_3_6/board/extra.c
Normal file
7
platforms/chibios/boards/PJRC_TEENSY_3_6/board/extra.c
Normal file
|
@ -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.
|
||||
}
|
Loading…
Reference in New Issue
Block a user