]> oss.titaniummirror.com Git - tinyos-2.x.git/blobdiff - tos/chips/msp430/pins/HplMsp430GeneralIOC.nc
Comment about USCI pin mapping problems.
[tinyos-2.x.git] / tos / chips / msp430 / pins / HplMsp430GeneralIOC.nc
index a3ffdbfee9435549112a52b5c386b692b9b0b2f4..0defab4eca56074b255256c9792995ebb35f7721 100644 (file)
@@ -84,7 +84,7 @@ configuration HplMsp430GeneralIOC
   provides interface HplMsp430GeneralIO as Port57;
 #endif
 
-#if defined(__MSP430_HAS_PORT6_) || defined(__MSP430_HAS_PORT6_R__)
+#if defined(__MSP430_HAS_PORT6__) || defined(__MSP430_HAS_PORT6_R__)
   provides interface HplMsp430GeneralIO as Port60;
   provides interface HplMsp430GeneralIO as Port61;
   provides interface HplMsp430GeneralIO as Port62;
@@ -164,7 +164,7 @@ configuration HplMsp430GeneralIOC
 #endif
 
   // Interfaces for USCI0, ports A and B
-#if defined(__MSP430_HAS_USCI_AB0__)
+#if defined(__MSP430_HAS_USCI_AB0__) || defined(__MSP430_HAS_USCI__)
   provides interface HplMsp430GeneralIO as UCA0CLK;
   provides interface HplMsp430GeneralIO as UCA0STE;
   provides interface HplMsp430GeneralIO as UCA0TXD;
@@ -547,7 +547,12 @@ implementation
   URXD1 = P37;
 #endif
 
-#if defined(__MSP430_HAS_USCI_AB0__)
+#if defined(__MSP430_HAS_USCI_AB0__) || defined(__MSP430_HAS_USCI__)
+  /* TODO: these mappings are broken for many parts defining
+   * __MSP430_HAS_USCI__.  For example, the MSP420F2112 has USCI pin
+   * assignements different than below.  Further, the pin assignements vary
+   * by package.
+   */
   UCA0CLK = P30;
   UCA0STE = P33;
   UCA0TXD = P34;