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/dialog/da146xx | |
| parent | 1f18be93db39dbc57bbf34f982dbe07e209a2ae3 (diff) | |
change dcd_init() return from void to bool
Diffstat (limited to 'src/portable/dialog/da146xx')
| -rw-r--r-- | src/portable/dialog/da146xx/dcd_da146xx.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/src/portable/dialog/da146xx/dcd_da146xx.c b/src/portable/dialog/da146xx/dcd_da146xx.c index 558e1269a..887f59588 100644 --- a/src/portable/dialog/da146xx/dcd_da146xx.c +++ b/src/portable/dialog/da146xx/dcd_da146xx.c @@ -804,15 +804,16 @@ static void handle_ep0_nak(void) /*------------------------------------------------------------------*/ /* Controller 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) rhport; (void) rh_init; _dcd.init_called = true; - if (_dcd.vbus_present) - { + if (_dcd.vbus_present) { dcd_connect(rhport); } + + return true; } void dcd_int_enable(uint8_t rhport) |
