mirror of
https://github.com/espressif/openthread.git
synced 2026-08-07 19:27:46 +00:00
[nrf52840] remove startup delay after software reset in USB driver (#2637)
Signed-off-by: Robert Lubos <[email protected]>
This commit is contained in:
committed by
Jonathan Hui
parent
cb2a7800d7
commit
5a2a808329
@@ -317,16 +317,6 @@
|
||||
#define LOG_TIMESTAMP_ENABLE 1
|
||||
#endif
|
||||
|
||||
/**
|
||||
* @def USB_INITIAL_DELAY_MS
|
||||
*
|
||||
* Init delay for USB driver, used when software reset was detected to help OS to re-enumerate the device.
|
||||
*
|
||||
*/
|
||||
#ifndef USB_INITIAL_DELAY_MS
|
||||
#define USB_INITIAL_DELAY_MS 600
|
||||
#endif
|
||||
|
||||
/**
|
||||
* @def USB_HOST_UART_CONFIG_DELAY_MS
|
||||
*
|
||||
|
||||
@@ -205,13 +205,6 @@ static void processConnection(void)
|
||||
// Provide some delay so the OS can re-enumerate the device in case of reset.
|
||||
if (sUsbState.mReadyToStart)
|
||||
{
|
||||
if (((otPlatGetResetReason(NULL) == OT_PLAT_RESET_REASON_EXTERNAL) ||
|
||||
(otPlatGetResetReason(NULL) == OT_PLAT_RESET_REASON_SOFTWARE)) &&
|
||||
(otPlatAlarmMilliGetNow() < USB_INITIAL_DELAY_MS))
|
||||
{
|
||||
return;
|
||||
}
|
||||
|
||||
sUsbState.mReadyToStart = false;
|
||||
|
||||
if (nrf_drv_usbd_is_enabled())
|
||||
|
||||
Reference in New Issue
Block a user