author | Florian Pose <fp@igh-essen.com> |
Thu, 06 Apr 2006 09:16:25 +0000 | |
changeset 165 | 51dea253c49d |
parent 164 | ed85368b2b2e |
child 166 | 29b19a90ff3f |
include/ecrt.h | file | annotate | diff | comparison | revisions |
--- a/include/ecrt.h Wed Apr 05 14:02:56 2006 +0000 +++ b/include/ecrt.h Thu Apr 06 09:16:25 2006 +0000 @@ -109,7 +109,7 @@ /*****************************************************************************/ // Bitwise read/write macros -#define EC_READ_BIT(PD, CH) (*((uint8_t *) (PD)) >> (CH)) & 0x01) +#define EC_READ_BIT(PD, CH) ((*((uint8_t *) (PD)) >> (CH)) & 0x01) #define EC_WRITE_BIT(PD, CH, VAL) \ do { \