diff options
Diffstat (limited to 'chip/stm32/usb_hid_touchpad.c')
-rw-r--r-- | chip/stm32/usb_hid_touchpad.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/chip/stm32/usb_hid_touchpad.c b/chip/stm32/usb_hid_touchpad.c index a0fc3b311a..92e1b09886 100644 --- a/chip/stm32/usb_hid_touchpad.c +++ b/chip/stm32/usb_hid_touchpad.c @@ -327,6 +327,11 @@ void set_touchpad_report(struct usb_hid_touchpad_report *report) report, sizeof(*report)); /* enable TX */ STM32_TOGGLE_EP(USB_EP_HID_TOUCHPAD, EP_TX_MASK, EP_TX_VALID, 0); + +#ifdef CONFIG_USB_REMOTE_WAKEUP + /* Wake up host, if required. */ + usb_wake(); +#endif } static void hid_touchpad_tx(void) |