]> oss.titaniummirror.com Git - tinyos-2.x.git/blobdiff - tos/chips/msp430/usart/Msp430Uart0C.nc
Update to include paramaterization of the UartStream interface as well as push Resour...
[tinyos-2.x.git] / tos / chips / msp430 / usart / Msp430Uart0C.nc
index 6079a94d6d134237e50ba839dea8f8370adc3420..0aa8033618d52f0b97602dce3b7354caf2301c93 100644 (file)
@@ -33,6 +33,7 @@
  * An implementation of the UART on USART0 for the MSP430.
  * @author Vlado Handziski <handzisk@tkn.tu-berlin.de>
  * @author Jonathan Hui <jhui@archedrock.com>
+ * @author Eric B. Decker <cire831@gmail.com>
  * @version $Revision$ $Date$
  */
 
@@ -41,6 +42,7 @@
 generic configuration Msp430Uart0C() {
 
   provides interface Resource;
+  provides interface ResourceRequested;
   provides interface UartStream;
   provides interface UartByte;
 
@@ -55,13 +57,13 @@ implementation {
 
   components Msp430Uart0P as UartP;
   Resource = UartP.Resource[ CLIENT_ID ];
-  UartStream = UartP.UartStream;
-  UartByte = UartP.UartByte;
+  UartStream = UartP.UartStream[ CLIENT_ID ];
+  UartByte = UartP.UartByte[ CLIENT_ID ];
   Msp430UartConfigure = UartP.Msp430UartConfigure[ CLIENT_ID ];
 
   components new Msp430Usart0C() as UsartC;
+  ResourceRequested = UsartC;
   UartP.ResourceConfigure[ CLIENT_ID ] <- UsartC.ResourceConfigure;
   UartP.UsartResource[ CLIENT_ID ] -> UsartC.Resource;
-  UartP.UsartInterrupts -> UsartC.HplMsp430UsartInterrupts;
-
+  UartP.UsartInterrupts[ CLIENT_ID ] -> UsartC.HplMsp430UsartInterrupts;
 }