/*
- * 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
* (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 <rsmckown@gmail.com>
*/
-
+
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;
}