]> oss.titaniummirror.com Git - tinyos-2.x.git/blobdiff - tos/platforms/tmicore/hardware.h
Initial support for the tmicore platform, an msp430-based board.
[tinyos-2.x.git] / tos / platforms / tmicore / hardware.h
diff --git a/tos/platforms/tmicore/hardware.h b/tos/platforms/tmicore/hardware.h
new file mode 100755 (executable)
index 0000000..54f87e1
--- /dev/null
@@ -0,0 +1,34 @@
+#ifndef _H_hardware_h
+#define _H_hardware_h
+
+#include "msp430hardware.h"
+//#include "MSP430ADC12.h"
+//#include "CC2420Const.h"
+//#include "AM.h"
+
+// LEDs
+TOSH_ASSIGN_PIN(nLED1, 4, 5);
+TOSH_ASSIGN_PIN(nLED2, 4, 6);
+
+// UART pins
+TOSH_ASSIGN_PIN(UC_SOMI, 3, 2);
+TOSH_ASSIGN_PIN(UC_SIMO, 3, 1);
+TOSH_ASSIGN_PIN(UC_SCK, 3, 3);
+TOSH_ASSIGN_PIN(UC_TX, 3, 6);
+TOSH_ASSIGN_PIN(UC_RX, 3, 7);
+
+// ADC
+TOSH_ASSIGN_PIN(ADC_VBATT, 6, 0);
+
+// FLASH
+TOSH_ASSIGN_PIN(nFLH_CS, 4, 4);
+
+// PROGRAMMING PINS (tri-state)
+//TOSH_ASSIGN_PIN(TCK, );
+TOSH_ASSIGN_PIN(PROG_RX, 1, 1);
+TOSH_ASSIGN_PIN(PROG_TX, 2, 2);
+
+// need to undef atomic inside header files or nesC ignores the directive
+#undef atomic
+
+#endif // _H_hardware_h