mirror of
https://github.com/Ralim/IronOS.git
synced 2025-02-26 07:53:55 +00:00
Correct a few missed time values from the tick rate change (#874)
* Pass over all refs to xTaskGetTickCount()
* That wasn't a second 😓
* Update FreeRTOSConfig.h
* Fix warning in usb code; style; fix slow description
This commit is contained in:
@@ -93,7 +93,8 @@ usb_reqsta usbd_class_request(usb_core_driver *udev, usb_req *req) {
|
||||
if (USBD_CONFIGURED == udev->dev.cur_status) {
|
||||
if (BYTE_LOW(req->wIndex) <= USBD_ITF_MAX_NUM) {
|
||||
/* call device class handle function */
|
||||
return (usb_reqsta)udev->dev.class_core->req_proc(udev, req);
|
||||
uint8_t res = udev->dev.class_core->req_proc(udev, req);
|
||||
return (usb_reqsta)res;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -426,7 +427,10 @@ static usb_reqsta _usb_std_getdescriptor(usb_core_driver *udev, usb_req *req) {
|
||||
|
||||
case USB_RECPTYPE_ITF:
|
||||
/* get device class special descriptor */
|
||||
return (usb_reqsta)(udev->dev.class_core->req_proc(udev, req));
|
||||
{
|
||||
uint8_t res = udev->dev.class_core->req_proc(udev, req);
|
||||
return (usb_reqsta)res;
|
||||
}
|
||||
|
||||
case USB_RECPTYPE_EP:
|
||||
break;
|
||||
|
||||
@@ -45,7 +45,6 @@ OF SUCH DAMAGE.
|
||||
static uint32_t usbh_request_submit(usb_core_driver *pudev, uint8_t pp_num) {
|
||||
pudev->host.pipe[pp_num].urb_state = URB_IDLE;
|
||||
pudev->host.pipe[pp_num].xfer_count = 0U;
|
||||
|
||||
return usb_pipe_xfer(pudev, pp_num);
|
||||
}
|
||||
|
||||
@@ -63,8 +62,8 @@ usbh_status usbh_ctlsetup_send(usb_core_driver *pudev, uint8_t *buf, uint8_t pp_
|
||||
pp->DPID = PIPE_DPID_SETUP;
|
||||
pp->xfer_buf = buf;
|
||||
pp->xfer_len = USB_SETUP_PACKET_LEN;
|
||||
|
||||
return (usbh_status)usbh_request_submit(pudev, pp_num);
|
||||
uint32_t res = usbh_request_submit(pudev, pp_num);
|
||||
return (usbh_status)res;
|
||||
}
|
||||
|
||||
/*!
|
||||
|
||||
Reference in New Issue
Block a user