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/mindmotion | |
| parent | 1f18be93db39dbc57bbf34f982dbe07e209a2ae3 (diff) | |
change dcd_init() return from void to bool
Diffstat (limited to 'src/portable/mindmotion')
| -rw-r--r-- | src/portable/mindmotion/mm32/dcd_mm32f327x_otg.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/portable/mindmotion/mm32/dcd_mm32f327x_otg.c b/src/portable/mindmotion/mm32/dcd_mm32f327x_otg.c index b74ca847a..1ce3da27e 100644 --- a/src/portable/mindmotion/mm32/dcd_mm32f327x_otg.c +++ b/src/portable/mindmotion/mm32/dcd_mm32f327x_otg.c @@ -245,7 +245,7 @@ static void process_bus_active(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) rhport; (void) rh_init; @@ -256,6 +256,7 @@ void dcd_init(uint8_t rhport, const tusb_rhport_init_t* rh_init) { dcd_connect(rhport); NVIC_ClearPendingIRQ(USB_FS_IRQn); + return true; } #define USB_DEVICE_INTERRUPT_PRIORITY (3U) void dcd_int_enable(uint8_t rhport) |
