File tree Expand file tree Collapse file tree 1 file changed +6
-2
lines changed
components/arduino_tinyusb/src Expand file tree Collapse file tree 1 file changed +6
-2
lines changed Original file line number Diff line number Diff 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
752756void dcd_int_enable (uint8_t rhport ) {
You can’t perform that action at this time.
0 commit comments