fix(hcd) hcd_edpt_open() return true if endpoint is already opened.

This commit is contained in:
hathach
2025-04-03 18:11:33 +07:00
parent 8c1802e41d
commit 4787cd5f54
4 changed files with 25 additions and 13 deletions

View File

@@ -163,6 +163,7 @@ void hcd_device_close(uint8_t rhport, uint8_t dev_addr);
//--------------------------------------------------------------------+
// Open an endpoint
// return true if successfully opened or endpoint is currently opened
bool hcd_edpt_open(uint8_t rhport, uint8_t daddr, tusb_desc_endpoint_t const * ep_desc);
// Close an endpoint