Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- timeout = 100; // Wait up to 100 ms
- while(timeout > 0)
- {
- bool b = true;
- for(dlelement_t* elem = transfer->transactions->head; b && elem; elem = elem->next)
- {
- uhci_transaction_t* uT = ((usb_transaction_t*)elem->data)->data;
- b = b && !uT->TD->active;
- }
- if(b)
- break;
- sleepMilliSeconds(10);
- timeout--;
- }
- if(timeout == 0)
- {
- textColor(ERROR);
- printf("\nUHCI: Timeout during waiting for TD execution!");
- textColor(TEXT);
- }
Add Comment
Please, Sign In to add comment