File tree 1 file changed +6
-2
lines changed
components/arduino_tinyusb/src
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) {
672
672
return true;
673
673
}
674
674
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 ;
676
678
// Programming model begins in the last section of the chapter on the USB
677
679
// peripheral in each Reference Manual.
678
680
dwc2_regs_t * dwc2 = DWC2_REG (rhport );
679
681
680
682
// Check Synopsys ID register, failed if controller clock/power is not enabled
681
- TU_ASSERT (check_dwc2 (dwc2 ), );
683
+ TU_ASSERT (check_dwc2 (dwc2 ));
682
684
dcd_disconnect (rhport );
683
685
684
686
if (phy_hs_supported (dwc2 )) {
@@ -747,6 +749,8 @@ void dcd_init(uint8_t rhport) {
747
749
// TU_LOG_HEX(DWC2_DEBUG, dwc2->gahbcfg);
748
750
749
751
dcd_connect (rhport );
752
+
753
+ return true;
750
754
}
751
755
752
756
void dcd_int_enable (uint8_t rhport ) {
You can’t perform that action at this time.
0 commit comments