aboutsummaryrefslogtreecommitdiff
path: root/stmhal/usbd_conf.c
diff options
context:
space:
mode:
authorDamien George2014-03-22 12:32:54 +0000
committerDamien George2014-03-22 12:32:54 +0000
commitfb25c2d95f2c2e9e5fdf372caa16398eafe3910d (patch)
tree62f5ad5d68ad63f2b189ba91c424ae3a49ece08f /stmhal/usbd_conf.c
parentb32db4e1ad381edaaf91320cb2830e4a1b151863 (diff)
stmhal: USB CDC and MSC device work together.
Diffstat (limited to 'stmhal/usbd_conf.c')
-rw-r--r--stmhal/usbd_conf.c8
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