X-Git-Url: https://oss.titaniummirror.com/gitweb/?a=blobdiff_plain;f=tos%2Fchips%2Fmsp430%2Fusci%2FMsp430UartA0C.nc;h=91c8243c4a2d4a5c1aea60cbdbb33d3dde091855;hb=be862ab07d080085823951d18dcb27a28a310ace;hp=b9e6073c27a922b74dafac71fbac72518c581ffb;hpb=9b58ecb229fe2466638908e2e3c28f66f0439116;p=tinyos-2.x.git diff --git a/tos/chips/msp430/usci/Msp430UartA0C.nc b/tos/chips/msp430/usci/Msp430UartA0C.nc index b9e6073c..91c8243c 100644 --- a/tos/chips/msp430/usci/Msp430UartA0C.nc +++ b/tos/chips/msp430/usci/Msp430UartA0C.nc @@ -10,7 +10,7 @@ * - Redistributions in binary form must reproduce the above copyright * notice, this list of conditions and the following disclaimer in the * documentation and/or other materials provided with the distribution. - * - Neither the name of the Technische Universität Berlin nor the names + * - Neither the name of the Titanium Mirror, Inc. nor the names * of its contributors may be used to endorse or promote products derived * from this software without specific prior written permission. * @@ -26,21 +26,21 @@ * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE * USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ - + /** * This configuration provides the interface for using USCI_A0 in its UART * mode. * - * @author R. Steve McKown + * @author R. Steve McKown */ - + #if !defined(__MSP430_HAS_USCI_AB0__) #error "Target does not have a USCI_A0 peripheral (UART)" #endif #include "Msp430Usci.h" -configuration Msp430UartA0C { +generic configuration Msp430UartA0C() { provides { interface Resource; interface ResourceRequested; @@ -48,19 +48,19 @@ configuration Msp430UartA0C { interface UartByte; interface ArbiterInfo; /* ??? */ } - uses interface Msp430UsciUartConfigure; /* would be nice to use Msp430UartConfigure, same as USART analog */ + uses interface AsyncConfigure as Configure; } implementation { enum { CLIENT_ID = unique(MSP430_USCIA0_RESOURCE) }; - components Msp430UartP as UartP; + components new Msp430UartP() as UartP; UartStream = UartP; UartByte = UartP; - Msp430UsciUartConfigure = UartP; + Configure = UartP; - components new Msp430UsciA0C() as UsciC; + components Msp430UsciA0C as UsciC; Resource = UsciC.Resource[CLIENT_ID]; ResourceRequested = UsciC.ResourceRequested[CLIENT_ID]; ArbiterInfo = UsciC.ArbiterInfo;