X-Git-Url: https://oss.titaniummirror.com/gitweb/?a=blobdiff_plain;f=tos%2Fplatforms%2Ftmicore%2FPlatformSerialC.nc;h=a32ffa043c1c5957b74b39f2e8a7a6e1389eb49e;hb=0eb562ef9d518dd35b5dd52c7afb7fef75ee1680;hp=35b1d8c6e36df6175547f160fbb782ac863e8bf5;hpb=b9066a0a6fb45bc3c02307a38348e4780f19fed1;p=tinyos-2.x.git diff --git a/tos/platforms/tmicore/PlatformSerialC.nc b/tos/platforms/tmicore/PlatformSerialC.nc index 35b1d8c6..a32ffa04 100644 --- a/tos/platforms/tmicore/PlatformSerialC.nc +++ b/tos/platforms/tmicore/PlatformSerialC.nc @@ -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 @@ -26,24 +26,22 @@ * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE * USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ - + /** * @author R. Steve McKown */ - + configuration PlatformSerialC { - provides interface Resource; + provides interface StdControl; provides interface UartStream; provides interface UartByte; } implementation { - components new Msp430UartA1C() as UartC; - Resource = UartC; + components PlatformUartC as UartC; UartStream = UartC; UartByte = UartC; -#if 0 /* If you want to change the configuration... */ - components SomeConfigurationComponentC as ConfigC; - UartC.AsyncConfigure -> ConfigC; -#endif + components PlatformSerialP; + StdControl = PlatformSerialP; + PlatformSerialP.Resource -> UartC; }