diff options
| author | ZYH <[email protected]> | 2019-06-11 15:32:37 +0800 |
|---|---|---|
| committer | ZYH <[email protected]> | 2019-06-11 15:32:37 +0800 |
| commit | e1517a0981e6aea0734c9620addc154baee470d5 (patch) | |
| tree | d4d471bcc3f73ba5650e17a5608ab6c62754c076 /components/drivers | |
| parent | 2a738e1ee2a6b97cb40ab47c670465381a804eb6 (diff) | |
[Components][USB][RNDIS] fix delay linkup using soft timer
Diffstat (limited to 'components/drivers')
| -rwxr-xr-x | components/drivers/Kconfig | 1 | ||||
| -rw-r--r-- | components/drivers/usb/usbdevice/class/rndis.c | 2 |
2 files changed, 2 insertions, 1 deletions
diff --git a/components/drivers/Kconfig b/components/drivers/Kconfig index d0588a7b65..861d8cf118 100755 --- a/components/drivers/Kconfig +++ b/components/drivers/Kconfig @@ -644,6 +644,7 @@ menu "Using USB" if RT_USB_DEVICE_RNDIS config RNDIS_DELAY_LINK_UP bool "Delay linkup media connection" + select RT_USING_TIMER_SOFT default n endif diff --git a/components/drivers/usb/usbdevice/class/rndis.c b/components/drivers/usb/usbdevice/class/rndis.c index 793ecb49b5..ec61234947 100644 --- a/components/drivers/usb/usbdevice/class/rndis.c +++ b/components/drivers/usb/usbdevice/class/rndis.c @@ -1391,7 +1391,7 @@ ufunction_t rt_usbd_function_rndis_create(udevice_t device) timer_timeout, _rndis, RT_TICK_PER_SECOND * 2, - RT_TIMER_FLAG_ONE_SHOT); + RT_TIMER_FLAG_ONE_SHOT | RT_TIMER_FLAG_SOFT_TIMER); #endif /* RNDIS_DELAY_LINK_UP */ /* OUI 00-00-00, only for test. */ |
