From 995195a2b06142fb0882cf116a12bdab8e19603f Mon Sep 17 00:00:00 2001 From: Dean Camera Date: Tue, 12 Apr 2011 03:03:56 +0000 Subject: Add missing function attributes to the pipe/endpoint functions for all architectures. Perform endianness correction in the HID report parser for big-endian platforms. --- LUFA/Drivers/USB/Core/UC3/Pipe_UC3.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'LUFA/Drivers/USB/Core/UC3/Pipe_UC3.h') diff --git a/LUFA/Drivers/USB/Core/UC3/Pipe_UC3.h b/LUFA/Drivers/USB/Core/UC3/Pipe_UC3.h index 7edfb3e1b..bda3e8e2c 100644 --- a/LUFA/Drivers/USB/Core/UC3/Pipe_UC3.h +++ b/LUFA/Drivers/USB/Core/UC3/Pipe_UC3.h @@ -284,7 +284,7 @@ * * \return The current pipe token, as a \c PIPE_TOKEN_* mask. */ - static inline uint8_t Pipe_GetPipeToken(void) ATTR_ALWAYS_INLINE; + static inline uint8_t Pipe_GetPipeToken(void) ATTR_WARN_UNUSED_RESULT ATTR_ALWAYS_INLINE; static inline uint8_t Pipe_GetPipeToken(void) { return (&AVR32_USBB.UPCFG0)[USB_SelectedPipe].ptoken; @@ -451,6 +451,7 @@ * * \return Total number of busy banks in the selected pipe. */ + static inline uint8_t Pipe_GetBusyBanks(void) ATTR_WARN_UNUSED_RESULT ATTR_ALWAYS_INLINE; static inline uint8_t Pipe_GetBusyBanks(void) { return (&AVR32_USBB.UPSTA0)[USB_SelectedPipe].nbusybk; -- cgit v1.2.3