Skip to content

Commit

Permalink
Format.
Browse files Browse the repository at this point in the history
  • Loading branch information
HiFiPhile committed May 9, 2024
1 parent fd1cde9 commit 1cab553
Showing 1 changed file with 4 additions and 6 deletions.
10 changes: 4 additions & 6 deletions src/portable/wch/dcd_ch32_usbhs.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
}
Expand Down Expand Up @@ -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;

Expand Down

0 comments on commit 1cab553

Please sign in to comment.