diff options
| author | Angus Gratton <[email protected]> | 2023-11-01 15:45:44 +1100 |
|---|---|---|
| committer | Angus Gratton <[email protected]> | 2023-11-23 14:42:51 +1100 |
| commit | 68894398af9e8a096c700b7a4e8c127e53a2d6bc (patch) | |
| tree | 17fdbcf35afd247c2089224fdc108a9b119d6f1b /src/host | |
| parent | 08f9ed67c92421cbd0bc09270d2f363886681866 (diff) | |
Add optional hooks for DCD and HCD events
These are intended to allow bare metal platforms with one-shot scheduling
capabilities to schedule the TinyUSB task handlers whenever they know there is
work for them to do.
Signed-off-by: Angus Gratton <[email protected]>
Diffstat (limited to 'src/host')
| -rw-r--r-- | src/host/usbh.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/host/usbh.c b/src/host/usbh.c index d8fff9905..2fdc8216d 100644 --- a/src/host/usbh.c +++ b/src/host/usbh.c @@ -780,6 +780,7 @@ void usbh_defer_func(osal_task_func_t func, void *param, bool in_isr) { event.func_call.param = param; osal_queue_send(_usbh_q, &event, in_isr); + CFG_TUH_EVENT_HOOK(event, in_isr); } //--------------------------------------------------------------------+ @@ -936,6 +937,7 @@ TU_ATTR_FAST_FUNC void hcd_event_handler(hcd_event_t const* event, bool in_isr) } osal_queue_send(_usbh_q, event, in_isr); + CFG_TUH_EVENT_HOOK(event, in_isr); } //--------------------------------------------------------------------+ |
