diff options
| author | [email protected] <[email protected]> | 2012-12-31 15:39:52 +0000 |
|---|---|---|
| committer | [email protected] <[email protected]> | 2012-12-31 15:39:52 +0000 |
| commit | b1fa07f3925d73cd6f9fbd7555ad21fb19183e27 (patch) | |
| tree | a8540156b8202d1f670bf8150bbdc09d06d7da74 /components/drivers/usb | |
| parent | 2a6ffa0ccdfb7391053e19a30251ae131ffc3223 (diff) | |
添加RNDIS
git-svn-id: https://rt-thread.googlecode.com/svn/trunk@2579 bbd45198-f89e-11dd-88c7-29a3b14d5316
Diffstat (limited to 'components/drivers/usb')
| -rw-r--r-- | components/drivers/usb/usbdevice/core/usbdevice.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/components/drivers/usb/usbdevice/core/usbdevice.c b/components/drivers/usb/usbdevice/core/usbdevice.c index fb7813eeed..42e8664738 100644 --- a/components/drivers/usb/usbdevice/core/usbdevice.c +++ b/components/drivers/usb/usbdevice/core/usbdevice.c @@ -88,6 +88,13 @@ rt_err_t rt_usb_device_init(const char* udc_name) /* add the class to the configuration */
rt_usbd_config_add_class(cfg, cls);
#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 */
#ifdef RT_USB_DEVICE_COMPOSITE
|
