add tusbh_cdc_serial_is_mounted API

test for cdch close driver
This commit is contained in:
hathach
2013-07-02 15:32:41 +07:00
parent b04b145965
commit 7e5c6ded2d
4 changed files with 48 additions and 3 deletions

View File

@@ -964,7 +964,7 @@ static ehci_link_t* list_find_previous_item(ehci_link_t* p_head, ehci_link_t* p_
uint32_t max_loop = 0;
while( (align32(p_prev->address) != (uint32_t) p_head) && // not loop around
(align32(p_prev->address) != (uint32_t) p_current) && // not found yet
!p_prev->terminate && // not advancable
!p_prev->terminate && // not advanceable
max_loop < EHCI_MAX_QHD)
{
p_prev = list_next(p_prev);