Move byte-order macros to mware/byteorder.h; Add missing author names.
authorbernie <bernie@38d2e660-2303-0410-9eaa-f027e97ec537>
Tue, 20 Jul 2004 16:20:35 +0000 (16:20 +0000)
committerbernie <bernie@38d2e660-2303-0410-9eaa-f027e97ec537>
Tue, 20 Jul 2004 16:20:35 +0000 (16:20 +0000)
git-svn-id: https://src.develer.com/svnoss/bertos/trunk@61 38d2e660-2303-0410-9eaa-f027e97ec537

cpu.h

diff --git a/cpu.h b/cpu.h
index 09240a0a68a7faeffe3bcd9f518847efa3fe2bee..51314219e99350c340092c00f3205c7dba4cb428 100755 (executable)
--- a/cpu.h
+++ b/cpu.h
  * \version $Id$
  *
  * \author Giovanni Bajo <rasky@develer.com>
+ * \author Bernardo Innocenti <bernie@develer.com>
+ * \author Stefano Fedrigo <aleph@develer.com>
  */
 
 /*
  * $Log$
+ * Revision 1.5  2004/07/20 16:20:35  bernie
+ * Move byte-order macros to mware/byteorder.h; Add missing author names.
+ *
  * Revision 1.4  2004/07/20 16:06:04  bernie
  * Add macros to handle endianess issues.
  *
                CPU_PUSH_WORD((sp), (func))
 #endif
 
-
-INLINE uint16_t htobe16(uint16_t n);
-INLINE uint16_t htobe16(uint16_t n)
-{
-       if (CPU_BYTE_ORDER == CPU_LITTLE_ENDIAN)
-               n = n << 8 | n >> 8;
-
-       return n;
-}
-
-INLINE uint16_t htole16(uint16_t n);
-INLINE uint16_t htole16(uint16_t n)
-{
-       if (CPU_BYTE_ORDER == CPU_BIG_ENDIAN)
-               n = n << 8 | n >> 8;
-
-       return n;
-}
-
 #endif /* CPU_H */