Merge pull request #2472 from cdesjardins/master
Do not enable the Mode mismatch interrupt source, it is not cleared
This commit is contained in:
commit
3ec22e24ed
|
@ -462,9 +462,7 @@ void dcd_init(uint8_t rhport) {
|
||||||
dwc2->gotgint |= int_mask;
|
dwc2->gotgint |= int_mask;
|
||||||
|
|
||||||
// Required as part of core initialization.
|
// Required as part of core initialization.
|
||||||
// TODO: How should mode mismatch be handled? It will cause
|
dwc2->gintmsk = GINTMSK_OTGINT | GINTMSK_RXFLVLM |
|
||||||
// the core to stop working/require reset.
|
|
||||||
dwc2->gintmsk = GINTMSK_OTGINT | GINTMSK_MMISM | GINTMSK_RXFLVLM |
|
|
||||||
GINTMSK_USBSUSPM | GINTMSK_USBRST | GINTMSK_ENUMDNEM | GINTMSK_WUIM;
|
GINTMSK_USBSUSPM | GINTMSK_USBRST | GINTMSK_ENUMDNEM | GINTMSK_WUIM;
|
||||||
|
|
||||||
// Enable global interrupt
|
// Enable global interrupt
|
||||||
|
|
Loading…
Reference in New Issue