URL
https://opencores.org/ocsvn/openrisc/openrisc/trunk
Subversion Repositories openrisc
[/] [openrisc/] [trunk/] [rtos/] [ecos-2.0/] [packages/] [net/] [common/] [v2_0/] [include/] [machine/] [endian.h] - Rev 565
Go to most recent revision | Compare with Previous | Blame | View Log
//========================================================================== // // include/machine/endian.h // // Architecture/platform specific byte ordering support // //========================================================================== //####BSDCOPYRIGHTBEGIN#### // // ------------------------------------------- // // Portions of this software may have been derived from OpenBSD or other sources, // and are covered by the appropriate copyright disclaimers included herein. // // ------------------------------------------- // //####BSDCOPYRIGHTEND#### //========================================================================== //#####DESCRIPTIONBEGIN#### // // Author(s): gthomas // Contributors: gthomas // Date: 2000-01-10 // Purpose: // Description: // // //####DESCRIPTIONEND#### // //========================================================================== #ifndef _MACHINE_ENDIAN_H_ #define _MACHINE_ENDIAN_H_ #include <cyg/hal/basetype.h> #if CYG_BYTEORDER == CYG_MSBFIRST #define BYTE_ORDER BIG_ENDIAN #else #define BYTE_ORDER LITTLE_ENDIAN #endif #include <sys/endian.h> #endif // _MACHINE_ENDIAN_H_
Go to most recent revision | Compare with Previous | Blame | View Log