aboutsummaryrefslogtreecommitdiffstats
path: root/os
diff options
context:
space:
mode:
authorgdisirio <gdisirio@35acf78f-673a-0410-8e92-d51de3d6d3f4>2013-01-26 10:53:10 +0000
committergdisirio <gdisirio@35acf78f-673a-0410-8e92-d51de3d6d3f4>2013-01-26 10:53:10 +0000
commit1fdd4cfd9d24ff6a75129b38b89a7be96bb4a72b (patch)
tree61ac5d01d57b89998d04a8c59feb8c6e833d5a1b /os
parenta82dec52e68b99553e1793f46e49e297f03df635 (diff)
downloadChibiOS-1fdd4cfd9d24ff6a75129b38b89a7be96bb4a72b.tar.gz
ChibiOS-1fdd4cfd9d24ff6a75129b38b89a7be96bb4a72b.tar.bz2
ChibiOS-1fdd4cfd9d24ff6a75129b38b89a7be96bb4a72b.zip
Fixed bug 3601638.
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@5092 35acf78f-673a-0410-8e92-d51de3d6d3f4
Diffstat (limited to 'os')
-rw-r--r--os/hal/platforms/STM32/OTGv1/usb_lld.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/os/hal/platforms/STM32/OTGv1/usb_lld.h b/os/hal/platforms/STM32/OTGv1/usb_lld.h
index 424d523c5..3b8344e55 100644
--- a/os/hal/platforms/STM32/OTGv1/usb_lld.h
+++ b/os/hal/platforms/STM32/OTGv1/usb_lld.h
@@ -476,14 +476,14 @@ struct USBDriver {
*
* @api
*/
-#define usb_lld_connect_bus(usbp) (usbp->otg->GCCFG |= GCCFG_VBUSBSEN)
+#define usb_lld_connect_bus(usbp) ((usbp)->otg->GCCFG |= GCCFG_VBUSBSEN)
/**
* @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->GCCFG &= ~GCCFG_VBUSBSEN)
/*===========================================================================*/
/* External declarations. */