mbed-os/libraries/USBDevice
Adam Green 76b7bb4209 USBDevice: Silence GCC warning
The following line in USBHAL_KL25Z.cpp would generate a warning in GCC
because of a potential operator precendence issue:
    return((USB0->FRMNUML | (USB0->FRMNUMH << 8) & 0x07FF));

This would have been interpreted as:
    return((USB0->FRMNUML | ((USB0->FRMNUMH << 8) & 0x07FF)));
since & has higher precedence than |

I switched it to be:
    return((USB0->FRMNUML | (USB0->FRMNUMH << 8)) & 0x07FF);
Since it makes more sense to & with 0x7FF after having merged the lower
and upper bytes together rather than just the upper byte.  It should
have resulted in the same value either way.
2013-08-21 22:23:35 -07:00
..
USBAudio [LPC1347]: first implementation of USB device (not tested) 2013-07-17 15:23:54 +03:00
USBDevice USBDevice: Silence GCC warning 2013-08-21 22:23:35 -07:00
USBHID [LPC1347]: first implementation of USB device (not tested) 2013-07-17 15:23:54 +03:00
USBMIDI [LPC1347]: first implementation of USB device (not tested) 2013-07-17 15:23:54 +03:00
USBMSD [LPC1347]: first implementation of USB device (not tested) 2013-07-17 15:23:54 +03:00
USBSerial [LPC1347]: first implementation of USB device (not tested) 2013-07-17 15:23:54 +03:00