Hub: Use usleep instead of up_mdelay

This commit is contained in:
Gregory Nutt 2015-05-04 07:46:13 -06:00
parent 1afb9315a5
commit e903259476
1 changed files with 2 additions and 2 deletions

View File

@ -825,7 +825,7 @@ static void usbhost_hub_event(FAR void *arg)
} }
debouncetime += 25; debouncetime += 25;
up_mdelay(25); usleep(25*1000);
} }
if (ret < 0 || debouncetime >= 1500) if (ret < 0 || debouncetime >= 1500)
@ -853,7 +853,7 @@ static void usbhost_hub_event(FAR void *arg)
continue; continue;
} }
up_mdelay(100); usleep(100*1000);
ctrlreq->type = USB_REQ_DIR_IN | USBHUB_REQ_TYPE_PORT; ctrlreq->type = USB_REQ_DIR_IN | USBHUB_REQ_TYPE_PORT;
ctrlreq->req = USBHUB_REQ_GETSTATUS; ctrlreq->req = USBHUB_REQ_GETSTATUS;