drivers: usb: fix common misspellings in USB drivers
Fix common misspellings in USB drivers. Signed-off-by: Johann Fischer <johann.fischer@nordicsemi.no>
This commit is contained in:
parent
b979ee9c0a
commit
41e9547ead
8 changed files with 11 additions and 11 deletions
|
@ -301,7 +301,7 @@ static void it8xxx2_usb_dc_wuc_init(const struct device *dev)
|
|||
/* Enabling the WUI */
|
||||
it8xxx2_wuc_enable(cfg->wuc_list[0].wucs, cfg->wuc_list[0].mask);
|
||||
|
||||
/* Connect WU90 (USB D+) interrupt but make it disabled initally */
|
||||
/* Connect WU90 (USB D+) interrupt but make it disabled initially */
|
||||
IRQ_CONNECT(IT8XXX2_WU90_IRQ, 0, it82xx2_wu90_isr, 0, 0);
|
||||
}
|
||||
|
||||
|
@ -1157,7 +1157,7 @@ int usb_dc_ep_enable(const uint8_t ep)
|
|||
if (ep_idx < EP4) {
|
||||
LOG_DBG("ep_idx < 4");
|
||||
ep_regs[ep_idx].ep_ctrl |= ENDPOINT_EN;
|
||||
LOG_DBG("EP%d Enbabled %02x", ep_idx, ep_regs[ep_idx].ep_ctrl);
|
||||
LOG_DBG("EP%d Enabled %02x", ep_idx, ep_regs[ep_idx].ep_ctrl);
|
||||
} else {
|
||||
LOG_DBG("ep_idx >= 4");
|
||||
it82xx2_usb_extend_ep_ctrl(ep_idx, EXT_EP_ENABLE);
|
||||
|
|
|
@ -878,7 +878,7 @@ static void usb_kinetis_isr_handler(void)
|
|||
/*
|
||||
* Device reset is not possible because the stack does not
|
||||
* configure the endpoints after the USB_DC_RESET event,
|
||||
* therefore, we must reenable the default control 0 endpoint
|
||||
* therefore, we must re-enable the default control 0 endpoint
|
||||
* after a reset event
|
||||
*/
|
||||
USB0->CTL |= USB_CTL_ODDRST_MASK;
|
||||
|
|
|
@ -1109,7 +1109,7 @@ int usb_dc_ep_flush(uint8_t ep)
|
|||
|
||||
dev_data.ep_data[ep_idx].out_at = 0U;
|
||||
|
||||
/* Reenable interrupts */
|
||||
/* Re-enable interrupts */
|
||||
usb_dc_ep_enable_interrupts(ep_idx);
|
||||
|
||||
irq_unlock(key);
|
||||
|
|
|
@ -710,7 +710,7 @@ int usb_dc_ep_flush(uint8_t ep)
|
|||
/* Reset the endpoint */
|
||||
usb_dc_ep_reset(ep_idx);
|
||||
|
||||
/* Reenable interrupts */
|
||||
/* Re-enable interrupts */
|
||||
usb_dc_ep_enable_interrupts(ep_idx);
|
||||
|
||||
LOG_DBG("ep 0x%x", ep);
|
||||
|
|
|
@ -198,7 +198,7 @@ BUILD_ASSERT(sizeof(struct usb_dw_reg) <= 0x0D00);
|
|||
* IN endpoint offsets 0x0900 + (0x20 * n), n = 0 .. x,
|
||||
* offset 0x0900 and 0x0B00 are hardcoded to control type.
|
||||
*
|
||||
* REVISE: Better own defenitions for DIEPTCTL0, DOEPTCTL0...
|
||||
* REVISE: Better own definitions for DIEPTCTL0, DOEPTCTL0...
|
||||
*/
|
||||
#define USB_DW_DEPCTL_EP_ENA BIT(31)
|
||||
#define USB_DW_DEPCTL_EP_DIS BIT(30)
|
||||
|
@ -242,7 +242,7 @@ BUILD_ASSERT(sizeof(struct usb_dw_reg) <= 0x0D00);
|
|||
* IN at offsets 0x0910 + (0x20 * n), n = 0 .. x,
|
||||
* OUT at offsets 0x0B10 + (0x20 * n), n = 0 .. x
|
||||
*
|
||||
* REVISE: Better own defenitions for DIEPTSIZ0, DOEPTSIZ0...
|
||||
* REVISE: Better own definitions for DIEPTSIZ0, DOEPTSIZ0...
|
||||
*/
|
||||
#define USB_DW_DEPTSIZ_PKT_CNT_OFFSET 19
|
||||
#define USB_DW_DIEPTSIZ0_PKT_CNT_MASK (0x3 << 19)
|
||||
|
|
|
@ -40,7 +40,7 @@ LOG_MODULE_REGISTER(usbfsotg, CONFIG_UDC_DRIVER_LOG_LEVEL);
|
|||
#define USBFSOTG_REV 0x33
|
||||
|
||||
/*
|
||||
* There is no real advantage to change control enpoint size
|
||||
* There is no real advantage to change control endpoint size
|
||||
* but we can use it for testing UDC driver API and higher layers.
|
||||
*/
|
||||
#define USBFSOTG_MPS0 UDC_MPS0_64
|
||||
|
@ -498,7 +498,7 @@ static void xfer_work_handler(struct k_work *item)
|
|||
udc_submit_event(ev->dev, UDC_EVT_ERROR, err);
|
||||
}
|
||||
|
||||
/* Peek next transer */
|
||||
/* Peek next transfer */
|
||||
if (ev->ep != USB_CONTROL_EP_OUT && !udc_ep_is_busy(ev->dev, ev->ep)) {
|
||||
if (usbfsotg_xfer_next(ev->dev, ep_cfg) == 0) {
|
||||
udc_ep_set_busy(ev->dev, ev->ep, true);
|
||||
|
|
|
@ -29,7 +29,7 @@
|
|||
LOG_MODULE_REGISTER(udc_nrf, CONFIG_UDC_DRIVER_LOG_LEVEL);
|
||||
|
||||
/*
|
||||
* There is no real advantage to change control enpoint size
|
||||
* There is no real advantage to change control endpoint size
|
||||
* but we can use it for testing UDC driver API and higher layers.
|
||||
*/
|
||||
#define UDC_NRF_MPS0 UDC_MPS0_64
|
||||
|
|
|
@ -478,7 +478,7 @@ static inline int udc_host_wakeup(const struct device *dev)
|
|||
* of the endpoint. All properties of the descriptor,
|
||||
* such as direction, and transfer type, should be set correctly.
|
||||
* If wMaxPacketSize value is zero, it will be
|
||||
* updated to maximum buffer size of the enpoint.
|
||||
* updated to maximum buffer size of the endpoint.
|
||||
*
|
||||
* @param[in] dev Pointer to device struct of the driver instance
|
||||
* @param[in] ep Endpoint address (same as bEndpointAddress)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue