Browse Source

Fix MAX_EP. I though it was the total number of endpoints but by the way it is used in the code shows that it is the number of endpoint pairs (IN/OUT) not counting EP0.

Fabián Inostroza 7 năm trước cách đây
mục cha
commit
b255d2e835
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  1. 1 1
      src/usbd_stm32f105_otgfs.c

+ 1 - 1
src/usbd_stm32f105_otgfs.c

@@ -21,7 +21,7 @@
 
 #if defined(USBD_STM32F105)
 
-#define MAX_EP          6
+#define MAX_EP          3
 #define MAX_RX_PACKET   128
 #define MAX_CONTROL_EP  1
 #define MAX_FIFO_SZ     320  /*in 32-bit chunks */