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/pic | |
| parent | 1f18be93db39dbc57bbf34f982dbe07e209a2ae3 (diff) | |
change dcd_init() return from void to bool
Diffstat (limited to 'src/portable/microchip/pic')
| -rw-r--r-- | src/portable/microchip/pic/dcd_pic.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/portable/microchip/pic/dcd_pic.c b/src/portable/microchip/pic/dcd_pic.c index 089d3f520..d40c4794a 100644 --- a/src/portable/microchip/pic/dcd_pic.c +++ b/src/portable/microchip/pic/dcd_pic.c @@ -470,7 +470,7 @@ static void process_bus_resume(uint8_t rhport) /*------------------------------------------------------------------*/ /* Device API *------------------------------------------------------------------*/ -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) rh_init; intr_disable(rhport); intr_clear(rhport); @@ -502,6 +502,7 @@ void dcd_init(uint8_t rhport, const tusb_rhport_init_t* rh_init) { U1IE = _U1IE_URSTIE_MASK; dcd_connect(rhport); + return true; } void dcd_int_enable(uint8_t rhport) |
