feat(port): add remote wakeup api

This commit is contained in:
sakumisu
2024-07-26 22:01:12 +08:00
parent 50b62c946d
commit bef45dc360
25 changed files with 512 additions and 12 deletions

View File

@@ -33,6 +33,13 @@ int usb_dc_deinit(uint8_t busid);
*/
int usbd_set_address(uint8_t busid, const uint8_t addr);
/**
* @brief Set remote wakeup feature
*
* @return On success will return 0, and others indicate fail.
*/
int usbd_set_remote_wakeup(uint8_t busid);
/**
* @brief Get USB device speed
*
@@ -187,8 +194,6 @@ void usbd_event_ep_out_complete_handler(uint8_t busid, uint8_t ep, uint32_t nbyt
void usbd_execute_test_mode(uint8_t busid, uint8_t test_mode);
#endif
void usbd_send_remote_wakeup(uint8_t busid);
#ifdef __cplusplus
}
#endif