diff options
author | Stefan Kerkmann <karlk90@pm.me> | 2023-06-26 23:55:52 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-06-26 23:55:52 +0200 |
commit | a87c74ebe14aee0d4a82f5ff8a0170afb8105598 (patch) | |
tree | 8c4505a97b2ed7d2d004a90d80d54e5d57ecdcf2 /platforms/chibios/boards/PJRC_TEENSY_3_6 | |
parent | 4aa765b72e880246907bc16bc591e44b0235da97 (diff) |
[Bug] Fix non-functional S3 wakeup / resume from suspense (#19780)
* Update ChibiOS-Contrib for USB suspend fixes
* Remove S3 wakup workaround
ChibiOS OTGv1 driver has a remote wakeup bug that prevents the device to
resume it's operation. 02516cbc24647f522eee975e69cc0c8a925470eb
introduced a hotfix that forcefully restarted the usb driver as a workaround.
This workaround broke multiple boards which do not use this driver /
peripheral. With the update of ChibiOS this hotfix is now obsolete.
* Remove restart_usb_driver overrides
they are no longer necessary as the workaround is not needed anymore
for stm32f4
* Remove unused RP_USB_USE_SOF_INTR defines
The SOF interrupt is enabled dynamically by the RP2040 usb driver
Diffstat (limited to 'platforms/chibios/boards/PJRC_TEENSY_3_6')
-rw-r--r-- | platforms/chibios/boards/PJRC_TEENSY_3_6/board/board.mk | 2 | ||||
-rw-r--r-- | platforms/chibios/boards/PJRC_TEENSY_3_6/board/extra.c | 7 |
2 files changed, 1 insertions, 8 deletions
diff --git a/platforms/chibios/boards/PJRC_TEENSY_3_6/board/board.mk b/platforms/chibios/boards/PJRC_TEENSY_3_6/board/board.mk index aba195db04..8225bc2e0f 100644 --- a/platforms/chibios/boards/PJRC_TEENSY_3_6/board/board.mk +++ b/platforms/chibios/boards/PJRC_TEENSY_3_6/board/board.mk @@ -1,7 +1,7 @@ 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 +BOARDSRC += # Required include directories BOARDINC += $(BOARD_PATH)/board diff --git a/platforms/chibios/boards/PJRC_TEENSY_3_6/board/extra.c b/platforms/chibios/boards/PJRC_TEENSY_3_6/board/extra.c deleted file mode 100644 index 4940d6d99b..0000000000 --- a/platforms/chibios/boards/PJRC_TEENSY_3_6/board/extra.c +++ /dev/null @@ -1,7 +0,0 @@ -#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. -} |