添加RNDIS
git-svn-id: https://rt-thread.googlecode.com/svn/trunk@2579 bbd45198-f89e-11dd-88c7-29a3b14d5316
This commit is contained in:
parent
2a6ffa0ccd
commit
b1fa07f392
@ -88,6 +88,13 @@ rt_err_t rt_usb_device_init(const char* udc_name)
|
|||||||
/* add the class to the configuration */
|
/* add the class to the configuration */
|
||||||
rt_usbd_config_add_class(cfg, cls);
|
rt_usbd_config_add_class(cfg, cls);
|
||||||
#endif
|
#endif
|
||||||
|
#ifdef RT_USB_DEVICE_RNDIS
|
||||||
|
/* create a rndis class object */
|
||||||
|
cls = rt_usbd_class_rndis_create(udevice);
|
||||||
|
|
||||||
|
/* add the class to the configuration */
|
||||||
|
rt_usbd_config_add_class(cfg, cls);
|
||||||
|
#endif
|
||||||
|
|
||||||
/* set device descriptor to the device */
|
/* set device descriptor to the device */
|
||||||
#ifdef RT_USB_DEVICE_COMPOSITE
|
#ifdef RT_USB_DEVICE_COMPOSITE
|
||||||
|
Loading…
x
Reference in New Issue
Block a user