]> oss.titaniummirror.com Git - tinyos-2.x.git/blobdiff - tos/chips/msp430/usci/HplMsp430UsciIntP.nc
More USCI work.
[tinyos-2.x.git] / tos / chips / msp430 / usci / HplMsp430UsciIntP.nc
index dd17fd3aac9dcbadf0095b2a89b208eaf0f0b0ec..a418bb27eee04c83d69b4bd24da47795a9b1a9d6 100644 (file)
  * @author R. Steve McKown <rsmckown@gmail.com>
  */
  
-#include "msp430usci.h"
+#include "Msp430Usci.h"
+#include "msp430hardware.h"
 
-generic module HplMsp430UsciIntP(
+module HplMsp430UsciInt0P(
     uint8_t USCIABxRX_VECTOR,
     uint8_t USCIABxTX_VECTOR,
     uint8_t UCAxRXIFG,
@@ -51,8 +52,8 @@ generic module HplMsp430UsciIntP(
     uint8_t Ucxifg_addr
     ) @safe() {
   provides {
-    interface HplMsp430UsciInt as IntA; /* Interrupts for USCI_Ax */
-    interface HplMsp430UsciInt as IntB; /* Interrupts for USCI_Bx */
+    interface HplMsp430UsciInt as IntA; /* Interrupts for USCI_A0 */
+    interface HplMsp430UsciInt as IntB; /* Interrupts for USCI_B0 */
   }
 }
 
@@ -66,6 +67,7 @@ implementation
   #define UCBxCTL1 (*TCAST(volatile uint8_t* ONE, Ucbxctl1_addr))
   #define UCBxRXBUF (*TCAST(volatile uint8_t* ONE, Ucbxrxbuf_addr))
 
+#if 0
   MSP430REG_NORACE(UCxIFG);
   MSP430REG_NORACE(UCAxCTL0);
   MSP430REG_NORACE(UCAxCTL1);
@@ -73,6 +75,7 @@ implementation
   MSP430REG_NORACE(UCBxCTL0);
   MSP430REG_NORACE(UCBxCTL1);
   MSP430REG_NORACE(UCBxRXBUF);
+#endif
 
   /* This USCI_Ax and USCI_Bx interrupt vector signals receive events for UART
    * and SPI modes, and status events for I2C modes.  Only Bx can do I2C.