]> oss.titaniummirror.com Git - tinyos-2.x.git/commitdiff
Workaround for the missing __msp430_have_usart0_with_i2c switch in newer mspgcc inclu...
authorvlahan <vlahan>
Thu, 13 Mar 2008 15:18:49 +0000 (15:18 +0000)
committervlahan <vlahan>
Thu, 13 Mar 2008 15:18:49 +0000 (15:18 +0000)
When we update the distributed msp430 toolchain, all __msp430_* defines should be replaced with the new __MSP430_* equivalents

tos/chips/msp430/msp430hardware.h

index 1a5cc8b9f93158c7615369ede5ec6f6b1e31bd81..dd4a4696b1dc7aaf1387efd5b8cb53dcb02b0649 100644 (file)
@@ -134,6 +134,11 @@ to_type func_name(from_type x) { union {from_type f; to_type t;} c = {f:x}; retu
 #define __msp430_have_adc12
 #endif
 
+// backwards compatibility to older versions of the header files
+#ifdef __MSP430_HAS_I2C__
+#define __msp430_have_usart0_with_i2c
+#endif
+
 // I2CBusy flag is not defined by current MSP430-GCC
 #ifdef __msp430_have_usart0_with_i2c
 #ifndef I2CBUSY