diff options
author | Ryan <fauxpark@gmail.com> | 2022-12-09 12:41:22 +1100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-12-09 01:41:22 +0000 |
commit | 701747ad4feee87fca177beb50823b522cff6e6a (patch) | |
tree | cfe3fc01a710f204de5c11732f326c4d4cc8f760 /platforms/chibios/boards/PJRC_TEENSY_3_5/board/extra.c | |
parent | 9bc7e9afbd32e3ed34580f1be9a79e6040158de5 (diff) |
Teensy 3.5: do not restart USB stack after wakeup (#19269)
Diffstat (limited to 'platforms/chibios/boards/PJRC_TEENSY_3_5/board/extra.c')
-rw-r--r-- | platforms/chibios/boards/PJRC_TEENSY_3_5/board/extra.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/platforms/chibios/boards/PJRC_TEENSY_3_5/board/extra.c b/platforms/chibios/boards/PJRC_TEENSY_3_5/board/extra.c new file mode 100644 index 0000000000..4940d6d99b --- /dev/null +++ b/platforms/chibios/boards/PJRC_TEENSY_3_5/board/extra.c @@ -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. +} |