Skip to content

Commit

Permalink
microchip samd: Add support for dcd_sof_enable().
Browse files Browse the repository at this point in the history
  • Loading branch information
andrewleech committed May 16, 2024
1 parent 26bd3e7 commit 8642081
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions src/portable/microchip/samd/dcd_samd.c
Original file line number Diff line number Diff line change
Expand Up @@ -183,9 +183,12 @@ void dcd_connect(uint8_t rhport)
void dcd_sof_enable(uint8_t rhport, bool en)
{
(void) rhport;
(void) en;

// TODO implement later
if (en) {
USB->DEVICE.INTENSET.bit.SOF = 1;
} else {
USB->DEVICE.INTENCLR.bit.SOF = 1;
}
}

/*------------------------------------------------------------------*/
Expand Down

0 comments on commit 8642081

Please sign in to comment.