projects
/
pub
/
lufa.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Build: Update to latest DMBS version.
[pub/lufa.git]
/
LUFA
/
Common
/
Endianness.h
diff --git
a/LUFA/Common/Endianness.h
b/LUFA/Common/Endianness.h
index
2eb3ad0
..
f07f4a2
100644
(file)
--- a/
LUFA/Common/Endianness.h
+++ b/
LUFA/Common/Endianness.h
@@
-1,13
+1,13
@@
/*
LUFA Library
/*
LUFA Library
- Copyright (C) Dean Camera, 20
14
.
+ Copyright (C) Dean Camera, 20
20
.
dean [at] fourwalledcubicle [dot] com
www.lufa-lib.org
*/
/*
dean [at] fourwalledcubicle [dot] com
www.lufa-lib.org
*/
/*
- Copyright 20
14
Dean Camera (dean [at] fourwalledcubicle [dot] com)
+ Copyright 20
20
Dean Camera (dean [at] fourwalledcubicle [dot] com)
Permission to use, copy, modify, distribute, and sell this
software and its documentation for any purpose is hereby granted
Permission to use, copy, modify, distribute, and sell this
software and its documentation for any purpose is hereby granted
@@
-122,7
+122,7
@@
#define CPU_TO_BE32(x) (x)
#elif !defined(le16_to_cpu)
/** \name Run-time endianness conversion */
#define CPU_TO_BE32(x) (x)
#elif !defined(le16_to_cpu)
/** \name Run-time endianness conversion */
- /
/@{
+ /
**@{*/
/** Performs a conversion between a Little Endian encoded 16-bit piece of data and the
* Endianness of the currently selected CPU architecture.
/** Performs a conversion between a Little Endian encoded 16-bit piece of data and the
* Endianness of the currently selected CPU architecture.
@@
-252,10
+252,10
@@
*/
#define cpu_to_be32(x) SwapEndian_32(x)
*/
#define cpu_to_be32(x) SwapEndian_32(x)
- /
/@}
+ /
**@}*/
/** \name Compile-time endianness conversion */
/** \name Compile-time endianness conversion */
- /
/@{
+ /
**@{*/
/** Performs a conversion between a Little Endian encoded 16-bit piece of data and the
* Endianness of the currently selected CPU architecture.
/** Performs a conversion between a Little Endian encoded 16-bit piece of data and the
* Endianness of the currently selected CPU architecture.
@@
-385,7
+385,7
@@
*/
#define CPU_TO_BE32(x) SWAPENDIAN_32(x)
*/
#define CPU_TO_BE32(x) SWAPENDIAN_32(x)
- /
/! @}
+ /
**@}*/
#endif
/* Inline Functions: */
#endif
/* Inline Functions: */
@@
-397,7
+397,7
@@
*
* \return Input data with the individual bytes reversed.
*/
*
* \return Input data with the individual bytes reversed.
*/
- static inline uint16_t SwapEndian_16(const uint16_t Word) ATTR_WARN_UNUSED_RESULT ATTR_CONST;
+ static inline uint16_t SwapEndian_16(const uint16_t Word) ATTR_WARN_UNUSED_RESULT ATTR_CONST
ATTR_ALWAYS_INLINE
;
static inline uint16_t SwapEndian_16(const uint16_t Word)
{
if (GCC_IS_COMPILE_CONST(Word))
static inline uint16_t SwapEndian_16(const uint16_t Word)
{
if (GCC_IS_COMPILE_CONST(Word))
@@
-428,7
+428,7
@@
*
* \return Input data with the individual bytes reversed.
*/
*
* \return Input data with the individual bytes reversed.
*/
- static inline uint32_t SwapEndian_32(const uint32_t DWord) ATTR_WARN_UNUSED_RESULT ATTR_CONST;
+ static inline uint32_t SwapEndian_32(const uint32_t DWord) ATTR_WARN_UNUSED_RESULT ATTR_CONST
ATTR_ALWAYS_INLINE
;
static inline uint32_t SwapEndian_32(const uint32_t DWord)
{
if (GCC_IS_COMPILE_CONST(DWord))
static inline uint32_t SwapEndian_32(const uint32_t DWord)
{
if (GCC_IS_COMPILE_CONST(DWord))