diff options
| author | Damien George | 2014-03-22 12:32:54 +0000 |
|---|---|---|
| committer | Damien George | 2014-03-22 12:32:54 +0000 |
| commit | fb25c2d95f2c2e9e5fdf372caa16398eafe3910d (patch) | |
| tree | 62f5ad5d68ad63f2b189ba91c424ae3a49ece08f /stmhal/usbd_conf.c | |
| parent | b32db4e1ad381edaaf91320cb2830e4a1b151863 (diff) | |
stmhal: USB CDC and MSC device work together.
Diffstat (limited to 'stmhal/usbd_conf.c')
| -rw-r--r-- | stmhal/usbd_conf.c | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/stmhal/usbd_conf.c b/stmhal/usbd_conf.c index 4a4414afe..9df3b673c 100644 --- a/stmhal/usbd_conf.c +++ b/stmhal/usbd_conf.c @@ -342,10 +342,12 @@ USBD_StatusTypeDef USBD_LL_Init (USBD_HandleTypeDef *pdev) pdev->pData = &hpcd;
/*Initialize LL Driver */
HAL_PCD_Init(&hpcd);
-
+
HAL_PCD_SetRxFiFo(&hpcd, 0x80);
- HAL_PCD_SetTxFiFo(&hpcd, 0, 0x40);
- HAL_PCD_SetTxFiFo(&hpcd, 1, 0x80);
+ HAL_PCD_SetTxFiFo(&hpcd, 0, 0x20);
+ HAL_PCD_SetTxFiFo(&hpcd, 1, 0x40);
+ HAL_PCD_SetTxFiFo(&hpcd, 2, 0x20);
+ HAL_PCD_SetTxFiFo(&hpcd, 3, 0x40);
#endif
|
