Suppress unused function parameter warnings in the USB driver.

pull/1469/head
Dean Camera 12 years ago
parent fb18c315d0
commit da42e8840d

@ -38,6 +38,7 @@
* can be incorporated into many different applications.
*
* \li Accelerometer Game Joystick: http://www.crictor.co.il/he/episodes/joystick/
* \li Adjacent Reality Motion Tracker: http://www.adjacentreality.org/
* \li AD9833 based USB Function Generator: http://tuomasnylund.fi/drupal6/content/ad9833-based-usb-function-generator
* \li AERY development platform for the AVR32 devices: http://www.aery32.com/
* \li AM Radio transmitter: http://amcinnes.info/2012/uc_am_xmit/

@ -216,7 +216,9 @@
static inline void USB_Device_EnableDeviceAddress(const uint8_t Address) ATTR_ALWAYS_INLINE;
static inline void USB_Device_EnableDeviceAddress(const uint8_t Address)
{
UDADDR |= (1 << ADDEN);
(void)Address;
UDADDR |= (1 << ADDEN);
}
static inline bool USB_Device_IsAddressSet(void) ATTR_ALWAYS_INLINE ATTR_WARN_UNUSED_RESULT;

@ -214,6 +214,8 @@
static inline void USB_Device_EnableDeviceAddress(const uint8_t Address) ATTR_ALWAYS_INLINE;
static inline void USB_Device_EnableDeviceAddress(const uint8_t Address)
{
(void)Address;
AVR32_USBB.UDCON.adden = true;
}

@ -205,6 +205,8 @@
static inline void USB_Device_SetDeviceAddress(const uint8_t Address) ATTR_ALWAYS_INLINE;
static inline void USB_Device_SetDeviceAddress(const uint8_t Address)
{
(void)Address;
/* No implementation for XMEGA architecture */
}

Loading…
Cancel
Save