diff options
author | Dean Camera <dean@fourwalledcubicle.com> | 2011-04-12 03:03:56 +0000 |
---|---|---|
committer | Dean Camera <dean@fourwalledcubicle.com> | 2011-04-12 03:03:56 +0000 |
commit | 995195a2b06142fb0882cf116a12bdab8e19603f (patch) | |
tree | b560fb306c067c44266a494f2d40f16132e0a9f4 /LUFA/Drivers/USB/Core/AVR8/Device_AVR8.h | |
parent | 852b5e612d549d1f086ceca4df0b589ac24cb37f (diff) | |
download | lufa-995195a2b06142fb0882cf116a12bdab8e19603f.tar.gz lufa-995195a2b06142fb0882cf116a12bdab8e19603f.tar.bz2 lufa-995195a2b06142fb0882cf116a12bdab8e19603f.zip |
Add missing function attributes to the pipe/endpoint functions for all architectures.
Perform endianness correction in the HID report parser for big-endian platforms.
Diffstat (limited to 'LUFA/Drivers/USB/Core/AVR8/Device_AVR8.h')
-rw-r--r-- | LUFA/Drivers/USB/Core/AVR8/Device_AVR8.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/LUFA/Drivers/USB/Core/AVR8/Device_AVR8.h b/LUFA/Drivers/USB/Core/AVR8/Device_AVR8.h index 47f58b27d..f88c2f1b2 100644 --- a/LUFA/Drivers/USB/Core/AVR8/Device_AVR8.h +++ b/LUFA/Drivers/USB/Core/AVR8/Device_AVR8.h @@ -137,6 +137,7 @@ /** Returns the current USB frame number, when in device mode. Every millisecond the USB bus is active (i.e. enumerated to a host) * the frame number is incremented by one. */ + static inline uint16_t USB_Device_GetFrameNumber(void) ATTR_ALWAYS_INLINE ATTR_WARN_UNUSED_RESULT; static inline uint16_t USB_Device_GetFrameNumber(void) { return UDFNUM; @@ -191,7 +192,7 @@ UDADDR |= (1 << ADDEN); } - static inline bool USB_Device_IsAddressSet(void) ATTR_ALWAYS_INLINE; + static inline bool USB_Device_IsAddressSet(void) ATTR_ALWAYS_INLINE ATTR_WARN_UNUSED_RESULT; static inline bool USB_Device_IsAddressSet(void) { return (UDADDR & (1 << ADDEN)); |