فهرست منبع

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