aboutsummaryrefslogtreecommitdiffstats
path: root/demos
diff options
context:
space:
mode:
Diffstat (limited to 'demos')
-rw-r--r--demos/ARMCM4-STM32F407-LWIP-FATFS-USB/main.c9
1 files changed, 6 insertions, 3 deletions
diff --git a/demos/ARMCM4-STM32F407-LWIP-FATFS-USB/main.c b/demos/ARMCM4-STM32F407-LWIP-FATFS-USB/main.c
index f23488ec8..0b1651e2a 100644
--- a/demos/ARMCM4-STM32F407-LWIP-FATFS-USB/main.c
+++ b/demos/ARMCM4-STM32F407-LWIP-FATFS-USB/main.c
@@ -364,13 +364,14 @@ static const USBEndpointConfig ep1config = {
0x0000,
&ep1instate,
NULL,
+ 2,
NULL
};
/**
- * @brief OUT EP2 state.
+ * @brief IN EP2 state.
*/
-USBOutEndpointState ep2outstate;
+USBInEndpointState ep2instate;
/**
* @brief EP2 initialization structure (IN only).
@@ -382,8 +383,9 @@ static const USBEndpointConfig ep2config = {
NULL,
0x0010,
0x0000,
+ &ep2instate,
NULL,
- &ep2outstate,
+ 1,
NULL
};
@@ -404,6 +406,7 @@ static const USBEndpointConfig ep3config = {
0x0040,
NULL,
&ep3outstate,
+ 0,
NULL
};