RTEMS CPU Kit with SuperCore  4.11.2
Macros
Processor Dependent Endianness Support

This group assists in issues related to processor endianness. More...

Macros

#define CPU_BIG_ENDIAN   FALSE
 Define what is required to specify how the network to host conversion routines are handled. More...
 
#define CPU_LITTLE_ENDIAN   TRUE
 Define what is required to specify how the network to host conversion routines are handled. More...
 
#define CPU_swap_u16(value)   (((value&0xff) << 8) | ((value >> 8)&0xff))
 This routine swaps a 16 bir quantity. More...
 
#define CPU_BIG_ENDIAN   TRUE
 Define what is required to specify how the network to host conversion routines are handled. More...
 
#define CPU_LITTLE_ENDIAN   FALSE
 Define what is required to specify how the network to host conversion routines are handled. More...
 
#define CPU_BIG_ENDIAN   TRUE
 Define what is required to specify how the network to host conversion routines are handled. More...
 
#define CPU_LITTLE_ENDIAN   FALSE
 Define what is required to specify how the network to host conversion routines are handled. More...
 
#define CPU_swap_u16(value)   (((value&0xff) << 8) | ((value >> 8)&0xff))
 This routine swaps a 16 bir quantity. More...
 
#define CPU_BIG_ENDIAN   TRUE
 Define what is required to specify how the network to host conversion routines are handled. More...
 
#define CPU_LITTLE_ENDIAN   FALSE
 Define what is required to specify how the network to host conversion routines are handled. More...
 
#define CPU_swap_u16(value)   (((value&0xff) << 8) | ((value >> 8)&0xff))
 This routine swaps a 16 bir quantity. More...
 
#define CPU_BIG_ENDIAN   TRUE
 Define what is required to specify how the network to host conversion routines are handled. More...
 
#define CPU_LITTLE_ENDIAN   FALSE
 Define what is required to specify how the network to host conversion routines are handled. More...
 
#define CPU_swap_u16(value)   (((value&0xff) << 8) | ((value >> 8)&0xff))
 This routine swaps a 16 bir quantity. More...
 
#define CPU_BIG_ENDIAN   FALSE
 Define what is required to specify how the network to host conversion routines are handled. More...
 
#define CPU_LITTLE_ENDIAN   TRUE
 Define what is required to specify how the network to host conversion routines are handled. More...
 

Detailed Description

This group assists in issues related to processor endianness.

Macro Definition Documentation

◆ CPU_BIG_ENDIAN [1/6]

#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

◆ CPU_BIG_ENDIAN [2/6]

#define CPU_BIG_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_LITTLE_ENDIAN

Port Specific Information:

The v850 is little endian.

◆ CPU_BIG_ENDIAN [3/6]

#define CPU_BIG_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_LITTLE_ENDIAN

Port Specific Information:

XXX document implementation including references if appropriate

◆ CPU_BIG_ENDIAN [4/6]

#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

◆ CPU_BIG_ENDIAN [5/6]

#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

◆ CPU_BIG_ENDIAN [6/6]

#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

◆ CPU_LITTLE_ENDIAN [1/6]

#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

◆ CPU_LITTLE_ENDIAN [2/6]

#define CPU_LITTLE_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_BIG_ENDIAN

Port Specific Information:

The v850 is little endian.

◆ CPU_LITTLE_ENDIAN [3/6]

#define CPU_LITTLE_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_BIG_ENDIAN

Port Specific Information:

XXX document implementation including references if appropriate

◆ CPU_LITTLE_ENDIAN [4/6]

#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

◆ CPU_LITTLE_ENDIAN [5/6]

#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

◆ CPU_LITTLE_ENDIAN [6/6]

#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

◆ CPU_swap_u16 [1/4]

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

This routine swaps a 16 bir quantity.

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

◆ CPU_swap_u16 [2/4]

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

This routine swaps a 16 bir quantity.

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

◆ CPU_swap_u16 [3/4]

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

This routine swaps a 16 bir quantity.

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

◆ CPU_swap_u16 [4/4]

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

This routine swaps a 16 bir quantity.

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