enum { false = 0, true = 1 };
/** convierte 2 bytes (high, low) en un word */
-#define WORD(high, low) ((uint16)((uint16)(high << 8) + (uint16)low))
+#define WORD(high, low) ((uint16)((uint16)((high) << 8) + (uint16)(low)))
/** convierte un word en 2 bytes */
-#define UNPACK(word, high, low) (high = (byte)(word >> 8), \
- low = (byte)word & 0xFF)
+#define UNPACK(word, high, low) (high = (byte)((word) >> 8), \
+ low = (byte)(word) & 0xFF)
/** obtiene parte alta de un word */
-#define HIGH(word) ((byte)(word >> 8))
+#define HIGH(word) ((byte)((word) >> 8))
/** obtiene parte baja de un word */
-#define LOW(word) ((byte)(word & 0xFF))
+#define LOW(word) ((byte)((word) & 0xFF))
#endif /* _TYPES_H_ */