diff options
| author | hathach <[email protected]> | 2020-10-12 00:35:38 +0700 |
|---|---|---|
| committer | hathach <[email protected]> | 2020-10-12 00:35:45 +0700 |
| commit | 87b989e8b4b497713cc4b88103dc6dfadc43e149 (patch) | |
| tree | 2435c82f8618bf47c8aa34fae457a674603fdfa9 /src/host/hcd.h | |
| parent | b5d4c8185d81b8d7f59625ad19e43f80fe309e29 (diff) | |
add usbh_edpt_claim/release
implement USBH_EVENT_FUNC_CALL
Diffstat (limited to 'src/host/hcd.h')
| -rw-r--r-- | src/host/hcd.h | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/src/host/hcd.h b/src/host/hcd.h index ba3035300..db98f6110 100644 --- a/src/host/hcd.h +++ b/src/host/hcd.h @@ -45,6 +45,11 @@ typedef enum HCD_EVENT_DEVICE_ATTACH, HCD_EVENT_DEVICE_REMOVE, HCD_EVENT_XFER_COMPLETE, + + // Not an HCD event, just a convenient way to defer ISR function + USBH_EVENT_FUNC_CALL, + + HCD_EVENT_COUNT } hcd_eventid_t; typedef struct @@ -67,6 +72,12 @@ typedef struct uint8_t result; uint32_t len; } xfer_complete; + + // FUNC_CALL + struct { + void (*func) (void*); + void* param; + }func_call; }; } hcd_event_t; |
