X-Git-Url: https://oss.titaniummirror.com/gitweb/?a=blobdiff_plain;f=tos%2Fchips%2Fmsp430%2Fusci%2FMsp430SpiB0C.nc;h=8da9619f3a17b7a1d495dbc81600f7ff8c650c54;hb=e9bfab607e051bae6afb47b44892ce37541d1b44;hp=6684b79d574d88b568d1e3aa8c9ba7e5c8b2a07d;hpb=afb97571abb58f100622185092495d958e2fb39f;p=tinyos-2.x.git diff --git a/tos/chips/msp430/usci/Msp430SpiB0C.nc b/tos/chips/msp430/usci/Msp430SpiB0C.nc index 6684b79d..8da9619f 100644 --- a/tos/chips/msp430/usci/Msp430SpiB0C.nc +++ b/tos/chips/msp430/usci/Msp430SpiB0C.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_B0 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_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];