X-Git-Url: https://oss.titaniummirror.com/gitweb/?a=blobdiff_plain;f=tos%2Fchips%2Fmsp430%2Fusci%2FMsp430SpiA0C.nc;h=b3c284f2e46912c9d30df1a4b9641b5ddc9128b8;hb=e9bfab607e051bae6afb47b44892ce37541d1b44;hp=c428bb8f0056a6aa26e16334c2a6c6f5de54745d;hpb=86e1f38f71efaa4ef35d676dde514fb9884f124e;p=tinyos-2.x.git diff --git a/tos/chips/msp430/usci/Msp430SpiA0C.nc b/tos/chips/msp430/usci/Msp430SpiA0C.nc index c428bb8f..b3c284f2 100644 --- a/tos/chips/msp430/usci/Msp430SpiA0C.nc +++ b/tos/chips/msp430/usci/Msp430SpiA0C.nc @@ -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. @@ -50,7 +50,7 @@ * * @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];