8000 Update dcd_dwc2.c · rvbc1/esp32-arduino-lib-builder@7b71a51 · GitHub
[go: up one dir, main page]

Skip to content
< 8000 header class="HeaderMktg header-logged-out js-details-container js-header Details f4 py-3" role="banner" data-is-top="true" data-color-mode=light data-light-theme=light data-dark-theme=dark>

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

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

components/arduino_tinyusb/src/dcd_dwc2.c

Lines changed: 6 additions & 2 deletions
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_ini 8000 t(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)
0