[nrf52840] remove startup delay after software reset in USB driver (#2637)

Signed-off-by: Robert Lubos <[email protected]>
This commit is contained in:
Robert Lubos
2018-03-27 17:30:08 +01:00
committed by Jonathan Hui
parent cb2a7800d7
commit 5a2a808329
2 changed files with 0 additions and 17 deletions
@@ -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())