[Components][USB][RNDIS] fix delay linkup using soft timer
This commit is contained in:
parent
2a738e1ee2
commit
e1517a0981
|
@ -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
|
||||
|
||||
|
|
|
@ -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. */
|
||||
|
|
Loading…
Reference in New Issue