From 38d6d06bb356ac7b5fa0a8efdf476220f44c5af4 Mon Sep 17 00:00:00 2001 From: Ron Sluiter Date: Fri, 23 May 2003 19:44:05 +0000 Subject: [PATCH] Handle MSB and LSB bit-field packing. --- motorApp/MotorSrc/motor.h | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/motorApp/MotorSrc/motor.h b/motorApp/MotorSrc/motor.h index ccff0dde..4bda8a94 100644 --- a/motorApp/MotorSrc/motor.h +++ b/motorApp/MotorSrc/motor.h @@ -3,9 +3,9 @@ FILENAME... motor.h USAGE... Definitions and structures common to all levels of motorRecord support (i.e., record, device and driver). -Version: $Revision: 1.7 $ +Version: $Revision: 1.8 $ Modified By: $Author: sluiter $ -Last Modified: $Date: 2002-10-31 20:40:53 $ +Last Modified: $Date: 2003-05-23 19:44:05 $ */ /* @@ -143,5 +143,13 @@ struct motor_dset RTN_STATUS (*end_trans) (struct motorRecord *); }; +// Define, from top to bottom, how bit fields are packed. +// This works for SunPro, +#if #cpu(i386) && !#cpu(sparc) + #define LSB_First (TRUE) // LSB is packed first. +#else + #define MSB_First (TRUE) // MSB is packed first. +#endif + #endif /* INCmotorh */