diff options
| author | hathach <[email protected]> | 2024-10-14 19:42:22 +0700 |
|---|---|---|
| committer | hathach <[email protected]> | 2024-10-14 19:42:22 +0700 |
| commit | e83e08343afca86b2bacf26822ef9032571e6f56 (patch) | |
| tree | f7c11374731a6aa9352464f065169d30d28d16c2 /src/portable/microchip/samg | |
| parent | 1f18be93db39dbc57bbf34f982dbe07e209a2ae3 (diff) | |
change dcd_init() return from void to bool
Diffstat (limited to 'src/portable/microchip/samg')
| -rw-r--r-- | src/portable/microchip/samg/dcd_samg.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/portable/microchip/samg/dcd_samg.c b/src/portable/microchip/samg/dcd_samg.c index b02889b24..c88b31514 100644 --- a/src/portable/microchip/samg/dcd_samg.c +++ b/src/portable/microchip/samg/dcd_samg.c @@ -155,11 +155,13 @@ static void bus_reset(void) } // Initialize controller to device mode -void dcd_init(uint8_t rhport, const tusb_rhport_init_t* rh_init) { +bool dcd_init(uint8_t rhport, const tusb_rhport_init_t* rh_init) { (void) rhport; (void) rh_init; + tu_memclr(_dcd_xfer, sizeof(_dcd_xfer)); dcd_connect(rhport); + return true; } // Enable device interrupt |
