Skip to content

Commit 40570b9

Browse files
committed
[DeviceDriver] Fix the compiling error in USB host.
1 parent 52e43ea commit 40570b9

File tree

3 files changed

+13
-13
lines changed

3 files changed

+13
-13
lines changed

components/drivers/usb/usbhost/class/adk.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ RTM_EXPORT(rt_usbh_adk_set_string);
6767
*/
6868
static rt_err_t rt_usbh_adk_get_protocol(struct uintf* intf, rt_uint16_t *protocol)
6969
{
70-
struct ureqest setup;
70+
struct urequest setup;
7171
uinst_t device;
7272
int timeout = 100;
7373

@@ -101,7 +101,7 @@ static rt_err_t rt_usbh_adk_get_protocol(struct uintf* intf, rt_uint16_t *protoc
101101
static rt_err_t rt_usbh_adk_send_string(struct uintf* intf, rt_uint16_t index,
102102
const char* str)
103103
{
104-
struct ureqest setup;
104+
struct urequest setup;
105105
uinst_t device;
106106
int timeout = 100;
107107

@@ -134,7 +134,7 @@ static rt_err_t rt_usbh_adk_send_string(struct uintf* intf, rt_uint16_t index,
134134
*/
135135
static rt_err_t rt_usbh_adk_start(struct uintf* intf)
136136
{
137-
struct ureqest setup;
137+
struct urequest setup;
138138
uinst_t device;
139139
int timeout = 100;
140140

components/drivers/usb/usbhost/core/core.c

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -246,7 +246,7 @@ rt_err_t rt_usbh_detach_instance(uinst_t device)
246246
rt_err_t rt_usbh_get_descriptor(uinst_t device, rt_uint8_t type, void* buffer,
247247
int nbytes)
248248
{
249-
struct ureqest setup;
249+
struct urequest setup;
250250
int timeout = 100;
251251

252252
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,
272272
*/
273273
rt_err_t rt_usbh_set_address(uinst_t device)
274274
{
275-
struct ureqest setup;
275+
struct urequest setup;
276276
int timeout = 100;
277277

278278
RT_ASSERT(device != RT_NULL);
@@ -306,7 +306,7 @@ rt_err_t rt_usbh_set_address(uinst_t device)
306306
*/
307307
rt_err_t rt_usbh_set_configure(uinst_t device, int config)
308308
{
309-
struct ureqest setup;
309+
struct urequest setup;
310310
int timeout = 100;
311311

312312
/* check parameter */
@@ -335,7 +335,7 @@ rt_err_t rt_usbh_set_configure(uinst_t device, int config)
335335
*/
336336
rt_err_t rt_usbh_set_interface(uinst_t device, int intf)
337337
{
338-
struct ureqest setup;
338+
struct urequest setup;
339339
int timeout = 100;
340340

341341
/* check parameter */
@@ -364,7 +364,7 @@ rt_err_t rt_usbh_set_interface(uinst_t device, int intf)
364364
*/
365365
rt_err_t rt_usbh_clear_feature(uinst_t device, int endpoint, int feature)
366366
{
367-
struct ureqest setup;
367+
struct urequest setup;
368368
int timeout = 100;
369369

370370
/* check parameter */

components/drivers/usb/usbhost/core/hub.c

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ static struct uclass_driver hub_driver;
4343
rt_err_t rt_usbh_hub_get_descriptor(struct uinstance* device, rt_uint8_t *buffer,
4444
rt_size_t nbytes)
4545
{
46-
struct ureqest setup;
46+
struct urequest setup;
4747
int timeout = 100;
4848

4949
/* parameter check */
@@ -72,7 +72,7 @@ rt_err_t rt_usbh_hub_get_descriptor(struct uinstance* device, rt_uint8_t *buffer
7272
*/
7373
rt_err_t rt_usbh_hub_get_status(struct uinstance* device, rt_uint8_t* buffer)
7474
{
75-
struct ureqest setup;
75+
struct urequest setup;
7676
int timeout = 100;
7777
int length = 4;
7878

@@ -104,7 +104,7 @@ rt_err_t rt_usbh_hub_get_status(struct uinstance* device, rt_uint8_t* buffer)
104104
rt_err_t rt_usbh_hub_get_port_status(uhub_t hub, rt_uint16_t port,
105105
rt_uint8_t* buffer)
106106
{
107-
struct ureqest setup;
107+
struct urequest setup;
108108
int timeout = 100;
109109
int length = 4;
110110

@@ -144,7 +144,7 @@ rt_err_t rt_usbh_hub_get_port_status(uhub_t hub, rt_uint16_t port,
144144
rt_err_t rt_usbh_hub_clear_port_feature(uhub_t hub, rt_uint16_t port,
145145
rt_uint16_t feature)
146146
{
147-
struct ureqest setup;
147+
struct urequest setup;
148148
int timeout = 100;
149149

150150
/* parameter check */
@@ -183,7 +183,7 @@ rt_err_t rt_usbh_hub_clear_port_feature(uhub_t hub, rt_uint16_t port,
183183
rt_err_t rt_usbh_hub_set_port_feature(uhub_t hub, rt_uint16_t port,
184184
rt_uint16_t feature)
185185
{
186-
struct ureqest setup;
186+
struct urequest setup;
187187
int timeout = 100;
188188

189189
/* parameter check */

0 commit comments

Comments
 (0)