RTEMS  5.1
Macros

CPUEndian. More...

Macros

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

Detailed Description

CPUEndian.

Macro Definition Documentation

◆ CPU_swap_u16

#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