Add missing function attributes to the pipe/endpoint functions for all architectures.
[pub/lufa.git] / LUFA / Common / Endianness.h
index f7bc336..ef8c1a7 100644 (file)
@@ -74,7 +74,7 @@
                         *\r
                         *  \ingroup Group_ByteSwapping\r
                         *\r
-                        *  \param[in]  x  16-bit value whose byte ordering is to be swapped.\r
+                        *  \param[in] x  16-bit value whose byte ordering is to be swapped.\r
                         *\r
                         *  \return Input value with the byte ordering reversed.\r
                         */\r
@@ -87,7 +87,7 @@
                         *\r
                         *  \ingroup Group_ByteSwapping\r
                         *\r
-                        *  \param[in]  x  32-bit value whose byte ordering is to be swapped.\r
+                        *  \param[in] x  32-bit value whose byte ordering is to be swapped.\r
                         *\r
                         *  \return Input value with the byte ordering reversed.\r
                         */\r
                         *\r
                         *  \ingroup Group_ByteSwapping\r
                         *\r
-                        *  \param[in,out] Data   Pointer to a number containing an even number of bytes to be reversed.\r
-                        *  \param[in]     Bytes  Length of the data in bytes.\r
+                        *  \param[in,out] Data    Pointer to a number containing an even number of bytes to be reversed.\r
+                        *  \param[in]     Length  Length of the data in bytes.\r
                         */\r
-                       static inline void SwapEndian_n(void* Data,\r
-                                                       uint8_t Bytes) ATTR_NON_NULL_PTR_ARG(1);\r
-                       static inline void SwapEndian_n(void* Data,\r
-                                                       uint8_t Bytes)\r
+                       static inline void SwapEndian_n(void* const Data,\r
+                                                       uint8_t Length) ATTR_NON_NULL_PTR_ARG(1);\r
+                       static inline void SwapEndian_n(void* const Data,\r
+                                                       uint8_t Length)\r
                        {\r
                                uint8_t* CurrDataPos = (uint8_t*)Data;\r
 \r
-                               while (Bytes > 1)\r
+                               while (Length > 1)\r
                                {\r
                                        uint8_t Temp = *CurrDataPos;\r
-                                       *CurrDataPos = *(CurrDataPos + Bytes - 1);\r
-                                       *(CurrDataPos + Bytes - 1) = Temp;\r
+                                       *CurrDataPos = *(CurrDataPos + Length - 1);\r
+                                       *(CurrDataPos + Length - 1) = Temp;\r
 \r
                                        CurrDataPos++;\r
-                                       Bytes -= 2;\r
+                                       Length -= 2;\r
                                }\r
                        }\r
 \r