]> oss.titaniummirror.com Git - tinyos-2.x.git/commitdiff
Redefinitions for safe tinyos. With this patch, it so no longer necessary to modify...
authorvlahan <vlahan>
Mon, 23 Jun 2008 18:35:36 +0000 (18:35 +0000)
committervlahan <vlahan>
Mon, 23 Jun 2008 18:35:36 +0000 (18:35 +0000)
Similar modification needs to be applied to atm128hardware.h for the Atmel platforms

tos/chips/msp430/msp430hardware.h

index dd4a4696b1dc7aaf1387efd5b8cb53dcb02b0649..c7a96d0495d5fe4e599964f05c84dfe8b5080556 100644 (file)
@@ -123,6 +123,17 @@ to_type func_name(from_type x) { union {from_type f; to_type t;} c = {f:x}; retu
 #undef signal
 #endif
 
+
+// Re-definitions for safe tinyOS
+// These rely on io.h being included at the top of this file
+// thus pulling the affected header files before the re-definitions
+#ifdef SAFE_TINYOS
+#undef ADC12MEM
+#define ADC12MEM            TCAST(int* ONE, ADC12MEM_) /* ADC12 Conversion Memory (for C) */
+#undef ADC12MCTL
+#define ADC12MCTL           TCAST(char * ONE, ADC12MCTL_)
+#endif
+
 // define platform constants that can be changed for different compilers
 // these are all msp430-gcc specific (add as necessary)