From: vlahan Date: Thu, 13 Mar 2008 15:18:49 +0000 (+0000) Subject: Workaround for the missing __msp430_have_usart0_with_i2c switch in newer mspgcc inclu... X-Git-Tag: release_tinyos_2_1_0_0~482 X-Git-Url: https://oss.titaniummirror.com/gitweb/?a=commitdiff_plain;h=c5c6a7c5325b10fc6c15fc3c7a80f7c10a059f56;p=tinyos-2.x.git Workaround for the missing __msp430_have_usart0_with_i2c switch in newer mspgcc include files. When we update the distributed msp430 toolchain, all __msp430_* defines should be replaced with the new __MSP430_* equivalents --- diff --git a/tos/chips/msp430/msp430hardware.h b/tos/chips/msp430/msp430hardware.h index 1a5cc8b9..dd4a4696 100644 --- a/tos/chips/msp430/msp430hardware.h +++ b/tos/chips/msp430/msp430hardware.h @@ -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