Commit 9e998d10 authored by Emil Obalski's avatar Emil Obalski Committed by Carles Cufi
Browse files

drivers: usb: Correct naming for endpoint Transfer Type



This commit updates definitions to better match usb 2.0 spec.

Signed-off-by: default avatarEmil Obalski <emil.obalski@nordicsemi.no>
parent 79704fac
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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);
+2 −2
Original line number Diff line number Diff line
@@ -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;

};

+5 −5
Original line number Diff line number Diff line
@@ -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;
};

/**