Fixed bug 3601638.

git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@5092 35acf78f-673a-0410-8e92-d51de3d6d3f4
master
gdisirio 2013-01-26 10:53:10 +00:00
parent a82dec52e6
commit 1fdd4cfd9d
2 changed files with 3 additions and 2 deletions

View File

@ -476,14 +476,14 @@ struct USBDriver {
* *
* @api * @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. * @brief Disconnect the USB device.
* *
* @api * @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. */ /* External declarations. */

View File

@ -82,6 +82,7 @@
***************************************************************************** *****************************************************************************
*** 2.5.2 *** *** 2.5.2 ***
- FIX: Fixed missing parenthesis in use of macro arguments (bug 3601638).
- FIX: Fixed compile errors in Posix-GCC demo (bug 3601621)(backported - FIX: Fixed compile errors in Posix-GCC demo (bug 3601621)(backported
to 2.4.4). to 2.4.4).
- FIX: Fixed state checker error in MSP430 port (bug 3601460)(backported - FIX: Fixed state checker error in MSP430 port (bug 3601460)(backported