[Components][USB][RNDIS] fix delay linkup using soft timer

This commit is contained in:
ZYH 2019-06-11 15:32:37 +08:00
parent 2a738e1ee2
commit e1517a0981
2 changed files with 2 additions and 1 deletions

View File

@ -644,6 +644,7 @@ menu "Using USB"
if RT_USB_DEVICE_RNDIS if RT_USB_DEVICE_RNDIS
config RNDIS_DELAY_LINK_UP config RNDIS_DELAY_LINK_UP
bool "Delay linkup media connection" bool "Delay linkup media connection"
select RT_USING_TIMER_SOFT
default n default n
endif endif

View File

@ -1391,7 +1391,7 @@ ufunction_t rt_usbd_function_rndis_create(udevice_t device)
timer_timeout, timer_timeout,
_rndis, _rndis,
RT_TICK_PER_SECOND * 2, 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 */ #endif /* RNDIS_DELAY_LINK_UP */
/* OUI 00-00-00, only for test. */ /* OUI 00-00-00, only for test. */