From 4e8a6da12c00b65eab7d8cb4ca9da7312accf4cf Mon Sep 17 00:00:00 2001 From: Roman Leonov Date: Wed, 26 Nov 2025 15:10:06 +0100 Subject: [PATCH] feature(dcd_dwc2): Added the dcd_deinit() stub call to avoid assert --- src/portable/synopsys/dwc2/dcd_dwc2.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/portable/synopsys/dwc2/dcd_dwc2.c b/src/portable/synopsys/dwc2/dcd_dwc2.c index c0136daf34..e279375997 100644 --- a/src/portable/synopsys/dwc2/dcd_dwc2.c +++ b/src/portable/synopsys/dwc2/dcd_dwc2.c @@ -503,6 +503,12 @@ bool dcd_init(uint8_t rhport, const tusb_rhport_init_t* rh_init) { return true; } +bool dcd_deinit(uint8_t rhport) { + (void) rhport; + // TODO: stub for the deinit function + return true; +} + void dcd_int_enable(uint8_t rhport) { dwc2_dcd_int_enable(rhport); }