Skip to content

Commit b1fa07f

Browse files
committed
添加RNDIS
git-svn-id: https://rt-thread.googlecode.com/svn/trunk@2579 bbd45198-f89e-11dd-88c7-29a3b14d5316
1 parent 2a6ffa0 commit b1fa07f

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

components/drivers/usb/usbdevice/core/usbdevice.c

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -88,6 +88,13 @@ rt_err_t rt_usb_device_init(const char* udc_name)
8888
/* add the class to the configuration */
8989
rt_usbd_config_add_class(cfg, cls);
9090
#endif
91+
#ifdef RT_USB_DEVICE_RNDIS
92+
/* create a rndis class object */
93+
cls = rt_usbd_class_rndis_create(udevice);
94+
95+
/* add the class to the configuration */
96+
rt_usbd_config_add_class(cfg, cls);
97+
#endif
9198

9299
/* set device descriptor to the device */
93100
#ifdef RT_USB_DEVICE_COMPOSITE

0 commit comments

Comments
 (0)