diff options
| author | Yang Xijing <[email protected]> | 2024-08-14 11:31:39 +0800 |
|---|---|---|
| committer | sakumisu <[email protected]> | 2024-08-14 17:29:18 +0800 |
| commit | 4b2000b405500d79d8863e98a2a44997eb355630 (patch) | |
| tree | 073c5bc0cb0fd0f8372d11c49ca3706f2e919a43 | |
| parent | 9720eb2f7608a12256ad3dbb6467a920b8a9a4ce (diff) | |
Correct spelling errors.
| -rw-r--r-- | port/nuvoton/usb_dc_usbfs.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/port/nuvoton/usb_dc_usbfs.c b/port/nuvoton/usb_dc_usbfs.c index 3f1a8777..ca2b6021 100644 --- a/port/nuvoton/usb_dc_usbfs.c +++ b/port/nuvoton/usb_dc_usbfs.c @@ -82,7 +82,7 @@ struct usb_dc_config_priv { struct usb_dc_ep_state out_ep[USB_NUM_BIDIR_ENDPOINTS]; /*!< OUT endpoint parameters */ } g_nuvoton_udc; -static uint8_t usdb_set_address_flag = 0; +static uint8_t usbd_set_address_flag = 0; static uint8_t usbd_out_toggle[USB_NUM_BIDIR_ENDPOINTS] = { 0 }; __WEAK void usb_dc_low_level_init(void) @@ -159,7 +159,7 @@ int usbd_set_address(uint8_t busid, const uint8_t addr) uint8_t usbd_addr = USBD_GET_ADDR(); if ((usbd_addr == 0) && (usbd_addr != addr)) { g_nuvoton_udc.dev_addr = addr; - usdb_set_address_flag = 1; + usbd_set_address_flag = 1; } return 0; @@ -369,9 +369,9 @@ void USBD_IRQHandler(uint8_t busid) if (int_flag & USBD_INTSTS_EP0) { /* In ACK for Set address */ - if (usdb_set_address_flag == 1) { + if (usbd_set_address_flag == 1) { USBD_SET_ADDR(g_nuvoton_udc.dev_addr); - usdb_set_address_flag = 0; + usbd_set_address_flag = 0; } } |
