This commit is contained in:
Edward Emelianov
2023-04-29 21:49:45 +03:00
parent 72ef5c9cc6
commit 9b0504944b
14 changed files with 993 additions and 15 deletions

View File

@@ -775,9 +775,8 @@ static void rxtx_Handler(uint8_t epno){
case USART4_EPNO:
; // we have no USART4 in STM32F303CBT6
break;
default:
if(RB_write((ringbuffer*)&rbin[idx], buf, sz) != sz) bufovrfl[idx] = 1;
}
if(RB_write((ringbuffer*)&rbin[idx], buf, sz) != sz) bufovrfl[idx] = 1;
}
// set ACK Rx
USB->EPnR[epno] = (KEEP_DTOG(USB->EPnR[epno]) & ~(USB_EPnR_STAT_TX)) ^ USB_EPnR_STAT_RX;