diff options
| author | hathach <[email protected]> | 2023-03-22 09:23:44 +0700 |
|---|---|---|
| committer | hathach <[email protected]> | 2023-03-22 09:23:44 +0700 |
| commit | f8a5cde3c7fde62c3d6bd379fea6eaa9a629ded6 (patch) | |
| tree | 052dd386e0b1429a56a9e21c38141971e097588e /src/host/usbh.h | |
| parent | 0921edaf5924d498e8115815dc23acfb1decb7a0 (diff) | |
add tuh_task_event_ready(), better implement blocking control transfer for rtos
Diffstat (limited to 'src/host/usbh.h')
| -rw-r--r-- | src/host/usbh.h | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/src/host/usbh.h b/src/host/usbh.h index 125d8f4c9..0f969a46a 100644 --- a/src/host/usbh.h +++ b/src/host/usbh.h @@ -69,6 +69,13 @@ struct tuh_xfer_s // uint32_t timeout_ms; // place holder, not supported yet }; +// Subject to change +typedef struct +{ + uint8_t daddr; + tusb_desc_interface_t desc; +} tuh_itf_info_t; + // ConfigID for tuh_config() enum { @@ -118,6 +125,9 @@ void tuh_task(void) tuh_task_ext(UINT32_MAX, false); } +// Check if there is pending events need processing by tuh_task() +bool tuh_task_event_ready(void); + #ifndef _TUSB_HCD_H_ extern void hcd_int_handler(uint8_t rhport); #endif |
