diff options
| author | Ha Thach <[email protected]> | 2024-04-02 17:13:54 +0700 |
|---|---|---|
| committer | GitHub <[email protected]> | 2024-04-02 17:13:54 +0700 |
| commit | 2265bfeab67c67a7efb9171cc041a64523f0ec1f (patch) | |
| tree | a853a2260229c87d300946ad927200327a92a2ee /src/host/usbh.c | |
| parent | 82dfe95655c7b7564363a2d5cb2f5e32d431b223 (diff) | |
| parent | 172c9f70c74c541892006ff2bbfea818f40a235a (diff) | |
Merge pull request #2543 from IngHK/max3421_nak_retry
MAX3421E NAK retry handling next frame
Diffstat (limited to 'src/host/usbh.c')
| -rw-r--r-- | src/host/usbh.c | 13 |
1 files changed, 8 insertions, 5 deletions
diff --git a/src/host/usbh.c b/src/host/usbh.c index 05091736e..aa0603d47 100644 --- a/src/host/usbh.c +++ b/src/host/usbh.c @@ -52,6 +52,13 @@ TU_ATTR_WEAK bool hcd_deinit(uint8_t rhport) { return false; } +TU_ATTR_WEAK bool hcd_configure(uint8_t rhport, uint32_t cfg_id, const void* cfg_param) { + (void) rhport; + (void) cfg_id; + (void) cfg_param; + return false; +} + TU_ATTR_WEAK void tuh_event_hook_cb(uint8_t rhport, uint32_t eventid, bool in_isr) { (void) rhport; (void) eventid; @@ -332,11 +339,7 @@ bool tuh_rhport_reset_bus(uint8_t rhport, bool active) { //--------------------------------------------------------------------+ bool tuh_configure(uint8_t rhport, uint32_t cfg_id, const void *cfg_param) { - if ( hcd_configure ) { - return hcd_configure(rhport, cfg_id, cfg_param); - } else { - return false; - } + return hcd_configure(rhport, cfg_id, cfg_param); } static void clear_device(usbh_device_t* dev) { |
