Skip to content

Commit 7b71a51

Browse files
committed
Update dcd_dwc2.c
1 parent 802f843 commit 7b71a51

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

Diff for: components/arduino_tinyusb/src/dcd_dwc2.c

+6-2
Original file line numberDiff line numberDiff line change
@@ -672,13 +672,15 @@ static bool check_dwc2(dwc2_regs_t* dwc2) {
672672
return true;
673673
}
674674

675-
void dcd_init(uint8_t rhport) {
675+
bool dcd_init(uint8_t rhport, const tusb_rhport_init_t* rh_init) {
676+
(void) rhport;
677+
(void) rh_init;
676678
// Programming model begins in the last section of the chapter on the USB
677679
// peripheral in each Reference Manual.
678680
dwc2_regs_t* dwc2 = DWC2_REG(rhport);
679681

680682
// Check Synopsys ID register, failed if controller clock/power is not enabled
681-
TU_ASSERT(check_dwc2(dwc2), );
683+
TU_ASSERT(check_dwc2(dwc2));
682684
dcd_disconnect(rhport);
683685

684686
if (phy_hs_supported(dwc2)) {
@@ -747,6 +749,8 @@ void dcd_init(uint8_t rhport) {
747749
// TU_LOG_HEX(DWC2_DEBUG, dwc2->gahbcfg);
748750

749751
dcd_connect(rhport);
752+
753+
return true;
750754
}
751755

752756
void dcd_int_enable(uint8_t rhport) {

0 commit comments

Comments
 (0)