]> oss.titaniummirror.com Git - tinyos-2.x.git/blobdiff - tos/chips/msp430/usci/Msp430UartP.nc
TOS expects an enabled UART to have rx interrupt on by default.
[tinyos-2.x.git] / tos / chips / msp430 / usci / Msp430UartP.nc
index a35dd92eb8d4b05a2296b1612ecde05f79d30b44..cb8073df7b84b48581696d3e1b6321530c5f1256 100644 (file)
@@ -114,6 +114,10 @@ implementation {
 
       /* Enable the device */
       call Registers.clrCtl1(UCSWRST);
+
+      /* TOS convention is for receive interrupts on by default. */
+      call Registers.clrIfgRx();
+      call Registers.setIeRx();
     }
   }