/*************************************************************************\
* SPDX-License-Identifier: EPICS
* EPICS BASE is distributed subject to a Software License Agreement found
* in file LICENSE that is included with this distribution.
\*************************************************************************/

/*
 * vxWorks version of
 * osdWireConfig.h
 *
 *  Author Jeffrey O. Hill
 *  johill@lanl.gov
 */

#ifndef osdWireConfig_h
#define osdWireConfig_h

#include <vxWorks.h>
#include <types/vxArch.h>

#if _BYTE_ORDER == _LITTLE_ENDIAN
#   define EPICS_BYTE_ORDER EPICS_ENDIAN_LITTLE
#elif _BYTE_ORDER == _BIG_ENDIAN
#   define EPICS_BYTE_ORDER EPICS_ENDIAN_BIG
#else
#   error EPICS has not been ported to _BYTE_ORDER specified by vxWorks <types/vxArch.h>
#endif

/* for now, assume that vxWorks doesn't run on weird arch like ARM NWFP */
#define EPICS_FLOAT_WORD_ORDER EPICS_BYTE_ORDER

#endif /* ifdef osdWireConfig_h */
