diff options
| author | sakumisu <[email protected]> | 2022-02-12 22:25:56 +0800 |
|---|---|---|
| committer | sakumisu <[email protected]> | 2022-02-12 22:34:17 +0800 |
| commit | f7cd434ec7fa060488cfa1f5932399ef3286646b (patch) | |
| tree | 3a15386a91326f8d026a04931401f95664dabd12 | |
| parent | d60532071df113b22f30bb7fa6b62d190622db11 (diff) | |
add enumeration success log
| -rw-r--r-- | core/usbh_core.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/core/usbh_core.c b/core/usbh_core.c index 9e77739c..7fa335b7 100644 --- a/core/usbh_core.c +++ b/core/usbh_core.c @@ -534,6 +534,7 @@ static int usbh_enumerate(struct usbh_hubport *hport) goto errout; } + USB_LOG_INFO("Enumeration success, start loading class driver\r\n"); /*search supported class driver*/ for (uint8_t i = 0; i < hport->config.config_desc.bNumInterfaces; i++) { intf_desc = &hport->config.intf[i].intf_desc; @@ -627,7 +628,7 @@ static void usbh_portchange_detect_thread(void *argument) } usb_osal_leave_critical_section(flags); - + while (1) { usbh_portchange_wait(&hport); if (hport->connected) { |
