diff options
author | gdisirio <gdisirio@35acf78f-673a-0410-8e92-d51de3d6d3f4> | 2015-09-01 13:10:09 +0000 |
---|---|---|
committer | gdisirio <gdisirio@35acf78f-673a-0410-8e92-d51de3d6d3f4> | 2015-09-01 13:10:09 +0000 |
commit | 2c934bb1fa9037c5088ad7001d417f3e1598ccbf (patch) | |
tree | ae990a3be34c76b5ea5478b2110cf835874a0aa4 /os/hal/ports/STM32/LLD/OTGv1/usb_lld.h | |
parent | 7f8853b700e2a76a9965f6a5736b43314b71bc19 (diff) | |
download | ChibiOS-2c934bb1fa9037c5088ad7001d417f3e1598ccbf.tar.gz ChibiOS-2c934bb1fa9037c5088ad7001d417f3e1598ccbf.tar.bz2 ChibiOS-2c934bb1fa9037c5088ad7001d417f3e1598ccbf.zip |
OTG_FS working on F7.
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@8266 35acf78f-673a-0410-8e92-d51de3d6d3f4
Diffstat (limited to 'os/hal/ports/STM32/LLD/OTGv1/usb_lld.h')
-rw-r--r-- | os/hal/ports/STM32/LLD/OTGv1/usb_lld.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/os/hal/ports/STM32/LLD/OTGv1/usb_lld.h b/os/hal/ports/STM32/LLD/OTGv1/usb_lld.h index 293c94b02..8a1b26872 100644 --- a/os/hal/ports/STM32/LLD/OTGv1/usb_lld.h +++ b/os/hal/ports/STM32/LLD/OTGv1/usb_lld.h @@ -501,14 +501,14 @@ struct USBDriver { *
* @api
*/
-#define usb_lld_connect_bus(usbp) ((usbp)->otg->GCCFG |= GCCFG_VBUSBSEN)
+#define usb_lld_connect_bus(usbp) ((usbp)->otg->DCTL &= ~DCTL_SDIS)
/**
* @brief Disconnect the USB device.
*
* @api
*/
-#define usb_lld_disconnect_bus(usbp) ((usbp)->otg->GCCFG &= ~GCCFG_VBUSBSEN)
+#define usb_lld_disconnect_bus(usbp) ((usbp)->otg->DCTL |= DCTL_SDIS)
/*===========================================================================*/
/* External declarations. */
|