X-Git-Url: https://oss.titaniummirror.com/gitweb/?a=blobdiff_plain;f=tos%2Fchips%2Fmsp430%2Fusci%2FMsp430SpiB0C.nc;h=257c40aa3d074a8383d456c8ba9018ceb3f787ca;hb=be862ab07d080085823951d18dcb27a28a310ace;hp=533a1ef352b94e669fec49506c4a19dfcefe5727;hpb=ee1775e283a17728cc35544c687fbb9baad53f2c;p=tinyos-2.x.git diff --git a/tos/chips/msp430/usci/Msp430SpiB0C.nc b/tos/chips/msp430/usci/Msp430SpiB0C.nc index 533a1ef3..257c40aa 100644 --- a/tos/chips/msp430/usci/Msp430SpiB0C.nc +++ b/tos/chips/msp430/usci/Msp430SpiB0C.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_B0 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_B0 peripheral (SPI)" #endif @@ -65,7 +65,10 @@ generic configuration Msp430SpiB0C(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 Msp430UsciB0C as UsciC; Resource = UsciC.Resource[CLIENT_ID];