From e903259476d403bcd73915c2aa26e06fabb003a3 Mon Sep 17 00:00:00 2001 From: Gregory Nutt Date: Mon, 4 May 2015 07:46:13 -0600 Subject: [PATCH] Hub: Use usleep instead of up_mdelay --- drivers/usbhost/usbhost_hub.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/usbhost/usbhost_hub.c b/drivers/usbhost/usbhost_hub.c index 85dacf8008..4b099b2fdd 100644 --- a/drivers/usbhost/usbhost_hub.c +++ b/drivers/usbhost/usbhost_hub.c @@ -825,7 +825,7 @@ static void usbhost_hub_event(FAR void *arg) } debouncetime += 25; - up_mdelay(25); + usleep(25*1000); } if (ret < 0 || debouncetime >= 1500) @@ -853,7 +853,7 @@ static void usbhost_hub_event(FAR void *arg) continue; } - up_mdelay(100); + usleep(100*1000); ctrlreq->type = USB_REQ_DIR_IN | USBHUB_REQ_TYPE_PORT; ctrlreq->req = USBHUB_REQ_GETSTATUS;