]> oss.titaniummirror.com Git - tinyos-2.x.git/blobdiff - tos/platforms/tmicore/PlatformSerialC.nc
Fix tmicore's PlatformSerialC to provide the conventional set of interfaces.
[tinyos-2.x.git] / tos / platforms / tmicore / PlatformSerialC.nc
index 35b1d8c6e36df6175547f160fbb782ac863e8bf5..06cb3241843f4fd3b2bc3915e2d9ac33241c004d 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * Copyright (c) 2008, Titanium Mirror, Inc.
+ * Copyright (c) 2008-2010, Titanium Mirror, Inc.
  * All rights reserved.
  *
  * Redistribution and use in source and binary forms, with or without
  */
  
 configuration PlatformSerialC {
-  provides interface Resource;
+  provides interface StdControl;
   provides interface UartStream;
   provides interface UartByte;
 }
 implementation {
   components new Msp430UartA1C() as UartC;
-  Resource = UartC;
   UartStream = UartC;
   UartByte = UartC;
 
+  components PlatformSerialP;
+  StdControl = PlatformSerialP;
+  PlatformSerialP.Resource -> UartC;
+
 #if 0 /* If you want to change the configuration... */
   components SomeConfigurationComponentC as ConfigC;
   UartC.AsyncConfigure -> ConfigC;