Skip to content

Commit

Permalink
chipidea/mimxrt: Add support for dcd_sof_enable().
Browse files Browse the repository at this point in the history
  • Loading branch information
andrewleech committed May 15, 2024
1 parent 3c24ba3 commit 26bd3e7
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions src/portable/chipidea/ci_hs/dcd_ci_hs.c
Original file line number Diff line number Diff line change
Expand Up @@ -309,10 +309,12 @@ void dcd_disconnect(uint8_t rhport)

void dcd_sof_enable(uint8_t rhport, bool en)
{
(void) rhport;
(void) en;

// TODO implement later
ci_hs_regs_t* dcd_reg = CI_HS_REG(rhport);
if (en) {
dcd_reg->USBINTR |= INTR_SOF;
} else {
dcd_reg->USBINTR &= ~INTR_SOF;
}
}

//--------------------------------------------------------------------+
Expand Down

0 comments on commit 26bd3e7

Please sign in to comment.