diff options
author | gdisirio <gdisirio@35acf78f-673a-0410-8e92-d51de3d6d3f4> | 2012-08-13 10:14:45 +0000 |
---|---|---|
committer | gdisirio <gdisirio@35acf78f-673a-0410-8e92-d51de3d6d3f4> | 2012-08-13 10:14:45 +0000 |
commit | b6b473a6a1fde7e7154dc2f1a2abaa395d526f62 (patch) | |
tree | a3cdbacc09481c62a569f8ddeb274b28320b7691 /demos/ARMCM4-STM32F407-LWIP-FATFS-USB/main.c | |
parent | 28e7808798ebb9c087d2ba15a0366362a50fea9e (diff) | |
download | ChibiOS-b6b473a6a1fde7e7154dc2f1a2abaa395d526f62.tar.gz ChibiOS-b6b473a6a1fde7e7154dc2f1a2abaa395d526f62.tar.bz2 ChibiOS-b6b473a6a1fde7e7154dc2f1a2abaa395d526f62.zip |
Performance improvements to the STM32 OTG driver.
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@4562 35acf78f-673a-0410-8e92-d51de3d6d3f4
Diffstat (limited to 'demos/ARMCM4-STM32F407-LWIP-FATFS-USB/main.c')
-rw-r--r-- | demos/ARMCM4-STM32F407-LWIP-FATFS-USB/main.c | 9 |
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
};
|