diff options
| author | HiFiPhile <[email protected]> | 2024-03-24 15:27:44 +0100 |
|---|---|---|
| committer | GitHub <[email protected]> | 2024-03-24 15:27:44 +0100 |
| commit | 3ec22e24ed3e8169b7aa8bd51f86f95dda0e6002 (patch) | |
| tree | ef97baa823fb5491ac047ed9268e9481d6c5540b /src/portable | |
| parent | 81e4f65ddd6e8294bd79f0941fa3779d48099994 (diff) | |
| parent | 5ca99800604ec3ed9d45bf4660db04101aa737ce (diff) | |
Merge pull request #2472 from cdesjardins/master
Do not enable the Mode mismatch interrupt source, it is not cleared
Diffstat (limited to 'src/portable')
| -rw-r--r-- | src/portable/synopsys/dwc2/dcd_dwc2.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/src/portable/synopsys/dwc2/dcd_dwc2.c b/src/portable/synopsys/dwc2/dcd_dwc2.c index 3e15d51c6..3f00243e5 100644 --- a/src/portable/synopsys/dwc2/dcd_dwc2.c +++ b/src/portable/synopsys/dwc2/dcd_dwc2.c @@ -462,9 +462,7 @@ void dcd_init(uint8_t rhport) { dwc2->gotgint |= int_mask; // Required as part of core initialization. - // TODO: How should mode mismatch be handled? It will cause - // the core to stop working/require reset. - dwc2->gintmsk = GINTMSK_OTGINT | GINTMSK_MMISM | GINTMSK_RXFLVLM | + dwc2->gintmsk = GINTMSK_OTGINT | GINTMSK_RXFLVLM | GINTMSK_USBSUSPM | GINTMSK_USBRST | GINTMSK_ENUMDNEM | GINTMSK_WUIM; // Enable global interrupt |
