DWC_READ_REG32(&core_if->
dev_if->out_ep_regs[i]->
doepint);
- if (j == 100000) {
+ if (j++ >= 10000) {
DWC_ERROR
- ("EPDIS was not set during 10s\n");
+ ("EPDIS was not set during 1s\n");
break;
}
} while (!doepint.b.epdisabled);
intr_mask.b.nptxfempty = 1;
DWC_MODIFY_REG32(&global_regs->gintmsk, intr_mask.d32, 0);
+ /* Clear pending interrupts */
+ DWC_WRITE_REG32(&global_regs->gintsts, intr_mask.d32);
}
/**