diff options
| author | rppicomidi <[email protected]> | 2023-08-14 15:38:48 -0700 |
|---|---|---|
| committer | rppicomidi <[email protected]> | 2023-08-14 15:38:48 -0700 |
| commit | 9d942967414d7b95f3a132c284ef83f386a0c467 (patch) | |
| tree | 2ae38b1bb1348abb2d7e47e1c1ca499135638815 /src/host/usbh_classdriver.h | |
| parent | 92457ec99f1690b772ef9fa6b348256701c7fcf7 (diff) | |
fix issue 2188: support usbh_app_driver_get_cb()
Diffstat (limited to 'src/host/usbh_classdriver.h')
| -rw-r--r-- | src/host/usbh_classdriver.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/host/usbh_classdriver.h b/src/host/usbh_classdriver.h index 308b4418a..7443b2d90 100644 --- a/src/host/usbh_classdriver.h +++ b/src/host/usbh_classdriver.h @@ -96,6 +96,14 @@ bool usbh_edpt_release(uint8_t dev_addr, uint8_t ep_addr); // Check if endpoint transferring is complete bool usbh_edpt_busy(uint8_t dev_addr, uint8_t ep_addr); +//--------------------------------------------------------------------+ +// USBH application additional driver API +//--------------------------------------------------------------------+ +// Invoked when initializing host stack to get additional class drivers. +// Can optionally implemented by application to extend/overwrite class driver support. +// Note: The drivers array must be accessible at all time when stack is active +usbh_class_driver_t const* usbh_app_driver_get_cb(uint8_t* driver_count) TU_ATTR_WEAK; + #ifdef __cplusplus } #endif |
