This commit is contained in:
osboxes.org 2019-12-31 22:19:54 +01:00
parent 911cfb9d3f
commit 6293749ffd

View file

@ -573,7 +573,7 @@ bool usb_check() {
if (isr & AT91C_UDP_ENDBUSRES) {
pUdp->UDP_ICR = AT91C_UDP_ENDBUSRES;
// reset all endpoints
pUdp->UDP_RSTEP = (unsigned int) -1;
pUdp->UDP_RSTEP = (unsigned int) - 1;
pUdp->UDP_RSTEP = 0;
// Enable the function
pUdp->UDP_FADDR = AT91C_UDP_FEN;