diff --git a/drivers/usb/device/usb_dc_dw.c b/drivers/usb/device/usb_dc_dw.c index 2994b9614ad..03f184f12d2 100644 --- a/drivers/usb/device/usb_dc_dw.c +++ b/drivers/usb/device/usb_dc_dw.c @@ -235,7 +235,7 @@ static int usb_dw_set_fifo(u8_t ep) } static int usb_dw_ep_set(u8_t ep, - u32_t ep_mps, enum usb_dc_ep_type ep_type) + u32_t ep_mps, enum usb_dc_ep_transfer_type ep_type) { volatile u32_t *p_depctl; u8_t ep_idx = USB_DW_EP_ADDR2IDX(ep); diff --git a/drivers/usb/device/usb_dc_nrfx.c b/drivers/usb/device/usb_dc_nrfx.c index 9b0de62494f..4e15149ff4f 100644 --- a/drivers/usb/device/usb_dc_nrfx.c +++ b/drivers/usb/device/usb_dc_nrfx.c @@ -74,14 +74,14 @@ enum usbd_event_type { * @param max_sz Max packet size supported by endpoint. * @param en Enable/Disable flag. * @param addr Endpoint address. - * @param type Endpoint type. + * @param type Endpoint transfer type. */ struct nrf_usbd_ep_cfg { usb_dc_ep_callback cb; u32_t max_sz; bool en; u8_t addr; - enum usb_dc_ep_type type; + enum usb_dc_ep_transfer_type type; }; diff --git a/include/drivers/usb/usb_dc.h b/include/drivers/usb/usb_dc.h index 546b34d736b..6bc162788b3 100644 --- a/include/drivers/usb/usb_dc.h +++ b/include/drivers/usb/usb_dc.h @@ -84,9 +84,9 @@ enum usb_dc_ep_cb_status_code { }; /** - * @brief USB Endpoint type + * @brief USB Endpoint Transfer Type */ -enum usb_dc_ep_type { +enum usb_dc_ep_transfer_type { /** Control type endpoint */ USB_DC_EP_CONTROL = 0, /** Isochronous type endpoint */ @@ -111,10 +111,10 @@ struct usb_dc_ep_cfg_data { u8_t ep_addr; /** Endpoint max packet size */ u16_t ep_mps; - /** Endpoint type. May be Bulk, Interrupt or Control. Isochronous - * endpoints are not supported for now. + /** Endpoint Transfer Type. + * May be Bulk, Interrupt, Control or Isochronous */ - enum usb_dc_ep_type ep_type; + enum usb_dc_ep_transfer_type ep_type; }; /**