summaryrefslogtreecommitdiff
path: root/tinyusb
diff options
context:
space:
mode:
Diffstat (limited to 'tinyusb')
-rw-r--r--tinyusb/common/assertion.h2
-rw-r--r--tinyusb/host/ehci/ehci.c8
-rw-r--r--tinyusb/host/usbh.c2
3 files changed, 2 insertions, 10 deletions
diff --git a/tinyusb/common/assertion.h b/tinyusb/common/assertion.h
index 82a9c05fb..2a807b054 100644
--- a/tinyusb/common/assertion.h
+++ b/tinyusb/common/assertion.h
@@ -57,7 +57,7 @@ extern "C"
#endif
#include "tusb_option.h"
-#include "hal/hal.h"
+#include "hal/hal.h" // TODO find a way to break hal dependency
//--------------------------------------------------------------------+
// Compile-time Assert
diff --git a/tinyusb/host/ehci/ehci.c b/tinyusb/host/ehci/ehci.c
index 7293c264a..cc2c5738e 100644
--- a/tinyusb/host/ehci/ehci.c
+++ b/tinyusb/host/ehci/ehci.c
@@ -452,14 +452,6 @@ void port_connect_status_change_isr(uint8_t hostid)
if (regs->portsc_bit.current_connect_status) // device plugged
{
hcd_port_reset(hostid);
-
- #ifndef _TEST_
- // TODO finalize delay after reset, hack delay 100 ms, otherwise speed is detected as LOW in most cases
- volatile uint32_t delay_us = 100000;
- delay_us *= (SystemCoreClock / 1000000) / 3;
- while(delay_us--);
- #endif
-
usbh_device_plugged_isr(hostid, regs->portsc_bit.nxp_port_speed); // NXP specific port speed
}else // device unplugged
{
diff --git a/tinyusb/host/usbh.c b/tinyusb/host/usbh.c
index 0902c8ed9..fbf7c64b2 100644
--- a/tinyusb/host/usbh.c
+++ b/tinyusb/host/usbh.c
@@ -295,7 +295,7 @@ OSAL_TASK_DECLARE(usbh_enumeration_task)
)
);
-// hcd_port_reset( usbh_devices[0].core_id ); // reset port after 8 byte descriptor
+ hcd_port_reset( usbh_devices[0].core_id ); // reset port after 8 byte descriptor
//------------- Set new address -------------//
new_addr = get_new_address();