X-Git-Url: https://oss.titaniummirror.com/gitweb/?a=blobdiff_plain;f=tos%2Fchips%2Fmsp430%2Fusci%2FMsp430SpiB1C.nc;h=f06cc414c431e6aea06cc5a3c45b104516c8a56c;hb=e9bfab607e051bae6afb47b44892ce37541d1b44;hp=7a5b400b13e1acc7e1143fc999dd6b292402da4a;hpb=86e1f38f71efaa4ef35d676dde514fb9884f124e;p=tinyos-2.x.git diff --git a/tos/chips/msp430/usci/Msp430SpiB1C.nc b/tos/chips/msp430/usci/Msp430SpiB1C.nc index 7a5b400b..f06cc414 100644 --- a/tos/chips/msp430/usci/Msp430SpiB1C.nc +++ b/tos/chips/msp430/usci/Msp430SpiB1C.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_B1 in its SPI * mode. @@ -50,7 +50,7 @@ * * @author R. Steve McKown */ - + #if !defined(__MSP430_HAS_USCI_AB1__) #error "Target does not have a USCI_B1 peripheral (SPI)" #endif @@ -65,7 +65,10 @@ generic configuration Msp430SpiB1C(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 Msp430UsciB1C as UsciC; Resource = UsciC.Resource[CLIENT_ID];