Преглед изворни кода

Revert "fix dwc2 driver for STM32L47x (#19)" (#21)

This reverts commit 04ee8e54c2023c2ebfb5687bee6f0585a8b1fe56.
tfx2001 пре 3 година
родитељ
комит
f54bfc863f
1 измењених фајлова са 1 додато и 1 уклоњено
  1. 1 1
      src/portable/synopsys/dwc2/dcd_dwc2.c

+ 1 - 1
src/portable/synopsys/dwc2/dcd_dwc2.c

@@ -1064,7 +1064,7 @@ static void handle_rxflvl_irq(uint8_t rhport)
         {
           uint32_t doepint = epout->doepint;
 
-          if (doepint & DOEPINT_STPKTRX)
+          if (doepint & (DOEPINT_STPKTRX | DOEPINT_OTEPSPR))
           {
             // skip this "no-data" transfer complete event
             // Note: STPKTRX will be clear later by setup received handler