Processor Dependent Endianness Support


Defines

#define CPU_BIG_ENDIAN   TRUE
#define CPU_LITTLE_ENDIAN   FALSE
#define CPU_swap_u16(value)   (((value&0xff) << 8) | ((value >> 8)&0xff))

Detailed Description

This group assists in issues related to processor endianness.

Define Documentation

#define CPU_BIG_ENDIAN   TRUE

Define what is required to specify how the network to host conversion routines are handled.

Note:
CPU_BIG_ENDIAN and CPU_LITTLE_ENDIAN should NOT have the same values.
See also:
CPU_LITTLE_ENDIAN
Port Specific Information:

XXX document implementation including references if appropriate

#define CPU_LITTLE_ENDIAN   FALSE

Define what is required to specify how the network to host conversion routines are handled.

Note:
CPU_BIG_ENDIAN and CPU_LITTLE_ENDIAN should NOT have the same values.
See also:
CPU_BIG_ENDIAN
Port Specific Information:

XXX document implementation including references if appropriate

#define CPU_swap_u16 ( value   )     (((value&0xff) << 8) | ((value >> 8)&0xff))

This routine swaps a 16 bir quantity.

Parameters:
[in] value is the value to be swapped
Returns:
the value after being endian swapped


Generated on Sat Jul 5 12:16:34 2008 for RTEMSSuperCore by  doxygen 1.5.6