X-Git-Url: https://oss.titaniummirror.com/gitweb/?a=blobdiff_plain;f=tos%2Fchips%2Fmsp430%2Fusci%2FMsp430SpiA0C.nc;h=d69dca5435569de022f3727eeace0973c29e81a8;hb=be862ab07d080085823951d18dcb27a28a310ace;hp=546c81aea45ec2c00068d99edde2d32e43d4348f;hpb=ee1775e283a17728cc35544c687fbb9baad53f2c;p=tinyos-2.x.git diff --git a/tos/chips/msp430/usci/Msp430SpiA0C.nc b/tos/chips/msp430/usci/Msp430SpiA0C.nc index 546c81ae..d69dca54 100644 --- a/tos/chips/msp430/usci/Msp430SpiA0C.nc +++ b/tos/chips/msp430/usci/Msp430SpiA0C.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,7 +26,7 @@ * (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 SPI * mode. @@ -48,9 +48,9 @@ * * The implementation will use a default blockSize if set to 0 here. * - * @author R. Steve McKown + * @author R. Steve McKown */ - + #if !defined(__MSP430_HAS_USCI_AB0__) #error "Target does not have a USCI_A0 peripheral (SPI)" #endif @@ -65,7 +65,10 @@ generic configuration Msp430SpiA0C(uint16_t blockSize) { interface SpiPacket; interface ArbiterInfo; /* ??? */ } - uses interface AsyncConfigure as Configure; + uses { + interface AsyncConfigure as Configure; + interface GeneralIO as CSn; /* wire only if a SPI slave only */ + } } implementation { enum { @@ -76,6 +79,7 @@ implementation { SpiByte = SpiP; SpiPacket = SpiP; Configure = SpiP; + CSn = SpiP; components Msp430UsciA0C as UsciC; Resource = UsciC.Resource[CLIENT_ID];