Suppress unused function parameter warnings in the USB driver.

This commit is contained in:
Dean Camera 2013-01-27 19:48:29 +00:00
parent fb18c315d0
commit da42e8840d
4 changed files with 8 additions and 1 deletions

View file

@ -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;

View file

@ -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;
}

View file

@ -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 */
}