diff options
author | bvernoux <bvernoux@gmail.com> | 2014-06-02 21:43:02 +0200 |
---|---|---|
committer | bvernoux <bvernoux@gmail.com> | 2014-06-02 21:43:02 +0200 |
commit | 569aa90137614e6b54c12fa4aaec32cfdddbdbcd (patch) | |
tree | e5119ae8100d69241e180d85e87ffd512cfabc3b /stmhal/usbd_conf.c | |
parent | 8bf8404c155f9ee9a2afd7f85c5f0a8aed1d2e2d (diff) | |
download | micropython-569aa90137614e6b54c12fa4aaec32cfdddbdbcd.tar.gz micropython-569aa90137614e6b54c12fa4aaec32cfdddbdbcd.zip |
micropython port for HydraBus
Diffstat (limited to 'stmhal/usbd_conf.c')
-rw-r--r-- | stmhal/usbd_conf.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/stmhal/usbd_conf.c b/stmhal/usbd_conf.c index 529ec74b91..1ffee3fe90 100644 --- a/stmhal/usbd_conf.c +++ b/stmhal/usbd_conf.c @@ -340,7 +340,11 @@ USBD_StatusTypeDef USBD_LL_Init (USBD_HandleTypeDef *pdev) hpcd.Init.phy_itface = PCD_PHY_EMBEDDED;
hpcd.Init.Sof_enable = 0;
hpcd.Init.speed = PCD_SPEED_FULL;
+#if defined(HYDRABUSV10)
+ hpcd.Init.vbus_sensing_enable = 0; /* No VBUS Sensing on USB0 for HydraBus (VBUS is not connected on GPIOA9) */
+#else
hpcd.Init.vbus_sensing_enable = 1;
+#endif
/* Link The driver to the stack */
hpcd.pData = pdev;
pdev->pData = &hpcd;
|