diff --git a/components/drivers/usb/usbhost/class/adk.c b/components/drivers/usb/usbhost/class/adk.c index fd6619599c..1481d27ea6 100644 --- a/components/drivers/usb/usbhost/class/adk.c +++ b/components/drivers/usb/usbhost/class/adk.c @@ -67,7 +67,7 @@ RTM_EXPORT(rt_usbh_adk_set_string); */ static rt_err_t rt_usbh_adk_get_protocol(struct uintf* intf, rt_uint16_t *protocol) { - struct ureqest setup; + struct urequest setup; uinst_t device; int timeout = 100; @@ -101,7 +101,7 @@ static rt_err_t rt_usbh_adk_get_protocol(struct uintf* intf, rt_uint16_t *protoc static rt_err_t rt_usbh_adk_send_string(struct uintf* intf, rt_uint16_t index, const char* str) { - struct ureqest setup; + struct urequest setup; uinst_t device; int timeout = 100; @@ -134,7 +134,7 @@ static rt_err_t rt_usbh_adk_send_string(struct uintf* intf, rt_uint16_t index, */ static rt_err_t rt_usbh_adk_start(struct uintf* intf) { - struct ureqest setup; + struct urequest setup; uinst_t device; int timeout = 100; diff --git a/components/drivers/usb/usbhost/core/core.c b/components/drivers/usb/usbhost/core/core.c index af53370f4b..144358a4d3 100644 --- a/components/drivers/usb/usbhost/core/core.c +++ b/components/drivers/usb/usbhost/core/core.c @@ -246,7 +246,7 @@ rt_err_t rt_usbh_detach_instance(uinst_t device) rt_err_t rt_usbh_get_descriptor(uinst_t device, rt_uint8_t type, void* buffer, int nbytes) { - struct ureqest setup; + struct urequest setup; int timeout = 100; RT_ASSERT(device != RT_NULL); @@ -272,7 +272,7 @@ rt_err_t rt_usbh_get_descriptor(uinst_t device, rt_uint8_t type, void* buffer, */ rt_err_t rt_usbh_set_address(uinst_t device) { - struct ureqest setup; + struct urequest setup; int timeout = 100; RT_ASSERT(device != RT_NULL); @@ -306,7 +306,7 @@ rt_err_t rt_usbh_set_address(uinst_t device) */ rt_err_t rt_usbh_set_configure(uinst_t device, int config) { - struct ureqest setup; + struct urequest setup; int timeout = 100; /* check parameter */ @@ -335,7 +335,7 @@ rt_err_t rt_usbh_set_configure(uinst_t device, int config) */ rt_err_t rt_usbh_set_interface(uinst_t device, int intf) { - struct ureqest setup; + struct urequest setup; int timeout = 100; /* check parameter */ @@ -364,7 +364,7 @@ rt_err_t rt_usbh_set_interface(uinst_t device, int intf) */ rt_err_t rt_usbh_clear_feature(uinst_t device, int endpoint, int feature) { - struct ureqest setup; + struct urequest setup; int timeout = 100; /* check parameter */ diff --git a/components/drivers/usb/usbhost/core/hub.c b/components/drivers/usb/usbhost/core/hub.c index a71aa4f89c..bde316ae77 100644 --- a/components/drivers/usb/usbhost/core/hub.c +++ b/components/drivers/usb/usbhost/core/hub.c @@ -43,7 +43,7 @@ static struct uclass_driver hub_driver; rt_err_t rt_usbh_hub_get_descriptor(struct uinstance* device, rt_uint8_t *buffer, rt_size_t nbytes) { - struct ureqest setup; + struct urequest setup; int timeout = 100; /* parameter check */ @@ -72,7 +72,7 @@ rt_err_t rt_usbh_hub_get_descriptor(struct uinstance* device, rt_uint8_t *buffer */ rt_err_t rt_usbh_hub_get_status(struct uinstance* device, rt_uint8_t* buffer) { - struct ureqest setup; + struct urequest setup; int timeout = 100; int length = 4; @@ -104,7 +104,7 @@ rt_err_t rt_usbh_hub_get_status(struct uinstance* device, rt_uint8_t* buffer) rt_err_t rt_usbh_hub_get_port_status(uhub_t hub, rt_uint16_t port, rt_uint8_t* buffer) { - struct ureqest setup; + struct urequest setup; int timeout = 100; int length = 4; @@ -144,7 +144,7 @@ rt_err_t rt_usbh_hub_get_port_status(uhub_t hub, rt_uint16_t port, rt_err_t rt_usbh_hub_clear_port_feature(uhub_t hub, rt_uint16_t port, rt_uint16_t feature) { - struct ureqest setup; + struct urequest setup; int timeout = 100; /* parameter check */ @@ -183,7 +183,7 @@ rt_err_t rt_usbh_hub_clear_port_feature(uhub_t hub, rt_uint16_t port, rt_err_t rt_usbh_hub_set_port_feature(uhub_t hub, rt_uint16_t port, rt_uint16_t feature) { - struct ureqest setup; + struct urequest setup; int timeout = 100; /* parameter check */