]> oss.titaniummirror.com Git - tinyos-2.x.git/blob - tos/chips/msp430/usci/Msp430UsciA1C.nc
Fix TMI copyright attributions
[tinyos-2.x.git] / tos / chips / msp430 / usci / Msp430UsciA1C.nc
1 /*
2 * Copyright (c) 2008, Titanium Mirror, Inc.
3 * All rights reserved.
4 *
5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions
7 * are met:
8 * - Redistributions of source code must retain the above copyright notice,
9 * this list of conditions and the following disclaimer.
10 * - Redistributions in binary form must reproduce the above copyright
11 * notice, this list of conditions and the following disclaimer in the
12 * documentation and/or other materials provided with the distribution.
13 * - Neither the name of the Titanium Mirror, Inc. nor the names
14 * of its contributors may be used to endorse or promote products derived
15 * from this software without specific prior written permission.
16 *
17 * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
18 * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
19 * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
20 * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
21 * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
22 * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED
23 * TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA,
24 * OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY
25 * OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
26 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE
27 * USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
28 */
29
30 /**
31 * Defines the USCI_A1 peripheral.
32 *
33 * @author R. Steve McKown <rsmckown@gmail.com>
34 */
35
36 configuration Msp430UsciA1C {
37 provides {
38 interface HplMsp430UsciReg as Registers;
39 interface HplMsp430UsciInt as Interrupts[uint8_t];
40 interface Resource as Resource[uint8_t];
41 interface ResourceRequested as ResourceRequested[uint8_t];
42 interface ArbiterInfo;
43 }
44 uses interface ResourceConfigure as ResourceConfigure[uint8_t];
45 }
46 implementation {
47 components new FcfsArbiterC(MSP430_USCIA1_RESOURCE) as ArbiterC;
48 Resource = ArbiterC;
49 ResourceRequested = ArbiterC;
50 ResourceConfigure = ArbiterC;
51 ArbiterInfo = ArbiterC;
52
53 components new Msp430UsciIntDispatchP() as IntDispatchA1P;
54 Interrupts = IntDispatchA1P;
55 IntDispatchA1P.ArbiterInfo -> ArbiterC;
56
57 components HplMsp430UsciC as UsciC;
58 Registers = UsciC.RegA1;
59 IntDispatchA1P.RawInt -> UsciC.IntA1;
60 }