This commit is contained in:
HiFiPhile 2024-05-09 13:55:18 +02:00
parent fd1cde9b89
commit 1cab553f4b

View File

@ -135,15 +135,12 @@ void dcd_remote_wakeup(uint8_t rhport)
(void) rhport;
}
void dcd_sof_enable(uint8_t rhport, bool en)
void dcd_sof_enable(uint8_t rhport, bool en)
{
(void) rhport;
if (en)
{
if (en) {
USBHSD->INT_EN |= USBHS_SOF_ACT_EN;
}
else
{
} else {
USBHSD->INT_EN &= ~(USBHS_SOF_ACT_EN);
}
}
@ -347,6 +344,7 @@ void dcd_int_handler(uint8_t rhport) {
if (rx_token == PID_SOF) {
dcd_event_sof(rhport, USBHSD->FRAME_NO, true);
} else if (rx_token == PID_OUT) {
uint16_t rx_len = USBHSD->RX_LEN;