Skip to content

Commit 4e8a6da

Browse files
committed
feature(dcd_dwc2): Added the dcd_deinit() stub call to avoid assert
1 parent 86cbf95 commit 4e8a6da

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

src/portable/synopsys/dwc2/dcd_dwc2.c

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -503,6 +503,12 @@ bool dcd_init(uint8_t rhport, const tusb_rhport_init_t* rh_init) {
503503
return true;
504504
}
505505

506+
bool dcd_deinit(uint8_t rhport) {
507+
(void) rhport;
508+
// TODO: stub for the deinit function
509+
return true;
510+
}
511+
506512
void dcd_int_enable(uint8_t rhport) {
507513
dwc2_dcd_int_enable(rhport);
508514
}

0 commit comments

Comments
 (0)