]> oss.titaniummirror.com Git - tinyos-2.x.git/blobdiff - tos/chips/msp430/usci/Msp430UartA0C.nc
USCI UART output on USCI_A1 is working, using ACLK as BRCLK. Baud rate
[tinyos-2.x.git] / tos / chips / msp430 / usci / Msp430UartA0C.nc
index b9e6073c27a922b74dafac71fbac72518c581ffb..39b2e43b8ade314c4ec4757167aa3ecaca3fde16 100644 (file)
@@ -40,7 +40,7 @@
 
 #include "Msp430Usci.h"
 
-configuration Msp430UartA0C {
+generic configuration Msp430UartA0C() {
   provides {
     interface Resource;
     interface ResourceRequested;
@@ -55,12 +55,12 @@ implementation {
     CLIENT_ID = unique(MSP430_USCIA0_RESOURCE)
   };
 
-  components Msp430UartP as UartP;
+  components new Msp430UartP() as UartP;
   UartStream = UartP;
   UartByte = UartP;
   Msp430UsciUartConfigure = UartP;
 
-  components new Msp430UsciA0C() as UsciC;
+  components Msp430UsciA0C as UsciC;
   Resource = UsciC.Resource[CLIENT_ID];
   ResourceRequested = UsciC.ResourceRequested[CLIENT_ID];
   ArbiterInfo = UsciC.ArbiterInfo;